@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-tight-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/jetbrains-mono-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "VT323"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/vt323-latin.woff2") format("woff2"); }

:root {
  --paper: #fbf8f4;
  --ink: #171317;
  --ink-soft: rgba(23, 19, 23, 0.72);
  --pink: #ff6aa6;
  --hot: #ff1f7a;
  --turq: #2fd9c4;
  --teal: #0c8f80;
  --lilac: #b9a2ff;
  --gold: #ffc94d;
  --grey: #8f8790;

  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pixel: "VT323", "JetBrains Mono", monospace;

  --chrome: #cec8d8;
  --chrome-light: #f5f1ff;
  --chrome-shadow: #766b85;
  --chrome-deep: #44394e;
  --title: #4d3c62;
  --screen: #fbf8f4;

  --gut: clamp(16px, 2.2vw, 32px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 18px/1.3 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--pink); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

/* ---------- background terminal (above section fills, below content) ---------- */
.term { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; font: 500 12px/1.4 var(--mono); }
.term-line { position: absolute; white-space: pre; opacity: 0; animation: termfade var(--life, 7s) linear forwards; }
@keyframes termfade { 0% { opacity: 0; } 8% { opacity: var(--peak, 0.4); } 72% { opacity: var(--peak, 0.4); } 100% { opacity: 0; } }
main > section > *:not(canvas), .foot > * { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gut); pointer-events: none; }
.nav > * { pointer-events: auto; }
.logo { display: grid; place-items: center; width: 40px; height: 40px; background: var(--ink); color: var(--paper); }
.logo svg { width: 28px; height: 28px; }
.nav nav { display: flex; gap: 4px; }
.nav-btn { font: 400 20px/1 var(--pixel); text-decoration: none; padding: 8px 12px; background: var(--chrome); border: 2px solid; border-color: var(--chrome-light) var(--chrome-deep) var(--chrome-deep) var(--chrome-light); }
.nav-btn:hover { background: var(--pink); }
.nav-dark { background: var(--title); color: var(--paper); }
.nav-dark:hover { background: var(--hot); color: var(--ink); }

/* ---------- shared workstation windows ---------- */
.win {
  min-width: 0; padding: 3px; background: var(--chrome);
  border: 2px solid; border-color: var(--chrome-light) var(--chrome-deep) var(--chrome-deep) var(--chrome-light);
  box-shadow: 1px 1px 0 var(--ink);
}
.win-bar {
  display: flex; align-items: center; gap: 6px; min-height: 27px; padding: 3px 5px;
  background: var(--title); color: var(--paper); margin-bottom: 3px;
  font: 400 20px/1 var(--pixel); letter-spacing: 0.01em; user-select: none;
}
.win-bar > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-bar > .bar-meta { margin-left: auto; flex-shrink: 1; font: 400 16px/1 var(--pixel); color: #e0d4ef; }
.win-bar::after { content: ""; flex: none; width: 4px; height: 4px; margin: 0 3px 6px 5px; background: var(--turq); box-shadow: 6px 0 0 var(--lilac), 6px 6px 0 var(--pink); }
.box { position: relative; display: block; flex: none; width: 15px; height: 15px; padding: 0; border: 2px solid; border-color: var(--chrome-light) var(--chrome-deep) var(--chrome-deep) var(--chrome-light); background: var(--chrome); color: var(--ink); }
.box::before { content: ""; position: absolute; left: 2px; right: 2px; top: 4px; height: 2px; background: var(--chrome-deep); }
[data-drag] .win-bar { cursor: grab; }
[data-drag].dragging .win-bar { cursor: grabbing; }
.win-body { padding: 10px 12px 12px; font: 400 20px/1.05 var(--pixel); }
.win-body p { margin: 0; }
.win-pre { margin: 0; padding: 8px 10px; font: 400 17px/1.05 var(--pixel); white-space: pre; overflow: hidden; }
.win-foot, .spend, .legend, .list-foot {
  background: var(--chrome); color: var(--chrome-deep); border: 1px solid;
  border-color: var(--chrome-shadow) var(--chrome-light) var(--chrome-light) var(--chrome-shadow);
  padding: 4px 7px; font: 400 16px/1.1 var(--pixel);
}
.win-foot { margin-top: 3px; }
.win-body, .models, .hist, .lineage, .tail, .scores, .shadow-checks, .code, .doc, .list {
  background: var(--screen); box-shadow: inset 1px 1px 0 var(--chrome-shadow), inset -1px -1px 0 var(--chrome-light);
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gut) clamp(40px, 8vh, 96px); }
#sky { position: absolute; left: 0; top: 0; width: 100%; height: 70%; display: block; image-rendering: pixelated; }
.boot { position: absolute; left: 56%; top: 15%; transform: translateX(-50%); width: 280px; z-index: 3; }
.boot .win-body p + p { margin-top: 2px; }
.progress { position: relative; margin-top: 8px; height: 20px; padding: 2px; border: 2px solid; border-color: var(--chrome-shadow) var(--chrome-light) var(--chrome-light) var(--chrome-shadow); background: var(--chrome); }
.progress-fill { height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--title) 0 7px, transparent 7px 9px); }
.progress span { position: absolute; left: 4px; top: 0; font: 400 18px/18px var(--pixel); color: var(--paper); mix-blend-mode: difference; }
.boot .announce { text-align: center; }
.boot .announce a { display: inline-block; margin-top: 8px; }

