/* Before We Act — project page styles. Light, single-theme design:
   white ground, near-black ink, one orange accent; teal marks teammate
   response and gray marks replayed behavior, matching the paper figures. */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #45443f;
  --muted: #7a786f;
  --hair: #e8e6e0;
  --cream: #f5f3ee;
  --cream-2: #ebe8e1;
  --accent: #e86f00;
  --accent-ink: #b85600;
  --accent-soft: #fff1e4;
  --teal: #159a8c;
  --teal-soft: #e3f4f1;
  --blue: #2f6bff;
  --blue-soft: #e8efff;
  --gray: #9a978f;
  --gray-soft: #efeee9;
  --coral: #d95c59;
  --coral-soft: #fbe9e8;
  --good: #1b8f3a;
  --good-soft: #e6f5ea;
  --radius: 24px;
  --radius-s: 14px;
  --pad: max(5vw, 20px);
  --max: 1180px;
  --wide: 1400px;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
sup, sub { line-height: 0; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 0.94em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.dim { opacity: 0.45; }
.c-teal { color: var(--teal); font-weight: 600; }
.c-gray { color: var(--muted); font-weight: 600; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-stuck { border-bottom-color: var(--hair); }
.brand { font-weight: 500; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 400; }
.nav nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav nav::-webkit-scrollbar { display: none; }
@media (max-width: 860px) {
  .nav nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); padding-right: 40px; }
}
.nav nav a {
  text-decoration: none; font-size: 14px; color: var(--ink-2);
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.nav nav a:hover, .nav nav a.is-active { color: var(--ink); background: var(--cream); }
.nav nav a.nav-cta { color: #fff; background: var(--ink); margin-left: 6px; }
.nav nav a.nav-cta:hover { background: #333; }

/* ---------- layout ---------- */
main { display: block; }
.section { padding: clamp(56px, 8vw, 120px) var(--pad); max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; }
.section.band { max-width: none; background: var(--cream); }
.section.band > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.section-head { max-width: 900px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.sub { margin-top: clamp(48px, 7vw, 96px); }
.section-lede { margin-top: 16px; color: var(--ink-2); max-width: 760px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; font-weight: 300; letter-spacing: -0.03em; text-wrap: balance; }
h2.h3 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.prose { max-width: 720px; }
.prose p + p { margin-top: 1em; }
.prose.wide { max-width: 900px; margin-top: 28px; color: var(--ink-2); }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cols > * { min-width: 0; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) var(--pad) clamp(40px, 6vw, 80px); text-align: center; max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { font-size: clamp(52px, 9vw, 120px); line-height: 0.98; font-weight: 300; letter-spacing: -0.045em; }
.subtitle { margin: 20px auto 0; max-width: 880px; font-size: clamp(19px, 2.4vw, 28px); line-height: 1.3; font-weight: 300; letter-spacing: -0.015em; color: var(--ink-2); text-wrap: balance; }
.authors { margin-top: 28px; }
.author-names { font-size: 18px; }
.author-names a { text-decoration: none; border-bottom: 1px solid var(--hair); }
.author-names a:hover { border-bottom-color: var(--ink); }
.affils { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.venue { margin-top: 6px; color: var(--muted); font-size: 14px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #333; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn[aria-disabled="true"] { border-color: var(--hair); color: var(--muted); cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: transparent; color: var(--muted); }
.btn .soon { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--cream-2); color: var(--muted); padding: 2px 6px; border-radius: 999px; }

.hero-video { position: relative; margin: clamp(32px, 5vw, 56px) auto 0; border-radius: var(--radius); overflow: hidden; background: #ddd; aspect-ratio: 16 / 9; max-width: var(--wide); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-video figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 20px; text-align: left;
  color: #fff; font-size: 14px; line-height: 1.45;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0));
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none;
}
.hero-video figcaption > span:last-child { max-width: 640px; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.pill { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--ink); }
.pill.neutral { background: var(--cream-2); color: var(--ink-2); }
.pill.bad { background: var(--coral-soft); color: #9c2f2c; }
.pill.good { background: var(--good-soft); color: #14602a; }
.video-toggle {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.9); cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s;
}
.hero-video:hover .video-toggle, .video-toggle:focus-visible { opacity: 1; }
.video-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.video-toggle .ic-play { display: none; }
.video-toggle.is-paused .ic-play { display: block; fill: var(--ink); }
.video-toggle.is-paused .ic-pause { display: none; }
@media (max-width: 720px) {
  .hero-video { border-radius: var(--radius-s); }
  .hero-video figcaption { padding: 36px 14px 12px; font-size: 12.5px; }
  .video-toggle { opacity: 1; }
}
@media (max-width: 560px) {
  .hero-video figcaption > span:last-child { display: none; }
  .hero-video figcaption { padding-top: 28px; }
}

.claim { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 980px; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2; font-weight: 300; letter-spacing: -0.03em; text-wrap: balance; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: clamp(32px, 5vw, 56px) auto 0; max-width: 1080px; text-align: left; }
.kpi { padding: 22px 24px; border: 1px solid var(--hair); border-radius: 18px; background: var(--bg); }
.kpi-label { font-size: 14px; color: var(--muted); }
.kpi-value { margin-top: 6px; font-size: 52px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.kpi-value span { font-size: 0.5em; font-weight: 400; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.kpi-delta { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.kpi-delta b { color: var(--good); font-weight: 600; }
.kpis.compact { margin: 0; grid-template-columns: 1fr; gap: 12px; }
.kpis.compact .kpi-value { font-size: 40px; }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr; } }

/* ---------- contributions ---------- */
.contrib { padding: 26px 26px 22px; border-radius: 18px; background: var(--cream); }
.contrib-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.contrib ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.contrib li::marker { color: var(--accent); font-weight: 600; }
.contrib b { color: var(--ink); }

/* ---------- compare ---------- */
.compare { margin-top: clamp(48px, 7vw, 96px); }
.compare-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.compare-head h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; letter-spacing: -0.02em; max-width: 720px; text-wrap: balance; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--cream-2); gap: 2px; flex-shrink: 0; }
.section.band .seg { background: #e2dfd7; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.seg.small button { padding: 6px 12px; font-size: 13px; }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cmp-item { margin: 0; }
.cmp-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-s); background: var(--cream); }
.cmp-item figcaption { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.cmp-item figcaption .pill { margin-bottom: 8px; margin-right: 8px; }
.cmp-item figcaption > span:last-child { display: block; }
@media (max-width: 860px) { .compare-grid { grid-template-columns: 1fr; } }

/* ---------- method ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 26px 26px 26px; border-radius: 18px; background: var(--bg); border: 1px solid var(--hair); }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); letter-spacing: 0.1em; }
.steps h3 { margin: 10px 0 10px; }
.steps p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }

.decomp { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 3vw, 32px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--hair); align-items: center; }
.decomp-grid { display: grid; grid-template-columns: 120px 1fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 10px; }
.dg-corner { display: grid; place-items: center; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.35; }
.dg-colhead { text-align: center; font-size: 14px; font-weight: 500; padding: 8px 6px; border-radius: 10px; background: var(--cream); color: var(--ink-2); }
.dg-colhead.accent { background: var(--accent-soft); color: var(--accent-ink); }
.dg-rowhead { display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.25; }
.dg-rowhead small { font-size: 12px; opacity: 0.8; margin-top: 3px; }
.dg-rowhead.teal { background: var(--teal-soft); color: #0e6b62; }
.dg-rowhead.gray { background: var(--gray-soft); color: #5c5a54; }
.dg-tile {
  min-height: 108px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--hair); background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center;
  transition: border-color .25s, background .25s, opacity .25s, transform .25s;
}
.dg-tile .dg-y { font-size: 26px; font-weight: 300; letter-spacing: -0.02em; }
.dg-tile small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.decomp.is-focus .dg-tile:not(.is-on) { opacity: 0.32; }
.dg-tile.is-on { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.dg-tile.is-on.tone-teal { border-color: var(--teal); background: var(--teal-soft); }
.dg-tile.is-on.tone-gray { border-color: var(--gray); background: var(--gray-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--hair); background: var(--bg); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.chips button:hover { border-color: var(--ink); color: var(--ink); }
.chips button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.decomp-formula { margin-top: 20px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; letter-spacing: -0.02em; min-height: 1.3em; }
.decomp-formula .tk-teal { color: var(--teal); }
.decomp-formula .tk-gray { color: var(--muted); }
.decomp-formula .tk-accent { color: var(--accent-ink); }
.decomp-text { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; min-height: 4.2em; }
.decomp-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .decomp { grid-template-columns: 1fr; }
  .decomp-grid { grid-template-columns: 92px 1fr 1fr; }
  .dg-tile { min-height: 92px; }
  .dg-tile .dg-y { font-size: 22px; }
  .decomp-text { min-height: 0; }
}
@media (max-width: 480px) {
  .decomp-grid { grid-template-columns: 76px 1fr 1fr; gap: 6px; }
  .dg-rowhead { padding: 8px; font-size: 12px; }
  .dg-rowhead small { display: none; }
  .dg-tile small { display: none; }
  .dg-tile { min-height: 72px; padding: 8px; }
  .dg-corner { font-size: 10px; }
}

.figure { margin: clamp(32px, 5vw, 56px) 0 0; }
.figure img { width: 100%; border-radius: var(--radius-s); background: var(--bg); border: 1px solid var(--hair); }
.section.band .figure img { border-color: transparent; }
.figure figcaption { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; max-width: 1000px; }
.figure figcaption a { color: var(--muted); text-decoration: none; margin-left: 4px; white-space: nowrap; }
.figure figcaption a:hover { color: var(--ink); }

.theory { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.theory-card { padding: 24px; border-radius: 18px; background: var(--bg); border: 1px solid var(--hair); }
.theory-card .eyebrow { margin-bottom: 10px; }
.theory-card h3 { font-size: 19px; }
.theory-card p:last-child { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 960px) { .theory { grid-template-columns: 1fr; } }

/* ---------- charts ---------- */
.chart { margin: 0; padding: clamp(18px, 2.5vw, 28px); border: 1px solid var(--hair); border-radius: var(--radius); background: var(--bg); }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.chart-title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.chart-sub { margin-top: 4px; font-size: 14px; color: var(--muted); max-width: 640px; }
.chart-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.select select { font: inherit; font-size: 13px; padding: 6px 30px 6px 12px; border-radius: 999px; border: 1px solid var(--hair); background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a786f' stroke-width='2.2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 11px center; appearance: none; -webkit-appearance: none; color: var(--ink); cursor: pointer; }
.chart-body { width: 100%; }
.chart-body svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.chart-body.multiples { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-body.multiples .mult-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
@media (max-width: 640px) { .chart-body.multiples { grid-template-columns: 1fr; } }
.hb-head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--muted); }
.hb-label { font-size: 13.5px; fill: var(--ink-2); }
.hb-value { font-size: 13px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.hb-note { font-size: 12px; fill: var(--muted); }
.hb-row.is-ours .hb-label { fill: var(--ink); font-weight: 600; }
.hb-row.is-ours .hb-value { font-weight: 600; }
.hb-row.hover .hb-bar { opacity: 0.8; }
.hb-bar { transition: opacity .12s; }
.hb-hit { cursor: default; }
.sc-grid { stroke: var(--hair); stroke-width: 1; }
.sc-axis { stroke: #c9c6bd; stroke-width: 1; }
.sc-tick { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.sc-title { font-size: 12.5px; fill: var(--muted); }
.sc-label { font-size: 13px; fill: var(--ink-2); }
.sc-label.is-ours { fill: var(--ink); font-weight: 600; }
.sc-pt { transition: r .12s; }
.tip {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.35;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18); max-width: 280px; will-change: transform;
}
.tip-row { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.tip-row + .tip-row { margin-top: 3px; }
.tip-row.strong { font-weight: 600; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.18); }
.tip-row.strong .tip-k { display: none; }
.tip-v { font-variant-numeric: tabular-nums; order: 2; }
.tip-k { color: rgba(255,255,255,0.7); order: 1; }
.tip-row.strong .tip-v { order: 1; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td { padding: 8px 10px; border-bottom: 1px solid var(--hair); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; white-space: normal; }
.data-table th { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.data-table tr.is-ours td { font-weight: 600; background: var(--accent-soft); }
.data-table tr.is-group td { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 14px; border-bottom: 0; }
.chart-table { overflow-x: auto; }

.results-row { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .results-row { grid-template-columns: 1fr; } }
.mech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mech-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 900px) { .mech-grid { grid-template-columns: 1fr; } }

/* ---------- simulation tasks ---------- */
.tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.task { padding: 18px; border-radius: 18px; background: var(--bg); }
.task-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.task-strip figure { margin: 0; position: relative; }
.task-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--cream); }
.task-strip figcaption { position: absolute; left: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 5px; background: rgba(255,255,255,0.92); color: var(--ink); font-family: var(--mono); font-size: 11px; display: grid; place-items: center; }
.task-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.task-meta h3 { font-size: 17px; }
.task-meta .robots { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.task-sr { font-family: var(--mono); font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.task-sr.mid { background: var(--cream-2); color: var(--ink-2); }
.task p.desc { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 760px) { .tasks { grid-template-columns: 1fr; } }
.mars-line { margin-top: 24px; font-size: 14.5px; color: var(--ink-2); max-width: 1000px; }

/* ---------- real robots ---------- */
.real-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.real-card { display: flex; flex-direction: column; gap: 16px; }
.real-video { margin: 0; border-radius: var(--radius-s); overflow: hidden; background: #ddd; aspect-ratio: 16 / 9; }
.real-video video { width: 100%; height: 100%; object-fit: cover; }
.real-text h3 { margin-top: 4px; font-size: 21px; }
.real-text p:not(.eyebrow) { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.chapters { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.chapters button { border: 0; background: var(--cream); font-family: var(--mono); font-size: 12.5px; padding: 3px 8px; border-radius: 6px; cursor: pointer; margin-right: 6px; color: var(--ink); }
.chapters button:hover { background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 860px) { .real-grid { grid-template-columns: 1fr; } }

.keyframes { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 28px; }
.kf-title { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.kf-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: kf; }
.kf-strip li { position: relative; }
.kf-strip li::before { counter-increment: kf; content: counter(kf); position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.92); font-family: var(--mono); font-size: 12px; display: grid; place-items: center; }
.kf-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--cream); }
.kf-strip p { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.arm { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.v-act { color: var(--accent-ink); font-weight: 600; }
.v-wait { color: var(--teal); font-weight: 600; }
.v-move { color: var(--blue); font-weight: 600; }
.kf-legend { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .kf-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- bib ---------- */
.bib pre { margin: 0 0 12px; max-width: 100%; padding: 18px 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--hair); font-family: var(--mono); font-size: 13px; line-height: 1.5; overflow-x: auto; }
.bib .eyebrow { margin-bottom: 14px; }
.btn.is-done { background: var(--good); border-color: var(--good); color: #fff; }

/* ---------- footer ---------- */
.footer { padding: 40px var(--pad) 56px; text-align: center; font-size: 13.5px; color: var(--muted); }
.footer a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hair); }
.footer a:hover { border-bottom-color: var(--ink); }
.footer p + p { margin-top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
