@font-face {
  font-family: Inter;
  src: url('assets/fonts/Inter-Latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: #171717;
  --muted: #666;
  --line: #e3e3e3;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid #111; outline-offset: 5px; }
img, video { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, h4, figure { margin: 0; }
strong { font-weight: 600; }
.page { width: min(1060px, calc(100% - 48px)); margin: 0 auto; }
.lab-brand { padding-top: 24px; }
.lab-brand img { width: 330px; height: auto; }
.paper-header { text-align: center; padding: 40px 0 38px; }
h1 {
  max-width: 1040px;
  margin: 0 auto 30px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 520;
  line-height: 1.22;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h1 strong { font-weight: 720; }
.authors {
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 22px;
  font-size: 17px;
  line-height: 1.8;
}
.authors a { text-decoration: none; white-space: nowrap; }
.authors a:hover { text-decoration: underline; text-underline-offset: 4px; }
sup { font-size: .66em; line-height: 0; margin-left: 2px; }
.affiliations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 24px;
  margin: 18px auto 0;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}
.affiliations sup { margin: 0 4px 0 0; }
.author-note { margin-top: 9px; font-size: 12px; color: var(--muted); }
.project-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  min-height: 38px;
  border: 1px solid #222;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.project-link > span { border-left: 1px solid #666; padding-left: 10px; color: #ddd; font-size: 11px; }
.project-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.project-link[href]:hover { background: #444; }
.project-link[aria-disabled="true"] { cursor: default; }
.video-section { width: min(960px, 100%); margin: 0 auto; }
video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #111; border-radius: 12px; box-shadow: 0 8px 32px #0000000d; }
.video-caption, figcaption { text-align: center; font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 15px; }
.content-section { width: min(960px, 100%); margin: 68px auto 0; padding-top: 42px; border-top: 1px solid var(--line); }
h2 { text-align: center; font-size: 32px; font-weight: 650; letter-spacing: -.035em; line-height: 1.3; margin-bottom: 28px; }
.prose { max-width: 860px; margin: 0 auto; font-size: 16px; line-height: 1.85; }
.teaser { margin-top: 32px; }
figure > a { display: block; }
figure img { width: 100%; height: auto; }
.teaser figcaption { margin-top: 20px; }
.architecture { margin: 30px 0 27px; }
.method-explainer { max-width: 860px; margin: 32px auto 0; font-size: 15px; line-height: 1.75; color: #454545; }
.method-explainer h3 { margin: 20px 0 8px; color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.method-explainer h3:first-child { margin-top: 0; }
.method-explainer p + p { margin-top: 14px; }
.method-explainer .katex { font-size: 1.08em; }
.equation { margin: 12px 0; padding: 10px 8px; overflow-x: auto; scrollbar-color: #aaa #f5f5f5; color: #171717; font-size: 20px; }
.equation .katex { font-size: 1em; }
.equation .katex-display { width: max-content; min-width: 100%; margin: 0; }
.equation + .equation { margin-top: -5px; }
.results-section { width: 100%; }
.section-intro { text-align: center; color: var(--muted); font-size: 16px; margin: -13px auto 30px; }
.result-block { margin-top: 36px; padding: 32px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 24px #00000004; }
.result-heading { display: flex; align-items: baseline; gap: 15px; margin-bottom: 15px; }
.result-number { color: #888; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.result-heading h3 { font-size: 23px; line-height: 1.35; font-weight: 620; letter-spacing: -.025em; }
.result-copy { font-size: 15px; line-height: 1.85; color: #454545; }
.result-copy strong { color: var(--text); }
.benchmark { margin-top: 27px; }
.benchmark + .benchmark { margin-top: 30px; }
.benchmark-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.benchmark-label h4 { font-size: 14px; font-weight: 650; letter-spacing: .04em; }
.benchmark-label > span { font-size: 11px; color: var(--muted); }
.table-scroll { width: 100%; overflow-x: auto; border-top: 2px solid #333; border-bottom: 2px solid #333; scrollbar-color: #aaa #f5f5f5; }
.tracking-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.tracking-table th, .tracking-table td { padding: 12px 15px; text-align: right; white-space: nowrap; }
.tracking-table th:first-child { text-align: left; width: 30%; }
.tracking-table thead { background: #fafafa; border-bottom: 1px solid #cfcfcf; }
.tracking-table thead th { font-size: 12px; font-weight: 600; }
.tracking-table thead span { display: block; font-size: 11px; color: #777; font-weight: 400; }
.tracking-table tbody th { font-weight: 450; }
.tracking-table tbody tr + tr { border-top: 1px solid #ededed; }
.tracking-table .ours { background: #f5f5f5; }
.tracking-table .ours th { font-weight: 600; }
.tracking-table tbody .ours:not(.mpc) { border-top: 1px solid #bcbcbc; }
.tracking-table .mpc { background: #ececec; }
.tracking-table .mpc th span { font-weight: 450; font-size: 11px; }
.tracking-table strong { font-weight: 750; }
u { text-underline-offset: 3px; }
.table-note, .experiment-note { margin-top: 14px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.experiment-note { margin-top: 8px; }
.result-figure { margin-top: 26px; }
.result-figure figcaption { text-align: left; font-size: 12px; margin-top: 18px; }
.result-figure figcaption a { white-space: nowrap; text-underline-offset: 3px; }
.takeaway { margin-top: 24px; padding: 18px 22px; background: #f7f7f7; border-left: 3px solid #333; border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.8; color: #444; }
.takeaway strong { color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.citation-section { margin-top: 62px; padding-bottom: 60px; }
.citation-section h2 { margin-bottom: 20px; }
pre { min-height: 76px; margin: 0 auto; max-width: 860px; padding: 18px; background: #fafafa; border: 1px solid #eee; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; }
code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }

@media (max-width: 700px) {
  .page { width: calc(100% - 36px); }
  .lab-brand { padding-top: 18px; }
  .lab-brand img { width: 260px; max-width: 85%; }
  .paper-header { padding-top: 34px; padding-bottom: 29px; }
  h1 { font-size: 32px; line-height: 1.23; letter-spacing: -.045em; margin-bottom: 25px; }
  .authors { font-size: 15px; gap: 5px 16px; line-height: 1.7; }
  .affiliations { font-size: 12px; gap: 2px 15px; margin-top: 17px; }
  .author-note { font-size: 11px; margin-top: 8px; }
  .project-links { margin-top: 20px; }
  .project-link { font-size: 12px; }
  video { border-radius: 8px; }
  .video-caption, figcaption { font-size: 11px; margin-top: 12px; }
  .content-section { margin-top: 48px; padding-top: 30px; }
  h2 { font-size: 27px; margin-bottom: 20px; }
  .prose { font-size: 14px; line-height: 1.85; }
  .teaser { margin-top: 25px; }
  .teaser figcaption { margin-top: 13px; }
  .architecture { margin: 25px 0 21px; }
  .method-explainer { font-size: 14px; margin-top: 25px; }
  .method-explainer h3 { font-size: 17px; margin-top: 22px; }
  .equation { margin: 14px 0; padding: 9px 2px; font-size: 17px; }
  .section-intro { margin: -6px auto 24px; font-size: 13px; }
  .result-block { margin-top: 24px; padding: 23px 18px; border-radius: 10px; }
  .result-heading { gap: 10px; margin-bottom: 12px; }
  .result-heading h3 { font-size: 20px; }
  .result-number { font-size: 12px; }
  .result-copy { font-size: 13px; }
  .table-scroll { width: calc(100% + 36px); margin-left: -18px; }
  .tracking-table { min-width: 610px; font-size: 12px; }
  .tracking-table th, .tracking-table td { padding: 11px 12px; }
  .tracking-table tbody th { position: sticky; left: 0; background: #fff; box-shadow: 1px 0 #e3e3e3; white-space: normal; min-width: 153px; }
  .tracking-table .ours th { background: #f5f5f5; }
  .tracking-table .mpc th { background: #ececec; }
  .tracking-table .mpc th span { display: block; }
  .tracking-table thead th:first-child { position: sticky; left: 0; background: #fafafa; box-shadow: 1px 0 #e3e3e3; }
  .result-figure { margin: 23px -10px 0; }
  .result-figure figcaption { font-size: 11px; padding: 0 10px; margin-top: 14px; }
  .takeaway { font-size: 12px; padding: 14px 16px; }
  .table-note, .experiment-note { font-size: 10px; }
  .citation-section { padding-bottom: 40px; }
}
