/* Harness² — supplementary project page.
   Cinematic scroll-story hero, floating glass nav, alternating dark / light bands,
   Inter Tight display + Inter text (OFL, bundled), JetBrains Mono for data.
   Every colour used by components is a theme variable, redefined in .dark / .light. */

@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-greek-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --night: #080b10;
  --night-2: #0e131b;
  --paper: #f4f3ee;
  --snow: #eef1f5;

  --accent: #f2a81e;          /* "ours", active pills */
  --accent-2: #ffcf6e;
  --accent-ink: #2a1c00;
  --accent-soft: rgba(242, 168, 30, 0.16);

  --outer: #d0683f;           /* outer harness (Claude) */
  --outer-soft: rgba(208, 104, 63, 0.14);
  --inner: #6d62c4;           /* skills in weights */
  --inner-soft: rgba(109, 98, 196, 0.14);
  --code: #3f9a6b;            /* skills in code */
  --code-soft: rgba(63, 154, 107, 0.14);
  --blue: #3f78c0;
  --blue-soft: rgba(63, 120, 192, 0.14);
  --red: #d0493d;

  --c-ours: #f2a81e;
  --c-best: #8db36b;
  --c-auriga: #b9a6e3;
  --c-pyrua: #8fb0d6;
  --c-pi: #cdbfa8;
  --c-astra: #9d978b;

  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --col: 780px;
  --wide: 1080px;
  --r: 18px;
}

