/* Rem-based type gives the page a 125% reading scale at normal browser zoom. */
html { font-size: 125%; }

/* IronBench release page: an austere, high-contrast research system built
   around live computation: large grotesk type, hard rules, quiet neutrals,
   electric field colour, and no raster product imagery. */

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #0c0c0c;
  --surface: #111111;
  --surface-2: #181818;
  --stage: #101216;
  --ink: #f4f4f0;
  --ink-2: #c7c7c0;
  --muted: #8e8e87;
  --faint: #5a5a56;
  --rule: rgba(244, 244, 240, 0.14);
  --rule-strong: rgba(244, 244, 240, 0.35);
  --signal: #8aa9ff;
  --signal-ink: #a9beff;
  --signal-soft: rgba(114, 150, 255, 0.15);
  --moss: #9bd8a7;
  --ember: #ff796c;
  --gold: #e9c46a;
  --scrollbar: #333331;
  --series-1: #8aa9ff;
  --series-1-wash: rgba(138, 169, 255, 0.12);
  --neutral-bar: #4d4d49;
  --grid: #242423;
  --baseline: #555550;
  --status-ok: #8ed6a0;
  --status-fail: #ff7168;
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --nav-h: 64px;
  --gutter: clamp(20px, 3.1vw, 48px);
  --section-space: clamp(40px, 5vw, 64px);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f0;
  --bg-2: #ecece6;
  --surface: #ffffff;
  --surface-2: #e7e7e1;
  --stage: #e2e3df;
  --ink: #0b0b0b;
  --ink-2: #3e3e3a;
  --muted: #6e6e68;
  --faint: #aaa9a0;
  --rule: rgba(10, 10, 10, 0.15);
  --rule-strong: rgba(10, 10, 10, 0.38);
  --signal: #2458ff;
  --signal-ink: #1f50ef;
  --signal-soft: rgba(36, 88, 255, 0.1);
  --moss: #287440;
  --ember: #c83e34;
  --gold: #8a6500;
  --scrollbar: #bcbcb5;
  --series-1: #2458ff;
  --series-1-wash: rgba(36, 88, 255, 0.1);
  --neutral-bar: #c1c1ba;
  --grid: #ddddd7;
  --baseline: #aaa9a1;
  --status-ok: #26773e;
  --status-fail: #d43d33;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
p a, li a, figcaption a, .footnotes a, .table a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--rule-strong);
}
p a:hover, li a:hover, figcaption a:hover, .footnotes a:hover { text-decoration-color: currentColor; }
button, input, select { color: inherit; font: inherit; }
button { padding: 0; border: 0; background: transparent; cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }
strong { color: var(--ink); font-weight: 600; }
code { font-family: var(--mono); font-size: 0.84em; }
p code, li code, td code { padding: 2px 5px; background: var(--signal-soft); }
sup.fn { font-family: var(--mono); font-size: 0.66em; line-height: 0; }
sup.fn a { color: var(--signal-ink); text-decoration: none; }
::selection { background: var(--signal); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); }
::-webkit-scrollbar-track { background: transparent; }

/* Layout */
.container { width: 100%; max-width: 1600px; margin: 0 auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); }
.measure { grid-column: 4 / span 6; min-width: 0; }
.wide { grid-column: 2 / span 10; min-width: 0; }
.full { grid-column: 1 / -1; min-width: 0; }
.bleed { position: relative; left: 50%; width: 100vw; margin-left: -50vw; }
main { background: var(--bg); }
section.block { padding: var(--section-space) 0 24px; scroll-margin-top: calc(var(--nav-h) + 16px); }
section.block + section.block { padding-top: var(--section-space); }
#results, #designs {
  position: relative;
  margin-top: clamp(48px, 6vw, 88px);
  padding-block: var(--section-space);
  background: var(--surface);
  border-block: 1px solid var(--rule);
}
#results + section.block, #designs + section.block { padding-top: var(--section-space); }

