/* Agentic Data Curation: project page styles.
   Palette follows the paper: violet = coding agent, green = agent-refined (after),
   orange = initial-expert data (before), grey = benchmark data. */
:root {
  --bg: #f6f4ef;
  --bg2: #efece4;
  --surface: #ffffff;
  --ink: #16161c;
  --ink2: #474753;
  --ink3: #75757f;
  --line: #e2ded4;
  --line2: #d3cec2;
  --agent: #5a48e0;
  --agent-soft: #ece9ff;
  --after: #1f8a5b;
  --after-soft: #e2f3ea;
  --before: #d2662f;
  --before-soft: #fbe9de;
  --bench: #9b9ba6;
  --expert: #3d5a8c;
  --obs: #2d5bb8; --obs-soft: #e7eefc;
  --con: #8a3aa8; --con-soft: #f6e8fb;
  --rob: #b4531c; --rob-soft: #fdeee2;
  --code-bg: #17161f; --code-ink: #e6e4f2; --code-dim: #8c89a6;
  --code-add: rgba(46, 160, 98, .22); --code-del: rgba(220, 90, 70, .22);
  --code-add-ink: #7ee2a8; --code-del-ink: #ff9d8a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 22, 28, .05), 0 8px 28px rgba(22, 22, 28, .06);
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, video { max-width: 100%; display: block; }
a { color: var(--agent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--agent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .82); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 56px; }
.brand { font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-size: 15px; white-space: nowrap; }
.brand b { color: var(--agent); }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0 0 0 auto; min-width: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li a { display: block; padding: 6px 11px; border-radius: 999px; color: var(--ink2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav li a:hover { background: var(--bg2); text-decoration: none; color: var(--ink); }
.nav li a.active { color: var(--agent); background: var(--agent-soft); }

/* ---------- hero ---------- */
.hero { padding-top: 84px; padding-bottom: 36px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--agent);
  background: var(--agent-soft); padding: 6px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--agent); box-shadow: 0 0 0 4px rgba(90, 72, 224, .18); }
h1.title {
  font-size: clamp(2.5rem, 6.6vw, 5.4rem); line-height: 1.0; letter-spacing: -.045em;
  font-weight: 800; margin: 26px auto 22px; max-width: 13ch; text-wrap: balance;
}
h1.title .agent {
  color: var(--agent);
  background: linear-gradient(100deg, #6b4ff0 0%, #4b3fd6 55%, #7a5cf5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink2); max-width: 680px; margin: 0 auto; text-wrap: balance; }
.authors { margin: 30px auto 4px; font-size: 18px; font-weight: 600; }
.authors .todo-note { display: block; font-weight: 400; font-size: 13px; color: var(--ink3); margin-top: 4px; }
.affil { color: var(--ink3); font-size: 15px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; transition: transform .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: #2b2b35; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--ink3); }
.btn svg { width: 17px; height: 17px; }
.btn .soon { font-size: 11px; font-weight: 600; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- teaser ---------- */
.teaser { padding-top: 18px; padding-bottom: 10px; }
.video-frame {
  position: relative; border-radius: 22px; overflow: hidden; background: #eae7df;
  box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 30px 60px -20px rgba(40, 30, 90, .25);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.play-toggle {
  position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(22, 22, 28, .62); color: #fff; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s;
}
.video-frame:hover .play-toggle, .play-toggle:focus-visible, .video-frame.paused .play-toggle { opacity: 1; }
.play-toggle svg { width: 18px; height: 18px; }
.caption { color: var(--ink2); font-size: 14px; margin-top: 12px; text-align: center; }

/* ---------- sections ---------- */
section.block { padding-top: 92px; padding-bottom: 20px; scroll-margin-top: 56px; }
.sec-head { margin-bottom: 34px; }
.sec-num { font-family: var(--mono); font-size: 13px; color: var(--agent); font-weight: 600; letter-spacing: .04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.1; letter-spacing: -.035em; margin: 8px 0 12px; font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.25; }
.lede { font-size: 1.12rem; color: var(--ink2); max-width: 760px; margin: 0; }
.hl-agent { color: var(--agent); font-weight: 700; }
.hl-after { color: var(--after); font-weight: 700; }
.hl-before { color: var(--before); font-weight: 700; }

/* ---------- TL;DR + counters ---------- */
.tldr { padding-top: 64px; }
.tldr-text {
  font-size: clamp(1.35rem, 2.8vw, 2.05rem); line-height: 1.3; letter-spacing: -.025em; font-weight: 600;
  max-width: 920px; margin: 0 auto; text-align: center; text-wrap: balance;
}
.tldr-text .k { font-weight: 800; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 44px 0 0; }
.counter {
  background: var(--surface); border-radius: var(--radius); padding: 22px 20px 20px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.counter::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--ink3)); }
.counter .val { font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.counter .val small { font-size: .45em; font-weight: 700; margin-left: 2px; }
.counter .lab { font-weight: 700; margin-top: 10px; font-size: 15px; }
.counter .sub { color: var(--ink3); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.counter.hero-c { background: linear-gradient(160deg, #ffffff 0%, #f0faf4 100%); box-shadow: 0 0 0 2px var(--after), var(--shadow); }
.scale { margin: 26px 4px 0; position: relative; height: 54px; }
.scale .rail { position: absolute; left: 0; right: 0; top: 22px; height: 6px; border-radius: 6px; background: var(--bg2); }
.scale .fill { position: absolute; top: 22px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--before), var(--after)); left: 43.0%; width: 0; transition: width 1.6s cubic-bezier(.2,.8,.2,1) .2s; }
.in .scale .fill { width: calc(98.4% - 43.0%); }
.scale .mk { position: absolute; top: 15px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; border: 3px solid var(--bg); background: var(--c); }
.scale .mk.ring { background: var(--bg); border: 3px solid var(--bench); width: 14px; height: 14px; margin-left: -7px; top: 18px; }
.scale .tick { position: absolute; top: 40px; font-size: 12px; color: var(--ink3); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 30px; color: var(--ink2); font-size: 15px; }
.facts b { color: var(--ink); font-size: 1.25em; font-weight: 800; letter-spacing: -.02em; margin-right: 4px; }

/* ---------- figures ---------- */
figure { margin: 0; }
.fig { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.fig img { width: 100%; height: auto; border-radius: 6px; cursor: zoom-in; }
.fig figcaption { color: var(--ink2); font-size: 14.5px; margin-top: 12px; line-height: 1.5; }
.fig figcaption b { color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.r45 { grid-template-columns: 5fr 4fr; }
.stack > * + * { margin-top: 28px; }
.callout { border-left: 3px solid var(--agent); padding: 4px 0 4px 18px; color: var(--ink2); }
.callout p { margin: 0 0 10px; }

/* ---------- tabs / segmented ---------- */
.seg { display: inline-flex; background: var(--bg2); padding: 4px; border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.seg button {
  font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--ink2);
  padding: 8px 15px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg button .pill { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--before); margin-left: 6px; }

/* ---------- dumbbell results ---------- */
.res-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); display: inline-block; }
.lg-ring { width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--bench); display: inline-block; }
.lg-tick { width: 3px; height: 14px; background: var(--expert); display: inline-block; border-radius: 2px; opacity: .55; }
.board { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 22px 14px; }
.board-note { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--ink3); padding: 12px 0 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.prov { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--before); background: var(--before-soft); padding: 2px 8px; border-radius: 999px; }
.axis-row, .db-row { display: grid; grid-template-columns: 64px minmax(150px, 230px) 1fr 108px; gap: 16px; align-items: center; }
.axis-row { padding: 10px 0 2px; font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.axis { position: relative; height: 16px; }
.axis span { position: absolute; transform: translateX(-50%); }
.axis span:first-child { transform: none; }
.axis span:last-child { transform: translateX(-100%); }
.db-row { padding: 9px 0; border-top: 1px solid var(--line); position: relative; }
.db-row:first-of-type { border-top: 0; }
.db-row:hover { background: linear-gradient(90deg, transparent, rgba(90,72,224,.035), transparent); }
.db-row .thumb { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--bg2); }
.db-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.db-meta { font-size: 12.5px; color: var(--ink3); line-height: 1.35; margin-top: 2px; }
.track { position: relative; height: 34px; }
.track .grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.track .base { position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--bg2); border-radius: 2px; }
.track .bar {
  position: absolute; top: 14px; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(210,102,47,.6), var(--after));
  left: var(--from); width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1) var(--d, 0s);
}
.track .bar.neg { background: linear-gradient(90deg, var(--after), rgba(210,102,47,.55)); }
.track .p {
  position: absolute; top: 8px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  border: 2.5px solid var(--surface); background: var(--c); box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.track .p.ini { --c: var(--before); left: var(--from); }
.track .p.fin { --c: var(--after); left: var(--from); transition: left 1.1s cubic-bezier(.2,.8,.2,1) var(--d, 0s); z-index: 2; width: 20px; height: 20px; margin-left: -10px; top: 7px; }
.track .p.ie { background: var(--surface); border: 2.5px solid var(--bench); width: 12px; height: 12px; margin-left: -6px; top: 11px; box-shadow: none; z-index: 1; }
.track .ex { position: absolute; top: 4px; width: 3px; height: 26px; margin-left: -1.5px; border-radius: 2px; background: var(--expert); opacity: .38; }
.board.in .track .bar { width: calc(var(--to) - var(--from)); }
.board.in .track .bar.neg { left: var(--to); width: calc(var(--from) - var(--to)); }
.board.in .track .p.fin { left: var(--to); }
.db-vals { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.15; }
.db-vals .fin { font-size: 22px; font-weight: 800; color: var(--after); letter-spacing: -.03em; }
.db-vals .fin small { font-size: 12px; }
.db-vals .from { font-size: 12.5px; color: var(--ink3); }
.db-vals .from b { color: var(--before); font-weight: 700; }
.db-row.mean { border-top: 2px solid var(--line2); margin-top: 4px; }
.db-row.mean .db-name { font-size: 16px; }
.tip {
  position: fixed; z-index: 80; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px;
  padding: 10px 13px; font-size: 13px; line-height: 1.5; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transition: opacity .12s;
  min-width: 210px; font-variant-numeric: tabular-nums;
}
.tip.on { opacity: 1; }
.tip .t { font-weight: 700; margin-bottom: 4px; }
.tip .r { display: flex; justify-content: space-between; gap: 18px; }
.tip i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.res-foot { font-size: 13px; color: var(--ink3); margin-top: 12px; }

/* rollout wall */
.wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.wall figure { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg2); aspect-ratio: 4 / 3; }
.wall video { width: 100%; height: 100%; object-fit: cover; }
.wall figcaption {
  position: absolute; left: 8px; bottom: 8px; font-size: 11.5px; font-weight: 600; color: #fff;
  background: rgba(22,22,28,.62); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}
.wall-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 54px; }
.wall-head h3 { margin: 0; }
.wall-head p { margin: 0; font-size: 13px; color: var(--ink3); }

