/* Theme tokens are registered so a theme change can cross-fade every color. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #141210; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #f3ebdd; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #a89e8e; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #3a332c; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #1f1b17; }
@property --surface-2 { syntax: "<color>"; inherits: true; initial-value: #26211c; }

/*
 * Layout rules for the whole page:
 * - Sizes are in rem. The root size scales the entire page on large screens,
 *   limited by both width and height, so wide and short windows stay balanced.
 * - Everything sits on .wrap: one left edge, one right edge.
 * - Two-column sections use --split, so their column lines match.
 * - Breakpoints are 1280px (side rail appears), 1000px (split collapses), and
 *   640px (phone). Use no others.
 */
:root {
  --tomato: #e0492f;
  --tomato-deep: #9f2f1c;
  --cream: #f3ebdd;
  --human: #f2a33a;
  --robot: #62c08d;
  --cool: #8db7d4;
  /* Fills for figures (bars, lanes, timelines). Text keeps the tones above; the light theme brightens only these. */
  --f-tomato: #e0492f; --f-human: #f2a33a; --f-robot: #62c08d; --f-cool: #8db7d4; --f-think: #6b6157;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 74rem;
  --rail: 13.5rem;
  --measure: 42rem;
  --split: minmax(0, 7fr) minmax(0, 5fr);
  --split-rev: minmax(0, 5fr) minmax(0, 7fr);
  --col-gap: clamp(1.5rem, 4vw, 4rem);
  --tile-gap: .75rem;
  --block: clamp(2.5rem, 6vw, 4rem);
  --r-s: .625rem;
  --r-m: .875rem;
  --r-l: 1.125rem;

  --t-label: .75rem;
  --t-small: .9375rem;
  --t-body: 1rem;
  --t-lead: clamp(1rem, .95rem + .2vw, 1.0625rem);
  --t-sub: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --t-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);

  /* Geist throughout: headings at --display-w, running text and labels in Geist and Geist Mono. */
  --display: "Geist", system-ui, sans-serif;
  --display-w: 600;
  --body: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

body[data-theme="ink"] {
  --bg: #141210; --fg: #f6efe3; --muted: #c9bfae;
  --line: #453d34; --surface: #1f1b17; --surface-2: #26211c;
}
/* Light theme ("cream" is the switch's old name). A warm grey with no yellow in it: --paper is the page colour, and
 * the hero's veil and the browser bar (main.js) take the same value. */