@media (max-width: 1100px) {
  .measure { grid-column: 3 / span 8; }
  .wide { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .measure, .wide { grid-column: 1 / -1; }
  section.block { padding-top: var(--section-space); }
  #results, #designs { margin-top: 48px; padding-block: var(--section-space); }
}

/* Typography */
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 500; letter-spacing: -0.045em; text-wrap: balance; }
h2.section-title { max-width: 14ch; margin-bottom: 30px; font-size: clamp(2.75rem, 5.6vw, 5.125rem); line-height: 0.98; }
h3 { margin: 36px 0 12px; font-size: clamp(1.5625rem, 2.7vw, 2.375rem); line-height: 1.08; }
h3:first-child { margin-top: 0; }
p { margin: 0 0 18px; text-wrap: pretty; }
.measure p, .measure li { color: var(--ink-2); }
.lede { margin: 0 0 30px; color: var(--ink) !important; font-family: var(--display); font-size: clamp(1.6875rem, 3vw, 2.75rem); line-height: 1.17; letter-spacing: -0.035em; }
.eyebrow {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.625rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow i { display: none; }
.eyebrow b { color: var(--signal-ink); font-weight: 500; }
.small { font-size: 0.8125rem; }
.mono { font-family: var(--mono); }
.dim { color: var(--muted); }
ul.plain, ol.plain { margin: 0 0 20px; padding-left: 1.15em; }
ul.plain li, ol.plain li { margin-bottom: 8px; }

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: #f7f7f3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}
.nav::before { position: absolute; z-index: -1; inset: 0; content: ""; background: rgba(5, 5, 5, 0.18); backdrop-filter: blur(10px); }
.nav.scrolled { color: var(--ink); border-color: var(--rule); }
.nav.scrolled::before { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; width: max-content; }
.brand-name { font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: -0.03em; }
.brand-sub { font-size: 0.75rem; opacity: 0.58; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a, .theme-toggle {
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  opacity: 0.68;
  transition: opacity 150ms ease;
}
.nav-links a:hover, .nav-links a.active, .theme-toggle:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.pill:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.nav .pill:hover { color: #050505; background: #f5f5f0; border-color: #f5f5f0; }
.nav.scrolled .pill:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.pill.solid { color: #050505; background: #f5f5f0; border-color: #f5f5f0; }
:root[data-theme="light"] main .pill.solid { color: #fff; background: #0b0b0b; border-color: #0b0b0b; }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; }
.theme-symbol { position: relative; width: .6875rem; height: .6875rem; overflow: hidden; border: 1px solid currentColor; border-radius: 50%; }
.theme-symbol::after { position: absolute; inset: -1px -1px -1px 50%; content: ""; background: currentColor; }
:root[data-theme="light"] .theme-symbol::after { inset: -1px 50% -1px -1px; }
@media (max-width: 1020px) { .nav-inner { grid-template-columns: 1fr 1fr; } .nav-links { display: none; } }
@media (max-width: 620px) { .brand-sub, .nav-actions > .pill:not(.solid), .theme-toggle span:last-child { display: none; } .nav-actions { gap: 10px; } }

/* Hero */
.hero {
  position: relative;
  min-height: max(100svh, 820px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #f6f6f2;
  background: #030303;
}
.hero-canvas { position: absolute; inset: 0; contain: strict; opacity: 0.86; pointer-events: none; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 68% 44%, transparent 0 19%, rgba(0, 0, 0, 0.08) 46%, rgba(0, 0, 0, 0.68) 100%); }
.hero-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 28%, rgba(0, 0, 0, 0.72) 100%); }
.hero-inner { position: relative; z-index: 2; padding-block: calc(var(--nav-h) + 54px) 54px; }
.hero-kicker {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 { margin-top: 58px; color: #f7f7f2; }
.hero-name { display: block; font-size: clamp(5.75rem, 17vw, 16.875rem); font-weight: 500; line-height: 0.73; letter-spacing: -0.075em; }
.hero-title { display: block; max-width: 17ch; margin-top: clamp(48px, 8vh, 96px); font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: 0.98; letter-spacing: -0.05em; }
.hero-summary { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; margin-top: 36px; }
.hero-dek { grid-column: 7 / span 4; max-width: 39em; margin: 0; color: rgba(255, 255, 255, 0.76); font-size: clamp(0.9375rem, 1.25vw, 1.1875rem); line-height: 1.5; }
.hero-actions { grid-column: 11 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.hero .text-button { color: rgba(255, 255, 255, 0.82); }
.hero-scroll { position: absolute; z-index: 3; right: var(--gutter); top: 50%; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.5); font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(90deg) translateX(50%); transform-origin: right center; }
.hero-scroll::after { width: 42px; height: 1px; content: ""; background: currentColor; animation: draw 2.4s ease-in-out infinite; }
@keyframes draw { 0%, 100% { transform: scaleX(0.3); transform-origin: left; opacity: 0.35; } 50% { transform: scaleX(1); opacity: 1; } }
@media (max-width: 900px) {
  .hero-name { font-size: clamp(5rem, 23vw, 10.625rem); }
  .hero-title { margin-top: 70px; }
  .hero-dek { grid-column: 1 / span 9; }
  .hero-actions { grid-column: 10 / span 3; }
}
@media (max-width: 620px) {
  .hero { min-height: 100svh; }
  .hero-inner { padding-bottom: 30px; }
  .hero-kicker span:last-child { display: none; }
  .hero h1 { margin-top: 42px; }
  .hero-title { margin-top: 56px; font-size: 2.4375rem; }
  .hero-summary { display: block; margin-top: 24px; }
  .hero-actions { flex-direction: row; align-items: center; margin-top: 24px; }
  .hero-scroll { display: none; }
}

/* Live figures */
.figure { margin: 34px 0 18px; }
.hero-figure { margin: 0; background: var(--bg); }
.figure-stage { position: relative; min-height: 320px; overflow: hidden; background: var(--stage); border: 1px solid var(--rule); }
.figure-stage.ratio-16-9 { aspect-ratio: 16 / 9; }
.figure-stage.ratio-3-2 { aspect-ratio: 3 / 2; }
.figure-stage.hero-stage { height: min(90svh, 980px); min-height: 520px; border-inline: 0; }
.figure-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; background: var(--stage); opacity: 0; transition: opacity 500ms ease; }
.figure-stage.live iframe { opacity: 1; }
.figure-stage .stage-note { position: absolute; z-index: 3; left: 16px; top: 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; }
.figure-stage .stage-note i { width: 7px; height: 7px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 14px var(--signal); }
.figure-stage .stage-note.paused i { background: var(--faint); box-shadow: none; }
.figure-stage .stage-open { position: absolute; z-index: 3; right: 14px; top: 12px; }
.figure-stage .stage-open .pill { color: #f6f6f2; border-color: rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.28); backdrop-filter: blur(10px); }
figcaption { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: var(--gutter); padding: 16px 0 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.75rem; line-height: 1.55; }
figcaption b { color: var(--ink-2); font-weight: 500; }
.fig-label { color: var(--signal-ink); font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-figure figcaption { margin-block: 0 64px; padding-block: 18px; }
@media (max-width: 620px) { .figure-stage.hero-stage { height: 68svh; min-height: 430px; } figcaption { grid-template-columns: 58px 1fr; } }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--rule-strong); }
.stat { min-width: 0; padding: 30px 22px 30px 0; border-right: 1px solid var(--rule); }
.stat + .stat { padding-left: 22px; }
.stat:last-child { border-right: 0; }
.stat-label { margin-bottom: 20px; color: var(--muted); font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.12em; text-transform: uppercase; }
.stat-value { color: var(--ink); font-family: var(--display); font-size: clamp(2.75rem, 5vw, 4.5rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.stat-value small { margin-left: 4px; color: var(--muted); font-size: 0.42em; letter-spacing: 0; }
.stat-delta { margin-top: 14px; color: var(--muted); font-size: 0.6875rem; line-height: 1.45; }
.stat-delta b { display: block; color: var(--signal-ink); font-family: var(--mono); font-weight: 500; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--rule); } .stat:nth-child(3) { padding-left: 0; } }

/* Scrollytelling */
.scrolly { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.scrolly-figure { position: sticky; top: calc(var(--nav-h) + 20px); height: calc(100svh - var(--nav-h) - 40px); min-height: 460px; }
.scrolly-figure .figure-stage { height: 100%; }
.scrolly-steps { padding: 12vh 0 28vh; }
.step { min-height: 72vh; padding: 28px 0 20vh; opacity: 0.35; transition: opacity 700ms cubic-bezier(.22,1,.36,1); }
.step.active { opacity: 1; }
.step h3 { max-width: 12ch; font-size: clamp(2.25rem, 4.2vw, 3.75rem); }
.step p { max-width: 46ch; color: var(--ink-2); }
.step dl { display: grid; grid-template-columns: 110px 1fr; margin: 24px 0 0; border-top: 1px solid var(--rule-strong); }
.step dt, .step dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 0.625rem; }
.step dt { color: var(--muted); text-transform: uppercase; }
.step dd { color: var(--ink-2); }
@media (max-width: 900px) {
  .scrolly { display: flex; flex-direction: column; gap: 0; }
  .scrolly-figure { order: -1; width: 100%; position: sticky; z-index: 4; top: var(--nav-h); height: clamp(240px, 38svh, 380px); min-height: 0; }
  .scrolly-figure .figure-stage { min-height: 0; }
  .scrolly-steps { width: 100%; padding: 24px 0 12svh; }
  .step { min-height: 65svh; padding: 28px 0 16svh; }
}

/* Toolbars, controls */
.figure-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--rule-strong); }
.tabs, .segmented, .tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 15px; }
.tabs button, .segmented button, .text-button { padding-bottom: 2px; border-bottom: 1px solid transparent; color: var(--muted); font-size: 0.75rem; line-height: 1.35; }
.tabs button:hover, .tabs button.active, .segmented button:hover, .segmented button.active, .text-button:hover, .text-button.accent { color: var(--ink); border-bottom-color: currentColor; }
.text-button.accent { color: var(--signal-ink); }
.toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.6875rem; cursor: pointer; }
.toggle input { width: .8125rem; height: .8125rem; margin: 0; accent-color: var(--signal); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 30px 0; }
.table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule-strong); font-size: 0.8125rem; }
.table th, .table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-family: var(--mono); font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.table td { color: var(--ink-2); }
.table td.num, .table th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table tr.emphasis td { color: var(--ink); font-weight: 500; }
.table tr.emphasis td:first-child { color: var(--signal-ink); }
.table-note { margin-top: 10px; color: var(--muted); font-size: 0.6875rem; }
.mark { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--moss); }
.mark.fail { background: var(--ember); }

