/* SoLeV - Speed of Light Exit Velocity
   One stylesheet, no build. Tokens first, then layout, then sections in page order.
   Width is set with font-stretch only: font-variation-settings does not cascade per axis. */

:root {
  color-scheme: dark;

  --bg: #030409;
  --bg-2: #070a12;
  --bg-3: #0b0f1a;
  --line: rgba(205, 218, 255, 0.10);
  --line-2: rgba(205, 218, 255, 0.18);
  --line-3: rgba(205, 218, 255, 0.32);

  --text: #e8ecf4;
  --text-2: #a3abbd;
  --text-3: #7c8498;
  --text-4: #4a5163;          /* ticks and decoration only */

  /* Drive: one blue-violet family. Gold is reserved for the destination star. */
  --beam-3: #a9b8ff;
  --beam: #7a93ff;
  --beam-2: #4d6bff;
  --beam-glow: rgba(77, 107, 255, 0.35);
  --star: #f0c27a;
  --star-soft: rgba(240, 194, 122, 0.12);
  --ok: #7fe3b0;
  --err: #ff7a6b;

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-math: "STIX Two Text", "Cambria Math", "Times New Roman", serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 10.5vw, 152px);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: rgba(122, 147, 255, 0.35); color: var(--text); }
:focus-visible { outline: 2px solid var(--beam); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lc { text-transform: none; letter-spacing: 0.04em; }
.sym { font-family: var(--f-math); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.12em; line-height: 1; }

/* ---------- Type ---------- */
h1, h2, h3, .num { font-family: var(--f-sans); margin: 0; }
h1 { font-size: clamp(2.5rem, 1.15rem + 5.75vw, 6.4rem); line-height: 1.06; font-weight: 640; font-stretch: 125%; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 1.3rem + 3vw, 4.1rem); line-height: 1.06; font-weight: 600; font-stretch: 118%; letter-spacing: -0.012em; }
h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.2; font-weight: 600; font-stretch: 106%; letter-spacing: -0.005em; }
p { margin: 0; color: var(--text-2); }
.lead { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.lead strong, p strong { color: var(--text); font-weight: 600; }
.lead em { color: var(--text); }
.mono, .eyebrow, .hud, .tag {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow { color: var(--text-2); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eyebrow b { color: var(--beam); font-weight: 500; font-variant-numeric: tabular-nums; }
.eyebrow::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line-2); }
.eyebrow > * { flex-shrink: 0; }
.num { font-variant-numeric: tabular-nums slashed-zero; font-stretch: 112%; font-weight: 520; letter-spacing: -0.02em; }
.accent { color: var(--beam); }
.gold { color: var(--star); }
sup, sub { line-height: 0; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 22px;
  border-radius: var(--radius);
  font-family: var(--f-sans); font-size: 13px; font-weight: 600; font-stretch: 115%;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn .arr { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: #04050a; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line-3); color: var(--text); background: rgba(3, 4, 9, 0.25); }
.btn-ghost:hover { border-color: rgba(205, 218, 255, 0.6); background: rgba(205, 218, 255, 0.04); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.32s var(--ease), border-color 0.32s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(3, 4, 9, 0.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand-word { font-weight: 700; font-size: 21px; letter-spacing: 0.01em; font-stretch: 125%; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; position: relative; padding: 6px 0; white-space: nowrap;
  transition: color 0.12s var(--ease);
}
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--beam); transition: right 0.32s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { right: 0; }
.nav-links a.btn { font-family: var(--f-sans); font-size: 12px; color: #04050a; padding: 0 16px; }
.nav-links a.btn::after { display: none; }
.nav-links a.btn:hover { color: #04050a; }
.nav-toggle { display: none; order: 1; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1px; background: var(--text); margin: 5px auto; transition: transform 0.3s var(--ease); }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--beam); }

@media (max-width: 1060px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(3, 4, 9, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s; }
  .nav-links a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav-links li:last-child a { border: 0; }
  .nav-links .btn { display: flex; margin-top: 16px; width: 100%; justify-content: center; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
  .nav.open { background: rgba(3, 4, 9, 0.97); }
  .nav-toggle { display: block; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 250vh; height: 250svh; }
@media (max-width: 768px) { .hero { height: 200vh; height: 200svh; } }
@media (prefers-reduced-motion: reduce) { .hero { height: 100vh; height: 100svh; } }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage.no-webgl { background: radial-gradient(ellipse at 50% 50%, #0d1530 0%, #03050b 60%), #000; }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.rings circle { fill: none; stroke: rgba(205, 218, 255, 0.22); stroke-width: 1; stroke-dasharray: 1 5; }
.rings text { fill: rgba(205, 218, 255, 0.42); font: 400 11px var(--f-mono); letter-spacing: 0.08em; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,4,9,0.55) 0%, rgba(3,4,9,0) 18%),
    linear-gradient(0deg, rgba(3,4,9,0.92) 0%, rgba(3,4,9,0.35) 30%, rgba(3,4,9,0) 55%),
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.45) 100%);
}
.hero-copy, .hero-phase { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(36px, 7vh, 88px); }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { max-width: none; }
.hero-copy h1 .thin { color: var(--text-2); }
.hero-copy .lead { margin-top: 26px; max-width: 54ch; color: #c3cad8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-phase { opacity: 0; pointer-events: none; }
.hero-phase h2 { max-width: 16ch; }
.hero-phase p:not(.eyebrow) { margin-top: 18px; max-width: 54ch; color: #c3cad8; }
.hero-phase .eyebrow { margin-bottom: 18px; }

.reticle { position: absolute; left: 50%; top: 50%; width: 116px; height: 116px; transform: translate(-50%, -50%); pointer-events: none; }
.reticle i { position: absolute; width: 16px; height: 16px; border-color: rgba(240, 194, 122, 0.8); border-style: solid; border-width: 0; }
.reticle i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.reticle i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.reticle i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.reticle i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.reticle-label { position: absolute; left: calc(100% + 14px); top: 0; white-space: nowrap; color: var(--star); }
.reticle-label .sub { display: block; color: var(--text-3); margin-top: 4px; letter-spacing: 0.1em; }
.reticle.label-left .reticle-label { left: auto; right: calc(100% + 14px); text-align: right; }

.hud {
  position: absolute; right: var(--gutter); top: 96px;
  display: grid; grid-template-columns: auto auto; column-gap: 22px; row-gap: 9px;
  padding: 16px 18px; min-width: 300px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(3, 4, 9, 0.55);
  color: var(--text-3); font-size: 11px;
}
.hud-rows { display: contents; }
.hud dt { margin: 0; }
.hud dd { margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums slashed-zero; min-width: 8ch; }
.hud .hud-title { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--text-2); padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.hud .live { display: inline-flex; align-items: center; gap: 7px; color: var(--beam); }
.hud .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--beam); }
.hud-bar { grid-column: 1 / -1; height: 2px; background: var(--line); margin-top: 6px; position: relative; overflow: hidden; }
.hud-bar b { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--beam); }

.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(36px, 7vh, 88px); display: flex; align-items: center; gap: 12px; color: var(--text-3); }
.scroll-cue .line { width: 1px; height: 46px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--beam); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }

@media (max-width: 920px) {
  .hud { left: var(--gutter); right: var(--gutter); top: 84px; min-width: 0; grid-template-columns: repeat(4, auto); column-gap: 14px; row-gap: 4px; padding: 12px 14px; font-size: 11px; }
  .hud .hud-title { display: none; }
  .hud dt { grid-row: 1; }
  .hud dd { grid-row: 2; text-align: left; min-width: 0; }
  .hud .hud-opt { display: none; }
  .hud-bar { grid-row: 3; }
  .hero-stage > .reticle { top: 34%; width: 84px; height: 84px; }   /* JS refines top to the free band */
  .reticle-label { left: 50%; top: auto; bottom: calc(100% + 10px); transform: translateX(-50%); text-align: center; }
  .reticle-label .sub { display: none; }
  .rings text { display: none; }
  .scroll-cue { display: none; }
}
.reticle.tight { width: 64px; height: 64px; }
@media (max-height: 520px) and (orientation: landscape) {
  .hero-copy, .hero-phase { padding-bottom: 20px; }
  .hero-copy h1 { font-size: clamp(2rem, 11vh, 3.2rem); }
  .hero-copy .eyebrow { margin-bottom: 10px; }
  .hero-copy .lead { display: none; }
  .hero-cta { margin-top: 18px; }
  .hero-cta .btn-ghost { display: none; }
  .hero-phase h2 { font-size: clamp(1.6rem, 9vh, 2.4rem); }
  .hero-phase p:not(.eyebrow) { display: none; }
}
@media (max-width: 1020px) and (min-aspect-ratio: 1/1) { .blueprint-wrap { position: static; } }
.reticle.tight .reticle-label { display: none; }
@media (max-width: 920px) and (max-height: 740px) {
  .hud { display: none; }
  .hero-cta .btn-ghost { display: none; }
}
@media (max-width: 520px) {
  .hud { grid-template-columns: repeat(2, auto); }
  .hud dt:nth-of-type(n+3), .hud dd:nth-of-type(n+3) { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 26px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head h2 { max-width: 18ch; }
.section-head.split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: clamp(32px, 6vw, 96px); }
.section-head.split .eyebrow { grid-column: 1 / -1; }
@media (max-width: 920px) { .section-head.split { grid-template-columns: 1fr; } }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num { font-size: clamp(2.4rem, 1.75rem + 3vw, 4.4rem); line-height: 1; display: block; }
.stat .num small { font-family: var(--f-mono); font-size: 0.32em; font-weight: 400; color: var(--text-2); margin-left: 6px; letter-spacing: 0.04em; font-stretch: 100%; }
.stat .num .sym { font-size: 1.15em; line-height: 0; }
.stat .mono { display: block; color: var(--text-3); margin-top: 18px; letter-spacing: 0.12em; }
.stat p { margin-top: 8px; font-size: 15px; line-height: 1.5; }
@media (max-width: 1020px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; padding-right: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* Objectives */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; min-height: 260px; position: relative; transition: background 0.32s var(--ease); }
.card:hover { background: var(--bg-2); }
.card .idx { color: var(--text-3); }
.card .idx b { color: var(--beam); font-weight: 500; }
.card h3 { margin-top: auto; }
.card p { font-size: 15.5px; }
@media (max-width: 920px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } .card h3 { margin-top: 28px; } }

/* Bar charts (log scale) */
.chart { margin-top: clamp(56px, 8vw, 104px); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.chart-head h3 { max-width: 30ch; }
.chart-head .mono { color: var(--text-3); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bar { display: grid; grid-template-columns: minmax(150px, 260px) 1fr minmax(120px, auto); align-items: center; gap: 20px; }
.bar-label { font-size: 15px; color: var(--text); line-height: 1.3; }
.bar-label > span { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.bar-track { position: relative; height: 10px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px var(--div, 20%)); }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: linear-gradient(90deg, rgba(122,147,255,0.22), var(--text-2)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease-quart); }
.bar.hot .bar-fill { background: linear-gradient(90deg, var(--beam-2), var(--beam-3)); box-shadow: 0 0 18px var(--beam-glow); }
.bar.gold .bar-fill { background: linear-gradient(90deg, #b88a45, var(--star)); }
.in .bar-fill { transform: scaleX(1); }
.bar-val { font-family: var(--f-mono); font-size: 13px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.bar.hot .bar-val { color: var(--beam-3); }
.axis { display: grid; grid-template-columns: minmax(150px, 260px) 1fr minmax(120px, auto); gap: 20px; margin-top: 12px; }
.axis-ticks { position: relative; height: 14px; font-family: var(--f-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.04em; }
.axis-ticks span { position: absolute; top: 0; white-space: nowrap; }
.axis-ticks sup { font-size: 0.82em; vertical-align: 0.5em; line-height: 0; }
.chart-note { margin-top: 26px; font-size: 14px; color: var(--text-3); max-width: 78ch; }
@media (max-width: 720px) {
  .bar, .axis { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px 14px; }
  .bar-label { grid-column: 1 / -1; }
  .axis > :first-child { display: none; }
}

/* Physics */
.physics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(56px, 8vw, 96px); }
.eq { border-top: 1px solid var(--line-2); padding-top: 26px; }
.eq .formula { font-family: var(--f-math); font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--text); margin-bottom: 16px; line-height: 1.2; }
.eq .formula i { font-style: italic; }
.eq h3 { margin-bottom: 10px; }
.eq p { font-size: 15.5px; }
@media (max-width: 920px) { .physics-grid { grid-template-columns: 1fr; } }

.punch { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.punch blockquote { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.15; font-weight: 600; font-stretch: 108%; letter-spacing: -0.01em; color: var(--text); }
.punch blockquote em { font-style: normal; color: var(--beam-3); }
@media (max-width: 920px) { .punch { grid-template-columns: 1fr; } }

/* Sky-at-speed demo */
.speed-demo { margin-top: clamp(64px, 9vw, 120px); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #000; }
.speed-view { position: relative; aspect-ratio: 21 / 9; min-height: 300px; }
.speed-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.speed-view .reticle { width: 70px; height: 70px; }
.speed-readout { position: absolute; left: 20px; top: 18px; display: grid; gap: 4px; color: var(--text-3); padding: 10px 12px; background: rgba(3, 4, 9, 0.55); border: 1px solid var(--line); }
.speed-readout b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; text-transform: none; }
.speed-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line-2); background: var(--bg-2); }
.speed-bar .mono { color: var(--text-3); }
.speed-demo.no-webgl .speed-view { background: radial-gradient(ellipse at 50% 50%, #0d1530 0%, #03050b 60%), #000; }
.speed-demo.no-webgl .speed-view::after { content: "The live sky preview needs WebGL"; position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font: 400 11px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 720px) { .speed-view { aspect-ratio: 4 / 5; } .speed-bar { grid-template-columns: 1fr; } }

/* Range inputs */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--beam) 0 var(--p, 0%), var(--line-2) var(--p, 0%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--beam); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); box-shadow: 0 0 0 4px rgba(122, 147, 255, 0.18); transition: transform 0.2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); box-shadow: 0 0 0 4px rgba(122, 147, 255, 0.18); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline-offset: 6px; }

/* Drive */
.drive { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.blueprint-wrap { position: sticky; top: 96px; display: grid; gap: 16px; }
.blueprint { border: 1px solid var(--line-2); border-radius: var(--radius); position: relative; overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(ellipse at 30% 50%, rgba(122, 147, 255, 0.07), transparent 60%),
    var(--bg-2);
}
.blueprint::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 40%, var(--bg-2) 100%); pointer-events: none; }
.blueprint svg { position: relative; width: 100%; height: auto; }
.blueprint-meta { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line-2); color: var(--text-3); background: rgba(3,4,9,0.6); position: relative; flex-wrap: wrap; font-size: 11px; }
.blueprint-meta #bp-active { color: var(--beam-3); }
.bp-part { color: rgba(205, 218, 255, 0.36); transition: color 0.56s var(--ease), filter 0.56s var(--ease); }
.bp-part.on { color: var(--beam-3); filter: drop-shadow(0 0 6px rgba(122, 147, 255, 0.55)); }
.bp-part .fill { fill: currentColor; fill-opacity: 0.07; }
.bp-part.on .fill { fill-opacity: 0.16; }
.bp-tag circle { fill: var(--bg-2); stroke: currentColor; }
.bp-tag text { fill: currentColor; font: 500 19px var(--f-mono); stroke: none; }
.bp-part.on .bp-tag circle { fill: var(--beam); stroke: var(--beam); }
.bp-part.on .bp-tag text { fill: var(--bg); }
.bp-flow { stroke-dasharray: 3 9; animation: flow 1.6s linear infinite; }
.bp-flow.rev { animation-direction: reverse; }
.paused .bp-flow { animation-play-state: paused; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.bp-dim { color: var(--text-3); }
.bp-dim text { fill: currentColor; font: 400 18px var(--f-mono); letter-spacing: 0.06em; }

.specs { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); min-height: 92px; }
.specs div { padding: 16px 16px 18px; border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.specs div:first-child { border-left: 0; }
.specs dt { color: var(--text-3); font-size: 11px; letter-spacing: 0.1em; line-height: 1.35; }
.specs dd { margin: 0; color: var(--text); font-size: 15px; letter-spacing: 0.02em; text-transform: none; font-variant-numeric: tabular-nums; }
.specs.swap div { animation: spec-in 0.42s var(--ease) both; }
.specs.swap div:nth-child(2) { animation-delay: 0.05s; } .specs.swap div:nth-child(3) { animation-delay: 0.1s; }
@keyframes spec-in { from { opacity: 0; transform: translateY(6px); } }

.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 34px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step h3, .step p { transition: color 0.56s var(--ease); }
.step:not(.on) h3 { color: var(--text-2); }
.step:not(.on) p:not(.idx) { color: var(--text-3); }
.step .idx { font-size: 12px; color: var(--text-2); margin-bottom: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.step .idx b { color: var(--beam); font-weight: 500; }
.badge { color: var(--beam-3); border: 1px solid rgba(122, 147, 255, 0.45); padding: 3px 8px; border-radius: 2px; font-size: 11px; letter-spacing: 0.12em; }
.step h3 { margin-bottom: 12px; }
.step p { font-size: 15.5px; }
.step p + p { margin-top: 10px; }
.step-spec { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1020px) {
  .drive { grid-template-columns: 1fr; }
  .blueprint-wrap { top: 72px; z-index: 2; background: var(--bg); padding: 10px 0; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .blueprint-meta, .specs { display: none; }
  .step:not(.on) h3 { color: var(--text); }
  .step:not(.on) p:not(.idx) { color: var(--text-2); }
  .bp-tag, .bp-dim text, .bp-part > text { display: none; }
  .step-spec { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: grid; gap: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
  .step-spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .step-spec dt { color: var(--text-3); font-size: 11px; letter-spacing: 0.1em; }
  .step-spec dd { margin: 0; color: var(--text); font-size: 13px; text-transform: none; text-align: right; }
}

/* Drive alternatives (tracks) */
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.track { background: var(--bg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: start; position: relative; }
.track > .mono { color: var(--text-2); display: block; line-height: 1.7; }
.track > .mono .badge { display: inline-block; margin-left: 8px; vertical-align: 1px; line-height: 1.2; }
.track > .mono b { color: var(--beam); font-weight: 500; }
.track.lead-track { background: linear-gradient(180deg, rgba(122, 147, 255, 0.06), transparent 60%), var(--bg); }
.track.lead-track::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 1px; background: var(--beam); }
.track p { font-size: 15.5px; }
.track dl { margin: 6px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.track dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.track dd { margin: 3px 0 0; font-size: 15px; color: var(--text-2); }
@media (max-width: 820px) { .tracks { grid-template-columns: 1fr; } }

/* Hard problems */
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--text-3); margin: -24px 0 28px; font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.st { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; flex: none; }
.st-done { background: currentColor; color: var(--ok); }
.st-theory { background: linear-gradient(90deg, currentColor 50%, transparent 50%); color: var(--beam-3); }
.st-open { color: var(--text-2); }
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.problem { background: var(--bg); padding: clamp(26px, 3vw, 40px); display: grid; gap: 16px; align-content: start; position: relative; overflow: hidden; }
.problem::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 0; background: linear-gradient(90deg, var(--beam), transparent); transition: width 0.8s var(--ease); }
.problem:hover::before { width: 100%; }
.problem .verb { margin: 0; font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1; font-weight: 640; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0; color: var(--text); }
.chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--text-2); font-size: 11px; letter-spacing: 0.12em; }
.problem .q { color: var(--text); font-size: 16px; }
.problem .today, .problem .plan { font-size: 15px; }
.problem .today b, .problem .plan b { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; margin-bottom: 6px; }
.problem .today b { color: var(--text-3); }
.problem .plan b { color: var(--beam); }
@media (max-width: 1020px) { .problems { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .problems { grid-template-columns: 1fr; } }

/* Flight plan calculator */
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.calc-in { padding: clamp(24px, 3vw, 40px); display: grid; gap: 26px; align-content: start; background: var(--bg-2); border-right: 1px solid var(--line-2); }
.ctl { display: grid; gap: 8px; }
.ctl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ctl label, .ctl .lbl, .field .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.ctl output { font-family: var(--f-mono); font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--text-3); line-height: 1.45; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 3px; gap: 3px; }
.seg button { height: 40px; border: 0; background: transparent; border-radius: 2px; cursor: pointer; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--text); color: #04050a; }
.ctl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field input { height: 44px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); font-family: var(--f-mono); font-size: 15px; width: 100%; }
.field input:focus { border-color: var(--beam); outline: none; }
.field input:focus-visible { box-shadow: 0 0 0 1px var(--beam); }
input::placeholder { color: var(--text-3); opacity: 1; }
.calc-peek { display: none; }

