:root {
  --paper: #fff;
  --surface: #fff;
  --ink: #1d1d1f;
  --muted: #616165;
  --line: #e2e2e5;
  --soft: #f5f5f7;
  --media: #ededf0;
  --signal: #746352;
  --signal-surface: #f1ede7;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  --display: "Avenir Next", "Inter", var(--sans);
  --container: 960px;
  --reading: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #55555a;
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
figure, h1, h2, h3, h4, h5, p, dl, dd { margin: 0; }
section[id], .overview[id] { scroll-margin-top: 80px; }
.container { width: min(var(--container), calc(100% - 88px)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 5; top: 12px; left: 12px; padding: 10px 16px;
  transform: translateY(-170%); background: var(--surface); border: 1px solid var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 3;
  border-bottom: 1px solid #e7e7e9;
  background: rgb(255 255 255 / 89%);
  backdrop-filter: saturate(110%) blur(14px);
}
.header-row { display: flex; align-items: center; justify-content: center; min-height: 55px; gap: 28px; }
.wordmark { text-decoration: none; font: 750 17px/1 var(--display); letter-spacing: -.035em; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 27px); }
.site-header nav a { font-size: 13px; text-decoration: none; white-space: nowrap; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }

.hero-layout { padding-block: 62px 0; }
.hero-copy { max-width: 845px; margin-inline: auto; text-align: center; }
h1 { font: 700 clamp(36px, 4.3vw, 54px)/1.06 var(--display); letter-spacing: -.054em; text-wrap: balance; }
.project-subtitle {
  color: #625952;
  font-weight: 600;
}
.project-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 24px;
}
.project-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none;
}
.project-link--primary { background: var(--ink); color: #fff; }
.project-link:hover { background: var(--soft); }
.project-link--primary:hover { background: #38383c; }
.overview { max-width: 740px; margin: 35px auto 0; }
.overview-heading {
  margin-bottom: 9px; font-size: 15px; font-weight: 650; text-align: center;
}

.section { padding-block: 52px; }
.section-header { margin-bottom: 22px; text-align: center; }
h2 { font: 700 clamp(30px, 3.5vw, 42px)/1.12 var(--display); letter-spacing: -.052em; }
h3 { font: 680 clamp(21px, 2.35vw, 27px)/1.23 var(--display); letter-spacing: -.035em; }
.abstract-section { padding-top: 60px; padding-bottom: 38px; }
.text-grid { max-width: var(--reading); }
.text-grid h2 { margin-bottom: 12px; font-size: 28px; text-align: center; }
.text-grid p { color: #414145; font-size: 15px; line-height: 1.78; }
.project-media { overflow: hidden; border-radius: 9px; background: var(--media); }
.project-media video { display: block; margin-inline: auto; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.method-section > .container, .results-section > .container, .qualitative-section > .container {
  border-top: 1px solid var(--line);
  padding-top: 46px;
}
.method-section, .results-section, .qualitative-section { padding-top: 5px; }
.method-figure a { display: block; padding: 10px 0 1px; }
.method-figure img { width: 100%; height: auto; max-height: 540px; object-fit: contain; }
.method-steps, .metric-definitions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 25px; }
.method-steps > div { border-top: 1px solid var(--line); padding-top: 12px; text-align: center; }
.method-steps dt, .metric-definitions dt { font-size: 15px; font-weight: 650; }
.method-steps dd, .metric-definitions dd { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.58; }

.experiment-opening > h2 { margin-bottom: 24px; text-align: center; }
.external-block > h3 { margin-bottom: 14px; text-align: center; }
.experiment-opening + .result-block, .result-block + .result-block { margin-top: 51px; }
.result-block > h3 { margin-bottom: 13px; text-align: center; }
.paper-results { margin-top: 33px; }
.paper-results > figcaption { margin-bottom: 8px; font-size: 15px; font-weight: 650; text-align: center; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; border-bottom: 1px solid #e8e8eb; text-align: right; white-space: nowrap; }
th:first-child { text-align: left; }
thead th { font-weight: 650; }
tbody th { font-weight: 530; }
.comparison-table { min-width: 690px; border-block: 1px solid #b9b9be; }
.comparison-table .metric-groups th:not(:first-child) { text-align: center; }
.comparison-table thead tr:last-child th { text-align: right; }
.comparison-table .table-group th { background: #f7f7f8; color: var(--muted); font-size: 12px; font-weight: 620; }
.comparison-table .table-ours th { font-weight: 680; }
.comparison-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.runner-up { text-decoration: underline; text-underline-offset: 0.17em; }
.table-note { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.controlled-note { max-width: 72ch; margin: 15px auto 0; color: var(--muted); font-size: 13px; line-height: 1.65; text-align: center; }
.controlled-note strong { color: var(--ink); }
.qualitative-block { margin-top: 27px; }
.qualitative-block + .qualitative-block { margin-top: 36px; }
.qualitative-block > h4 { margin-bottom: 10px; font-size: 18px; font-weight: 630; letter-spacing: -.025em; text-align: center; }
.result-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 8px; }
.result-wall__tile { position: relative; min-width: 0; }
.result-wall__tile .result-wall__number { top: 5px; bottom: auto; pointer-events: none; }
.result-wall__animation {
  display: block; width: 100%; height: auto; aspect-ratio: 400 / 231;
  border-radius: 5px; background: var(--media);
}

.site-footer { padding-block: 0 25px; font-size: 13px; color: var(--muted); }
.footer-row { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-row a { text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }
.noscript { padding-block: 12px; color: var(--muted); }

@media (max-width: 780px) {
  .container { width: calc(100% - 48px); }
  .hero-layout { padding-top: 52px; }
  .section { padding-bottom: 40px; }
}
@media (max-width: 640px) {
  .result-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 34px); }
  .site-header { position: static; }
  .header-row { flex-direction: column; gap: 7px; padding-block: 10px; }
  .site-header nav { flex-wrap: wrap; justify-content: center; column-gap: 12px; row-gap: 2px; }
  .site-header nav a { font-size: 12px; }
  section[id], .overview[id] { scroll-margin-top: 14px; }
  .hero-layout { padding-top: 38px; }
  h1 { font-size: clamp(32px, 7.6vw, 41px); }
  .overview { margin-top: 24px; }
  .overview-heading { font-size: 14px; }
  .abstract-section { padding-top: 38px; }
  .section-header { margin-bottom: 15px; }
  .method-section > .container, .results-section > .container, .qualitative-section > .container { padding-top: 33px; }
  .experiment-opening > h2 { margin-bottom: 15px; }
  .experiment-opening + .result-block, .result-block + .result-block { margin-top: 34px; }
  .method-steps, .metric-definitions { grid-template-columns: 1fr; gap: 12px; }
  th, td { padding: 7px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
