* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #000;
  color: #fff;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* background — SF, grayscale, dimmed; #bg2 crossfades in on scroll */
#bg, #bg2 {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.85);
}
#bg2 { opacity: 0; will-change: opacity; }
.dim { position: fixed; inset: 0; z-index: -1; background: rgba(0,0,0,.55); }
body.deep .dim { background: rgba(0,0,0,.7); }
@media (prefers-reduced-motion: no-preference) {
  #bg, #bg2 { animation: drift 60s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
}

/* pixel cursor (injected by script.js) */
#cursor {
  position: fixed; left: 0; top: 0; z-index: 9999;
  pointer-events: none;
  transform: translate(-100px,-100px);
  display: none;
}
html.hide-cursor, html.hide-cursor * { cursor: none !important; }
html.hide-cursor #cursor { display: block; }

/* nav — fixed top-left like razelabs */
nav { position: fixed; top: 24px; left: 24px; z-index: 20; }
.navbg {
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.navlinks {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #a1a1aa;
}
.navlinks a { color: inherit; text-decoration: none; transition: color .2s; }
.navlinks a:hover, .navlinks a.active { color: #fff; }
.navlinks a:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }

/* hero — fullscreen, centered */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 64px 24px;
  position: relative;
  text-align: center;
}
.hero-in { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: -32px; }
h1 {
  font-size: clamp(38px, 8vw, 64px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .015em;
  max-width: 12em;
}
.cta {
  display: flex; align-items: center; justify-content: center;
  width: 176px;
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #a1a1aa;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.cta:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.cta:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.cta .arr { margin-left: 8px; transition: transform .3s; }
.cta:hover .arr { transform: translateX(3px); }
.copyright {
  position: absolute; bottom: 24px; right: 24px;
  font-size: 11px; color: #71717a;
}
.copyright--fixed { position: fixed; }
@media (prefers-reduced-motion: no-preference) {
  .hero-in { opacity: 0; transform: translateY(16px); animation: hero-in 1s .15s cubic-bezier(.2,.6,.2,1) forwards; }
  @keyframes hero-in { to { opacity: 1; transform: none; } }
}

/* statement — scroll-driven word reveal */
.statement { height: 260vh; position: relative; }
.statement .sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 24px;
  text-align: center;
}
.statement p {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
  max-width: 18em;
  text-wrap: balance;
}
.statement .w { display: inline-block; opacity: .15; will-change: opacity, transform; }
.statement--model { height: 300vh; }
.statement--model p {
  font-size: clamp(19px, 3vw, 31px);
  font-weight: 600;
  line-height: 1.5;
  max-width: 30em;
}

/* demo rig — brain encoder visualization */
.demoSec {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 96px 16px;
}
.rig { width: min(920px, 100%); padding: 28px; }
.rig-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 20px;
}
.rig-label { margin-bottom: 10px; }
.rig-title { font-size: 17px; font-weight: 600; color: #fff; }
.rig-btn {
  border: 1px solid rgba(255,255,255,.2);
  background: none; color: #a1a1aa;
  font-family: inherit; font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 0; min-width: 84px; flex: none;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.rig-btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.rig-btn:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.rig-stage {
  position: relative;
  height: 440px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 15%, rgba(38,38,44,.65), rgba(0,0,0,.9));
  overflow: hidden;
}
.rig-stage canvas {
  display: block; width: 100%; height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.rig-score { position: absolute; top: 16px; right: 18px; text-align: right; pointer-events: none; }
.rig-score span {
  display: block;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.rig-score b {
  font-size: 30px; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums;
}
.rig-hint { position: absolute; bottom: 12px; left: 16px; font-size: 11px; color: rgba(255,255,255,.4); pointer-events: none; }
.rig-scale { position: absolute; top: 16px; left: 16px; width: 150px; pointer-events: none; }
.rig-scale .lab {
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: .05em;
  color: rgba(255,255,255,.65);
  margin-bottom: 5px;
}
.rig-scale i {
  display: block; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #4d0a02, #b31402, #f2620a, #ffe08a, #fff);
}
.rig-scale .cap {
  display: block; text-align: center; margin-top: 5px;
  font-size: 9px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.rig-track { margin-top: 20px; cursor: pointer; touch-action: none; }
.rig-phases {
  display: flex; gap: 2px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  color: #a1a1aa;
  margin-bottom: 8px;
}
.rig-phases span { border-left: 1px solid rgba(255,255,255,.15); padding-left: 8px; }
.rig-bar { position: relative; height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; }
.rig-bar i {
  position: absolute; top: -4px; bottom: -4px; left: 0;
  width: 2px; background: #fff;
  box-shadow: 0 0 12px rgba(251,191,36,.9);
}
.rig-regions {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 22px;
}
.rig-region > span:first-child {
  display: block;
  font-size: 11px; color: rgba(255,255,255,.6);
  margin-bottom: 6px;
  white-space: nowrap;
}
.rbar { display: block; height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.rbar i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #4d0a02, #b31402, #f2620a, #ffe08a);
}
.rig-note { margin-top: 20px; font-size: 11px; color: rgba(255,255,255,.4); }
@media (max-width: 640px) {
  .rig { padding: 20px; }
  .rig-stage { height: 320px; }
  .rig-regions { grid-template-columns: 1fr 1fr; }
}

/* content — rishabjaink-style narrow column */
.panel {
  position: relative;
  background: #000;
  border-top: 1px solid rgba(255,255,255,.1);
}
.inner {
  max-width: 672px;
  margin: 0 auto;
  padding: 72px 24px;
}
.label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.5);
  margin-bottom: 32px;
}
.panel p.body, .person { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.8); }
.panel p.body { max-width: 60ch; }
.panel p.body + p.body { margin-top: 20px; }
.person { display: flex; gap: 28px; align-items: center; }
.person + .person { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 32px; }
.pfp {
  width: 128px; height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.15);
  flex: none;
}
@media (max-width: 540px) {
  .person { gap: 18px; }
  .pfp { width: 88px; height: 88px; }
}
.appicon {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: linear-gradient(140deg, #DDD6FE, #8B5CF6);
  border: 1px solid rgba(221,214,254,.5);
  box-shadow: 0 12px 36px rgba(139,92,246,.35);
  display: grid; place-items: center;
  flex: none;
}
.appicon::before {
  content: "";
  width: 40px; height: 40px;
  border-radius: 50%;
  box-shadow: -11px 7px 0 0 #fff;
  transform: translate(7px, -5px);
}
.appcard { flex-direction: column; text-align: center; gap: 20px; }
.appcard .pname { font-size: 17px; }
.soon {
  display: inline-block;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 12px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: #a1a1aa;
}
.appcard .soon {
  border-color: rgba(167,139,250,.5);
  color: #C4B5FD;
}
.pname { color: #fff; font-weight: 500; font-size: 15px; }
.pdesc { margin-top: 4px; }
.plinks { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.content-link { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.content-link:hover { color: #fff; text-decoration-color: #fff; }
.content-link:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }

.fade { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
}

/* team page — centered over the city */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 100px;
}
.page .panel { background: transparent; border-top: 0; }

/* liquid glass card */
.glass {
  background: rgba(16,16,18,.38);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 24px 60px rgba(0,0,0,.45);
}
.inner.glass {
  width: min(672px, calc(100% - 32px));
  margin-inline: auto;
  padding: 56px 48px;
}
@media (max-width: 540px) {
  .inner.glass { padding: 40px 24px; border-radius: 22px; }
}

.end { text-align: center; padding: 8px 24px 32px; font-size: 11px; color: #a1a1aa; background: transparent; position: relative; }