.calc-out { padding: clamp(24px, 3vw, 40px); display: grid; gap: 28px; align-content: start; background:
  radial-gradient(ellipse at 100% 0%, rgba(122, 147, 255, 0.06), transparent 50%), var(--bg); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tl { background: var(--bg); padding: 18px 18px 20px; }
.tl .mono { color: var(--text-3); font-size: 11px; }
.tl .num { display: block; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.7rem); line-height: 1.05; margin-top: 10px; }
.tl p { font-size: 13.5px; margin-top: 6px; }
.tl.hl .num { color: var(--star); }
.track-vis { position: relative; }
.track-vis svg { width: 100%; height: 48px; overflow: visible; }
.track-legend { display: flex; justify-content: space-between; color: var(--text-3); font-size: 11px; margin-top: 4px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: 14px; color: var(--text-2); }
.kv dd { margin: 0; font-family: var(--f-mono); font-size: 14px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.kv .warn dd { color: var(--beam-3); }
.kv dd.flash { animation: flash 0.12s ease-out; }
@keyframes flash { from { opacity: 0.45; } }
.calc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.calc-note { font-size: 13px; color: var(--text-3); line-height: 1.55; max-width: 58ch; }
.calc-note a { color: var(--text-2); text-underline-offset: 3px; }
.calc-flag { font-size: 14px; color: var(--text); border-left: 2px solid var(--beam); background: rgba(122, 147, 255, 0.08); padding: 10px 14px; }
.calc-flag[hidden] { display: none; }
@media (max-width: 1020px) {
  .calc { grid-template-columns: 1fr; overflow: clip; }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .calc-peek { display: flex; justify-content: space-between; gap: 12px; position: sticky; top: 72px; z-index: 3; margin: -8px 0 0; padding: 12px 0; background: var(--bg-2); border-bottom: 1px solid var(--line-2); color: var(--text-3); font-size: 11px; }
  .calc-peek b { color: var(--text); font-weight: 500; text-transform: none; }
}
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } .ctl-row { grid-template-columns: 1fr; } }

