:root {
  --ink: #090b0f;
  --panel: #10141b;
  --panel-2: #161b24;
  --paper: #f1f0e8;
  --muted: #9da5b4;
  --line: rgba(255,255,255,.13);
  --yellow: #f4cb3d;
  --blue: #4198ff;
  --red: #ff6b5f;
  --green: #72d8a0;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.cite { margin-left: .18em; color: var(--yellow); font: 500 .68em var(--mono); text-decoration: none; vertical-align: super; }
.cite:hover, .cite:focus-visible { text-decoration: underline; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: var(--ink); }

.scroll-meter { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; background: rgba(255,255,255,.06); }
.scroll-meter span { display: block; width: 0; height: 100%; background: var(--yellow); }
.site-header { position: sticky; top: 0; z-index: 90; min-height: 70px; padding: 0 3vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(9,11,15,.83); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand i { color: var(--yellow); font-style: normal; }
.brand-mark { width: 31px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--yellow); color: var(--yellow); font: 500 .7rem var(--mono); }
nav { display: flex; gap: 25px; font: 400 .77rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
nav a:hover, nav a:focus-visible { color: var(--yellow); }
.soundless { color: var(--muted); border: 1px solid var(--line); background: transparent; padding: 8px 12px; font: 400 .7rem var(--mono); cursor: pointer; }

.hero { min-height: calc(100vh - 70px); max-width: 1600px; margin: auto; padding: clamp(55px, 8vw, 120px) 4vw; display: grid; grid-template-columns: minmax(520px, 1.2fr) minmax(420px, .8fr); gap: 5vw; align-items: center; }
.eyebrow { margin: 0 0 21px; color: var(--muted); font: 400 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.eyebrow span, .eyebrow.danger { color: var(--yellow); }
.eyebrow.danger { color: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 28px; font-size: clamp(2.8rem, 5.1vw, 5.8rem); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--yellow); }
.hero h1 { font-size: clamp(2.2rem, 3.4vw, 3.6rem); }
.dek { max-width: 650px; color: #c6ccd6; font-size: clamp(1.05rem, 1.45vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; margin: 36px 0 54px; }
.button { display: inline-block; padding: 13px 18px; border: 1px solid var(--line); text-decoration: none; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .04em; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.button.ghost:hover { background: var(--panel-2); }
.hero-facts { display: flex; gap: clamp(22px, 4vw, 65px); }
.hero-facts div { display: grid; }
.hero-facts strong { font-size: 1.55rem; letter-spacing: -.04em; }
.hero-facts span { color: var(--muted); font: .68rem var(--mono); text-transform: uppercase; }
.hero-stage { position: relative; padding: 6% 0; }
.media-card { margin: 0; background: #020305; border: 1px solid var(--line); box-shadow: 0 35px 100px rgba(0,0,0,.5); }
.media-card img, .media-card video { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-card figcaption { padding: 10px 12px; color: var(--muted); font: .67rem var(--mono); text-transform: uppercase; }
.media-card.robot-hero video { aspect-ratio: 2/1; object-fit: contain; }
.inspect { margin-top: 16px; border: 1px solid var(--line); background: var(--panel); }
.inspect summary { cursor: pointer; padding: 13px 14px; color: var(--muted); font: .7rem var(--mono); text-transform: uppercase; list-style: none; }
.inspect summary::-webkit-details-marker { display: none; }
.inspect summary::before { content: "+  "; color: var(--yellow); }
.inspect[open] summary::before { content: "−  "; }
.inspect summary:hover, .inspect summary:focus-visible { color: var(--paper); }
.inspect-body { display: grid; gap: 10px; padding: 4px 14px 14px; }
.bin-row { display: grid; grid-template-columns: 46px 1fr 58px; align-items: end; gap: 12px; }
.bin-row > span { align-self: center; color: var(--muted); font: .66rem var(--mono); }
.bin-bars { display: grid; grid-template-columns: repeat(25, 1fr); align-items: end; gap: 2px; height: 52px; }
.bin-bars i { display: block; height: var(--h); background: rgba(65,152,255,.42); transition: height .12s linear; }
.bin-bars i.on { background: var(--yellow); }
.bin-row output { color: var(--paper); font: .66rem var(--mono); text-align: right; }
.grip-meter { height: 6px; background: rgba(255,255,255,.06); }
.grip-meter i { display: block; height: 100%; width: var(--w); background: var(--blue); transition: width .12s linear; }
.inspect-note { margin: 0; padding: 0 14px 14px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.live-dot.blue { background: var(--blue); box-shadow: 0 0 12px var(--blue); }

.chapter { position: relative; max-width: 1440px; margin: 0 auto; padding: 130px 5vw; border-top: 1px solid var(--line); }
.chapter.appendix { max-width: none; background: var(--panel); border-top: 0; }
.chapter.appendix > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
.appendix-divider { max-width: none; padding: 60px 5vw 0; background: var(--panel); text-align: center; border-top: 1px solid var(--yellow); }
.appendix-divider span { display: block; font: 700 .85rem var(--mono); letter-spacing: .25em; text-transform: uppercase; color: var(--yellow); }
.appendix-divider small { display: block; margin-top: 10px; color: var(--muted); font: .7rem var(--mono); }
.chapter-number { position: absolute; top: 100px; left: 5vw; color: rgba(255,255,255,.055); font-size: 9rem; font-weight: 800; line-height: 1; }
.chapter.intro-chapter { max-width: 1760px; }
.intro-chapter { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .85fr); gap: 5vw; align-items: center; min-height: 760px; }
.chapter-copy { position: relative; z-index: 1; }
.chapter-copy h2, .section-heading h2 { font-size: clamp(2.25rem, 4.1vw, 4.35rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; }
.chapter-copy > p:last-child, .section-heading > p:last-child { max-width: 720px; color: #b6bdc9; font-size: 1.1rem; }
.theory { max-width: none; padding-inline: max(5vw, calc((100vw - 1760px)/2)); background: #0d1016; }
.theory .section-heading { position: relative; z-index: 1; }
.definition-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.definition-card { position: relative; min-height: 330px; padding: 38px; border-right: 1px solid var(--line); background: rgba(255,255,255,.018); }
.definition-card:last-child { border-right: 0; }
.definition-index { position: absolute; top: 25px; right: 28px; color: rgba(255,255,255,.15); font: 1.2rem var(--mono); }
.definition-card > p:last-child, .oracle-definition p, .policy-math article > p:last-child { color: var(--muted); font-size: 1.02rem; }
.equation { color: var(--yellow); font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.5; overflow-x: auto; overflow-y: hidden; }
.equation.large { font-size: clamp(1rem, 2vw, 1.65rem); }
.equation mjx-container[display="true"] { margin: .35em 0 !important; text-align: left !important; }
mjx-container { outline: none; }
.contract-diagram { margin-top: 18px; padding: 30px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr auto 1fr; align-items: stretch; gap: 12px; border: 1px solid var(--line); background: #080a0e; }
.contract-input, .contract-model, .contract-output { min-height: 120px; display: grid; align-content: center; gap: 8px; padding: 18px; border: 1px solid var(--line); }
.contract-model { border-color: rgba(244,203,61,.55); background: rgba(244,203,61,.05); }
.contract-output { border-color: rgba(65,152,255,.55); }
.contract-input span, .contract-model span, .contract-output span { color: var(--muted); font: .68rem var(--mono); text-transform: uppercase; }
.contract-input b, .contract-model b, .contract-output b { font: 400 .88rem var(--mono); }
.contract-model b { color: var(--yellow); }
.contract-output b { color: var(--blue); }
.contract-plus, .contract-arrow { display: grid; place-items: center; color: var(--muted); font: .8rem var(--mono); }
.control-bridge { margin-top: 70px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: start; }
.control-bridge .eyebrow { margin-bottom: 14px; }
.control-bridge h3 { margin: 0; font-size: clamp(1.7rem, 2.7vw, 2.8rem); line-height: 1.1; letter-spacing: -.035em; }
.control-bridge > p { margin: 0; padding-top: 4px; color: #b6bdc9; font-size: 1.12rem; }
.rigor-note { margin: 18px 0 0 auto; max-width: 740px; padding: 22px 25px; display: grid; grid-template-columns: auto 1fr; gap: 22px; border-left: 2px solid var(--blue); background: rgba(65,152,255,.05); }
.rigor-note strong { color: var(--blue); font: .72rem var(--mono); text-transform: uppercase; white-space: nowrap; }
.rigor-note p { margin: 0; color: #aeb5c1; font-size: .85rem; }
.choice-demo { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; min-height: 0; border: 1px solid var(--line); background: var(--panel); }
.choice-frame { position: relative; min-height: 210px; overflow: hidden; }
.choice-frame img { width: 100%; height: 100%; object-fit: cover; }
.choice-frame span { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.72); padding: 6px 9px; font: .65rem var(--mono); text-transform: uppercase; }
.choice-question { padding: 32px; }
.choice-question small { color: var(--yellow); font: .78rem var(--mono); }
.choice-question p { margin: 16px 0 24px; font-size: 1.32rem; line-height: 1.35; }
.choice-bars { display: grid; gap: 15px; }
.choice-bars div { display: grid; grid-template-columns: 32px 1fr 54px; align-items: center; gap: 10px; color: var(--muted); font: .92rem var(--mono); }
.choice-bars b { font-weight: 400; }
.choice-bars span { display: block; height: 6px; background: linear-gradient(90deg, var(--blue) var(--p), rgba(255,255,255,.1) var(--p)); }
.choice-bars .picked { color: var(--paper); }
.choice-bars .picked span { background: linear-gradient(90deg, var(--yellow) var(--p), rgba(255,255,255,.1) var(--p)); }
.playjev-lineage { margin: 28px 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; }
.playjev-lineage div { display: grid; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.playjev-lineage .child { border-color: rgba(244,203,61,.55); background: rgba(244,203,61,.05); }
.playjev-lineage small { color: var(--muted); font: .76rem var(--mono); letter-spacing: .06em; }
.playjev-lineage strong { font-size: 1.55rem; }
.playjev-lineage .child strong { color: var(--yellow); }
.playjev-lineage span { color: var(--muted); font: .88rem var(--mono); }
.playjev-lineage i { align-self: center; color: var(--muted); font: normal .8rem var(--mono); white-space: nowrap; }
.model-specs { margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.model-specs span { display: grid; gap: 5px; padding: 16px 18px; border: 1px solid var(--line); color: var(--muted); font: .88rem/1.5 var(--mono); }
.model-specs small { color: #99a2b1; font: .74rem var(--mono); letter-spacing: .06em; }
.model-specs b { color: var(--paper); font-weight: 500; }
.training-note { margin: 0; padding-left: 17px; border-left: 2px solid var(--yellow); color: var(--muted); font-size: 1.12rem; }
.training-note strong { color: var(--paper); }
.choice-caption { margin: 22px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font: .85rem/1.5 var(--mono) !important; }
.small-note { color: var(--muted) !important; font-size: .82rem !important; }

.section-heading { margin-bottom: 70px; }
.section-heading h2 { max-width: 980px; }
.alphabet { background: radial-gradient(circle at 80% 25%, rgba(65,152,255,.08), transparent 30%); }
input[type="range"] { width: 100%; height: 3px; appearance: none; background: rgba(255,255,255,.18); border-radius: 0; accent-color: var(--yellow); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--yellow); }
.robot-definition { margin-top: 18px; padding: 28px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 55px; align-items: center; border: 1px solid var(--line); background: #0b0e13; }
.robot-definition .eyebrow { margin-bottom: 10px; }
.robot-definition p { margin: 0; color: var(--muted); font-size: .9rem; }
.failed-first { margin-top: 100px; }
.failed-first h3, .drift-copy h3, .scheme-copy h3, .failure-heading h3, .roadmap-card h3, .pro-banner h3 { font-size: clamp(1.55rem, 2.35vw, 2.5rem); line-height: 1.12; letter-spacing: -.03em; }
.prototype-intro { display: grid; grid-template-columns: .72fr 1fr; column-gap: 7vw; align-items: start; margin-bottom: 38px; }
.prototype-intro .eyebrow { grid-column: 1/-1; }
.prototype-intro h3 { grid-row: 2/4; margin: 0; }
.prototype-intro > p { color: #aeb5c1; }
.prototype-intro strong { color: var(--paper); }
.prototype-caveat { margin-bottom: 0; padding-top: 17px; border-top: 1px solid var(--line); font-size: .88rem; }
.prototype-comparison { padding: 28px; border: 1px solid var(--line); background: #0b0e13; }
.prototype-slider-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 13px; color: var(--muted); font: .68rem var(--mono); text-transform: uppercase; }
.prototype-slider-head strong { color: var(--yellow); font-weight: 500; }
.prototype-range { position: relative; padding-bottom: 25px; }
#prototype-frame { position: relative; z-index: 2; margin: 0; }
.gripper-zones { position: absolute; z-index: 1; inset: 15px 7px auto; height: 10px; }
.gripper-zone { position: absolute; top: 0; height: 7px; border: 0; border-radius: 0; background: var(--yellow); box-shadow: 0 0 10px rgba(244,203,61,.35); cursor: help; }
.gripper-zone::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 12px; background: var(--yellow); }
.gripper-popover { position: absolute; left: 50%; bottom: calc(100% + 15px); width: max-content; max-width: 210px; padding: 8px 10px; color: var(--paper); background: #050609; border: 1px solid var(--yellow); font: .62rem/1.45 var(--mono); text-align: left; text-transform: none; transform: translate(-50%, 5px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.gripper-zone:hover .gripper-popover, .gripper-zone:focus-visible .gripper-popover { opacity: 1; transform: translate(-50%, 0); }
.slider-help { margin: 0 0 24px; color: var(--muted); font: .62rem/1.5 var(--mono); }
.prototype-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.prototype-card { min-width: 0; margin: 0; border-right: 1px solid var(--line); background: rgba(255,255,255,.018); }
.prototype-card:last-child { border-right: 0; }
.prototype-card header { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.prototype-card header span, .prototype-action small { display: block; color: var(--muted); font: .58rem var(--mono); letter-spacing: .06em; }
.prototype-card h4 { margin: 3px 0 0; font-size: 1.2rem; }
.prototype-card.expert-card h4 { color: var(--yellow); }
.prototype-frame-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.prototype-action { min-height: 70px; padding: 14px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prototype-action code { display: block; margin-top: 6px; color: var(--blue); font: .72rem var(--mono); }
.prototype-card > p { min-height: 65px; margin: 0; padding: 14px 18px; color: var(--muted); font-size: .78rem; }
.prototype-card > p strong { color: var(--red); font: 500 .9rem var(--mono); }
.comparison-note { margin: 18px 0 0; color: var(--muted); font: .65rem/1.55 var(--mono); }
.prototype-conclusion { width: 100%; max-width: none; margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--red); color: #aeb5c1; font-size: .88rem; }
.score-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-pair article { padding: 25px; border: 1px solid rgba(255,107,95,.4); background: rgba(255,107,95,.06); }
.score-pair span, .score-pair p { color: var(--muted); font: .68rem var(--mono); text-transform: uppercase; }
.score-pair strong { display: block; color: var(--red); font: 600 clamp(4rem, 7vw, 7rem)/1 var(--sans); letter-spacing: -.08em; }
.score-pair small { font-size: 1.2rem; letter-spacing: -.02em; }

.evidence { max-width: none; padding-inline: max(5vw, calc((100vw - 1300px)/2)); background: #0d1016; }
.evidence > .section-heading { max-width: 930px; margin-left: auto; margin-right: auto; text-align: center; }
.evidence > .section-heading h2, .evidence > .section-heading > p { margin-left: auto; margin-right: auto; }
.evidence > .section-heading > p { max-width: 820px; color: #b6bdc9; font-size: 1.05rem; }
.evidence > .section-heading .oracle-intro-note { max-width: 790px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.codec-lab { border: 1px solid var(--line); }
.method-intro { margin-bottom: 70px; }
.method-lead { display: grid; grid-template-columns: .65fr 1fr; column-gap: 7vw; align-items: end; margin-bottom: 38px; }
.method-lead .eyebrow { grid-column: 1/-1; }
.method-lead h3 { margin: 0; font-size: clamp(1.8rem, 3.1vw, 3.25rem); line-height: 1.08; letter-spacing: -.04em; }
.method-lead > p:last-child { margin: 0; color: var(--muted); }
.method-cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.method-card { min-width: 0; padding: 29px; border-right: 1px solid var(--line); background: rgba(255,255,255,.018); }
.method-card:last-child { border-right: 0; }
.method-title { display: grid; grid-template-columns: auto 1fr; column-gap: 13px; align-items: baseline; }
.method-title > span { color: var(--muted); font: .65rem var(--mono); }
.method-title h3 { margin: 0; font-size: 1.7rem; letter-spacing: -.035em; }
.method-title small { grid-column: 2; color: var(--muted); font: .62rem var(--mono); text-transform: uppercase; }
.method-equation { min-height: 105px; margin: 28px 0 16px; display: grid; align-items: center; color: var(--yellow); font-size: .79rem; overflow-x: auto; }
.method-equation mjx-container[display="true"] { margin: 0 !important; text-align: left !important; }
.method-card > p { min-height: 190px; color: #aeb5c1; font-size: .83rem; }
.method-animation { min-height: 132px; padding: 12px; border: 1px solid var(--line); background: #090c11; overflow: hidden; }
.animation-labels { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 20px; margin-bottom: 11px; color: #687181; font: .53rem var(--mono); text-transform: uppercase; }
.animation-labels span:nth-child(2) { text-align: center; }
.animation-labels span:last-child { text-align: right; }
.bin-flow, .fast-flow, .oat-flow { height: 78px; display: grid; grid-template-columns: 1fr auto .8fr auto 1fr; gap: 9px; align-items: center; }
.bin-flow > b, .fast-flow > b, .oat-flow > b { color: #515a69; font: 400 .7rem var(--mono); }
.bin-samples { height: 64px; display: flex; justify-content: space-around; position: relative; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bin-samples i { position: relative; top: calc(100% - var(--y)); width: 6px; height: 6px; border-radius: 50%; background: var(--paper); animation: sample-float 2.8s ease-in-out infinite alternate; }
.bin-samples i:nth-child(2) { animation-delay: -.7s; }.bin-samples i:nth-child(3) { animation-delay: -1.4s; }.bin-samples i:nth-child(4) { animation-delay: -2.1s; }
.bin-quantizer { height: 64px; position: relative; display: grid; align-content: space-between; }
.bin-quantizer span { height: 1px; background: rgba(244,203,61,.4); }
.bin-quantizer i { position: absolute; left: 0; right: 0; height: 2px; top: 50%; background: var(--yellow); animation: bin-scan 2.8s steps(4) infinite; box-shadow: 0 0 8px var(--yellow); }
.bin-tokens, .fast-tokens, .ordered-tokens { display: flex; gap: 4px; justify-content: flex-end; }
.bin-tokens span, .fast-tokens span { padding: 6px 5px; border: 1px solid rgba(244,203,61,.55); color: var(--yellow); font: .58rem var(--mono); animation: token-pulse 2.8s ease-in-out infinite; }
.bin-tokens span:nth-child(2), .fast-tokens span:nth-child(2) { animation-delay: -.5s; }.bin-tokens span:nth-child(3), .fast-tokens span:nth-child(3) { animation-delay: -1s; }.bin-tokens span:nth-child(4) { animation-delay: -1.5s; }
.fast-flow svg { width: 100%; }
.fast-flow path { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 180; animation: draw-trajectory 3.4s ease-in-out infinite; }
.frequency-bars { height: 64px; display: flex; align-items: end; gap: 4px; border-bottom: 1px solid var(--line); }
.frequency-bars i { flex: 1; height: var(--h); background: var(--blue); transform-origin: bottom; animation: coefficient-rise 3.4s ease-in-out infinite; animation-delay: calc(var(--d) * .1s); }
.fast-tokens span { border-color: rgba(65,152,255,.6); color: var(--blue); animation-duration: 3.4s; }
.action-chunk { height: 60px; display: flex; align-items: center; gap: 4px; }
.action-chunk i { flex: 1; height: calc(22px + var(--n, 0px)); background: linear-gradient(180deg, var(--paper), #667080); animation: chunk-wave 3s ease-in-out infinite alternate; }
.action-chunk i:nth-child(2) { animation-delay: -.4s; }.action-chunk i:nth-child(3) { animation-delay: -.8s; }.action-chunk i:nth-child(4) { animation-delay: -1.2s; }.action-chunk i:nth-child(5) { animation-delay: -1.6s; }
.oat-encoder { min-height: 58px; position: relative; display: flex; align-items: center; justify-content: space-around; border: 1px solid rgba(114,216,160,.4); color: var(--green); font: .65rem var(--mono); }
.oat-encoder i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: encoder-pass 1.5s linear infinite; }
.ordered-tokens span { min-width: 28px; padding: 7px 3px; border: 1px solid rgba(114,216,160,.55); color: var(--green); text-align: center; font: .58rem var(--mono); opacity: .35; animation: ordered-token 3s ease-in-out infinite; animation-delay: calc(var(--d) * .28s); }
@keyframes sample-float { to { transform: translateY(-8px); } }
@keyframes bin-scan { 0%,100% { top: 78%; } 25% { top: 55%; } 50% { top: 32%; } 75% { top: 9%; } }
@keyframes token-pulse { 0%,55%,100% { background: transparent; } 25% { background: rgba(244,203,61,.18); transform: translateY(-3px); } }
@keyframes draw-trajectory { 0% { stroke-dashoffset: 180; } 45%,75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -180; } }
@keyframes coefficient-rise { 0%,18% { transform: scaleY(.08); opacity: .25; } 50%,80% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(.08); opacity: .25; } }
@keyframes chunk-wave { to { height: 52px; } }
@keyframes encoder-pass { from { transform: translateX(-6px); opacity: .2; } 50% { opacity: 1; } to { transform: translateX(6px); opacity: .2; } }
@keyframes ordered-token { 0%,20%,100% { opacity: .3; transform: translateY(0); } 45%,70% { opacity: 1; transform: translateY(-4px); background: rgba(114,216,160,.12); } }
.method-intro:not(.visible) .method-animation * { animation-play-state: paused; }
.method-card dl { margin: 22px 0 0; }
.method-card dl div { padding: 7px 0; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); font: .62rem var(--mono); }
.method-card dt { color: var(--muted); }
.method-card dd { margin: 0; text-align: right; }
.codec-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.codec-tabs button, .scheme-switch button, .failure-toggle button, .roadmap-expand { border: 1px solid var(--line); background: transparent; color: var(--paper); padding: 8px 12px; cursor: pointer; font: .72rem var(--mono); }
.codec-tabs button { border: 0; border-right: 1px solid var(--line); padding: 17px; color: var(--muted); }
.codec-tabs button:last-child { border-right: 0; }
.codec-tabs button[aria-selected="true"] { color: var(--ink); background: var(--yellow); }
.codec-visual { padding: 42px; display: grid; grid-template-columns: .65fr 1.35fr; gap: 55px; position: relative; }
.codec-score span { color: var(--muted); font: .7rem var(--mono); text-transform: uppercase; }
.codec-score > strong { display: block; margin: 15px 0 2px; color: var(--yellow); font-size: clamp(5rem, 9vw, 9rem); line-height: .85; letter-spacing: -.09em; }
.codec-score small { font-size: 1.5rem; letter-spacing: 0; margin-left: .12em; }
.codec-score p { max-width: 300px; color: #bbc2cd; }
.codec-metrics { display: grid; align-content: center; gap: 25px; }
.codec-metrics > div { display: grid; grid-template-columns: 115px 1fr 55px; align-items: center; gap: 15px; }
.codec-metrics span, .codec-metrics b { font: .7rem var(--mono); font-weight: 400; }
.codec-metrics b { text-align: right; }
.meter { height: 8px; background: rgba(255,255,255,.08); }
.meter i { display: block; height: 100%; width: 100%; background: var(--yellow); transition: width .5s ease; }
.meter.inverse i { background: var(--red); }
.codec-note { position: absolute; right: 42px; bottom: 18px; margin: 0; color: var(--muted); font: .67rem var(--mono); }
.oracle-definition { margin-top: 18px; padding: 30px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 45px; align-items: center; border: 1px solid var(--line); background: #080a0e; }
.oracle-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.oracle-flow span { padding: 9px 11px; border: 1px solid var(--line); font: .67rem var(--mono); }
.oracle-flow b { color: var(--yellow); font-weight: 400; }
.oracle-definition p { margin: 12px 0 0; }
.drift-story { margin-top: 130px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.drift-copy label { display: flex; justify-content: space-between; margin: 45px 0 15px; color: var(--muted); font: .7rem var(--mono); text-transform: uppercase; }
.drift-canvas { position: relative; border: 1px solid var(--line); background: #080a0e; }
.drift-canvas svg { width: 100%; height: auto; }
.drift-stat { position: absolute; right: 16px; bottom: 16px; padding: 12px 15px; background: rgba(9,11,15,.85); border: 1px solid var(--line); }
.drift-stat span { display: block; color: var(--muted); font: .62rem var(--mono); text-transform: uppercase; }
.drift-stat strong { color: var(--red); font: 500 1.2rem var(--mono); }
.finding-row { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.finding-row div { padding: 28px; border-right: 1px solid var(--line); }
.finding-row div:last-child { border-right: 0; }
.finding-row span { color: var(--muted); font: .68rem var(--mono); }
.finding-row strong { display: block; font-size: 2.2rem; color: var(--yellow); }
.finding-row p { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }

.model-schema { margin-bottom: 100px; border: 1px solid var(--line); background: #080a0e; overflow: hidden; }
.schema-topbar { min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--yellow); font: .78rem var(--mono); letter-spacing: .06em; }
.schema-topbar small { color: var(--muted); }
.schema-flow { min-height: 360px; padding: 26px; display: grid; grid-template-columns: 1.35fr auto 1.05fr auto .9fr auto .72fr auto .72fr; gap: 11px; align-items: stretch; }
.schema-flow section { min-width: 0; padding: 16px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.schema-label { margin: 0 0 15px; color: #737c8b; font: .76rem var(--mono); text-transform: uppercase; }
.camera-stream { display: grid; grid-template-columns: 70px 1fr; align-items: start; gap: 14px; padding: 12px; border: 1px solid var(--line); }
.camera-stream + .camera-stream { margin-top: 10px; }
.camera-stream.wrist-stream { border-color: rgba(65,152,255,.5); background: rgba(65,152,255,.04); }
.camera-frames { position: relative; height: 54px; }
.camera-frames img { position: absolute; width: 50px; height: 50px; object-fit: cover; border: 1px solid #626a77; }
.camera-frames img:first-child { left: 0; top: 0; opacity: .42; animation: schema-prev 3s ease-in-out infinite; }
.camera-frames img:last-child { right: 0; bottom: 0; animation: schema-current 3s ease-in-out infinite; }
.camera-frames.single { height: auto; } .camera-frames.single img { position: static; width: 70px; height: 70px; opacity: 1; animation: none; margin: 0; }
.camera-stream strong, .camera-stream small { display: block; font: .74rem var(--mono); line-height: 1.3; }
.camera-stream small { margin-top: 4px; color: var(--muted); }
.task-chip { margin-top: 8px; padding: 9px; border-left: 2px solid var(--yellow); background: rgba(244,203,61,.05); }
.task-chip span { display: block; color: var(--yellow); font: .62rem var(--mono); }
.task-chip b { display: block; margin-top: 3px; color: #b8bfca; font: 400 .7rem/1.35 var(--mono); }
.schema-arrow { min-width: 23px; position: relative; display: grid; place-items: center; color: var(--yellow); }
.schema-arrow i { position: absolute; width: 100%; height: 1px; background: var(--line); overflow: hidden; }
.schema-arrow i::after { content: ""; position: absolute; width: 45%; height: 100%; background: var(--yellow); animation: schema-signal 2.1s linear infinite; }
.schema-arrow b { z-index: 1; padding: 3px; background: #080a0e; font: 400 .7rem var(--mono); }
.vision-streams { display: grid; gap: 7px; }
.vision-streams span { padding: 11px; border: 1px solid rgba(255,255,255,.16); color: var(--muted); font: .72rem var(--mono); text-align: center; animation: stream-feed 3s ease-in-out infinite; }
.vision-streams span:last-child { border-color: rgba(65,152,255,.55); color: var(--blue); animation-delay: -.8s; }
.model-core { margin-top: 14px; min-height: 140px; position: relative; display: grid; place-content: center; gap: 4px; text-align: center; border: 1px solid rgba(244,203,61,.6); background: rgba(244,203,61,.05); overflow: hidden; }
.model-core small { color: var(--muted); font: .68rem var(--mono); }
.model-core strong { color: var(--yellow); font-size: 1.75rem; }
.model-core span { color: #aab2bf; font: .68rem var(--mono); }
.model-core i { position: absolute; inset: -60% auto -60% -30%; width: 22%; background: linear-gradient(90deg, transparent, rgba(244,203,61,.14), transparent); transform: rotate(18deg); animation: core-scan 3s ease-in-out infinite; }
.question-fan { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.question-fan span { padding: 9px 4px; border: 1px solid var(--line); color: var(--paper); font: .7rem var(--mono); text-align: center; animation: question-fire 3.2s ease-in-out infinite; animation-delay: calc(var(--d) * .11s); }
.question-fan span:last-child { grid-column: 1/-1; border-color: rgba(114,216,160,.45); color: var(--green); }
.schema-questions > small { margin-top: 12px; color: var(--muted); font: .64rem/1.4 var(--mono); }
.probability-stack { display: grid; gap: 7px; }
.probability-stack span { width: var(--w); height: 5px; background: linear-gradient(90deg, var(--blue), var(--yellow)); transform-origin: left; animation: probability-read 3.2s ease-in-out infinite; animation-delay: calc(var(--d) * .1s); }
.schema-readout code { margin-top: 18px; color: var(--muted); font: .7rem var(--mono); }
.schema-output { align-items: center; text-align: center; border-color: rgba(65,152,255,.45) !important; }
.output-orbit { width: 56px; aspect-ratio: 1; position: relative; display: grid; place-items: center; border: 1px solid rgba(65,152,255,.5); border-radius: 50%; }
.output-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); animation: output-orbit 2.4s linear infinite; }
.output-orbit span { color: var(--blue); font: 1rem var(--mono); }
.schema-output code { margin-top: 14px; color: var(--blue); font: .74rem/1.55 var(--mono); }
.schema-output strong { margin-top: 8px; color: var(--paper); font: .7rem var(--mono); }
.schema-legend { min-height: 48px; padding: 10px 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; border-top: 1px solid var(--line); color: var(--muted); font: .68rem var(--mono); }
.schema-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; }
.current-dot { background: var(--yellow); }.proposed-dot { background: var(--blue); }
@keyframes schema-prev { 50% { opacity: .68; transform: translateX(2px); } }
@keyframes schema-current { 50% { box-shadow: 0 0 14px rgba(244,203,61,.45); transform: translateX(-2px); } }
@keyframes schema-signal { from { left: -50%; } to { left: 110%; } }
@keyframes stream-feed { 50% { border-color: rgba(244,203,61,.65); color: var(--paper); } }
@keyframes core-scan { 0%,20% { left: -35%; } 70%,100% { left: 125%; } }
@keyframes question-fire { 0%,25%,100% { background: transparent; } 50%,70% { background: rgba(244,203,61,.13); border-color: rgba(244,203,61,.6); transform: translateY(-2px); } }
@keyframes probability-read { 0%,20% { transform: scaleX(.08); opacity: .25; } 55%,85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.08); opacity: .25; } }
@keyframes output-orbit { from { transform: rotate(0deg) translateX(28px) rotate(0deg); } to { transform: rotate(360deg) translateX(28px) rotate(-360deg); } }
.model-schema:not(.visible) * { animation-play-state: paused; }
.policy-math { margin: -80px 0 100px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.policy-math article { min-height: 220px; padding: 30px; border-right: 1px solid var(--line); background: rgba(65,152,255,.025); }
.policy-math article:last-child { border-right: 0; }
.policy-math .equation { min-height: 70px; }
.scheme-lab { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 70px; border: 1px solid var(--line); background: var(--panel); }
.scheme-copy > p:nth-of-type(2) { color: var(--muted); }
.scheme-switch { display: flex; margin-top: 35px; }
.scheme-switch button.active, .failure-toggle button.active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.scheme-score { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 35px; }
.donut { --value: 70; width: 190px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--yellow) calc(var(--value)*1%), rgba(255,255,255,.08) 0); position: relative; transition: background .4s; }
.donut::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--panel); }
.donut span { z-index: 1; font: .8rem var(--mono); }
.donut strong { font-size: 3.2rem; }
.scheme-values { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scheme-values span { display: block; color: var(--muted); font: .63rem var(--mono); text-transform: uppercase; }
.scheme-values strong { font-size: 1.25rem; }
.examples-chapter { padding-bottom: 60px; }
.examples-grid-stage { max-width: none; width: 100%; min-height: 100vh; padding: 60px 4vw; display: flex; flex-direction: column; justify-content: center; background: var(--panel); border-top: 1px solid var(--line); box-sizing: border-box; }
.examples-tabs { display: flex; justify-content: center; gap: 16px; margin-bottom: 36px; }
.examples-tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 220px; padding: 18px 28px; border: 2px solid var(--line); background: var(--ink); color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s; }
.examples-tabs button span { font: 700 1.3rem var(--mono); letter-spacing: .04em; color: inherit; }
.examples-tabs button small { font: .68rem var(--mono); color: inherit; opacity: .75; }
.examples-tabs button:hover { transform: translateY(-2px); }
.examples-help { text-align: center; color: var(--muted); font: .72rem var(--mono); margin: 0 0 24px; }
.examples-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.examples-intro-title, .examples-intro-text { display: flex; flex-direction: column; justify-content: flex-start; }
.examples-intro-title h2 { font-size: clamp(1.9rem, 3.1vw, 3.2rem); }
.examples-intro-text p { margin: 0; padding-left: 18px; border-left: 2px solid var(--yellow); color: #b6bdc9; font-size: 1.1rem; }
.examples-intro h2 em.ok { color: var(--green); }
.examples-intro h2 em.bad { color: var(--red); }
@media (max-width: 900px) { .examples-intro { grid-template-columns: 1fr; } }
.examples-tabs button[data-examples="success"][aria-selected="true"] { border-color: var(--green); color: var(--green); background: rgba(114,216,160,.08); }
.examples-tabs button[data-examples="failure"][aria-selected="true"] { border-color: var(--red); color: var(--red); background: rgba(255,107,95,.08); }
.examples-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.examples-grid[hidden] { display: none; }
.examples-grid.failure { grid-template-columns: repeat(4, 1fr); margin: 0 auto; width: 100%; }
.example-cell { position: relative; aspect-ratio: 1; border: 1px solid var(--line); background: #000; }
.example-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.example-cell:hover { outline: 2px solid var(--yellow); z-index: 4; }
.example-tip { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; background: var(--paper); color: var(--ink); padding: 10px 12px; width: max-content; max-width: 220px; z-index: 5; border: 1px solid var(--ink); font: .66rem var(--mono); }
.example-tip b { display: block; margin-bottom: 4px; }
.example-tip span { color: #535966; }
.example-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--paper); }
.examples-grid .example-cell:nth-child(-n+4) .example-tip { bottom: auto; top: 100%; transform: translate(-50%, -8px); }
.examples-grid .example-cell:nth-child(-n+4) .example-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--paper); }
.examples-grid .example-cell:hover .example-tip, .examples-grid.failure .example-cell:hover .example-tip { opacity: 1; transform: translate(-50%, 0); }

.next { max-width: none; padding-inline: max(5vw, calc((100vw - 1300px)/2)); background: var(--paper); color: var(--ink); }
.next .eyebrow { color: #626773; }
.next .section-heading > p:last-child { color: #535966; }
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.roadmap-card { position: relative; min-height: 620px; padding: 31px; border: 1px solid rgba(9,11,15,.2); background: #e8e7df; overflow: hidden; }
.roadmap-card.priority { background: var(--yellow); }
.roadmap-card .order { position: absolute; top: 20px; right: 24px; color: rgba(9,11,15,.24); font: 2rem var(--mono); }
.roadmap-card h3 { min-height: 105px; font-size: 1.75rem; }
.roadmap-card > p:nth-of-type(2) { color: #535966; }
.roadmap-card ul { margin: 28px 0; padding: 0; list-style: none; font: .72rem var(--mono); text-transform: uppercase; }
.roadmap-card li { padding: 8px 0; border-bottom: 1px solid rgba(9,11,15,.14); }
.roadmap-card li::before { content: "+"; margin-right: 9px; }
.roadmap-expand { position: absolute; left: 31px; bottom: 29px; color: var(--ink); border-color: rgba(9,11,15,.3); }
.roadmap-detail { position: absolute; inset: auto 0 0; min-height: 210px; padding: 30px; background: var(--ink); color: var(--paper); transform: translateY(100%); transition: transform .35s ease; }
.roadmap-detail p { margin: 0; color: #bbc2cd; }
.roadmap-card.open .roadmap-detail { transform: translateY(0); }
.pro-banner { margin-top: 15px; padding: 35px; display: grid; grid-template-columns: .5fr 1fr; gap: 40px; align-items: center; color: var(--paper); background: var(--ink); }
.pro-banner h3 { margin: 0; }
.pro-banner > p { color: #b3bac6; }
.perturbations { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 7px; }
.perturbations span { padding: 7px 10px; border: 1px solid var(--line); color: var(--blue); font: .68rem var(--mono); text-transform: uppercase; }

.closing { max-width: 1200px; margin: auto; padding: 150px 5vw; text-align: center; }
.closing blockquote { margin: 30px auto 55px; max-width: 960px; font-size: clamp(2rem, 3.8vw, 4rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }
.closing blockquote small { display: inline; font-size: .76em; font-weight: 500; color: #b6bdc9; }
.closing blockquote em { display: inline-block; margin-top: .2em; font-style: normal; color: var(--yellow); }
.closing-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.closing-links a { padding: 12px 17px; border: 1px solid var(--line); text-decoration: none; font: .7rem var(--mono); text-transform: uppercase; }
.closing-links a:hover { color: var(--yellow); border-color: var(--yellow); }
.closing-links a.not-ready { opacity: .5; cursor: not-allowed; }
.closing-links a.not-ready:hover { color: var(--paper); border-color: var(--line); }
.references { padding: 100px max(5vw, calc((100vw - 1200px)/2)); border-top: 1px solid var(--line); background: #0d1016; }
.references-head { display: grid; grid-template-columns: .6fr 1fr; gap: 10px 50px; margin-bottom: 50px; }
.references-head .eyebrow { grid-column: 1/-1; }
.references-head h2 { margin: 0; font-size: clamp(2.15rem, 3.5vw, 3.6rem); letter-spacing: -.04em; line-height: 1.05; }
.references-head > p:last-child { margin: 0; color: var(--muted); align-self: end; }
.references ol { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; list-style: none; border-top: 1px solid var(--line); }
.references li { scroll-margin-top: 90px; padding: 22px 22px 22px 0; display: grid; grid-template-columns: 40px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.references li:nth-child(odd) { border-right: 1px solid var(--line); }
.references li:nth-child(even) { padding-left: 22px; }
.references li > span { color: var(--yellow); font: .65rem var(--mono); }
.references a { font-weight: 650; line-height: 1.25; text-decoration: none; }
.references a:hover, .references a:focus-visible { color: var(--yellow); }
.references li p { margin: 6px 0 0; color: var(--muted); font: .68rem/1.5 var(--mono); }
footer { min-height: 110px; padding: 28px 4vw; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid var(--line); color: var(--muted); font: .67rem var(--mono); }
footer p { margin: 0; }
.affiliation { display: flex; align-items: center; gap: 14px; padding: 6px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.affiliation img { height: 34px; width: 34px; object-fit: contain; }
.affiliation-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.affiliation-link span { color: var(--paper); font: 600 .72rem var(--mono); letter-spacing: .05em; white-space: nowrap; }
.affiliation-link:hover span { color: var(--yellow); }
.hero-brand { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: clamp(14px, 2vh, 26px); flex: none; }
.hero-brand img { height: 42px; width: 42px; object-fit: contain; }
.hero-brand span { font: 600 .85rem var(--mono); letter-spacing: .04em; color: var(--paper); text-transform: uppercase; }
.hero-brand span i { margin: 0 3px; color: var(--yellow); font-style: normal; }
@media (max-width: 700px) { .hero-brand { flex-wrap: wrap; gap: 10px; } .hero-brand img { height: 30px; width: 30px; } .hero-brand span { font-size: .68rem; } }
.footer-affiliation { display: flex; align-items: center; gap: 22px; }
.footer-affiliation .footer-ispamm { height: 24px; width: auto; }
.footer-affiliation .footer-sapienza { height: 30px; width: auto; }
.footer-author { color: var(--muted); }
.footer-author a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-author a:hover { color: var(--yellow); border-color: var(--yellow); }
@media (max-width: 720px) { .affiliation { display: none; } footer { flex-direction: column; align-items: flex-start; } .footer-affiliation { flex-wrap: wrap; gap: 16px; } }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .8s ease, transform .8s ease; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

@media (max-width: 1050px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-copy { max-width: 850px; }
  .hero-stage { max-width: 850px; margin: auto; }
  .intro-chapter { grid-template-columns: 1fr; }
  .contract-diagram { grid-template-columns: 1fr; }
  .control-bridge { grid-template-columns: 1fr; gap: 20px; }
  .contract-plus, .contract-arrow { min-height: 24px; }
  .contract-arrow { transform: rotate(90deg); }
  .robot-definition, .oracle-definition { grid-template-columns: minmax(0, 1fr); }
  .robot-definition > *, .oracle-definition > * { min-width: 0; }
  .equation.large { font-size: .92rem; }
  .choice-demo { max-width: 850px; }
  .method-cards { grid-template-columns: 1fr; }
  .method-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .method-card:last-child { border-bottom: 0; }
  .method-card > p { min-height: 0; }
  .drift-story, .scheme-lab { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .schema-flow { grid-template-columns: 1fr; }
  .schema-arrow { min-height: 30px; }
  .schema-arrow i { width: 1px; height: 100%; }
  .schema-arrow i::after { width: 100%; height: 45%; animation-name: schema-signal-vertical; }
  .schema-arrow b { transform: rotate(90deg); }
}

@keyframes schema-signal-vertical { from { top: -50%; } to { top: 110%; } }

@media (max-width: 720px) {
  .site-header { min-height: 60px; }
  .soundless { display: none; }
  .hero { min-height: auto; padding: 65px 20px 90px; }
  h1, .hero h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-facts { justify-content: space-between; gap: 10px; }
  .media-card img, .media-card video { aspect-ratio: 16/9; }
  .chapter { padding: 90px 20px; }
  .chapter-number { display: none; }
  .definition-grid { grid-template-columns: 1fr; }
  .definition-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .definition-card:last-child { border-bottom: 0; }
  .rigor-note { grid-template-columns: 1fr; gap: 8px; }
  .choice-demo { grid-template-columns: 1fr; }
  .playjev-lineage { grid-template-columns: 1fr; }
  .playjev-lineage i { justify-self: center; transform: rotate(90deg); }
  .model-specs { grid-template-columns: 1fr; }
  .method-lead { grid-template-columns: 1fr; gap: 18px; }
  .choice-frame { min-height: 250px; }
  .failed-first { margin-top: 70px; }
  .prototype-intro { grid-template-columns: 1fr; gap: 0; }
  .prototype-intro h3 { grid-row: auto; }
  .prototype-comparison { padding: 20px; }
  .prototype-grid { grid-template-columns: 1fr; }
  .prototype-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .prototype-card:last-child { border-bottom: 0; }
  .prototype-slider-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .score-pair { grid-template-columns: 1fr; }
  .codec-tabs { grid-template-columns: 1fr 1fr; }
  .codec-tabs button { border-bottom: 1px solid var(--line); }
  .codec-visual { grid-template-columns: 1fr; padding: 28px 20px 65px; }
  .codec-note { left: 20px; right: 20px; }
  .codec-metrics > div { grid-template-columns: 100px 1fr 48px; }
  .finding-row { grid-template-columns: 1fr; }
  .finding-row div { border-right: 0; border-bottom: 1px solid var(--line); }
  .scheme-lab { padding: 35px 22px; }
  .policy-math { grid-template-columns: 1fr; margin-top: -55px; }
  .policy-math article { border-right: 0; border-bottom: 1px solid var(--line); }
  .scheme-score { grid-template-columns: 1fr; justify-items: center; }
  .scheme-values { width: 100%; }
  .examples-grid-stage { min-height: 0; padding: 40px 20px; }
  .examples-tabs { gap: 10px; }
  .examples-tabs button { min-width: 0; flex: 1; padding: 14px 10px; }
  .examples-grid, .examples-grid.failure { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .example-tip { max-width: 160px; font-size: .6rem; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap-card:last-child { grid-column: auto; }
  .pro-banner { grid-template-columns: 1fr; }
  .references-head, .references ol { grid-template-columns: 1fr; }
  .references li:nth-child(odd) { border-right: 0; }
  .references li:nth-child(even) { padding-left: 0; }
  .perturbations { grid-column: auto; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Colour inverts against whatever is behind it, so the index reads on every section background. */
.reading-index { position: fixed; right: 10px; top: 50%; z-index: 85; transform: translateY(-50%); font: .62rem var(--mono); text-transform: uppercase; color: #fff; mix-blend-mode: difference; }
.reading-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; justify-items: end; }
.reading-index a { display: flex; align-items: center; gap: 10px; color: #fff; opacity: .55; text-decoration: none; letter-spacing: .05em; transition: opacity .2s; }
.reading-index a em { font-style: normal; margin-right: 6px; }
.reading-index a::after { content: ""; width: 14px; height: 1px; background: #fff; transition: width .2s; }
.reading-index a b { font-weight: 400; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; }
.reading-index a:hover b, .reading-index a[aria-current="location"] b { opacity: 1; transform: none; }
.reading-index a:hover, .reading-index a[aria-current="location"] { opacity: 1; }
.reading-index a[aria-current="location"]::after { width: 28px; }
.reading-percent { margin: 14px 0 0; text-align: right; color: #fff; opacity: .7; font-size: .6rem; }
.reading-percent span { font-weight: 500; }
@media (max-width: 700px) {
  .reading-index { right: 4px; }
  .reading-index a b { display: none; }
}
.alphabet > .rigor-note { margin: 28px 0 0; max-width: none; }

/* Mobile: the index becomes a bottom bar, so it never sits over the text. */
@media (max-width: 700px) {
  .reading-index { top: auto; bottom: 12px; left: 16px; right: 16px; transform: none; display: flex; flex-direction: column-reverse; gap: 8px; }
  .reading-index ol { display: flex; justify-content: space-between; align-items: center; gap: 0; width: 100%; }
  .reading-index li { flex: 1; display: flex; }
  .reading-index a { flex: 1; justify-content: center; }
  .reading-index a::after { width: 100%; }
  .reading-index a[aria-current="location"]::after { width: 100%; height: 3px; }
  .reading-index a em { display: none; }
  .reading-percent { margin: 0; text-align: right; }
}

/* v01: results table */
.results-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.results-table th, .results-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.results-table th { font: 400 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.results-table td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.limit { color: var(--muted); }
.results-table tr.other-model { opacity: .6; }
.chapter.no-border { border-top: 0; }
.chapter.results, .chapter.next { max-width: 1760px; }
.result-divider { text-align: center; padding: 50px 5vw 10px; overflow: hidden; }
.result-divider span { display: inline-block; font-size: clamp(4.5rem, 15vw, 12rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--yellow); text-shadow: 0 0 60px rgba(244,203,61,.35); }
.future-divider span { font-size: clamp(3rem, 11vw, 8.5rem); }
.result-divider.reveal { transform: none; opacity: 0; }
.result-divider.reveal span { transform: translateY(.3em) scale(.82); display: inline-block; transition: transform .9s cubic-bezier(.16,1,.3,1); }
.result-divider.reveal.visible { opacity: 1; transition: opacity .5s ease; }
.result-divider.reveal.visible span { transform: translateY(0) scale(1); }
.results-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.results-chart { margin: 0; border: 1px solid var(--line); background: var(--panel); padding: 20px; }
.results-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font: .78rem var(--mono); }
.results-chart figcaption span { color: var(--muted); font-size: .68rem; }
.results-chart svg { width: 100%; height: auto; display: block; }
.horizon-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin: 36px 0; }
.horizon-chart { margin: 0; border: 1px solid var(--line); background: var(--panel); padding: 20px; max-width: 640px; }
.horizon-chart svg { width: 100%; height: auto; display: block; }
.horizon-text p { margin: 0 0 20px; }
.horizon-text p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .horizon-layout { grid-template-columns: 1fr; } }
.ablation-block { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.ablation-block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ablation-block h3 { font-size: 1.3rem; margin-bottom: 14px; }
@media (max-width: 700px) {
  .results-charts { grid-template-columns: 1fr; }
}