/* ---------- fixes explorer ---------- */
.task-cards { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin-bottom: 22px; }
.task-card {
  font: inherit; text-align: left; border: 0; padding: 0; cursor: pointer; background: var(--surface);
  border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s;
}
.task-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.task-card span { display: block; padding: 7px 9px 8px; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.task-card span em { display: block; font-style: normal; font-weight: 500; color: var(--ink3); font-size: 11px; margin-top: 2px; }
.task-card:hover { transform: translateY(-2px); }
.task-card[aria-selected="true"] { box-shadow: 0 0 0 2.5px var(--agent), 0 8px 20px rgba(90,72,224,.18); }
.explorer { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; }
.ex-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.ex-head h3 { font-size: 1.6rem; letter-spacing: -.03em; margin: 2px 0 4px; }
.ex-meta { font-size: 13.5px; color: var(--ink3); }
.ex-sum { color: var(--ink2); margin: 6px 0 0; max-width: 640px; }
.ex-score { text-align: right; font-variant-numeric: tabular-nums; }
.ex-score .big { font-size: 3.2rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; transition: color .3s; }
.ex-score .small { font-size: 12.5px; color: var(--ink3); }
.progress { margin: 22px 0 6px; height: 12px; background: var(--bg2); border-radius: 999px; position: relative; overflow: hidden; }
.progress .pf { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--before), #8b9a3b 45%, var(--after)); width: 0; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.progress-lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink3); }
.ex-body { display: grid; grid-template-columns: 300px 1fr; gap: 28px; margin-top: 22px; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; align-self: start; }
.steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--line); }
.steps li { position: relative; }
.steps button {
  font: inherit; display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; width: 100%;
  text-align: left; border: 0; background: transparent; padding: 8px 8px 8px 0; cursor: pointer; border-radius: 10px; color: var(--ink2);
}
.steps button:hover { background: var(--bg); }
.steps .n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--surface); box-shadow: inset 0 0 0 2px var(--line2); position: relative; z-index: 1; color: var(--ink3);
}
.steps .st { font-size: 14px; font-weight: 600; line-height: 1.3; }
.steps .sv { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink3); }
.steps li.done .n { background: var(--agent); color: #fff; box-shadow: none; }
.steps li.done.first .n { background: var(--before); }
.steps li.cur button { background: var(--agent-soft); color: var(--ink); }
.steps li.cur .sv { color: var(--ink); }
.detail { min-width: 0; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 999px; background: var(--bg2); color: var(--ink2);
}
.tag.observability { background: #e7eefc; color: #2d5bb8; }
.tag.consistency { background: #f6e8fb; color: #8a3aa8; }
.tag.robustness { background: #fdeee2; color: #b4531c; }
.tag.recipe { background: #e9f4ee; color: #1f7a50; }
.tag.start { background: var(--before-soft); color: var(--before); }
.detail h4 { font-size: 1.35rem; letter-spacing: -.025em; margin: 10px 0 6px; line-height: 1.2; }
.detail p.what { margin: 0; color: var(--ink2); font-size: 16px; }
.detail .res { margin-top: 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.detail .res b { font-size: 1.6rem; letter-spacing: -.03em; }
.detail .res span { font-size: 13px; color: var(--ink3); }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 300px)); gap: 12px; margin-top: 16px; }
.media figure { background: var(--bg); border-radius: 12px; overflow: hidden; }
.media video, .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #e9e6de; }
.media img { cursor: zoom-in; }
.media figcaption { font-size: 12.5px; color: var(--ink2); padding: 8px 10px 10px; line-height: 1.4; }
.media figcaption .k { font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; margin-right: 5px; }
.media figcaption .k.before { color: var(--before); }
.media figcaption .k.after { color: var(--after); }
.media figcaption .k.demo { color: var(--agent); }
.nomedia { margin-top: 16px; font-size: 13px; color: var(--ink3); border: 1px dashed var(--line2); border-radius: 12px; padding: 14px; }
.spark { margin-top: 18px; width: 100%; height: 110px; display: block; overflow: visible; }
.nav-steps { display: flex; gap: 8px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.nav-steps button {
  font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer;
  background: var(--ink); color: #fff;
}
.nav-steps button.sec { background: var(--bg2); color: var(--ink); }
.nav-steps button:disabled { opacity: .35; cursor: default; }
.nav-steps .hint { font-size: 12px; color: var(--ink3); margin-left: auto; }
.recipe-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); align-items: center; }
.recipe-row .rl { font-size: 12.5px; color: var(--ink3); font-weight: 600; margin-right: 4px; }
.chip { font-size: 12.5px; background: var(--bg); border-radius: 999px; padding: 4px 11px; color: var(--ink2); }
.chip b { color: var(--ink); }
.extra-fig { margin-top: 22px; }

/* ---------- abstract / method ---------- */
.abstract p { font-size: 1.08rem; color: var(--ink2); margin: 0; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; counter-reset: s; }
.step4 { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative; }
.step4 .num { width: 30px; height: 30px; border-radius: 50%; background: var(--agent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.step4 h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.step4 p { margin: 0; font-size: 14px; color: var(--ink2); line-height: 1.5; }
.step4 .tools { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.step4 .tools span { font-size: 11.5px; background: var(--bg); padding: 2px 8px; border-radius: 999px; color: var(--ink2); }
.step4 .tools span.key { background: var(--agent-soft); color: var(--agent); font-weight: 700; }
.fixed-bar { margin-top: 14px; background: var(--bg2); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--ink2); }
.fixed-bar b { color: var(--ink); }

.matrix-wrap { max-width: 100%; overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin-top: 22px; }
table.matrix { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 760px; }
table.matrix th, table.matrix td { position: relative; padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--line); }
table.matrix th { font-weight: 600; color: var(--ink2); font-size: 12px; vertical-align: bottom; line-height: 1.25; }
table.matrix th.grp { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; border-bottom: 2px solid var(--gc); color: var(--gc); }
table.matrix td:first-child, table.matrix th:first-child { text-align: left; font-weight: 600; white-space: nowrap; }
table.matrix tr:last-child td { border-bottom: 0; font-weight: 700; }
table.matrix .ck { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--gc); position: relative; }
table.matrix .ck::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
table.matrix tbody tr:hover td { background: var(--bg); }
table.recipes { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.recipes th, table.recipes td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
table.recipes th:first-child, table.recipes td:first-child { text-align: left; }
table.recipes th { font-size: 12px; color: var(--ink3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- data / bibtex ---------- */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.res-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: block; color: var(--ink); }
.res-card:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--agent), var(--shadow); }
.res-card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--agent-soft); color: var(--agent); display: grid; place-items: center; }
.res-card .ic svg { width: 22px; height: 22px; }
.res-card h3 { margin: 12px 0 4px; font-size: 1.1rem; }
.res-card p { margin: 0; font-size: 14px; color: var(--ink2); }
.soon-tag { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 18px; }
table.dl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.dl th, table.dl td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; }
table.dl tr:last-child td { border-bottom: 0; }
table.dl th { font-size: 12px; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
table.dl td.t { font-weight: 600; }
table.dl td.t span { display: block; font-weight: 400; color: var(--ink3); font-size: 12.5px; }
table.dl a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; }
table.dl a.todo { color: var(--ink3); }
pre.bib {
  background: #16161c; color: #e7e5f5; border-radius: var(--radius); padding: 22px 24px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6; margin: 0;
}
.bib-wrap { position: relative; }
.copy {
  position: absolute; top: 12px; right: 12px; font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: 999px;
  padding: 7px 14px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
}
.copy:hover { background: rgba(255,255,255,.22); }
footer { padding: 70px 0 60px; color: var(--ink3); font-size: 13.5px; text-align: center; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(16,16,22,.88); display: none; align-items: center; justify-content: center; padding: 28px; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }

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

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .task-cards { grid-template-columns: repeat(5, 1fr); }
  .steps4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .split, .split.r45 { grid-template-columns: 1fr; gap: 24px; }
  .res-grid { grid-template-columns: 1fr; }
  .ex-body { grid-template-columns: 1fr; }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .axis-row, .db-row { grid-template-columns: 52px 1fr 92px; }
  .axis-row > :nth-child(1), .axis-row > :nth-child(2) { display: none; }
  .axis-row { grid-template-columns: 1fr; }
  .db-row .thumb { width: 52px; height: 40px; grid-row: span 2; }
  .db-row .track { grid-column: 2 / 4; grid-row: 2; }
  .db-row .db-vals { grid-column: 3; grid-row: 1; }
  .axis-row { padding-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 54px; }
  .nav .brand { display: none; }
  .nav ul { margin-left: 0; }
  .btn { padding: 10px 15px; font-size: 14px; }
  .counter { padding: 16px 14px; }
  .task-cards { grid-template-columns: repeat(3, 1fr); }
  .explorer { padding: 18px 16px; border-radius: 18px; }
  .ex-head { grid-template-columns: 1fr; }
  .ex-score { text-align: left; }
  .board { padding: 4px 12px 10px; }
  .wall { grid-template-columns: repeat(2, 1fr); }
  .steps4 { grid-template-columns: 1fr; }
  section.block { padding-top: 70px; }
  .fig { padding: 10px; }
  .video-frame { border-radius: 14px; }
  .nav-steps .hint { display: none; }
  .media { grid-template-columns: 1fr 1fr; }
  .db-vals .fin { font-size: 18px; }
}

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

/* overview intro spans the full column (user 11-18) */
#overview .lede { max-width: none; text-wrap: pretty; }

/* =====================================================================
   Redesign 11-18: headline meter, gap (problem -> evidence -> fix),
   findings stages, explorer before/after + code diffs
   ===================================================================== */