body[data-theme="cream"] {
  --paper: #f4f2f1;
  --bg: var(--paper); --fg: #1b1817; --muted: #524b48;
  --line: #d3cecb; --surface: #eae7e5; --surface-2: #e1dddb;
  --tomato: #c23a22; --human: #a8620a; --robot: #1f7f55; --cool: #3a6a8c;
  --f-tomato: #ec5b3e; --f-human: #f5a524; --f-robot: #2cb67d; --f-cool: #3d9be9; --f-think: #cbc5c1;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  /* 15px up to a 1440 × 900 window, then in step with the tighter dimension. */
  font-size: clamp(15px, min(1.042vw, 1.667vh), 20px);
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-body)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  transition: --bg .3s ease, --fg .3s ease, --muted .3s ease, --line .3s ease, --surface .3s ease, --surface-2 .3s ease;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
h2, h3, h4 { text-wrap: balance; font-weight: 400; }
p, li, dd, blockquote { text-wrap: pretty; }
figcaption { text-wrap: balance; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.pad { padding-block: clamp(3rem, 6vw, 5rem); }

/* Running text keeps one line length when its column stacks to full width. */
.mt-card p, .principle p, .gap-list p { max-width: var(--measure); }

/* Section openings: a plain numbered title, then the claim. */
.sec-head h2 {
  display: flex; align-items: baseline; gap: .625rem;
  font: var(--display-w) var(--t-h2)/1.1 var(--display); letter-spacing: -.015em;
}
.sec-no { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .06em; color: var(--tomato); transform: translateY(-.15em); }
.claim {
  margin-top: .875rem; max-width: 30em;
  font: 400 var(--t-sub)/1.25 var(--display); letter-spacing: -.01em; color: var(--muted); text-wrap: balance;
}
.claim em { font-style: italic; color: var(--tomato); }
.lede { color: var(--muted); max-width: 46rem; font-size: var(--t-lead); margin-top: 1.25rem; }
.lede b, .abs-body b { color: var(--fg); font-weight: 600; }

/* Wordmark */
.wm { display: inline-block; vertical-align: bottom; line-height: 0; }
.wm svg { display: block; height: .86em; width: auto; aspect-ratio: 1400 / 248; }
body[data-theme="ink"] .wm-day, body[data-theme="cream"] .wm-night { display: none; }
.wm-eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* Awning */
.awning { display: flex; width: 100%; height: clamp(1.625rem, 3.4vw, 3rem); position: relative; z-index: 2; }
.awning i {
  flex: 1; display: block; transform-origin: top;
  border-radius: 0 0 50% 50% / 0 0 clamp(.625rem, 1.2vw, 1.125rem) clamp(.625rem, 1.2vw, 1.125rem);
  background: var(--tomato);
  box-shadow: inset 0 14px 18px -12px rgba(0, 0, 0, .35);
}
.awning i:nth-child(even) { background: var(--cream); }

/* Media + placeholder */
.media { position: relative; overflow: hidden; background: var(--surface); }
.media video, .media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .375rem;
  padding: clamp(.875rem, 2vw, 1.5rem);
  background:
    linear-gradient(to top, color-mix(in srgb, var(--surface) 85%, transparent), transparent 55%),
    repeating-linear-gradient(135deg, var(--surface) 0 18px, var(--surface-2) 18px 36px);
}
.ph::before, .ph::after {
  content: ""; position: absolute; width: 1.125rem; height: 1.125rem; border: 1px solid var(--muted); opacity: .6;
}
.ph::before { top: .875rem; left: .875rem; border-right: 0; border-bottom: 0; }
.ph::after { top: .875rem; right: .875rem; border-left: 0; border-bottom: 0; }
.ph.has-poster { background: linear-gradient(to top, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 55%, transparent)), var(--poster) center / cover; }
.ph-tag { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tomato); }
.ph-title { font: var(--display-w) clamp(1.125rem, 1rem + .5vw, 1.5rem)/1.2 var(--display); }
.ph-spec { font: 400 var(--t-label)/1.4 var(--mono); color: var(--muted); }
.ph-tc { position: absolute; top: 1.125rem; right: 2.5rem; font: 400 var(--t-label)/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Figures */
main { counter-reset: fig; }
.fig figcaption { margin-top: .75rem; max-width: var(--measure); font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.fig figcaption::before { counter-increment: fig; content: "Figure " counter(fig) ". "; color: var(--muted); }
.fig figcaption b { font-weight: 600; color: var(--fg); }
.media.is-plate { background: #fff; padding: clamp(.75rem, 2vw, 1.5rem); border-radius: var(--r-m); }
.media.is-plate img { height: auto; object-fit: contain; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; padding-block: 1rem; pointer-events: none;
  opacity: 0; transform: translateY(-.5rem); transition: opacity .4s, transform .4s;
}
.nav.is-on { opacity: 1; transform: none; pointer-events: auto; }
.nav::before {
  content: ""; position: absolute; inset: 0 0 -1.5rem 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 40%, transparent);
}
.nav-in { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.nav-wm { margin-right: auto; text-decoration: none; }
.nav .wm { font-size: 1.75rem; }
.nav ul { display: flex; gap: clamp(.875rem, 2vw, 1.75rem); }
.nav ul a { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .06em; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav ul a:hover, .nav ul a.is-active { color: var(--fg); }
.nav ul a b { display: none; }
.nav .is-minor { display: none; }

.mode {
  display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .625rem; flex: none;
  font: 500 var(--t-label)/1 var(--mono); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
}
.mode i { position: relative; width: 1.75rem; height: 1rem; border-radius: 999px; background: var(--line); transition: background .2s; }
.mode i::after { content: ""; position: absolute; top: .125rem; left: .125rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--fg); transition: transform .2s; }
.mode[aria-checked="true"] i { background: var(--tomato); }
.mode[aria-checked="true"] i::after { transform: translateX(.75rem); background: #fff; }
.mode b { font-weight: 500; color: var(--fg); min-width: 3ch; text-align: left; }

/* Hero */
/* The hero follows night mode: a dark veil over its image with night mode on, a light veil with it off.
 * The two veils cross-fade with the page colours. */
.hero {
  --bg: #141210; --fg: #f6efe3; --muted: #d6ccbb; --line: #5a5046;
  min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--fg);
  transition: --bg .3s ease, --fg .3s ease, --muted .3s ease, --line .3s ease;
}
body[data-theme="cream"] .hero { --bg: var(--paper); --fg: #1b1817; --muted: #524b48; --line: #d3cecb; }
.hero-media { position: absolute; inset: 0; }
.hero-media .media { position: absolute; inset: 0; }
.hero-media .ph { justify-content: flex-start; padding-top: clamp(4rem, 8vw, 6rem); }
.hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-shade::before, .hero-shade::after { content: ""; position: absolute; inset: 0; transition: opacity .3s ease; }
.hero-shade::before {
  background: radial-gradient(ellipse 62% 50% at 50% 50%, rgba(20, 18, 16, .88), rgba(20, 18, 16, .62) 72%, rgba(20, 18, 16, .5)),
    linear-gradient(to top, #141210, transparent 22%);
}
.hero-shade::after {
  opacity: 0;
  background: radial-gradient(ellipse 62% 50% at 50% 50%, color-mix(in srgb, var(--paper) 92%, transparent), color-mix(in srgb, var(--paper) 70%, transparent) 72%, color-mix(in srgb, var(--paper) 58%, transparent)),
    linear-gradient(to top, var(--paper), transparent 22%);
}
body[data-theme="cream"] .hero-shade::before { opacity: 0; }
body[data-theme="cream"] .hero-shade::after { opacity: 1; }
.hero-body {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding-block: 2.5rem 5rem;
}
.hero h1 { font-size: clamp(3.25rem, 9vw, 7.5rem); line-height: .9; }
.hero h1 .wm { line-height: .9; }
.hero-title { margin-top: clamp(1rem, 2.4vw, 1.75rem); max-width: 25em; font: var(--display-w) clamp(1.25rem, 1rem + 1.1vw, 2rem)/1.25 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.hero-authors { margin-top: 1rem; font: 400 var(--t-label)/1.4 var(--mono); color: var(--muted); }
/* Paper-style author block: names with superscript affiliation numbers, then the numbered affiliations. */
.hero-authors.is-list {
  max-width: min(76rem, 100%); margin-top: 1.25rem; font: 500 clamp(.875rem, .8rem + .3vw, 1.0625rem)/1.7 var(--body);
  color: var(--fg); text-wrap: balance;
}
.hero-author, .hero-aff { display: inline-block; white-space: nowrap; }
/* Fixed author rows (content.js hero.authorRows): one line each where they fit, plain wrapping below that. */
@media (min-width: 75rem) {
  .hero-authors.is-list { width: max-content; max-width: calc(100vw - 2rem); }
  .hero-author-row { display: block; white-space: nowrap; }
}
.hero-author { margin-inline: .2em; }
.hero-authors sup, .hero-affs sup { font: 500 .68em/1 var(--mono); color: var(--tomato); vertical-align: super; }
.hero-authors sup { margin-left: .1em; }
.hero-affs {
  max-width: min(76rem, 100%); margin-top: .75rem; font: 400 var(--t-label)/1.7 var(--mono); color: var(--muted); text-wrap: balance;
}
.hero-aff { margin-inline: .5em; }
.hero-notes { margin-top: .25rem; }
/* Affiliation logos: transparent files in full colour on the light hero; in night mode they turn into
 * light single-colour marks, since several are dark navy or black. */
.hero-affs.has-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .875rem clamp(1.25rem, 2.6vw, 2.5rem);
  margin-top: 1.25rem;
}
body:not([data-theme="cream"]) .hero-logo img { filter: brightness(0) invert(1); opacity: .92; }
.hero-logo { display: inline-flex; align-items: flex-start; gap: .2rem; }
.hero-logo img { display: block; width: auto; height: calc(var(--h) * clamp(.46px, .22px + .036vw, .74px)); }
.hero-affs.has-logos sup { margin: 0; color: var(--tomato); }
.hero-notes { margin-top: .75rem; }
.hero-affs sup { margin-right: .2em; }
@media (max-width: 640px) { .hero-aff { white-space: normal; } }
.hero .btns { justify-content: center; margin-top: 1.5rem; }
.hero .btn { background: rgba(20, 18, 16, .55); }
body[data-theme="cream"] .hero .btn { background: color-mix(in srgb, #fff 70%, transparent); }
/* The leaderboard link sits under the buttons: one wider pill in the accent colour. */
.hero-lb {
  display: inline-flex; align-items: baseline; gap: .75rem; margin-top: .875rem; padding: .75rem 1.25rem;
  border: 1px solid var(--tomato); border-radius: 999px; background: color-mix(in srgb, var(--tomato) 14%, transparent);
  color: var(--fg); text-decoration: none; transition: background .25s, color .25s;
}
.hero-lb b { font: 600 .9375rem/1 var(--body); }
.hero-lb span { font: 400 var(--t-label)/1 var(--mono); letter-spacing: .04em; color: var(--muted); transition: color .25s; }
.hero-lb i { font-style: normal; transition: transform .25s var(--ease); }
.hero-lb:hover { background: var(--tomato); color: #fff; }
.hero-lb:hover span { color: rgba(255, 255, 255, .85); }
.hero-lb:hover i { transform: translateX(.2rem); }
@media (max-width: 640px) { .hero-lb span { display: none; } }
.hero-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 1.25rem; transform: translateX(-50%); padding-bottom: 1.75rem;
  font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--muted);
}
.hero-cue::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 1.25rem; background: currentColor; }

.btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn {
  display: inline-flex; align-items: baseline; gap: .5rem; padding: .75rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; font: 500 .875rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
a.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.is-off { color: var(--muted); cursor: default; }
.btn small { font: 400 .6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }

/* Abstract */
.abs-body { margin-top: 1.25rem; font-size: var(--t-lead); max-width: 46rem; }

/* Gap */
.gap-list { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.gap-list li {
  display: grid; grid-template-columns: var(--split); gap: .5rem var(--col-gap); align-items: baseline;
  padding-block: 1.25rem; border-bottom: 1px solid var(--line);
}
.gap-t { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: baseline; }
.gap-list span { font: 400 var(--t-label)/1 var(--mono); color: var(--tomato); }
.gap-list h3 { font: var(--display-w) var(--t-sub)/1.15 var(--display); letter-spacing: -.01em; }
.gap-list p { color: var(--muted); font-size: var(--t-small); }

.matrix { margin-top: var(--block); }
.matrix-cap { font-size: var(--t-small); line-height: 1.5; color: var(--muted); max-width: var(--measure); margin-top: 1rem; text-wrap: balance; }
.matrix-cap b { font-weight: 600; color: var(--fg); }
.matrix-scroll, .rs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix table { border-collapse: collapse; width: 100%; min-width: 42rem; font: 400 .8125rem/1 var(--mono); }
.matrix th, .matrix td { padding: .25rem .375rem; text-align: center; white-space: nowrap; }
.matrix th:first-child, .matrix td:first-child { text-align: left; padding-left: .625rem; }
.matrix thead th { font-weight: 500; color: var(--muted); font-size: .75rem; }
.matrix .m-grp th { color: var(--fg); padding-bottom: .125rem; }
.matrix .m-sec td { padding: .5625rem 0 .25rem .625rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.matrix .m-ours td { background: var(--tomato); color: #fff; font-weight: 500; padding-block: .375rem; }
.matrix .m-ours td:first-child { font-family: "Outfit", var(--body); font-size: .875rem; border-radius: var(--r-s) 0 0 var(--r-s); }
.matrix .m-ours td:last-child { border-radius: 0 var(--r-s) var(--r-s) 0; }
.matrix .m-gap td { padding: .125rem; }
.g { display: inline-block; width: .75rem; height: .75rem; vertical-align: middle; }
.g-y { color: var(--robot); }
.g-h { color: var(--human); }
.g-n { color: var(--muted); opacity: .45; }
.m-ours .g { color: #fff; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .625rem; font: 400 .75rem/1 var(--mono); color: var(--muted); }
.matrix-legend span { display: inline-flex; gap: .375rem; align-items: center; }

/* Motivation: the benchmark, after the comparison table */
.bm { margin-top: calc(var(--block) * 1.25); padding-top: var(--block); border-top: 1px solid var(--line); }
.bm-claim { max-width: 32em; font: 400 var(--t-sub)/1.25 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.bm-claim em { font-style: italic; color: var(--tomato); }
.bm-claim b { font-weight: 700; }
.bm .lede { margin-top: .75rem; }
.hsim { display: grid; grid-template-columns: var(--split-rev); gap: 1rem var(--col-gap); margin-top: var(--block); padding: clamp(1rem, 2.4vw, 1.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.hsim h3 { font: var(--display-w) var(--t-sub)/1.15 var(--display); letter-spacing: -.01em; }
.hsim p { font-size: var(--t-small); color: var(--muted); }

/* Tiles share rows across a set, so labels, titles, and text line up. */
.principles { display: grid; gap: var(--tile-gap); margin-top: var(--block); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.principle {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0;
  background: var(--surface); border: 1px solid var(--line); padding: 1.25rem; border-radius: var(--r-m);
}
.principle span { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.principle h3 { font: var(--display-w) var(--t-sub)/1.15 var(--display); letter-spacing: -.01em; margin: .75rem 0 .5rem; }
.principle p { font-size: var(--t-small); color: var(--muted); }

.sch-fig { margin-top: var(--block); }
.setup { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem 1.25rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); padding-top: .875rem; border-top: 1px solid var(--line); }
.setup dt { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .375rem; }
.setup dd { font-size: .875rem; line-height: 1.35; }

/* Segmented controls */
.seg { display: inline-flex; flex-wrap: wrap; padding: .1875rem; border: 1px solid var(--line); border-radius: 1.375rem; max-width: 100%; }
.seg button { flex: 1 1 auto; padding: .5625rem .875rem; border-radius: 999px; font: 500 .8125rem/1 var(--body); color: var(--muted); white-space: nowrap; transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg.is-sm { padding: .125rem; }
.seg.is-sm button { flex: none; padding: .4375rem .6875rem; font-size: .75rem; }
.seg-label { align-self: center; padding: 0 .375rem 0 .5rem; font: 500 .6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Tasks */
.tasks-panel { margin-top: 1.5rem; }
.task { margin-top: 1rem; }
.task[hidden] { display: none; }

/* Task player: the video and its controls; beside it the dialogue and a small timeline. */
.tp { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--tile-gap); }
.tp-main { min-width: 0; }
.tp-media { position: relative; }
.tp-media .media { aspect-ratio: 4 / 3; border-radius: var(--r-m); background: #000; }
.tp-media .ph-title { font-size: 1.125rem; }
.tp-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .375rem; }
.tp-speed { margin-left: auto; }
.tp-line { margin-top: .75rem; font-size: var(--t-small); line-height: 1.45; }
.tp-line b { margin-right: .625rem; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tomato); }
.tp-meta { margin-top: .25rem; font: 400 .6875rem/1.4 var(--mono); color: var(--muted); }
/* The side column takes the video column's height; the dialogue scrolls inside it. */
.tp-side { position: relative; min-width: 0; }
.tp-side-in { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--tile-gap); }
.tl { flex: none; padding: .625rem .75rem .5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m); }
.tl-head { display: flex; justify-content: space-between; gap: .5rem; font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl-head b { font-weight: 500; color: var(--fg); }
.tl-canvas { display: block; width: 100%; height: 3.75rem; margin-top: .5rem; }
.tl-read { margin-top: .25rem; font: 400 .6875rem/1.3 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-read.is-paused { color: var(--tomato); }

/* Task figure: the finished state beside the steps. */
.tf-fig { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.tf { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 1rem clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
.tf-art { min-width: 0; max-width: 19rem; }
.tf .eyebrow { color: var(--muted); }
.tf-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tf-steps { display: grid; }
.tf-steps li { display: grid; grid-template-columns: 1.75rem minmax(0, 10rem) minmax(0, 1fr); gap: .625rem; align-items: baseline; padding: .3125rem .375rem; border-top: 1px solid var(--line); border-radius: .25rem; transition: opacity .3s, background .3s; }
.tf-steps b { font: 500 .75rem/1 var(--mono); color: var(--tomato); }
.tf-steps span { font-size: .9375rem; line-height: 1.3; }
.tf-steps small { font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.tf-prog { height: 3px; margin-top: .625rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.tf-prog i { display: block; height: 100%; background: var(--tomato); transform: scaleX(1); transform-origin: left; transition: transform .35s var(--ease); }
.tf-round { font-variant-numeric: tabular-nums; }

/* While the drawing follows the video: parts appear at their step, the current one pulses. */
.tf [data-ph], .tf [data-off] { transition: opacity .4s, transform .4s var(--ease); transform-box: fill-box; transform-origin: center; }
.tf.is-sync .is-hidden { opacity: 0; transform: scale(.6); }
.tf.is-sync .is-gone { opacity: 0; }
.tf.is-sync .is-now { animation: tf-now .9s ease-in-out infinite alternate; }
.tf.is-sync .tv-row:not(.is-done) .tv-stick { stroke-dasharray: 5 5; }
.tf.is-sync .tv-bread:not(.is-done) rect { filter: brightness(1.35) saturate(.6); }
.tf.is-sync .tv-heat:not(.is-done) { opacity: .35; }
.tf.is-sync .tf-steps li { opacity: .45; }
.tf.is-sync .tf-steps li.is-done { opacity: .75; }
.tf.is-sync .tf-steps li.is-now { opacity: 1; background: color-mix(in srgb, var(--tomato) 14%, transparent); }
.tf.is-sync .tf-steps li.is-now span { color: var(--fg); font-weight: 600; }
@keyframes tf-now { to { opacity: .4; } }
.tf-repeat { padding-top: .625rem; border-top: 1px solid var(--line); font: 500 var(--t-label)/1.4 var(--mono); color: var(--tomato); }
.tv-plate { fill: var(--bg); stroke: var(--line); }
.tv-stick { fill: none; stroke: #c9a877; stroke-width: 3; stroke-linecap: round; }
.tv-food { stroke: rgba(0, 0, 0, .25); }
.tv-mark { fill: none; stroke: var(--tomato); stroke-width: 2; }
.tv-lead { fill: none; stroke: var(--line); }
.tv-heat { fill: var(--tomato); }
.tv-axis { fill: none; stroke: var(--line); }
.tv-window { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.tv-table { fill: var(--surface-2); stroke: var(--line); }
.tv-zone { fill: none; stroke: var(--line); stroke-dasharray: 3 5; }
.tv-spill { fill: #6a4426; }
.tv-dish { fill: var(--bg); stroke: var(--line); }
.tv-shared { fill: var(--bg); stroke: var(--tomato); stroke-width: 1.75; }

/* Tasks: the robot prompt and settings, folded under the heading */
.ev-more { margin-top: 1.25rem; }
.ev-more summary { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.ev-more summary::-webkit-details-marker { display: none; }
.ev-more summary::before { content: "+"; display: grid; place-items: center; width: 1.125rem; height: 1.125rem; border: 1px solid var(--line); border-radius: 50%; color: var(--tomato); }
.ev-more[open] summary::before { content: "−"; }
.ev-more summary:hover { color: var(--fg); }
.ev-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem var(--col-gap); margin-top: 1rem; align-items: start; }
.ev-settings { display: grid; border-top: 1px solid var(--line); }
.ev-settings div { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: .75rem; padding-block: .5rem; border-bottom: 1px solid var(--line); }
.ev-settings dt { font: 500 .75rem/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ev-settings dd { font-size: .875rem; line-height: 1.45; }
.ev-quote { padding: 1rem 1.125rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); font: 400 .8125rem/1.6 var(--mono); }
.ev-quote p + p { margin-top: .625rem; }
.ev-switch { padding-top: .625rem; border-top: 1px dashed var(--line); color: var(--muted); }
.ev-switch b { display: block; font-weight: 500; color: var(--tomato); }

/* Rollout parts: view tag, playback bar, dialogue */
.ro-tag { position: absolute; left: .75rem; top: .75rem; padding: .3125rem .5rem; border-radius: .3125rem; background: rgba(20, 18, 16, .72); color: #f6efe3; font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ro-tag.ro-model { left: auto; right: .75rem; }
.ro-bar { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.ro-play { flex: none; display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--fg); color: var(--bg); transition: transform .15s; }
.ro-play:hover { transform: scale(1.06); }
.ro-play svg { grid-area: 1 / 1; width: 1.125rem; height: 1.125rem; fill: currentColor; }
.ro-play .i-pause, .ro-play.is-playing .i-play { display: none; }
.ro-play.is-playing .i-pause { display: block; }
/* Position bar: a 4 px line in a taller hit area, with a handle that shows on hover, focus and drag. */
.ro-track { --p: 0; position: relative; flex: 1; height: 1.5rem; cursor: pointer; touch-action: none; }
.ro-track::before, .ro-track i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; }
.ro-track::before { background: var(--line); }
.ro-track i { background: var(--tomato); transform: scaleX(var(--p)); transform-origin: left; }
.ro-track b { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: .875rem; height: .875rem; margin: -.4375rem 0 0 -.4375rem; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tomato) 25%, transparent); transform: scale(.6); transition: transform .15s; }
.ro-track:hover b, .ro-track:focus-visible b, .ro-track.is-drag b { transform: scale(1); }
.ro-track:focus-visible { outline: none; }
.ro-chat { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m); }
.ro-chat-head { display: flex; justify-content: space-between; align-items: baseline; padding: .625rem .875rem .5rem; border-bottom: 1px solid var(--line); font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ro-chat-head b { font-weight: 500; color: var(--fg); }
.ro-chat-head span { font-variant-numeric: tabular-nums; }
.ro-log { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: .4375rem; padding: .75rem .875rem; overflow-y: auto; overscroll-behavior: contain; }
.ro-msg { max-width: 90%; padding: .4375rem .625rem .5rem; border-radius: .625rem; background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; line-height: 1.4; animation: ro-in .35s var(--ease) both; }
.ro-msg.is-human { align-self: flex-start; border-color: color-mix(in srgb, var(--human) 55%, var(--line)); border-bottom-left-radius: .25rem; }
.ro-msg.is-robot { align-self: flex-end; border-color: color-mix(in srgb, var(--robot) 55%, var(--line)); border-bottom-right-radius: .25rem; }
.ro-meta { display: flex; gap: .5rem; align-items: baseline; margin-bottom: .1875rem; font: 500 .625rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ro-msg.is-human .ro-meta b { color: var(--human); font-weight: 500; }
.ro-msg.is-robot .ro-meta b { color: var(--robot); font-weight: 500; }
.ro-empty { margin: auto; max-width: 15rem; text-align: center; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
@keyframes ro-in { from { opacity: 0; transform: translateY(.375rem); } }

/* Metrics: real-world experiments */
.rw-block { margin-top: var(--block); padding-top: var(--block); border-top: 1px solid var(--line); }
.rw-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.rw-head h3 { font: var(--display-w) var(--t-sub)/1.15 var(--display); letter-spacing: -.01em; }
.rw-head .badge { margin-top: 0; }
.rw-block .lede { margin-top: .75rem; }
.rw-block .rw-slider { margin-top: 1.25rem; }

/* Metrics: collaboration against burden, then the formulas */

/* Metrics */
.mt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem var(--tile-gap); margin-top: var(--block); align-items: stretch; }
.mt-card { min-width: 0; padding: clamp(1rem, 2.4vw, 1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.mt-card h3 { font: var(--display-w) var(--t-sub)/1.15 var(--display); margin-bottom: .5rem; }
.mt-card p { color: var(--muted); }
.tex { margin-top: 1.125rem; overflow-x: auto; overflow-y: hidden; color: var(--fg); }
.tex + .tex { margin-top: .25rem; }
.tex .katex-display { margin: .25rem 0; text-align: left; }
.tex .katex-display > .katex { text-align: left; font-size: 1.2em; }
.mt-short { margin-top: .25rem; font: 400 1.125rem/1.45 var(--body); color: var(--fg) !important; max-width: none !important; }
.mt-card h3 { font-size: var(--t-sub); }
.mt-card .tex { margin-top: 1.25rem; padding: .75rem 1rem; border-radius: var(--r-m); background: var(--bg); }
.mt-card .stops li { grid-template-columns: .625rem 5.25rem minmax(0, 1fr); align-items: center; }
.mt-card .stops li::before { content: ""; width: .625rem; height: .625rem; border-radius: 50%; background: var(--tone); }
.mt-card .stops b { color: var(--fg); }
.mt-card p { font-size: var(--t-small); }
.mt-where { margin-top: .5rem; font-size: .875rem !important; color: var(--muted); }
.mt-card .stops { margin-top: 1rem; }
.stops { margin-top: 1rem; }
.stops li { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: .75rem; align-items: baseline; padding-block: .4375rem; border-top: 1px solid var(--line); font-size: var(--t-small); }
.stops b { font: 500 var(--t-label)/1.5 var(--mono); }
/* Results */
.badge { display: inline-block; max-width: 100%; padding: .4375rem .6875rem; border: 1px solid var(--tomato); color: var(--tomato); border-radius: var(--r-m); font: 500 var(--t-label)/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-top: 1rem; }

.axis-ctl { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Row labels stay in view when a wide table scrolls sideways. */
.matrix tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.matrix .m-ours td:first-child { background: var(--tomato); }

/* Real world: one video slot per task. */
.rw-slider { max-width: 46rem; }
.rw-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: #000; }
.rw-slide { position: absolute; inset: 0; }
.rw-slide[hidden] { display: none; }
.rw-slide video { display: block; width: 100%; height: 100%; object-fit: cover; }
.rw-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: .625rem; padding: 2rem 1rem .75rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; }
.rw-slide figcaption b { font: var(--display-w) 1.125rem/1.2 var(--display); }
.rw-slide figcaption span { font: 500 .6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.rw-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; border-radius: 50%; background: rgba(20, 18, 16, .6); color: #fff; transition: background .2s; }
.rw-nav:hover { background: rgba(20, 18, 16, .85); }
.rw-nav svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rw-nav.is-prev { left: .75rem; }
.rw-nav.is-next { right: .75rem; }
.rw-dots { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .625rem; }
.rw-dots button { padding: .375rem .625rem; border: 1px solid var(--line); border-radius: 999px; font: 500 .75rem/1 var(--body); color: var(--muted); transition: border-color .2s, background .2s, color .2s; }
.rw-dots button:hover { border-color: var(--muted); }
.rw-dots button[aria-pressed="true"] { border-color: var(--tomato); background: color-mix(in srgb, var(--tomato) 12%, transparent); color: var(--fg); }
/* Resources + footer */
/* A fixed closing block in both themes. */
#resources, .foot {
  --bg: #9f2f1c; --fg: #fbf1e3; --muted: #f3c9b4;
  --line: #c6543c; --surface: #8c2817; --surface-2: #7f2313;
  background: var(--bg); color: var(--fg);
}
#resources { padding-bottom: 0; }
#resources .claim { color: var(--fg); }
#resources .claim em { color: #ffd2b0; }
.rs-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tile-gap); margin-top: var(--block); }
.rs-link {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: 9.375rem; padding: 1.25rem;
  background: var(--surface); border-radius: var(--r-m); text-decoration: none; transition: transform .3s var(--ease);
}
a.rs-link:hover { transform: translateY(-.25rem); }
.rs-link b { font: var(--display-w) var(--t-sub)/1 var(--display); }
.rs-link span { font: 400 var(--t-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.citation { margin-top: var(--tile-gap); padding: 1.125rem 1.25rem; background: var(--surface-2); border-radius: var(--r-s); font: 400 var(--t-label)/1.5 var(--mono); }
.foot { padding-block: 2.5rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; }
.foot .wm { font-size: 2.75rem; }
/* the hero (over the darkened video) and the red footer always take the cream-letter logo */
body .hero .wm-day, body .foot .wm-day { display: none; }
body .hero .wm-night, body .foot .wm-night { display: inline; }
/* with night mode off the hero is light, so it takes the brown-letter logo */
body[data-theme="cream"] .hero .wm-day { display: inline; }
body[data-theme="cream"] .hero .wm-night { display: none; }
.foot p { font: 400 var(--t-label)/1.4 var(--mono); color: var(--muted); }

/* Panels hold every interactive figure. */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1rem, 2.4vw, 1.75rem); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.panel-head h3 { font: var(--display-w) var(--t-sub)/1.15 var(--display); letter-spacing: -.01em; }
.eyebrow { font: 500 var(--t-label)/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }

/* Tones color a figure part and every dot that travels with it. */
.t-tomato { --tone: var(--tomato); }
.t-human { --tone: var(--human); }
.t-robot { --tone: var(--robot); }
.t-cool { --tone: var(--cool); }
.t-mute { --tone: var(--muted); }

/* Diagram parts */
.fl-dots circle { fill: var(--tone); filter: drop-shadow(0 0 3px var(--tone)); }
.d-edge { fill: none; stroke: var(--tone); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.d-edge.is-dashed { stroke-dasharray: 4 5; }
.is-live .d-edge.is-dashed { animation: dash 1.6s linear infinite; }
.d-ghost { fill: none; stroke: none; }
.d-label { font: 500 11px var(--mono); fill: var(--muted); }
.d-pill { fill: var(--surface); stroke: var(--line); }
.d-node rect { fill: color-mix(in srgb, var(--tone) 10%, var(--bg)); stroke: var(--tone); stroke-width: 1.25; }
.d-title { font: 500 15px var(--body); fill: var(--fg); text-anchor: middle; }
.d-sub { font: 400 11px var(--mono); fill: var(--muted); text-anchor: middle; }
.is-live .is-tick rect { animation: tick 2s ease-out infinite; }
.k-room { fill: var(--bg); stroke: var(--line); }
.k-table { fill: var(--surface-2); }
.k-bowl { fill: var(--bg); stroke: var(--line); }
.f-kiwi { fill: #9cc35a; } .f-orange { fill: #ee9a3a; } .f-straw { fill: #d9534a; }
.k-arm path { fill: none; stroke: var(--tone); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.k-arm circle { fill: var(--tone); }
.k-arm { transform-box: fill-box; transform-origin: left center; }
.k-arm.is-human { transform-origin: right center; }
.is-live .k-arm { animation: reach 5s ease-in-out infinite; }
.is-live .k-arm.is-human { animation-name: reach-back; animation-delay: -1.6s; }
.is-live .k-arm.is-two { animation-delay: -2.5s; }
.is-live .k-arm.is-human.is-two { animation-delay: -4.1s; }
.k-body { fill: color-mix(in srgb, var(--tone) 28%, var(--bg)); stroke: var(--tone); stroke-width: 1.5; }
.k-arm .k-cap-o { stroke: var(--tone); stroke-width: 12; }
.k-arm .k-cap-i { stroke: color-mix(in srgb, var(--tone) 28%, var(--bg)); stroke-width: 9; }
.k-arm .k-grip { stroke: var(--tone); stroke-width: 3; }
.k-arm .k-hand { fill: color-mix(in srgb, var(--tone) 28%, var(--bg)); stroke: var(--tone); stroke-width: 1.5; }
.k-head { fill: var(--tone); }
.dl-stage svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Overview. Stacked by default: each stage's text, then its drawing. */
.ov { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.ov-step { padding-left: 1.125rem; border-left: 2px solid var(--tone); }
.ov-top { display: flex; justify-content: space-between; gap: .5rem; font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ov-top span:first-child { color: var(--tone); }
.ov-step h3 { margin-top: .5rem; font: var(--display-w) var(--t-sub)/1.15 var(--display); letter-spacing: -.01em; }
.ov-hit { padding: 0; text-align: left; font: inherit; color: var(--fg); }
.ov-copy { display: none; margin-top: .375rem; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.ov-detail { padding-left: 1.125rem; border-left: 2px solid var(--tone); }
.ov-detail p { font-size: var(--t-small); color: var(--muted); max-width: var(--measure); }
.ov-detail a { display: inline-block; margin-top: .5rem; font: 500 .875rem/1.4 var(--body); color: var(--tone); text-underline-offset: .2em; }
.ov-vis { display: flex; flex-direction: column; gap: .625rem; margin-bottom: 1.25rem; padding: clamp(.75rem, 2vw, 1.25rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m); }
.ov-foot { padding-top: .625rem; border-top: 1px solid var(--line); font: 500 .75rem/1.35 var(--mono); color: var(--tone); }
.ov-bar { display: none; }

/* Overview drawings, all drawn at 480 × 300 */
.ovv-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ovv-tasks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .375rem; aspect-ratio: 480 / 300; }
.ovv-task { position: relative; grid-column: span 2; overflow: hidden; border-radius: .375rem; background: var(--surface-2); }
.ovv-task:nth-child(n+4) { grid-column: span 3; }
.ovv-task img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ovv-cap { position: absolute; inset: auto 0 0 0; padding: 1.5rem .5rem .4375rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.ovv-cap b { display: block; font: 600 .875rem/1.2 var(--body); color: #fff; }
.ovv-cap span { display: block; margin-top: .125rem; font: 500 .625rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #ffd2b0; }
.ovv-bracket { fill: none; stroke: var(--tone); stroke-width: 2; stroke-linecap: round; }
.ovv-group-label { font: 500 11px var(--mono); letter-spacing: .08em; fill: var(--tone); }
.ovv-node rect { fill: var(--surface); stroke: var(--tone); stroke-width: 1.25; }
.ovv-title { font: var(--display-w) 18px var(--display); fill: var(--fg); }
.ovv-sub { font: 400 10.5px var(--mono); fill: var(--muted); }
.ovv-lane { font: 500 11px var(--mono); fill: var(--muted); }
.ovv-note { font: 400 12px var(--body); fill: var(--fg); }
.ovv-key { font: 400 12px var(--body); fill: var(--fg); }
.ovv-human { fill: var(--human); }
.ovv-robot { fill: var(--robot); }
.ovv-think { fill: var(--muted); opacity: .45; }
.ovv-pause { fill: url(#ovv-hatch); stroke: color-mix(in srgb, var(--tomato) 55%, transparent); stroke-width: 1; }
.ovv-hatch-ink { fill: var(--tomato); opacity: .55; }
.ovv-head { stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ovv-axis { fill: none; stroke: var(--line); stroke-width: 1.25; }
.ovv-h { font: var(--display-w) 18px var(--display); fill: var(--fg); }
.ovv-better { font: 500 10.5px var(--mono); fill: var(--muted); }
.ovv-zone-neg { fill: color-mix(in srgb, var(--tomato) 30%, transparent); }
.ovv-zone-pos { fill: color-mix(in srgb, var(--robot) 30%, transparent); }
.ovv-zone-label { font: 500 10px var(--mono); letter-spacing: .06em; }
.ovv-zone-neg-text { fill: var(--tomato); }
.ovv-zone-pos-text { fill: var(--robot); }
.ovv-tick { stroke: var(--fg); stroke-width: 2; }
.ovv-tick-label { font: 600 13px var(--mono); fill: var(--fg); }
.ovv-mark circle { fill: var(--tomato); stroke: var(--bg); stroke-width: 3; }
.ovv-mark-label { font: 600 11px var(--mono); fill: var(--tomato); }

/* Keep in step with PINNED in figures.js. */
@media (min-width: 1001px) and (min-height: 650px) {
  .ov-steps { height: 340vh; }
  .ov {
    position: sticky; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: repeat(5, auto) auto;
    column-gap: var(--col-gap); row-gap: 0; align-items: start;
  }
  .ov-step { grid-column: 1; grid-row: var(--r); padding-block: .625rem; border-left-color: var(--line); opacity: .5; transition: opacity .3s, border-color .3s; }
  .ov-step:hover { opacity: .8; }
  .ov-step.is-on { opacity: 1; border-left-color: var(--tone); }
  .ov-step h3 { margin-top: .375rem; font-size: 1.375rem; }
  .ov-copy { display: block; }
  /* Every stage's detail sits in the same cell, so the column keeps one height while stages change. */
  .ov-detail { grid-column: 1; grid-row: 5; margin-top: 1rem; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .ov-detail.is-on { opacity: 1; visibility: visible; }
  .ov-vis { grid-column: 2; grid-row: 1 / 6; align-self: center; margin: 0; opacity: 0; visibility: hidden; transform: translateY(.75rem); transition: opacity .45s, transform .45s var(--ease), visibility .45s; }
  .ov-vis.is-on { opacity: 1; visibility: visible; transform: none; }
  .ov-bar { display: block; grid-column: 1 / -1; grid-row: 6; height: 2px; margin-top: 1.25rem; background: var(--line); overflow: hidden; }
  .ov-bar i { display: block; height: 100%; background: var(--tomato); transform: scaleX(0); transform-origin: left; }
}

/* Each drawing animates when its stage comes on. */
/* ---------- Sections from the paper's results (content-results.js) ---------- */

/* Hero: the paper's conclusion in one line. */
.hero-exp { margin-top: .875rem; font: 400 calc(var(--t-label) * 1.5)/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.hero-exp b { color: var(--tomato); font-weight: 600; }

/* Key results: three numbers right after the abstract. */
.kr { padding-top: 0; }
.kr-title { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tile-gap); margin-top: 1rem; }
.kr-stats.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--block); }
.kr-stats li { display: grid; align-content: start; gap: .625rem; min-width: 0; padding: clamp(1rem, 2.4vw, 1.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.kr-stats b { font: var(--display-w) clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem)/1 var(--display); letter-spacing: -.025em; color: var(--tomato); font-variant-numeric: tabular-nums; }
.kr-stats span { font-size: var(--t-small); color: var(--muted); }
.kr-note { margin-top: .875rem; font: 400 var(--t-label)/1.5 var(--mono); color: var(--muted); max-width: var(--measure); }

/* Key results: the race. Thin lines, people in ink, robot teams in tomato. */
.kr-claim { margin-top: .875rem; max-width: 36em; font: 500 var(--t-lead)/1.5 var(--body); text-wrap: balance; }
.kr-claim em { font-style: normal; color: var(--tomato); }
.kr-race { display: grid; gap: .25rem; margin-top: 1.5rem; max-width: 52rem; }
.kr-race li { --c: var(--fg); display: grid; grid-template-columns: 15.5rem minmax(0, 1fr) 2.25rem; gap: 1rem; align-items: center; min-height: 1.75rem; }
.kr-race li.is-robot { --c: var(--tomato); }
.kr-lbl { font-size: .875rem; color: var(--muted); transition: color .3s; }
.kr-race li.is-done .kr-lbl { color: var(--fg); }
.kr-track { position: relative; height: .5rem; }
.kr-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.kr-track::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; border-right: 1px solid var(--muted); }
.kr-track i { position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--c); transform: translateY(-50%); }
.kr-track i::after { content: ""; position: absolute; right: -3px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--c); transform: translateY(-50%); }
.kr-race.is-run .kr-track i { width: 100%; transition: width calc(var(--t) * var(--sec, 3s)) linear; }
.kr-rank { font: 500 var(--t-label)/1 var(--mono); color: var(--c); opacity: 0; transition: opacity .3s; }
.kr-race li.is-done .kr-rank { opacity: 1; }
.kr-replay { margin-left: .5rem; padding: 0; font: inherit; color: var(--fg); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line); }
.kr-replay:hover { text-decoration-color: currentColor; }
@media (max-width: 640px) {
  .kr-race { gap: .5rem; }
  .kr-race li { grid-template-columns: minmax(0, 1fr) 2.25rem; gap: .125rem .75rem; }
  .kr-lbl { grid-column: 1 / -1; }
}

/* Metrics: three cards when W joins S and B. */
.mt-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 04 Results: the S-B chart (paper Fig. 4). */
.seg button:disabled { opacity: .4; cursor: not-allowed; }

/* 05 Why robots fail: W bars (paper Fig. 5) and the three failure modes. */
.wb { margin-top: var(--block); }
.wb-lede { font-size: var(--t-small); color: var(--muted); max-width: var(--measure); }
.wb-legend { display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; margin-top: 1rem; font: 400 .8125rem/1.4 var(--mono); color: var(--muted); }
.wb-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.wb-legend i { width: .75rem; height: .75rem; border-radius: 3px; background: var(--tone); }
.wb-rows { display: grid; gap: .625rem; margin-top: 1.25rem; }
.wb-row, .wb-axis { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 3.5rem; align-items: center; gap: .875rem; }
.wb-lbl { display: grid; font: 400 .8125rem/1.25 var(--mono); color: var(--muted); }
.wb-lbl b { font: 500 .875rem/1.25 var(--body); color: var(--fg); }
.wb-track { display: flex; height: 1.75rem; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.wb-track i { display: flex; align-items: center; justify-content: center; width: 0; height: 100%; background: var(--tone); transition: width 1s var(--ease); overflow: hidden; }
.wb-track i + i { box-shadow: inset 2px 0 0 var(--surface); }
.wb-track span { font: 500 .75rem/1 var(--mono); color: #fff; }
.wb-sum { font: 500 .875rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.wb-axis > div { position: relative; height: 1rem; border-top: 1px solid var(--line); }
.wb-axis b { position: absolute; top: .25rem; transform: translateX(-50%); font: 400 .6875rem/1 var(--mono); color: var(--muted); }
.wb-axis b:first-child { transform: none; }
.wb-axis b:last-child { transform: translateX(-100%); }
.wb-note { margin-top: 1rem; font-size: var(--t-small); color: var(--muted); max-width: var(--measure); }
.fl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tile-gap); margin-top: var(--tile-gap); }
.fl-card { display: flex; flex-direction: column; gap: .75rem; min-width: 0; padding: clamp(1rem, 2.4vw, 1.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.fl-card h3 { font: var(--display-w) var(--t-sub)/1.15 var(--display); letter-spacing: -.01em; }
.fl-stat { display: grid; gap: .25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.fl-stat b { font: var(--display-w) 2rem/1 var(--display); letter-spacing: -.02em; color: var(--tomato); font-variant-numeric: tabular-nums; }
.fl-stat span { font: 400 var(--t-label)/1.4 var(--mono); color: var(--muted); }
.fl-body { font-size: var(--t-small); color: var(--muted); }

/* 06 Real world. */
.rwr-points { display: grid; gap: .75rem; margin-top: 1.5rem; max-width: var(--measure); }
.rwr-points li { padding-left: .875rem; border-left: 2px solid var(--line); color: var(--muted); }
.rwr-points b { color: var(--fg); font-weight: 600; }

/* Demo candidates (temporary review section). */
/* Demo video: centred at 60% of the page width, straight under the hero. */
.dm { padding-top: clamp(2rem, 4vw, 3.5rem); }
.dm video { display: block; width: 60%; height: auto; margin-inline: auto; border-radius: var(--r-m); background: #000; }
@media (max-width: 1000px) { .dm video { width: 80%; } }
@media (max-width: 640px) { .dm video { width: 100%; border-radius: 0; } }
.dm-note { padding: .75rem var(--gutter); text-align: center; font: 500 .875rem/1.4 var(--body); color: var(--muted); }
/* About three times the usual section gap between the demo video and the abstract. */
.dm + .pad { padding-top: clamp(9rem, 18vw, 16rem); }

@media (max-width: 1000px) {
  .kr-stats, .mt-grid.is-3, .fl-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .kr-stats.is-2 { grid-template-columns: minmax(0, 1fr); }
  .wb-row, .wb-axis { grid-template-columns: minmax(0, 1fr) 3rem; }
  .wb-lbl { grid-column: 1 / -1; display: flex; gap: .5rem; }
  .wb-axis > span:first-child { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .ov-vis.is-on .ovv-task { animation: ov-pop .55s var(--ease) both; animation-delay: calc(var(--k) * 80ms); }
  .ov-vis.is-on .ovv-head { animation: ov-sweep 7s linear infinite; }
  .ov-vis.is-on .ovv-mark { animation: ov-slide 1.2s var(--ease) .25s both; }
}
@keyframes ov-pop { from { opacity: 0; transform: translateY(.5rem) scale(.97); } }
@keyframes ov-sweep { from { transform: translateX(0); } to { transform: translateX(355px); } }
@keyframes ov-slide { from { transform: translateX(var(--from)); } }

/* Numbered tabs */
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; }
.tabs button {
  display: flex; align-items: center; gap: .625rem; min-width: 0; padding: .5625rem .75rem; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-s); font: 500 .9375rem/1.2 var(--body); color: var(--muted);
  transition: border-color .2s, background .2s, color .2s;
}
.tabs button:hover { border-color: var(--muted); }
.tabs b { flex: none; padding: .25rem .375rem; border-radius: .375rem; background: var(--surface-2); font: 500 .75rem/1 var(--mono); color: var(--muted); transition: background .2s, color .2s; }
.tabs button[aria-pressed="true"] { border-color: var(--tomato); background: color-mix(in srgb, var(--tomato) 12%, transparent); color: var(--fg); }
.tabs button[aria-pressed="true"] b { background: var(--tomato); color: #fff; }

@keyframes dash { to { stroke-dashoffset: -18; } }
@keyframes tick { 0% { stroke-width: 3; } 40%, 100% { stroke-width: 1.25; } }
@keyframes reach { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }
@keyframes reach-back { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }

/* The toggle keeps its state alone in the top bar, which leaves room for the links. */
@media (max-width: 1279px) {
  .mode-label { display: none; }
}

/* Tablet and short windows: splits stack, tiles pair up. */
@media (max-width: 1000px) {
  .nav ul { display: none; }
  .tf, .mt-grid, .ev-grid, .tp, .hsim { grid-template-columns: minmax(0, 1fr); }
  .tp-side-in { position: static; }
  .tp-side .ro-chat { flex: none; height: 18rem; }
  .gap-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle { display: block; grid-row: auto; }
  .setup { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phones */
@media (max-width: 640px) {
  .awning i:nth-child(n+11) { display: none; }
  .setup, .rs-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-steps li { grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0 .5rem; }
  .tf-steps small { grid-column: 2; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .gap-list li { grid-template-columns: minmax(0, 1fr); padding-left: 2.5rem; }
  .gap-t { margin-left: -2.5rem; }
  .rs-link { min-height: 7rem; }
  .tp-speed { margin-left: 0; }
  .mt-grid { grid-template-columns: minmax(0, 1fr); }
  .tf-art { max-width: none; }
}

/* Side rail: the top bar turns into a column once there is room for one. */
@media (min-width: 1280px) {
  main > section:not(.hero):not(.dm):not(.sec-fig1) { padding-left: var(--rail); } /* Figure 1 and the demo video are centred on the whole page */
  .nav { inset: 0 auto 0 0; width: var(--rail); padding: 1.5rem 0 1.5rem 1.5rem; transform: translateX(-.5rem); }
  .nav::before { display: none; }
  .nav.is-on.is-end { opacity: 0; pointer-events: none; }
  .nav-in { height: 100%; max-width: none; margin: 0; padding: 0; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-wm { margin: 0; }
  .nav .is-minor { display: block; }
  .nav ul { display: grid; gap: 0; margin-block: auto; width: 100%; border-left: 1px solid var(--line); }
  .nav ul a { position: relative; display: flex; gap: .5rem; padding: .4375rem 0 .4375rem .875rem; font: 400 .8125rem/1.2 var(--body); letter-spacing: 0; }
  .nav ul a b { display: inline; font: 500 .6875rem/1.5 var(--mono); color: var(--tomato); opacity: .8; }
  .nav ul a::before { content: ""; position: absolute; left: -1px; top: .25rem; bottom: .25rem; width: 2px; background: var(--tomato); transform: scaleY(0); transition: transform .25s var(--ease); }
  .nav ul a.is-active::before { transform: none; }
  .mode { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
  .fl-dots { display: none; }
  .ov-step, .ov-detail, .ov-vis { transition: none; }
  .wm-eye { animation: none; }
}

/* ---------- Fewer boxes (2026-11-20) ----------
 * Most grey boxes are gone: figures sit directly on the page, and tiles in a row keep only a hairline on top.
 * Kept: controls, media frames, chart tracks, chat bubbles and the BibTeX block. */
.panel, .hsim, .ov-vis, .dl { padding: 0; background: none; border: 0; border-radius: 0; }
.principle, .mt-card, .kr-stats li, .fl-card, .rs-link {
  padding: 1.125rem 0 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0;
}
.principles, .mt-grid, .kr-stats, .fl-grid, .rs-links { column-gap: clamp(1.5rem, 3vw, 2.5rem); row-gap: 2rem; }
a.rs-link:hover { transform: none; border-top-color: currentColor; }
.rs-link { min-height: 0; gap: 1.5rem; }
.tl, .ro-chat { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); padding-inline: 0; }
.ro-chat-head { padding-inline: 0; }
.ro-log { padding-inline: 0; }
.ro-msg { background: none; }
.ev-quote { padding: .25rem 0 .25rem 1rem; background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; }

/* Separators asked for after the box clean-up: the three principles get thin dividers between columns, the task
 * player one hairline outline. */
.principle { padding: 0 0 0 clamp(1rem, 2.4vw, 1.75rem); border-top: 0; border-left: 1px solid var(--line); }
.principle:first-child { padding-left: 0; border-left: 0; }
.tasks-panel { padding: clamp(1rem, 2.4vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--r-l); }
@media (max-width: 1000px) {
  .principle, .principle:first-child { padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Task dialogue: more air between and inside messages. */
.ro-log { gap: .75rem; padding-block: .875rem; }
.ro-msg { padding: .5625rem .75rem .625rem; line-height: 1.5; }
.ro-meta { margin-bottom: .3125rem; }

/* Setup under the decision-loop figure: smaller, no rule. */
.setup { gap: .75rem 1.25rem; margin-top: 4rem; padding-top: 0; border-top: 0; }
.setup dt { font-size: .625rem; margin-bottom: .25rem; }
.setup dd { font-size: .75rem; color: var(--muted); }

/* Human simulator: the loop as four steps, one line each. */
.hsim { display: block; }
.hsim-lead { margin-top: .5rem; max-width: 36em; font-size: var(--t-lead); color: var(--muted); }
.hsim-lead em { font-style: normal; color: var(--fg); }
.hsim-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.hsim-steps li { padding-top: .75rem; border-top: 2px solid var(--tone); }
.hsim-steps b { display: flex; gap: .5rem; align-items: baseline; font: 600 .9375rem/1.2 var(--body); }
.hsim-steps b span { font: 500 var(--t-label)/1 var(--mono); color: var(--tone); }
.hsim-steps p { margin-top: .375rem; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) { .hsim-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .hsim-steps { grid-template-columns: minmax(0, 1fr); } }

/* Metrics: the better direction under each name, and the two human references set apart in the value lists. */
.mt-dir { display: inline-flex; margin-bottom: .5rem; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tomato); }
.mt-card .stops li.is-ref span { color: var(--fg); }
.stops li.is-ref em { display: inline-block; margin-right: .5rem; padding: .125rem .4375rem; border: 1px solid var(--fg); border-radius: 999px; font: 600 .6875rem/1.2 var(--mono); font-style: normal; letter-spacing: .02em; color: var(--fg); }
#metrics .lede b, #metrics .sec-head b { font-weight: 600; color: var(--fg); }

/* 04 Results: the table of medians. No box; the "robot helps" shade is the paper's Fig. 4 fill (#eee2e1). */
.rt { margin-top: var(--block); }
.rt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rt-table { width: 100%; min-width: 46rem; border-collapse: collapse; font: 400 .875rem/1.3 var(--body); font-variant-numeric: tabular-nums; }
.rt-table th, .rt-table td { padding: .5rem .625rem; text-align: right; white-space: nowrap; }
.rt-table th[scope="row"], .rt-table .rt-lat { text-align: left; }
.rt-table thead th { font: 500 .75rem/1.2 var(--mono); letter-spacing: .04em; color: var(--muted); vertical-align: bottom; }
.rt-table thead tr:first-child th[scope="colgroup"] { color: var(--fg); border-bottom: 1px solid var(--line); text-align: center; }
.rt-table thead tr:last-child th, .rt-table thead th[rowspan] { border-bottom: 1.5px solid var(--fg); }
.rt-table thead th:first-child, .rt-table thead th:nth-child(2) { text-align: left; }
.rt-table thead i { font-style: normal; color: var(--tomato); }
.rt-table tbody tr { border-bottom: 1px solid var(--line); }
.rt-table tbody tr:has(+ .rt-2nd) { border-bottom-color: transparent; }
.rt-table tbody th[scope="row"] { font-weight: 500; vertical-align: top; }
.rt-lat { font: 400 .75rem/1.3 var(--mono); color: var(--muted); }
.rt-ref th, .rt-ref td { color: var(--muted); }
.rt-ref th[scope="row"] { color: var(--fg); font-weight: 600; }
.rt-ref tr:last-child { border-bottom: 1.5px solid var(--fg); }
.rt-group th { padding-top: 1.25rem; text-align: left; font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tomato); }
.rt-table tr.rt-group { border-bottom: 1px solid var(--line); }
.rt-s { font-weight: 600; }
.rt-na { text-align: center !important; color: var(--muted); }
.rt-pending td { text-align: left; font: 400 .75rem/1.3 var(--mono); color: var(--muted); }
.rt-table td.is-help { background: #eee2e1; color: #1b1817; }
body[data-theme="ink"] .rt-table td.is-help { background: color-mix(in srgb, #eee2e1 22%, transparent); color: var(--fg); }
.rt-note { margin-top: 1rem; max-width: var(--measure); font: 400 var(--t-label)/1.5 var(--mono); color: var(--muted); }
.rt-note b { font-weight: 500; color: var(--fg); }
.rs-takeaways { display: grid; gap: .5rem; margin-top: 2rem; max-width: var(--measure); padding-left: 1.125rem; list-style: disc; }
.rs-takeaways li { font-size: var(--t-small); }
.rs-takeaways li::marker { color: var(--tomato); }

/* Table 1: a rule under each header row so the column names read as a header. */
.matrix thead .m-grp th:not(:first-child) { border-bottom: 1px solid var(--line); }
.matrix thead tr:last-child th { padding-bottom: .5rem; border-bottom: 1.5px solid var(--fg); color: var(--fg); }

/* Figure fills: bright in both themes (the --f-* tokens). */
.t-tomato { --ftone: var(--f-tomato); } .t-human { --ftone: var(--f-human); } .t-robot { --ftone: var(--f-robot); } .t-cool { --ftone: var(--f-cool); }
.wb-track { background: color-mix(in srgb, var(--line) 50%, transparent); }
.wb-track i, .wb-legend i { background: var(--ftone); }
.wb-track i + i { box-shadow: inset 2px 0 0 var(--bg); }
.wb-track span { color: #1b1817; }
.wb-track i.t-tomato span { color: #fff; }
.ovv-human { fill: var(--f-human); }
.ovv-robot { fill: var(--f-robot); }
.ovv-think { fill: var(--f-think); opacity: 1; }
.ovv-hatch-ink { fill: var(--f-tomato); }
.ovv-pause { stroke: color-mix(in srgb, var(--f-tomato) 60%, transparent); }
.ovv-zone-neg { fill: color-mix(in srgb, var(--f-tomato) 28%, transparent); }
.ovv-zone-pos { fill: color-mix(in srgb, var(--f-robot) 28%, transparent); }
.ovv-mark circle { fill: var(--f-tomato); }

/* 06 Real world: setup and comparison, then task order. */
.rwx { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: var(--block); }
.rws { margin: 0; }
.rws-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rws figcaption { margin-top: .5rem; font: 400 var(--t-label)/1.4 var(--mono); color: var(--muted); }
.rws-table { fill: color-mix(in srgb, var(--line) 45%, transparent); stroke: var(--line); }
.rws-item { fill: var(--bg); stroke: var(--line); }
.rws-in { font: 500 11px var(--mono); letter-spacing: .06em; fill: var(--muted); text-anchor: middle; text-transform: uppercase; }
.rws-cam { fill: var(--fg); }
.rws-head { fill: var(--fg); }
.rws-lbl { font: 600 12px var(--body); fill: var(--fg); text-anchor: middle; }
.rws-sub { font: 400 11px var(--mono); fill: var(--muted); }
.rws-lead { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.rws .k-arm path { fill: none; stroke-linecap: round; }
.rwc { display: grid; gap: 1.5rem; }
.rwc h3 { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--robot); }
.rwc .is-diff h3 { color: var(--tomato); }
.rwc ul { display: grid; gap: .375rem; margin-top: .625rem; }
.rwc li { padding-left: .875rem; border-left: 2px solid var(--line); font-size: var(--t-small); }
.rwo-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: var(--block); }
.rwo { margin: 0; }
.rwo-row .rwr-points { margin-top: 0; }
@media (max-width: 1000px) { .rwo-row { grid-template-columns: minmax(0, 1fr); } }
.rwo figcaption b { font: var(--display-w) var(--t-sub)/1.15 var(--display); letter-spacing: -.01em; }
.rwo-svg { display: block; width: 100%; height: auto; margin-top: 1rem; overflow: visible; }
.rwo p { margin-top: .75rem; font-size: var(--t-small); color: var(--muted); }
.rwo-h { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); }
.rwo-t { font: 500 13px var(--body); fill: var(--fg); }
.rwo-t.is-swap { fill: var(--tomato); font-weight: 600; }
.rwo-line { fill: none; stroke: var(--line); stroke-width: 1.5; }
.rwo-line.is-swap { stroke: var(--f-tomato); stroke-width: 2.25; }
.rwo-k { font: 400 10.5px var(--mono); fill: var(--muted); }
.rwo-arrow { fill: none; stroke: var(--muted); stroke-width: 1; marker-end: none; }
@media (max-width: 1000px) { .rwx { grid-template-columns: minmax(0, 1fr); } }
