:root {
  --paper-font: "Palatino Linotype", "Book Antiqua", Palatino, "TeX Gyre Pagella", "URW Palladio L", P052, Georgia, serif;
  --ink: #202124;
  --muted: #5f6368;
  --accent: #185abc;
  --method: #4285f4;
  --soft: #f1f5fd;
  --line: #e6e7e9;
  --max-width: 1000px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; font-family: var(--paper-font); font-size: 19px; line-height: 1.65; color: var(--ink); background: #fff; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:not(:hover) { text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--method); outline-offset: 4px; border-radius: 3px; }
.wrap { width: min(var(--max-width), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 10px 18px; background: #fff; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 96%); backdrop-filter: blur(12px); }
.nav-inner { max-width: var(--max-width); min-height: 61px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.4px; flex: none; }
.wordmark-accent { color: var(--accent); }
.wordmark img { display: block; }
.nav-links { display: flex; align-items: center; gap: 25px; font-size: 16px; white-space: nowrap; }
.nav-links a { color: #5e6268; padding: 17px 0; }
.nav-links a:hover, .nav-links a[aria-current="location"] { color: var(--accent); }

/* Hero */
.hero { text-align: center; padding-top: 52px; padding-bottom: 46px; }
h1 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; line-height: 1.2; letter-spacing: -.5px; margin: 0 auto; max-width: 900px; text-wrap: balance; }
.title-brand { white-space: nowrap; }
.title-brand img { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .14em; vertical-align: -.17em; }
.hero-summary { max-width: 780px; margin: 22px auto 30px; font-size: 21px; line-height: 1.6; }
.institution-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px 38px; margin: 0 auto 24px; }
.institution-logos img { display: block; height: auto; }
.logo-berkeley { width: 150px; }
.logo-princeton { width: 160px; }
.logo-stanford { width: 140px; }
.logo-nvidia { width: 160px; }
.authors { max-width: 880px; margin: 0 auto; font-size: 19px; line-height: 1.9; }
.authors > span { display: inline-block; white-space: nowrap; }
.authors sup, .affiliations sup { font-size: .65em; padding-left: 2px; }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; margin: 13px 0 6px; font-size: 16px; color: #5b6066; }
.author-note { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 19px; row-gap: 1px; color: var(--muted); font-size: 13px; margin: 7px 0 26px; }
.button-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #24272a; color: #fff; font-size: 15px; padding: 9px 21px; min-height: 44px; border: 1px solid #24272a; border-radius: 99px; transition: background .15s ease; }
.button:hover { text-decoration: none; background: #08090a; }
.button-secondary { background: #fff; color: #34383c; border-color: #cdd0d4; }
.button-secondary:hover { background: #f5f5f6; }
.button svg { height: 18px; width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Body text */
h2 { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -.4px; margin: 0 0 20px; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.4; letter-spacing: -.2px; margin: 40px 0 14px; }
p { margin: 0 0 17px; }
main > section { scroll-margin-top: 82px; }
.section { border-top: 1px solid var(--line); padding: 43px 0 39px; }
.overview { padding: 32px 0 26px; border-top: 1px solid var(--line); }
.summary-box { padding: 2px 0 2px 23px; margin: 24px 0 26px; border-left: 2px solid var(--method); }
.summary-box p { margin-bottom: 12px; }
.summary-box .summary-last { margin: 19px 0 0; }
.overview-video { width: min(100%, 880px); margin: 28px auto 12px; }
.overview-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #fff; border: 1px solid #e8eaed; border-radius: 8px; }
.takeaway { margin: 24px 0 0; padding: 5px 0 5px 21px; border-left: 2px solid var(--method); font-size: 18px; }
.takeaway strong { color: var(--accent); }
.math { white-space: nowrap; }
.math-display { margin: 24px 0; text-align: center; font-size: 21px; }
.ref { font-size: .7em; line-height: 0; margin-left: 1px; vertical-align: super; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 8px; }
.stat { padding: 16px 18px 14px; background: var(--soft); border-radius: 6px; }
.stat-value { display: block; font-size: 30px; font-weight: 700; line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: #4a4f55; }

/* Figures */
figure { margin: 29px 0 24px; }
.figure-link { display: block; border-radius: 5px; cursor: zoom-in; }
.figure-link img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 14px; font-size: 16px; line-height: 1.6; color: #4a4f55; }
figcaption strong { color: var(--ink); }
.opening-figure { margin: 0 0 34px; }
.medium-figure { width: min(100%, 720px); margin-inline: auto; }
.small-figure { width: min(100%, 560px); margin-inline: auto; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 24px auto 18px; }
.table-narrow { width: min(100%, 780px); }
table { width: 100%; border-collapse: collapse; border-bottom: 1px solid #b9bdc3; font-size: 17px; line-height: 1.4; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--ink); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
td, th { text-align: right; padding: 7px 10px; white-space: nowrap; }
th:first-child, td:first-child, .left { text-align: left; }
thead th { border-bottom: 1px solid #b9bdc3; font-size: 15px; padding-top: 0; padding-bottom: 8px; }
tbody th { font-weight: 400; }
.group-row th { padding-top: 16px; font-style: italic; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line); }
.ours td { color: var(--accent); font-weight: 700; }
.ours { background: var(--soft); }
.full-table table { min-width: 760px; font-size: 15px; }
.full-table td, .full-table th { padding: 6px 8px; }
details { margin: 10px 0 0; }
summary { cursor: pointer; color: var(--accent); font-size: 17px; }
summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.table-note { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Closing, references, citation */
.closing { max-width: 820px; margin: 40px auto 4px; font-size: 21px; line-height: 1.5; text-align: center; text-wrap: balance; }
.closing::before { content: ""; display: block; width: 48px; height: 2px; margin: 0 auto 22px; background: var(--method); }
.closing strong { display: block; margin-bottom: 8px; font-size: 27px; line-height: 1.3; color: var(--accent); }
.references { margin: 0; padding-left: 24px; font-size: 16px; line-height: 1.6; }
.references li { padding-left: 5px; margin-bottom: 10px; scroll-margin-top: 90px; }
.references a { color: var(--ink); }
.references a:hover { color: var(--accent); }
.citation-section { padding-top: 34px; padding-bottom: 10px; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 8px; }
.citation-heading h2 { margin-bottom: 0; }
.copy-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 0; background: transparent; color: #60666c; cursor: pointer; }
.copy-button:hover, .copy-button[data-copied] { color: var(--accent); }
.copy-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-button .icon-check, .copy-button[data-copied] .icon-copy { display: none; }
.copy-button[data-copied] .icon-check { display: block; }
.bibtex { white-space: pre; overflow-x: auto; margin: 0; padding: 18px 20px; background: #f7f8f9; border-radius: 6px; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Figure dialog */
.figure-dialog { width: min(1500px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #dce0e4; border-radius: 10px; color: var(--ink); background: #fff; box-shadow: 0 20px 100px rgb(0 0 0 / 25%); }
.figure-dialog::backdrop { background: rgb(13 20 29 / 70%); }
.dialog-toolbar { display: flex; align-items: center; justify-content: flex-end; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.close-dialog { border: 0; background: transparent; color: #545a61; font-size: 27px; line-height: 1; cursor: pointer; width: 38px; height: 38px; }
.dialog-image { display: block; width: 100%; max-height: 72dvh; object-fit: contain; padding: 20px; }
.dialog-caption { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
body.dialog-open { overflow: hidden; }

@media (max-width: 1060px) {
  .nav-inner { margin-inline: 24px; }
  .nav-links { gap: 20px; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .wrap { width: calc(100% - 32px); }
  .nav-inner { margin-inline: 16px; min-height: 56px; gap: 20px; }
  .nav-links { gap: 18px; overflow-x: auto; scrollbar-width: none; font-size: 15px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding-block: 15px; }
  .wordmark { font-size: 17px; }
  .hero { padding-top: 34px; padding-bottom: 34px; }
  h1 { font-size: 29px; letter-spacing: -.3px; }
  .hero-summary { font-size: 19px; margin-top: 18px; }
  .institution-logos { gap: 16px 26px; }
  .logo-berkeley { width: 118px; }
  .logo-princeton { width: 128px; }
  .logo-stanford { width: 112px; }
  .logo-nvidia { width: 128px; }
  .authors { font-size: 17px; }
  .affiliations { font-size: 14px; gap: 2px 18px; }
  .author-note { font-size: 12px; }
  .button { padding-inline: 15px; font-size: 14px; gap: 6px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; margin-top: 34px; }
  .section { padding-block: 34px; }
  .summary-box { padding-left: 16px; }
  .takeaway { padding-left: 16px; font-size: 17px; }
  figcaption { font-size: 15px; margin-top: 12px; }
  .stat-row { grid-template-columns: 1fr; gap: 10px; }
  .stat { display: flex; align-items: baseline; gap: 14px; padding: 12px 14px; }
  .stat-value { font-size: 24px; flex: none; min-width: 96px; }
  .stat-label { margin-top: 0; }
  table { font-size: 15px; }
  td, th { padding: 6px 6px; }
  .table-narrow td, .table-narrow th { padding: 6px 3px; font-size: 14px; }
  .table-narrow tbody th:first-child { white-space: normal; }
  .table-narrow .group-row th { white-space: nowrap; }
  caption { font-size: 18px; }
  .closing { font-size: 18px; }
  .closing strong { font-size: 23px; }
  .bibtex { font-size: 12px; padding: 14px; }
  .figure-dialog { width: calc(100vw - 16px); border-radius: 7px; }
  .dialog-image { padding: 10px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
