/* Phydras website. The app's look (graphite, one amber accent, cyan only for light), large type, motion tied to
   scroll. No italics, no decorative rules: sections are separated by space and by light, not by lines.
   Fonts are served from this site: no third-party requests, no cookies. */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0b0a; --raise: #131312; --raise2: #191918;
  --text: #ececea; --muted: #a09f97; --faint: #5f5e58;
  --amber: #f0a04b; --amber-text: #1a1208; --cyan: #9fdcd3;
  --ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--ui); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
em, i, cite { font-style: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--amber-text); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--amber); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 500; background: var(--raise2); color: var(--text); text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); background: #22221f; }
.btn.primary { background: var(--amber); color: var(--amber-text); }
.btn.primary:hover { background: #f6b066; }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background .35s; }
.top.solid { background: rgba(11, 11, 10, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .btn { height: 42px; padding: 0 20px; font-size: 15px; color: var(--amber-text); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* ---------- hero: an event display ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 100%, rgba(11,11,10,.92) 0%, rgba(11,11,10,.55) 45%, rgba(11,11,10,0) 75%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: max(64px, 9vh); padding-top: 140px; }
.hero h1 { margin: 18px 0 0; font-size: clamp(52px, 10.5vw, 168px); line-height: .9; letter-spacing: -0.055em; font-weight: 600; max-width: 11ch; text-wrap: balance; }
.hero .sub { margin: 32px 0 36px; max-width: 44ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .note { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: max(64px, 9vh); z-index: 2; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--faint); line-height: 1.7; }
@media (max-width: 820px) { .hero .note { display: none; } }
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.ready .line-mask > span { transform: none; }
.ready .line-mask:nth-child(2) > span { transition-delay: .08s; }
.ready .line-mask:nth-child(3) > span { transition-delay: .16s; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }
.ready .fade-up { opacity: 1; transform: none; }

/* ---------- statement ---------- */
.statement { padding: clamp(120px, 18vh, 220px) 0; }
.statement p { margin: 0; font-size: clamp(30px, 4.4vw, 68px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500; max-width: 20ch; }
.statement .w { color: #3a3a36; transition: color .5s; }
.statement .w.lit { color: var(--text); }
.statement .w.lit.accent { color: var(--amber); }

/* ---------- the story: pinned while it scrolls ---------- */
.story { position: relative; height: 360vh; }
.story .pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.story .pin > .wrap { width: 100%; }
.story .grid > * { min-width: 0; }
.story .grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.steps { position: relative; min-height: 380px; }
.step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.step.on { opacity: 1; transform: none; }
.step .label { display: block; margin-bottom: 18px; }
.step h2 { margin: 0 0 18px; font-size: clamp(36px, 4.6vw, 72px); line-height: .98; letter-spacing: -0.045em; font-weight: 600; }
.step p { margin: 0; color: var(--muted); max-width: 38ch; font-size: 18px; }
.meter { display: flex; gap: 8px; margin-top: 28px; }
.meter i { display: block; width: 28px; height: 3px; border-radius: 2px; background: #2a2a27; transition: background .4s, width .4s; }
.meter i.on { background: var(--amber); width: 56px; }
.stage { position: relative; aspect-ratio: 16 / 10.5; border-radius: 18px; overflow: hidden; background: var(--raise); box-shadow: 0 50px 120px rgba(0,0,0,.6); }
.layer { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease); }
.layer.on { clip-path: inset(0 0 0 0); }
.layer img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.layer.on img { transform: scale(1); }
.code { background: #0e0e0d; padding: clamp(18px, 3vw, 40px); font-family: var(--mono); font-size: clamp(11px, 1.05vw, 15px); line-height: 1.75; color: #cfcec8; white-space: pre; overflow: hidden; height: 100%; }
.code .c { color: var(--faint); }
.code .k { color: var(--amber); }
.code .t { color: var(--cyan); }
.code .u { color: #e8e7e1; background: rgba(240,160,75,.10); display: inline-block; width: 100%; }
@media (max-width: 900px) {
  .story { height: auto; }
  .story .pin { position: static; height: auto; padding: 96px 0; }
  .story .grid { grid-template-columns: 1fr; }
  .steps { min-height: 0; }
  .step { position: static; opacity: 1; transform: none; margin-bottom: 40px; }
  .meter { display: none; }
  .layer { position: relative; clip-path: none; margin-bottom: 16px; }
  .stage { aspect-ratio: auto; background: transparent; box-shadow: none; overflow: visible; }
  .layer, .layer img { border-radius: 14px; overflow: hidden; }
  .layer img { transform: none; aspect-ratio: 16 / 10; }
  .code { height: auto; overflow-x: auto; }
}

/* ---------- fields ---------- */
.fields { padding: clamp(96px, 14vh, 180px) 0 40px; }
.fields-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 64px; }
.fields-head h2, .proof h2, .beta h2 { margin: 16px 0 0; font-size: clamp(40px, 6.2vw, 104px); line-height: .92; letter-spacing: -0.05em; font-weight: 600; }
.fields-head p { color: var(--muted); max-width: 36ch; margin: 0; }
.field { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(72px, 11vh, 140px); }
.field:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.field:nth-child(even) .media { order: 2; }
@media (max-width: 900px) { .field, .field:nth-child(even) { grid-template-columns: 1fr; } .field:nth-child(even) .media { order: 0; } }
.media { border-radius: 18px; overflow: hidden; background: var(--raise); clip-path: inset(14% 8% 14% 8% round 18px); transition: clip-path 1.3s var(--ease); }
.media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transform: scale(1.18); transition: transform 1.6s var(--ease); }
.field.in .media { clip-path: inset(0 0 0 0 round 18px); }
.field.in .media img { transform: scale(1); }
.field h3 { margin: 14px 0 16px; font-size: clamp(30px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.field p { margin: 0; color: var(--muted); max-width: 40ch; font-size: 18px; }
.field .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.field .facts li { font-family: var(--mono); font-size: 12.5px; color: var(--text); background: var(--raise2); border-radius: 999px; padding: 6px 12px; }

/* ---------- proof ---------- */
.proof { padding: clamp(96px, 14vh, 180px) 0; background: radial-gradient(80% 60% at 70% 30%, rgba(240,160,75,.07), transparent 70%), var(--raise); }
.proof .intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 80px; }
.proof .intro p { color: var(--muted); margin: 0; max-width: 42ch; }
@media (max-width: 900px) { .proof .intro { grid-template-columns: 1fr; } }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
@media (max-width: 900px) { .numbers { grid-template-columns: 1fr; } }
.num b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(56px, 7.5vw, 120px); line-height: 1; letter-spacing: -0.05em; color: var(--text); font-variant-numeric: tabular-nums; }
.num b small { font-size: .42em; color: var(--muted); letter-spacing: 0; margin-left: .12em; }
.num span { display: block; margin-top: 18px; color: var(--muted); max-width: 30ch; }
.num span strong { color: var(--text); font-weight: 500; }
.plot { margin-top: 96px; border-radius: 18px; overflow: hidden; background: #fff; }
.plot img { width: 100%; }
.cap { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

/* ---------- beta ---------- */
.beta { padding: clamp(120px, 18vh, 220px) 0; }
.beta .grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: end; }
@media (max-width: 900px) { .beta .grid { grid-template-columns: 1fr; } }
.beta ul { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.beta li { color: var(--muted); padding-left: 26px; position: relative; }
.beta li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.beta li strong { color: var(--text); font-weight: 500; }
.addr { display: inline-block; font-family: var(--mono); font-size: 15px; color: var(--muted); margin-left: 16px; user-select: all; }

footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px)); color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .grow { flex: 1; }

/* reveal on scroll */
.rise { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* legal pages */
.legal { padding-top: 140px; padding-bottom: 96px; max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.05em; line-height: .95; margin: 0 0 32px; font-weight: 600; }
.legal h2 { font-size: 22px; margin: 40px 0 8px; letter-spacing: -0.02em; }
.legal p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .line-mask > span, .fade-up, .rise, .step { opacity: 1 !important; transform: none !important; }
  .layer, .media { clip-path: none !important; }
  .media img, .layer img { transform: none !important; }
}

/* ---------- depth ---------- */
.hero #gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero .wrap { z-index: 3; }
.hero::after { z-index: 2; }
.stage-wrap { position: relative; perspective: 1700px; perspective-origin: 50% 40%; }
.stage { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)); will-change: transform; }
.chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: rgba(25, 25, 24, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; color: var(--muted);
  box-shadow: 0 24px 60px rgba(0,0,0,.55); transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0); will-change: transform; white-space: nowrap; }
.chip b { color: var(--text); font-family: var(--mono); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.chip .ok { width: 9px; height: 9px; border-radius: 50%; background: #7bc86c; box-shadow: 0 0 0 4px rgba(123,200,108,.18); }
.chip-a { top: -26px; left: -34px; }
.chip-b { bottom: 22%; right: -38px; }
.chip-c { bottom: -24px; left: 18%; font-family: var(--mono); font-size: 13px; color: var(--text); }
@media (max-width: 900px) { .chip { display: none; } .stage { transform: none; } }
.media { will-change: clip-path; }
.media img { will-change: transform; }
.num { will-change: transform; }
.field .media img { transition: transform .35s cubic-bezier(.2,.7,.1,1); }
.stage { transition: transform .12s linear; }

/* ===================== v3: light, depth, scenes ===================== */
:root { --bg: #0e0e0d; }
body { background: var(--bg); cursor: auto; }
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.top { z-index: 30; }
main, footer { position: relative; z-index: 1; }
.hero::after { background: radial-gradient(110% 80% at 25% 100%, rgba(14,14,13,.78) 0%, rgba(14,14,13,.35) 45%, rgba(14,14,13,0) 72%); }
.hero h1 .accent, .accent { color: var(--amber); text-shadow: 0 0 60px rgba(240,160,75,.35); }

/* the particle pointer */
#cursor { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { html.fx, html.fx * { cursor: none !important; } }

/* --- the detector, assembled on a light bench --- */
.assemble { position: relative; height: 320vh; background: #eceae4; color: #1b1b1a; }
.assemble .pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.assemble .pin > .wrap { width: 100%; }
.assemble .grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.assemble .grid > * { min-width: 0; }
.assemble .label { color: #6b6a63; }
.assemble h2 { margin: 14px 0 18px; font-size: clamp(36px, 4.8vw, 76px); line-height: .96; letter-spacing: -0.045em; font-weight: 600; }
.assemble .copy > p { color: #55544e; max-width: 40ch; margin: 0 0 28px; font-size: 18px; }
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.parts li { display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 12px; color: #8a8981; transition: background .4s, color .4s, transform .4s var(--ease); }
.parts li b { font-weight: 500; min-width: 9.5em; }
.parts li span { font-family: var(--mono); font-size: 13px; }
.parts li.on { background: #fff; color: #1b1b1a; transform: translateX(6px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.parts li.on span { color: #6b6a63; }
.bench { position: relative; height: min(78svh, 720px); perspective: 1400px; perspective-origin: 50% 30%; }
.assembly { position: absolute; left: 50%; top: 64%; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(var(--spin, -36deg)); }
.part { position: absolute; transform-style: preserve-3d; }
.face { position: absolute; backface-visibility: visible; box-sizing: border-box; border: 1px solid rgba(27,27,26,.55); }
.dim { position: absolute; font-family: var(--mono); font-size: 13px; background: #1b1b1a; color: #ececea; padding: 4px 9px; border-radius: 6px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.dim.on { opacity: 1; transform: none; }
.dim-h { left: calc(50% + 62px); top: 38%; }
.dim-w { left: calc(50% - 30px); top: calc(64% + 40px); }
@media (max-width: 900px) { /* on a phone it stays pinned too: the title and steps above, the bench below */
  .assemble { height: 280vh; }
  .assemble .pin { align-items: start; padding-top: 78px; box-sizing: border-box; }
  .assemble .grid { grid-template-columns: 1fr; gap: 8px; }
  .assemble h2 { font-size: clamp(30px, 8.4vw, 44px); margin: 10px 0 14px; }
  .assemble .copy > p { display: none; }
  .assemble .modes { margin-bottom: 10px; }
  .parts li { display: none; }
  .parts li.on { display: flex; transform: none; }
  .bench { height: calc(100svh - 300px); min-height: 330px; }
}

/* --- the beam and the dose --- */
.dose { padding: clamp(110px, 16vh, 200px) 0; background: linear-gradient(180deg, rgba(14,14,13,0), rgba(20,20,19,.86) 18%, rgba(20,20,19,.86) 82%, rgba(14,14,13,0)); }
.dose-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.dose-head h2 { margin: 16px 0 0; font-size: clamp(40px, 6.2vw, 104px); line-height: .92; letter-spacing: -0.05em; font-weight: 600; }
.dose-head p { color: var(--muted); max-width: 40ch; margin: 0; }
.dose-stage { position: relative; border-radius: 22px; overflow: hidden; background: radial-gradient(90% 120% at 20% 10%, #23231f, #141413 70%); box-shadow: 0 60px 140px rgba(0,0,0,.55); }
.dose-stage canvas { display: block; width: 100%; aspect-ratio: 16 / 8; }
.readout { position: absolute; top: 22px; right: 24px; display: grid; gap: 14px; text-align: right; }
.readout b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.readout small { font-size: .5em; color: var(--muted); }
.dose .cap.below { margin: 16px 0 0; max-width: 70ch; }
@media (max-width: 700px) { .dose-stage canvas { aspect-ratio: 4 / 3.4; } .readout { position: static; padding: 18px 20px 0; text-align: left; grid-template-columns: repeat(3, auto); } .readout b { font-size: 20px; } .dose-stage .cap { position: static; padding: 0 20px 18px; } }

/* brighter elsewhere: sections let the sky through, cards lift off it */
.proof { background: radial-gradient(80% 60% at 70% 30%, rgba(240,160,75,.10), transparent 70%), rgba(24,24,22,.82); }
.field .facts li { background: rgba(40,40,37,.85); }
.beta { background: radial-gradient(60% 80% at 80% 60%, rgba(240,160,75,.14), transparent 70%); }

/* ===================== v4: one page that turns light and back, smoothly ===================== */
:root {
  --L: 0; /* 0 dark … 1 light, set from the scroll (scenes.js) */
  --page: color-mix(in oklab, #0e0e0d, #eceae4 calc(var(--L) * 100%));
  --Lt: 0; /* the text's own factor: it crosses over quickly, so it never sits grey on grey for long */
  --text: color-mix(in oklab, #ececea, #1b1b1a calc(var(--Lt) * 100%));
  --muted: color-mix(in oklab, #a09f97, #5a5952 calc(var(--Lt) * 100%));
  --faint: color-mix(in oklab, #5f5e58, #8c8b83 calc(var(--Lt) * 100%));
}
body { background: var(--page); color: var(--text); }
.top.solid { background: color-mix(in oklab, var(--page) 86%, transparent); }
.assemble { background: none; color: var(--text); }
.assemble .label { color: var(--muted); }
.assemble .copy > p { color: var(--muted); }
.parts li { color: var(--faint); }
.parts li.on { background: color-mix(in oklab, #ffffff calc(var(--L) * 100%), #1f1f1d); color: var(--text); }
.parts li.on span { color: var(--muted); }
.dim { background: var(--text); color: var(--page); }

/* the modelling steps, drawn before the parts arrive */
.bench canvas#sketch { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s; }
.modes { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; }
.modes span { font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; color: var(--faint); background: color-mix(in oklab, var(--text) 6%, transparent); transition: background .3s, color .3s; }
.modes span.on { color: var(--page); background: var(--text); }
.parts { transition: opacity .4s; }
.assemble[data-phase="model"] .parts { opacity: .35; }

/* the satellite */
.space { padding: clamp(110px, 16vh, 200px) 0; }
.space-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.space-head h2 { margin: 16px 0 0; font-size: clamp(40px, 6.2vw, 104px); line-height: .92; letter-spacing: -0.05em; font-weight: 600; }
.space-head p { color: var(--muted); max-width: 42ch; margin: 0; }
.orbit { position: relative; height: min(76svh, 700px); border-radius: 22px; overflow: hidden;
  background: radial-gradient(70% 90% at 70% 20%, rgba(91,155,230,.16), transparent 60%), radial-gradient(60% 80% at 20% 90%, rgba(240,160,75,.10), transparent 60%), #0b0c10; box-shadow: 0 60px 140px rgba(0,0,0,.55); }
.orbit .stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 72% 12%, #fff6, transparent), radial-gradient(1px 1px at 38% 72%, #fff5, transparent), radial-gradient(1.5px 1.5px at 86% 64%, #fff7, transparent), radial-gradient(1px 1px at 22% 88%, #fff4, transparent), radial-gradient(1px 1px at 56% 40%, #fff5, transparent); }
.orbit .earth { position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: 78%; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #2f6fb8 0%, #173f74 38%, #0b1d38 60%, #070d18 72%); box-shadow: 0 -30px 120px rgba(91,155,230,.35), inset 0 30px 60px rgba(160,210,255,.25); }
.sat-stage { position: absolute; inset: 0; perspective: 1300px; perspective-origin: 50% 40%; }
.sat { position: absolute; left: 50%; top: 44%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(var(--satY, -32deg)) rotateZ(4deg); }
.sat .part { position: absolute; transform-style: preserve-3d; }
.sat .face { border: 1px solid rgba(255,255,255,.18); display: grid; overflow: hidden; }
.sat .cell { background: #3b3f47; transition: background .25s; }
.sat .panel .cell { background: #1c2a4a; border: 1px solid rgba(120,150,210,.25); }
#rays { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sat-readout { position: absolute; top: 22px; right: 24px; text-align: right; display: grid; gap: 12px; color: #ececea; }
.sat-readout .label { color: #a09f97; }
.sat-readout b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.scale { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: #a09f97; }
.scale i { display: block; width: 160px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #440154, #3b528b, #21908c, #5dc863, #fde725); }
@media (max-width: 700px) { .orbit { height: 520px; } .sat-readout { top: 14px; right: 14px; } .sat-readout b { font-size: 20px; } }

/* v5: the vertex shows through the sections below the hero */
.proof { background: radial-gradient(80% 60% at 70% 30%, rgba(240,160,75,.08), transparent 70%), rgba(24,24,22,.42); }

/* v6: labels over the WebGL scenes, drawn like the app's dimensions */
.tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; background: #1b1b1a; color: #ececea;
  padding: 4px 9px; border-radius: 6px; opacity: 0; transition: opacity .35s; }
.tag.on { opacity: 1; }
.tags canvas.profile { position: absolute; inset: 0; width: 100%; height: 100%; }

/* v6: the particle steps back on the light page */
.sky { opacity: calc(1 - var(--L) * .9); }
.bench canvas.scene, .stage3d canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bench .poster, .stage3d .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.assemble .parts li { cursor: default; }

/* the formats */
.inputs { padding: clamp(110px, 16vh, 200px) 0 clamp(60px, 10vh, 120px); }
.inputs-head, .dose-head, .moon-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.inputs-head h2, .dose-head h2, .moon-head h2, .ai h2 { margin: 16px 0 0; font-size: clamp(40px, 6.2vw, 104px); line-height: .92; letter-spacing: -0.05em; font-weight: 600; }
.inputs-head p, .dose-head p, .moon-head p { color: var(--muted); max-width: 44ch; margin: 0; }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fmt { margin: 0; border-radius: 18px; padding: 14px 16px 18px; background: color-mix(in oklab, var(--text) 5%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text) 9%, transparent); }
.fmt canvas { display: block; width: 100%; aspect-ratio: 1 / .8; }
.fmt figcaption b { display: block; font-family: var(--mono); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; margin-top: 6px; }
.fmt figcaption span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; margin-top: 4px; }
@media (max-width: 900px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the scenes in their frames */
.dose, .moon { padding: clamp(110px, 16vh, 200px) 0; background: none; }
.stage3d { position: relative; height: min(76svh, 700px); border-radius: 22px; overflow: hidden;
  background: radial-gradient(70% 90% at 70% 15%, rgba(91,155,230,.13), transparent 60%), #0b0c10; box-shadow: 0 60px 140px rgba(0,0,0,.5); }
.stage3d.light { background: none; box-shadow: none; }
.stage3d .readout { position: absolute; top: 22px; right: 24px; text-align: right; display: grid; gap: 12px; color: #ececea; pointer-events: none; }
.stage3d .readout .label { color: #a09f97; }
.stage3d .readout b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(20px, 2.4vw, 34px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stage3d .scale { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: #a09f97; }
.stage3d .scale i { display: block; width: 160px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #30123b, #4686fb, #1ae4b6, #a2fc3c, #faba39, #e4460a, #7a0403); }
.stage3d .facts { position: absolute; left: 20px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stage3d .facts li { font-family: var(--mono); font-size: 12.5px; color: #ececea; background: rgba(40,40,37,.85); border-radius: 999px; padding: 6px 12px; }
.cap.below { margin-top: 18px; }
@media (max-width: 700px) { .stage3d { height: 560px; } .stage3d .readout { top: 14px; right: 14px; } }

/* the AI connector: a conversation beside what it builds */
.ai { position: relative; height: 300vh; }
.ai .pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.ai .pin > .wrap { width: 100%; }
.ai .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.ai h2 { margin-bottom: 26px; }
.chat .msg { max-width: 46ch; padding: 14px 18px; border-radius: 16px; font-size: 16.5px; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s var(--ease); }
.chat .msg.you { background: color-mix(in oklab, var(--text) 9%, transparent); margin-left: auto; border-bottom-right-radius: 4px; }
.chat .msg.them { background: rgba(240,160,75,.12); box-shadow: inset 0 0 0 1px rgba(240,160,75,.28); border-bottom-left-radius: 4px; margin-top: 12px; }
.chat .calls { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.chat .calls li { display: flex; gap: 12px; align-items: baseline; font-family: var(--mono); font-size: 13px; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .35s var(--ease); }
.chat .calls li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fd3e6; flex: none; transform: translateY(-1px); }
.chat .calls code { color: var(--text); }
.chat .calls span { color: var(--muted); }
.chat .on { opacity: 1 !important; transform: none !important; }
.ai-side .stage3d { height: min(56svh, 520px); }
.ai-note { color: var(--muted); max-width: 52ch; margin: 18px 0 0; font-size: 16.5px; }
.ai-note strong { color: var(--text); font-weight: 500; }
@media (max-width: 900px) {
  .ai { height: 320vh; }
  .ai .pin { align-items: start; padding-top: 74px; box-sizing: border-box; }
  .ai .grid { grid-template-columns: 1fr; gap: 6px; }
  .ai h2 { font-size: clamp(30px, 8.4vw, 44px); margin: 8px 0 12px; }
  .chat .msg { font-size: 14px; padding: 10px 14px; }
  .chat .calls li { font-size: 11.5px; }
  .chat .calls li span { display: none; }
  .ai-side .stage3d { height: 30svh; }
  .ai-note { display: none; }
}
.still .readout, .still .scale { display: none; }

/* v7: the AI connector, two windows and the cable between them */
.ai { height: 330vh; }
.ai h2 { margin: 12px 0 0; }
.ai-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.ai-head p { color: var(--muted); max-width: 50ch; margin: 0; font-size: 16.5px; }
.ai-head p strong { color: var(--text); font-weight: 500; }
.ai-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(80px, 10vw, 160px); height: min(58svh, 540px); }
.cable { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.cable .wire { fill: none; stroke: #3c3c39; stroke-width: 3.5; stroke-linecap: round; }
.cable .wire-glow { fill: none; stroke: #f0a04b; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 2 7; opacity: 0; transition: opacity .6s; }
.ai.plugged .cable .wire-glow { opacity: .55; }
.cable .plug { fill: #262624; stroke: #f0a04b; stroke-width: 1.2; }
.cable .pulse { filter: drop-shadow(0 0 6px currentColor); }
.win { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 0; border-radius: 16px; overflow: hidden;
  background: rgba(21,21,20,.94); box-shadow: 0 40px 100px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.07); transition: box-shadow .35s; }
.win .bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; color: #a09f97; white-space: nowrap; }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; background: #34342f; flex: none; }
.win .who { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; }
.win .who b { color: #ececea; font-weight: 500; }
.win .conn { margin-left: auto; display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); color: #5f5e58; transition: color .4s, background .4s; }
.win .conn em { width: 7px; height: 7px; border-radius: 50%; background: #5f5e58; transition: background .4s, box-shadow .4s; }
.ai.plugged .win .conn { color: #cfe9d8; background: rgba(76,208,125,.12); }
.ai.plugged .win .conn em { background: #4cd07d; box-shadow: 0 0 8px #4cd07d; }
.win .socket { margin-left: auto; width: 18px; height: 12px; border-radius: 3px; border: 1px solid #5f5e58; transition: border-color .4s, background .4s; }
.ai.plugged .win .socket { border-color: #f0a04b; background: rgba(240,160,75,.25); }
.win .chat { padding: 16px; flex: 1; overflow: hidden; color: #ececea; }
.win .chat .msg { max-width: 94%; font-size: 14.5px; }
.win .chat .msg.you { background: rgba(255,255,255,.07); }
.win .chat .calls code { color: #ececea; }
.win .chat .calls span { color: #a09f97; }
.win.phydras .stage3d { flex: 1; height: auto; border-radius: 0; }
.win.phydras.hit { box-shadow: 0 40px 100px rgba(0,0,0,.5), inset 0 0 0 1.5px rgba(240,160,75,.75); }
.assistants { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; }
.assistants li { font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; color: var(--muted);
  background: color-mix(in oklab, var(--text) 6%, transparent); transition: color .4s, background .4s; }
.assistants li.on { color: var(--page); background: var(--text); }
@media (max-width: 900px) {
  .ai { height: 340vh; }
  .ai-head { margin-bottom: 12px; }
  .ai-head p { display: none; }
  .ai-stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 26svh; gap: 46px; height: calc(100svh - 250px); }
  .win .chat { padding: 10px 12px; }
  .win .chat .msg { font-size: 12.5px; padding: 8px 12px; }
  .win .chat .calls li { font-size: 11px; }
  .win .chat .calls li span { display: none; }
  .assistants { margin-top: 14px; gap: 6px; }
  .assistants li { font-size: 11px; padding: 4px 9px; }
}
.ai .pin { padding-top: 64px; box-sizing: border-box; }
.ai h2 { font-size: clamp(36px, 4.6vw, 72px); }
.ai-stage { height: min(52svh, 500px); }
@media (max-width: 900px) { .ai h2 { font-size: clamp(28px, 8vw, 40px); } .ai-stage { height: calc(100svh - 220px); } }
/* the Moon: stars, and the Earth low in the sky */
#regolith { background: radial-gradient(1px 1px at 12% 14%, #fff9, transparent), radial-gradient(1px 1px at 33% 8%, #fff7, transparent), radial-gradient(1.4px 1.4px at 58% 18%, #fffa, transparent),
  radial-gradient(1px 1px at 71% 6%, #fff6, transparent), radial-gradient(1px 1px at 88% 22%, #fff8, transparent), radial-gradient(1px 1px at 46% 27%, #fff5, transparent),
  radial-gradient(1px 1px at 6% 30%, #fff6, transparent), radial-gradient(1.2px 1.2px at 94% 9%, #fff8, transparent), #07080b; }
#regolith::before { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%; right: 18%; top: 13%;
  background: radial-gradient(circle at 35% 35%, #9fd0ff, #2f6fb8 45%, #0d2546 75%); box-shadow: 0 0 24px rgba(120,180,255,.35); }

/* v8: Phydras stands out in the statement, Geant4 named */
.statement p { max-width: 24ch; }
.statement .w.brand { display: inline-block; font-weight: 650; font-size: 1.32em; letter-spacing: -0.05em; margin-top: .25em; }
.statement .w.brand.lit { color: var(--amber); text-shadow: 0 0 40px rgba(240,160,75,.35); }
.statement .w.g4.lit { color: #9fdcd3; }

/* the connector: a plug you drag yourself */
.ai { height: auto; padding: clamp(90px, 14vh, 170px) 0; }
.ai .pin { position: static; height: auto; padding-top: 0; overflow: visible; }
.ai-stage { height: min(60svh, 540px); }
.plug-handle { position: absolute; left: 0; top: 0; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: grab; touch-action: none; }
.plug-handle::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px solid rgba(240,160,75,.8); animation: ring 1.6s ease-out infinite; }
.ai.plugged .plug-handle::after, .ai.dragging .plug-handle::after { animation: none; opacity: 0; }
.ai.dragging .plug-handle { cursor: grabbing; }
.plug-handle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.plug-hint { position: absolute; left: 0; top: 0; z-index: 4; font-family: var(--mono); font-size: 12px; white-space: nowrap; color: #f0a04b; pointer-events: none; transition: opacity .3s; }
.ai.plugged .plug-hint, .ai.dragging .plug-hint { opacity: 0; }
.win.phydras .port { position: absolute; left: -1px; top: calc(55% - 13px); width: 9px; height: 26px; border-radius: 0 5px 5px 0; background: #262624;
  box-shadow: inset 0 0 0 1.5px #5f5e58; z-index: 3; }
.ai:not(.plugged) .win.phydras .port { box-shadow: inset 0 0 0 1.5px #f0a04b, 0 0 14px rgba(240,160,75,.5); }
.ai.plugged .win.phydras .port { box-shadow: inset 0 0 0 1.5px #4cd07d, 0 0 12px rgba(76,208,125,.5); }
.win .waiting { margin: 14px 0 0; font-family: var(--mono); font-size: 12.5px; color: #a09f97; transition: opacity .3s; }
.ai.plugged .win .waiting { display: none; }
@media (max-width: 900px) {
  .ai-stage { height: auto; grid-template-rows: auto 34svh; }
  .win .chat { min-height: 230px; }
  .win.phydras .port { left: calc(50% - 13px); top: -1px; width: 26px; height: 9px; border-radius: 0 0 5px 5px; }
}

/* v9: Geant4 named under the statement; the connector's feedback */
.statement .under { margin: 34px 0 0; font-family: var(--mono); font-size: 14px; letter-spacing: .02em; color: var(--muted); max-width: 60ch; }
.statement .under b { color: #9fdcd3; font-weight: 500; }
@keyframes jolt { 0% { transform: none; } 15% { transform: translateX(-7px) rotate(-.6deg); } 30% { transform: translateX(6px) rotate(.5deg); }
  45% { transform: translateX(-4px); } 60% { transform: translateX(3px); } 75% { transform: translateX(-1.5px); } 100% { transform: none; } }
.win.jolt { animation: jolt .45s cubic-bezier(.36,.07,.19,.97); }
.win.phydras.jolt { box-shadow: 0 40px 100px rgba(0,0,0,.5), inset 0 0 0 1.5px rgba(76,208,125,.9), 0 0 40px rgba(76,208,125,.25); }
.ai-stage .spark { position: absolute; z-index: 4; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px #4cd07d; animation: spark .6s ease-out forwards; }
@keyframes spark { from { transform: scale(.4); opacity: 1; } to { transform: scale(4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .win.jolt, .ai-stage .spark { animation: none; } }

/* v10: the conversation types itself */
.win .chat { overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; }
.win .chat::-webkit-scrollbar { display: none; }
.win .chat .msg { margin-top: 12px; }
.win .chat .msg:first-child { margin-top: 0; }
.win .chat .msg.you { margin-left: auto; width: fit-content; }
.chat .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat .calls { margin-top: 12px; }
.chat .calls li.thinking { opacity: 1; transform: none; gap: 5px; }
.chat .calls li.thinking::before { display: none; }
.chat .calls li.thinking i { width: 6px; height: 6px; border-radius: 50%; background: #a09f97; animation: think 1s ease-in-out infinite; }
.chat .calls li.thinking i:nth-child(2) { animation-delay: .15s; } .chat .calls li.thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* v11: the comma that becomes a particle; Geant4 as the engine */
.hero .comma { display: inline-block; transition: opacity .3s, transform .45s var(--ease), color .2s; }
.hero .comma.gone { opacity: 0; transform: translateY(.12em) scale(.3); color: var(--amber); }
canvas.drop { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 15; }
.engine { margin-top: 26px; padding: 16px 18px; border-radius: 14px; max-width: 46ch; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline;
  background: rgba(95,211,230,.07); box-shadow: inset 0 0 0 1px rgba(95,211,230,.25); }
.engine span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #9fdcd3; }
.engine b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.engine em { grid-column: 1 / -1; font-style: normal; font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 6px; }

/* v12: the engine */
.engine-sec { padding: clamp(110px, 16vh, 200px) 0; }
.engine-sec .grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.engine-sec h2 { margin: 16px 0 22px; font-size: clamp(44px, 6.6vw, 112px); line-height: .92; letter-spacing: -0.05em; font-weight: 600; }
.engine-sec h2 .g4 { color: #9fdcd3; text-shadow: 0 0 50px rgba(95,211,230,.3); }
.engine-sec p { color: var(--muted); max-width: 44ch; font-size: 18px; margin: 0; }
.engine-sec p strong { color: var(--text); font-weight: 500; }
.engine-sec .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.engine-sec .facts li { font-family: var(--mono); font-size: 12.5px; color: var(--text); background: rgba(40,40,37,.85); border-radius: 999px; padding: 6px 12px; }
.motor { position: relative; aspect-ratio: 1.45; }
.motor canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.motor .io { position: absolute; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.motor .io.in { left: 2%; top: 22%; } .motor .io.out { right: 2%; bottom: 18%; color: #9fdcd3; }
@media (max-width: 900px) { .engine-sec .grid { grid-template-columns: 1fr; } }
.sky { transition: opacity .8s; }
html.calm .sky { opacity: .18; }

/* v13: the comma charges before it falls; light runs across "simulation" */
.hero .comma.charge { color: var(--amber); transform: scale(1.7) translateY(-.04em); text-shadow: 0 0 24px rgba(240,160,75,.9); transition: transform .26s var(--ease), color .15s, text-shadow .2s; }
.hero .comma.charge.gone { opacity: 0; transform: translateY(.2em) scale(.2); }
@keyframes sheen { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .accent { animation: none; } }

/* v14: the title's light without a box around it */

/* the engine section, pinned: the engine, then the code */
.engine-sec { position: relative; height: 230vh; padding: 0; }
.engine-sec .pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.engine-sec .pin > .wrap { width: 100%; }
.eng-copy, .eng-stage { position: relative; display: grid; }
.eng-copy > *, .eng-stage > * { grid-area: 1 / 1; }
.eng-step { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .7s var(--ease); pointer-events: none; }
.eng-step.on { opacity: 1; transform: none; pointer-events: auto; }
.eng-view { opacity: 0; transition: opacity .6s, transform .8s var(--ease); }
.eng-view.motor { transform: scale(.92); } .eng-view.motor.on { opacity: 1; transform: none; }
.eng-view.codewin { transform: translateY(60px) scale(.97); align-self: center; } .eng-view.codewin.on { opacity: 1; transform: none; }
.eng-view.codewin .code { height: auto; max-height: 62svh; }
@media (max-width: 900px) {
  .engine-sec .pin { align-items: start; padding-top: 74px; box-sizing: border-box; }
  .engine-sec h2 { font-size: clamp(34px, 9vw, 52px); margin: 10px 0 12px; }
  .engine-sec p { font-size: 15.5px; }
  .eng-view.codewin .code { font-size: 10.5px; max-height: 40svh; }
}
@media (min-width: 901px) { .story { height: 260vh; } }

/* v15: the light on "simulation" is a copy of the word on top, clipped to its letters, so nothing outside them is painted */
.hero h1 .accent.sheen { position: relative; display: inline-block; color: var(--amber); text-shadow: 0 0 40px rgba(240,160,75,.28); }
.hero h1 .accent.sheen::after { content: attr(data-text); position: absolute; left: 0; top: 0; text-shadow: none; color: transparent;
  background: linear-gradient(100deg, transparent 0%, transparent 40%, rgba(255,240,215,.9) 48%, #fffaf2 50%, rgba(255,240,215,.9) 52%, transparent 60%, transparent 100%);
  background-size: 320% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text;
  animation: sheen 4.6s cubic-bezier(.45,.05,.3,1) 1.2s infinite; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero h1 .accent.sheen::after { animation: none; opacity: 0; } }
.settled .hero .line-mask { overflow: visible; }

/* v16: the feature cards under the story's picture */
.features { position: relative; display: grid; margin-top: 22px; }
.feat-set { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feat { padding: 14px 16px; border-radius: 14px; background: rgba(28,28,26,.86); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
.feat-set.on .feat { opacity: 1; transform: none; }
.feat-set.on .feat:nth-child(2) { transition-delay: .07s; } .feat-set.on .feat:nth-child(3) { transition-delay: .14s; }
.feat span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.feat b { display: block; margin-top: 8px; font-weight: 500; font-size: 15.5px; color: #ececea; letter-spacing: -0.01em; }
.feat em { display: block; margin-top: 4px; font-style: normal; font-size: 13.5px; line-height: 1.4; color: #a09f97; }
@media (max-width: 900px) {
  .features { gap: 8px; }
  .feat-set { position: static; grid-template-columns: 1fr 1fr; }
  .feat-set .feat { opacity: 1; transform: none; }
  .features { display: grid; grid-template-columns: 1fr; }
  .feat-set { grid-area: auto; }
}
@media (min-width: 901px) { .story { height: 460vh; } }
.layer.plotlayer { background: #fff; display: grid; place-items: center; }
.layer.plotlayer img { object-fit: contain; height: auto; }
