/* Visual polish · 2026-10-29 · final style layer, presentation only (wording, data and slide order unchanged). */

/* Wayfinding: the eyebrow carries the test block (01–08); the slide number stays in the footer and in print. */
@media screen { .eyebrow .slide-id { display: none; } }
.block-tag { display: inline-grid; place-items: center; min-width: 2.75em; height: 1.85em; padding: 0 .5em; border: 1px solid currentColor; font-family: var(--mono); font-weight: 600; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.eyebrow .block-tag { color: var(--paper); }
.light .eyebrow .block-tag { color: var(--ink); }

/* Footer progress split by test block; the current block is a thicker band. */
.progress .pb-band, .progress .pb-fill, .progress .pb-cut { position: absolute; display: block; pointer-events: none; }
.progress .pb-band { top: -1px; height: 3px; background: #3b3b3b; }
.progress .pb-fill { top: -1px; height: 3px; background: var(--paper); z-index: 1; }
.progress .pb-cut { top: -3px; bottom: -3px; width: 6px; margin-left: -3px; background: var(--ink); z-index: 2; }

/* Presenting in fullscreen: no production label or tool buttons on the projector (buttons return on hover). */
:root:fullscreen .topbar__cut, :root:fullscreen .topbar__actions { opacity: 0; transition: opacity .2s; }
:root:fullscreen .topbar:hover .topbar__actions, :root:fullscreen .topbar:has(:focus-visible) .topbar__actions { opacity: 1; }
@media (display-mode: fullscreen) {
  .topbar__cut, .topbar__actions { opacity: 0; transition: opacity .2s; }
  .topbar:hover .topbar__actions, .topbar:has(:focus-visible) .topbar__actions { opacity: 1; }
}

/* Line breaks: no single word left alone on the last line; balanced short headings. */
.slide p, .slide li, .slide blockquote, .slide figcaption { text-wrap: pretty; }
.slide h3, .slide .large-conclusion, .slide .closing-punch { text-wrap: balance; }

/* Hierarchy: what differs between columns is the largest label. */
#knowledge-winners .knowledge-podium article > span { font: 400 clamp(22px, 2.05vw, 34px)/1.15 var(--font); letter-spacing: -.03em; color: var(--ink); }
#knowledge-winners .knowledge-podium b { margin-top: 12px; }
#knowledge-winners .knowledge-podium p { font: 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
#failure-bill .split-measures article > span { font: 500 clamp(12px, .95vw, 15px)/1.45 var(--mono); letter-spacing: .08em; color: var(--ink); }

/* Signalling: full ink only where the slide's own text points. */
#model-ranking.has-cited .bar-row .bar-fill { background: #5e5e5e; }
#model-ranking.has-cited .bar-row[data-state="delivery-limited"] .bar-fill { background: repeating-linear-gradient(135deg, #7a7a7a 0 3px, #262626 3px 7px); }
#model-ranking.has-cited .bar-row .bar-name, #model-ranking.has-cited .bar-row .bar-value { color: #9a9a9a; }
#model-ranking.has-cited .bar-row.is-cited .bar-fill { background: var(--paper); }
#model-ranking.has-cited .bar-row.is-cited .bar-name, #model-ranking.has-cited .bar-row.is-cited .bar-value { color: var(--paper); }
#model-ranking.has-cited .bar-row.is-cited .bar-name { font-weight: 600; }
#no-global-winner .bar-value { font-size: clamp(12px, 1vw, 15px); }
#task-winners .task-results article { color: #a8a8a8; }
#task-winners .task-results article.is-cited, #task-winners .task-results article.is-cited > span { color: var(--paper); }
#task-winners .task-results article.is-cited p { font-weight: 600; }
#economics .cost-speed-table > div > :not(:first-child) { justify-self: end; text-align: right; }
#economics .cost-speed-table .is-cited { background: var(--ink); color: var(--paper); box-shadow: 0 0 0 6px var(--ink); }

/* Hermes: Δ column (difference of the two cells already shown). */
#hermes-results .hermes-comparison > div { grid-template-columns: 1.45fr .85fr 1.05fr .6fr; }
#hermes-results .hermes-comparison .hc-delta { font: 500 clamp(18px, 1.55vw, 26px)/1 var(--mono); font-style: normal; text-align: right; letter-spacing: -.02em; }
#hermes-results .hermes-comparison .hc-head .hc-delta { font: 11px/1.4 var(--mono); color: var(--muted); }
#hermes-results .hermes-comparison .hc-delta.is-zero { color: var(--muted); }

/* Outcome as a state: solid = solved, outline = not achieved (the device of "a shell." on the cover). */
.run-state { display: inline-block; margin-left: .45em; padding: .3em .6em .22em; border: 1px solid currentColor; font: 600 11px/1.2 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; vertical-align: .15em; }
.light .run-state { color: var(--ink); }
.slide:not(.light) .run-state { color: var(--paper); }
.light .run-state.is-solved { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.slide:not(.light) .run-state.is-solved { background: var(--paper); border-color: var(--paper); color: var(--ink); }
#controller-reversals .controller-case-flow b.is-failed { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
#pmox-results .chain-results article:not(.reached) > b { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
#pmox-results .chain-results article:not(.reached) > b > span { color: var(--muted); -webkit-text-stroke: 0; }

/* Live trace: the outcome strip is the punchline, at reading size; literal output keeps its case. */
#divergence .trace-comparison-facts span { font-size: clamp(14px, 1.25vw, 20px); line-height: 1.45; }
#divergence .run-state { margin: 0 .15em; font-size: .78em; letter-spacing: .02em; text-transform: none; vertical-align: .08em; }

/* Experiment map: block codes in the first column. */
#ooda-walkthrough .usage-table b .block-tag { margin-right: .75em; font-size: 11px; vertical-align: .1em; }

/* Gated: the provider row is its own band, so it does not read as one example per question. */
#gated .slide-body { row-gap: 0; }
#gated .panel.ghost { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(120px, 12ch) minmax(0, 1fr); gap: 0 28px; align-items: baseline; padding-top: 13px; padding-bottom: 13px; }
#gated .panel.ghost > p { margin: 0; }
#gated article + .panel.ghost { margin-top: clamp(22px, 4vh, 48px); }

/* 1080p projector with the browser at 125 % (CSS viewport 1536×864): three slides needed a few pixels above the footer. */
@media (min-width: 1500px) and (max-height: 880px) {
  #react-walkthrough .slide-body { gap: 20px; }
  #economics .cost-speed-table > div { padding-top: 10px; padding-bottom: 10px; }
  #local-hardware .spark-visual { max-width: 680px; }
}

/* Close: a QR that can be scanned from the room, without pushing the rest of the slide. */
@media (min-width: 1100px) {
  #questions-end .contact-final { grid-template-columns: minmax(0, 1fr) clamp(250px, 21vw, 340px); }
  #questions-end .closing-heading { grid-column: 1; }
  #questions-end .contact-final .closing-qr { grid-column: 2; grid-row: 1 / span 2; width: 100%; align-self: center; }
}

/* Why do we do this? · receipts of the provider gate and three reasons to own the stack (2026-10-29). */
.why-body { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 70px); row-gap: clamp(14px, 2vh, 22px); align-content: start; }
.why-body > .large-conclusion, .why-body > .figure-footnote { grid-column: 1 / -1; margin: 0; }
.why-receipts { display: grid; gap: 14px; align-content: start; }
.why-receipts article { border: 1px solid var(--line); background: #080a0b; padding: 12px 18px 14px; min-width: 0; }
.why-receipts article > span { display: block; padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px solid #2a2e30; font: 11px/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
.why-receipts pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: clamp(12px, .98vw, 15px)/1.6 var(--mono); color: #8f999e; }
.why-receipts pre b { color: var(--paper); font-weight: 500; }
.why-receipts pre mark { background: none; color: var(--paper); font-weight: 600; }
.why-reasons { display: grid; gap: clamp(12px, 2vh, 20px); align-content: start; }
.why-reasons article { border-top: 1px solid var(--line); padding-top: 12px; }
.why-reasons article > span { font: 11px/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
.why-reasons h3 { margin: 8px 0 6px; font-size: clamp(21px, 1.75vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.03em; }
.why-reasons p { margin: 0; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.42; color: var(--paper-dim); }
/* The one colour on this slide: refusals in HAL red; the fine print that carries the argument stays white. */
#why-own-stack { --refusal: #ff5a4f; }
.why-receipts pre .refusal { color: var(--refusal); }
.why-receipts pre .refusal.is-final { font-weight: 600; }
/* Meme as a sticker in the free space right of the title, sized to the header so it never covers text. */
#why-own-stack .slide-head { position: relative; --meme-w: min(20vw, 30vh); }
#why-own-stack .slide-head .lede { max-width: min(72ch, calc(100% - var(--meme-w) - 48px)); }
.why-meme { position: absolute; right: 6px; top: 50%; width: var(--meme-w); margin: 0; transform: translateY(-50%) rotate(-2.5deg); border: 3px solid var(--paper); background: #000; box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.why-meme img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .why-body { grid-template-columns: 1fr; }
  #why-own-stack .slide-head .lede { max-width: none; }
  .why-meme { position: static; width: min(100%, 360px); margin: 8px 0 0; transform: rotate(-1.5deg); }
}
@media (max-height: 800px) and (min-width: 761px) {
  #why-own-stack .lede { max-width: none; }
  .why-body { row-gap: 9px; }
  .why-receipts article { padding: 10px 16px 12px; }
  .why-receipts pre { line-height: 1.5; }
  .why-reasons { gap: 10px; }
  .why-reasons article { padding-top: 9px; }
  .why-reasons h3 { margin: 5px 0 4px; }
}

/* Q&A scoring · what the judge receives and where the 100 points come from (2026-10-29). */
.scoring-body { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); column-gap: clamp(32px, 4.5vw, 80px); row-gap: clamp(14px, 2vh, 22px); align-content: start; }
.scoring-body > .figure-footnote { grid-column: 1 / -1; margin: 0; }
.scoring-inputs > span, .scoring-rubric > span { font: 11px/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
.scoring-inputs ol { list-style: none; counter-reset: judge; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.scoring-inputs li { counter-increment: judge; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.scoring-inputs li::before { content: counter(judge, decimal-leading-zero); font: 12px/1.9 var(--mono); color: var(--muted); }
.scoring-inputs li p { margin: 0; font-size: clamp(16px, 1.25vw, 21px); line-height: 1.4; color: var(--paper-dim); }
.scoring-inputs li b { color: var(--paper); font-weight: 500; }
.scoring-cap { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line-hi); font-size: clamp(15px, 1.1vw, 18px); line-height: 1.4; color: var(--paper-dim); }
.scoring-cap b { color: var(--paper); font-weight: 600; }
.scoring-rubric ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.scoring-rubric li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 32%) 34px; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.scoring-rubric li b { font-weight: 400; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.3; color: var(--paper); }
.scoring-rubric li i { display: block; height: 8px; width: calc(var(--p) * 4%); background: var(--paper); }
.scoring-rubric li em { font: 500 clamp(15px, 1.1vw, 18px)/1 var(--mono); font-style: normal; text-align: right; color: var(--paper); }
@media (max-height: 800px) and (min-width: 761px) {
  .scoring-rubric li { padding: 6px 0; }
  .scoring-inputs ol { gap: 7px; }
  .scoring-inputs li { padding-top: 7px; }
}
@media (max-width: 760px) { .scoring-body { grid-template-columns: 1fr; } }

/* Q&A answer formats · what each system prompt asks, verbatim (2026-10-29). */
.formats-body { align-content: start; row-gap: clamp(14px, 2vh, 22px); }
.formats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 36px); align-items: start; }
.formats-grid article { border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.formats-grid article > span { font: 11px/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
.formats-grid h3 { margin: 8px 0 6px; font-size: clamp(22px, 1.9vw, 30px); font-weight: 400; line-height: 1.15; letter-spacing: -.03em; }
.formats-grid p { margin: 0 0 12px; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.42; color: var(--paper-dim); }
.formats-grid pre { margin: 0; padding: 12px 14px; border: 1px solid var(--line); background: #080a0b; white-space: pre-wrap; overflow-wrap: anywhere;
  font: clamp(11px, .86vw, 13.5px)/1.55 var(--mono); color: #c6cdd0; }
.formats-constant { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: clamp(15px, 1.15vw, 19px); color: var(--paper); }
.formats-constant span { margin-right: 14px; font: 11px/1.5 var(--mono); letter-spacing: .08em; color: var(--muted); }
.formats-body > .figure-footnote { margin: 0; }
@media (max-height: 800px) and (min-width: 761px) {
  .formats-grid p { margin-bottom: 9px; }
  .formats-grid pre { padding: 9px 12px; line-height: 1.45; }
}
@media (max-width: 760px) { .formats-grid { grid-template-columns: 1fr; } }

/* Meme stickers · pasted-on images in free space, never over text; below the content on mobile (2026-10-29). */
.meme-sticker { position: absolute; z-index: 2; margin: 0; border: 3px solid #fff; background: #000; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.slide:not(.light) .meme-sticker { border-color: var(--paper); box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.meme-sticker img { display: block; width: 100%; height: auto; }
#qa-delivery .meme-sticker { top: calc(var(--pad-y) + 6px); right: var(--pad-x); width: min(22vw, 40vh); transform: rotate(2deg); }
#failure-bill .meme-sticker { bottom: calc(var(--pad-y) + 10px); right: var(--pad-x); width: min(18vw, 30vh); transform: rotate(-2deg); }
#good-agent .meme-sticker { top: calc(var(--pad-y) + 6px); right: var(--pad-x); width: min(17.5vw, 30vh); transform: rotate(2.5deg); }
#pmox-results .meme-sticker { bottom: calc(var(--pad-y) + 10px); right: var(--pad-x); width: min(17vw, 28vh); transform: rotate(-2deg); }
#refusal-pipeline .meme-sticker { bottom: calc(var(--pad-y) + 10px); right: var(--pad-x); width: min(15vw, 27vh); transform: rotate(2deg); }
#refusal-pipeline .large-conclusion { max-width: calc(100% - min(15vw, 27vh) - 48px); }
@media (max-height: 800px) and (min-width: 761px) { #qa-delivery .meme-sticker { width: 19vw; } }
/* Larger where the measured free space allows it: 16:9 screens, and tall 16:9 screens for the owl and the wizard. */
@media (min-aspect-ratio: 17/10) and (min-width: 761px) {
  #failure-bill .meme-sticker { width: min(25vw, 44vh); }
  #pmox-results .meme-sticker { width: 18.5vw; }
  #refusal-pipeline .meme-sticker { width: min(15.5vw, 27vh); }
}
@media (min-aspect-ratio: 17/10) and (min-height: 820px) {
  #pmox-results .meme-sticker { width: 21vw; }
  #refusal-pipeline .meme-sticker { width: min(18vw, 31vh); }
  #refusal-pipeline .large-conclusion { max-width: calc(100% - min(18vw, 31vh) - 48px); }
}
@media (max-width: 760px) {
  .meme-sticker { position: static; width: min(100%, 340px); margin: 18px 0 8px; transform: rotate(-1.5deg); }
  #refusal-pipeline .large-conclusion { max-width: none; }
}

/* DGX Spark frame (2026-10-29): the button scales with the drawing and stays just above the dimension label; on windows
   taller than 880 px the frame is capped so the slide fits (it overflowed at 1920×969 and 1920×1001). */
#local-hardware .spark-motion-toggle { bottom: 10.5%; right: 4%; }
@media (min-width: 1100px) and (min-height: 881px) {
  #local-hardware .spark-visual { max-width: min(100%, calc((100vh - 460px) * 1.6)); }
}

/* Model roster as a matrix (2026-10-29): origin and access in columns, served tier in rows; groups from the study's model profile. */
#model-roster .roster-matrix { display: grid; grid-template-columns: minmax(110px, .55fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); gap: 10px 14px; align-items: stretch; }
#model-roster .rm-head { grid-row: 1; padding-bottom: 6px; border-bottom: 1px solid var(--ink); font: 600 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--ink); }
#model-roster .rm-c1 { grid-column: 2; } #model-roster .rm-c2 { grid-column: 3; } #model-roster .rm-c3 { grid-column: 4; }
#model-roster .rm-r1 { grid-row: 2; } #model-roster .rm-r2 { grid-row: 3; }
#model-roster .rm-row { grid-column: 1; margin: 0; padding-top: 10px; font: 600 11px/1.45 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
#model-roster .rm-row small { display: block; margin-top: 4px; font-weight: 400; color: var(--muted); letter-spacing: .04em; text-transform: none; }
#model-roster .rm-cell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; align-content: start; padding: 10px 14px 12px; background: rgba(10, 10, 10, .045); }
#model-roster .rm-c3.rm-cell { grid-template-columns: minmax(0, 1fr); }
#model-roster .rm-empty { background: none; border: 1px dashed var(--line-hi); }
#model-roster .rm-cell article { padding-top: 8px; border-top: 1px solid var(--line-hi); min-width: 0; }
#model-roster .rm-cell article > span { font: 10px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
#model-roster .rm-cell h3 { margin: 6px 0 0; font-size: clamp(18px, 1.5vw, 25px); font-weight: 400; line-height: 1.15; letter-spacing: -.03em; }
#model-roster .roster-note { margin: 0; }
@media (max-height: 800px) and (min-width: 761px) {
  #model-roster .roster-matrix { gap: 8px 12px; }
  #model-roster .rm-cell { gap: 6px 16px; padding: 8px 12px 10px; }
  #model-roster .rm-cell h3 { margin-top: 4px; font-size: clamp(17px, 1.45vw, 22px); }
}
@media (max-width: 760px) {
  #model-roster .roster-matrix { display: block; }
  #model-roster .rm-head, #model-roster .rm-row, #model-roster .rm-empty { display: none; }
  #model-roster .rm-cell { margin-bottom: 12px; }
  #model-roster .rm-cell::before { content: attr(data-label); grid-column: 1 / -1; font: 600 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
}

/* Tweet on #meat-proxy (2026-10-29): in the text column, below the caption; large enough to read. */
#meat-proxy .meme-tweet { margin: clamp(18px, 3vh, 34px) 0 0; width: min(100%, 34vw); border: 3px solid var(--paper); box-shadow: 0 14px 34px rgba(0, 0, 0, .6); transform: rotate(-1.5deg); }
#meat-proxy .meme-tweet img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { #meat-proxy .meme-tweet { width: min(100%, 360px); } }