/* Charts */
.chart-host { position: relative; margin: 32px 0 10px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--sans); }
.chart-grid { stroke: var(--grid); stroke-width: 1; }
.chart-baseline { stroke: var(--baseline); stroke-width: 1; }
.chart-bar { fill: var(--neutral-bar); }
.chart-bar-row.emphasis .chart-bar { fill: var(--series-1); }
.chart-label { fill: var(--ink-2); font-size: 0.75rem; }
.chart-label.mono { fill: var(--muted); font-family: var(--mono); font-size: 0.625rem; }
.chart-value { fill: var(--ink); font-family: var(--mono); font-size: 0.6875rem; }
.chart-value.small, .chart-axis-label, .chart-annotation { fill: var(--muted); font-family: var(--mono); font-size: 0.5625rem; }
.chart-marker-line { stroke: var(--ink); stroke-width: 1.5; }
.chart-series { fill: none; stroke: var(--series-1); stroke-width: 2; }
.chart-area { fill: var(--series-1-wash); }
.chart-dot { fill: var(--series-1); stroke: var(--bg); stroke-width: 2; }
.chart-whisker { stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; }
.chart-reference, .chart-crosshair { stroke: var(--ink-2); stroke-width: 1; }
.chart-stem { stroke: var(--rule-strong); stroke-width: 1; }
.chart-status-dot { stroke: var(--bg); stroke-width: 2; }
.chart-status-dot.ok { fill: var(--status-ok); }
.chart-status-dot.fail { fill: var(--status-fail); }
.chart-status-glyph { fill: var(--bg); font: 700 0.5rem var(--sans); pointer-events: none; }
.chart-tip { position: absolute; z-index: 5; min-width: 170px; max-width: 290px; padding: 10px 12px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-2); box-shadow: 0 24px 60px rgba(0,0,0,.24); font-family: var(--mono); font-size: 0.625rem; line-height: 1.5; pointer-events: none; }
.chart-tip-row { display: flex; align-items: baseline; gap: 8px; }
.chart-tip-row i { width: 10px; height: 2px; flex: 0 0 auto; }
.chart-tip-row strong { color: var(--ink); font-weight: 500; }
.chart-tip-row span { color: var(--muted); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; color: var(--muted); font-family: var(--mono); font-size: 0.5625rem; }
.chart-key { display: inline-flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; width: 12px; height: 7px; background: var(--series-1); }
.swatch-line { height: 1px; background: var(--ink); }
.swatch-ok { background: var(--status-ok); }
.swatch-fail { background: var(--status-fail); }
.chart-table-toggle { margin-top: 12px; padding-bottom: 2px; border-bottom: 1px solid transparent; color: var(--muted); font-family: var(--mono); font-size: 0.5625rem; letter-spacing: .1em; text-transform: uppercase; }
.chart-table-toggle:hover { color: var(--ink); border-color: currentColor; }
.chart-table { margin-top: 12px; overflow-x: auto; }
.chart-table table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule-strong); }
.chart-table caption { padding: 7px 0; color: var(--muted); text-align: left; font: 0.5625rem var(--mono); }
.chart-table th, .chart-table td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); text-align: left; font: 0.625rem var(--mono); }
.chart-table th { color: var(--muted); font-weight: 500; }

