@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Semantic accents sampled from the final paper, Figures 1, 2 and 4. */
  --robot: #2736c2;
  --human: #e6730d;
  --teal: #0e7c7b;
  --ours: var(--teal);
  /* Baselines are neutral; only SALA results receive a colored chart accent. */
  --vla: #888888;
  --wam: #aaaaaa;
  --lam: #cccccc;
  --gray: #888888;
  --gray2: #cccccc;

  --ink: #171717;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --bg: #ffffff;
  --bg-tint: #f7f7f7;
  --card: #ffffff;

  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 3px 12px rgba(0, 0, 0, 0.06);
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --serif-math: "Cambria Math", "STIX Two Math", "Latin Modern Math", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
sub, sup { font-size: 0.68em; line-height: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; line-height: 1.5; }
.c-robot { color: var(--robot); font-weight: 600; }
.c-human { color: var(--human); font-weight: 600; }
.c-ours { color: var(--ours); font-weight: 600; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.86); }
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; justify-content: center;
}
.nav { display: flex; max-width: 100%; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-2); font-size: 0.9rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover { background: var(--bg-tint); text-decoration: none; }
.nav a.is-active { background: var(--ink); color: #fff; }

/* ---------- video hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 640px;
  width: 100%; aspect-ratio: 2310 / 1080;
  display: flex; align-items: center; padding: 50px 0 78px; background: #171717; color: #fff;
}
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: contain; object-position: center; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.6); pointer-events: none; }
.hero-inner { max-width: 1100px; }
.hero-copy { min-width: 0; text-align: center; }
.title { max-width: 960px; margin: 0 auto; font-size: clamp(24px, 2.5vw, 34px); font-weight: 600; color: #fff; letter-spacing: -0.025em; line-height: 1.28; text-wrap: balance; }
.title-phrase { white-space: nowrap; }
.authors { margin: 22px 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 24px; font-size: 0.85rem; font-weight: 500; }
.authors sup { color: #e6e6e6; margin-left: 1px; }
.affil { margin: 0 0 22px; color: #f5f5f5; font-size: 0.76rem; line-height: 1.6; }
.affil-line { display: inline-block; margin: 0 8px; }
.affil-line:last-child { display: block; margin-top: 4px; }
.hero .muted { color: #e6e6e6; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .links { justify-content: center; }
.hero .links .btn { padding: 8px 14px; font-size: 0.8rem; gap: 7px; justify-content: center; box-shadow: none; color: #fff; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.55); }
.hero .links .btn-dark:not(.is-soon) { color: var(--ink); background: #fff; border-color: #fff; }
.hero .links .btn.is-soon { opacity: 1; }
.hero .links .btn svg { width: 15px; height: 15px; }
.hero .links .btn em { padding: 1px 5px; font-size: 0.57rem; }
.hero-video-footer { position: absolute; bottom: 20px; left: 32px; right: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-video-note { font-size: 11px; letter-spacing: 0.04em; color: #fff; }
.hero-video-toggle { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; background: rgba(0, 0, 0, 0.3); color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.hero-video-toggle:hover { background: rgba(0, 0, 0, 0.6); }
.hero .btn:focus-visible, .hero-video-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); }
.btn-dark:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn em { font-style: normal; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.btn.is-soon { cursor: default; opacity: 0.86; }
.btn.is-soon:hover { transform: none; }
.btn:not(.is-soon) em { display: none; }
/* ---------- overview: a single summary, figure and optional abstract ---------- */
.overview-section { padding: 60px 0 48px; }
.intro-summary { max-width: 980px; margin: 0 0 40px; text-align: left; }
.summary-label { display: flex; align-items: center; justify-content: flex-start; gap: 12px; font-size: 0.7rem; line-height: 1.5; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.summary-label::after { content: ""; width: 28px; height: 1px; background: var(--line); }
.summary-headline { max-width: 980px; margin: 16px 0 14px; font-size: clamp(22px, 2vw, 28px); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.tldr { max-width: 900px; margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.75; text-wrap: pretty; }
.overview-teaser { margin: 0; }
.overview-teaser figcaption { font-size: 0.83rem; }
.abstract-details { margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.abstract-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 0.88rem; font-weight: 600; }
.abstract-details summary::-webkit-details-marker { display: none; }
.abstract-details summary:hover { color: var(--muted); }
.abstract-details summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.abstract-toggle { font-size: 22px; font-weight: 400; line-height: 1; }
.abstract-details[open] .abstract-toggle { transform: rotate(45deg); }
.abstract-details .abstract-body { max-width: 860px; margin: 8px auto 30px; font-size: 0.96rem; }
.abstract-details .abstract-body p { text-align: left; hyphens: none; }

/* ---------- sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--bg-tint); }
.section-head { margin: 0 0 36px; text-align: left; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 0; margin-bottom: 16px;
}
.section-title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.025em; margin-bottom: 16px; }
.lead { max-width: 920px; font-size: 1rem; line-height: 1.7; color: var(--ink-2); margin: 0; }
.sub-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.prose { margin-top: 0; }
.prose p { color: var(--ink-2); text-align: justify; hyphens: auto; }

/* ---------- figures ---------- */
.figure { margin: 0 0 36px; }
.figure img {
  width: 100%; border-radius: 0; background: #fff;
  border: 0; box-shadow: none; padding: 0;
}
.figure-flat img { box-shadow: none; padding: 0; border: none; border-radius: var(--radius-sm); }
.figure figcaption { margin: 14px 0 0; font-size: 0.84rem; line-height: 1.65; color: var(--muted); text-align: left; }
.figure figcaption strong, .figure figcaption b { color: var(--ink-2); }
[data-zoom] { cursor: zoom-in; }

/* ---------- insight ---------- */
.insight { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; margin: 36px 0; }
.insight-card { padding: 22px 0 0; border-top: 1px solid var(--line); }
.insight-card h3 { font-size: 1.25rem; margin: 6px 0 10px; }
.insight-card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.insight-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.insight-card.problem .insight-kicker { color: var(--muted); }
.insight-card.idea .insight-kicker { color: var(--ink); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 32px; margin-top: 8px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.card {
  background: transparent; border-top: 1px solid var(--line);
  padding: 24px 0 0; display: flex; flex-direction: column;
}
.card h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.card p { color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.card-icon svg { width: 24px; height: 24px; }
.ic-robot, .ic-ours, .ic-teal { color: var(--ink); background: var(--bg-tint); }
.math .katex { font-size: 1.05em; }

/* ---------- pipeline ---------- */
.pipeline {
  margin-top: 40px; padding: 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.pipeline-title { font-size: 1.25rem; margin-bottom: 6px; }
.pipeline-sub { color: var(--muted); font-size: 0.94rem; margin-bottom: 22px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.stage { position: relative; padding: 20px 20px 18px; border-radius: 14px; background: var(--bg-tint); border-top: 2px solid var(--line); }
.stage:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 50%; width: 12px; height: 12px;
  border-top: 2px solid var(--gray); border-right: 2px solid var(--gray); transform: translateY(-50%) rotate(45deg);
}
.stage-num {
  position: absolute; top: 16px; right: 18px; font-size: 2rem; font-weight: 800; color: rgba(0, 0, 0, 0.07); line-height: 1;
}
.stage h4 { font-size: 1.05rem; margin-bottom: 4px; }
.stage .tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); background: #fff; padding: 1px 7px; border-radius: 999px; vertical-align: middle; margin-left: 4px; }
.stage-data { font-size: 0.88rem; margin-bottom: 10px; }
.stage p:last-child { font-size: 0.9rem; color: var(--ink-2); margin: 0; }

/* ---------- panels & charts ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow); margin-bottom: 36px;
}
.panel h3 { font-size: 1.2rem; margin-bottom: 6px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head > div:first-child { flex: 1 1 380px; }
.panel-head p { margin: 0; }
.panel-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 0.94rem; }
.pt-key { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; padding: 0 6px; border-radius: 4px; border: 1px solid var(--gray); color: var(--muted); line-height: 1.5; }

.seg { display: inline-flex; padding: 4px; background: var(--bg-tint); border-radius: 999px; border: 1px solid var(--line); gap: 2px; }
.seg-wrap { flex-wrap: wrap; border-radius: 18px; }
.seg-btn {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: 0.88rem; font-weight: 600;
  color: var(--ink-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.seg-btn:focus-visible, .copy-btn:focus-visible, .nav a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.84rem; color: var(--ink-2); margin-bottom: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-vla { background: var(--vla); }
.sw-wam { background: var(--wam); }
.sw-lam { background: var(--lam); }
.sw-ours { background: var(--ours); }
.sw-gray { background: var(--gray); }
.sw-gray2 { background: var(--gray2); }

.hbars { display: flex; flex-direction: column; gap: 7px; }
.hbar { display: grid; grid-template-columns: 170px 1fr 56px; align-items: center; gap: 12px; transition: transform 0.5s ease; }
.hbar-name { font-size: 0.92rem; font-weight: 500; display: flex; align-items: center; justify-content: flex-end; gap: 6px; text-align: right; white-space: nowrap; }
.hbar-track { height: 22px; background: var(--bg-tint); border-radius: 6px; overflow: hidden; }
.hbar-fill { height: 100%; width: 0; border-radius: 6px; transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hbar-val { font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hbar.is-ours .hbar-name, .hbar.is-ours .hbar-val { color: var(--ours); font-weight: 800; }
.hbar.is-ours .hbar-track { outline: 1px solid var(--line); }

.vbars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: start; padding-top: 22px; }
.vgroup { display: flex; flex-direction: column; align-items: center; }
.vgroup-bars { display: flex; align-items: flex-end; gap: 6px; height: 220px; width: 100%; justify-content: center; border-bottom: 1px solid var(--line); }
.vbar { position: relative; width: 26%; max-width: 40px; height: 0; border-radius: 6px 6px 0 0; transition: height 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vbar span { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 4px; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vbar.is-ours span { color: var(--ours); font-weight: 800; }
.vgroup-label { margin-top: 10px; font-size: 0.86rem; font-weight: 600; text-align: center; line-height: 1.3; }
.vgroup.is-avg .vgroup-bars { background: var(--bg-tint); border-radius: 10px 10px 0 0; }
.vgroup.is-avg .vgroup-label { color: var(--ink); }

/* ---------- platform ---------- */
.platform { display: grid; grid-template-columns: 320px 1fr; gap: 28px; margin-bottom: 40px; align-items: center; }
.platform > *, .ablation > *, .cards > *, .insight > *, .stages > *, .task-meta > * { min-width: 0; }
.platform-img img { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.platform-info h3 { font-size: 1.5rem; margin-bottom: 14px; }
.spec { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.spec li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.spec li span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec li b { font-size: 0.94rem; font-weight: 600; }
.data-table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; overflow-x: auto; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tbl th { font-weight: 700; text-align: left; color: var(--ink-2); padding: 8px 10px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child td { border-bottom: 1.5px solid var(--ink); }
.tbl .num { text-align: right; }
.tbl-center th, .tbl-center td { text-align: center; }
.tbl-center .left { text-align: left; }
.tbl .hl { background: var(--bg-tint); color: var(--ink); }
.tbl .grp td { text-align: left; font-style: italic; color: var(--muted); background: var(--bg-tint); font-size: 0.84rem; }
.table-scroll { overflow-x: auto; margin: 20px 0 10px; }

/* ---------- task tabs ---------- */
.task-tabs { margin-bottom: 40px; }
.task-view { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.task-strip { position: relative; aspect-ratio: 2200 / 470; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.task-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.45s ease; cursor: zoom-in; }
.task-strip img.is-active { opacity: 1; }
.task-meta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; padding: 14px 6px 4px; }
.task-meta h4 { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.task-meta p { margin: 0 0 10px; font-size: 0.94rem; color: var(--ink-2); }
.task-demos { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-chip { flex: 1 1 150px; border-radius: 12px; padding: 10px 12px; background: var(--bg-tint); border-left: 4px solid var(--gray); }
.demo-chip.robot { border-left-color: var(--robot); }
.demo-chip.human { border-left-color: var(--human); }
.demo-chip b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.demo-chip span { font-size: 0.8rem; color: var(--muted); }

/* ---------- axis cards ---------- */
.axis { padding-top: 22px; }
.axis-badge { align-self: flex-start; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: var(--bg-tint); padding: 4px 10px; border-radius: 999px; }

/* ---------- ablation ---------- */
.ablation { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ablation .panel { margin-bottom: 0; }
.ablation-fig { margin: 0; }
.ablation-fig img { margin-top: 12px; }
.ablation-fig figcaption { text-align: left; margin-top: 12px; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.abl { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 10px; }
.abl-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.abl-name { font-size: 0.9rem; font-weight: 600; text-align: right; }
.abl-row.is-ours .abl-name { color: var(--ours); }
.abl-bars { display: flex; flex-direction: column; gap: 4px; }
.abl-bar { display: grid; grid-template-columns: 54px 1fr 40px; gap: 8px; align-items: center; font-size: 0.78rem; color: var(--muted); }
.abl-track { height: 12px; background: var(--bg-tint); border-radius: 4px; overflow: hidden; }
.abl-fill { height: 100%; width: 0; border-radius: 4px; background: var(--gray); transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.abl-row.is-ours .abl-fill { background: var(--ours); }
.abl-bar b { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.abl-notes { margin: 14px 0 0; padding-left: 18px; font-size: 0.9rem; color: var(--ink-2); }
.abl-notes li { margin-bottom: 6px; }

/* ---------- bibtex ---------- */
.bib { position: relative; }
.bib pre {
  margin: 0; padding: 22px 24px; border-radius: var(--radius); background: #171717; color: #eeeeee;
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.65; overflow-x: auto; box-shadow: var(--shadow-lg);
}
.copy-btn {
  position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #eeeeee;
  font: inherit; font-size: 0.8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  transition: background 0.2s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.16); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.is-done { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- footer ---------- */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { text-align: center; }
.footer p { margin: 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 4vh 3vw; background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.22s ease; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hbar-fill, .vbar, .abl-fill, .task-strip img, .card { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cards-3 { grid-template-columns: 1fr; }
  .platform { grid-template-columns: 240px 1fr; }
  .ablation { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar-inner { padding: 0 14px; }
  .nav a { padding: 6px 9px; font-size: 0.84rem; }
  .br-wide { display: none; }
  .section { padding: 48px 0; }
  .overview-section { padding: 36px 0; }
  .intro-summary { margin-bottom: 32px; }
  .summary-headline { margin-top: 14px; }
  .tldr { font-size: 0.96rem; }
  .section-head { margin-bottom: 28px; }
  .container { padding: 0 16px; }
  .insight { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stage:not(:last-child)::after { right: 50%; top: auto; bottom: -14px; transform: translateX(50%) rotate(135deg); }
  .platform { grid-template-columns: 1fr; }
  .platform-img { max-width: 260px; margin: 0 auto; }
  .spec { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .hbar { grid-template-columns: 112px 1fr 46px; gap: 8px; }
  .hbar-name { font-size: 0.82rem; }
  .vbars { gap: 6px; }
  .vgroup-bars { height: 170px; gap: 3px; }
  .vbar span { font-size: 0.66rem; }
  .vgroup-label { font-size: 0.74rem; }
  .task-meta { grid-template-columns: 1fr; }
  .abl-row { grid-template-columns: 1fr; gap: 4px; }
  .abl-name { text-align: left; }
  .prose p { text-align: left; }
}
@media (max-width: 480px) {
  .topbar-inner { height: 48px; }
  .nav { width: 100%; }
}

/* Real-world demonstration player and speed selector. */
.demo-section { background: var(--bg); }
.demo-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; }
.demo-task-picker { display: grid; gap: 8px; flex: 1 1 600px; min-width: 0; }
.demo-speed-picker { display: grid; gap: 8px; }
.demo-task-options { border-radius: 12px; }
.demo-task-options .seg-btn { flex: 1; white-space: nowrap; }
.demo-toolbar-label { font-size: 0.88rem; font-weight: 600; }
.demo-speed-options { flex-shrink: 0; }
.demo-player { margin: 0; }
.demo-player video { display: block; width: 100%; height: auto; aspect-ratio: 2310 / 1080; object-fit: contain; background: #111; border-radius: 8px; }
.demo-player figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; font-size: 0.83rem; color: var(--muted); }
#demo-speed-label { white-space: nowrap; font-weight: 600; color: var(--ink); }
.demo-message { margin: 12px 0 0; font-size: 0.85rem; color: var(--ink-2); }
@media (max-width: 600px) {
  .demo-task-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-task-options .seg-btn { padding: 8px 6px; font-size: 0.8rem; }
  .demo-player figcaption { flex-direction: column; gap: 6px; }
  .demo-speed-options .seg-btn { padding: 7px 10px; }
}

/* On narrow screens, retain room for the title and letterbox the full video. */
@media (max-width: 800px) {
  .hero { min-height: 560px; padding: 36px 0 76px; }
  .title { font-size: clamp(22px, 3.7vw, 28px); }
  .authors { margin-top: 20px; gap: 6px 18px; }
  .affil { margin-bottom: 18px; }
  .hero-video-footer { left: 20px; right: 20px; bottom: 18px; }
}
@media (max-width: 480px) {
  .title { font-size: 22px; }
  .authors { display: grid; grid-template-columns: repeat(2, max-content); font-size: 0.8rem; gap: 7px 16px; }
  .affil { font-size: 0.72rem; }
  .affil-line { display: block; margin: 0; }
  .hero .links { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; }
  .hero .links .btn { padding: 7px 12px; font-size: 0.76rem; }
}