/* Destination */
.dest { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.system { border: 1px solid var(--line-2); border-radius: var(--radius); background: radial-gradient(ellipse at 40% 50%, rgba(240,194,122,0.06), transparent 60%), var(--bg-2); position: relative; overflow: hidden; }
.system svg { width: 100%; height: auto; }
.system .sys-txt { font: 400 11px var(--f-mono); letter-spacing: 0.1em; fill: var(--text-3); text-transform: uppercase; }
.system .sys-name { font: 500 13px var(--f-mono); letter-spacing: 0.06em; fill: var(--text); }
.system-meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); color: var(--text-3); flex-wrap: wrap; font-size: 11px; }
.facts { display: grid; }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact .mono { color: var(--text-3); padding-top: 3px; }
.fact h3 { font-size: 1.125rem; margin-bottom: 6px; }
.fact p { font-size: 15px; }
@media (min-width: 1021px) { .system { position: sticky; top: 96px; } }
@media (max-width: 1020px) { .dest { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .system .sys-txt { font-size: 20px; letter-spacing: 0.04em; } .system .sys-inset .sys-txt { font-size: 13px; } .system .sys-name { font-size: 22px; } .system .sys-hz { display: none; } }
@media (max-width: 520px) { .fact { grid-template-columns: 1fr; gap: 8px; } }

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--beam) 0 calc(100% / 7 * 1.5), var(--line-2) calc(100% / 7 * 1.5)); }
.ms { position: relative; padding: 38px 18px 0 0; display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
.ms::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--bg); }
.ms.done::before { background: var(--beam); border-color: var(--beam); }
.ms.now::before { border-color: var(--beam); box-shadow: 0 0 0 4px rgba(122, 147, 255, 0.18); }
.ms.goal::before { border-color: var(--star); background: radial-gradient(circle, var(--star) 0 3px, transparent 4px); }
.ms .mono { color: var(--text-3); display: block; margin-bottom: 10px; }
.ms.done .mono, .ms.now .mono { color: var(--beam); }
.ms.goal .mono { color: var(--star); }
.ms h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ms p { font-size: 14px; line-height: 1.5; }
.ms .mono.exit { display: block; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 11px; letter-spacing: 0.06em; line-height: 1.5; text-transform: none; }
.ms .mono.exit b { display: block; font-weight: 500; color: var(--text-3); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 1100px) {
  .roadmap { grid-template-columns: 1fr; padding-left: 34px; }
  .roadmap::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--beam) 0 18%, var(--line-2) 18%); }
  .ms { padding: 0 0 36px 0; display: block; grid-row: auto; }
  .ms::before { left: -34px; top: 2px; }
  .ms p, .ms .exit { max-width: 60ch; }
}