/* RL learning curve with the final held-out evaluation. */
#fig-results { --pass4: #e9c489; width: 100%; max-width: 1080px; margin: 40px auto 32px; padding: 28px 32px 24px; border-block: 1px solid var(--rule-strong); }
.performance-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.performance-header h3 { margin: 0; font: 400 clamp(1.1875rem, 2vw, 1.4375rem)/1.3 var(--sans); letter-spacing: -.025em; }
.performance-header p { margin: 0; color: var(--muted); font: 0.6875rem/1.5 var(--mono); }
.performance-host { margin: 32px 0 12px; }
.performance-chart .chart-axis-label { font-size: 0.75rem; }
.learning-raw, .learning-mean, .learning-pass4 { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.learning-raw { stroke: rgba(255, 255, 255, .35); stroke-width: 1.25; }
.learning-mean { stroke: var(--signal); stroke-width: 2.75; }
.learning-pass4 { stroke: var(--pass4); stroke-width: 2.25; stroke-dasharray: 7 5; }
.learning-pass4-marker { fill: var(--pass4); stroke: var(--bg); stroke-width: 2; }
.learning-marker { fill: var(--signal-ink); stroke: var(--bg); stroke-width: 2; }
.learning-crosshair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 5; }
.learning-hit { cursor: crosshair; }
.learning-evaluation { cursor: help; }
.learning-eval-halo { fill: rgba(233, 196, 137, .2); }
.learning-eval-leader { fill: none; stroke: var(--pass4); stroke-width: 1; opacity: .65; }
.learning-eval-point { fill: var(--ink); stroke: var(--bg); stroke-width: 3; }
.learning-evaluation:focus-visible { outline: none; }
.learning-evaluation:focus-visible .learning-eval-halo { stroke: var(--pass4); stroke-width: 2; }
.learning-eval-value { fill: var(--ink); font: 500 1.4rem var(--sans); letter-spacing: -.04em; }
.learning-eval-metric { fill: var(--pass4); font: 400 0.8rem var(--mono); letter-spacing: 0; }
.learning-eval-note { fill: var(--ink-2); font: 0.625rem var(--mono); }
.learning-eval-value, .learning-eval-note { paint-order: stroke fill; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.performance-chart.compact .learning-eval-value { font-size: 1.2rem; }
.performance-chart.compact .learning-eval-metric { font-size: 0.75rem; }
.performance-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 24px; color: var(--muted); font: 0.6875rem/1.5 var(--mono); }
.performance-legend span { display: inline-flex; align-items: center; gap: 8px; }
.performance-legend i { width: 20px; height: 0; border-top: 1px solid rgba(255, 255, 255, .35); }
.performance-legend .learning-key-mean { border-top: 3px solid var(--signal); }
.performance-legend .learning-key-pass4 { width: 28px; border-top: 2px dashed var(--pass4); }
.performance-host .chart-tip { min-width: 0; max-width: min(290px, calc(100% - 16px)); }
#fig-results figcaption { grid-template-columns: max-content minmax(0, 1fr); gap: 20px; padding-top: 20px; }
#results .results-note { color: var(--muted); font-size: 0.8125rem; line-height: 1.7; }
#results .results-note b { color: var(--ink-2); font-weight: 500; }

@media (max-width: 700px) {
  #fig-results { padding: 24px 0; }
  .performance-header { flex-direction: column; gap: 8px; }
  .performance-host { margin-top: 28px; }
  #fig-results figcaption { gap: 16px; }
}