.mini { position: absolute; z-index: 3; }
.agents-win { left: 140px; top: 92px; width: 450px; }
.agents-win canvas { display: block; width: 100%; height: auto; aspect-ratio: 440 / 250; }

.stack-r { position: absolute; z-index: 3; right: 4%; top: 86px; width: 330px; display: flex; flex-direction: column; gap: 20px; }
.stack-r .mini { position: relative; }
.models { padding: 5px 6px 4px; }
.mrow { white-space: nowrap; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 1px 4px; font: 400 18px/1.15 var(--pixel); transition: background 0.15s; }
.mname, .mmodel { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mmodel { max-width: 112px; }
.mrow.hot { background: var(--ink); color: var(--paper); }
.lamp { width: 10px; height: 10px; border: 1.5px solid currentColor; }
.lamp.learning { background: repeating-conic-gradient(var(--lilac) 0 25%, transparent 0 50%) 0 0 / 4px 4px; }
.lamp.on { background: var(--c); }
.mmodel { color: var(--grey); padding: 0 4px; }
.mrow.is-spec .mmodel { background: var(--c); color: var(--ink); }
.mrow.hot .mmodel { color: var(--paper); background: transparent; }
.spend { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.spend span { margin-right: auto; }
.spend canvas { width: 72px; height: 18px; image-rendering: pixelated; }
.spend b { font: 400 24px/1 var(--pixel); color: var(--hot); min-width: 52px; text-align: right; }
.state-win { align-self: stretch; }
.state-win canvas { display: block; width: 100% !important; height: auto !important; aspect-ratio: 5 / 1; margin: 0 0 3px; }
.legend { display: flex; align-items: center; gap: 4px; }
.legend i { display: inline-block; width: 9px; height: 9px; border: 1px solid var(--ink); margin-left: 6px; }
.legend i:first-child { margin-left: 0; }
.lg-learn { background: repeating-conic-gradient(var(--lilac) 0 25%, var(--paper) 0 50%) 0 0 / 4px 4px; }
.lg-pass { background: var(--turq); }
.lg-serve { background: linear-gradient(90deg, var(--pink), var(--turq), var(--lilac)); }
.lg-drift { background: var(--hot); }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.wire-casing { fill: none; stroke: var(--ink); stroke-width: 5.5; stroke-linejoin: miter; }
.wire { fill: none; stroke-width: 2.5; stroke-dasharray: 5 3; animation: wireflow 0.6s linear infinite; transition: opacity 0.5s; }
.packet { fill: var(--ink); }
.wires .fade { opacity: 0; transition: opacity 0.5s; }
@keyframes wireflow { to { stroke-dashoffset: -16; } }

.hero-copy { position: relative; z-index: 3; text-align: center; }
.pre { margin: 0 0 18px; font: 500 16px/1.2 var(--sans); }
h1 { margin: 0 auto; max-width: 24ch; font: 500 clamp(52px, 6.6vw, 124px)/0.86 var(--sans); letter-spacing: -0.045em; }
.hero-links { display: flex; justify-content: center; gap: 28px; margin-top: 30px; }
.hero-links a { font: 500 21px/1 var(--sans); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.hero-links a:hover { color: var(--hot); }
.scroll-tick { position: absolute; left: var(--gut); bottom: 14px; font: 400 16px/1 var(--pixel); z-index: 3; }

/* ---------- shared section idioms ---------- */
.pink { position: relative; background: var(--pink); padding: clamp(80px, 10vw, 140px) var(--gut) clamp(80px, 10vw, 120px); }
.turq { position: relative; background: var(--turq); padding: clamp(80px, 10vw, 140px) var(--gut) clamp(80px, 10vw, 120px); }
.satin { position: relative; background: var(--paper); padding: clamp(80px, 10vw, 140px) var(--gut) 40px; }

.mono-label { margin: 0 0 14px; font: 400 13px/1.2 var(--mono); letter-spacing: 0.02em; }
.rule { border-left: 1px solid var(--ink); padding: 2px 0 2px 10px; }
.rule p { margin: 0; }
.lead { font: 500 clamp(19px, 1.55vw, 24px)/1.22 var(--sans); letter-spacing: -0.01em; max-width: 46ch; }

.h-xl { margin: 0; font: 500 clamp(44px, 5.6vw, 96px)/0.86 var(--sans); letter-spacing: -0.045em; }
.h-mega { margin: 0; font: 500 clamp(56px, 8.4vw, 150px)/0.84 var(--sans); letter-spacing: -0.05em; }



/* ---------- thesis ---------- */
.thesis-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 80px); align-items: start; }
.thesis-main { display: flex; flex-direction: column; gap: 34px; }
.thesis-main .h-xl { margin-bottom: 10px; }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.tri p:not(.mono-label) { font: 500 18px/1.2 var(--sans); }


.lineage { margin: 0; padding: 18px 20px 22px; font: 500 clamp(10.5px, 1.05vw, 14.5px)/1.32 var(--mono); overflow-x: auto; }
.lineage .ok { color: #076b60; font-weight: 700; }
.lineage .no { color: #795800; font-weight: 700; }
.lineage .rt { color: #b0125a; font-weight: 700; }


.live-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 2.5vw, 40px); max-width: 1400px; margin: 0 auto; align-items: stretch; }
.tail-win, .scores-win { min-width: 0; display: flex; flex-direction: column; }

.tail { height: 392px; flex: 1; min-height: 0; overflow: hidden; overflow-anchor: none; padding: 16px 18px; font: 500 12px/1.5 var(--mono); background: var(--paper); }
.tail div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tail .sp { color: #076b60; font-weight: 700; }
.tail .og { color: #b0125a; font-weight: 700; }
.tail .dim { color: #6a5d65; }

.scores { padding: 10px 16px 14px; flex: 1; }
.score-heading, .score-row, .score-axis { display: grid; grid-template-columns: 140px minmax(70px, 1fr) 58px; column-gap: 14px; align-items: center; }
.score-heading { min-height: 30px; padding: 3px 0; font: 400 16px/1 var(--pixel); color: var(--chrome-deep); background: var(--chrome); border: 1px solid; border-color: var(--chrome-light) var(--chrome-shadow) var(--chrome-shadow) var(--chrome-light); }
.score-heading > span { padding: 0 4px; }
.score-heading > :last-child { text-align: right; }
.score-row { min-height: 46px; border-bottom: 1px solid rgba(23, 19, 23, 0.12); }
.score-name { font: 400 19px/1 var(--pixel); }
.score-status { display: block; margin-top: 3px; font: 400 15px/1 var(--pixel); }
.score-status.st-shipped { color: #076b60; }
.score-status.st-rejected { color: #795800; }
.score-status.st-retired { color: #b0125a; }
.score-val { font: 500 13px/1.3 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.score-val small { display: block; font-size: 10px; color: var(--ink-soft); }
.score-track, .watch-track { display: block; position: relative; height: 18px; background: #e8e3ef; border: 1px solid; border-color: var(--chrome-shadow) var(--chrome-light) var(--chrome-light) var(--chrome-shadow); }
.score-track::before, .watch-track::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), #c6bed1 calc(100% / 6 - 1px) calc(100% / 6)); }
.score-threshold { position: absolute; top: -10px; bottom: -10px; left: 83.3333%; width: 2px; background: var(--title); z-index: 1; }
.score-dot { position: absolute; top: 50%; z-index: 2; width: 10px; height: 10px; transform: translate(-50%, -50%); border: 1px solid var(--ink); background: var(--turq); box-shadow: inset 1px 1px 0 #fff; }
.dot-rejected { background: var(--gold); }
.dot-retired { background: #b0125a; border-radius: 0; }
.score-axis { margin-top: 10px; font: 500 10px/1.3 var(--mono); color: var(--ink-soft); }
.score-scale, .watch-scale { display: flex; justify-content: space-between; position: relative; }
.scale-threshold { position: absolute; left: 83.3333%; transform: translateX(-50%); color: var(--title); }


.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin-top: clamp(80px, 10vw, 140px); }
.shadow-checks { padding: 0 28px 22px; }
.watch-case { padding: 22px 0; border-bottom: 1px solid rgba(23, 19, 23, 0.18); }
.watch-case + .watch-case { padding-bottom: 8px; border-bottom: 0; }
.watch-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.watch-label b { font: 400 20px/1 var(--pixel); }
.watch-status { font: 400 17px/1 var(--pixel); color: #076b60; }
.watch-status.retired { color: #b0125a; }
.watch-reading { display: flex; align-items: baseline; gap: 16px; margin: 12px 0 16px; }
.watch-reading strong { font: 400 clamp(32px, 3vw, 46px)/1 var(--pixel); }
.watch-reading > span { font: 400 17px/1 var(--pixel); color: var(--chrome-deep); }
.watch-track { height: 20px; }
.watch-track .score-threshold { top: 0; bottom: 0; }
.watch-track .score-dot { width: 11px; height: 11px; }
.dot-before { background: var(--paper); }
.drift-span { position: absolute; top: 50%; height: 1px; background: #b0125a; }
.drift-span::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border: solid #b0125a; border-width: 0 0 1px 1px; transform: rotate(45deg); }
.watch-scale { margin-top: 3px; font: 500 10px/1.3 var(--mono); color: var(--ink-soft); }

/* ---------- turquoise ---------- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.stages p:not(.mono-label) { font: 500 19px/1.25 var(--sans); max-width: 34ch; }
.integrate { align-items: start; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 28px 0 0; font: 500 14px/1.35 var(--mono); }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; }
.tabs { display: flex; gap: 3px; padding: 5px 4px 0; background: var(--chrome); }
.tabs button { color: var(--chrome-deep); font: 400 19px/1 var(--pixel); border: 2px solid; border-color: var(--chrome-light) var(--chrome-deep) var(--chrome-shadow) var(--chrome-light); background: var(--chrome); padding: 4px 12px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--title); border-bottom-color: var(--paper); }
.code { margin: 0; padding: 16px 0; font: 500 clamp(12.5px, 1.05vw, 15px)/1.7 var(--mono); overflow-x: auto; }
.code .ln { display: block; padding: 0 16px; white-space: pre; }
.code .ln::before { content: attr(data-n); display: inline-block; width: 2.4ch; margin-right: 1.6ch; color: var(--grey); text-align: right; }
.code .add { background: rgba(47, 217, 196, 0.28); }
.code .del { background: rgba(255, 31, 122, 0.14); color: var(--grey); text-decoration: line-through; }
.code .k { color: #6b3fd6; }
.code .s { color: #b0125a; }
.code .c { color: var(--grey); }

/* ---------- satin / finale ---------- */
.sig { margin-top: 18px !important; }

.foot { position: relative; background: var(--ink); color: var(--paper); padding: 40px var(--gut) 24px; }
.foot-row { display: flex; gap: 28px; margin-top: 28px; font: 500 14px/1 var(--sans); }
.foot-row span { margin-right: auto; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .thesis-grid, .split, .live-grid { grid-template-columns: minmax(0, 1fr); }
  .tail { flex: none; height: 260px; }
}
@media (max-width: 760px) {
  .tri, .stages { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- pixel cursor + invert easter egg ---------- */
html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' shape-rendering='crispEdges'%3E%3Cpath d='M2 2 L2 19 L6.5 14.5 L9.5 21 L12.5 19.8 L9.6 13.4 L15.5 13.4 Z' fill='%23fbf8f4' stroke='%23171317' stroke-width='1.6' stroke-linejoin='miter'/%3E%3C/svg%3E") 2 2, auto; }
a, button, .icon, [data-drag] .win-bar { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' shape-rendering='crispEdges'%3E%3Cpath d='M2 2 L2 19 L6.5 14.5 L9.5 21 L12.5 19.8 L9.6 13.4 L15.5 13.4 Z' fill='%23ff1f7a' stroke='%23171317' stroke-width='1.6' stroke-linejoin='miter'/%3E%3C/svg%3E") 2 2, pointer; }
html.inverted { filter: invert(1) hue-rotate(180deg); }
html.inverted #sky, html.inverted #shrinkCanvas { filter: invert(1) hue-rotate(180deg); }
.flash { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: var(--ink); animation: flash 0.28s steps(3) forwards; }
@keyframes flash { 0% { opacity: 1; } 50% { opacity: 0; background: var(--hot); } 100% { opacity: 0; } }

/* ---------- desktop icons ---------- */
.icons { position: absolute; z-index: 4; left: var(--gut); top: 92px; display: flex; flex-direction: column; gap: 18px; }
.icon { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 0; background: none; border: 0; color: var(--ink); font: inherit; }
.icon svg { width: 36px; height: 36px; }
.icon span { font: 400 17px/1 var(--pixel); background: var(--paper); padding: 1px 4px; }
.icon:hover span, .icon:focus-visible span, .icon.sel span { background: var(--ink); color: var(--paper); }
.icon:hover svg { filter: drop-shadow(2px 2px 0 var(--hot)); }

/* ---------- opened windows (fixed layer) ---------- */
.desk { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.desk .win { position: absolute; pointer-events: auto; animation: pop 0.22s steps(4); }
@keyframes pop { 0% { clip-path: inset(0 100% 100% 0); } 100% { clip-path: inset(0 0 0 0); } }
.desk .win-bar .box { cursor: pointer; }
.desk .win-bar .box:hover { background: var(--pink); }
.doc { margin: 0; padding: 12px 14px; max-height: 300px; overflow: auto; font: 500 12.5px/1.55 var(--mono); white-space: pre-wrap; }
.doc b { color: var(--hot); }
.list { width: 100%; border-collapse: collapse; font: 400 18px/1.05 var(--pixel); }
.list th { text-align: left; font-weight: 400; border: 1px solid; border-color: var(--chrome-light) var(--chrome-shadow) var(--chrome-shadow) var(--chrome-light); background: var(--chrome); padding: 4px 8px; color: var(--chrome-deep); }
.list td { padding: 3px 10px; white-space: nowrap; }
.list tr:hover td { background: var(--ink); color: var(--paper); }
.list .st-shipped { color: #076b60; } .list .st-rejected { color: #795800; } .list .st-retired { color: #b0125a; }
.list tr:hover .st-shipped, .list tr:hover .st-rejected, .list tr:hover .st-retired { color: inherit; }
.list-foot { display: flex; justify-content: space-between; margin-top: 3px; }

/* ---------- scroll-scrubbed shrink ---------- */
.shrink { position: relative; height: 340vh; background: var(--paper); }
.shrink-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#shrinkCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.shrink-hud { position: absolute; left: var(--gut); right: var(--gut); top: 76px; display: flex; justify-content: space-between; font: 400 13px/1 var(--mono); z-index: 2; }
.shrink-line { position: absolute; left: 0; right: 0; bottom: clamp(70px, 12vh, 130px); margin: 0; text-align: center; z-index: 2; font: 500 clamp(44px, 6vw, 112px)/0.9 var(--sans); letter-spacing: -0.045em; }
.shrink-sub { position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vh, 80px); margin: 0; text-align: center; z-index: 2; font: 400 14px/1 var(--mono); }
.shrink-hint { position: absolute; left: var(--gut); bottom: 16px; z-index: 2; font: 400 17px/1 var(--pixel); animation: bob 1.2s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- dithered seams ---------- */
.dither { position: relative; z-index: 2; height: 48px; background-repeat: repeat-x; background-size: auto 48px; image-rendering: pixelated; margin: -1px 0; }

/* scramble */
[data-scramble] .sc { color: var(--hot); }

@media (min-width: 861px) {
  .hero { min-height: max(100svh, 800px); }
}
@media (max-width: 1300px) {
  .icons { display: none; }
  .agents-win { left: 16px; top: 76px; }
  .stack-r { right: 16px; top: 76px; width: 300px; }
  .boot { left: 40px; top: 382px; transform: none; }
}
/* phones and small tablets: the hero becomes a vertical flow and the machine stacks full width */
.machine-cap, .lineage-m { display: none; }
@media (max-width: 860px) {
  .hero { justify-content: flex-start; padding-top: 84px; padding-bottom: 48px; gap: 0; }
  #sky { height: 300px; }
  .boot { position: relative; left: auto; top: auto; transform: none; order: 1; align-self: center; width: min(300px, 100%); margin-bottom: 64px; }
  .hero-copy { order: 2; }
  h1 { font-size: clamp(40px, 10.6vw, 64px); max-width: 16ch; }
  .hero-links { margin-top: 24px; }
  .machine-cap { display: block; order: 3; margin: 56px 0 12px; text-align: center; font: 400 13px/1.3 var(--mono); }
  .mini { position: relative; left: auto; right: auto; top: auto; width: 100%; max-width: 560px; align-self: center; }
  .agents-win { order: 4; }
  .agents-win canvas { width: 100%; height: auto; aspect-ratio: 440 / 250; }
  .stack-r { position: relative; order: 5; right: auto; top: auto; width: 100%; max-width: 560px; align-self: center; margin-top: 28px; gap: 28px; }
  .scroll-tick { display: none; }
  .lineage-d { display: none; }
  .lineage-m { display: block; font-size: clamp(10px, 2.9vw, 13px); padding: 14px 12px 16px; }
}

/* ---------- our idioms below the hero ---------- */
.fig { margin: 0; }
.fig figcaption { margin-top: 12px; font: 400 13px/1.4 var(--mono); }
.fig figcaption b { display: inline-block; font-weight: 700; padding-right: 10px; margin-right: 8px; border-right: 1px solid currentColor; }
.lineage-sheet { padding: 3px; }
.lineage-fig { margin-top: clamp(64px, 8vw, 110px); }

.hist-win { align-self: start; }
.hist { display: flex; flex-direction: column; padding: 8px 12px 12px; }
.hist-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 38px; gap: 8px; align-items: center; min-height: 34px; font: 400 18px/1 var(--pixel); border-bottom: 1px solid #ded7e6; }
.hist-row:last-child { border-bottom: 0; }
.hist-bar { height: 14px; padding: 2px; position: relative; background: #e8e3ef; border: 1px solid; border-color: var(--chrome-shadow) var(--chrome-light) var(--chrome-light) var(--chrome-shadow); }
.hist-fill { display: block; height: 8px; width: 0; transform: scaleX(0); transform-origin: left; transition: transform 1.2s steps(12); background: repeating-linear-gradient(90deg, var(--title) 0 5px, transparent 5px 7px); }
.hist-n { text-align: right; font: 500 11px/1.2 var(--mono); font-variant-numeric: tabular-nums; }


.pink-2 { padding-top: clamp(80px, 10vw, 130px); }
.results-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.results-head .rule p:not(.mono-label) { font: 500 19px/1.3 var(--sans); }
.live-grid { display: grid; }
.stats-tri { margin-top: clamp(48px, 6vw, 80px); }
.stats-tri .num { font: 500 clamp(40px, 4.4vw, 72px)/0.95 var(--sans) !important; letter-spacing: -0.04em; margin-bottom: 8px !important; }
.loop-h { margin-bottom: clamp(48px, 6vw, 80px); }

.finale { margin-top: clamp(80px, 10vw, 140px); display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 80px); }
#wordmark { width: min(100%, 1400px); height: auto; aspect-ratio: 5 / 1; display: block; image-rendering: pixelated; }
.access-win { width: min(720px, 100%); }
.access-body { background: var(--ink); color: var(--paper); padding: 16px 18px 20px; font: 500 14px/1.6 var(--mono); }
.access-body p { margin: 0; }
.access-body .ps { color: var(--turq); }
.access-body .dim { color: var(--grey); margin-top: 4px; }
.run-btn { display: inline-block; margin-top: 18px; background: var(--chrome); color: var(--ink); text-decoration: none; font: 400 21px/1 var(--pixel); padding: 10px 15px; border: 2px solid; border-color: var(--chrome-light) var(--chrome-deep) var(--chrome-deep) var(--chrome-light); }
.run-btn:hover { background: var(--lilac); }
.run-btn:active { border-color: var(--chrome-deep) var(--chrome-light) var(--chrome-light) var(--chrome-deep); }
.blink-c { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 1100px) {
  .results-head { grid-template-columns: minmax(0, 1fr); }
  .hist-win { max-width: 420px; }
}

@media (max-width: 600px) {
  .scores { padding: 8px 10px 16px; }
  .score-heading, .score-row, .score-axis { grid-template-columns: 112px minmax(48px, 1fr) 44px; gap: 9px; }
  .score-heading { font-size: 14px; }
  .score-name { font-size: 17px; }
  .score-val { font-size: 12px; }
  .score-dot { width: 8px; height: 8px; }
  .score-axis { font-size: 9px; }
  .score-scale .scale-threshold { top: 15px; }
  .scores .score-axis { margin-bottom: 14px; }
  .tail { padding: 12px 16px; font-size: 10px; height: 230px; }
  .shadow-checks { padding: 0 18px 20px; }
  .watch-reading { flex-wrap: wrap; gap: 8px 12px; }
  .watch-reading strong { font-size: 32px; }
  .watch-label b { font-size: 19px; }
  .watch-status { font-size: 16px; }
}

.shrink-label { position: absolute; z-index: 2; transform: translate(-50%, 10px); text-align: center; font: 400 18px/1.05 var(--pixel); opacity: 0; white-space: nowrap; }
.shrink-label b { display: block; font-weight: 400; background: var(--ink); color: var(--paper); padding: 1px 5px; }
.shrink-label span { display: block; margin-top: 2px; }
.shrink-label.st-rejected span { color: #b58300; }
.shrink-label.st-retired span { color: var(--hot); }

.shrink-label .short { display: none; }
.shrink-label i { font-style: normal; }
@media (max-width: 700px) {
  .shrink-label { font-size: 15px; }
  .shrink-label .full { display: none; }
  .shrink-label .short { display: inline; }
  .shrink-line { font-size: clamp(36px, 10vw, 56px); padding: 0 16px; }
  .shrink-sub { padding: 0 24px; line-height: 1.4; bottom: 24px; }
  .shrink-line { bottom: 96px; }
  .shrink-hint { display: none; }
}

/* ---------- legal pages ---------- */
.nav-btn[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nav-solid { padding-top: 8px; padding-bottom: 8px; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.legal-head { background: var(--pink); padding: clamp(110px, 12vw, 170px) var(--gut) clamp(48px, 6vw, 80px); border-bottom: 1.5px solid var(--ink); }
.legal-head-turq { background: var(--turq); }
.legal-head h1 { margin: 0; max-width: none; font-size: clamp(64px, 10vw, 168px); }
.legal-head .lead { margin: 28px 0 0; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 22px; font: 400 13px/1.2 var(--mono); }
.legal-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: start; max-width: 1320px; padding: clamp(48px, 6vw, 96px) var(--gut) clamp(80px, 10vw, 140px); }
.toc { position: sticky; top: 76px; }
.toc ol { list-style: none; margin: 0; padding: 6px 0 8px; font: 400 19px/1.1 var(--pixel); }
.toc a { display: block; padding: 3px 12px; text-decoration: none; }
.toc a:hover, .toc a:focus-visible { background: var(--ink); color: var(--paper); }
.legal-body { max-width: 74ch; }
.legal-body section { border-left: 1px solid var(--ink); padding: 2px 0 2px clamp(14px, 2vw, 24px); margin-bottom: clamp(44px, 5vw, 64px); scroll-margin-top: 80px; }
.legal-body h2 { margin: 0 0 18px; font: 500 clamp(28px, 2.6vw, 40px)/1 var(--sans); letter-spacing: -0.03em; }
.legal-body h2 .mono-label { display: block; margin-bottom: 12px; letter-spacing: 0.02em; }
.legal-body p, .legal-body li { font: 500 17px/1.5 var(--sans); }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--hot); }
.legal-body strong { font-weight: 600; }
.legal-body a { text-underline-offset: 3px; }
.legal-body a:hover { color: var(--hot); }
.tldr { margin-bottom: clamp(44px, 5vw, 64px); box-shadow: 6px 6px 0 var(--pink), 12px 12px 0 var(--turq); }
.tldr ul { margin: 0; padding: 14px 18px 8px 36px; }
.ret-wrap { overflow-x: auto; margin: 0 0 16px; }
.ret { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 500 14px/1.45 var(--mono); }
.ret th { text-align: left; font: 400 18px/1 var(--pixel); background: var(--ink); color: var(--paper); padding: 5px 12px 4px; }
.ret td { padding: 8px 12px; border-top: 1px solid var(--ink); vertical-align: top; }
.ret td:first-child { font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .ret td:first-child { white-space: normal; }
  .tldr { margin-right: 12px; }
}
@media (max-width: 420px) {
  /* policy pages carry three buttons; the home page keeps its call to action */
  .nav-solid nav .nav-dark { display: none; }
}
