@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(fonts/barlow-condensed-bold.ttf) format("truetype");
}
@font-face {
  font-family: "STIX Two Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/stix-two-text-latin.woff) format("woff");
}
:root {
  --paper: #fafbfa;
  --reading-paper: #fafbfa;
  --sheet: #ffffff;
  --ink: #17332f;
  --secondary: #465c55;
  --rule: #cdd0c6;
  --cover: #192f2a;
  --cover-ink: #f5f3e6;
  --cover-muted: #c3d2ca;
  --copper: #99512b;
  --amber: #f5be7e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "STIX Two Text", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --edge: max(clamp(20px, 4.7vw, 72px), calc((100vw - 1320px) / 2));
  --section-space: clamp(52px, 6.3vw, 94px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, pre { margin: 0; }
a, button, summary { color: inherit; }
a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, summary { cursor: pointer; }
button { font: inherit; }
:focus-visible { outline: 3px solid #b46334; outline-offset: 4px; }
.film :focus-visible, footer :focus-visible { outline-color: var(--amber); }
[hidden] { display: none !important; }
section, footer { scroll-margin-top: 18px; }
.bar, .spread, footer { color: var(--cover-ink); background: var(--cover); }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-inline: var(--edge);
}
.home { display: inline-flex; align-items: center; width: 48px; height: 44px; }
.home i {
  width: 14px;
  height: 23px;
  border: 1.5px solid currentColor;
  transform: skewY(-17deg);
  margin-right: -5px;
  background: var(--cover);
}
.home i:last-child { background: var(--amber); border-color: var(--amber); }
.bar nav, .sample-actions { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 32px); }
.bar nav a, .sample-actions a, .citation-heading a { font-size: 16px; line-height: 1.3; text-decoration: none; }
.bar nav a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; white-space: nowrap; }
.bar nav a:hover, .sample-actions a:hover, .citation-heading a:hover { text-decoration: underline; }
.bar .paper-link { padding: 0 17px; background: var(--cover-ink); color: var(--cover); border-radius: 3px; }
.bar :focus-visible, .spread :focus-visible { outline-color: var(--amber); }
.spread {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  grid-template-areas: "heading film" "byline film";
  align-items: end;
  align-content: center;
  column-gap: clamp(18px, 3.2vw, 48px);
  row-gap: clamp(22px, 2.6vw, 36px);
  padding: clamp(35px, 5.3vw, 82px) var(--edge) clamp(43px, 6vw, 94px);
}
.heading { grid-area: heading; container-type: inline-size; }
.title-lead {
  display: block;
  font: 700 clamp(49px,16.9cqi,112px)/.98 var(--display);
  letter-spacing: -.02em;
}
.title-lead em { display: block; color: var(--amber); font: italic 440 1.05em/.99 var(--serif); letter-spacing: -.057em; }
.title-subject {
  display: block;
  margin-top: clamp(17px, 1.7vw, 26px);
  max-width: 27ch;
  color: var(--cover-ink);
  font: 480 clamp(23px, 2.35vw, 35px)/1.2 var(--sans);
  letter-spacing: -.028em;
  text-wrap: balance;
}
.byline { align-self: start; grid-area: byline; min-width: 0; }
.authors { color: var(--cover-ink); font-size: clamp(16px,1.22vw,19px); line-height: 1.55; }
.authors > div { display: flex; flex-wrap: wrap; column-gap: .75em; }
.authors > div + div { margin-top: 2px; }
.authors span { white-space: nowrap; }
sup { color: var(--amber); font: 500 .66em var(--sans); margin-left: 1px; }
.credits { margin-top: 14px; color: var(--cover-muted); font-size: 16px; line-height: 1.45; }
.affiliations { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.affiliations li { display: grid; grid-template-columns: 1em minmax(0, 1fr); align-items: baseline; }
.affiliations sup { align-self: start; margin: 2px 0 0; font-size: .76em; }
.credits p { margin-top: 8px; }
.film { grid-area: film; position: relative; min-width: 0; align-self: center; }
video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--cover); }
.film.is-cover video {
  mask-image: radial-gradient(ellipse 68% 71% at 50% 48%, black 53%, transparent 100%);
}
.film-start {
  position: absolute;
  bottom: 1.5%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #f7f8ec66;
  border-radius: 30px;
  min-height: 45px;
  padding: 8px 18px;
  font: 550 17px/1 var(--sans);
  color: var(--cover-ink);
  background: var(--cover);
}
.film-start:hover { background: var(--cover-ink); color: var(--cover); }
.play-symbol { border-block: 6px solid transparent; border-left: 10px solid currentColor; }
.showcase-heading, .citation-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.showcase-heading h2, .story h2, .citation-heading h2 {
  font: 450 clamp(34px, 3.1vw, 48px)/1.12 var(--serif);
  letter-spacing: -.027em;
}
.sample-actions { gap: clamp(12px, 1.4vw, 24px); }
.sample-actions a { color: var(--ink); white-space: nowrap; }
.sample-actions button {
  min-height: 38px;
  min-width: 72px;
  border: 1px solid #879b8d;
  border-radius: 3px;
  background: transparent;
  padding: 5px 12px;
  font-size: 16px;
}
.sample-actions button:hover { background: #fff9; }
.sample-context {
  color: var(--secondary);
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.55;
}
.sample-context { margin: 8px 0 20px; }
.sample-wall {
  display: grid;
  gap: 14px;
  --sample-gap: clamp(16px, 1.75vw, 28px);
  --sample-width: min(78vw, clamp(268px, 21.3vw, 320px));
}
.sample-rail {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #93a49a transparent;
}
.sample-rail { display: flex; gap: var(--sample-gap); scrollbar-width: none; }
.sample-rail::-webkit-scrollbar { display: none; }
.sample-rail:focus-visible { outline-offset: 2px; }
.sample-track {
  display: flex;
  flex: 0 0 auto;
  gap: var(--sample-gap);
  list-style: none;
  padding: 0;
  margin: 0;
}
.sample-track li { width: var(--sample-width); }
.sample-prompt {
  margin-top: 6px;
  font: 450 clamp(20px, 1.5vw, 24px)/1.2 var(--serif);
}
.sample-triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.sample-model {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 3px;
  color: var(--ink);
  font: 600 13px/1.25 var(--sans);
}
.sample-output img { display: block; width: 100%; height: auto; background: #dce3d9; }
.sample-pass { color: #235c49; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.depth-run { padding-block: 0 clamp(32px, 3vw, 48px); }
.depth-run.is-pinned { padding-block: 0; margin-block: 0 clamp(32px, 3vw, 48px); }
.depth-run.is-pinned::after { content: ""; display: block; height: clamp(270px, 38svh, 380px); }
.depth-run.is-pinned .depth-stage { position: sticky; top: clamp(12px, 5svh, 48px); }
.depth-stage, .study {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(32px, 5.2vw, 80px);
}
.study { padding-block: var(--section-space); border-top: 1px solid var(--rule); }
.study:last-child { padding-bottom: 0; }
.study-copy { min-width: 0; }
.study-copy h2, .study-copy h3 {
  max-width: 22ch;
  font: 460 clamp(34px, 3.6vw, 56px)/1.06 var(--serif);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.study-copy h2 { font-size: clamp(39px, 4.25vw, 65px); }
.study-copy > p:not(.control-label, .scroll-cue) {
  max-width: 45ch;
  margin-top: 16px;
  font-size: clamp(19px, 1.45vw, 22px);
  line-height: 1.55;
  color: var(--secondary);
}
.source-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; }
.source-links a, .prompt-detail summary { font-size: 17px; }
.source-links a { color: var(--secondary); }
.source-links a:hover, details summary:hover { color: var(--copper); }
.control-label { margin-top: 22px; margin-bottom: 6px; font-weight: 600; }
.choices { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.choices button {
  min-width: 44px;
  min-height: 44px;
  padding: 4px 13px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: transparent;
  font: 500 17px/1.25 var(--sans);
}
.choices button:not([aria-pressed="true"]):hover { border-color: var(--ink); }
.choices button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.scroll-cue, .units { color: var(--secondary); font-size: 17px; line-height: 1.45; }
.scroll-cue { margin-top: 8px; }
.depth-plate {
  --depth-x: 100%;
  width: 100%;
  max-width: 650px;
  justify-self: end;
  padding: clamp(15px, 2vw, 30px);
  color: var(--cover-ink);
  background: var(--cover);
}
.depth-plate[data-pass="1"] { --depth-x: 0%; }
.depth-plate[data-pass="2"] { --depth-x: 33.333333%; }
.depth-plate[data-pass="3"] { --depth-x: 66.666667%; }
.depth-plate > figcaption, .dpg-description {
  font: 460 clamp(23px, 2.1vw, 32px)/1.18 var(--serif);
  letter-spacing: -.015em;
}
.depth-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(6px, 1vw, 14px); margin-top: 13px; }
.model-label { display: block; padding-bottom: 4px; color: var(--cover-muted); font: 500 17px/1.45 var(--sans); }
.depth-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--cover) url(figures/depth-sequence.webp) var(--depth-x) 0% / 400% 200% no-repeat;
}
.depth-tile.shallow { background-position-y: 100%; }
.depth-previous { position: absolute; inset: 0; opacity: 0; background: inherit; }
.depth-observation { min-height: 2.9em; margin-top: 14px; color: var(--cover-ink); font-size: 18px; line-height: 1.45; }
.depth-plate noscript a { color: var(--amber); }
.dpg-plate { width: 100%; }
.units { margin-top: 10px; }
.prompt-detail summary { width: fit-content; text-decoration: underline; text-underline-offset: .2em; }
.prompt-detail p { margin-top: 10px; font-size: 18px; color: var(--secondary); }
.dpg-triptych { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(7px, .9vw, 14px); margin-top: 18px; }
.dpg-triptych img { display: block; width: 100%; height: auto; }
.dpg-triptych figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; padding-top: 6px; font-weight: 500; font-size: 18px; }
.dpg-score { color: var(--secondary); font-variant-numeric: tabular-nums; }
.prompt-detail { margin-top: 12px; }
@media (max-width: 780px) {
  .depth-stage, .study { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .depth-plate, .dpg-plate { justify-self: start; }
  .depth-run, .study { padding-block: clamp(38px, 7vw, 56px); }
  .depth-run.is-pinned { margin-block: 0 32px; }
  .depth-plate { max-width: 525px; }
}
@media (max-width: 620px) {
  .depth-stage { gap: 17px; }
  .depth-stage .source-links { margin-top: 11px; }
  .control-label { margin-top: 14px; }
  .depth-observation { font-size: 17px; }
}
footer {
  padding: clamp(40px, 5vw, 74px) var(--edge) clamp(50px, 6vw, 90px);
}
.citation-heading { padding-bottom: 22px; border-bottom: 1px solid #435952; }
.citation-heading a { color: var(--amber); }
#citation pre {
  margin-top: 22px;
  color: var(--cover-ink);
  font: 17px/1.72 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#citation code { font: inherit; }
@media (max-width: 620px) {
  .showcase-heading { align-items: center; gap: 10px; }
  .showcase-heading h2 { font-size: 32px; }
  .sample-actions { gap: 10px; }
  .sample-actions button { min-width: 58px; padding-inline: 7px; }
  .sample-context { margin-block: 12px 16px; }
  #citation pre { font-size: 16px; line-height: 1.65; }
}
@media (max-width: 370px) {
  .paper-link span { display: none; }
  .showcase-heading { flex-wrap: wrap; }
  .sample-actions { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.depth-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; margin-top: 10px; }
.depth-controls .control-label { margin: 0; color: var(--cover-muted); font: 500 16px/1.3 var(--sans); }
.depth-controls .choices button { border-color: #66766c; color: var(--cover-ink); }
.depth-controls .choices button[aria-pressed="true"] { border-color: var(--amber); background: var(--amber); color: var(--cover); }
.depth-controls .choices button:hover { border-color: var(--amber); }
.depth-controls .choices button:focus-visible { outline-color: var(--amber); }
@media (max-width: 780px) {
  .depth-run.is-pinned .depth-stage { position: static; }
  .depth-run.is-pinned::after { display: none; }
  .depth-run.is-pinned .depth-stage::after { content: ""; display: block; height: clamp(180px, 25svh, 240px); }
  .depth-run.is-pinned .depth-plate { position: sticky; top: 12px; }
}

.research-layout {
  --toc-clearance: 0px;
  display: grid;
  grid-template-columns: clamp(250px, 21vw, 288px) minmax(0, 880px);
  justify-content: center;
  align-items: start;
  gap: clamp(40px,4.5vw,68px);
  padding: clamp(50px,5vw,76px) var(--edge) var(--section-space);
  background: var(--reading-paper);
}
.story { min-width: 0; }
.depth-run { scroll-margin-top: 42px; }
.study-menu {
  position: sticky;
  top: 40px;
  font: 450 clamp(22px,1.6vw,24px)/1.22 var(--serif);
}
.contents-label { display: block; margin-bottom: 15px; padding: 0 0 12px 14px; border-bottom: 1px solid var(--rule); font: 530 30px/1.12 var(--serif); }
.study-menu ol { counter-reset: entry; list-style: none; padding: 0; margin: 0; }
.study-menu li { counter-increment: entry; }
.study-menu .abstract-entry { counter-increment: none; }
.study-menu .abstract-entry a::before { content: ""; }
.reading-abstract {
  margin-bottom: clamp(38px,4.2vw,62px);
  padding-bottom: clamp(36px,4vw,58px);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 42px;
}
.reading-abstract h2 { font: 470 clamp(31px,2.85vw,43px)/1.12 var(--serif); letter-spacing: -.032em; }
.reading-abstract p {
  max-width: 62ch;
  margin-top: 14px;
  font: 430 clamp(19px,1.45vw,21px)/1.55 var(--serif);
  color: var(--secondary);
}
.reading-abstract strong { color: var(--ink); font-weight: 600; }
.study-menu a {
  display: grid;
  grid-template-columns: 1.35em minmax(0,1fr);
  align-items: baseline;
  position: relative;
  padding: 11px 8px 11px 16px;
  color: var(--secondary);
  text-decoration: none;
}
.study-menu a::before { content: counter(entry); font: 500 16px/1 var(--sans); color: var(--secondary); }
.study-menu a[aria-current="location"] { color: var(--ink); background: #e8eeea; font-weight: 570; }
.study-menu a[aria-current="location"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--copper);
}
.study-menu a:hover { text-decoration: underline; }
.contents-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: 500 20px/1.4 var(--sans);
}
.contents-toggle span { font: 420 23px/1 var(--sans); }
.contents-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.story .chapter-heading {
  position: relative;
  max-width: 27ch;
  font: 470 clamp(31px,2.85vw,43px)/1.12 var(--serif);
  letter-spacing: -.032em;
  text-wrap: balance;
}
.chapter-heading::before {
  content: attr(data-chapter);
  position: absolute;
  right: calc(100% + 12px);
  top: .42em;
  color: var(--secondary);
  font: 420 18px/1.3 var(--serif);
  letter-spacing: 0;
}
.study-copy, .prediction-sequence > figcaption { max-width: 640px; }
.study-copy > p:not(.control-label,.scroll-cue), .prediction-sequence > figcaption p {
  max-width: 53ch;
  margin-top: 14px;
  font: 430 clamp(19px,1.5vw,22px)/1.55 var(--serif);
  color: var(--secondary);
}
.depth-stage { align-items: start; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: clamp(22px,3.5vw,48px); }
.depth-stage .source-links { gap: 6px 14px; }
.depth-plate { max-width: 495px; padding: clamp(16px,1.5vw,23px); border-radius: 5px; background: #edf0ed; color: var(--ink); }
.depth-plate .model-label, .depth-observation, .depth-controls .control-label { color: var(--secondary); }
.depth-controls .choices button { color: var(--ink); border-color: #a9b7b0; }
.depth-controls .choices button[aria-pressed="true"] { color: white; background: var(--ink); border-color: var(--ink); }
.depth-controls .choices button:hover { border-color: var(--ink); }
.depth-controls .choices button:focus-visible { outline-color: var(--copper); }
.depth-plate noscript a { color: var(--ink); }
.story > .showcase, .story > .study, .story > .map-study {
  display: block;
  padding: clamp(40px,4.7vw,70px) 0;
  border-top: 1px solid var(--rule);
}
.story > :last-child { padding-bottom: 0; }
.showcase .sample-wall {
  padding: clamp(15px,2.2vw,26px); background: #e9efee;
  --sample-width: min(72vw, clamp(238px,18.4vw,290px)); gap: 16px;
}
.sample-prompt { font: 480 clamp(17px,1.2vw,19px)/1.3 var(--sans); }
footer { background: #e9efee; color: var(--ink); }
.citation-heading { border-color: var(--rule); }
.citation-heading a, #citation pre { color: var(--ink); }
footer :focus-visible { outline-color: var(--copper); }

@media (max-width: 1090px) {
  .research-layout {
    --toc-clearance: 53px;
    display: block;
    padding-top: 0;
  }
  .study-menu { position: static; padding-block: 16px; border-bottom: 1px solid var(--rule); }
  .study-menu.compact {
    position: sticky;
    top: 0;
    z-index: 4;
    margin-inline: calc(0px - var(--edge));
    padding: 0 var(--edge);
    background: var(--reading-paper);
  }
  .compact .contents-label { display: none; }
  .compact ol {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100svh - 54px);
    overflow: auto;
    padding: 6px var(--edge) 12px;
    border-block: 1px solid var(--rule);
    background: var(--reading-paper);
    box-shadow: 0 12px 20px #152b2910;
  }
  .compact li a { min-height: 44px; }
  .story { max-width: 800px; margin: 38px auto 0; }
  .chapter-heading::before { position: static; display: inline-block; margin-right: .65em; vertical-align: .16em; }
  .depth-run, .story > [id] { scroll-margin-top: calc(var(--toc-clearance) + 12px); }
  .depth-run.is-pinned .depth-stage { top: calc(var(--toc-clearance) + clamp(12px,5svh,48px)); }
}
@media (max-width: 900px) {
  .spread { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .authors { font-size: 16px; }
}
@media (max-width: 780px) {
  .spread {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "heading" "film" "byline";
    row-gap: 24px; padding-block: 30px 32px;
  }
  .heading, .byline { width: min(100%,630px); margin-inline: auto; }
  .film { width: min(100%,650px); margin-inline: auto; }
  .title-lead { font-size: clamp(50px,13cqi,88px); }
  .title-subject { max-width: 31ch; }
  .depth-stage { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .depth-run:not(.is-pinned) { padding-top: 0; }
  .depth-run.is-pinned .depth-plate { top: calc(var(--toc-clearance) + 12px); }
  .depth-plate { justify-self: start; }
  .showcase .sample-wall { margin-inline: calc(0px - var(--edge)); padding-inline: var(--edge); }
}
@media (max-width: 620px) {
  .bar { min-height: 58px; }
  .bar nav { gap: 16px; }
  .bar .paper-link { padding-inline: 12px; }
  .bar .pdf-label { display: none; }
  .spread { row-gap: 22px; padding-block: 22px 32px; }
  .title-lead { font-size: 15.8cqi; }
  .title-subject { margin-top: 13px; font-size: clamp(22px,5.05vw,29px); }
  .film-start { min-height: 42px; bottom: -1%; padding: 7px 15px; font-size: 16px; }
}
@media (max-width: 370px) {
  .home { width: 35px; }
  .bar nav { gap: 10px; }
  .bar nav a { font-size: 15px; }
}

@media (min-width: 1091px) {
  .study-menu {
    max-height: calc(100svh - 62px);
    overflow: auto;
    scrollbar-width: thin;
  }
}
.compact li a { font-size: 20px; }

.dpg-plate, .evidence-plate, .feedback-evidence { margin-top: clamp(22px, 2.3vw, 36px); }
.prompt-selector {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 8px;
  margin-bottom: 26px;
}
.prompt-selector button {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-align: left;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  background: var(--sheet);
  font: 500 15px/1.2 var(--sans);
}
.prompt-selector button:hover { border-color: var(--ink); }
.prompt-selector button[aria-pressed="true"] { color: white; background: var(--ink); border-color: var(--ink); }
.prompt-selector button > span:last-child { padding: 7px 7px 8px; }
.prompt-thumbnail {
  display: block;
  width: 100%;
  height: clamp(48px, 4.6vw, 68px);
  background-size: 200% auto;
  background-position: left 16%;
  background-repeat: no-repeat;
}
.dpg-triptych { max-width: 740px; }
.dpg-description { max-width: 43ch; }

.evidence-plate {
  padding: clamp(16px, 2.3vw, 32px);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 3px solid #466655;
}
.plate-heading, .numbers-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.plate-heading h3, .reuse-plate > figcaption, .response-task > h3 {
  font: 500 clamp(25px, 2vw, 32px)/1.13 var(--serif);
  letter-spacing: -.018em;
}
.plot-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 19px; }
.plot-key span { display: inline-flex; align-items: center; gap: 7px; font: 500 16px/1.35 var(--sans); }
.plot-key i { width: 14px; height: 12px; border-radius: 2px; }
.full-key { background: #d49462; border: 1px solid #8c4729; }
.shallow-key { background: #70a992; border: 1px solid #244f40; }
.median-key::before { content: ""; width: 17px; height: 3px; background: #172b24; }
.distributions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.distributions figure { min-width: 0; padding: 14px 8px 0; background: #f4f7f4; }
.distributions figcaption { margin-inline: 10px; font: 600 19px/1.3 var(--sans); }
.distributions p { margin: 4px 10px 0; font: 400 15px/1.35 var(--sans); color: var(--secondary); }
.distributions img { display: block; width: 100%; height: auto; }
.plot-note, .plate-deck { color: var(--secondary); font: 400 17px/1.5 var(--sans); }
.plot-note { margin-top: 14px; }
.plate-deck { max-width: 66ch; margin-top: 8px; }
.numbers-heading { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.numbers-heading h3 { font: 550 20px/1.3 var(--sans); }
.evidence-plate .choices { gap: 0; }
.evidence-plate .choices button { border-radius: 0; margin-left: -1px; }
.evidence-plate .choices button:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
.evidence-plate .choices button:last-child { border-radius: 0 4px 4px 0; }
.results-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font: 450 clamp(16px, 1.25vw, 18px)/1.35 var(--sans);
  font-variant-numeric: tabular-nums;
}
.results-table td, .results-table th { padding: 9px 8px; text-align: right; }
.results-table th { font-weight: 550; }
.results-table thead { border-block: 1px solid var(--rule); background: #f0f4f1; color: var(--secondary); }
.results-table thead th { font-size: .92em; }
.results-table tbody tr { border-bottom: 1px solid #dce2dc; }
.results-table th:first-child { text-align: left; }
.gain-table thead tr:first-child th[colspan] { text-align: center; padding-bottom: 4px; }
.gain-table thead tr:nth-child(2) th { text-align: right; padding-top: 2px; }
.gain-table thead th[colspan], .gain-table tbody td:nth-child(2), .gain-table tbody td:nth-child(4) { border-left: 1px solid #dce2dc; }
.full-value { color: #844423; }
.shallow-value { color: #225943; }

.map-atlas {
  margin-top: 24px;
  padding: clamp(12px, 1.8vw, 24px);
  background: var(--cover);
  color: var(--cover-ink);
}
.atlas-head, .map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 3fr));
  gap: clamp(8px, 1.15vw, 18px);
}
.atlas-head { align-items: end; padding-bottom: 9px; color: var(--cover-muted); font: 450 15px/1.3 var(--sans); }
.atlas-head > div, .map-triplet { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
.atlas-head > div { text-align: center; }
.atlas-head strong { grid-column: 1/-1; font: 560 17px/1.3 var(--sans); color: var(--cover-ink); }
.map-row { padding: 10px 0; border-top: 1px solid #526960; align-items: start; }
.map-row:last-child { padding-bottom: 0; }
.map-atlas img { display: block; width: 100%; height: auto; }
.scene-reference figcaption { margin-top: 4px; font: 450 15px/1.25 var(--sans); }
.compact-arm, .mobile-depth-key { display: none; }
.reuse-plate > .choices { margin-top: 15px; }
.pass-diagram { display: inline-flex; gap: 3px; margin-right: 9px; vertical-align: 1px; }
.pass-diagram i { display: block; width: 10px; height: 13px; border: 1px solid #6b8074; border-radius: 1px; }
.pass-diagram .trained { background: #375f4e; border-color: #375f4e; }

.response-task { margin-top: 24px; padding-top: 18px; border-top: 2px solid #42604f; }
.response-cases { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(9px, 1.2vw, 18px); margin-top: 14px; }
.response-case { padding: clamp(10px, 1vw, 16px); background: #eef3ef; }
.question-image { display: block; cursor: zoom-in; }
.question-image img { display: block; width: 100%; height: clamp(112px, 10vw, 144px); object-fit: contain; background: white; }
.response-case h4 { margin: 11px 0 5px; font: 550 17px/1.3 var(--sans); }
.target-answer, .response-case dl { font: 450 16px/1.35 var(--sans); font-variant-numeric: tabular-nums; }
.target-answer b { margin-left: 5px; }
.response-case dl { margin: 8px 0 0; border-top: 1px solid #c5d0c9; padding-top: 6px; }
.response-case dl > div { display: flex; justify-content: space-between; gap: 5px; padding-block: 2px; }
.response-case dt { color: var(--secondary); }
.response-case dd { margin: 0; }

@media (max-width: 720px) {
  .prompt-selector { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .distributions { gap: 8px; }
}
@media (max-width: 620px) {
  .prompt-selector { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-bottom: 19px; }
  .distributions, .response-cases { grid-template-columns: minmax(0,1fr); }
  .evidence-plate { padding: 15px 12px; }
  .distributions figure { padding: 12px 8px 0; }
  .map-atlas { padding: 14px 10px; }
  .atlas-head { display: none; }
  .mobile-depth-key { display: block; margin-bottom: 10px; color: var(--cover-muted); font: 450 15px/1.35 var(--sans); }
  .map-row { grid-template-columns: minmax(0,.9fr) minmax(0,2.6fr); gap: 8px; }
  .scene-reference { grid-row: 1/3; }
  .map-triplet { grid-column: 2; }
  .compact-arm { display: block; grid-column: 1/-1; font: 500 15px/1.15 var(--sans); }
  .response-case { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 11px; align-items: start; }
  .question-image img { height: 116px; }
  .response-case h4 { margin-top: 0; }
  .results-table td, .results-table th { padding: 8px 4px; }
  .pass-diagram { display: flex; margin: 0 0 3px; }
}
@media (max-width: 420px) {
  .results-table { font-size: 15px; }
  .gain-table tbody td { white-space: nowrap; }
  .gain-table td, .gain-table th { padding-inline: 2px; }
  .evidence-plate .choices button { padding-inline: 8px; font-size: 16px; }
}
.atlas-source { display: inline-block; margin-top: 12px; font-size: 16px; color: var(--cover-ink); }
.language-sweeps { scroll-margin-top: calc(var(--toc-clearance) + 18px); margin-top: clamp(24px, 3vw, 38px); }
.language-sweeps h3 { text-wrap: balance; font: 500 clamp(25px, 2vw, 32px)/1.13 var(--serif); }
.language-sweeps > figcaption p { max-width: 66ch; margin-top: 8px; color: var(--secondary); font: 400 17px/1.5 var(--sans); }
.language-plots { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.language-plot { padding: clamp(12px, 1.3vw, 20px); border: 1px solid var(--rule); background: white; }
.language-plot h4 { margin: 0; font: 550 20px/1.25 var(--sans); }
.language-plot figcaption p, .deployment-result { font: 450 16px/1.45 var(--sans); color: var(--secondary); }
.language-plot figcaption p { margin-top: 3px; }
.language-plot img { display: block; width: 100%; height: auto; margin-block: 10px; }
.deployment-result { border-top: 1px solid var(--rule); padding-top: 10px; font-variant-numeric: tabular-nums; }
.deployment-result strong { display: inline-block; margin-right: 6px; color: var(--ink); font-weight: 550; }
.curve-key { display: flex; flex-wrap: wrap; gap: 16px; margin-block: 14px 10px; font: 500 16px/1.35 var(--sans); }
.curve-key span { display: inline-flex; align-items: center; gap: 6px; }
.curve-key span::before { content: ""; width: 19px; border-top: 3px solid; }
.curve-key .curve-base::before { color: #6b746f; border-top-style: dashed; }
.curve-full::before { color: #a4542f; }
.curve-shallow::before { color: #22664d; }
@media (max-width: 620px) { .language-plots { grid-template-columns: minmax(0,1fr); } }

.response-density {
  margin-top: 24px;
  padding-block: 20px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--toc-clearance) + 16px);
}
.response-density h4 { margin: 0; font: 500 clamp(24px, 2vw, 31px)/1.15 var(--serif); }
.response-density > figcaption p, .density-note { max-width: 66ch; margin-top: 8px; color: var(--secondary); font: 450 16px/1.48 var(--sans); }
.density-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-block: 15px 12px; font: 500 15px/1.4 var(--sans); }
.density-key span { display: inline-flex; align-items: center; gap: 7px; }
.all-response-key::before { content: ""; width: 18px; height: 11px; transform: skewX(-18deg); border: 1px solid #788982; background: repeating-linear-gradient(0deg, transparent 0 3px, #95a39d 3px 4px), repeating-linear-gradient(90deg, transparent 0 4px, #95a39d 4px 5px); }
.correct-response-key::before { content: ""; width: 19px; height: 11px; background: linear-gradient(90deg,#e2f1f7,#24658f); }
.density-depths, .density-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.density-depths { gap: clamp(10px,1.2vw,18px); }
.density-depth { padding: clamp(10px,1.25vw,17px); border: 1px solid var(--rule); background: var(--sheet); }
.density-depth-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.density-depth h5 { margin: 0; font: 580 19px/1.2 var(--sans); }
.density-change { color: var(--secondary); font: 450 15px/1.3 var(--sans); }
.density-change strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.density-pair { gap: 8px; margin-top: 10px; }
.density-map figcaption { margin-bottom: 5px; color: var(--secondary); font: 550 16px/1.3 var(--sans); }
.density-field { position: relative; overflow: hidden; aspect-ratio: 1; background: #fafcfb; border: 1px solid #e1e8e4; }
.density-field::after { content: "Density"; position: absolute; right: 6px; top: 5px; color: #55655f; font: 450 13px/1.2 var(--sans); }
.density-field img {
  position: absolute;
  left: 0;
  top: 0;
  width: 800%;
  height: 400%;
  max-width: none;
  transform: translate(var(--sampling-x, -87.5%), var(--sampling-y, -75%));
}
.density-map p { margin-top: 7px; color: var(--secondary); font: 450 15px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.density-map b { color: var(--ink); font-size: 18px; }
.sampling-controls { display: grid; grid-template-columns: auto auto minmax(60px, 1fr) auto; align-items: center; gap: 10px; margin-top: 13px; }
.sampling-controls label, .sampling-controls output { font: 500 16px/1.35 var(--sans); }
.sampling-controls output { min-width: 6ch; text-align: right; font-variant-numeric: tabular-nums; }
.sampling-controls input { margin: 0; width: 100%; height: 36px; accent-color: #276558; cursor: pointer; }
.sampling-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 86px; min-height: 40px; padding: 5px 11px; color: var(--ink); background: var(--sheet); border: 1px solid #94a79d; border-radius: 4px; }
.sampling-play b { font: 550 16px/1.25 var(--sans); }
.sampling-play span { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.sampling-play.is-playing span { width: 9px; height: 10px; border: 0; border-inline: 3px solid currentColor; }
.sampling-play:hover { background: #edf2ed; }
.density-note { margin-top: 12px; }
@media (max-width: 680px) {
  .density-depths { grid-template-columns: minmax(0,1fr); }
  .density-depth { padding: 10px 12px; }
  .density-field { max-width: 240px; }
}
@media (max-width: 500px) {
  .sampling-controls { grid-template-columns: auto minmax(60px,1fr) auto; gap: 4px 10px; }
  .sampling-play { grid-column: 1; grid-row: 1/3; }
  .sampling-controls label { grid-column: 2; }
  .sampling-controls output { grid-column: 3; grid-row: 1; }
  .sampling-controls input { grid-column: 2/4; grid-row: 2; height: 24px; }
}

.reward-narration { display: grid; }
.reward-narration > p { grid-area: 1 / 1; }
.response-density[data-reward-stage="sampling"] .reward-narration > p:first-child,
.response-density[data-reward-stage="one"] .reward-narration > p:first-child,
.response-density[data-reward-stage="two"] .reward-narration > p:first-child { visibility: hidden; }
.reward-narration .reward-cue { color: var(--ink); }
.response-density .sampling-controls { margin: 0 0 14px; }
.response-density .sampling-play { min-width: 140px; background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.response-density .sampling-play:hover { background: #345747; }
.mesh-surface { opacity: 0; transition: opacity 800ms ease; }
.response-density[data-reward-stage="sampling"] .mesh-surface,
.response-density[data-reward-stage="inspect"] .mesh-surface { transition: none; }
.sample-tally { display: none; }
.density-depth { transition: border-color 300ms ease, box-shadow 300ms ease; }

.response-density[data-reward-stage="sampling"] .mesh-surface,
.response-density[data-reward-stage="one"] .density-depth:nth-child(2) .mesh-surface { opacity: 1; }
.response-density[data-reward-stage="sampling"] .sample-tally,
.response-density[data-reward-stage="one"] .density-depth:nth-child(2) .sample-tally { display: block; }
.response-density[data-reward-stage="sampling"] .reward-tally,
.response-density[data-reward-stage="one"] .density-depth:nth-child(2) .reward-tally { display: none; }
.response-density[data-reward-stage="sampling"] .density-change,
.response-density[data-reward-stage="one"] .density-depth:nth-child(2) .density-change { visibility: hidden; }
.response-density[data-reward-stage="sampling"] .correct-response-key { color: #617069; }
.response-density[data-reward-stage="one"] .density-depth:first-child,
.response-density[data-reward-stage="two"] .density-depth:nth-child(2) { border-color: #37718b; box-shadow: inset 0 3px #37718b; }
.response-density[data-reward-stage="one"] .density-depth:first-child .density-change strong,
.response-density[data-reward-stage="two"] .density-depth:nth-child(2) .density-change strong { background: #e1f0f6; color: #18496b; padding: 2px 5px; }
@media (max-width: 430px) {
  .response-density .sampling-play { min-width: 0; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .mesh-surface, .density-depth { transition: none; }
}