/* A compact island of designs; one tile expands within the grid. */
.design-grid { --tile-height: 17.875rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; grid-auto-rows: var(--tile-height); gap: 12px; padding: 12px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: linear-gradient(145deg, #101215, #08090b 65%); overflow-anchor: none; }
.design-card, .design-inspector { min-width: 0; min-height: 0; transform-origin: top left; border: 1px solid rgba(255,255,255,.085); border-radius: 16px; background: #0b0d10; overflow: hidden; }
.design-card[hidden], .design-inspector[hidden] { display: none; }
.design-card { display: flex; flex-direction: column; width: 100%; padding: 0; color: var(--ink); text-align: left; transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.design-card:hover { border-color: rgba(255,255,255,.25); background: #101216; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.design-card:focus-visible, .design-inspector button:focus-visible, .design-inspector a:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: -3px; }
.design-card-image { position: relative; display: block; flex: 1; min-height: 0; overflow: hidden; background: #05070a; }
.design-card-image::after { content: ""; position: absolute; inset: auto 0 0; height: 22px; background: linear-gradient(transparent, #0b0d10); pointer-events: none; }
.design-card-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 350ms cubic-bezier(.22,1,.36,1); }
.design-card:hover .design-card-image img { transform: scale(1.045); }
.design-card-index { position: absolute; top: 14px; left: 16px; color: rgba(255,255,255,.38); font: 0.5625rem var(--mono); letter-spacing: .06em; }
.design-card-expand { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(0,0,0,.35); color: var(--ink); opacity: 0; transition: opacity 180ms ease; }
.design-card:hover .design-card-expand, .design-card:focus-visible .design-card-expand { opacity: 1; }
.design-card-body { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; flex: 0 0 auto; padding: 14px 18px 16px; }
.design-card-power { font: 400 1.375rem/1.1 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.design-card-power small { margin-left: 2px; color: var(--ink-2); font: 0.625rem var(--sans); letter-spacing: 0; }
.design-card-voltage { justify-self: end; color: var(--muted); font-size: 0.6875rem; white-space: nowrap; }
.design-card-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; grid-column: 1 / -1; color: rgba(255,255,255,.4); font: 0.5625rem/1.5 var(--mono); }
.design-card-footer > span:last-child { color: var(--ink-2); white-space: nowrap; }

.design-inspector { display: flex; flex-direction: column; grid-column: span 2; grid-row: span 2; position: relative; z-index: 1; border-color: rgba(255,255,255,.22); background: #0c0e11; box-shadow: 0 12px 38px rgba(0,0,0,.22); scroll-margin-top: calc(var(--nav-h) + 20px); }
.design-inspector-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; flex: 0 0 auto; padding: 18px 22px 16px; border-bottom: 1px solid var(--rule); }
.design-kicker { margin: 0; color: var(--muted); font: 0.5625rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.design-inspector-header h3 { margin: 5px 0; font-size: 1.625rem; font-weight: 400; letter-spacing: -.04em; }
.design-inspector-spec { margin: 0; color: var(--muted); font: 0.625rem/1.5 var(--mono); }
.design-close { display: grid; place-items: center; flex: 0 0 auto; width: 2rem; height: 2rem; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(255,255,255,.04); color: var(--ink-2); font-size: 1.375rem; line-height: 1; }
.design-close:hover { color: var(--ink); background: rgba(255,255,255,.1); }
.design-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 13.375rem; flex: 1; min-height: 0; }
.design-preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 0; padding: 0 16px 12px; }
.design-preview .figure-toolbar { flex: 0 0 auto; padding-block: 8px; border-top: 0; }
.design-preview .tabs { gap: 2px 13px; }
.design-preview .tabs button { min-height: 1.875rem; font-size: 0.625rem; }
.design-stage { flex: 1; min-height: 120px; border: 0; border-radius: 10px; background: #05070a; }
.design-stage .stage-note { top: 8px; left: 8px; padding: 5px 7px; border-radius: 5px; background: rgba(0,0,0,.6); color: var(--ink-2); font-size: 0.4375rem; letter-spacing: .05em; }
.design-stage-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: opacity 200ms ease; }
.design-stage.live .design-stage-poster { opacity: 0; }
.design-view-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; flex: 0 0 auto; padding-block: 6px; }
.design-view-controls .tools { gap: 4px 12px; }
.design-view-controls button, .design-view-controls .toggle { min-height: 1.75rem; font-size: 0.5625rem; }
.design-view-controls .toggle input { width: .6875rem; height: .6875rem; }
.design-preview figcaption { display: block; flex: 0 0 auto; padding-top: 8px; font-size: 0.5625rem; line-height: 1.5; }
.design-detail { min-width: 0; padding: 16px; border-left: 1px solid var(--rule); overflow-y: auto; }
.design-status { display: inline-flex; align-items: center; gap: 6px; color: #a6c5b2; font: 0.5rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .035em; }
.design-status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.design-status[data-tone="failed"] { color: var(--ember); }
.design-status[data-tone="exploratory"] { color: var(--gold); }
.design-detail h4 { margin: 12px 0 6px; font: 400 0.9375rem/1.3 var(--display); letter-spacing: -.02em; }
.design-construction { margin: 0 0 12px; color: var(--muted); font-size: 0.625rem; line-height: 1.5; }
.design-readout { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 1px solid var(--rule); }
.design-readout > div { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.design-readout dt { margin-bottom: 3px; color: var(--muted); font: 0.5625rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.design-readout dd { margin: 0; color: var(--ink); font: 1rem/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.design-readout dd small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.5625rem; }
.design-viewer-link { display: inline-block; color: var(--ink-2); font-size: 0.625rem; }
.design-viewer-link:hover { color: var(--ink); }
.design-inspector-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; padding: 6px 20px; border-top: 1px solid var(--rule); }
.design-inspector-footer button { min-height: 32px; color: var(--ink-2); font-size: 0.625rem; }
.design-inspector-footer button:hover { color: var(--ink); }

@media (max-width: 1050px) {
  .design-card-body { grid-template-columns: 1fr; gap: 5px; padding: 12px 14px; }
  .design-card-voltage { justify-self: start; }
  .design-card-footer { margin-top: 3px; }
  .design-detail-layout { grid-template-columns: minmax(0, 1fr) 11.125rem; }
  .design-detail { padding: 12px; }
  .design-preview { padding-inline: 12px; }
  .design-inspector-header { padding: 14px 18px; }
  .design-inspector-header h3 { font-size: 1.4375rem; }
}
@media (max-width: 760px) {
  .design-grid { --tile-height: 13.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; border-radius: 20px; }
  .design-card, .design-inspector { border-radius: 12px; }
  .design-card-power { font-size: 1.3125rem; }
  .design-card-index { top: 10px; left: 12px; }
  .design-card-expand { display: none; }
  .design-card-voltage { font-size: 0.625rem; }
  .design-inspector { grid-column: 1 / -1; grid-row: span 3; }
  .design-detail-layout { display: flex; flex-direction: column; }
  .design-preview { flex: 1; min-height: 280px; }
  .design-stage { min-height: 160px; }
  .design-detail { flex: 0 0 auto; padding: 12px 16px; border-top: 1px solid var(--rule); border-left: 0; overflow: visible; }
  .design-detail h4, .design-construction { display: none; }
  .design-status { margin-bottom: 8px; }
  .design-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .design-card-image img, .design-stage-poster { transition: none; }
}

/* RL loop */
.loop-diagram { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0; border-block: 1px solid var(--rule-strong); }
.loop-node { position: relative; min-height: 260px; padding: 22px; border-right: 1px solid var(--rule); }
.loop-node:first-child { padding-left: 0; }
.loop-node:last-child { border-right: 0; }
.loop-node .n { margin-bottom: 40px; color: var(--signal-ink); font-family: var(--mono); font-size: 0.5625rem; letter-spacing: .11em; text-transform: uppercase; }
.loop-node strong { display: block; margin-bottom: 12px; color: var(--ink); font-family: var(--display); font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.035em; }
.loop-node p { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.loop-node .arrow { position: absolute; z-index: 2; right: -8px; top: 28px; width: 14px; height: 14px; border-top: 1px solid var(--rule-strong); border-right: 1px solid var(--rule-strong); background: var(--bg); transform: rotate(45deg); }
.loop-node:last-child .arrow { display: none; }
@media (max-width: 760px) { .loop-diagram { grid-template-columns: 1fr 1fr; } .loop-node { min-height: 210px; border-bottom: 1px solid var(--rule); } .loop-node:nth-child(2n) { border-right: 0; } .loop-node:first-child, .loop-node:nth-child(3) { padding-left: 0; } .loop-node .arrow { display: none; } }

/* Research schematic and compiler action table. */
#fig-episode, #action-space-heading { scroll-margin-top: calc(var(--nav-h) + 24px); }
.method-figure { border-top: 1px solid var(--rule-strong); }
.method-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 18px; color: var(--ink-2); font-size: 0.6875rem; line-height: 1.5; }
.method-legend > span { display: inline-flex; align-items: center; gap: 9px; }
.method-legend i { width: 24px; border-top: 1px solid var(--ink-2); }
.method-legend i.training-line { border-top: 1px dashed var(--signal-ink); }
.rlvr-schematic { display: block; width: 100%; height: auto; margin: 6px 0 16px; overflow: visible; font-family: var(--sans); }
.rlvr-portrait { display: none; }
.method-edges, .method-training { fill: none; stroke: var(--ink-2); stroke-width: 1.25; }
.method-training { stroke: var(--signal-ink); stroke-dasharray: 5 4; }
.method-box rect { fill: var(--bg); stroke: var(--rule-strong); stroke-width: 1; }
.method-box text { fill: var(--ink); font-size: 1.125rem; font-weight: 400; }
.method-box .method-sub { fill: var(--ink-2); font-size: 0.8125rem; }
.method-edge-label { fill: var(--ink-2); font-size: 0.875rem; }
.method-math { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.method-edge-label .method-math, .method-edge-label.method-math { font-size: 1.125rem; }
.method-accent { fill: var(--signal-ink); }
.method-optimizer rect { stroke: var(--signal-ink); }
.method-figure figcaption { margin-top: 0; }
/* Compact compiler action space, with explicit interval and set notation. */
.action-table-block { min-width: 0; max-width: 54rem; margin: 12px auto 20px; container-type: inline-size; }
.action-table-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
.action-table { width: 100%; min-width: 42rem; margin: 0; table-layout: fixed; border-collapse: collapse; border-bottom: 1px solid var(--rule-strong); font-size: 0.75rem; line-height: 1.45; }
.action-table .action-type-col { width: 14%; }
.action-table .action-variable-col { width: 22%; }
.action-table .action-domain-col { width: 24%; }
.action-table .action-description-col { width: 40%; }
.action-table caption { padding: 0 0 10px; color: var(--ink); text-align: left; font-size: 0.8125rem; }
.action-table caption .fig-label { margin-right: 12px; }
.action-table th, .action-table td { padding: 8px 18px 8px 0; text-align: left; vertical-align: top; }
.action-table thead { border-block: 1px solid var(--rule-strong); }
.action-table thead th { padding-block: 7px; color: var(--muted); font-size: 0.625rem; font-weight: 400; letter-spacing: .045em; text-transform: uppercase; }
.action-table tbody + tbody { border-top: 1px solid var(--rule-strong); }
.action-table tbody th { color: var(--ink); font-weight: 400; }
.action-table th[scope="rowgroup"] { vertical-align: top; color: var(--muted); font-size: 0.6875rem; }
.action-table th[scope="row"] code { font-size: 1em; overflow-wrap: anywhere; }
.action-type-count { white-space: nowrap; }
.action-table tbody td { color: var(--ink-2); font: 0.6875rem/1.45 var(--mono); font-variant-numeric: tabular-nums; }
.action-table tbody .action-description { font: 0.75rem/1.45 var(--sans); }
.action-table td:last-child, .action-table thead th:last-child { padding-right: 0; }
.action-table-note { margin: 8px 0 0; color: var(--muted); font-size: 0.6875rem; line-height: 1.5; }
.action-table-scroll-hint { display: none; }
@container (max-width: 42rem) {
  .action-table-scroll-hint { display: block; margin-top: 4px; }
}
@container (max-width: 17rem) {
  .action-table .action-domain-col { width: 32%; }
  .action-table .action-description-col { width: 32%; }
}
@media (max-width: 760px) {
  .rlvr-landscape { display: none; }
  .rlvr-portrait { display: block; max-width: 420px; margin: 24px auto; }
  .rlvr-portrait .method-box text { font-size: 1.0625rem; }
  .rlvr-portrait .method-box .method-sub { font-size: 0.75rem; }
  .rlvr-portrait .method-edge-label { font-size: 0.75rem; }
  .method-legend { gap: 8px 20px; }
}

/* Utilities */
pre.code { margin: 24px 0 30px; padding: 18px; overflow-x: auto; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); font: 0.6875rem/1.6 var(--mono); }
pre.code b { color: var(--ink); font-weight: 500; }
pre.code .c { color: var(--muted); }
.callout { margin: 30px 0; padding: 22px 24px; border-left: 3px solid var(--gold); background: var(--surface); color: var(--ink-2); font-size: 0.875rem; }
.callout span { display: block; margin-bottom: 9px; color: var(--gold); font: 0.5625rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.callout.clay { border-color: var(--signal); }
.callout.clay span { color: var(--signal-ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 9px 24px; margin: 22px 0 28px; padding-top: 14px; border-top: 1px solid var(--rule-strong); }
.kv dt { padding-top: 2px; color: var(--muted); font: 0.5625rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.kv dd { margin: 0; color: var(--ink-2); font-size: 0.8125rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px var(--gutter); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* Footnotes and footer */
.footnotes { padding: 24px 0 0; }
.footnotes h2 { margin: 0 0 20px; color: var(--muted); font: 0.5625rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footnotes ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.footnotes li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 0.6875rem; line-height: 1.55; }
.footnotes li > span { padding-top: 2px; color: var(--signal-ink); font-family: var(--mono); }
.footnotes .back { margin-left: 8px; text-decoration: none; }
.site-footer { margin-top: 32px; padding: 24px 0 32px; border-top: 1px solid var(--rule-strong); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: var(--muted); font-size: 0.6875rem; }
.footer-inner .brand-name { color: var(--ink); }
.footer-links { display: flex; gap: 20px; }
.footer-inner > span { text-align: right; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-inner > span { text-align: left; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 800ms cubic-bezier(.22,1,.36,1), transform 800ms cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   General Trajectory project system
   Shared visual language with Dex Manipulation and Phoenix: cinematic media,
   light Inter headlines, mono metadata, black surfaces and restrained borders.
   ----------------------------------------------------------------------- */

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #050505;
  --surface: #08090b;
  --surface-2: #0d0f12;
  --stage: #05070a;
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.34);
  --rule: rgba(255, 255, 255, 0.10);
  --rule-strong: rgba(255, 255, 255, 0.18);
  --signal: #4cc9f0;
  --signal-ink: #82ddf7;
  --signal-soft: rgba(76, 201, 240, 0.08);
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", "SFMono-Regular", Menlo, monospace;
  --nav-h: 5.75rem;
  --gutter: clamp(24px, 3.2vw, 48px);
}

html, body { background: #000; }
body {
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
}
.container { max-width: 1440px; }
.measure { grid-column: 3 / span 8; }
.wide { grid-column: 2 / span 10; }
main { position: relative; z-index: 2; background: #000; }

/* Header */
.nav {
  height: var(--nav-h);
  align-items: flex-start;
  border: 0;
  color: #fff;
}
.nav::before {
  inset: 0 0 auto;
  height: 132px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
  backdrop-filter: none;
}
.nav.scrolled::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0)); }
.nav-inner {
  grid-template-columns: 1fr auto 1fr;
  padding-top: 20px;
}
.brand {
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: background-color 250ms ease, backdrop-filter 250ms ease;
}
.brand:hover { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(12px); }
.brand-mark { width: 2.125rem; height: 2.125rem; object-fit: contain; }
.nav-links { gap: 30px; min-height: 56px; }
.nav-links a,
.nav-viewer {
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.nav-links a:hover,
.nav-links a.active,
.nav-viewer:hover { color: #fff; }
.nav-actions { min-height: 56px; gap: 24px; }
.nav .pill {
  min-height: 38px;
  padding: 10px 24px;
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav .pill:hover { border-color: rgba(255, 255, 255, 0.44); color: #fff; background: rgba(255, 255, 255, 0.06); }

/* Project film */
.hero {
  height: 100svh;
  min-height: 720px;
  align-items: flex-end;
  background:
    radial-gradient(circle at 68% 38%, rgba(34, 115, 154, 0.20), transparent 40%),
    #000;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 55% center;
  background: #020304;
}
.hero-vignette {
  background:
    radial-gradient(circle at 72% 38%, transparent 0 22%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 58%);
}
.hero-fade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 30%, rgba(0, 0, 0, 0.92) 100%); }
.hero-inner {
  z-index: 4;
  max-width: 1152px;
  padding-top: 120px;
  padding-bottom: clamp(44px, 7vh, 72px);
}
.hero-copy { max-width: 820px; }
.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: max-content;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.50);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
}
.hero-kicker i { display: block; width: 32px; height: 1px; background: rgba(255, 255, 255, 0.32); }
.hero .hero-name {
  display: block;
  margin-top: 16px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(3.5rem, 8.3vw, 7rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.065em;
}
.hero .hero-title {
  display: block;
  max-width: 21ch;
  margin: 15px 0 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.5625rem, 3.2vw, 2.875rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.hero .hero-dek {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.9375rem, 1.35vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.55;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-tags span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.53);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}
.hero-sequence {
  position: absolute;
  right: 32px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-sequence i { width: 18px; height: 1px; background: rgba(255, 255, 255, 0.16); }
.hero-scroll, .hero-canvas { display: none; }

/* Editorial body */
.stat-row {
  gap: 12px;
  margin-top: 52px;
  border: 0;
}
.stat {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012));
}
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 1px solid var(--rule); }
.stat-label { margin-bottom: 30px; color: var(--muted); font-size: 0.5625rem; }
.stat-value { font-size: clamp(2.375rem, 4vw, 3.625rem); font-weight: 300; letter-spacing: -0.05em; }
.stat-delta b { color: var(--signal-ink); }

section.block {
  padding: var(--section-space) 0;
  border-bottom: 1px solid var(--rule);
}
section.block > .container > .measure:last-child > :last-child,
section.block > .container > .full:last-child > .figure:last-child { margin-bottom: 0; }
#conclusion { padding-bottom: 32px; }
section.block + section.block { padding-top: var(--section-space); }
#results, #designs {
  margin-top: 0;
  padding-block: var(--section-space);
  background: #000;
  border-top: 0;
}
#results + section.block, #designs + section.block { padding-top: var(--section-space); }
h1, h2, h3 { font-family: var(--display); font-weight: 300; }
h2.section-title {
  max-width: 18ch;
  margin-bottom: 28px;
  font-size: clamp(2.25rem, 4.5vw, 3.625rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.045em;
}
h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 300; letter-spacing: -0.035em; }
.measure p, .measure li { color: rgba(255, 255, 255, 0.72); }
.lede {
  max-width: 36em;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(1.3125rem, 2.25vw, 1.875rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.eyebrow {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 12px;
  color: var(--signal-ink);
  font-size: 0.625rem;
}
.eyebrow b { color: inherit; }
.eyebrow i { display: block; width: 34px; height: 1px; background: var(--rule-strong); }
strong { font-weight: 500; }

/* GT-style media and information surfaces */
.figure-stage {
  overflow: hidden;
  border-color: var(--rule);
  border-radius: 12px;
  background: #05070a;
}
.figure-stage.hero-stage { border-radius: 0; }
.figure-stage .stage-note { color: rgba(255, 255, 255, 0.42); }
.figure-stage .stage-open .pill { border-color: rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.46); }
figcaption { color: var(--muted); }
figcaption b { color: rgba(255, 255, 255, 0.72); }
.loop-diagram { gap: 12px; border: 0; }
.loop-node {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.loop-node:first-child { padding-left: 24px; }
.loop-node .n { color: var(--signal-ink); }
.loop-node strong { font-weight: 300; }
.loop-node .arrow { display: none; }
.table-wrap, pre.code, .callout, .design-grid, .design-readout, .kv { border-color: var(--rule); }
pre.code, .callout { border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.callout { border-left-color: var(--signal); }
.callout span { color: var(--signal-ink); }
.pill { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pill.solid { border-color: #fff; color: #000; background: #fff; }
.pill.solid:hover { color: #fff; background: transparent; }
.site-footer { border-color: var(--rule); }
.footer-inner .brand { width: auto; height: auto; }

@media (max-width: 1020px) {
  .nav-inner { grid-template-columns: 1fr 1fr; }
  .measure { grid-column: 2 / span 10; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2), .stat:nth-child(n+3) { border: 1px solid var(--rule); }
  .stat:nth-child(3) { padding-left: 24px; }
}

@media (max-width: 700px) {
  :root { --nav-h: 4.875rem; --gutter: 20px; }
  .measure, .wide { grid-column: 1 / -1; }
  .nav-inner { padding-top: 12px; }
  .brand { width: 3.125rem; height: 3.125rem; }
  .brand-mark { width: 1.875rem; height: 1.875rem; }
  .nav-actions { min-height: 50px; gap: 10px; }
  .nav-viewer { display: none; }
  .nav-actions .pill.solid { display: inline-flex !important; position: fixed; top: 18px; right: 20px; }
  .nav .pill { min-height: 36px; padding-inline: 18px; }
  .hero { min-height: 680px; }
  .hero-video { object-position: 58% center; }
  .hero-inner { padding-bottom: 36px; }
  .hero .hero-name { font-size: clamp(3.375rem, 19vw, 5.125rem); }
  .hero .hero-title { max-width: 15ch; font-size: clamp(1.625rem, 8.5vw, 2.375rem); }
  .hero .hero-dek { max-width: 35em; font-size: 0.875rem; }
  .hero-tags { gap: 7px; margin-top: 18px; }
  .hero-tags span { padding: 5px 9px; font-size: 0.5rem; }
  .hero-sequence { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 44px; }
  .stat, .stat + .stat { padding: 18px; }
  .stat-label { margin-bottom: 20px; }
  .stat-value { font-size: clamp(1.875rem, 10vw, 2.75rem); }
  .loop-diagram { grid-template-columns: 1fr; }
  .loop-node, .loop-node:first-child { min-height: 0; padding: 22px; }
}