/* Origins */
.origin { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.paper { position: relative; display: block; text-decoration: none; max-width: 360px; justify-self: center; transition: translate 0.5s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.paper:hover { translate: 0 -4px; }
.paper img { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--line-2); }
.paper .tag { position: absolute; left: 16px; bottom: 16px; background: var(--bg); color: var(--text); padding: 8px 12px; border: 1px solid var(--line-2); }
.origin blockquote { margin: 0 0 28px; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem); line-height: 1.35; color: var(--text); font-weight: 500; }
.origin blockquote footer { margin-top: 14px; font: 400 12px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.origin .lead + .lead { margin-top: 16px; }
.origin .btn { margin-top: 30px; }
@media (max-width: 920px) { .origin { grid-template-columns: 1fr; } .paper { max-width: 300px; } }

/* Join */
.join { position: relative; overflow: hidden; }
.join::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse 60% 80% at 85% 50%, rgba(122, 147, 255, 0.10), transparent 60%),
  radial-gradient(ellipse 40% 60% at 95% 50%, rgba(240, 194, 122, 0.07), transparent 60%); pointer-events: none; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: end; position: relative; }
.join h2 { font-size: clamp(2.4rem, 1.2rem + 4.5vw, 5.4rem); line-height: 1.06; font-stretch: 122%; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.form input[type="email"], .form select { height: 52px; padding: 0 16px; background: var(--bg-2); border: 1px solid var(--line-3); border-radius: var(--radius); font-size: 16px; width: 100%; }
.form select { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--text-2); }
.form input:focus, .form select:focus { border-color: var(--beam); outline: none; }
.form input:focus-visible, .form select:focus-visible { box-shadow: 0 0 0 1px var(--beam); }
.form .btn { --h: 52px; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-msg { font-size: 14px; color: var(--ok); min-height: 1.4em; }
.form-msg.err { color: var(--err); }
.form-small { font-size: 13px; color: var(--text-3); }
@media (max-width: 920px) { .join-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } .form .btn { justify-content: center; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot .foot-h { margin: 0 0 14px; font: 400 11px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.foot a:hover { color: var(--text); }
.foot-tag { margin-top: 14px; font-size: 14px; color: var(--text-3); max-width: 34ch; }
.foot-light { margin-top: 48px; color: var(--text-2); letter-spacing: 0.1em; display: flex; align-items: center; gap: 10px; font-size: 11px; }
.foot-light::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--star); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 11px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.56s var(--ease-quart), transform 0.56s var(--ease-quart); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.06s; } .rv.d2 { transition-delay: 0.12s; } .rv.d3 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .bar-fill { transition: none; transform: scaleX(1); }
  .bp-flow, .scroll-cue .line::after { animation: none; }
  .scroll-cue { display: none; }
  .specs.swap div { animation: none; }
}

