/* Satellite Aero — one dark theme, taken from the film: orbit black, re-entry orange, atmosphere blue. */
/* Self-hosted fonts (SIL OFL 1.1, licences in assets/fonts/): no third-party font requests. */
@font-face { font-family: 'DM Sans Variable'; font-style: normal; font-display: swap; font-weight: 100 1000; src: url('/assets/fonts/dm-sans-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'DM Sans Variable'; font-style: normal; font-display: swap; font-weight: 100 1000; src: url('/assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800; src: url('/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800; src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #05080f;
  --bg-2: #08101a;
  --panel: #0b1521;
  --panel-2: #0f1b29;
  --ink: #ece4d6;
  --muted: #95a1aa;
  --dim: #66737d;
  --line: rgba(236, 228, 214, .12);
  --line-2: rgba(236, 228, 214, .22);
  --orange: #f06a3c;
  --orange-2: #ff8a5c;
  --blue: #4c84c9;
  --gold: #f1b83f;
  --sans: 'DM Sans Variable', 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gutter: clamp(20px, 4.5vw, 76px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 450; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: #fff; }
.mono { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; background: var(--orange); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 10px; }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; background: #7fb59a; border-radius: 50%; }

/* ---------- Nav: thin, transparent over the film, solid once scrolled ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); background: linear-gradient(to bottom, rgba(5, 8, 15, .7), transparent); transition: background-color .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 8, 15, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; letter-spacing: -.04em; font-weight: 650; line-height: 1; }
.brand-symbol { width: 26px; height: 26px; color: var(--orange); }
.wordmark-aero { font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.nav-links > a { color: var(--muted); transition: color .2s; }
.nav-links > a:hover { color: var(--ink); }
.nav-links > a.nav-cta { color: var(--ink); border: 1px solid var(--line-2); padding: 7px 14px; display: inline-flex; gap: 10px; }
.nav-links > a.nav-cta:hover { border-color: var(--orange); color: var(--orange-2); }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { font: 500 10px var(--mono); letter-spacing: .1em; padding: 5px 8px; color: var(--dim); }
.lang button[aria-pressed="true"] { color: var(--ink); background: rgba(236, 228, 214, .08); }

/* ---------- Chapter rail ---------- */
.rail { position: fixed; z-index: 25; left: 18px; top: 50%; transform: translateY(-50%); }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rail a { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 11px; transition: color .25s; }
.rail a::before { content: ''; width: 14px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.rail a > span:last-child { opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; background: rgba(5, 8, 15, .85); padding: 2px 6px; white-space: nowrap; }
.rail a .mono { font-size: 9px; }
.rail a:hover > span:last-child, .rail a:focus-visible > span:last-child { opacity: 1; transform: none; }
.rail a.active { color: var(--ink); }
.rail a.active::before { width: 26px; background: var(--orange); }

/* ---------- Film ---------- */
.film { position: relative; height: 520vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000 url('/frames/poster-d.jpg') 55% 50% / cover no-repeat; }
.film-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5, 8, 15, .55) 0%, rgba(5, 8, 15, 0) 22%),
    linear-gradient(to top, var(--bg) 0%, rgba(5, 8, 15, .7) 18%, rgba(5, 8, 15, 0) 48%),
    linear-gradient(to right, rgba(5, 8, 15, .78) 0%, rgba(5, 8, 15, .35) 38%, rgba(5, 8, 15, 0) 62%); }
.hud-top { position: absolute; top: calc(var(--nav-h) + 18px); left: calc(var(--gutter) + 40px); right: var(--gutter); display: flex; justify-content: space-between; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow .status-dot { background: var(--orange); box-shadow: 0 0 12px rgba(240, 106, 60, .7); }
.hud-coords { color: var(--muted); }
.cap { position: absolute; z-index: 2; will-change: opacity, transform; }
.hero-copy { left: calc(var(--gutter) + 40px); right: var(--gutter); bottom: clamp(110px, 17vh, 170px); }
/* Sized by the smaller of screen width and height: on wide but short windows (laptops with
   browser bars) the headline keeps two lines and stays clear of the navigation. */
.hero-copy h1 { font-size: clamp(40px, min(7.6vw, 14.5vh), 124px); letter-spacing: -.055em; line-height: 1.02; font-weight: 450; }
.hero-copy h1 > span { white-space: nowrap; }   /* one phrase per line */
.hero-copy h1 .accent { color: var(--orange-2); }
.hero-copy p { color: #c4cbd0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.65; margin-top: 26px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 14px 20px; font-size: 13px; font-weight: 550; transition: background-color .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-orange { background: var(--orange); color: #fff; }
.button-orange:hover { background: var(--orange-2); }
.button-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.button-ghost:hover { border-color: var(--ink); }
.chapter { left: calc(var(--gutter) + 40px); bottom: clamp(120px, 20vh, 210px); max-width: 520px; opacity: 0; visibility: hidden; }
.chapter-right { left: auto; right: var(--gutter); }
.chapter-no { color: var(--orange-2); }
.chapter h2 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.06; letter-spacing: -.045em; margin-top: 14px; }
.chapter p { color: #c4cbd0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.7; margin-top: 16px; }
.hud-bottom { position: absolute; z-index: 2; left: calc(var(--gutter) + 40px); right: var(--gutter); bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; font-size: 12px; }
.steps li { display: flex; align-items: center; gap: 8px; transition: color .3s; }
.steps li::before { content: ''; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; transition: background-color .3s, border-color .3s; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--orange); border-color: var(--orange); }
.frame-count b { color: var(--ink); font-weight: 500; }
.scroll-hint { display: flex; align-items: center; gap: 12px; }
.bar { display: block; width: 88px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 13vh, 150px) var(--gutter) clamp(60px, 10vh, 110px) calc(var(--gutter) + 40px); max-width: 1640px; margin: 0 auto; }
.section-kicker { display: flex; justify-content: space-between; gap: 20px; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.section-kicker > span:first-child { display: flex; gap: 12px; align-items: center; color: var(--orange-2); }
.section-kicker > span:first-child::before { content: ''; width: 18px; height: 1px; background: var(--orange); }
.live-label { display: flex; gap: 9px; align-items: center; }
.section h2 { font-size: clamp(40px, 5vw, 80px); line-height: 1.04; letter-spacing: -.05em; }
.text-link { display: inline-flex; align-items: center; gap: 18px; font-size: 13px; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.text-link:hover { color: var(--orange-2); border-color: var(--orange); }

/* Reveal: one gentle rise per element, only when scripting is on. */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Molecule stream (story.mjs -> molecules.mjs) ---------- */
.molecules { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

/* ---------- Orbit chapter ---------- */
.orbit-chapter { position: relative; min-height: 112vh; min-height: 112svh; overflow: hidden; display: flex; align-items: center; background: radial-gradient(120% 90% at 70% 45%, #0a1426 0%, var(--bg) 62%); }
.orbit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.orbit-drag { position: absolute; top: 0; bottom: 0; right: 0; width: 58%; cursor: grab; z-index: 1; }
.orbit-drag.dragging { cursor: grabbing; }
.orbit-drag:focus-visible { outline-offset: -8px; }
.orbit-drag-hint { position: absolute; right: var(--gutter); bottom: 34px; color: var(--dim); }
.orbit-copy { position: relative; z-index: 2; max-width: 520px; margin-left: calc(var(--gutter) + 40px); padding: 120px 0; pointer-events: none; }
.orbit-copy > * { pointer-events: auto; }
.orbit-copy h2 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -.045em; }
.orbit-copy > p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-top: 20px; max-width: 460px; }
.orbit-controls { margin-top: 30px; padding: 20px 22px 18px; border: 1px solid var(--line); background: rgba(5, 8, 15, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.orbit-controls .range-label { margin-top: 0; }
.orbit-readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; }
.orbit-readouts div { border-top: 1px solid var(--line); padding-top: 10px; }
.orbit-readouts dt { font: 500 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.orbit-readouts dd { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.orbit-readouts b { color: var(--ink); font-size: 24px; font-weight: 450; letter-spacing: -.03em; margin-right: 3px; }
.orbit-note { margin-top: 14px; color: var(--dim); font-size: 9px; letter-spacing: .06em; line-height: 1.6; text-transform: none; }

/* ---------- Lab ---------- */
.lab-section { padding-top: clamp(40px, 8vh, 90px); }
.lab-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; }
.lab-intro > p { font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 420px; }
.lab-shell { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.lab-toolbar { height: 54px; border-bottom: 1px solid var(--line); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lab-toolbar > div { display: flex; align-items: center; gap: 12px; }
.lab-dot { width: 7px; height: 7px; background: var(--orange); box-shadow: 0 0 10px rgba(240, 106, 60, .6); }
.lab-toolbar strong { font-size: 13px; font-weight: 550; }
.workspace-tag { border-left: 1px solid var(--line); padding-left: 14px; color: var(--dim); font-size: 9px; }
.mode-badge { border: 1px solid var(--line-2); padding: 4px 9px; color: var(--muted); font-size: 9px; }
[data-mode="engine"] .mode-badge { color: #9fd3b5; border-color: rgba(127, 181, 154, .5); }
.unlock-button { color: var(--orange-2) !important; border: 1px solid rgba(240, 106, 60, .5); }
.unlock-button:hover { background: rgba(240, 106, 60, .1); }
.access-panel { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(240, 106, 60, .1), rgba(240, 106, 60, .03)); padding: 18px 20px; }
.access-form { display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-items: center; }
.access-copy strong { font-size: 15px; font-weight: 550; }
.access-copy p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 4px; max-width: 560px; }
.access-entry { display: flex; gap: 8px; align-items: center; }
.access-entry input { background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink); padding: 11px 12px; font: 500 13px var(--mono); letter-spacing: .08em; width: 220px; border-radius: 0; text-transform: uppercase; }
.access-entry input:focus { outline: none; border-color: var(--orange); }
.access-entry .button { padding: 11px 16px; }
.access-close { font-size: 22px; color: var(--dim); padding: 0 6px; }
.access-close:hover { color: var(--ink); }
.access-message { grid-column: 1 / -1; font-size: 12px; min-height: 18px; color: var(--muted); }
.access-message.ok { color: #9fd3b5; }
.access-message.error { color: #ff9c7c; }
.access-request { grid-column: 1 / -1; font-size: 12px; }
.access-request a { color: var(--orange-2); }
.lock-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 10px/1.5 var(--mono); letter-spacing: .04em; color: var(--orange-2); text-align: left; }
.lock-note:hover { text-decoration: underline; text-underline-offset: 3px; }
.lock-icon { width: 11px; height: 13px; flex: none; }
[data-mode="engine"] .lock-note { display: none; }
[data-mode="demo"] .locked-group .range-label, [data-mode="demo"] #environment-controls .field-label, [data-mode="demo"] #environment-controls .range-label, [data-mode="demo"] #surface-controls .field-label, [data-mode="demo"] #surface-controls .range-label, [data-mode="demo"] #surface-controls .checkbox-label { opacity: .5; }
.toolbar-actions { gap: 4px !important; }
.toolbar-button { font-size: 11px; display: flex; gap: 10px; align-items: center; padding: 7px 10px; color: var(--muted); }
.toolbar-button:hover { color: var(--ink); }
.lab-grid { display: grid; grid-template-columns: 300px 1fr; }
.control-panel { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; background: var(--bg-2); }
.control-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 0 20px; gap: 18px; }
.control-tabs button { font-size: 12px; padding: 16px 0 12px; position: relative; color: var(--dim); }
.control-tabs button.active { color: var(--ink); }
.control-tabs button.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--orange); }
.control-content { padding: 22px 20px; flex: 1; min-height: 470px; }
.control-label { display: block; font: 500 9px var(--mono); color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.preset-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.preset-buttons button { font: 12px var(--mono); padding: 9px; border: 1px solid var(--line); color: var(--muted); }
.preset-buttons button.active { color: var(--orange-2); border-color: var(--orange); background: rgba(240, 106, 60, .08); }
.control-hint { font-size: 11px; line-height: 1.65; color: var(--dim); margin-top: 9px; }
.range-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-top: 20px; margin-bottom: 7px; gap: 10px; color: #c4cbd0; }
.range-label output { font: 11px var(--mono); color: var(--ink); }
input[type=range] { display: block; width: 100%; height: 16px; margin: 0; accent-color: var(--orange); cursor: pointer; appearance: none; -webkit-appearance: none; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 11px; height: 11px; background: var(--orange); border: 2px solid var(--bg-2); box-shadow: 0 0 0 1px var(--orange); border-radius: 50%; margin-top: -4.5px; }
input[type=range]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type=range]::-moz-range-thumb { width: 8px; height: 8px; background: var(--orange); border: 2px solid var(--bg-2); border-radius: 50%; }
input:disabled { opacity: .4; cursor: not-allowed; }
.control-divider { border-top: 1px solid var(--line); margin: 22px 0 18px; }
.import-row { display: flex; gap: 6px; align-items: center; margin-top: 22px; }
.import-button { display: flex; justify-content: space-between; flex: 1; gap: 6px; border: 1px dashed var(--line-2); font-size: 11px; padding: 10px; color: #c4cbd0; }
.import-button:hover { border-color: var(--orange); color: var(--orange-2); }
.import-row select, .number-input { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); border-radius: 0; }
.import-row select { height: 38px; font: 11px var(--mono); width: 78px; padding: 0 6px; }
.access-note { margin-top: 12px; font: 10px/1.6 var(--mono); letter-spacing: .04em; color: var(--muted); }
.access-note a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; }
.field-label { display: flex; justify-content: space-between; font-size: 12px; margin: 21px 0 7px; color: #c4cbd0; }
.field-label > span:last-child { font: 10px var(--mono); color: var(--dim); }
.number-input { padding: 9px 10px; font-size: 12px; width: 100%; min-width: 0; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 18px; color: #c4cbd0; }
.checkbox-label input { accent-color: var(--orange); }
.solver-status { margin: 0 20px; padding: 14px 0; min-height: 48px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font: 10px var(--mono); line-height: 1.6; color: var(--dim); }
.solver-status.error .status-dot { background: var(--orange); }
.viewer-column { min-width: 0; display: flex; flex-direction: column; }
.viewport { min-height: 440px; position: relative; background: radial-gradient(ellipse at 45% 40%, #1d2f3b, #0b1520 65%, #08101a); color: #c1cece; overflow: hidden; flex: 1; }
.viewport::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(150, 179, 197, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 179, 197, .04) 1px, transparent 1px); background-size: 36px 36px; pointer-events: none; }
.viewport-top { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; z-index: 2; gap: 12px; }
.viewport-top > .mono { font-size: 9px; }
.view-modes { display: flex; gap: 1px; background: rgba(5, 8, 15, .5); padding: 3px; border: 1px solid var(--line); }
.view-modes button { color: var(--dim); font-size: 10px; padding: 6px 10px; }
.view-modes button.active { background: rgba(236, 228, 214, .1); color: var(--ink); }
.viewport-cross { position: absolute; font: 14px var(--mono); color: #3d4f5a; pointer-events: none; }
.cross-a { left: 20px; top: 80px; }
.cross-b { right: 20px; bottom: 80px; }
#spacecraft { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.viewport-bottom { position: absolute; bottom: 14px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.viewport-bottom .mono { font-size: 9px; }
.viewer-hint { font-size: 10px; color: var(--dim); }
.camera-button { font-size: 22px; color: var(--muted); padding: 0 6px; pointer-events: auto; }
.flow-label { position: absolute; left: 20px; bottom: 56px; display: flex; gap: 10px; align-items: center; font-size: 9px; color: #e3a487; pointer-events: none; }
.flow-label > span:first-child { font-size: 30px; letter-spacing: 0; }
.pressure-key { position: absolute; right: 20px; bottom: 70px; width: 140px; font: 9px var(--mono); pointer-events: none; color: var(--muted); }
.pressure-key i { display: block; height: 3px; background: linear-gradient(90deg, #314a6b, #59a3ad, #ffd070, #f1633c); margin: 8px 0 4px; }
.pressure-key > div { display: flex; justify-content: space-between; }
.viewer-fallback { position: absolute; top: 46%; left: 5%; right: 5%; text-align: center; font-size: 13px; }
.viewer-fallback p { font-size: 11px; opacity: .6; margin-top: 8px; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 20px 0; border-top: 1px solid var(--line); min-height: 118px; }
.results-grid > div { padding: 0 20px; border-right: 1px solid var(--line); min-width: 0; }
.results-grid > div:last-child { border: 0; }
.results-grid > div > span { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 4px; }
.results-grid i { font: normal 11px var(--mono); color: var(--dim); }
.results-grid strong { display: block; font-size: 30px; line-height: 1.55; letter-spacing: -.04em; font-weight: 450; white-space: nowrap; }
.results-grid strong b { font: 10px var(--mono); letter-spacing: 0; color: var(--muted); }
.results-grid small { display: block; font: 9px var(--mono); color: var(--dim); margin-top: 2px; letter-spacing: .04em; }
.analysis-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 12px 20px; gap: 18px; }
.analysis-bar > div { display: flex; align-items: center; gap: 8px; }
.analysis-bar > div:first-child { font-size: 11px; color: var(--dim); }
.analysis-bar > div:last-child { gap: 22px; }
.analysis-bar button { font-size: 12px; padding: 5px 0; color: #c4cbd0; }
.analysis-bar button span { margin-left: 6px; }
.analysis-bar button:hover:not(:disabled) { color: var(--orange-2); }
.lab-message { font-size: 12px; margin-top: 12px; min-height: 18px; color: var(--muted); }
.lab-message.error { color: #ff9c7c; }
.method-details { margin-top: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.method-details summary { display: flex; justify-content: space-between; gap: 15px; padding: 18px 0; cursor: pointer; list-style: none; }
.method-details summary::-webkit-details-marker { display: none; }
.method-details summary > span:last-child { color: var(--muted); font-size: 12px; }
.method-details summary i { font-style: normal; margin-left: 18px; display: inline-block; transition: transform .2s; }
.method-details[open] summary i { transform: rotate(45deg); }
.method-details > div { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 44px; padding-bottom: 24px; color: var(--muted); max-width: 1100px; font-size: 12.5px; line-height: 1.8; }
.method-details a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sweep-panel { padding: 22px; background: var(--panel); border: 1px solid var(--line); margin: 14px 0; }
.sweep-panel > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sweep-panel h3 { font-size: 22px; letter-spacing: -.03em; }
#sweep-chart { width: 100%; max-height: 260px; margin-top: 18px; }
.no-js { padding: 18px; border: 1px solid var(--orange); margin-top: 14px; }

/* ---------- Access ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 46px; }
.audience article { background: var(--bg); padding: 28px 26px 32px; }
.audience .mono { color: var(--dim); font-size: 9px; }
.audience h3 { font-size: 24px; letter-spacing: -.035em; margin-top: 40px; }
.audience p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 12px; }
.tiers { margin-top: 44px; border-top: 1px solid var(--line); }
.tier { display: grid; grid-template-columns: 1fr 1fr 2.6fr 80px; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: #c4cbd0; }
.tier-name { font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.tier-who { color: var(--dim); font-size: 9px; }
.tier-state { text-align: right; color: var(--dim); font-size: 9px; }
.now { color: var(--orange-2) !important; }

/* ---------- Research ---------- */
.research h2 { margin-bottom: 40px; }
.research-row { display: grid; grid-template-columns: minmax(150px, .7fr) 2fr 1.4fr 30px; gap: 28px; align-items: center; border-top: 1px solid var(--line); padding: 26px 0; transition: padding .25s, color .25s; }
.research-row:hover { color: var(--orange-2); padding-left: 10px; }
.research-row > .mono { color: var(--muted); }
.research-row strong { font-size: 19px; font-weight: 450; letter-spacing: -.02em; line-height: 1.38; text-wrap: balance; }
.research-row > span:nth-child(3) { font-size: 14px; color: var(--muted); line-height: 1.6; }
.research-row .ref { display: block; margin-top: 10px; color: var(--dim); text-transform: none; letter-spacing: .06em; }   /* paper codes keep their case */
.row-arrow { font-size: 22px; }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.roadmap li { padding: 24px 22px 28px 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.roadmap li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.roadmap .mono { color: var(--dim); font-size: 9px; }
.roadmap strong { font-weight: 450; font-size: 16px; line-height: 1.4; }

/* ---------- Early access ---------- */
.join { padding-bottom: clamp(70px, 12vh, 130px); }
.join h2 { font-size: clamp(48px, 6.6vw, 104px); }
.join-sub { font-size: 16px; color: var(--muted); margin-top: 20px; max-width: 560px; line-height: 1.7; }
.join-form { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr auto; gap: 14px; align-items: end; margin-top: 38px; max-width: 1100px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font: 500 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.field input, .field select { background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 12px 0; font-size: 16px; color: var(--ink); border-radius: 0; min-width: 0; }
.field select option { background: var(--panel); }
.field input::placeholder { color: var(--dim); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--orange); }
.join-form .button { height: 48px; grid-column: 4; grid-row: 1; }
.join-form .consent { grid-row: 2; }
.hp { position: absolute; left: -9999px; }
.newsletter-message { font-size: 13px; min-height: 22px; margin-top: 14px; color: var(--muted); }
.newsletter-message.ok { color: #9fd3b5; }
.newsletter-message.error { color: #ff9c7c; }
.privacy { margin-top: 6px; color: var(--dim); font-size: 9px; letter-spacing: .08em; }
.privacy a, .consent a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 760px; }
.consent input { accent-color: var(--orange); margin-top: 4px; flex: none; width: 15px; height: 15px; }

/* ---------- Footer / about ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px var(--gutter) 30px calc(var(--gutter) + 40px); max-width: 1640px; margin: 0 auto; }
.about { display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; align-items: start; padding-bottom: 40px; }
.about .mono { color: var(--dim); padding-top: 4px; }
.about p { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 760px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0 0 24px; }
.legal-links a { color: var(--muted); }
.legal-links a:hover { color: var(--ink); }
.foot-bottom .brand-symbol { width: 22px; height: 22px; color: var(--orange); }
.foot-bottom .wordmark { gap: 8px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); }
.foot-bottom .wordmark { font-size: 16px; color: var(--ink); }
.back-top:hover { color: var(--ink); }

/* ---------- Legal page ---------- */
.legal { max-width: 860px; margin: 0 auto; padding: calc(var(--nav-h) + 56px) var(--gutter) 80px; }
.legal h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.045em; font-weight: 450; }
.legal-updated { color: var(--dim); margin-top: 16px; }
.legal-toc { margin: 32px 0 8px; padding: 18px 22px 18px 40px; border: 1px solid var(--line); color: var(--muted); line-height: 2; }
.legal-toc a:hover { color: var(--orange-2); }
.legal-section { padding-top: 48px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal-block h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.2; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-block h3 { font-size: 15px; font-weight: 600; margin: 26px 0 8px; color: var(--ink); }
.legal-block p, .legal-block li { color: #c4cbd0; font-size: 15px; line-height: 1.75; }
.legal-block p + p { margin-top: 12px; }
.legal-block ul { padding-left: 20px; margin: 10px 0; }
.legal-block li + li { margin-top: 6px; }
.legal-block a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-block code { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: #c4cbd0; }
.legal-table th { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
html[lang="en"] .legal-block[lang="tr"], html[lang="tr"] .legal-block[lang="en"] { display: none; }
.legal-footer { padding-left: var(--gutter); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lab-grid { grid-template-columns: 268px 1fr; }
  .results-grid > div { padding: 0 12px; }
  .results-grid strong { font-size: 24px; }
  .research-row { grid-template-columns: 1fr 1.2fr 30px; }
  .research-row > span:nth-child(3) { grid-column: 1 / 3; }
  .tier { grid-template-columns: 1fr 2fr 70px; }
  .tier-who { display: none; }
}
@media (max-width: 900px) {
  .rail { display: none; }
  .section, .footer { padding-left: var(--gutter); }
  .hero-copy, .chapter, .hud-top, .hud-bottom { left: var(--gutter); }
  .nav-links > a:not(.nav-cta) { display: none; }
  .audience { grid-template-columns: 1fr; }
  .audience h3 { margin-top: 18px; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .roadmap li:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .roadmap li:nth-child(4) { border-top: 1px solid var(--line); }
  .join-form { grid-template-columns: 1fr 1fr; }
  .field-email { grid-column: 1 / -1; }
  .join-form .button { grid-column: 1 / -1; grid-row: auto; justify-content: center; }
  .join-form .consent { grid-row: auto; }
  .orbit-chapter { align-items: flex-end; min-height: 128vh; min-height: 128svh; }
  .orbit-drag { width: 100%; bottom: auto; height: 50%; }
  .orbit-drag-hint { right: auto; left: 50%; transform: translateX(-50%); top: 84px; bottom: auto; white-space: nowrap; }   /* above the globe, clear of the text */
  .orbit-copy { margin: 0 var(--gutter); padding: 0 0 72px; max-width: 620px; }
  /* The globe sits above the text here; a soft fade keeps its lines from running through the copy. */
  .orbit-copy::before { content: ''; position: absolute; z-index: -1; left: calc(-1 * var(--gutter)); right: -100vw; top: -110px; bottom: 0; background: linear-gradient(to bottom, rgba(5, 8, 15, 0), rgba(5, 8, 15, .88) 110px); }
  .about { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .nav-links { gap: 10px; font-size: 12px; }
  .nav-links > a.nav-cta { padding: 6px 10px; }
  .wordmark { font-size: 16px; }
  .brand-symbol { width: 22px; height: 22px; }
  .film { height: 460vh; }
  #film { background-image: url('/frames/poster-m.jpg'); }
  .film-shade { background: linear-gradient(to bottom, rgba(5, 8, 15, .6) 0%, rgba(5, 8, 15, 0) 25%), linear-gradient(to top, var(--bg) 2%, rgba(5, 8, 15, .88) 30%, rgba(5, 8, 15, 0) 64%); }
  .hud-coords { display: none; }
  .hero-copy, .chapter, .chapter-right { left: var(--gutter); right: var(--gutter); bottom: 96px; }
  .hero-copy h1 { font-size: clamp(40px, min(12vw, 8.5vh), 64px); }
  .hero-copy h1 > span { white-space: normal; }
  .hero-copy p { margin-top: 18px; }
  .hero-actions { margin-top: 22px; }
  .button { padding: 12px 16px; gap: 16px; }
  .chapter h2 { font-size: clamp(28px, 8vw, 40px); }
  .steps, .frame-count { display: none; }
  .hud-bottom { bottom: 20px; justify-content: flex-end; }
  .section h2 { font-size: clamp(36px, 10vw, 52px); }
  .lab-intro { display: block; margin-bottom: 26px; }
  .lab-intro > p { margin-top: 18px; }
  .workspace-tag { display: none; }
  .lab-toolbar { height: auto; flex-wrap: wrap; padding: 10px 14px; row-gap: 6px; }
  .lab-toolbar strong { display: none; }
  .toolbar-actions { flex-wrap: wrap; }
  .access-form { grid-template-columns: 1fr; }
  .access-entry { flex-wrap: wrap; }
  .access-entry input { flex: 1 1 180px; width: auto; }
  .orbit-readouts b { font-size: 20px; }
  .orbit-controls { padding: 16px; }
  .lab-grid { display: flex; flex-direction: column; }
  .viewer-column { order: -1; }
  .viewport { min-height: 330px; }
  .control-panel { border-right: 0; border-top: 1px solid var(--line); }
  .control-content { min-height: 0; }
  .results-grid { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .results-grid > div:nth-child(2) { border-right: 0; }
  .analysis-bar { flex-wrap: wrap; }
  .analysis-bar > div:last-child { width: 100%; justify-content: space-between; }
  .method-details > div { grid-template-columns: 1fr; }
  .method-details summary > span:last-child { max-width: 170px; text-align: right; }
  .sweep-panel > div { flex-direction: column; align-items: flex-start; }
  .research-row { grid-template-columns: 1fr 24px; gap: 6px 14px; }
  .research-row > * { grid-column: 1; }
  .research-row .row-arrow { grid-column: 2; grid-row: 1 / 4; }
  .research-row > span:nth-child(3) { grid-column: 1; }
  .tier { grid-template-columns: 1fr 60px; gap: 8px 14px; }
  .tier > span:nth-child(3) { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li, .roadmap li + li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .roadmap li:first-child { border-top: 0; }
  .join-form { grid-template-columns: 1fr; }
  .foot-bottom { flex-wrap: wrap; }
}

@media (max-height: 560px) and (min-width: 600px) {
  .hud-top { display: none; }
  .hero-copy { bottom: 78px; }
  .hero-copy h1 { font-size: clamp(34px, min(7.6vw, 13vh), 124px); }
  .hero-copy p { font-size: 14px; line-height: 1.55; margin-top: 12px; max-width: 640px; }
  .hero-actions { margin-top: 16px; }
  .button { padding: 11px 16px; }
  .chapter { bottom: 78px; }
  .hud-bottom { bottom: 14px; padding-top: 10px; }
  .chapter h2 { font-size: clamp(26px, 7vh, 40px); }
  .orbit-drag-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .button:hover { transform: none; }
}