/* theme scopes ------------------------------------------------------- */
.light, :root {
  --bg: var(--paper);
  --ink: #0e1116;
  --ink-2: rgba(14, 17, 22, 0.80);
  --ink-3: rgba(14, 17, 22, 0.62);
  --ink-4: rgba(14, 17, 22, 0.44);
  --rule: rgba(14, 17, 22, 0.12);
  --rule-2: rgba(14, 17, 22, 0.07);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --card-hover: #ffffff;
  --thead: #ecebe4;
  --code-bg: rgba(14, 17, 22, 0.06);
  --shadow: 0 14px 40px -22px rgba(14, 17, 22, 0.35);
}
.dark {
  --bg: var(--night);
  --ink: #eef1f5;
  --ink-2: rgba(238, 241, 245, 0.82);
  --ink-3: rgba(238, 241, 245, 0.62);
  --ink-4: rgba(238, 241, 245, 0.42);
  --rule: rgba(238, 241, 245, 0.13);
  --rule-2: rgba(238, 241, 245, 0.07);
  --card: rgba(255, 255, 255, 0.045);
  --card-solid: #151b24;
  --card-hover: rgba(255, 255, 255, 0.075);
  --thead: rgba(255, 255, 255, 0.05);
  --code-bg: rgba(255, 255, 255, 0.09);
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--night); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.82em; }
code { background: var(--code-bg); padding: 0.08em 0.36em; border-radius: 5px; white-space: nowrap; }
strong { font-weight: 650; }
sup, sub { line-height: 0; }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 80; display: flex; justify-content: center; padding: 0 14px; pointer-events: none; transition: transform 0.45s cubic-bezier(.2,.7,.2,1), opacity 0.45s; }
.nav.hide { transform: translateY(-90px); opacity: 0; }
.nav-in {
  pointer-events: auto; display: flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(14, 19, 27, 0.58); color: var(--snow);
  border: 1px solid rgba(238, 241, 245, 0.12);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav.light .nav-in { background: rgba(255, 255, 255, 0.78); color: #0e1116; border-color: rgba(14, 17, 22, 0.09); box-shadow: 0 8px 30px -16px rgba(14, 17, 22, 0.3); }
.brand { font: 700 15.5px var(--display); letter-spacing: -0.01em; margin-right: 10px; text-decoration: none; white-space: nowrap; }
.brand sup { font-size: 0.62em; color: var(--accent); margin-left: 1px; vertical-align: 0.7em; }
.nav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { font: 500 13.5px var(--body); opacity: 0.72; text-decoration: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: 0.2s; }
.nav-links a:hover, .nav-links a.on { opacity: 1; background: rgba(127, 140, 150, 0.2); }
.nav-cta { font: 600 13.5px var(--body); background: var(--snow); color: var(--night); text-decoration: none; padding: 8px 15px; border-radius: 999px; white-space: nowrap; }
.nav.light .nav-cta { background: #0e1116; color: #fff; }

/* ------------------------------------------------- hero: pinned story */
.hero { position: relative; height: 820vh; background: var(--night); color: var(--snow); }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; transition: filter 0.6s ease; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero.is-ready .hero-bg video { opacity: 0.72; transform: scale(1); }
.pin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 50%, rgba(8, 11, 16, 0.6) 100%),
    linear-gradient(180deg, rgba(8, 11, 16, 0.55) 0, transparent 18%, transparent 72%, rgba(8, 11, 16, 0.85) 100%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: var(--dim, 0); transition: opacity 0.2s linear; }
/* warm glow behind the story */
.pin::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; z-index: 1; pointer-events: none; background: radial-gradient(closest-side, rgba(242, 168, 30, 0.12), transparent 70%); opacity: var(--dim, 0); }

.hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.h-title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-52%); text-align: center; padding: 0 20px; will-change: opacity, transform; }
.h-pill { display: inline-flex; align-items: center; gap: 9px; font: 500 11.5px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(238, 241, 245, 0.14); background: rgba(14, 19, 27, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: rgba(238, 241, 245, 0.8); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.h-pill .dot, .realchip .dot { width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 0 4px rgba(242, 168, 30, 0.18), 0 0 14px var(--accent); }
.wordmark {
  margin: 24px 0 0; font: 700 clamp(72px, 14vw, 196px)/0.95 var(--display); letter-spacing: -0.02em;
  text-shadow: 0 2px 50px rgba(8, 11, 16, 0.55);
}
.wordmark b {
  font-size: 0.42em; vertical-align: 1.05em; margin-left: 0.04em; font-weight: 700; letter-spacing: 0;
  background: linear-gradient(160deg, #ffe3a3 0%, var(--accent) 55%, #e27b1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 22px rgba(242, 168, 30, 0.45));
}
.hero .wordmark, .hero .tagline, .hero .h-pill, .hero .btns { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero.is-revealed .h-pill { opacity: 1; transform: none; }
.hero.is-revealed .wordmark { opacity: 1; transform: none; transition-delay: 0.12s; }
.hero.is-revealed .tagline { opacity: 1; transform: none; transition-delay: 0.45s; }
.hero.is-revealed .btns { opacity: 1; transform: none; transition-delay: 0.75s; }
.tagline { font: 500 clamp(18px, 2.2vw, 27px)/1.32 var(--display); letter-spacing: 0; margin: 22px auto 0; max-width: 800px; color: var(--snow); text-shadow: 0 1px 18px rgba(8, 11, 16, 0.7); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; pointer-events: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px var(--body); padding: 11px 19px; border-radius: 999px; text-decoration: none; border: 1px solid rgba(238, 241, 245, 0.14); background: rgba(14, 19, 27, 0.5); color: var(--snow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-1px); background: rgba(238, 241, 245, 0.14); }
.btn.primary { background: var(--snow); color: var(--night); border-color: var(--snow); }
.btn svg { width: 16px; height: 16px; }
.scrollcue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(238, 241, 245, 0.7); white-space: nowrap; }
.scrollcue span { width: 1px; height: 44px; background: linear-gradient(180deg, var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* beats: big captions, bottom-left */
.hud, .layer { --gx: max(28px, calc((100vw - 1240px) / 2 + 28px)); --bw: min(400px, 31vw); }
.beat { position: absolute; left: var(--gx); bottom: 12vh; width: var(--bw); opacity: 0; transform: translateY(18px); transition: opacity 0.5s, transform 0.5s; }
.beat.on { opacity: 1; transform: none; }
.beat::before { content: ""; position: absolute; inset: -90px -120px -120px -300px; z-index: -1; background: radial-gradient(60% 60% at 40% 55%, rgba(8, 11, 16, 0.85), rgba(8, 11, 16, 0.5) 55%, transparent 100%); filter: blur(10px); }
.beat .k { display: inline-flex; gap: 10px; align-items: center; font: 500 11.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.beat .k::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.beat .bh { font: 650 clamp(30px, 3.9vw, 54px)/1.04 var(--display); letter-spacing: -0.032em; margin: 12px 0 0; text-wrap: balance; text-shadow: 0 2px 30px rgba(8, 11, 16, 0.8); }
.beat p:not(.bh) { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: rgba(238, 241, 245, 0.74); text-shadow: 0 1px 16px rgba(8, 11, 16, 0.9); }

.rail { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 13px; align-items: flex-end; font: 500 12.5px var(--body); letter-spacing: 0; color: rgba(238, 241, 245, 0.42); }

/* story layers */
.layer { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity, transform; }
.stage-box {
  position: absolute; left: calc(var(--gx) + var(--bw) + 56px); right: max(232px, calc(var(--gx) + 36px)); top: 50%;
  max-width: 820px; margin-left: auto; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
}
.screen { position: relative; padding-top: 22px; }
.screen video { width: 100%; height: auto; display: block; border-radius: 12px; background: #000; border: 1px solid rgba(238, 241, 245, 0.14); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.03); }
.screen-tag { position: absolute; left: 2px; top: 0; font: 500 11px var(--mono); color: rgba(238, 241, 245, 0.7); white-space: nowrap; }
.screen-tag code { background: none; padding: 0; font-size: 1em; color: var(--accent-2); }
.screens3 { display: flex; flex-direction: column; gap: 6px; }


/* build diagram */
.bd { display: grid; grid-template-columns: 1fr 54px 1fr; gap: 0; align-items: stretch; }
.bd-panel { padding: 16px; border-radius: 16px; background: rgba(14, 19, 27, 0.72); border: 1px solid rgba(238, 241, 245, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 8px; }
.bd-h b { display: block; font: 650 17px var(--display); letter-spacing: -0.01em; }
.bd-h span, .bd-step span, .bd-box span, .bd-chip span { display: block; font-size: 11.5px; line-height: 1.35; color: rgba(238, 241, 245, 0.55); }
.bd-h { margin-bottom: 4px; }
.bd-step { padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(238, 241, 245, 0.1); background: rgba(255, 255, 255, 0.03); font-size: 14px; transition: background 0.35s, border-color 0.35s, box-shadow 0.35s; }
.bd-step b { font-weight: 600; }
.bd-step.on { background: rgba(242, 168, 30, 0.16); border-color: rgba(242, 168, 30, 0.7); box-shadow: 0 0 24px -6px rgba(242, 168, 30, 0.6); }
.bd-until { font: 500 11.5px var(--mono); color: var(--accent); text-align: right; }
.bd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-box { padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(238, 241, 245, 0.1); background: rgba(255, 255, 255, 0.03); font-size: 13.5px; }
.bd-box b { font-weight: 600; }
.bd-sub { font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(238, 241, 245, 0.45); margin-top: 4px; }
.bd-chip { opacity: 0.18; transform: translateY(6px); transition: opacity 0.45s, transform 0.45s, border-color 0.45s; }
.bd-chip.on { opacity: 1; transform: none; }
.bd-chip.vla.on { border-color: rgba(140, 128, 230, 0.75); background: rgba(109, 98, 196, 0.18); }
.bd-chip.loc.on { border-color: rgba(96, 150, 220, 0.75); background: rgba(63, 120, 192, 0.18); }
.bd-chip.code.on { border-color: rgba(80, 180, 125, 0.7); background: rgba(63, 154, 107, 0.16); }
.bd-arrow { display: flex; align-items: center; justify-content: center; position: relative; }
.bd-arrow::before { content: ""; position: absolute; left: 6px; right: 10px; top: 50%; height: 2px; background: linear-gradient(90deg, rgba(242, 168, 30, 0.2), var(--accent)); }
.bd-arrow::after { content: ""; position: absolute; right: 4px; top: calc(50% - 5px); border: 6px solid transparent; border-left: 9px solid var(--accent); border-right: 0; }
.bd-arrow span { position: relative; top: -16px; font: 500 10.5px var(--mono); color: var(--accent); }



/* story: shared glass panel */
.panel { padding: 22px 24px; border-radius: 18px; background: rgba(14, 19, 27, 0.74); border: 1px solid rgba(238, 241, 245, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.layer.on .stage-box { pointer-events: auto; }
.bd-inl { display: inline !important; font-size: 12px !important; }
.bd-step { font-size: 16px; padding: 12px 15px; }
.bd-h b { font-size: 21px; }
.bd-h span { font-size: 12.5px !important; }
.bd-panel { padding: 20px; gap: 10px; }
.bd-box { font-size: 14.5px; }
.duo { display: flex; flex-direction: column; gap: 10px; }


/* success-rate beat */
.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(238, 241, 245, 0.1); margin-bottom: 16px; }
.seg button { font: 600 12.5px var(--body); color: rgba(238, 241, 245, 0.6); background: none; border: 0; padding: 6px 14px; border-radius: 99px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--snow); color: var(--night); }
.srb { display: grid; grid-template-columns: 210px 1fr 64px; gap: 16px; align-items: center; padding: 11px 0; }
.srb + .srb { border-top: 1px solid rgba(238, 241, 245, 0.07); }
.srb-n { font-size: 15px; font-weight: 600; color: rgba(238, 241, 245, 0.82); line-height: 1.25; }
.srb-n em { display: block; font-style: normal; font-weight: 400; font-size: 12.5px; color: rgba(238, 241, 245, 0.5); }
.srb-t { height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.srb-t i { display: block; height: 100%; width: 0; border-radius: 6px; background: rgba(238, 241, 245, 0.34); transition: width 0.12s linear; }
.srb.ours .srb-t i { background: linear-gradient(90deg, #e27b1f, var(--accent)); box-shadow: 0 0 24px rgba(242, 168, 30, 0.45); }
.srb b { font: 650 22px var(--display); text-align: right; letter-spacing: -0.02em; color: rgba(238, 241, 245, 0.7); }
.srb.ours b { font-size: 34px; color: var(--accent); }
.sr-foot { margin-top: 10px; font: 500 11px var(--mono); color: rgba(238, 241, 245, 0.45); }

/* no-human beat: build curve */
.auto-h { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(238, 241, 245, 0.7); margin-bottom: 6px; }
.auto-h code { background: none; padding: 0; color: var(--accent-2); }
.auto-svg { width: 100%; height: auto; display: block; overflow: visible; }
.auto-svg .ax { stroke: rgba(238, 241, 245, 0.14); }
.auto-svg text { fill: rgba(238, 241, 245, 0.5); font: 500 11px var(--mono); }
.auto-svg .ln { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(242, 168, 30, 0.5)); }
.auto-svg .ar { fill: url(#autofill); }
.auto-svg circle { fill: var(--night); stroke: var(--accent); stroke-width: 2.5; transition: opacity 0.3s; }
.auto-svg .lab { fill: var(--snow); font: 650 15px var(--display); }
.auto-svg .lab.big { font-size: 26px; fill: var(--accent); }
.auto-svg .vt { fill: rgba(238, 241, 245, 0.62); font: 500 11.5px var(--body); }

/* efficiency beat: race */
.race-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(238, 241, 245, 0.7); margin-bottom: 12px; }
.race-h i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 6px 0 12px; vertical-align: -1px; }
.race-h i.o, .rc-t i.o { background: linear-gradient(90deg, #e27b1f, var(--accent)); }
.race-h i.d, .rc-t i.d { background: rgba(238, 241, 245, 0.34); }
.rc { display: grid; grid-template-columns: 140px 1fr 70px; gap: 14px; align-items: center; padding: 12px 0; }
.rc + .rc { border-top: 1px solid rgba(238, 241, 245, 0.07); }
.rc-n code { background: none; padding: 0; color: rgba(238, 241, 245, 0.85); font-size: 12.5px; }
.rc-t { display: flex; flex-direction: column; gap: 5px; }
.rc-t i { display: block; height: 12px; border-radius: 4px; width: 0; position: relative; }
.rc-t i.d { height: 8px; }
.rc-t i.done::after { content: "✓"; position: absolute; right: -18px; top: -3px; font: 700 12px var(--body); color: var(--accent); font-style: normal; }
.rc b { font: 700 26px var(--display); letter-spacing: -0.03em; color: var(--accent); text-align: right; opacity: 0.18; transform: scale(0.85); transform-origin: right center; transition: opacity 0.35s, transform 0.35s; }
.rc.fin b { opacity: 1; transform: none; }
.race-clock { margin-top: 10px; font: 500 12px var(--mono); color: rgba(238, 241, 245, 0.5); text-align: right; }
.race-clock span { color: var(--snow); font-size: 15px; }

/* zero-shot beat */
.vs { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-radius: 16px; background: rgba(14, 19, 27, 0.74); border: 1px solid rgba(238, 241, 245, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.vs > div { display: flex; align-items: baseline; gap: 10px; }
.vs b { font: 700 40px/1 var(--display); letter-spacing: -0.035em; color: var(--accent); }
.vs b small { font-size: 0.5em; color: rgba(238, 241, 245, 0.6); }
.vs span { font-size: 13.5px; color: rgba(238, 241, 245, 0.75); }
.vs .dim b { color: rgba(238, 241, 245, 0.55); font-size: 30px; }
.vs-x { font: 500 12px var(--mono); color: rgba(238, 241, 245, 0.4); text-transform: uppercase; }
.rail a { display: flex; align-items: center; gap: 10px; transition: color 0.3s; color: inherit; text-decoration: none; pointer-events: auto; cursor: pointer; }
.rail a:hover { color: var(--snow); }
.rail a::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width 0.3s, background 0.3s; }
.rail a.on { color: var(--snow); }
.rail a.on::after { width: 30px; background: var(--accent); }


.realchip { position: absolute; left: max(24px, calc((100vw - 1240px) / 2 + 24px)); bottom: 30px; display: flex; align-items: center; gap: 9px; font: 500 12px var(--body); color: rgba(238, 241, 245, 0.78); }
.realchip code { background: rgba(255, 255, 255, 0.1); }
/* stage chips under the story videos */
.sc { display: flex; flex-wrap: wrap; gap: 6px; }
.sc span { font: 500 12px var(--mono); padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(238, 241, 245, 0.14); background: rgba(14, 19, 27, 0.6); color: rgba(238, 241, 245, 0.45); transition: 0.3s; }
.sc .v::after { content: " · π0.5"; opacity: 0.7; }
.sc .l::after { content: " · Astra + KPNet"; opacity: 0.7; }
.sc .a::after { content: " · Astra"; opacity: 0.7; }
.sc--vla .v { color: #fff; border-color: rgba(140, 128, 230, 0.8); background: rgba(109, 98, 196, 0.35); }
.sc--loc .l { color: #fff; border-color: rgba(96, 150, 220, 0.85); background: rgba(63, 120, 192, 0.38); }
/* two-level diagram: clickable blocks */
.bd { grid-template-rows: auto auto; }
.bd-x { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; transition: opacity 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.bd-x:hover { border-color: rgba(242, 168, 30, 0.55); }
.bd.has-sel .bd-x { opacity: 0.38; }
.bd.has-sel .bd-x.sel, .bd.has-sel .bd-x.lnk { opacity: 1; }
.bd-x.sel { background: rgba(242, 168, 30, 0.2) !important; border-color: var(--accent) !important; box-shadow: 0 0 26px -6px rgba(242, 168, 30, 0.7); }
.bd-x.lnk { background: rgba(96, 170, 255, 0.14) !important; border-color: rgba(120, 180, 255, 0.85) !important; box-shadow: 0 0 22px -8px rgba(120, 180, 255, 0.8); }
.bd-box.vla b { color: #b9b1ff; } .bd-box.loc b { color: #9cc4f2; } .bd-box.code b { color: #8fd6ad; }
.bd-deploy { margin-top: auto; padding-top: 10px; font: 500 11.5px var(--mono); color: var(--accent); }
.bd-cap { grid-column: 1 / -1; min-height: 66px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(14, 19, 27, 0.78); border: 1px solid rgba(238, 241, 245, 0.12); font-size: 14px; line-height: 1.5; color: rgba(238, 241, 245, 0.8); }
.bd-cap:empty::before { content: "Click any block: amber = selected, blue = what it is built by or builds."; color: rgba(238, 241, 245, 0.5); }
.bd-cap b { color: var(--snow); }
/* no-human beat */
.nohuman { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; background: rgba(242, 168, 30, 0.16); border: 1px solid rgba(242, 168, 30, 0.6); color: var(--accent-2); font-weight: 600; }
.nohuman .dot { width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.auto-svg .mark line { stroke: var(--accent); stroke-dasharray: 4 4; opacity: 0.7; }
.auto-svg .mark rect { fill: var(--accent); }
.auto-svg .mark text { fill: var(--night); font-weight: 700; }
.auto-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(238, 241, 245, 0.08); }
.auto-f div { display: flex; flex-direction: column; gap: 2px; }
.auto-f b { font: 700 30px/1 var(--display); letter-spacing: -0.03em; color: var(--snow); font-variant-numeric: tabular-nums; }
.auto-f div:first-child b { color: var(--accent); }
.auto-f span { font-size: 12.5px; color: rgba(238, 241, 245, 0.6); }

/* per-task results bars (success beat, 'Per task') */
.endbars { padding: 20px 22px; border-radius: 16px; background: rgba(14, 19, 27, 0.72); border: 1px solid rgba(238, 241, 245, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.endbars-h { display: flex; gap: 18px; font-size: 12.5px; color: rgba(238, 241, 245, 0.7); margin-bottom: 10px; }
.endbars-h i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.eb { display: grid; grid-template-columns: 112px 1fr 46px; gap: 12px; align-items: center; padding: 5px 0; font-size: 13px; }
.eb + .eb { border-top: 1px solid rgba(238, 241, 245, 0.06); }
.eb--all { font-weight: 650; border-top: 1px solid rgba(238, 241, 245, 0.2) !important; padding-top: 9px; margin-top: 3px; }
.eb-n { color: rgba(238, 241, 245, 0.85); }
.eb-bars { display: flex; flex-direction: column; gap: 3px; }
.eb-bars i { display: block; height: 7px; border-radius: 4px; width: 0; transition: width 0.12s linear; }
.eb-bars i.o { background: linear-gradient(90deg, #e27b1f, var(--accent)); }
.eb-bars i.b { background: rgba(238, 241, 245, 0.32); height: 5px; }
.eb-v { font: 500 12px var(--mono); text-align: right; color: var(--accent-2); line-height: 1.2; }
.eb-v small { display: block; color: rgba(238, 241, 245, 0.45); font-size: 10.5px; }

/* ------------------------------------------------------------- bands */
.band { position: relative; z-index: 3; background: var(--bg); color: var(--ink); padding: 120px 0 110px; }
.band.first { margin-top: -22vh; padding-top: calc(22vh + 40px); background: linear-gradient(180deg, transparent 0, rgba(8, 11, 16, 0.92) 14vh, var(--night) 22vh); }
.band.light.from-dark { background: linear-gradient(180deg, var(--night) 0, #2a2c2f 80px, #b9b8b3 170px, var(--paper) 250px); padding-top: 250px; }
.band.dark.from-light { background: linear-gradient(180deg, var(--paper) 0, #b9b8b3 80px, #2a2c2f 170px, var(--night) 250px); padding-top: 250px; }
.band.dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 85% 20%, rgba(242, 168, 30, 0.06), transparent 70%); }
.wrap { position: relative; z-index: 1; max-width: calc(var(--wide) + 56px); margin: 0 auto; padding: 0 28px; }
@media (min-width: 1240px) and (max-width: 1600px) { .band .wrap { margin-left: max(250px, calc((100vw - var(--wide)) / 2 - 28px)); margin-right: 24px; } }

.sh { margin-bottom: 40px; }
.kicker { font: 500 12px var(--mono); letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.light .kicker { color: #b8730a; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
.sh h2 { font: 700 clamp(40px, 6.4vw, 84px)/0.98 var(--display); letter-spacing: -0.045em; max-width: 14ch; text-wrap: balance; }
.sh--sm h2 { font-size: clamp(32px, 4vw, 48px); }
.lead { max-width: 920px; margin: 26px 0 0; font-size: clamp(17px, 1.45vw, 20.5px); line-height: 1.58; color: var(--ink-3); }
.lead strong, .lead em { color: var(--ink); }
h3 { margin: 72px 0 16px; font: 650 clamp(24px, 2.4vw, 31px)/1.15 var(--display); letter-spacing: -0.025em; scroll-margin-top: 90px; }
h4 { margin: 0 0 6px; font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.prose { max-width: var(--col); color: var(--ink-2); }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--ink-4); }
.prose b, .prose strong { color: var(--ink); }
.muted { color: var(--ink-3); }
.small { font-size: 15px; }
.note-call { max-width: var(--col); margin: 30px 0; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); background: var(--card); color: var(--ink-2); font-size: 15.5px; }
.note-call b { color: var(--ink); }

/* ------------------------------------------------------ overview band */
.flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.flow li a { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: var(--r); overflow: hidden; border: 1px solid var(--rule); background: var(--card); transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.flow li a:hover { transform: translateY(-3px); border-color: rgba(242, 168, 30, 0.5); background: var(--card-hover); }
.flow img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--rule); transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.flow li a:hover img { transform: scale(1.03); }
.flow b { padding: 16px 16px 0; font: 650 17px/1.25 var(--display); letter-spacing: -0.015em; }
.flow .fd { padding: 8px 16px 18px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 44px 0 10px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat { padding: 24px 20px 22px; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat__value { font: 650 clamp(34px, 3.6vw, 50px)/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.dark .stat__value { background: linear-gradient(180deg, #fff, #c9ced6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:first-child .stat__value { background: linear-gradient(160deg, #ffe3a3, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__value small { font-size: 0.5em; color: var(--ink-3); margin-left: 2px; }
.stat__label { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }

/* "more" disclosures */
.more-list { margin-top: 40px; border-top: 1px solid var(--rule); max-width: var(--wide); }
details.more { border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
details.more > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 36px; grid-template-areas: "t c" "d c"; column-gap: 24px; align-items: center; padding: 20px 0; }
details.more > summary::-webkit-details-marker { display: none; }
.more .mt { grid-area: t; font: 650 19px/1.3 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.more .md { grid-area: d; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.more .chev { grid-area: c; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); position: relative; transition: transform 0.35s cubic-bezier(.2,.7,.2,1), background 0.25s, border-color 0.25s; }
.more .chev::before, .more .chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.6px; margin: -0.8px 0 0 -6.5px; background: var(--ink); border-radius: 1px; }
.more .chev::after { transform: rotate(90deg); }
.more summary:hover .chev { background: var(--card-hover); border-color: var(--ink-4); }
.more[open] .chev { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.more[open] .chev::before, .more[open] .chev::after { background: var(--accent-ink); }
.more-in { padding: 4px 0 30px; animation: more-in 0.45s cubic-bezier(.2,.7,.2,1); }
@keyframes more-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.more-in > .prose:last-child p:last-child { margin-bottom: 0; }
.terms { display: grid; grid-template-columns: 200px 1fr; gap: 12px 28px; margin: 0; font-size: 15.5px; }
.terms dt { font-weight: 650; color: var(--ink); }
.terms dd { margin: 0; color: var(--ink-3); }

/* film theater */
.film-fig { margin: 70px 0 0; scroll-margin-top: 90px; }
.film-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; max-width: none; color: var(--ink); }
.film-head h3 { margin: 0; font: 700 clamp(26px, 2.8vw, 34px) var(--display); letter-spacing: -0.035em; }
.film-head .dur { font: 500 13px var(--mono); color: var(--ink-4); }
.pi { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--snow); position: relative; cursor: pointer; transition: transform 0.2s; }
.pi:hover { transform: scale(1.06); }
.pi::before { content: ""; position: absolute; left: 15px; top: 12px; border: 8px solid transparent; border-left: 13px solid var(--night); border-right: 0; }
.pi.playing::before { left: 13px; top: 13px; width: 4px; height: 14px; border: 0; background: var(--night); box-shadow: 9px 0 0 var(--night); }
.theater { border-radius: 26px; padding: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--rule); box-shadow: 0 40px 120px -40px rgba(242, 168, 30, 0.22), 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.theater video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 4px; margin-top: 8px; }
.chapters::-webkit-scrollbar { display: none; }
.chapters button { min-width: 0; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 12px; cursor: pointer; color: var(--ink-3); transition: background 0.2s, color 0.2s; }
.chapters button:hover { background: var(--card-hover); color: var(--ink); }
.chapters button.on { background: rgba(242, 168, 30, 0.14); color: var(--ink); }
.chapters .t { display: block; font: 500 11px var(--mono); color: var(--ink-4); }
.chapters button.on .t { color: var(--accent); }
.chapters .n { display: block; font: 600 12.5px/1.3 var(--body); }

/* ---------------------------------------------------- outline (fixed) */
.outline { position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 60; width: 196px; max-height: calc(100vh - 140px); overflow-y: auto; padding-left: 14px; border-left: 1px solid var(--rule); scrollbar-width: none; opacity: 0; pointer-events: none; transition: opacity 0.4s; display: none; }
.outline::-webkit-scrollbar { display: none; }
.outline.is-shown { opacity: 1; pointer-events: auto; }
.outline a { position: relative; display: block; padding: 5px 0; font-size: 13.5px; line-height: 1.3; color: var(--ink-3); text-decoration: none; transition: color 0.2s ease; }
.outline a[data-level="2"] { padding: 3px 0 3px 12px; font-size: 12.5px; color: var(--ink-4); }
.outline a:hover, .outline a.is-active { color: var(--ink); }
.outline a.is-active::before { content: ""; position: absolute; left: -16px; top: 5px; bottom: 5px; width: 3px; border-radius: 2px; background: var(--accent); }
.outline a[data-level="2"].is-active::before { top: 3px; bottom: 3px; }
@media (min-width: 1240px) { .outline { display: block; } }

/* ------------------------------------------------------------- figures */
figure { margin: 34px 0; }
figure.wide { max-width: var(--wide); }
.figure-frame { overflow: hidden; border: 1px solid var(--rule); border-radius: 16px; background: #fff; cursor: zoom-in; box-shadow: var(--shadow); }
.figure-frame img { width: 100%; height: auto; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.figure-frame:hover img { transform: scale(1.012); }
figcaption { max-width: var(--col); margin-top: 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
figcaption b, .fig-label { color: var(--ink); font-weight: 650; }
.builds-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; max-width: var(--wide); margin-top: 30px; }
.builds-grid .note-call { margin: 18px 0 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding: 0 0 0 26px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 9px; height: 9px; border-radius: 3px; background: var(--outer); opacity: 0.8; }
.ticks b { color: var(--ink); }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: var(--wide); margin: 22px 0 8px; }
.kind { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--rule); border-top: 3px solid var(--k); background: var(--card); }
.kind b { font: 650 18px var(--display); color: var(--k); }
.kind > span { margin-left: 8px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.kind p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.kind--vla { --k: var(--inner); } .kind--loc { --k: var(--blue); } .kind--code { --k: var(--code); }
.hint { margin: 22px 0 8px; font-size: 14px; color: var(--ink-3); }
.builds-grid figure { margin: 0; }
.cards--stack { display: flex; flex-direction: column; gap: 12px; margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 3vw; background: rgba(8, 11, 16, 0.92); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; background: #fff; }

/* --------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- pills */
.pill-group { margin: 18px 0 12px; }
.pill-group__label { margin-bottom: 8px; font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--ink-2); cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.pill:hover { border-color: var(--ink-4); transform: translateY(-1px); }
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pill .count { font-family: var(--mono); font-size: 11.5px; opacity: 0.7; }
.pill--sm { padding: 4px 12px; font-size: 13px; }
.pill code { color: inherit; }
.dot--ok { background: #4fb07e; }
.dot--fail { background: var(--red); }

/* --------------------------------------------------------------- player */
.player { position: relative; overflow: hidden; border-radius: 16px; background: #000; border: 1px solid rgba(238, 241, 245, 0.1); box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7); }
.player video { width: 100%; height: auto; background: #000; }
.player__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: #0b0e13; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #fff; }
.player__title { font: 600 15px/1.3 var(--display); letter-spacing: -0.01em; }
.player__note { margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, 0.62); }
.badge { flex: none; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font: 600 11px var(--mono); letter-spacing: 0.04em; color: #fff; white-space: nowrap; }
.badge--speed { background: var(--accent); color: var(--accent-ink); }
.badge--ok { background: rgba(63, 154, 107, 0.92); }
.badge--fail { background: rgba(208, 73, 61, 0.92); }
.player__badges { display: flex; gap: 6px; flex: none; }
.player__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; background: #0b0e13; color: #fff; font: 12px var(--mono); }
.player__btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.player__btn:hover { background: rgba(255, 255, 255, 0.12); }
.player__btn svg { width: 16px; height: 16px; }
.player__track { position: relative; flex: 1; height: 18px; cursor: pointer; }
.player__track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.player__fill { position: absolute; left: 0; top: 8px; height: 3px; width: 0; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(242, 168, 30, 0.6); }
.player__marks { position: absolute; inset: 0; pointer-events: none; }
.player__mark { position: absolute; top: 4px; width: 2px; height: 11px; border-radius: 1px; background: rgba(255, 255, 255, 0.55); }
.player__mark--ok { background: #7fd3a5; }
.player__mark--fail { background: #ff8a7f; }
.player__time { min-width: 86px; text-align: right; color: rgba(255, 255, 255, 0.75); }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.player:fullscreen video { max-height: calc(100vh - 44px); object-fit: contain; }

.gallery__desc { margin-top: 14px; max-width: var(--col); font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.gallery__desc b { color: var(--ink); }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.thumb { position: relative; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #111; cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.thumb img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; opacity: 0.72; transition: opacity 0.2s ease; }
.thumb:hover img { opacity: 1; }
.thumb:hover { transform: translateY(-1px); }
.thumb[aria-pressed="true"] { border-color: var(--accent); }
.thumb[aria-pressed="true"] img { opacity: 1; }
.thumb span { position: absolute; left: 6px; bottom: 4px; display: inline-flex; align-items: center; gap: 5px; font: 11px var(--mono); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); }

/* ------------------------------------------------------------- readout */
.readout { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); margin-top: 12px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--card); font-variant-numeric: tabular-nums; }
.readout > div { padding: 10px 14px; }
.readout > div + div { border-left: 1px solid var(--rule-2); }
.readout__k { font: 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.readout__v { margin-top: 2px; font: 500 17px var(--mono); transition: color 0.3s ease; }
.readout__v.flash { color: var(--outer); }
.stagebar { position: relative; display: flex; height: 26px; margin-top: 10px; border-radius: 8px; overflow: hidden; font: 10.5px var(--mono); }
.stagebar > div { display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; border-right: 1px solid var(--bg); color: #fff; opacity: 0.5; transition: opacity 0.2s ease; }
.stagebar > div.is-on { opacity: 1; }
.stagebar__head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); pointer-events: none; }

/* ---------------------------------------------------------------- tables */
.table-wrap { max-width: var(--wide); margin: 26px 0; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--thead); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); }
thead tr.group th { font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); border-bottom: 1px solid var(--rule); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--rule-2); }
tr.ours td { background: var(--accent-soft); font-weight: 650; }
tr.ours:hover td { background: rgba(242, 168, 30, 0.24); }
tr.ours td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
td.avg, th.avg { background: rgba(63, 120, 192, 0.07); }
.td-wrap td, .td-wrap th { white-space: normal; text-align: left; vertical-align: top; }
.table-cap { max-width: var(--col); margin: -12px 0 26px; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.table-cap b { color: var(--ink); }

/* ---------------------------------------------------------------- charts */
.chart { max-width: var(--wide); margin: 10px 0 10px; }
.card-pad { padding: 22px 24px 14px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font-size: 13.5px; }
.legend button { display: inline-flex; align-items: center; gap: 7px; padding: 3px 6px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); cursor: pointer; transition: opacity 0.2s ease, background 0.2s; }
.legend button:hover { background: var(--rule-2); }
.legend button[aria-pressed="false"] { opacity: 0.35; text-decoration: line-through; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--body); fill: var(--ink-3); }
.chart .axis line { stroke: var(--rule); }
.chart .bar { transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), y 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease; }
.chart .val { font-size: 10.5px; fill: var(--ink-2); opacity: 0; transition: opacity 0.4s ease 0.7s; }
.chart.is-in .val { opacity: 1; }
.tooltip { position: fixed; z-index: 90; padding: 6px 10px; border-radius: 8px; background: #0e1116; color: #fff; font-size: 13px; line-height: 1.35; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 10px)); transition: opacity 0.12s ease; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
.tooltip.is-on { opacity: 1; }

.hbars { max-width: var(--col); margin: 24px 0; }
.hbar { display: grid; grid-template-columns: 320px 1fr 64px; align-items: center; gap: 12px; padding: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.hbar__track { position: relative; height: 12px; border-radius: 6px; background: var(--rule-2); overflow: hidden; }
.hbar__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: var(--c-best); transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hbar--ours .hbar__fill { background: linear-gradient(90deg, #e27b1f, var(--c-ours)); }
.hbar--ours { font-weight: 600; color: var(--ink); }
.hbar__v { font: 13px var(--mono); text-align: right; }

/* real-robot bars */
.real-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: center; max-width: var(--wide); margin-bottom: 26px; }
.real-top .table-wrap { margin: 0; }
.realbars { padding: 20px 22px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); }
.rb-h { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.rb-h i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.rb { display: grid; grid-template-columns: 136px 1fr 50px; gap: 12px; align-items: center; padding: 9px 0; }
.rb + .rb { border-top: 1px solid var(--rule-2); }
.rb-t code { font-size: 12px; }
.rb-bars { display: flex; flex-direction: column; gap: 4px; }
.rb-bars .hbar__track { height: 10px; }
.rb-ours { background: linear-gradient(90deg, #e27b1f, var(--c-ours)) !important; }
.rb-pi { background: var(--c-pi) !important; }
.rb-v { font: 12px/1.25 var(--mono); text-align: right; color: var(--ink-3); }
.rb-v b { color: var(--accent-2); font-weight: 600; }

/* takeover probe bars */
.probe { max-width: var(--col); margin: 22px 0 6px; padding: 18px 22px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); }
.probe-row { display: grid; grid-template-columns: 300px 1fr 64px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.probe-row b { font-weight: 650; color: var(--ink); }
.probe-row b.t-inner { color: var(--inner); }
.probe-ok { background: linear-gradient(90deg, #8c80e6, var(--inner)) !important; }

/* --------------------------------------------------------- method cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: var(--wide); margin: 24px 0; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; padding: 20px 22px 18px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); font-size: 15px; line-height: 1.55; transition: transform 0.25s ease, box-shadow 0.25s ease; overflow: hidden; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-2); }
.card h4 { display: flex; align-items: center; gap: 8px; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--k, var(--rule)); }
.card--outer { --k: var(--outer); }
.card--inner { --k: var(--inner); }
.card--code { --k: var(--code); }
.card--blue { --k: var(--blue); }
.card .big { display: block; margin: 4px 0 8px; font: 650 27px/1.15 var(--display); letter-spacing: -0.03em; color: var(--ink); }

/* stage chain (interactive) */
.chain { max-width: var(--wide); margin: 26px 0; }
.chain__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.stage { position: relative; padding: 12px 12px 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); font-size: 14px; line-height: 1.35; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s; }
.stage:hover, .stage.is-on { transform: translateY(-2px); border-color: var(--accent); background: var(--card-hover); box-shadow: var(--shadow); }
.stage__id { font: 11px var(--mono); color: var(--ink-4); }
.stage__name { margin: 2px 0 8px; font-weight: 600; color: var(--ink); }
.tag { display: inline-block; margin: 2px 4px 0 0; padding: 1px 7px; border-radius: 999px; font: 600 11px var(--mono); }
.tag--vla { background: var(--inner-soft); color: var(--inner); }
.tag--loc { background: var(--blue-soft); color: var(--blue); }
.tag--code { background: var(--code-soft); color: var(--code); }
.tag--vlm { background: var(--outer-soft); color: var(--outer); }
.chain__detail { min-height: 72px; margin-top: 12px; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--card); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.chain__detail b { color: var(--ink); }

/* outer loop: circle (click a step) + text pane of fixed height */
.loop { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: center; max-width: var(--wide); margin: 26px 0; padding: 26px 40px 26px 28px; border: 1px solid var(--rule); border-radius: 18px; background: var(--card); }
.loop__fig svg { width: 100%; height: auto; display: block; }
.loop svg text { font-family: var(--body); }
.loop__node { cursor: pointer; }
.loop__node circle { transition: fill 0.25s ease; }
.loop__node:hover circle { fill: var(--outer-soft); }
.loop__node.is-on circle { fill: var(--outer); }
.loop__node.is-on text { fill: #fff; }
.loop__ring { stroke-dasharray: 6 8; animation: spin 18s linear infinite; transform-origin: 170px 170px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loop__back { margin-top: 8px; text-align: center; font: 500 11.5px var(--mono); color: var(--outer); }
.loop__text { min-height: 290px; display: flex; align-items: center; }
.loop__text > div { width: 100%; }
.loop__text h4 { color: var(--ink); font: 650 24px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 12px; }
.loop__n { display: block; font: 500 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--outer); margin-bottom: 6px; }
.loop__text p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.causes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cause { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.cause b { display: block; margin-bottom: 2px; font: 600 12px var(--mono); color: var(--outer); }

/* equations */
.eq { max-width: var(--col); margin: 18px 0 22px; padding: 12px 18px; overflow-x: auto; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--card); font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.8; white-space: nowrap; color: var(--ink); }
.eq .up { font-style: normal; }
.eq .n { float: right; font-family: var(--body); font-style: normal; font-size: 14px; color: var(--ink-4); }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: 0.85em; line-height: 1.2; }
.frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 3px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
.two-col .prose { max-width: none; }

.footer { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; padding: 36px max(28px, calc((100vw - var(--wide)) / 2)) 46px; background: var(--night); color: rgba(238, 241, 245, 0.55); font-size: 13.5px; border-top: 1px solid rgba(238, 241, 245, 0.08); }
.footer .brand { color: var(--snow); font-size: 18px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .loop { grid-template-columns: 1fr; gap: 16px; }
  .loop__fig { max-width: 300px; margin: 0 auto; }
  .loop__text { min-height: 0; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builds-grid, .real-top { grid-template-columns: 1fr; }
  .kinds { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  /* story: media on top, caption below */
  .stage-box { left: 16px; right: 16px; max-width: none; top: 64px; transform: none; gap: 8px; }
  .beat { left: 18px; right: 18px; width: auto; bottom: 7vh; }
  .beat .bh { font-size: clamp(28px, 7.4vw, 40px); }
  .beat p:not(.bh) { font-size: 14.5px; }
  .rail { display: none; }
  .bd { grid-template-columns: 1fr; gap: 6px; }
  .bd-arrow { height: 18px; }
  .bd-arrow::before, .bd-arrow::after, .bd-arrow span { display: none; }
  .bd-panel { padding: 10px; gap: 5px; }
  .bd-h span, .bd-step span, .bd-box span, .bd-until { display: none; }
  .bd-cap { min-height: 0; font-size: 12.5px; padding: 8px 10px; margin-top: 6px; }
  .bd-outer { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .bd-outer .bd-h, .bd-outer .bd-row { grid-column: 1 / -1; }
  .bd-sub, .bd-deploy { display: none; }
  .bd-inner { gap: 5px; }
  .bd-step, .bd-box { padding: 5px 9px; font-size: 12.5px; }
  .bd-h b { font-size: 15px !important; }
  .bd-panel { padding: 9px !important; }
  .auto-f b { font-size: 20px; }
  .auto-h { flex-direction: column; gap: 6px; }
  .bd-step, .bd-box { padding: 6px 10px; font-size: 13px; }
  .bd-h b { font-size: 15px; }
  .screens3 { gap: 6px; }
  .sc span { font-size: 10.5px; padding: 3px 8px; }
  .realchip { display: none; }
  .panel { padding: 14px; }
  .srb { grid-template-columns: 112px 1fr 44px; gap: 10px; padding: 7px 0; }
  .srb-n { font-size: 13px; }
  .srb b { font-size: 16px; }
  .srb.ours b { font-size: 22px; }
  .rc { grid-template-columns: 1fr 52px; gap: 6px 10px; padding: 8px 0; }
  .rc-t { grid-column: 1 / -1; grid-row: 2; }
  .rc b { font-size: 20px; }
  .vs { padding: 10px 14px; gap: 12px; }
  .vs b { font-size: 28px; }
  .vs .dim b { font-size: 22px; }
  .vs span { font-size: 12px; }
  .eb { grid-template-columns: 82px 1fr 40px; font-size: 12px; padding: 3px 0; }
  .endbars { padding: 12px 14px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-in { padding-left: 14px; }
  .nav-links { display: none; }
  .band { padding: 90px 0 80px; }
  .band.light.from-dark, .band.dark.from-light { padding-top: 220px; }
  .wrap { padding: 0 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .flow { grid-template-columns: 1fr; }
  .cards, .cards--3, .kinds { grid-template-columns: 1fr; }
  .loop { padding: 16px; }
  .chain__row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hbar { grid-template-columns: 130px 1fr 50px; font-size: 13px; }
  .probe-row { grid-template-columns: 1fr 70px; }
  .probe-row .hbar__track { grid-column: 1 / -1; grid-row: 2; }
  .readout { grid-template-columns: repeat(2, 1fr); }
  .causes { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; gap: 2px 0; }
  .terms dd { margin-bottom: 10px; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .rb { grid-template-columns: 1fr 50px; }
  .rb-bars { grid-column: 1 / -1; grid-row: 2; }
  .theater { padding: 6px; border-radius: 18px; }
  .theater video { border-radius: 13px; }
  .h-pill { font-size: 10px; letter-spacing: 0.05em; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .wordmark, .hero .tagline, .hero .h-pill, .hero .btns { opacity: 1; transform: none; transition: none; }
  .loop__ring, .scrollcue span { animation: none; }
}

.card--link { text-decoration: none; color: inherit; display: block; transition: transform 0.2s, box-shadow 0.2s; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.more-in .cards { margin: 14px 0 4px; }

/* arXiv link + affiliation logos (2026-12-01) */
.nav-ax { font: 600 13px var(--mono); letter-spacing: 0.04em; color: inherit; text-decoration: none; padding: 7px 12px; border: 1px solid currentColor; border-radius: 999px; opacity: 0.85; margin-right: 10px; }
.nav-ax:hover { opacity: 1; }
.affil { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 28px; margin-top: 34px; pointer-events: auto; }
.affil .seal { width: 96px; height: 96px; padding: 5px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); object-fit: contain; }
.affil .wm { height: 34px; width: auto; margin-left: 8px; filter: drop-shadow(0 1px 8px rgba(8, 11, 16, 0.7)); }
.hero .affil { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero.is-revealed .affil { opacity: 1; transform: none; transition-delay: 0.95s; }
.footer a { color: inherit; }
@media (max-width: 760px) {
  .nav-ax { display: none; }
  .affil { gap: 12px 10px; margin-top: 22px; }
  .affil .seal { width: 60px; height: 60px; padding: 3px; }
  .affil .wm { height: 22px; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero .affil { opacity: 1; transform: none; transition: none; } }

/* tagline on one line where it fits (2026-12-01) */
@media (min-width: 1100px) { .hero .tagline { max-width: none; white-space: nowrap; } }
@media (max-width: 1239px) { .nav-ax { display: none; } }