/* ---------- Multi-page: page headers ---------- */
.page-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; padding: 168px 0 clamp(56px, 8vw, 96px); overflow: hidden; background: #000; border-bottom: 1px solid var(--line); }
.page-hero.no-webgl { background: radial-gradient(ellipse at 50% 30%, #0d1530 0%, #03050b 60%), #000; }
.page-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,4,9,0.6) 0%, rgba(3,4,9,0) 22%),
    linear-gradient(0deg, rgba(3,4,9,0.95) 0%, rgba(3,4,9,0.55) 38%, rgba(3,4,9,0) 70%); }
.page-hero-in { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 1rem + 4.8vw, 5.4rem); max-width: 16ch; }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero .lead { margin-top: 24px; max-width: 58ch; color: #c3cad8; }
@media (max-width: 640px) { .page-hero { min-height: 0; padding-top: 140px; } }

/* ---------- Home: page index ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.1fr) 28px; align-items: center; gap: 24px; padding: clamp(22px, 2.6vw, 34px) 0; text-decoration: none; transition: background 0.3s var(--ease); }
.index .ix { color: var(--beam); }
.index .ix-title { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); font-weight: 600; font-stretch: 118%; letter-spacing: -0.01em; line-height: 1.06; color: var(--text); transition: transform 0.4s var(--ease), color 0.3s var(--ease); }
.index .ix-desc { color: var(--text-2); font-size: 16px; line-height: 1.5; }
.index .arr { width: 18px; height: 18px; color: var(--text-3); justify-self: end; transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.index a:hover .ix-title, .index a:focus-visible .ix-title { transform: translateX(6px); color: var(--beam-3); }
.index a:hover .arr, .index a:focus-visible .arr { transform: translateX(4px); color: var(--text); }
@media (max-width: 720px) {
  .index a { grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 6px 14px; }
  .index .ix-desc { grid-column: 2; grid-row: 2; font-size: 15px; }
  .index .arr { grid-column: 3; grid-row: 1; }
}

/* ---------- Team ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder-photo { margin: 0; position: relative; max-width: 440px; }
.founder-photo img { width: 100%; height: auto; border-radius: var(--radius); filter: saturate(0.85) contrast(1.04); box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--line-2); }
.founder h2 { margin-bottom: 10px; }
.founder .role { color: var(--beam); margin-bottom: 26px; }
.founder .lead + .lead { margin-top: 16px; }
.founder .btn { margin-top: 30px; }
@media (max-width: 920px) { .founder { grid-template-columns: 1fr; } .founder-photo { max-width: 320px; } }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-4 .card { min-height: 280px; }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards-4 { grid-template-columns: 1fr; } .cards-4 .card { min-height: 0; } }
.more { margin-top: clamp(32px, 4vw, 48px); color: var(--text-2); }

/* Notes page keeps its own document layout; the signup band sits under it */
.notes-join { border-top: 1px solid var(--line); }
.cards-4 .card h3 { margin-top: 18px; }
