:root {
  --bg: #0b0a10;
  --bg-2: #110f18;
  --ink: #eeecf3;
  --muted: #9a97a6;
  --faint: #2a2733;
  --line: #1e1b26;
  --accent: #8b4dff;
  --accent-soft: #8b4dff33;
  --real: #c9cfdd;

  --display: "Saira", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; font-stretch: 112%; letter-spacing: -0.02em; margin: 0; }
h3 { font-weight: 600; font-stretch: 100%; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin-bottom: 2.5rem; max-width: 18ch; }
h3 { font-size: 1.35rem; margin-bottom: .6rem; }
p { margin: 0 0 1rem; }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }
.muted { color: var(--muted); }
.deva { font-family: var(--deva); font-size: 1.15em; }
.accent-text { color: var(--accent); font-weight: 500; }

.section-label {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  background: linear-gradient(to bottom, rgba(11,10,16,.88), rgba(11,10,16,0));
  backdrop-filter: blur(6px);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.wm { font-family: var(--display); font-stretch: 118%; font-weight: 500; font-size: 1.35rem; letter-spacing: -.015em; line-height: 1; }
.endorse { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .5rem 0 0; }
.endorse-pill { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #cdb6ff; border: 1px solid #3a2d55; padding: .25rem .7rem; border-radius: 99px; margin-bottom: 1.1rem; }
.nav nav { display: flex; gap: 2rem; align-items: center; font-size: .92rem; }
.nav nav a { color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--ink); border: 1px solid var(--faint); padding: .45rem .95rem; border-radius: 999px; }
.nav .nav-cta:hover { border-color: var(--accent); }

/* BUTTONS */
.btn {
  display: inline-block; padding: .85rem 1.4rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9d68ff; }
.btn-ghost { border: 1px solid var(--faint); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.8rem; font-family: var(--mono); }

/* HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
#world { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.hero-inner {
  position: relative; z-index: 2; pointer-events: none;
  max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 7rem 2rem 5rem;
}
.hero-inner a { pointer-events: auto; }
.eyebrow { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-bottom: 1.8rem; }
.eyebrow .deva { color: var(--ink); font-family: var(--deva); font-size: 1.2rem; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; font-weight: 300;
  margin-bottom: 1.8rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; gap: .8rem; margin-top: 2.2rem; flex-wrap: wrap; }

.hud {
  position: absolute; right: 2rem; bottom: 2rem; z-index: 2;
  font-family: var(--mono); font-size: .72rem; color: var(--muted);
  display: grid; gap: .35rem; text-align: right; pointer-events: none;
}
.hud div { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.hud-hint { opacity: .6; margin-top: .3rem; }
.dot { width: 14px; height: 0; border-top: 2px solid; display: inline-block; }
.dot-pred { border-color: var(--accent); border-top-style: dashed; }
.dot-real { border-color: var(--real); }

/* GAP */
.gap { padding: 9rem 0 7rem; }
.big-quote { font-size: clamp(2rem, 4.6vw, 3.8rem); max-width: 22ch; line-height: 1.1; margin-bottom: 5rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.cols-3 p { color: var(--muted); font-size: .98rem; }
.gap .cols-3 > div { border-top: 1px solid var(--faint); padding-top: 1.5rem; }

/* VISION */
.vision { padding: 7rem 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vision-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
.vision h2 { position: sticky; top: 7rem; }
.vision-body p { font-size: 1.1rem; color: #d2cfdb; }
.vision-body strong { color: var(--ink); font-weight: 500; }
.vision-list { list-style: none; padding: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--faint); }
.vision-list li { display: grid; grid-template-columns: 6rem 1fr; padding: 1.1rem 0; border-bottom: 1px solid var(--faint); color: var(--muted); }
.vision-list span { font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 1.2rem; }

/* RESEARCH */
.research { padding: 8rem 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 2.2rem 2rem 2.4rem; position: relative; transition: background .25s; }
.card:hover { background: #15121d; }
.card p { color: var(--muted); font-size: .96rem; }
.card-num { position: absolute; top: 2rem; right: 2rem; font-family: var(--mono); font-size: .75rem; color: var(--faint); }
.card-icon { width: 48px; height: 48px; margin-bottom: 2rem; }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-icon .fill-accent { fill: var(--accent); stroke: none; }
.card-icon .fill-accent-soft { fill: var(--accent-soft); stroke: var(--accent); }
.card-icon .stroke-accent { stroke: var(--accent); }

/* WHY */
.why { padding: 7rem 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-list { border-top: 1px solid var(--faint); }
.why-row {
  display: grid; grid-template-columns: 18rem 1fr; gap: 2rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--faint);
}
.why-row p { margin: 0; color: var(--muted); }
.why-k { font-family: var(--display); font-stretch: 112%; font-size: 1.5rem; }
.why-row:hover .why-k { color: var(--accent); }

/* PRINCIPLES */
.principles { padding: 7rem 0; }
.p-num { font-family: var(--mono); color: var(--accent); font-size: 1.4rem; display: block; margin-bottom: 1rem; }

/* CONTACT */
.contact { padding: 9rem 0; border-top: 1px solid var(--line); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: none; font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 1.5rem; }
.contact .lede { margin-bottom: 2.5rem; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer p { margin: 0; font-family: var(--mono); font-size: .78rem; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .cols-3, .cards { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; gap: 2rem; }
  .vision h2 { position: static; }
  .why-row { grid-template-columns: 1fr; gap: .4rem; }
  .gap { padding: 6rem 0 5rem; }
  .big-quote { margin-bottom: 3rem; }
  .hud { display: none; }
  #world { opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.foot-brand { display: flex; flex-direction: column; }

/* LINKS IN SMALL TEXT */
.endorse a, .footer p a { color: inherit; border-bottom: 1px solid var(--faint); transition: color .2s, border-color .2s; }
.endorse a:hover, .footer p a:hover { color: var(--ink); border-color: var(--accent); }
a.endorse-pill { transition: border-color .2s, color .2s; }
a.endorse-pill:hover { border-color: var(--accent); color: #fff; }

/* CONTACT PAGE */
.contact-page { padding: 9rem 0 6rem; }
.cp-head { margin-bottom: 4.5rem; }
.cp-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.04; font-weight: 300; margin-bottom: 1.5rem; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 5rem; align-items: start; }
.cp-details { border-top: 1px solid var(--faint); }
.cp-block { padding: 1.5rem 0; border-bottom: 1px solid var(--faint); }
.cp-block p { margin: 0 0 .3rem; color: var(--muted); font-size: .96rem; }
.cp-block a { color: var(--ink); }
.cp-k { font-family: var(--mono); font-size: .72rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem !important; }
.cp-strong { color: var(--ink) !important; font-weight: 500; }
.cp-link { color: var(--accent) !important; }
.cp-link:hover { text-decoration: underline; }
.cp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; color: var(--muted); font-size: .96rem; }
.cp-steps li { display: grid; grid-template-columns: 2.2rem 1fr; }
.cp-steps span { font-family: var(--mono); font-size: .78rem; color: var(--accent); padding-top: .15rem; }

.cp-form-wrap { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 2.5rem; }
.cp-form { display: grid; gap: 1.4rem; }
.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; color: #cfccd8; margin-bottom: .5rem; }
.field .opt { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  background: #18151f; border: 0; border-bottom: 1px solid #3a3546; border-radius: 6px 6px 0 0;
  padding: .85rem 1rem; transition: background .2s, border-color .2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field select option { background: #18151f; color: var(--ink); }
.field input:hover, .field select:hover, .field textarea:hover { background-color: #1d1926; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; background-color: #1d1926; }
.field .invalid { outline: 2px solid #ff6b81; outline-offset: -2px; }
.err { color: #ff8fa0; font-size: .84rem; margin: .45rem 0 0; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cp-note { font-size: .82rem; color: var(--muted); margin: 0; }
.cp-note a { color: var(--ink); border-bottom: 1px solid var(--faint); }
.cp-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: var(--sans); font-size: 1rem; }
.cp-form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.cp-status { color: #ff8fa0; font-size: .9rem; margin: 0; }
.cp-status:empty { display: none; }
.cp-status a { color: var(--ink); text-decoration: underline; }
.cp-sent { min-height: 26rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .6rem; }
.cp-sent[hidden] { display: none; }
.cp-check { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 10px; background: var(--accent); color: #fff; font-size: 1.4rem; margin-bottom: 1.2rem; }
.cp-sent h2 { margin: 0; font-size: 2.2rem; }
.cp-sent p { color: var(--muted); margin-bottom: 1.2rem; }

@media (max-width: 900px) {
  .cp-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cp-row { grid-template-columns: 1fr; }
  .cp-form-wrap { padding: 1.6rem; }
  .contact-page { padding-top: 7rem; }
}
