/* OmniAct project page */

/* Fonts are self-hosted (SIL OFL 1.1, see static/fonts/OFL-*.txt) and the Latin Inter file is preloaded, so text
   first paints in Inter with its final metrics instead of swapping in from a fallback font. inter-pi and inter-dagger
   hold the only two non-Latin glyphs the page uses (U+03C0, U+2020), cut from Google Fonts' greek and latin-ext files. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: block;
  src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: block;
  src: url("../fonts/inter-pi.woff2") format("woff2"); unicode-range: U+03C0; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: block;
  src: url("../fonts/inter-dagger.woff2") format("woff2"); unicode-range: U+2020; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --surface: #ffffff;
  --paper: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #d9480f;
  --accent-soft: #fff1ea;
  --link: #1f5fbf;
  --bar-base: #8c95a3;
  --track: #edf0f4;
  --good: #1a7f43;
  --good-soft: #e6f4ec;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 14px;
  --wrap: 1100px;
  --gutter: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1016;
    --bg-soft: #12161d;
    --surface: #161b24;
    --paper: #f4f5f7;
    --ink: #e8edf5;
    --ink-2: #a9b4c4;
    --ink-3: #8592a6;
    --line: #232b38;
    --line-strong: #344052;
    --accent: #ff7a45;
    --accent-soft: rgba(255, 122, 69, .12);
    --link: #6aa8ff;
    --bar-base: #5f6b7c;
    --track: #1d2430;
    --good: #4ade80;
    --good-soft: rgba(74, 222, 128, .12);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 750; margin-bottom: 16px; }
h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 8px; }
p { margin: 0 0 14px; }
sup { font-size: .68em; line-height: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-3); }
.eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.intro { max-width: 780px; color: var(--ink-2); font-size: 1.05rem; margin-bottom: 28px; }
.note { color: var(--ink-3); font-size: .9rem; max-width: 820px; margin-top: 10px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 56px; display: flex; align-items: center; gap: 28px;
}
.brand { font-weight: 800; letter-spacing: -.01em; color: var(--ink); font-size: 1.05rem; white-space: nowrap; flex: none; }
/* The "O" is an embodiment from the corpus (gen_210058030) curled into a ring: joints 1.919, 0.0389, 1.6492, 0.9516,
   -0.879, 0.1367, 1.7933, 0.8438 rad, links 1.55x thicker and untapered, its green recoloured to match the text
   (wordmark teal #0a3235 in the hero, #0f172a / #e8edf5 here), viewed 5.2/6.6 deg off the ring normal and rolled
   15.7 deg -- the pose and view whose rendered silhouette best covers the wordmark's own letter O (IoU 0.78).
   The image is cropped to the arm and sized like Inter 800's O: 0.747em tall, 0.0098em below the baseline. */
