:root {
  --blue: #1d5fd8; --blue-tint: #eef3fc; --text: #111418; --muted: #5b616b; --faint: #8a9099; --rule: #e6e8ec;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wide: 1120px; --prose: 720px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased;
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--blue); text-decoration: none; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 16px max(24px, calc((100% - var(--wide)) / 2 + 24px)); background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
.wordmark { font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-size: 1.05rem; }
.links { display: flex; gap: 26px; }
.links a { font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.links a:hover { color: var(--blue); }

header { max-width: var(--wide); margin: 0 auto; padding: 96px 24px 40px; }
.eyebrow, h2::before, .label, th { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow { color: var(--blue); font-size: 0.78rem; font-weight: 500; margin: 0 0 20px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 650; letter-spacing: -0.035em; margin: 0 0 22px; }
.authors { color: var(--muted); font-size: 1.1rem; margin: 0; }

main { max-width: var(--wide); margin: 0 auto; padding: 0 24px 120px; counter-reset: sec; }
section { margin-top: 112px; padding-top: 40px; border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 650; letter-spacing: -0.025em; margin: 0 0 28px; }
h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; color: var(--blue);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; margin-bottom: 14px; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin: 64px 0 16px; }
section > p:not(.note) { max-width: var(--prose); font-size: 1.12rem; line-height: 1.75; color: #2a2f36; }

figure { margin: 32px 0; }
.hero { margin-top: 8px; }
img, video { width: 100%; height: auto; display: block; border-radius: 12px; }
video { background: #f4f6f9; }
figcaption, .note { text-align: center; color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin-top: 14px; }

.row { display: flex; gap: 16px; align-items: flex-end; }
.row figure { flex: 1; min-width: 0; margin: 12px 0; }
.stack figure { margin: 24px 0; }
.stack > .label { margin-top: 24px; }
.narrow, .stack figure.narrow { max-width: 600px; margin-left: auto; margin-right: auto; }
.medium { max-width: 880px; margin-left: auto; margin-right: auto; }
video.ours { box-shadow: 0 0 0 2px var(--blue); }
.label { font-size: 0.72rem; font-weight: 500; color: var(--muted); margin: 0 0 10px; }
.ours-label { color: var(--blue); }
.vgrid { display: grid; grid-template-columns: auto repeat(var(--cols), 1fr); gap: 14px 16px; align-items: center; }
.vgrid .col { text-align: center; }
.vgrid .col:first-child { grid-column: 2; }
.rowlabel { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0; }

.table-wrap { overflow-x: auto; margin-top: 32px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--rule); }
th { font-size: 0.7rem; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--text); }
td.l, th.l { text-align: left; }
tr.ours td { background: var(--blue-tint); color: var(--blue); }
td[rowspan] { background: #fff !important; color: var(--text) !important; vertical-align: middle; }
tr.group td { border-top: 1px solid #c9cdd4; }

@media (max-width: 760px) {
  .links { display: none; }
  header { padding-top: 56px; }
  section { margin-top: 72px; }
  .row { flex-direction: column; align-items: stretch; }
}