/* ---- headline meter ---- */
.meter { --p: 98.0; --k: 1; max-width: 940px; margin: 34px auto 0; padding: 0 2px; }
.m-rider {
  position: relative; left: calc(var(--p) * 1%); transform: translateX(calc(var(--p) * -1%));
  display: inline-flex; align-items: flex-start; gap: 2px; white-space: nowrap;
  font-weight: 800; letter-spacing: -.055em; line-height: .9; font-variant-numeric: tabular-nums;
  color: var(--mc, var(--after)); padding-bottom: 14px;
}
.m-num { font-size: clamp(4.4rem, 15vw, 9.5rem); }
.m-pct { font-size: clamp(1.8rem, 5.5vw, 3.6rem); margin-top: .18em; }
.m-delta {
  align-self: center; margin-left: 14px; font-size: clamp(.8rem, 1.8vw, 1rem); letter-spacing: 0; font-weight: 700;
  color: var(--after); background: var(--after-soft); padding: 6px 12px; border-radius: 999px;
  opacity: var(--done, 1); transform: translateY(calc((1 - var(--done, 1)) * 6px)); transition: opacity .5s, transform .5s;
}
.m-track { position: relative; height: 26px; border-radius: 999px; background: var(--bg2); box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.m-grid { position: absolute; top: 5px; bottom: 5px; width: 2px; margin-left: -1px; background: rgba(0,0,0,.07); border-radius: 2px; }
.m-a { position: absolute; left: 0; top: 0; bottom: 0; width: calc(min(var(--p), 34.5) * 1%); background: var(--before); border-radius: 999px 0 0 999px; }
.m-b {
  position: absolute; left: 34.5%; top: 0; bottom: 0; width: 63.5%; border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--before), #c08a3a 22%, var(--after) 70%, #22a06b);
  clip-path: inset(0 calc((1 - var(--k)) * 100%) 0 0);
  overflow: hidden;
}
.m-b::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  background-size: 220% 100%; animation: m-shine 3.6s ease-in-out 3.2s infinite;
}
@keyframes m-shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.m-notch { position: absolute; left: 34.5%; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--surface); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.m-head {
  position: absolute; left: calc(var(--p) * 1%); top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: var(--surface); border: 6px solid var(--mc, var(--after)); box-shadow: 0 0 0 calc(var(--done, 1) * 10px) rgba(31,138,91,.14), 0 4px 14px rgba(0,0,0,.18);
  transition: box-shadow .6s;
}
.m-labels { position: relative; height: 54px; margin-top: 14px; }
.m-lab { position: absolute; top: 0; line-height: 1.15; font-variant-numeric: tabular-nums; }
.m-lab b { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.m-lab span { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.m-lab-b { left: 34.5%; transform: translateX(-50%); text-align: center; color: var(--before); }
.m-lab-a { right: 1.6%; text-align: right; color: var(--after); opacity: var(--done, 1); transition: opacity .5s; }
.m-foot { text-align: center; font-size: 14px; font-weight: 500; color: var(--ink2); margin: 10px 0 0; }

/* ---- shared kicker labels (problem / evidence / fix) ---- */
.kick { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.kick.prob { color: var(--before); background: var(--before-soft); }
.kick.fix { color: var(--after); background: var(--after-soft); }
.kick.ev { color: var(--agent); background: var(--agent-soft); }
.kick.why { color: var(--ink2); background: var(--bg2); }
.hl-expert { color: var(--expert); font-weight: 800; }

/* ---- gap: problem -> evidence -> fix ---- */
.pef-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.pef-col { display: grid; gap: 14px; align-content: start; }
.pef-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; position: relative; }
.pef-card p { margin: 10px 0 0; color: var(--ink2); font-size: 15.5px; line-height: 1.5; }
.pef-card p.pef-big { color: var(--ink); font-size: 1.45rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.pef-card + .pef-card::before {
  content: ""; position: absolute; left: 34px; top: -14px; width: 2px; height: 14px; background: var(--line2);
}
.pef-fig { display: flex; flex-direction: column; }
.pef-fig .kick { align-self: flex-start; margin-bottom: 12px; }
.pef-fig img { flex: 1; object-fit: contain; }

/* ---- method fixed bar ---- */
.fixed-bar { display: grid; gap: 6px; }
.fixed-bar b.can, .fixed-bar b.cant { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-right: 8px; }
.fixed-bar b.can { color: var(--agent); background: var(--agent-soft); }
.fixed-bar b.cant { color: var(--ink2); background: var(--surface); }

/* ---- findings stages ---- */
.stage-nav { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.stage-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 650; font-size: 14px; }
.stage-nav a:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--agent); }
.stage-nav a span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--agent); color: #fff; font-size: 12px; }
.stage { padding-top: 46px; scroll-margin-top: 64px; }
.stage-head { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; margin-bottom: 20px; }
.stage-n { width: 44px; height: 44px; border-radius: 14px; background: var(--agent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.stage-head h3 { font-size: 1.5rem; letter-spacing: -.03em; margin: 2px 0 4px; }
.stage-head p { margin: 0; color: var(--ink2); max-width: 760px; }
.split.r54 { grid-template-columns: 5fr 4fr; align-items: start; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; border-top: 3px solid var(--agent); }
.cmp h4 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.01em; }
.cmp p { margin: 0; font-size: 14.5px; color: var(--ink2); line-height: 1.5; }
.cmp p b { color: var(--ink); }

.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prop { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--pc); }
.prop header { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.prop .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pc-soft); color: var(--pc); }
.prop .icon svg { width: 24px; height: 24px; }
.prop h4 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; color: var(--pc); }
.prop .q { margin: 2px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.35; }
.pef-row { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: baseline; }
.pef-row .kick { text-align: center; }
.pef-row p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.prop .ev { margin-top: auto; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.prop .ev .kick { font-size: 10px; padding: 2px 7px; }
.ev-t { font-size: 13px; font-weight: 600; color: var(--ink2); margin-top: 6px; }
.ba { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ba .b, .nw-v .b { color: var(--before); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; }
.ba .a, .nw-v .a { color: var(--after); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; }
.ba .arrow, .nw-v .arrow, .nw-v .eq { color: var(--ink3); font-weight: 700; }
.prop footer { font-size: 13px; color: var(--ink2); border-top: 1px solid var(--line); padding-top: 10px; }
.prop footer b { color: var(--pc); }

.more-fig { margin-top: 16px; }
.more-fig > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14.5px;
  color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); padding: 8px 16px; border-radius: 999px;
}
.more-fig > summary::-webkit-details-marker { display: none; }
.more-fig > summary::after { content: "+"; font-weight: 800; color: var(--agent); }
.more-fig[open] > summary::after { content: "−"; }
.more-fig > :not(summary) { margin-top: 14px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.tile .tv { font-size: 2.4rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--agent); font-variant-numeric: tabular-nums; }
.tile .tv small { font-size: .42em; letter-spacing: 0; color: var(--ink2); font-weight: 700; }
.tile .tl { font-weight: 700; margin-top: 8px; font-size: 15px; }
.tile p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink2); line-height: 1.45; }
.nw-head { margin-top: 40px; font-size: 1.25rem; }
.notwork { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.nw { border-radius: 14px; padding: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nw > b { display: block; color: var(--ink); font-size: 15px; }
.nw-v { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 4px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.nw-v .b, .nw-v .a { font-size: 1.35rem; }
.nw-v .b { color: var(--ink2); }
.nw-v .a.bad { color: var(--before); }
.nw-v small { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.nw p { margin: 0; font-size: 13.5px; color: var(--ink2); line-height: 1.45; }

/* ---- explorer: before/after pair + code diff ---- */
.ba-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 18px; }
.ba-pair figure { position: relative; border-radius: 14px; overflow: hidden; background: #1c1b22; aspect-ratio: 4 / 3; }
.ba-pair video, .ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.ba-pair figcaption {
  position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.ba-pair figcaption .k { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; text-shadow: none; }
.ba-pair figcaption .k.before { background: var(--before); }
.ba-pair figcaption .k.after { background: var(--after); }
.ba-pair figcaption .pct { margin-left: auto; font-size: 15px; font-weight: 800; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 8px; }
.ba-arrow { color: var(--ink3); font-size: 22px; font-weight: 800; }
.ba-what { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--ink2); }
.ba-what span:nth-child(2) { visibility: hidden; font-size: 22px; line-height: 0; }

.diff { margin-top: 14px; border-radius: 12px; overflow: hidden; background: var(--code-bg); box-shadow: 0 6px 18px rgba(20, 16, 40, .18); }
.diff-h { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-family: var(--mono); font-size: 12px; color: var(--code-dim); border-bottom: 1px solid rgba(255,255,255,.07); }
.diff-h .dots { display: inline-flex; gap: 5px; margin-right: 4px; }
.diff-h .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.diff-h .fn { color: var(--code-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff pre { margin: 0; padding: 8px 0; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--code-ink); }
.diff .ln { display: block; padding: 0 14px 0 8px; white-space: pre; min-width: max-content; }
.diff .ln::before { content: attr(data-s); display: inline-block; width: 16px; color: var(--code-dim); user-select: none; }
.diff .ln.add { background: var(--code-add); }
.diff .ln.add::before { color: var(--code-add-ink); }
.diff .ln.del { background: var(--code-del); }
.diff .ln.del::before { color: var(--code-del-ink); }
.diff .ln.gap { color: var(--code-dim); }
.diff .tk-k { color: #c9a2ff; }
.diff .tk-s { color: #f2c78a; }
.diff .tk-n { color: #7fd1ff; }
.diff .tk-c { color: var(--code-dim); font-style: italic; }
.diff .tk-f { color: #8be0c9; }
.diff-cap { font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.nodiff { margin-top: 14px; font-size: 13px; color: var(--ink2); border: 1px dashed var(--line2); border-radius: 12px; padding: 12px 14px; }

@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .notwork { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pef-grid { grid-template-columns: 1fr; }
  .props { grid-template-columns: 1fr; }
  .split.r54 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .m-labels { height: 50px; }
  .m-lab b { font-size: 1.05rem; }
  .m-lab span { font-size: 12px; }
  .m-delta { margin-left: 8px; padding: 4px 9px; }
  .m-head { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-width: 5px; }
  .m-track { height: 20px; }
  .cmp-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { padding: 14px; }
  .tile .tv { font-size: 2rem; }
  .notwork { grid-template-columns: 1fr; }
  .pef-row { grid-template-columns: 1fr; gap: 4px; }
  .pef-row .kick { justify-self: start; }
  .ba-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ba-arrow { display: none; }
  .ba-what { grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; }
  .ba-what span:nth-child(2) { display: none; }
  .diff pre { font-size: 11.5px; }
  .stage-head { grid-template-columns: 36px 1fr; }
  .stage-n { width: 36px; height: 36px; font-size: 16px; border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .m-b::after { display: none; }
}

/* explorer layout v2 */
.ex-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 26px; align-items: center; }
.ex-top .ex-head { display: block; }
.ex-top .ba-pair { margin-top: 0; }
.nomedia-f { display: grid; place-items: center; }
.nomedia-f figcaption { position: static; color: #bbb; text-shadow: none; }
.det-top { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.det-top .ex-score .big { font-size: 2.5rem; }
.detail p.what { margin-top: 8px; }
.steps-note { font-size: 12px; color: var(--ink2); padding: 6px 0 0 42px; }
.steps .sv { color: var(--ink2); }
.spark-lab { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink2); margin-top: -16px; align-items: center; }
.spark-lab i { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 8px; vertical-align: 0; }
.spark-lab .sk-dev { border-radius: 50%; background: var(--after); }
.spark-lab .sk-test { transform: rotate(45deg); background: var(--expert); }
@media (max-width: 860px) {
  .ex-top { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .det-top { grid-template-columns: 1fr; }
  .det-top .ex-score { text-align: left; }
  .steps-note { padding-left: 0; }
}
.prop footer { padding: 10px 0 0; text-align: left; font-size: 13px; }
.split.r54 { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 28px; }
.cmp-grid { grid-template-columns: 1fr; }
.cmp { border-top: 0; border-left: 3px solid var(--agent); }
.cmp-quote { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; color: var(--agent); padding: 14px 4px 0; }
@media (max-width: 860px) { .split.r54 { grid-template-columns: 1fr; } }
.nomedia-f { background: linear-gradient(160deg, var(--after-soft), var(--surface)) !important; box-shadow: inset 0 0 0 1px var(--line); }
.nomedia-f > div { display: grid; justify-items: center; gap: 2px; padding: 10px; text-align: center; }
.nomedia-f > div b { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--after); letter-spacing: -.04em; line-height: 1; }
.nomedia-f > div span { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.nomedia-f > div em { font-size: 11.5px; font-style: normal; color: var(--ink2); margin-top: 4px; }
.nomedia-f figcaption { position: absolute; left: 8px; top: 8px; bottom: auto; }
.ba-pair figcaption .spd { font-size: 10.5px; font-weight: 700; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 6px; }
.ba-what em.mnote { font-style: normal; color: var(--ink3); }
@media (max-width: 560px) { .progress-lab span:nth-child(2) { display: none; } }

/* large improvement curve in the explorer (kept from simplify pass) */
.path-wrap { margin-top: 26px; background: var(--bg); border-radius: 16px; padding: 16px 16px 6px; }
.path-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 4px 4px; }
.path-chart { width: 100%; height: auto; display: block; overflow: visible; }
.pc-grid { stroke: var(--line2); stroke-width: 1; }
.pc-grid.strong { stroke: var(--ink3); stroke-width: 1.4; }
.pc-y { font: 600 15px var(--font); fill: var(--ink2); text-anchor: end; }
.pc-x { font: 700 15px var(--font); fill: var(--ink2); text-anchor: middle; }
.pc-x.cur { fill: var(--agent); }
.pc-area { fill: var(--after); opacity: .12; }
.pc-line { fill: none; stroke: var(--after); stroke-width: 4.5; stroke-linejoin: round; stroke-linecap: round; }
.pc-line-todo { fill: none; stroke: var(--line2); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.pc-pt { cursor: pointer; }
.pc-pt circle { stroke: var(--bg); stroke-width: 4; }
.pc-pt.cur circle { stroke: var(--surface); stroke-width: 5; filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); }
.pc-v { font: 800 20px var(--font); fill: var(--ink); text-anchor: middle; letter-spacing: -.02em; }
.pc-v.off { fill: var(--ink3); font-weight: 700; }
.pc-pt.cur .pc-v { font-size: 25px; }
@media (max-width: 560px) {
  .path-wrap { padding: 10px 6px 4px; margin-left: -4px; margin-right: -4px; }
  .pc-y, .pc-x { font-size: 15px; }
  .pc-v { font-size: 17px; }
  .pc-pt.cur .pc-v { font-size: 21px; }
  .path-title { font-size: 14px; }
  .nomedia-f > div em { display: none; }
  .nomedia-f > div span { font-size: 11.5px; }
  .nomedia-f > div b { font-size: 1.5rem; margin-top: 18px; }
}
/* plain text in place of kicker labels */
.pef-row { grid-template-columns: 1fr; gap: 0; }
.fixed-bar b { color: var(--ink); }

/* learnability gap: two big numbers + figure (user 11-18: simpler) */
.gap-fig { max-width: 760px; margin: 0 auto; }

/* section intros span the full column (user 11-18) */
.sec-head .lede { max-width: none; text-wrap: pretty; }

/* learnability gap, right column (user 11-18) */
.gapx { display: grid; gap: 14px; margin: 18px 0 18px; }
.gapx-row { display: grid; grid-template-columns: 12.6rem 1fr; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; background: var(--bg2); }
.gapx-v { font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; }
.gapx-l { font-size: 15px; font-weight: 600; color: var(--ink2); line-height: 1.35; min-width: 0; }
.gapx-note { font-size: 1.05rem; color: var(--ink); margin: 0 0 18px; font-weight: 600; }
.gapx-agent { margin: 0; padding: 16px 18px; border-left: 4px solid var(--agent); background: color-mix(in srgb, var(--agent) 8%, transparent); border-radius: 0 12px 12px 0; font-size: 1.02rem; color: var(--ink); }
@media (max-width: 560px) { .gapx-row { grid-template-columns: 1fr; gap: 6px; } }

.gapx-v .dash { margin: 0 .08em; }
@media (max-width: 560px) { .gapx-row { grid-template-columns: 1fr; } }

/* learnability gap visual (user 11-18: make it cool) */
.gapviz { position: relative; margin: 22px 0 26px; padding: 0 4px; }
.gv-labels { position: relative; height: 92px; }
.gv-lab { position: absolute; bottom: 8px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; white-space: nowrap; }
.gv-exp { transform: translateX(-88%); align-items: flex-end; text-align: right; }
.gv-num { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.gv-pol .gv-num { color: var(--before); } .gv-exp .gv-num { color: var(--expert); }
.gv-cap { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.gv-track { position: relative; height: 22px; border-radius: 11px; background: var(--bg2); overflow: visible; }
.gv-band { position: absolute; top: 0; bottom: 0; left: var(--l); width: 0; border-radius: 11px; transition: width 1.2s cubic-bezier(.2,.8,.2,1) .15s; }
.in .gv-band, .gapviz.in .gv-band { width: var(--w); }
.gv-band-pol { background: linear-gradient(90deg, color-mix(in srgb, var(--before) 55%, transparent), var(--before)); }
.gv-band-exp { background: var(--expert); min-width: 0; }
.in .gv-band-exp { width: max(var(--w), 12px); }
.gv-gap { position: absolute; top: -6px; bottom: -6px; left: var(--l); width: var(--w); border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 10px; opacity: 0; transition: opacity .6s ease 1.2s; display: flex; align-items: center; justify-content: center; }
.in .gv-gap { opacity: 1; }
.gv-gap span { position: absolute; top: calc(100% + 8px); font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.gv-axis { position: relative; height: 18px; margin-top: 30px; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.gv-axis span { position: absolute; transform: translateX(-50%); } .gv-axis span:first-child { transform: none; } .gv-axis span:last-child { transform: translateX(-100%); }
@media (prefers-reduced-motion: reduce) { .gv-band, .gv-gap { transition: none; } }
@media (max-width: 560px) { .gv-labels { height: 84px; } .gv-cap { font-size: 12px; } .gv-pol { transform: translateX(-60%); } }

/* learnability gap title (user 11-18) */
.gap-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 6px; font-weight: 800; text-wrap: balance; }
.gt-grad { background: linear-gradient(90deg, var(--expert), var(--before)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gt-gap { display: inline-flex; color: var(--before); }
.gt-gap span { display: inline-block; transition: margin .9s cubic-bezier(.2,.8,.2,1) .35s; }
.in .gt-gap span + span { margin-left: 0; }
.gt-gap { position: relative; }
.gt-gap::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .09em; border-radius: 1em; background: repeating-linear-gradient(90deg, var(--before) 0 .22em, transparent .22em .34em); opacity: 0; transition: opacity .6s ease 1s; }
.in .gt-gap::after { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .gt-gap span { transition: none; } .gt-gap::after { transition: none; } }

/* final recipes table, styled like the changes-per-setting matrix (user 11-18) */
table.recipe-table { min-width: 560px; }
table.recipe-table .rc { display: inline-block; min-width: 3.2em; padding: 3px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; color: var(--ink3); }
table.recipe-table .rc.on { background: var(--after-soft); color: var(--after); font-weight: 700; }
.rt-note { margin: 10px 2px 0; font-size: 14px; color: var(--ink2); }

/* larger, cleaner table headers (user 11-18) */
table.matrix thead th { font-size: 14px; font-weight: 700; color: var(--ink); padding-top: 10px; padding-bottom: 10px; }
table.matrix th.grp { font-size: 15px; font-weight: 800; letter-spacing: .01em; text-transform: none; color: var(--gc); border-bottom: 3px solid var(--gc); padding-bottom: 8px; }
table.matrix th:first-child { font-size: 14px; }
table.matrix td { font-size: 14px; }

/* plainer table headers (user 11-18: less "AI-designed") */
table.matrix th.grp { color: var(--ink); border-bottom: 1px solid var(--ink); font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; }
table.matrix thead th { color: var(--ink); font-size: 15px; font-weight: 600; }
table.matrix thead tr:last-child th { border-bottom: 1px solid var(--ink); }

/* table headers: all th (matrix rows are built by JS without thead) */
table.matrix th { color: var(--ink); font-size: 15px; font-weight: 600; }
table.matrix th.grp { font-size: 16px; font-weight: 700; border-bottom: 1px solid var(--ink); color: var(--ink); }
/* stage titles: plain numbered headings instead of colored badges (user 11-18) */
.stage-head { align-items: baseline; }
.stage-n { background: none !important; color: var(--ink3) !important; box-shadow: none !important; width: auto !important; height: auto !important; border-radius: 0 !important; font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important; font-weight: 800; padding: 0 !important; margin-right: 4px; }
.stage-n::after { content: "."; }
.stage-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.025em; }

/* ===== one-screen explorer (11-18): picker + 2 columns sized to the viewport ===== */
#fixes .task-cards { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
#fixes .task-card { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 12px; min-width: 0; }
#fixes .task-card img { width: 38px; height: 30px; aspect-ratio: auto; border-radius: 7px; flex: none; }
#fixes .task-card span { padding: 0; font-size: 12.5px; line-height: 1.15; white-space: normal; max-width: 9.5em; }
#fixes .task-card span em { display: none; }
#fixes .task-card:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line2); }
#fixes .task-card[aria-selected="true"] { box-shadow: 0 0 0 2px var(--agent); background: var(--agent-soft); }

#fixes .explorer {
  --exh: clamp(520px, calc(100vh - 56px - 64px), 820px);
  height: var(--exh); display: flex; flex-direction: column; padding: 16px 20px; gap: 10px; overflow: hidden;
}
.ex-hd { display: flex; align-items: baseline; gap: 14px; min-width: 0; flex: none; }
.ex-hd h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; white-space: nowrap; }
.ex-hd .ex-sum { margin: 0; font-size: 14.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ex-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 20px; }
.ex-left { display: flex; flex-direction: column; min-height: 0; gap: 6px; }
.ex-left .ba-pair { margin: 0; grid-template-columns: 1fr auto 1fr; gap: 8px; flex: none; }
.ex-left .ba-pair figure { aspect-ratio: auto; height: clamp(110px, calc(var(--exh) * .30), 230px); }
.ex-left .ba-arrow { font-size: 18px; }
.ex-left .ba-what { margin: 0; font-size: 12.5px; line-height: 1.35; grid-template-columns: 1fr auto 1fr; gap: 8px; flex: none; }
.ex-left .ba-what span:nth-child(2) { font-size: 18px; }
.ex-left .path-wrap { flex: 1; min-height: 190px; display: flex; flex-direction: column; margin: 4px 0 0; padding: 10px 10px 4px; }
.ex-left .path-title { font-size: 13.5px; margin: 0 0 2px 4px; flex: none; }
.path-box { flex: 1; min-height: 0; position: relative; }
.path-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.path-box .pc-y { font-size: 12.5px; }
.path-box .pc-x { font-size: 13px; }
.path-box .pc-v { font-size: 16px; }
.path-box .pc-pt.cur .pc-v { font-size: 20px; }
.pc-hit { fill: transparent; stroke: none !important; }
.ex-right { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
.ex-right .steps { margin-bottom: 10px; }
.ex-right .steps button { padding: 4px 8px 4px 0; }
.ex-right .steps .n { width: 26px; height: 26px; font-size: 12px; }
.ex-right .steps button { grid-template-columns: 26px 1fr auto; }
.ex-right .steps::before { left: 12px; }
.ex-right .steps .st { font-size: 13.5px; }
.ex-right .det-top h4 { font-size: 1.12rem; margin: 6px 0 2px; }
.ex-right .det-top .ex-score .big { font-size: 1.9rem; }
.ex-right .detail p.what { font-size: 14.5px; margin-top: 4px; line-height: 1.45; }
.ex-right .diff { margin-top: 10px; }
.ex-right .diff pre { font-size: 11.8px; line-height: 1.55; }
.ex-right .diff-cap { font-size: 12px; }
.ex-right .nav-steps { margin-top: 12px; }
.ex-right .nav-steps button { padding: 7px 14px; font-size: 13.5px; }
.ex-right .recipe-row { margin-top: 14px; padding-top: 12px; }
.ex-right .extra-fig { margin-top: 14px; }
.ex-right .detail { min-width: 0; }

@media (max-width: 860px) {
  #fixes .explorer { height: auto; overflow: visible; padding: 16px; }
  .ex-hd { display: block; }
  .ex-hd .ex-sum { white-space: normal; margin-top: 4px; }
  .ex-cols { grid-template-columns: 1fr; }
  .ex-left .ba-pair figure { height: auto; aspect-ratio: 4 / 3; }
  .ex-left .path-wrap { flex: none; height: 270px; }
  .ex-right { overflow: visible; padding-right: 0; }
}
@media (max-width: 560px) {
  #fixes .task-cards { flex-wrap: nowrap; }
  #fixes .task-card { flex: none; }
  .ex-left .ba-pair { grid-template-columns: 1fr 1fr; }
  .ex-left .ba-what { grid-template-columns: 1fr 1fr; }
  .ex-left .path-wrap { height: 250px; margin-left: 0; margin-right: 0; }
}
#fixes .task-cards { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); overflow: visible; }
#fixes .task-card { padding: 4px 6px 4px 4px; gap: 6px; }
#fixes .task-card img { width: 34px; height: 28px; }
#fixes .task-card span { font-size: 12px; max-width: none; }
.ex-hd .ex-sum { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 1100px) { #fixes .task-card img { display: none; } #fixes .task-card { justify-content: center; text-align: center; padding: 6px; } }
@media (max-width: 860px) { #fixes .task-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } #fixes .task-card img { display: block; } #fixes .task-card { justify-content: flex-start; text-align: left; } }
#fixes .explorer { --exh: clamp(500px, calc(100vh - 56px - 76px), 820px); } #fixes { scroll-margin-top: 0; }
#fixes .task-card img { width: 28px; height: 24px; } #fixes .task-card span { font-size: 11.8px; overflow-wrap: anywhere; } #fixes .task-card { gap: 5px; }
#fixes .task-card span { overflow-wrap: normal; hyphens: manual; }
@media (max-width: 860px) { .ex-cols { grid-template-columns: minmax(0, 1fr); } .ex-left, .ex-right { min-width: 0; } }
@media (max-width: 860px) { .ex-hd .ex-sum { display: block; -webkit-line-clamp: unset; } }

/* ===== v4 (11-18): larger picker, explorer = videos on top, steps | curve below ===== */
#fixes .task-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; overflow: visible; }
#fixes .task-card { flex: 1 1 calc(20% - 8px); min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); }
#fixes .task-card img { width: 50px; height: 40px; border-radius: 9px; display: block; flex: none; object-fit: cover; }
#fixes .task-card span { font-size: 15px; font-weight: 650; line-height: 1.2; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
#fixes .task-card:hover { box-shadow: inset 0 0 0 1.5px var(--ink3); }
#fixes .task-card[aria-selected="true"] { background: var(--agent); box-shadow: 0 4px 14px rgba(90,72,224,.3); }
#fixes .task-card[aria-selected="true"] span { color: #fff; }

#fixes .explorer { --exh: clamp(480px, calc(100vh - 56px - 132px), 800px); padding: 14px 18px; gap: 10px; }
.ex-hd { flex: none; }
.ex-hd h3 { font-size: 1.3rem; }
.ex-hd .ex-sum { font-size: 14px; -webkit-line-clamp: 1; }
.ba-row { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: clamp(130px, calc(var(--exh) * .34), 270px); }
.bac { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: stretch; background: var(--bg); border-radius: 14px; padding: 8px; min-height: 0; }
.bac-v { position: relative; height: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #1c1b22; }
.bac-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bac-v .spd { position: absolute; right: 6px; top: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.5); padding: 2px 6px; border-radius: 6px; }
.bac-none { position: absolute; inset: 0; display: grid; place-items: center; color: #bbb; font-size: 13px; font-weight: 600; }
.bac-i { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding-right: 4px; }
.bac-i .k { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 3px 9px; border-radius: 999px; }
.bac-i .k.before { background: var(--before); }
.bac-i .k.after { background: var(--after); }
.bac-p { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.bac.before .bac-p { color: var(--before); }
.bac.after .bac-p { color: var(--after); }
.bac-l { font-size: 13px; font-weight: 600; color: var(--ink); }
.bac-w { font-size: 13px; color: var(--ink2); line-height: 1.35; }
.bac-w .mnote { font-style: normal; color: var(--ink2); }
#fixes .ex-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
.ex-steps { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
.ex-steps .steps { margin-bottom: 8px; }
.ex-steps .steps button { padding: 3px 8px 3px 0; grid-template-columns: 26px 1fr auto; }
.ex-steps .steps .n { width: 26px; height: 26px; font-size: 12px; }
.ex-steps .steps::before { left: 12px; }
.ex-steps .steps .st { font-size: 14px; }
.ex-steps .det-top h4 { font-size: 1.1rem; margin: 6px 0 2px; }
.ex-steps .det-top .ex-score .big { font-size: 1.8rem; }
.ex-steps .detail p.what { font-size: 14px; margin-top: 4px; line-height: 1.45; }
.ex-steps .diff { margin-top: 8px; }
.ex-steps .diff pre { font-size: 11.8px; line-height: 1.55; }
.ex-steps .diff-cap { font-size: 12px; }
.ex-steps .nav-steps { margin-top: 10px; }
.ex-steps .nav-steps button { padding: 7px 14px; font-size: 13.5px; }
.ex-steps .recipe-row { margin-top: 12px; padding-top: 10px; }
.ex-steps .detail { min-width: 0; }
#fixes .ex-cols > .path-wrap { margin: 0; min-height: 0; display: flex; flex-direction: column; padding: 10px 10px 4px; }
#fixes .ex-cols > .path-wrap .path-title { font-size: 13.5px; margin: 0 0 2px 4px; flex: none; }

@media (max-width: 1100px) {
  #fixes .task-card { flex-basis: calc(33.3% - 8px); }
}
@media (max-width: 860px) {
  #fixes .explorer { height: auto; overflow: visible; }
  .ba-row { height: auto; grid-template-columns: 1fr; }
  .bac { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .bac-v { height: auto; width: 100%; }
  #fixes .ex-cols { grid-template-columns: minmax(0, 1fr); }
  .ex-steps { overflow: visible; padding-right: 0; order: 2; }
  #fixes .ex-cols > .path-wrap { height: 260px; order: 1; }
}
@media (max-width: 560px) {
  #fixes .task-card { flex-basis: calc(50% - 8px); padding: 5px 8px 5px 5px; gap: 8px; }
  #fixes .task-card img { width: 42px; height: 34px; }
  #fixes .task-card span { font-size: 14px; }
  .bac-p { font-size: 1.8rem; }
}
.bac { height: 100%; grid-template-rows: minmax(0, 1fr); }
.bac-v { height: 100%; width: auto; }
.bac-v video { position: absolute; inset: 0; }
#fixes .task-card img { width: 46px; height: 38px; }
#fixes .task-card span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; }
#fixes .explorer { --exh: clamp(470px, calc(100vh - 56px - 142px), 800px); }
@media (max-width: 860px) { .bac { height: auto; } .bac-v { height: auto; width: 100%; } }
.ex-hd .ex-sum { -webkit-line-clamp: 2; }
.ex-steps .det-top { align-items: center; margin-top: 6px; }
.ex-steps .det-top h4 { margin: 0; }
.ex-steps .det-top .ex-score { display: flex; align-items: baseline; gap: 8px; }
.ex-steps .det-top .ex-score .big { font-size: 1.4rem; }
.ex-steps .det-top .ex-score .small { font-size: 12px; }

.wall figcaption { display: flex; align-items: center; gap: 6px; right: auto; max-width: calc(100% - 16px); }
.wall figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall figcaption .wb { flex: none; background: var(--after); color: #fff; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.board-head { display: flex; align-items: center; gap: 10px; padding: 12px 0 4px; font-size: 14.5px; font-weight: 650; color: var(--ink); }
.board-head .prov { margin-left: 4px; }
.db-vals .cnt { font-size: 12.5px; font-weight: 700; color: var(--after); font-variant-numeric: tabular-nums; }
.tip .tc { font-weight: 500; opacity: .7; margin-left: 4px; }
@media (max-width: 560px) { .bac { grid-template-columns: minmax(0, 1fr); } .bac-i { padding: 2px 4px 4px; } .bac-p { font-size: 1.7rem; } }

/* ===== v5 (11-18): no inner scrolling, fewer grey words ===== */
#fixes .explorer { height: auto; min-height: var(--exh); }
.ba-row { flex: 1 1 auto; height: auto; min-height: 110px; max-height: 300px; }
.bac { grid-template-columns: auto minmax(110px, 1fr); }
.bac-i { gap: 2px; }
.bac-p { font-size: clamp(2rem, 3.6vw, 3rem); }
.bac-c { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
#fixes .ex-cols { flex: none; }
.ex-steps { overflow: hidden; padding-right: 0; }
.ex-measure { position: absolute; left: -10000px; top: 0; visibility: hidden; height: auto !important; overflow: visible; }
.ex-steps .steps { margin-bottom: 6px; }
.ex-steps .steps .st { font-size: 14px; color: var(--ink); }
.ex-steps .steps .sv { font-size: 13.5px; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.ex-steps .steps .sv small { font-size: 12.5px; font-weight: 600; color: var(--ink); opacity: .8; }
.ex-steps .steps li.cur .sv { color: var(--agent); }
.ex-steps .detail p.what { font-size: 14px; color: var(--ink); line-height: 1.45; margin: 4px 0 0; }
.ex-steps .diff { margin-top: 8px; box-shadow: none; }
.ex-steps .diff-h { padding: 5px 10px; font-size: 11px; }
.ex-steps .diff pre { font-size: 11.2px; line-height: 1.5; padding: 5px 0; overflow-x: hidden; }
.ex-steps .diff .ln { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.path-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pnav { display: inline-flex; gap: 6px; }
.pnav button { font: inherit; font-size: 16px; font-weight: 800; width: 34px; height: 30px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; cursor: pointer; }
.pnav button:disabled { opacity: .25; cursor: default; }
@media (max-width: 860px) {
  #fixes .explorer { min-height: 0; }
  .ba-row { max-height: none; }
  .ex-steps { overflow: visible; }
}
@media (max-width: 560px) {
  .bac { grid-template-columns: minmax(0, 1fr); }
  .bac-i { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .bac-i .k { align-self: center; }
}
.ex-steps .steps button { padding-top: 2px; padding-bottom: 2px; }
.ex-steps .diff pre { line-height: 1.42; }
.ba-row { min-height: 96px; }
@media (max-height: 800px) and (min-width: 861px) {
  #fixes .task-card { padding-top: 4px; padding-bottom: 4px; }
  #fixes .task-card img { width: 40px; height: 32px; }
  #fixes .task-cards { gap: 6px; margin-bottom: 8px; }
  #fixes .explorer { padding-top: 12px; padding-bottom: 12px; --exh: clamp(460px, calc(100vh - 56px - 124px), 800px); }
  .ex-steps .detail p.what { font-size: 13.5px; line-height: 1.4; }
}

/* ===== v6: restored original findings cards (renamed classes) ===== */
.oprops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.oprop { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.oprop .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pc-soft); color: var(--pc); }
.oprop .icon svg { width: 24px; height: 24px; }
.oprop h3 { margin: 14px 0 4px; font-size: 1.3rem; }
.oprop .q { font-size: 14.5px; color: var(--ink2); margin: 0 0 14px; }
.oprop .ex { background: var(--bg); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--ink2); margin-top: auto; }
.oprop .ex .t { font-weight: 700; color: var(--ink); font-size: 13px; }
.oprop .ba { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.oprop .ba .b { color: var(--before); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; }
.oprop .ba .a { color: var(--after); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; }
.oprop .ba .arrow { color: var(--ink3); }
.oprop .ba .u { font-size: 12px; color: var(--ink3); }
.oprop .count { font-size: 12.5px; color: var(--ink3); margin-top: 12px; }
.oprop .count b { color: var(--ink); }

.onotwork { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.onotwork > div { border-radius: 14px; padding: 16px; background: var(--bg2); font-size: 14px; color: var(--ink2); }
.onotwork b { display: block; color: var(--ink); margin-bottom: 4px; }

/* trimmed property cards */
.oprop details { margin-top: 12px; font-size: 13.5px; color: var(--ink2); }
.oprop summary { cursor: pointer; color: var(--agent); font-weight: 600; font-size: 13px; list-style: none; }
.oprop summary::-webkit-details-marker { display: none; }
.oprop summary::after { content: " +"; }
.oprop details[open] summary::after { content: " −"; }
.oprop details p { margin: 8px 0 0; }


@media (max-width: 860px) { .onotwork { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .oprops { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .onotwork { grid-template-columns: 1fr; } }

/* ===== v6 explorer: calmer list, smaller video band, softer dividers ===== */
.ba-row { flex: none; min-height: 0; max-height: none; gap: 16px; }
.bac { background: var(--bg); border-radius: 14px; padding: 8px; gap: 14px; }
.bac-p { font-size: clamp(1.9rem, 3vw, 2.6rem); }
#fixes .explorer { gap: 14px; padding: 16px 20px; }
#fixes .ex-cols { gap: 22px; }
.ex-steps .steps { margin: 0 0 10px; }
.ex-steps .steps::before { background: var(--line); }
.ex-steps .steps li + li { margin-top: 2px; }
.ex-steps .steps button { padding: 5px 10px 5px 0; grid-template-columns: 28px 1fr; gap: 12px; border-radius: 10px; }
.ex-steps .steps .n { width: 28px; height: 28px; font-size: 12.5px; }
.ex-steps .steps::before { left: 13px; }
.ex-steps .steps .st { font-size: 14.5px; font-weight: 600; }
.ex-steps .steps li.cur button { background: var(--agent-soft); }
.det-res { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.det-res b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.det-res span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ex-steps .detail p.what { font-size: 14.5px; line-height: 1.5; margin: 6px 0 0; color: var(--ink); }
.ex-steps .diff { margin-top: 10px; border-radius: 10px; }
#fixes .ex-cols > .path-wrap { border-radius: 14px; background: var(--bg); }
@media (max-height: 800px) and (min-width: 861px) {
  .ex-steps .steps button { padding-top: 3px; padding-bottom: 3px; }
  .ex-steps .detail p.what { font-size: 14px; line-height: 1.45; }
}
.ex-steps .steps li + li { margin-top: 0; }
.ex-steps .steps { margin-bottom: 8px; }
.ex-steps .detail { border-top: 1px solid var(--line); padding-top: 8px; }
.path-title .pt-res { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.path-title .pt-res b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
@media (max-height: 800px) and (min-width: 861px) {
  .ex-steps .steps button { padding-top: 2px; padding-bottom: 2px; }
  .ex-steps .steps .n { width: 26px; height: 26px; }
  #fixes .explorer { gap: 10px; }
}
@media (max-width: 860px) { .path-title { flex-wrap: wrap; row-gap: 4px; } .path-title > span:first-child { flex: 1 0 100%; } .path-title .pt-res { margin-left: 0; white-space: normal; } .pnav { margin-left: auto; } #fixes .ex-cols > .path-wrap { height: 300px; } }

/* ===== v7 explorer: left = videos + curve, right = steps + explanation + code (fills the height) ===== */
#fixes .explorer { display: block; height: var(--exh); min-height: 0; padding: 16px 18px; }
.ex-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 22px; }
.ex-l { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ex-l .ba-row { flex: none; height: auto !important; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ex-l .bac { display: block; position: relative; padding: 0; background: none; height: auto; border-radius: 12px; overflow: hidden; }
.ex-l .bac-v { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: calc(var(--exh) * .36); border-radius: 12px; }
.ex-l .bac-i { position: absolute; left: 8px; right: 8px; bottom: 8px; flex-direction: row; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; background: rgba(255,255,255,.92); border-radius: 10px; justify-content: flex-start; }
.ex-l .bac-i .k { align-self: center; }
.ex-l .bac-p { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1; }
.ex-l .bac-c { font-size: 14px; }
.ex-l .path-wrap { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; padding: 10px 10px 4px; border-radius: 14px; background: var(--bg); }
#fixes .ex-grid .ex-steps { display: flex; flex-direction: column; min-height: 0; overflow: hidden; height: auto; }
.ex-grid .ex-steps .steps { flex: none; margin: 0 0 10px; }
.ex-grid .ex-steps .steps button { padding: 6px 10px 6px 0; grid-template-columns: 30px 1fr; gap: 12px; }
.ex-grid .ex-steps .steps .n { width: 30px; height: 30px; font-size: 13px; }
.ex-grid .ex-steps .steps::before { left: 14px; }
.ex-grid .ex-steps .steps .st { font-size: 15.5px; }
.ex-grid .ex-steps .detail { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 12px; }
.ex-grid .ex-steps .detail p.what { font-size: 15px; line-height: 1.5; margin: 0; flex: none; }
.ex-grid .ex-steps .diff { flex: 1; min-height: 0; margin-top: 12px; display: flex; flex-direction: column; }
.ex-grid .ex-steps .diff pre { flex: 1; font-size: 12px; line-height: 1.55; padding: 8px 0; }
.diff-empty pre .ln { color: var(--code-dim); white-space: normal; }
@media (max-height: 800px) and (min-width: 861px) {
  .ex-grid .ex-steps .steps button { padding: 4px 10px 4px 0; }
  .ex-grid .ex-steps .steps .n { width: 28px; height: 28px; }
  .ex-grid .ex-steps .steps .st { font-size: 15px; }
  .ex-grid .ex-steps .detail p.what { font-size: 14.5px; }
  .ex-grid .ex-steps .diff pre { font-size: 11.5px; line-height: 1.45; }
}
@media (max-width: 860px) {
  #fixes .explorer { height: auto; }
  .ex-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ex-l .path-wrap { flex: none; height: 300px; }
  .ex-l .bac-v { max-height: none; }
  #fixes .ex-grid .ex-steps { overflow: visible; }
}
@media (max-width: 560px) {
  .ex-l .ba-row { grid-template-columns: 1fr; }
}
.ex-grid .ex-steps .steps, .ex-grid .ex-steps .steps li, .ex-grid .ex-steps .steps button { width: 100%; }
.ex-l .path-title { flex-wrap: nowrap; }
.ex-l .path-title > span:first-child { white-space: nowrap; font-size: 14px; }
.ex-l .path-title .pt-res { font-size: 13px; }
@media (max-width: 1100px) and (min-width: 861px) { .ex-l .path-title > span:first-child { display: none; } .ex-l .path-title .pt-res { margin-left: 0; } }
.run-sum { flex: 1; margin-top: 12px; border-radius: 12px; background: linear-gradient(160deg, var(--agent-soft), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.run-sum .rs-l { font-size: 13px; font-weight: 700; color: var(--agent); }
.run-sum p { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 650; line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }
.run-sum button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 9px 16px; background: var(--ink); color: #fff; cursor: pointer; }
@media (min-height: 850px) and (min-width: 861px) { .ex-grid .ex-steps .diff pre { font-size: 13px; line-height: 1.6; } }
.wall figcaption { right: 8px; max-width: none; justify-content: space-between; align-items: flex-end; background: none; backdrop-filter: none; padding: 0; gap: 6px; }
.wall figcaption span { white-space: normal; overflow: visible; background: rgba(22,22,28,.66); padding: 3px 8px; border-radius: 8px; line-height: 1.25; }
.wall figcaption .wb { box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* ===== v7: findings as three numbered parts ===== */
.part { margin-top: 64px; }
.part:first-of-type { margin-top: 28px; }
.part-h { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line2); margin-bottom: 24px; }
.part-h .pn { font-size: 3.4rem; font-weight: 300; line-height: .85; letter-spacing: -.04em; color: var(--agent); font-variant-numeric: tabular-nums; }
.part-h h3 { font-size: 1.6rem; letter-spacing: -.03em; margin: 2px 0 4px; }
.part-h p { margin: 0; color: var(--ink2); font-size: 1.05rem; max-width: 760px; }
.part-sub { font-size: 1.15rem; letter-spacing: -.02em; margin: 40px 0 0; }
.part-sub.first { margin-top: 0; }
.step4 .num { width: auto; height: auto; border-radius: 0; background: none; color: var(--agent); font-size: 2.2rem; font-weight: 300; line-height: 1; display: block; }
@media (max-width: 560px) { .part-h .pn { font-size: 2.6rem; } .part-h h3 { font-size: 1.35rem; } }
.part .split { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 36px; } .part .split .callout { font-size: 1.08rem; } @media (max-width: 860px) { .part .split { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .ex-l .path-title { flex-wrap: wrap; } .ex-l .path-title > span:first-child { display: block; flex: 1 0 100%; white-space: normal; } .ex-l .path-title .pt-res { margin-left: 0; } }

/* ===== v8 explorer: explicit rounds, gains, clear controls ===== */
.ex-grid .ex-steps .detail { flex: none; }
.ex-grid .ex-steps .detail p.what { font-size: 16px; line-height: 1.5; }
.ex-grid .ex-steps .diff { flex: none; }
.ex-grid .ex-steps .diff pre { flex: none; }
.run-sum { flex: none; padding: 18px 20px; }
.ex-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.prog { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prog-l { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.prog-bar { display: flex; gap: 4px; }
.prog-bar i { width: 28px; height: 6px; border-radius: 3px; background: var(--line2); }
.prog-bar i.on { background: var(--agent); }
.navb { display: flex; gap: 8px; flex: none; }
.navb button { font: inherit; font-size: 15px; font-weight: 650; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; background: var(--agent); color: #fff; box-shadow: 0 4px 12px rgba(90,72,224,.25); }
.navb button.sec { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line2); }
.navb button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.gchip { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--after); background: var(--after-soft); padding: 2px 8px; border-radius: 999px; margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gchip.neg { color: var(--before); background: var(--before-soft); }
.ex-grid .ex-steps .steps button { grid-template-columns: 30px 1fr auto; align-items: center; }
.path-title em { font-style: normal; font-weight: 500; color: var(--ink2); }
.path-title .pt-res { display: inline-flex; align-items: baseline; gap: 8px; }
.path-title .pt-res .gchip { margin-left: 0; font-size: 13px; }
.path-title .pt-res .pt-n { font-size: 13px; font-weight: 600; color: var(--ink); }
.pc-seg-cur { stroke: var(--agent); stroke-width: 7; stroke-linecap: round; opacity: .9; }
.pc-gain rect { fill: var(--after-soft); }
.pc-gain text { font: 800 13px var(--font); fill: var(--after); }
.pc-gain.neg rect { fill: var(--before-soft); }
.pc-gain.neg text { fill: var(--before); }
.pc-gain.cur rect { fill: var(--agent); }
.pc-gain.cur text { fill: #fff; }
@media (max-height: 800px) and (min-width: 861px) {
  .ex-grid .ex-steps .detail p.what { font-size: 15px; }
  .navb button { padding: 8px 15px; font-size: 14px; }
  .ex-foot { padding-top: 10px; }
}
@media (max-width: 560px) {
  .ex-foot { flex-direction: column; align-items: stretch; }
  .navb button { flex: 1; }
}
@media (max-height: 800px) and (min-width: 861px) { .ex-grid .ex-steps .detail p.what { font-size: 14.5px; line-height: 1.45; } .ex-grid .ex-steps .steps button { padding-top: 3px; padding-bottom: 3px; } }


/* ===== v8 findings: paper headings, GaP graph, larger not-work titles ===== */
.part-h h3 em, #findings .lede em { font-style: italic; }
.gg-card { padding: 18px 20px; }
.gg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; font-size: 15px; color: var(--ink); }
.gg-head .gg-hot { color: var(--before); font-size: 1.2rem; }
.gg-scroll { overflow-x: auto; }
.gap-graph { width: 100%; min-width: 760px; height: auto; display: block; }
.gg-node { fill: var(--surface); stroke: var(--line2); stroke-width: 1.5; }
.gg-node.hot { stroke: var(--before); stroke-width: 2; fill: var(--before-soft); }
.gg-node.end { fill: var(--after-soft); stroke: var(--after); }
.gg-name { font: 600 15px var(--mono); fill: var(--ink); text-anchor: middle; }
.gg-edge { stroke: var(--ink3); stroke-width: 2; }
.gg-arrh { fill: var(--ink3); }
.gg-badge { fill: var(--before); }
.gg-badge-t { font: 800 14px var(--font); fill: #fff; text-anchor: middle; }
.gg-tree { stroke: var(--line2); stroke-width: 1.5; }
.gg-sub { font: 500 13px var(--mono); fill: var(--ink2); }
.gg-bar { fill: #e9b896; }
.gg-bar.hot { fill: var(--before); }
.gg-cnt { font: 700 13px var(--font); fill: var(--ink2); }
.gg-cnt.hot { fill: var(--before); }
.gg-card figcaption { margin-top: 6px; }
.onotwork b { font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 8px; }
.onotwork > div { font-size: 14.5px; }
.oprop .ba { flex-wrap: wrap; row-gap: 2px; }
.oprop .ba span { white-space: nowrap; }
.oprop .ba .a.long { font-size: 1.15rem; }
.part .split.gg-split { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; margin-top: 20px; }
@media (max-width: 560px) { .navb button { padding: 10px 12px; white-space: nowrap; font-size: 14px; } }

/* ===== v9: graph thumbnails, GaP link ===== */
.gg-thumb { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.gg-done { font: 600 14px var(--font); fill: var(--after); text-anchor: middle; }
.step4 p a, .gg-card figcaption a { color: var(--agent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) { .part .split.gg-split { grid-template-columns: minmax(0, 1fr); } }
/* colored per-step results in the explorer list */
.ex-grid .ex-steps .steps .sres { display: inline-flex; align-items: center; gap: 8px; justify-self: end; }
.ex-grid .ex-steps .steps .sres b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.ex-grid .ex-steps .steps .sres .gchip { margin-left: 0; }
.ex-grid .ex-steps .steps li:not(.done) .sres b { opacity: .45; }
.run-sum .sum-b { color: var(--before); font-weight: 800; } .run-sum .sum-a { color: var(--after); font-weight: 800; }

/* data table headers like the other tables (user 11-18) */
table.dl th { font-size: 15px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; border-bottom: 1px solid var(--ink); }

/* ---------- multi-task row and per-task strip (paper Tables 2 and 3), added 11-19 ---------- */
.res-sets { font-size: 14px; color: var(--ink2); }
.res-sets b { color: var(--ink); }
.board-head.multi-head { border-top: 2px solid var(--line2); margin-top: 10px; padding-top: 14px; font-style: italic; }
.db-row.multi { border-top: 0; }
.mt-head { margin: 34px 0 4px; }
.mt-sub { margin: 0 0 12px; font-size: 14px; color: var(--ink3); }
.mt-wrap { padding: 10px 18px; }
table.mt-strip { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; font-variant-numeric: tabular-nums; }
table.mt-strip th, table.mt-strip td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.mt-strip th { font-size: 12.5px; font-weight: 600; color: var(--ink2); vertical-align: bottom; }
table.mt-strip th:first-child, table.mt-strip td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
table.mt-strip .m { border-left: 1px solid var(--line2); font-weight: 600; }
table.mt-strip tr:first-child td { border-bottom: 1px solid var(--line2); }
table.mt-strip tr.agent td { background: var(--after-soft); color: var(--after); font-weight: 600; }
table.mt-strip tr.agent td:first-child { color: var(--ink); }
table.mt-strip tr.agent td.m { font-weight: 800; }
table.mt-strip tr.delta td { border-top: 1px solid var(--line2); border-bottom: 0; color: var(--ink2); }
/* results tabs: let long tab labels wrap on phones */
@media (max-width: 520px) { #res-tabs { border-radius: 18px; } #res-tabs button { white-space: normal; text-align: left; flex: 1 1 100%; border-radius: 14px; } }

/* ---------- split hero: title left, teaser right ---------- */
.hero-split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 56px; align-items: center;
  max-width: 1680px; padding-top: 72px; padding-bottom: 28px;
}
.hero-split .hero { padding: 0; text-align: left; min-width: 0; }
.hero-split h1.title { font-size: clamp(2.3rem, 3.7vw, 4.2rem); margin: 0 0 20px; max-width: none; }
.hero-split .subtitle { margin: 0; max-width: none; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.hero-split .authors { margin: 22px 0 4px; }
.hero-split .buttons { justify-content: flex-start; margin-top: 22px; }
.hero-split .teaser { padding: 0; min-width: 0; }
@media (max-width: 960px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 48px; }
  .hero-split .hero { text-align: center; }
  .hero-split h1.title { margin: 0 auto 18px; }
  .hero-split .subtitle { margin: 0 auto; }
  .hero-split .buttons { justify-content: center; }
}

.subtitle .paradigm {
  font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
  background: linear-gradient(100deg, #6b4ff0 0%, #4b3fd6 55%, #7a5cf5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- full-screen opening: hero fills the first screen, the headline result fills the second ---------- */
.hero-split { position: relative; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); padding-top: 40px; padding-bottom: 72px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; color: var(--ink3);
  box-shadow: inset 0 0 0 1px var(--line2); animation: cue-bob 2.2s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--agent); text-decoration: none; }
.scroll-cue svg { width: 20px; height: 20px; }
@keyframes cue-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
.tldr {
  min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); scroll-margin-top: 56px;
  display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 64px;
}
.tldr .tldr-text { font-size: clamp(1.6rem, 3.3vw, 2.8rem); max-width: 1120px; }
.tldr .meter { max-width: 1120px; margin-top: 56px; width: 100%; }
@media (max-width: 960px) {
  .hero-split { min-height: 0; padding-bottom: 80px; }
  .tldr { min-height: 0; padding-top: 72px; padding-bottom: 40px; }
}

/* ---------- what did not work: stat cards ---------- */
.onotwork { gap: 16px; margin-top: 22px; }
.onotwork > .nw-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 22px 24px 24px; border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden;
}
.nw-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--before), #e8a07a); }
.nw-tag {
  align-self: flex-start; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--before); background: var(--before-soft); padding: 4px 10px; border-radius: 999px;
}
.nw-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.nw-from { font-size: 1.6rem; font-weight: 700; color: var(--ink3); letter-spacing: -.03em; }
.nw-to { font-size: 2.6rem; line-height: 1; font-weight: 800; color: var(--before); letter-spacing: -.04em; }
.nw-arrow { font-size: 1.4rem; color: var(--ink3); }
.nw-unit { font-size: 13px; font-weight: 600; color: var(--ink3); }
.onotwork .nw-card b { font-size: 1.28rem; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); margin: 4px 0 0; text-wrap: balance; }
.nw-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink2); }

/* headline: the two data sources in their meter colours */
.hl-pill { font-weight: 800; }
.hl-pill-after { color: var(--after); }
.hl-pill-before { color: var(--before); }
.tldr .hl-before, .tldr .hl-after { font-weight: 800; }

/* v2 ===================================================================
   Styles used only by v2.html (body.v2). Short sections: tiny label + short headline. */
.v2 section.v2-sec { padding-top: 104px; }
.v2-label { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--agent); margin: 0 0 4px; }
.v2 .v2-sec h2 { margin-top: 4px; }
.v2-body { font-size: 1.08rem; color: var(--ink2); margin: 0; text-wrap: pretty; }
/* problem */
.v2-gap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 48px; align-items: center; }
.v2-gap .fig { margin: 0; }
.v2-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 20px; }
.v2-pair > div { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; }
.v2-pair b { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.v2-pair span { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink2); line-height: 1.35; }
/* method: numbered flow */
.v2-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.v2-flow li { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px 20px; position: relative; }
.v2-flow li + li::before { content: ""; position: absolute; left: -14px; top: 38px; width: 14px; height: 2px; background: var(--line2); }
.v2-flow li.loop { box-shadow: inset 0 3px 0 var(--agent), var(--shadow); }
.v2-flow .n { width: 34px; height: 34px; border-radius: 50%; background: var(--agent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.v2-flow li:first-child .n { background: var(--ink); }
.v2-flow h3 { margin: 14px 0 6px; font-size: 1.08rem; }
.v2-flow p { margin: 0; font-size: 14.5px; color: var(--ink2); line-height: 1.5; }
.v2-loopnote { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--agent); }
.v2-loopnote svg { width: 18px; height: 18px; flex: none; }
/* signature before/after cards */
.sig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sig-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.sig-media { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg2); padding: 4px; }
.sig-v { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; }
.sig-v video { width: 100%; height: 100%; object-fit: cover; }
.sig-v figcaption { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 6px; pointer-events: none; }
.sig-v .k { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 2px 8px; border-radius: 999px; }
.sig-v .k.before { background: var(--before); }
.sig-v .k.after { background: var(--after); }
.sig-v figcaption b { color: #fff; font-size: 14px; font-weight: 800; background: rgba(0, 0, 0, .55); padding: 1px 7px; border-radius: 7px; }
.sig-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.sig-body h3 { margin: 0 0 6px; font-size: 1.12rem; }
.sig-body h3 em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink3); margin-left: 4px; }
.sig-fix { margin: 0 0 12px; font-size: 15px; color: var(--ink); line-height: 1.45; }
.sig-num { margin-top: auto; display: flex; align-items: baseline; gap: 10px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sig-num .b { color: var(--before); font-size: 1.6rem; }
.sig-num .a { color: var(--after); font-size: 2.2rem; }
.sig-num .arr { color: var(--ink3); font-weight: 600; }
.sig-cap { margin: 4px 0 0; font-size: 12px; color: var(--ink3); line-height: 1.4; }
.v2-all { margin-top: 22px; }
.v2-all > summary { font-weight: 700; }
/* FAQ accordion */
.faq { max-width: none; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--agent-soft); color: var(--agent); font-weight: 800; transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--agent); }
.faq details p { margin: 0 2px 20px; color: var(--ink2); font-size: 1.02rem; max-width: 980px; }
.v2 #paper .res-grid { margin-bottom: 18px; }
@media (max-width: 960px) {
  .v2-gap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .v2-gap .fig { order: 2; }
  .v2-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-flow li:nth-child(3)::before { display: none; }
  .sig-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 560px) {
  .v2 section.v2-sec { padding-top: 72px; }
  .v2-flow { grid-template-columns: minmax(0, 1fr); }
  .v2-flow li + li::before { display: none; }
  .v2-loopnote { justify-content: flex-start; }
  .v2-pair { grid-template-columns: 1fr 1fr; }
  .v2 .res-grid { grid-template-columns: minmax(0, 1fr); }
}
/* end v2 */

/* v2 nav: matches the full-width hero, gradient brand, pill links, dark Paper button */
.v2 .nav .wrap { max-width: 1680px; height: 64px; gap: 28px; }
.v2 .nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px -12px rgba(40, 30, 90, .18); border-bottom-color: transparent; }
.v2 .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.v2 .brand:hover { text-decoration: none; }
.v2 .brand b {
  font-weight: 800;
  background: linear-gradient(100deg, #6b4ff0 0%, #4b3fd6 55%, #7a5cf5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.v2 .brand-mark {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, #7a5cf5 0%, #4b3fd6 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 2px 6px rgba(75, 63, 214, .35);
  position: relative;
}
.v2 .brand-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; border: 2px solid rgba(255, 255, 255, .9); border-right-color: transparent; transform: rotate(-45deg); }
.v2 .nav ul { gap: 2px; align-items: center; }
.v2 .nav li a { font-size: 14.5px; padding: 7px 13px; color: var(--ink2); }
.v2 .nav li a.active { color: var(--agent); background: var(--agent-soft); font-weight: 600; }
.v2 .nav li.nav-cta { margin-left: 8px; }
.v2 .nav li.nav-cta a { background: var(--ink); color: #fff; font-weight: 600; padding: 8px 16px; }
.v2 .nav li.nav-cta a:hover { background: #2b2b35; color: #fff; }
.v2 .nav li.nav-cta a.active { background: var(--agent); color: #fff; }
@media (max-width: 760px) { .v2 .nav .wrap { height: 56px; } .v2 .nav li.nav-cta { margin-left: 2px; } }

/* v2: content sections a little wider for breathing room */
.v2 section.block.wrap { max-width: 1260px; }
.v2 #gap .split { gap: clamp(32px, 4vw, 64px); }

/* v2 method: paper loop figure + vertical steps */
.v2-method { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 8px; }
.v2-loopfig { margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(10px, 1.6vw, 22px); }
.v2-loopfig img { display: block; width: 100%; height: auto; border-radius: 10px; }
.v2-method-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.v2-flow.v2-flow-col { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.v2-flow.v2-flow-col li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px 18px; }
.v2-flow.v2-flow-col li .n { grid-row: span 2; }
.v2-flow.v2-flow-col h3 { margin: 4px 0 4px; }
.v2-flow.v2-flow-col li + li::before { left: 34px; top: -10px; width: 2px; height: 10px; }
.v2-flow.v2-flow-col li.loop { box-shadow: inset 3px 0 0 var(--agent), var(--shadow); }
.v2-method-side .v2-loopnote { margin: 0; }
@media (max-width: 960px) {
  .v2-method { grid-template-columns: minmax(0, 1fr); }
  .v2-flow.v2-flow-col li:nth-child(3)::before { display: block; }
}

/* signature card with a single (after) clip */
.sig-media.one { grid-template-columns: minmax(0, 1fr); }
.sig-media.one .sig-v { aspect-ratio: 2 / 1; }
.sig-media.one .sig-v video { object-position: 50% 55%; }

/* v2: five task cards above the change-by-change explorer */
.v2 .task-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 560px) { .v2 .task-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .v2 .task-card span { font-size: 11px; } }

.hero-split h1.title { line-height: 1.08; }

/* before/after clips: the box takes each clip's own aspect ratio, so nothing is cropped and there are no side bars */
.bac-v { aspect-ratio: var(--ar, 1 / 1); width: auto; background: transparent; }
.bac-v video { width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }

.tldr .tldr-text { font-size: clamp(1.35rem, 2.6vw, 2.15rem); max-width: 1040px; }

/* explorer before/after: label below the clip (never over it), clip box in the clip's own shape */
.ex-l .bac { overflow: visible; display: flex; flex-direction: column; gap: 6px; }
.ex-l .bac-v { aspect-ratio: var(--ar, 1 / 1); max-height: none; width: 100%; height: auto; background: transparent; }
.ex-l .bac-v video { position: static; width: 100%; height: 100%; object-fit: contain; }
.ex-l .bac-i { position: static; background: none; padding: 0 2px; justify-content: flex-start; }

/* ===== explorer polish (11-20): fixed clip band, balanced pair, tidy labels ===== */
/* the clip band has the same height for every task; each clip keeps its own aspect (--ar) and is centred in the band,
   so the curve below never moves when switching between tasks (square, 4:3, 2:1 clips) */
.ex-l { container-type: inline-size; --bgap: 14px; --colw: calc((100cqw - var(--bgap)) / 2); --cap: calc(var(--exh) * .36); --slot: min(var(--colw), var(--cap)); --labh: 30px; }
.ex-l .ba-row { display: flex; justify-content: center; align-items: center; gap: var(--bgap); height: calc(var(--slot) + 8px + var(--labh)) !important; }
.ex-l .bac { flex: none; height: auto; width: min(var(--colw), calc(var(--cap) * (var(--ar, 1)))); gap: 8px; border-radius: 0; }
.ex-l .bac-v { width: 100%; height: auto; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.ex-l .bac-v video { border-radius: 0; }
.ex-l .bac-i { height: var(--labh); display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0 2px; flex-wrap: nowrap; }
.ex-l .bac-i .k { font-size: 10.5px; letter-spacing: .07em; padding: 3px 9px; line-height: 1.3; }
.ex-l .bac-p { font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ex-l .bac-c { font-size: 13px; font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; margin-left: -2px; }
.ex-l .bac .spd { z-index: 1; }
/* values on the curve: a halo so gridlines never strike through them */
.path-box .pc-v { paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
@media (max-width: 860px) {
  .ex-l { --cap: 340px; }
}
@media (max-width: 560px) {
  .ex-l { --bgap: 10px; --labh: 26px; }
}
/* label typography scales with the clip width, so it always fits on one line under its clip */
.ex-l .bac { container-type: inline-size; }
@container (max-width: 250px) {
  .ex-l .bac-i { gap: 5px; }
  .ex-l .bac-i .k { font-size: 9px; padding: 2px 6px; letter-spacing: .05em; }
  .ex-l .bac-p { font-size: 1.15rem; }
  .ex-l .bac-c { font-size: 11px; margin-left: 0; }
}
@container (max-width: 160px) {
  .ex-l .bac-i { gap: 4px; padding: 0; }
  .ex-l .bac-i .k { font-size: 8.5px; padding: 2px 5px; letter-spacing: .03em; }
  .ex-l .bac-p { font-size: 1.02rem; letter-spacing: -.03em; }
  .ex-l .bac-c { font-size: 10.5px; }
}

/* hero link buttons on one row (RoboSimStudio style) */
.hero-split .buttons { flex-wrap: nowrap; gap: 8px; }
.hero-split .btn { padding: 8px 13px; font-size: 14px; gap: 6px; white-space: nowrap; }
.hero-split .btn svg { width: 15px; height: 15px; }
.hero-split .btn .soon { font-size: 10px; }
@media (max-width: 560px) { .hero-split .buttons { flex-wrap: wrap; } }

/* stacked hero variant: title on top, video below */
.hero-split.stacked { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 1260px; min-height: 0; padding-top: 64px; }
.hero-split.stacked .hero { text-align: center; max-width: 1040px; margin: 0 auto; }
.hero-split.stacked h1.title { margin: 0 auto 18px; }
.hero-split.stacked .subtitle { margin: 0 auto; max-width: 860px; }
.hero-split.stacked .buttons { justify-content: center; }
.hero-split.stacked .teaser { width: 100%; max-width: 1180px; margin: 0 auto; }
.hero-split.stacked .scroll-cue { display: none; }


/* ===== additions for the Agentic Data Curation version ===== */
/* first page: the 3D trajectory scene sits straight on the page background, no frame */
.hero-split .teaser.viz { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.viz-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: clamp(1rem, 1.4vw, 1.4rem); font-weight: 800; color: var(--line2); letter-spacing: -.025em; line-height: 1.2; }
.viz-labels span { display: inline-flex; align-items: center; gap: 9px; }
.viz-labels i { width: .8em; height: .8em; border-radius: 50%; background: currentColor; flex: none; }
.viz-labels svg.arr { width: 1.1em; height: 1.1em; color: var(--ink3); flex: none; }
.viz-labels span { transition: color .5s; }
.viz.raw .l-raw { color: var(--before); } .viz:not(.raw) .l-fin { color: var(--after); }
.viz-labels .hint { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink3); }
#traj { display: block; width: 100%; aspect-ratio: 5 / 4; max-height: 68vh; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.viz.dragging #traj { cursor: grabbing; }
.viz-cap { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink3); }
.zero { font-size: clamp(1.3rem, 2.1vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 14px; color: var(--ink); }
.v2 .brand { font-size: 19px; }
.hero-split .authors { color: var(--ink3); font-weight: 500; font-size: 15px; }

/* "teacher–student performance gap": colour flows through the words, orange to green */
.c2d { background: linear-gradient(90deg, var(--before), #c08a3a, var(--after), #c08a3a, var(--before)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--before); font-weight: 800; animation: c2d-flow 5s linear infinite; }
@keyframes c2d-flow { from { background-position: 0% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .c2d { animation: none; } }
.gap-title .gt-gap { color: var(--after); }
.gap-title .gt-gap::after { background: repeating-linear-gradient(90deg, var(--after) 0 .22em, transparent .22em .34em); }
.in .gap-title .gt-gap span + span, .in.gap-title .gt-gap span + span { margin-left: .16em; }

/* one idea per screen */
.v2 section.block.wrap { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 72px; }
.v2 section.block.wrap > * { width: 100%; }
@media (max-width: 960px) { .v2 section.block.wrap { min-height: 0; } }

/* results: digital twins start from initial code data */
.track .p.ini.dd { background: var(--surface); border: 2.5px solid var(--before); box-shadow: none; }
.thumb-none { width: 64px; height: 48px; border-radius: 8px; background: var(--bg2); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink3); }
.db-row.mean .thumb-none { background: none; }
@media (max-width: 760px) { .thumb-none { width: 52px; height: 40px; grid-row: span 2; } }
.lg-dd { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--before); background: var(--surface); display: inline-block; }
.board-foot { font-size: 13.5px; color: var(--ink3); margin: 12px 2px 0; }
.real-line { font-size: 1.08rem; color: var(--ink2); margin: 18px 2px 0; }

/* call for contributions */
.cov { list-style: none; margin: 0; padding: 8px 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.cov li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cov li:first-child { border-top: 0; }
.cov b { font-weight: 700; }
.cov .cn { color: var(--ink3); font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: right; }
.cells { display: flex; flex-wrap: wrap; gap: 3px; }
.cells i { width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid var(--line2); }
.cells i.on { background: var(--after); border-color: var(--after); }
.cells i.more { border-style: dotted; opacity: .7; }
.cov-note { font-size: 13.5px; color: var(--ink3); margin: 12px 2px 0; }
@media (max-width: 640px) { .cov { padding: 4px 14px; } .cov li { grid-template-columns: minmax(0, 1fr) auto; } .cov .cells { grid-column: 1 / -1; grid-row: 2; } }

/* press feedback */
.btn:active, .task-card:active, .seg button:active, .copy:active { transform: scale(.96); transition-duration: .06s; }
footer small { display: block; margin-top: 6px; font-size: 12px; color: var(--ink3); }

/* ---- Teacher–student gap: one row per task, code in blue, its policies in orange, the gap shaded (paper Figure 2 data) ---- */
/* before the chart scrolls into view each policy sits on its privileged code; then it drops to its real success */
.gap-side .gapx { margin: 0 0 16px; }
.gap-title { white-space: normal; }

/* ---- the loop as a native diagram (panel b of the paper's Figure 1) ---- */
.loopd { display: flex; flex-direction: column; align-items: center; }
.ld-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; }
.ld-card .n { width: 40px; height: 40px; border-radius: 50%; background: var(--agent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.ld-1 { width: min(100%, 760px); grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.ld-1 .n { background: var(--ink); }
.ld-card h3 { margin: 6px 0 6px; font-size: clamp(1.1rem, 1.6vw, 1.4rem); letter-spacing: -.02em; line-height: 1.2; }
.ld-card p { margin: 0; font-size: 15.5px; color: var(--ink2); line-height: 1.5; }
.ld-nodes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--expert); }
.ld-nodes span { border: 1.5px solid color-mix(in srgb, var(--expert) 45%, transparent); border-radius: 7px; padding: 3px 9px; background: color-mix(in srgb, var(--expert) 7%, transparent); }
.ld-nodes i { width: 12px; height: 2px; background: currentColor; opacity: .6; }
.ld-down { width: 24px; height: 40px; color: var(--ink3); margin: 8px 0; flex: none; }
.ld-loop { position: relative; width: 100%; border: 2px dashed color-mix(in srgb, var(--agent) 45%, transparent); border-radius: 30px; padding: 44px clamp(16px, 2.4vw, 32px) 26px; background: color-mix(in srgb, var(--agent) 4%, transparent); }
.ld-chip { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); background: var(--agent); color: #fff; font-weight: 700; font-size: 15px; padding: 8px 18px; border-radius: 999px; white-space: nowrap; }
.ld-cycle, .ld-ret { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr); }
.ld-cycle { align-items: stretch; }
.ld-cycle .ld-card { box-shadow: inset 0 3px 0 var(--agent), var(--shadow); }
.ld-arr { width: 40px; height: 24px; color: var(--agent); align-self: center; justify-self: center; }
/* return path: down from step 4, back under step 3, up into step 2 */
.ld-ret { height: 34px; margin-top: 4px; }
.ld-ret i { border: 0 solid var(--agent); border-bottom-width: 2.5px; }
.ld-ret .r-a { grid-column: 1; justify-self: end; width: 50%; border-left-width: 2.5px; border-bottom-left-radius: 18px; position: relative; }
.ld-ret .r-a::before { content: ""; position: absolute; left: -8.2px; top: -2px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 11px solid var(--agent); }
.ld-ret .r-b { grid-column: 2 / 5; }
.ld-ret .r-c { grid-column: 5; justify-self: start; width: 50%; border-right-width: 2.5px; border-bottom-right-radius: 18px; }
.ld-out { margin: 0; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.02em; color: var(--after); }
@media (max-width: 860px) {
  .ld-1 { grid-template-columns: auto minmax(0, 1fr); } .ld-1 .ld-nodes { grid-column: 1 / -1; }
  .ld-cycle { grid-template-columns: minmax(0, 1fr); gap: 8px; } .ld-arr { transform: rotate(90deg); } .ld-ret { display: none; }
}

/* ---- what the agents changed: the paper's Figure 6 as an interactive table ---- */
.chg-scroll { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 16px 8px; }
table.chg { border-collapse: collapse; width: 100%; font-size: 15px; }
.chg th, .chg td { padding: 8px 6px; text-align: center; }
.chg thead th { vertical-align: bottom; }
.chg .chg-g span { display: block; margin: 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 15px; font-weight: 800; }
.chg .chg-c { font-size: 12.5px; font-weight: 600; color: var(--ink2); line-height: 1.2; width: 6%; padding-top: 8px; }
.chg tbody th, .chg tfoot th { text-align: left; font-weight: 600; white-space: nowrap; padding-left: 10px; }
.chg tbody tr { cursor: pointer; transition: background .2s; outline-offset: -2px; }
.chg tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--bg2) 55%, transparent); }
.chg tbody tr:hover, .chg tbody tr:focus-visible { background: color-mix(in srgb, var(--after) 9%, transparent); }
.chg tbody tr.sel { background: var(--after-soft); }
.chg tbody th:first-child { border-radius: 8px 0 0 8px; } .chg tbody td:last-child { border-radius: 0 8px 8px 0; }
.chg tfoot td { font-weight: 800; color: var(--after); font-variant-numeric: tabular-nums; padding-top: 10px; }
.chg tfoot th { color: var(--ink2); font-weight: 500; padding-top: 10px; }
.mk { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; position: relative; box-sizing: border-box; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.mk.k { background: var(--after); }
.mk.t { border: 2px solid var(--bench); background: var(--surface); }
.mk.h { border: 2px solid var(--before); background: var(--surface); }
.mk.h::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 2px; background: var(--before); transform: translate(-50%, -50%) rotate(-45deg); }
.mk.na { width: 12px; height: 2px; border-radius: 2px; background: var(--line2); }
.chg tbody tr:hover .mk.k, .chg tbody tr.sel .mk.k { transform: scale(1.2); }
.chg-leg { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 14px 4px 0; font-size: 14.5px; color: var(--ink2); }
.chg-leg span { display: inline-flex; align-items: center; gap: 8px; }
.chg-detail { margin-top: 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; display: grid; grid-template-columns: minmax(200px, 1.1fr) repeat(3, minmax(0, 1.4fr)); gap: 12px 28px; align-items: start; min-height: 116px; }
.chg-detail h3 { margin: 0; font-size: 1.12rem; font-style: italic; line-height: 1.25; }
.chg-detail .pol { font-size: 13.5px; color: var(--ink3); }
.chg-detail .res { margin-top: 8px; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; }
.chg-detail .res .b { color: var(--before); } .chg-detail .res .a { color: var(--after); } .chg-detail .res span.ar { color: var(--ink3); font-weight: 400; margin: 0 6px; }
.chg-detail dt { font-size: 12.5px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.chg-detail dd { margin: 0; font-size: 15px; color: var(--ink2); line-height: 1.45; }
.chg-detail dl { margin: 0; }
@media (max-width: 860px) { .chg-detail { grid-template-columns: minmax(0, 1fr); } .chg .chg-c { min-width: 64px; } }

/* ---- polish: stronger hierarchy, less small text, captions that use their width ---- */
.v2 .v2-sec h2, .v2 .gap-title { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; margin: 0; }
.v2 .sec-head .lede, .v2 .lede { font-size: clamp(1.08rem, 1.45vw, 1.25rem); color: var(--ink2); max-width: none; margin-top: 16px; }
.v2 .sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.v2 figcaption, .gapfig figcaption { max-width: none; font-size: 14px; color: var(--ink3); margin-top: 14px; }
.board-foot, .cov-note { max-width: none; }
.hero-split h1.title { font-size: clamp(2.4rem, 4.3vw, 4.8rem); line-height: 1.02; }
.hero-split .subtitle { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; max-width: none; margin-top: 6px; }
.gapx-agent { font-size: 1.08rem; }

/* hero: the visualization gets a little more width than the text; compact button row under the text */
.hero-split { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); column-gap: clamp(24px, 3vw, 48px); align-items: center; }
.hero-split h1.title { font-size: clamp(2.2rem, 3.7vw, 4.1rem); line-height: 1.04; }
.hero-split .zero { margin-bottom: 16px; font-size: clamp(1.2rem, 1.8vw, 1.65rem); }
.hero-split .buttons { flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-split .btn { padding: 11px 18px; font-size: 15px; }
@media (max-width: 960px) { .hero-split { grid-template-columns: minmax(0, 1fr); } }

.v2 .lede { text-wrap: pretty; }

.hero-split .subtitle { text-wrap: pretty; }

/* call for contributions: a large coverage board and a clear call */
.v2 .cov { padding: 14px 28px; }
.v2 .cov li { grid-template-columns: 11em minmax(0, 1fr) auto; gap: 8px 24px; padding: 16px 0; font-size: 19px; }
.v2 .cov b { font-weight: 800; letter-spacing: -.01em; }
.v2 .cov .cn { font-size: 16px; font-weight: 600; color: var(--ink2); }
.v2 .cells { gap: 5px; }
.v2 .cells i { width: 18px; height: 18px; border-radius: 5px; border-width: 2px; }
.contrib-cta { margin: 18px 0 0; padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--agent); color: #fff; font-size: clamp(1.15rem, 1.9vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.contrib-cta b { font-weight: 800; }
@media (max-width: 640px) { .v2 .cov li { grid-template-columns: minmax(0, 1fr) auto; font-size: 17px; } .v2 .cells i { width: 13px; height: 13px; } }
/* explorer task tabs in even rows */
#fixes #task-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
@media (max-width: 1100px) { #fixes #task-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { #fixes #task-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.loopd .ld-1 + .ld-down { margin-bottom: 26px; }
.v2 .hl-agent { color: var(--agent); }

/* ---- loop: small native visuals in each step, and a pulse that travels 2 -> 3 -> 4 -> 2 ---- */
.ld-vis { grid-column: 1 / -1; margin-top: 10px; height: 52px; width: auto; max-width: 100%; justify-self: start; }
svg.ld-vis { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ld-vis .stack rect { fill: var(--surface); stroke: var(--expert); } .ld-vis .stack .play { fill: var(--expert); stroke: none; }
.ld-vis .stack.new rect { stroke: var(--after); } .ld-vis .stack.new .play { fill: var(--after); }
.ld-vis .va { stroke: var(--ink3); }
.ld-vis .net path { stroke: var(--ink3); stroke-width: 1; opacity: .7; } .ld-vis .net circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.8; }
.ld-vis .diff rect { fill: var(--ink); stroke: none; } .ld-vis .diff path { stroke-width: 3.2; } .ld-vis .d0 { stroke: #6b6b78; } .ld-vis .d1 { stroke: var(--before); } .ld-vis .d2 { stroke: #3fbf85; }
.ld-thumbs { display: flex; gap: 10px; }
.ld-thumbs span { position: relative; height: 52px; aspect-ratio: 1 / 1; border-radius: 9px; overflow: hidden; border: 2.5px solid var(--after); }
.ld-thumbs span.bad { border-color: var(--before); }
.ld-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-thumbs i { position: absolute; right: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--after); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ld-thumbs .bad i { background: var(--before); }
.ld-dot { fill: var(--agent); opacity: 0; }
.ld-ret i { position: relative; }
.ld-ret b { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--agent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--agent) 22%, transparent); opacity: 0; }
.ld-ret .r-c b { right: -6px; top: 0; } .ld-ret .r-b b { bottom: -6px; left: 100%; margin-left: -5px; } .ld-ret .r-a b { left: -6px; top: 100%; margin-top: -5px; }
@media (prefers-reduced-motion: no-preference) {
  .ld-cycle .ld-arr:nth-of-type(1) .ld-dot { animation: ld-a1 5.2s linear infinite; }
  .ld-cycle .ld-arr:nth-of-type(2) .ld-dot { animation: ld-a2 5.2s linear infinite; }
  .ld-ret .r-c b { animation: ld-rc 5.2s linear infinite; } .ld-ret .r-b b { animation: ld-rb 5.2s linear infinite; } .ld-ret .r-a b { animation: ld-ra 5.2s linear infinite; }
  .ld-cycle .ld-card:nth-of-type(1) { animation: ld-g1 5.2s ease-in-out infinite; }
  .ld-cycle .ld-card:nth-of-type(2) { animation: ld-g2 5.2s ease-in-out infinite; }
  .ld-cycle .ld-card:nth-of-type(3) { animation: ld-g3 5.2s ease-in-out infinite; }
}
@keyframes ld-a1 { 0%, 3% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 16% { transform: translateX(30px); opacity: 1; } 18%, 100% { transform: translateX(30px); opacity: 0; } }
@keyframes ld-a2 { 0%, 25% { transform: translateX(0); opacity: 0; } 27% { opacity: 1; } 38% { transform: translateX(30px); opacity: 1; } 40%, 100% { transform: translateX(30px); opacity: 0; } }
@keyframes ld-rc { 0%, 47% { top: 0; opacity: 0; } 48% { opacity: 1; } 53% { top: calc(100% - 4px); opacity: 1; } 54%, 100% { top: calc(100% - 4px); opacity: 0; } }
@keyframes ld-rb { 0%, 53% { left: 100%; opacity: 0; } 54% { opacity: 1; } 76% { left: 0; opacity: 1; } 77%, 100% { left: 0; opacity: 0; } }
@keyframes ld-ra { 0%, 76% { top: 100%; opacity: 0; } 77% { opacity: 1; } 83% { top: 8px; opacity: 1; } 84%, 100% { top: 8px; opacity: 0; } }
@keyframes ld-g1 { 0%, 6%, 84%, 100% { box-shadow: inset 0 3px 0 var(--agent), 0 0 0 4px color-mix(in srgb, var(--agent) 22%, transparent), var(--shadow); } 14%, 78% { box-shadow: inset 0 3px 0 var(--agent), 0 0 0 0 transparent, var(--shadow); } }
@keyframes ld-g2 { 0%, 14%, 34%, 100% { box-shadow: inset 0 3px 0 var(--agent), 0 0 0 0 transparent, var(--shadow); } 18%, 26% { box-shadow: inset 0 3px 0 var(--agent), 0 0 0 4px color-mix(in srgb, var(--agent) 22%, transparent), var(--shadow); } }
@keyframes ld-g3 { 0%, 36%, 56%, 100% { box-shadow: inset 0 3px 0 var(--agent), 0 0 0 0 transparent, var(--shadow); } 40%, 48% { box-shadow: inset 0 3px 0 var(--agent), 0 0 0 4px color-mix(in srgb, var(--agent) 22%, transparent), var(--shadow); } }

/* ---- five concrete examples ---- */
.ex5 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ex-card { grid-column: span 2; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .7s ease; }
.ex-card.wide { grid-column: span 3; }
.ex-card:hover { transform: translateY(-4px); }
.ex-media { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--line); }
.ex-media figure { margin: 0; position: relative; background: var(--bg2); aspect-ratio: 1 / 1; overflow: hidden; }
.ex-card.wide .ex-media figure { aspect-ratio: 16 / 10; }
.ex-media img, .ex-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-media figcaption { position: absolute; left: 8px; bottom: 8px; margin: 0; max-width: calc(100% - 16px); font-size: 12px; font-weight: 700; color: #fff; background: var(--after); padding: 3px 9px; border-radius: 999px; }
.ex-media .before figcaption { background: var(--before); }
.ex-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ex-body h3 { margin: 0; font-size: 1.12rem; line-height: 1.25; } .ex-body h3 span { display: block; font-size: 13px; font-weight: 500; color: var(--ink3); margin-top: 2px; }
.ex-change { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.4; }
.ex-num { margin: auto 0 0; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.035em; }
.ex-num .b { font-size: 1.5rem; color: var(--before); } .ex-num .ar { color: var(--ink3); font-weight: 400; } .ex-num .a { font-size: clamp(2.2rem, 3.4vw, 3rem); color: var(--after); line-height: 1; }
.ex-num .real { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--after); background: var(--after-soft); padding: 4px 11px; border-radius: 999px; margin-left: auto; }
@media (max-width: 960px) { .ex-card, .ex-card.wide { grid-column: span 3; } }
@media (max-width: 640px) { .ex-card, .ex-card.wide { grid-column: 1 / -1; } }

.chg tbody tr { cursor: default; }

/* loop: larger step visuals that fill their cards */
.loopd .ld-vis { height: 92px; margin-top: 16px; }
.loopd svg.ld-vis { width: 100%; }
.loopd .ld-thumbs { gap: 14px; }
.loopd .ld-thumbs span { height: 92px; border-width: 3px; border-radius: 12px; }
.loopd .ld-thumbs i { width: 24px; height: 24px; font-size: 14px; right: 4px; top: 4px; }
.loopd .ld-nodes { font-size: 15px; gap: 8px; }
.loopd .ld-nodes span { padding: 7px 14px; border-radius: 9px; }
.loopd .ld-nodes i { width: 16px; }
.loopd .ld-1 { width: min(100%, 900px); padding: 24px 28px; }
/* contributions: what to contribute, stated plainly */
.give { background: var(--agent); color: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px); }
.give-k { margin: 0 0 16px; font-size: 15px; font-weight: 700; opacity: .85; }
.give ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 28px; }
.give li { border-top: 2px solid rgba(255,255,255,.45); padding-top: 12px; min-width: 0; }
.give b { display: block; font-size: clamp(1.25rem, 2.1vw, 1.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.give span { display: block; margin-top: 6px; font-size: 15px; opacity: .9; line-height: 1.4; }
.cov-k { margin: 28px 2px 12px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); font-weight: 600; color: var(--ink2); }
@media (max-width: 760px) { .give ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.brand-logo { width: 30px; height: 30px; flex: none; display: block; }
.v2 .brand .brand-logo { width: 34px; height: 34px; }

.loopd .ld-thumbs { justify-self: center; justify-content: center; }
.v2 .faq details p { max-width: none; margin-right: 44px; }
/* hero and nav share the sections' width, so the first screen does not stretch on wide monitors */
.v2 .hero-split.wrap, .v2 .nav .wrap { max-width: 1260px; }

/* with the hero capped, its type stops growing with the viewport */
.v2 .hero-split h1.title { font-size: clamp(2.2rem, 3.7vw, 2.95rem); }
.v2 .hero-split .zero { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.v2 .hero-split .subtitle { font-size: clamp(1.05rem, 1.4vw, 1.18rem); }
.v2 .viz-labels { font-size: clamp(.98rem, 1.3vw, 1.1rem); }
/* larger hero text inside the capped width */
.v2 .hero-split { grid-template-columns: minmax(0, 10fr) minmax(0, 11fr); }
.v2 .hero-split h1.title { font-size: clamp(2.4rem, 4.4vw, 3.5rem); line-height: 1.03; }
.v2 .hero-split .zero { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.v2 .hero-split .subtitle { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.5; max-width: none; }
@media (max-width: 960px) { .v2 .hero-split { grid-template-columns: minmax(0, 1fr); } }

/* gap section: larger chart on the left, a clean stat column on the right, aligned to the chart */
/* hero text back to its pre-cap size, inside the 1260px container; the text column takes a little more of the split */
.v2 .hero-split { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); column-gap: clamp(24px, 3vw, 44px); }
.v2 .hero-split h1.title { font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.02; }
.v2 .hero-split .zero { font-size: clamp(1.3rem, 2.3vw, 1.875rem); letter-spacing: -.035em; }
.v2 .hero-split .subtitle { font-size: clamp(1.12rem, 1.6vw, 1.34rem); }
.v2 .viz-labels { font-size: clamp(.92rem, 1.15vw, .98rem); gap: 6px 10px; }
@media (max-width: 960px) { .v2 .hero-split { grid-template-columns: minmax(0, 1fr); } }
/* first page: wider container, visualization as an equal partner to the headline */
.v2 .hero-split.wrap, .v2 .nav .wrap { max-width: 1440px; }
.v2 .hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 48px); }
.v2 .hero-split h1.title { font-size: clamp(2.4rem, 4.55vw, 4.1rem); }
.v2 .hero-split .zero { font-size: clamp(1.25rem, 2.05vw, 1.875rem); }
.v2 .viz-labels { font-size: clamp(.95rem, 1.25vw, 1.15rem); }
#traj { max-height: 72vh; }
@media (max-width: 960px) { .v2 .hero-split { grid-template-columns: minmax(0, 1fr); } }
/* loop: slightly smaller on desktop so the whole loop fits one screen */
@media (min-width: 900px) { .loopd { zoom: .86; } .loopd .ld-down { margin: 4px 0; } .loopd .ld-1 + .ld-down { margin-bottom: 22px; } }
/* author list */
.authors .au { white-space: nowrap; }
.authors sup, .affil sup { font-size: .65em; margin-left: 1px; }
.hero-split .affil { margin: 2px 0 0; }
/* hero links: one centered row under the title + teaser (like robosimstudio.github.io) */
.hero-split .buttons.hero-links { grid-column: 1 / -1; justify-content: center; margin-top: 8px; }
/* affiliation logos (hero) */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 18px; }
.logos img { display: block; height: 32px; width: auto; }
.logos .lg-nvidia { height: 26px; }
@media (max-width: 960px) { .logos { justify-content: center; } }
/* author names: slightly larger */
.hero-split .authors { font-size: 17px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.hero-split .affil { color: var(--ink2); }
/* logos: larger */
.logos { gap: 28px; margin-top: 22px; }
.logos img { height: 42px; }
.logos .lg-nvidia { height: 34px; }
/* hero: fewer visible words (eyebrow tag instead of a second headline, wider text column) */
.hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 12px;
  border-radius: 999px; background: var(--agent-soft);
  color: var(--agent); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow span { opacity: .5; }
.hero-split .subtitle { color: var(--ink3); line-height: 1.55; }
.eyebrow { text-transform: uppercase; white-space: nowrap; }
@media (max-width: 560px) { .eyebrow { font-size: 11px; padding: 5px 11px 5px 10px; gap: 6px; letter-spacing: .01em; } }
.hero-split .subtitle { text-wrap: pretty; max-width: none; }
@media (max-width: 960px) { .hero-split .subtitle { margin: 0 auto; } }
.authors a.au { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s, color .2s; }
.authors a.au:hover, .authors a.au:focus-visible { color: var(--agent); background-size: 100% 1px; }
@media (min-width: 961px) { .v2 .hero-split { grid-template-columns: minmax(0, 21fr) minmax(0, 19fr); } }

.eyebrow { text-transform: none; letter-spacing: .01em; font-size: 14px; }
/* names and logos: slightly larger */
.hero-split .authors { font-size: 18.5px; }
.logos img { height: 46px; }
.logos .lg-nvidia { height: 37px; }
/* tag: larger, no dot */
.eyebrow { font-size: 17px; padding: 7px 18px; letter-spacing: 0; }
@media (max-width: 560px) { .eyebrow { font-size: 15px; padding: 6px 15px; } }
.v2 .hero-split .hero p.eyebrow { font-size: 21px; padding: 8px 20px; margin-bottom: 20px; }
@media (max-width: 560px) { .v2 .hero-split .hero p.eyebrow { font-size: 17px; padding: 6px 16px; } }
/* "Fully Autonomous" tag: refined pill */
.v2 .hero-split .hero p.eyebrow {
  gap: 9px; padding: 8px 18px 8px 14px; font-weight: 650; letter-spacing: -.005em;
  background: linear-gradient(135deg, var(--agent-soft), color-mix(in srgb, var(--agent-soft) 55%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--agent) 22%, transparent), 0 1px 2px color-mix(in srgb, var(--agent) 12%, transparent);
}
.v2 .hero-split .hero p.eyebrow svg { width: .95em; height: .95em; flex: none; }
/* names and logos: slightly larger (2) */
.hero-split .authors { font-size: 20px; }
.logos img { height: 52px; }
.logos .lg-nvidia { height: 42px; }
@media (max-width: 560px) { .hero-split .authors { font-size: 18px; } .logos img { height: 44px; } .logos .lg-nvidia { height: 35px; } }
/* "Fully Autonomous": plain label above the title (no pill) */
.v2 .hero-split .hero p.eyebrow.eyebrow-plain {
  display: block; background: none; box-shadow: none; padding: 0; margin: 0 0 14px;
  font-size: 20px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--agent);
}
@media (max-width: 560px) { .v2 .hero-split .hero p.eyebrow.eyebrow-plain { font-size: 17px; margin-bottom: 10px; } }
/* gap stats: centre both numbers and labels */
.bac-note { display: block; font-size: 11px; opacity: .75; margin-top: 2px; }
.bac-v .rw { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 2px 7px; border-radius: 6px; letter-spacing: .01em; }

.path-title .pt-ho { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink3); margin-top: 2px; }

.pc-ho line { stroke: var(--ink3); stroke-width: 2.5; stroke-dasharray: 5 5; }
.pc-ho circle { stroke: var(--surface); stroke-width: 4; }
.pc-ho.off line { opacity: .4; }
/* ==== Teacher–student gap (c2g) ==== */
/* one row per task: navy pill = privileged-code range, orange dots = its policies, pale band = the gap (paper Figure 2 data) */
.c2g-grid { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); align-items: stretch; }
.c2g-fig { margin: 0; display: flex; }
.c2g-card, .c2g-stats { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.c2g-card { flex: 1; min-width: 0; padding: clamp(20px, 2.6vw, 36px) clamp(20px, 2.8vw, 40px) clamp(16px, 2vw, 26px); display: flex; flex-direction: column; }
.c2g-leg { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; font-weight: 600; color: var(--ink2); padding-bottom: clamp(16px, 2vw, 24px); }
.c2g-leg span, .c2g-sl { display: inline-flex; align-items: center; gap: 9px; }
.c2g-leg i, .c2g-sl i { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.c2g-grid .lc { background: var(--expert); } .c2g-grid .lp { background: var(--before); }
.c2g-leg .lg { width: 28px; border-radius: 6px; background: color-mix(in srgb, var(--before) 18%, transparent); }
.c2g-grid .vp { color: var(--before); } .c2g-grid .vc { color: var(--expert); }
.c2g-grid .dash { margin: 0 .3em; font-weight: 600; opacity: .55; }

.c2g-task { flex: 1; display: grid; grid-template-columns: minmax(120px, 205px) minmax(0, 1fr) 118px; column-gap: clamp(16px, 2vw, 28px); align-items: center; border-top: 1px solid var(--line); }
.c2g-name { font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.c2g-track { position: relative; align-self: stretch; min-height: 76px; margin: 0 12px;
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-size: 1px 100%; background-repeat: no-repeat; background-position: 0 0, 25% 0, 50% 0, 75% 0, 100% 0; }
.c2g-track i { position: absolute; top: 50%; }
.c2g-band { left: var(--a); width: calc(var(--b) - var(--a)); height: 28px; margin-top: -14px; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: color-mix(in srgb, var(--before) 15%, var(--surface));
  transition: left 1.3s cubic-bezier(.2,.8,.2,1) .25s, width 1.3s cubic-bezier(.2,.8,.2,1) .25s; }
.c2g-band span { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--before) 78%, var(--ink)); padding-left: 6px; transition: opacity .6s ease 1.2s; }
.c2g-code { left: var(--b); width: calc(var(--e) - var(--b) + 18px); height: 18px; margin: -9px 0 0 -9px; border-radius: 9px; background: var(--expert); box-shadow: 0 0 0 2.5px var(--surface); z-index: 1; }
.c2g-pol { left: var(--p); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--before); box-shadow: 0 0 0 2.5px var(--surface), 0 2px 5px rgba(22,22,28,.22); z-index: 2; transition: left 1.3s cubic-bezier(.2,.8,.2,1) var(--d); }
/* before the chart scrolls into view each policy sits on its privileged code; then it drops to its real success */
.c2g-fig:not(.in) .c2g-pol { left: var(--c); }
.c2g-fig:not(.in) .c2g-band { left: var(--b); width: 0; }
.c2g-fig:not(.in) .c2g-band span { opacity: 0; }
.c2g-val { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.5; }
.c2g-val b { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.c2g-axis { flex: none; border-top: 1px solid var(--line); padding-top: 10px; }
.c2g-ax { position: relative; height: 18px; margin: 0 12px; font-size: 12.5px; font-weight: 500; color: var(--ink3); font-variant-numeric: tabular-nums; }
.c2g-ax span { position: absolute; transform: translateX(-50%); }

.c2g-stats { display: grid; grid-template-rows: 1fr 1fr; }
.c2g-stat { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 34px); text-align: left; }
.c2g-stat + .c2g-stat { border-top: 1px solid var(--line); }
.c2g-sl { font-size: 14.5px; font-weight: 600; color: var(--ink2); line-height: 1.3; }
.c2g-stat b { display: block; font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c2g-stat b .dash { margin: 0 .22em; letter-spacing: 0; }

@media (max-width: 1040px) {
  .c2g-grid { grid-template-columns: minmax(0, 1fr); }
  .c2g-stats { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .c2g-stat + .c2g-stat { border-top: 0; border-left: 1px solid var(--line); }
  .c2g-stat b { font-size: clamp(2.2rem, 6vw, 3.2rem); }
}
@media (max-width: 640px) {
  .c2g-leg { gap: 8px 20px; font-size: 13.5px; }
  .c2g-task { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding-top: 14px; }
  .c2g-task .c2g-track { grid-column: 1 / -1; grid-row: 2; min-height: 52px; margin-top: 4px; }
  .c2g-name { font-size: 16px; }
  .c2g-val b { font-size: 13.5px; }
  .c2g-axis { padding-top: 8px; } .c2g-axis > div:not(.c2g-ax) { display: none; } .c2g-axis .c2g-ax { grid-column: 1 / -1; }
  .c2g-stats { grid-template-columns: minmax(0, 1fr); }
  .c2g-stat + .c2g-stat { border-left: 0; border-top: 1px solid var(--line); }
  .c2g-stat b { font-size: clamp(2.4rem, 12vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) { .c2g-band, .c2g-band span, .c2g-pol { transition: none; } }

/* contribute: links to the repository's guide and task-request form */
.contrib-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* site-wide scale: everything 95% on desktop (matches the 95% browser zoom the page was tuned at) */
@media (min-width: 900px) { html { zoom: 0.95; } }