.brand-o { display: inline-block; height: .747em; width: auto; vertical-align: -.0098em; margin: 0 .04em; }
.brand:hover { text-decoration: none; }
.navlinks { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a { color: var(--ink-2); font-size: .92rem; font-weight: 500; white-space: nowrap; }
.navlinks a:hover, .navlinks a.active { color: var(--ink); text-decoration: none; }
.navlinks a.active { box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 0 0 8px; text-align: center; }

/* The paper's gallery figure as two layers: the arms (hero-clear, wordmark erased) and its own "OmniAct"
   wordmark (wordmark.webp, same pixels). The stage is never wider than the image (6000 x 2641, ratio 2.272),
   so the image always scales with the stage height and positions below are fractions of it (--hero-h, %).
   In the figure the wordmark spans y 42.64-53.12%; the clearing around it spans about y 40-55.6%, and only
   y 51.3-55.8% is wide enough (0.33 of the image width) for the title line. */
.hero-band { background: #fff; }
.hero-stage {
  --hero-h: clamp(440px, min(48vw, 74vh), 820px);
  position: relative; overflow: hidden;
  height: var(--hero-h);
  max-width: min(1860px, calc(var(--hero-h) * 2.27));
  margin: 0 auto;
  background: #fff;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.hero-lockup { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.hero-wordmark {
  position: absolute; left: 50%; top: 40.5%;
  height: calc(var(--hero-h) * .085); width: auto; max-width: none;   /* 81% of its size in the figure */
  transform: translateX(-50%);
}
.hero-title {
  position: absolute; left: 50%; top: 51%;
  transform: translate(-50%, 0);
  white-space: nowrap;
  font-size: min(calc(var(--hero-h) * .04), 5.2vw);
  font-weight: 700; line-height: 1; letter-spacing: -0.012em;
  color: #0a3235;                                          /* the wordmark's teal */
}
/* The banner is the teaser's thumbnail. The play button fades in 0.5 s after the banner image is drawn (main.js adds
   .play-ready); playing shows the video in the same box (the whole 16:9 frame at the stage height, white at the
   sides). The x in its corner, Escape, or the end of the video brings the banner back. */
.hero-img, .hero-lockup { transition: opacity .4s ease; }
.hero-player {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(100%, calc(var(--hero-h) * 16 / 9)); aspect-ratio: 16 / 9;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s;
}
.hero-stage.is-playing .hero-player { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.hero-stage.is-playing .hero-img, .hero-stage.is-playing .hero-lockup { opacity: 0; }
.hero-video { display: block; width: 100%; height: 100%; background: #121316; }
.hero-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.hero-close svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hero-close:hover { background: rgba(0, 0, 0, .78); transform: scale(1.06); }
.hero-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #0a3235; }
.hero-play {
  --size: clamp(56px, calc(var(--hero-h) * .11), 88px);
  position: absolute; left: 50%; top: 70%; z-index: 1;   /* under the title, clear of the lockup */
  width: var(--size); height: var(--size);
  display: grid; place-items: center;
  margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: #0a3235; color: #fff; cursor: pointer;     /* the wordmark's teal */
  box-shadow: 0 8px 28px rgba(10, 50, 53, .3);
  transform: translate(-50%, -50%);
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s, transform .15s ease, background-color .15s ease;
}
.hero-stage.play-ready .hero-play {
  opacity: 1; visibility: visible; transition: opacity .6s ease, transform .15s ease, background-color .15s ease;
}
.hero-play svg { display: block; width: 44%; height: 44%; fill: currentColor; }   /* the triangle's centroid is the centre */
.hero-play:hover { transform: translate(-50%, -50%) scale(1.07); background: #0e4549; }
.hero-play:focus-visible { outline: 3px solid #0a3235; outline-offset: 4px; }
.hero-stage.is-loading .hero-play { cursor: progress; animation: hero-play-wait 1s ease-in-out infinite; }
@keyframes hero-play-wait { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero-meta { padding-top: 40px; }
.hero .lead { max-width: 760px; margin: 0 auto 28px; color: var(--ink-2); font-size: 1.13rem; }
.hero .lead strong { color: var(--ink); font-weight: 650; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-weight: 550; font-size: 1.02rem; max-width: 860px; margin: 0 auto 10px; }
.authors sup { color: var(--ink-3); font-weight: 500; margin-left: 1px; }
.affils { color: var(--ink-2); font-size: .95rem; max-width: 860px; margin: 0 auto 6px; }
.affil-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }   /* UW + UNC on one line, AI2 + NUS on the next */
.equal { color: var(--ink-3); font-size: .88rem; margin-bottom: 26px; }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: inherit; font-size: .95rem; font-weight: 600; line-height: 1;
  border: 1px solid var(--ink); cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-3); border-color: var(--line-strong); cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn .soon { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-3); }
.btn.small { padding: 8px 14px; font-size: .88rem; }


/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.block { margin-top: 72px; }
.block-head { max-width: 820px; margin-bottom: 18px; }
.block-head p { color: var(--ink-2); }

.figure { margin: 0 0 28px; }
.figure figcaption { color: var(--ink-3); font-size: .92rem; margin-top: 12px; max-width: 900px; }
.figure.paper > img { background: var(--paper); border-radius: var(--radius); padding: clamp(8px, 2vw, 22px); box-shadow: var(--shadow); width: 100%; }
.figure.compact > img { padding: 10px; }
.figure.narrow { max-width: 720px; margin-top: 28px; }

.abstract { max-width: 860px; margin: 48px 0 40px; }
.abstract h3 { font-size: 1.25rem; margin-bottom: 12px; }
.abstract p { color: var(--ink-2); }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; padding: 18px 18px 16px; }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-2); font-size: .92rem; line-height: 1.5; }

/* method cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.card-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .9rem; margin-bottom: 14px; }

/* data */
.corpus { display: flex; flex-wrap: wrap; gap: 10px 36px; padding: 18px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.corpus div { display: flex; flex-direction: column; }
.corpus strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.corpus span { color: var(--ink-3); font-size: .88rem; max-width: 220px; line-height: 1.4; }

.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.gallery-head p { margin: 0; font-size: .93rem; }
.gallery-rows { display: grid; gap: 8px; background: var(--paper); padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-rows img { width: 100%; aspect-ratio: 1600 / 135; object-fit: cover; border-radius: 4px; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gallery-rows img { animation: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: .85rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

/* bar charts */
.chart { display: grid; gap: 6px; margin: 8px 0 6px; max-width: 860px; }
.chart-row { display: grid; grid-template-columns: 170px 1fr 64px; align-items: center; gap: 12px; padding: 3px 0; }
.chart-label { font-size: .92rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-track { height: 14px; border-radius: 4px; background: var(--track); overflow: hidden; }
.chart-bar { height: 100%; border-radius: 0 4px 4px 0; background: var(--bar-base); width: 0; transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.chart-value { font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
.chart-row.ours .chart-label, .chart-row.ours .chart-value { color: var(--ink); font-weight: 700; }
.chart-row.ours .chart-bar { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .chart-bar { transition: none; } }

/* tables */
.table-details { margin: 16px 0 8px; }
.table-details summary { cursor: pointer; color: var(--link); font-weight: 550; font-size: .95rem; width: fit-content; }
.table-details[open] summary { margin-bottom: 12px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead th { font-weight: 650; color: var(--ink-2); background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: 0; }
td i { font-style: normal; color: var(--ink-3); font-size: .8em; margin-left: 2px; }
tr.group td { border-top: 2px solid var(--line-strong); }
tr.ours td { background: var(--accent-soft); }
tr.ours td:first-child { font-weight: 700; }

.real-table { font-size: .95rem; }
.real-table .overall { text-align: left; min-width: 190px; }
.real-table .pct { display: inline-block; width: 3.2em; }
.real-table .caption-row td { text-align: left; color: var(--ink-3); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-soft); }
.real-table .bar { display: inline-block; vertical-align: middle; height: 10px; width: calc(var(--v) * 1.3px); min-width: 2px; border-radius: 0 3px 3px 0; background: var(--bar-base); }
.real-table tr.ours .bar { background: var(--accent); }
.ns { color: var(--ink-3); font-size: .85em; font-weight: 600; letter-spacing: .04em; cursor: help; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; align-items: start; }
.split p { color: var(--ink-2); }
.split .chart-row { grid-template-columns: 140px 1fr 56px; }

/* video player (OpenYAM) */
.player-video { position: relative; background: #111216; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player-video video { width: 100%; aspect-ratio: 1552 / 512; background: #111216; }
.cam-labels { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 0 10px; color: #c9d1dc; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.player-caption { margin: 14px 0 12px; color: var(--ink-2); min-height: 3.2em; }
.player-caption b { color: var(--ink); }
.clip-groups { display: grid; gap: 12px; }
.clip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.clip-group-label { font-size: .78rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; width: 150px; }
.pill {
  font: inherit; font-size: .88rem; font-weight: 550;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-strong);
}
.pill:hover { color: var(--ink); border-color: var(--ink-3); }
.pill[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Franka setups */
.setups { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); gap: 8px 8px; align-items: center; max-width: 760px; }
.setup-task { font-size: .82rem; color: var(--ink-2); font-weight: 600; padding-right: 10px; white-space: nowrap; }
.setup-btn {
  position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--surface); aspect-ratio: 1; transition: transform .12s ease, border-color .12s ease;
}
.setup-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .12s ease; }
.setup-btn span { position: absolute; left: 6px; bottom: 5px; font-size: .75rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.setup-btn:hover img { opacity: 1; }
.setup-btn[aria-selected="true"] { border-color: var(--accent); }
.setup-btn[aria-selected="true"] img { opacity: 1; }
.setup-title { margin: 22px 0 14px; font-weight: 650; }
.setup-title span { color: var(--ink-3); font-weight: 500; }
.arrow { display: inline-block; width: 1em; height: .62em; vertical-align: .05em; margin: 0 .08em; }

.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vcard.ours { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.vcard-name { font-weight: 650; font-size: .95rem; }
.vcard-tag { font-size: .72rem; color: var(--ink-3); white-space: nowrap; }
.vcard video { width: 100%; aspect-ratio: 2 / 1; background: #111216; cursor: pointer; }
.vcard-foot { padding: 8px 12px 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; padding: 3px 10px 3px 8px; border-radius: 999px; }
.badge svg { width: 14px; height: 14px; }
.badge.ok { color: var(--good); background: var(--good-soft); }
.badge.no { color: var(--bad); background: var(--bad-soft); }

/* strategies */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split.behavior { margin-top: 40px; }

/* bibtex */
.bib { position: relative; max-width: 860px; }
.bib pre { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; overflow-x: auto; }
.bib code { font-family: var(--mono); font-size: .86rem; line-height: 1.6; color: var(--ink); }
.bib .copy { position: absolute; top: 12px; right: 12px; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-3); font-size: .9rem; }
.footer p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .split, .duo { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero-stage { --hero-h: 480px; }
  .hero-meta { padding-top: 28px; }
  .topbar-inner { gap: 16px; }
  .stats { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr; }
  .chart-row, .split .chart-row { grid-template-columns: 112px 1fr 52px; gap: 8px; }
  .chart-label { font-size: .84rem; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .setups { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .setup-task { grid-column: 1 / -1; padding-top: 6px; }
  .clip-group-label { width: 100%; }
  .pair { grid-template-columns: 1fr; }
  .real-table .overall { min-width: 150px; }
}

/* full-size figure links */
.zoom { display: block; cursor: zoom-in; }
.figure.paper > .zoom > img { background: var(--paper); border-radius: var(--radius); padding: clamp(8px, 2vw, 22px); box-shadow: var(--shadow); width: 100%; }
.figure.compact > .zoom > img { padding: 10px; }
