@font-face {
  font-family: Inter;
  src: url('../fonts/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #fafbfd;
  --surface: #ffffff;
  --ink: #192538;
  --body: #465267;
  --muted: #647187;
  --accent: #3568b5;
  --border: #e2e7ee;
  --soft: #f1f5fa;
  --row: #edf3fc;
  --shadow: 0 5px 25px rgba(29, 45, 70, .05);
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #101725;
  --surface: #172131;
  --ink: #e9eef6;
  --body: #b9c5d6;
  --muted: #9aaac1;
  --accent: #91b9ef;
  --border: #2a374a;
  --soft: #1c293c;
  --row: #20324c;
  --shadow: 0 5px 28px rgba(0, 0, 0, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 16px/1.8 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: #d4e3fa; color: #132641; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { transition: background-color .15s, border-color .15s; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong { color: var(--ink); }
strong { font-weight: 600; }
.page-shell { max-width: 1184px; padding-inline: 32px; margin: auto; }
.masthead { height: 70px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
.wordmark { font-size: 19px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); }
.wordmark span, .project-name > span { color: var(--accent); }
.masthead nav { display: flex; align-items: center; gap: 27px; font-size: 14px; }
.masthead nav > a { color: var(--body); }
.theme-toggle { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: transparent; }
.theme-toggle:hover { background: var(--soft); }
.theme-toggle svg { width: 17px; height: 17px; }
.sun-icon, [data-theme='dark'] .moon-icon { display: none; }
[data-theme='dark'] .sun-icon { display: block; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--surface); padding: 10px 16px; z-index: 10; }
.skip-link:focus { top: 12px; }
.hero { padding-top: 56px; }
.publication-line { display: flex; justify-content: center; align-items: center; gap: 16px; text-align: center; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .045em; margin-bottom: 18px; }
.award-distinction { display: inline-flex; align-items: center; gap: 7px; padding-left: 16px; border-left: 1px solid var(--border); color: #8b642c; font-size: 13px; font-weight: 500; letter-spacing: .015em; }
.award-distinction svg { width: 17px; height: 20px; flex-shrink: 0; }
[data-theme='dark'] .award-distinction { color: #d7b778; }
h1 { max-width: 1020px; margin: auto; text-align: center; font-weight: 650; font-size: clamp(30px, 3.25vw, 44px); line-height: 1.22; letter-spacing: -.035em; text-wrap: balance; }
.project-name { font-weight: 750; }
.title-sub { display: block; font-size: .77em; margin-top: 12px; color: var(--body); font-weight: 500; letter-spacing: -.02em; }
.paper-details { margin: 31px auto 36px; text-align: center; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 28px; margin: 28px auto 0; font-size: 15px; line-height: 1.7; font-weight: 500; }
.author { white-space: nowrap; color: var(--ink); }
.author a { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.author-portrait { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; background: var(--surface); }
.author sup { margin-left: 3px; }
sup { font-size: .64em; line-height: 0; vertical-align: super; }
.affiliations { max-width: 850px; margin: 15px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 20px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.affiliations > span { white-space: nowrap; }
.affiliations sup { color: var(--accent); }
.resources { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.resource-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 19px; font-size: 14px; font-weight: 500; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); background: var(--surface); }
.resource-button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.resource-button:hover { text-decoration: none; border-color: var(--accent); }
.resource-button svg { width: 17px; height: 17px; }
.arxiv-button { background: #fff; color: #192538; }
.arxiv-button img { width: 15px; height: 20px; }
.resource-button:disabled { cursor: default; color: var(--muted); }
.resource-button:disabled:hover { border-color: var(--border); }
.button-status { font-size: 11px; font-weight: 400; margin-left: 2px; }
.teaser { max-width: 900px; margin: 0 auto; }
.video-frame { position: relative; overflow: hidden; border-radius: 15px; border: 1px solid var(--border); box-shadow: var(--shadow); background: #ededed; }
.teaser video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.video-frame.enhanced video::-webkit-media-controls { display: none !important; }
.video-frame.enhanced video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.video-start { position: absolute; left: 50%; top: calc(50% - 23px); transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; color: #fff; background: rgba(30, 45, 65, .78); border: 1px solid rgba(255,255,255,.7); display: grid; place-items: center; box-shadow: 0 3px 18px rgba(0,0,0,.14); }
.video-start:hover { background: #223b5c; }
.video-start svg { width: 27px; height: 27px; }
.video-controls { height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 15px; background: var(--surface); border-top: 1px solid var(--border); color: var(--body); }
.player-button { flex: 0 0 28px; width: 28px; height: 30px; padding: 5px; border: 0; background: transparent; display: grid; place-items: center; border-radius: 4px; }
.player-button:hover { background: var(--soft); }
.player-button svg { width: 18px; height: 18px; }
.video-time, .video-duration { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 29px; }
#video-seek { width: 100%; min-width: 30px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.pause-icon, .playing .play-icon { display: none; }
.playing .pause-icon { display: block; }
.video-frame:fullscreen { display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; background: #080c13; }
.video-frame:fullscreen video { flex: 1; min-height: 0; max-height: calc(100dvh - 46px); object-fit: contain; }
.video-frame:fullscreen .video-controls { flex-shrink: 0; }
figcaption { max-width: 820px; margin: 15px auto 0; text-align: center; font-size: 14px; line-height: 1.7; color: var(--muted); }
.caption-title { color: var(--body); font-weight: 600; }
#teaser-caption { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; text-align: center; }
#teaser-caption > span { display: block; width: 100%; text-align: center; }
.introduction { max-width: 780px; margin: 64px auto 70px; }
h2 { font-size: 29px; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.introduction h2 { text-align: center; margin-bottom: 23px; }
.prose p + p { margin-top: 17px; }
.prose { max-width: 780px; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; margin-bottom: 15px; }
.section { padding-top: 0; margin-bottom: 70px; }
.section-heading { text-align: center; margin: 0 auto 29px; }
.section-heading > p { max-width: 640px; margin: 14px auto 0; color: var(--muted); font-size: 15px; }
.wide-figure { margin: 28px auto 0; }
.figure-link { display: block; position: relative; background: #fff; padding: 30px 25px; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.figure-link img { display: block; width: 100%; height: auto; }
.figure-action { position: absolute; z-index: 1; top: -14px; right: -6px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; color: #5d6b7f; background: transparent; border-radius: 8px; }
.figure-action::before { content: ''; position: absolute; z-index: -1; width: 26px; height: 26px; border: 1px solid var(--border); background: #f3f6f9; border-radius: 6px; }
.figure-action svg { width: 14px; height: 14px; }
.figure-action:hover { color: #245798; }
.figure-action:hover::before { background: #e7effa; }
.method-frame { overflow: visible; border-color: transparent; border-radius: 22px; box-shadow: 0 8px 36px rgba(30, 53, 85, .045); padding-block: 22px 24px; }
.method-art { min-width: 0; aspect-ratio: 9782 / 2674; position: relative; }
.method-svg { display: block; width: 100%; height: auto; overflow: visible; }
.method-art > img:not([hidden]) + .method-svg { position: absolute; inset: 0; }
.method-stage { cursor: pointer; transition: opacity .55s cubic-bezier(.22, 1, .36, 1); }
.method-stage:focus { outline: none; }
.stage-outline { fill: transparent; stroke: none; pointer-events: all; }
.has-active-stage .method-stage:not(.is-active) { opacity: .62; }
.method-aura { position: absolute; top: 0; left: 0; pointer-events: none; border-radius: 40%; opacity: 0; background: radial-gradient(ellipse, rgba(92, 153, 213, .10), rgba(130, 179, 218, .035) 55%, transparent 76%); box-shadow: 0 0 32px 5px rgba(103, 156, 206, .07); transition: transform .6s cubic-bezier(.22, 1, .36, 1), width .6s cubic-bezier(.22, 1, .36, 1), height .6s cubic-bezier(.22, 1, .36, 1), opacity .4s ease; }
.method-aura.is-visible { opacity: 1; }
.method-stages { position: relative; max-width: 670px; margin: 26px auto 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.method-stages::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent); }
.method-stages button { position: relative; border: 0; background: transparent; padding: 10px 4px 15px; font-size: 12px; color: var(--muted); transition: color .35s ease; }
.method-stages button > span { margin-right: 7px; color: var(--muted); font-weight: 500; transition: color .35s ease; }
.method-stages button:hover, .method-stages button.is-active { color: var(--ink); }
.method-stages button.is-active > span { color: var(--accent); }
.stage-trail { position: absolute; bottom: 0; left: 0; height: 2px; border-radius: 100%; background: var(--accent); box-shadow: 0 0 12px rgba(111, 166, 225, .24); pointer-events: none; opacity: 0; transition: transform .5s cubic-bezier(.22, 1, .36, 1), width .5s ease, opacity .3s ease; }
.stage-trail.is-visible { opacity: .8; }
.method-explorer figcaption { min-height: 78px; max-width: 760px; margin-top: 22px; }
.results-explorer .method-art { aspect-ratio: 5030 / 1911; }
.results-explorer .method-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 550px; }
.method-notes { --note-gap: 42px; max-width: 900px; margin: 30px auto 0; display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--note-gap); font-size: 14px; }
.method-notes h3 { font-size: 16px; line-height: 1.4; margin-bottom: 13px; }
.attention-note { position: relative; }
.attention-note::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--note-gap) / -2); width: 1px; background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent); pointer-events: none; }
dl { margin: 0; }
.ranks > div { display: grid; grid-template-columns: 57px 1fr; gap: 13px; padding: 11px 0; border-top: 1px solid var(--border); }
.ranks dt { color: var(--accent); font-size: 12px; font-weight: 600; }
.ranks dd { margin: 0; }
#results { max-width: 900px; margin-inline: auto; }
.section-intro { max-width: 780px; margin: 0 auto 29px; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; text-align: right; }
caption { text-align: left; padding: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--ink); }
.table-number { font-weight: 400; font-size: 12px; color: var(--muted); margin-right: 13px; }
th, td { padding: 13px 18px; border-bottom: 1px solid var(--border); }
thead th { background: var(--soft); font-size: 14px; font-weight: 600; color: var(--body); vertical-align: bottom; white-space: nowrap; }
thead th:first-child { border-top-left-radius: 8px; }
thead th:last-child { border-top-right-radius: 8px; }
th:first-child { text-align: left; }
.baseline-citation { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; }
tbody th { font-weight: 400; }
tbody td { white-space: nowrap; }
.group-row th { font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; padding-top: 19px; padding-bottom: 5px; border-bottom: 0; }
.ours { background: var(--row); }
.ours > th { color: var(--accent); font-weight: 600; }
.ours-label { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.table-note { margin-top: 13px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.result-reading { max-width: 780px; margin: 23px 0 0; font-size: 15px; }
.qualitative { margin-top: 36px; }
.qualitative .figure-link { padding: 30px 22px 24px; }
.reduction { margin-top: 48px; display: block; }
.reduction .prose { margin-bottom: 23px; font-size: 15px; }
.reduction .table-block { max-width: 670px; margin-inline: auto; }
.ablation { margin-top: 43px; }
.ablation .section-intro { margin: 0 0 25px; font-size: 15px; }
.ablation-table th, .ablation-table td { text-align: center; padding-inline: 11px; }
.ablation-table td[aria-label='Not included'] { color: var(--muted); }
.ablation-table td[aria-label='Included'] { color: var(--accent); }
.ablation-table th:nth-last-child(-n+2), .ablation-table td:nth-last-child(-n+2) { text-align: right; padding-right: 18px; }
.metric-start { border-left: 1px solid var(--border); }
.limitations { max-width: 780px; margin-inline: auto; }
.limitations h2 { margin-bottom: 23px; text-align: center; }
.citation { max-width: 900px; margin-inline: auto; margin-bottom: 40px; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.copy-button { background: var(--surface); color: var(--body); border: 1px solid var(--border); padding: 7px 13px; border-radius: 6px; font-size: 12px; }
.copy-button:hover { background: var(--soft); border-color: var(--accent); }
pre { margin: 0; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); padding: 25px 28px; font: 12px/1.9 'SFMono-Regular', Consolas, monospace; color: var(--body); }
.copy-status { font-size: 13px; min-height: 23px; margin-top: 8px; color: var(--accent); }
footer { border-top: 1px solid var(--border); display: flex; gap: 23px; align-items: center; padding: 25px 0 30px; font-size: 12px; color: var(--muted); }
.footer-contact { margin-left: auto; }
footer .wordmark { font-size: 17px; }
dialog { padding: 0; width: calc(100vw - 48px); max-width: 1700px; max-height: calc(100dvh - 48px); border: 1px solid var(--border); border-radius: 15px; background: var(--surface); color: var(--body); box-shadow: 0 20px 100px rgba(0,0,0,.2); }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(9, 16, 29, .72); }
.dialog-toolbar { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 23px; border-bottom: 1px solid var(--border); }
.dialog-toolbar h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.figure-controls { display: flex; flex-shrink: 0; align-items: center; gap: 9px; font-size: 12px; }
.dialog-toolbar button { border: 1px solid var(--border); border-radius: 5px; background: var(--soft); padding: 6px 12px; white-space: nowrap; }
.figure-hint { display: none; }
.dialog-image-area { min-height: 0; padding: 27px; overflow: auto; max-height: calc(100dvh - 140px); background: white; overscroll-behavior: contain; }
.dialog-image-area img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.dialog-image-area.zoomed img { width: 200%; min-width: 1600px; max-width: none; }
.dialog-image-area.zoomed img { cursor: zoom-out; }
body.figure-open { overflow: hidden; }
@media (max-width: 900px) {
  .page-shell { padding-inline: 24px; }
  h1 { font-size: 35px; }
  .authors { gap: 24px 22px; font-size: 14px; }
  .hero { padding-top: 44px; }
  .method-notes { --note-gap: 30px; }
}
@media (max-width: 600px) {
  .page-shell { padding-inline: 19px; }
  .masthead { height: 61px; }
  .masthead nav { gap: 17px; font-size: 12px; }
  .masthead nav > a:first-child { display: none; }
  .theme-toggle { width: 29px; height: 29px; }
  .wordmark { font-size: 17px; }
  .hero { padding-top: 32px; }
  .publication-line { flex-direction: column; gap: 7px; font-size: 12px; margin-bottom: 17px; }
  .award-distinction { padding-left: 0; border-left: 0; font-size: 12px; }
  h1 { font-size: 29px; line-height: 1.24; letter-spacing: -.032em; }
  .title-break { display: none; }
  .title-sub { font-size: .8em; line-height: 1.3; margin-top: 12px; }
  .paper-details { margin-top: 26px; margin-bottom: 28px; }
  .authors { gap: 22px 12px; font-size: 13px; }
  .author { flex: 0 0 140px; }
  .author a { gap: 8px; }
  .author-portrait { width: 72px; height: 72px; }
  .affiliations { gap: 5px 12px; font-size: 12px; line-height: 1.7; margin-top: 15px; }
  .affiliations > span { white-space: normal; }
  .resources { gap: 10px; margin-top: 20px; }
  .resource-button { height: 37px; font-size: 12px; padding-inline: 14px; gap: 7px; }
  .video-frame { border-radius: 10px; }
  .video-controls { gap: 7px; padding-inline: 8px; height: 42px; }
  .video-start { width: 46px; height: 46px; top: calc(50% - 21px); }
  .video-start svg { width: 23px; height: 23px; }
  figcaption { font-size: 12px; margin-top: 12px; text-align: left; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .introduction { margin: 43px auto 46px; }
  .introduction h2 { margin-bottom: 20px; }
  .section { margin-bottom: 48px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading > p { font-size: 14px; }
  .figure-link, .qualitative .figure-link { padding: 16px 8px 12px; border-radius: 10px; }
  .wide-figure { margin-top: 24px; }
  .method-frame { border-radius: 16px; }
  .method-stages { gap: 3px; margin-top: 18px; }
  .method-stages button { padding: 7px 2px 12px; min-height: 44px; font-size: 11px; }
  .method-stages button > span { display: block; margin: 0 0 2px; font-size: 12px; }
  .method-explorer figcaption { min-height: 130px; }
  .method-notes { display: block; margin-top: 26px; }
  .attention-note { margin-top: 27px; }
  .attention-note::before { top: -14px; bottom: auto; left: 0; width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--border) 10%, var(--border) 90%, transparent); }
  .method-notes, .ranks { font-size: 14px; }
  .table-scroll { border-radius: 8px; }
  table { min-width: 570px; font-size: 13px; }
  th, td { padding: 12px 13px; }
  thead th { font-size: 12px; }
  caption { font-size: 13px; }
  .table-note { font-size: 12px; }
  .result-reading { font-size: 14px; }
  .reduction { margin-top: 35px; }
  .reduction table { min-width: 0; }
  .ablation { margin-top: 35px; }
  .ablation-table { min-width: 700px; }
  pre { padding: 18px; font-size: 12px; }
  .citation-heading { margin-bottom: 18px; }
  footer { gap: 16px; flex-wrap: wrap; }
  .footer-contact { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 600px), (pointer: coarse) and (max-height: 600px) {
  #figure-dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .dialog-toolbar { padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); gap: 12px; }
  .dialog-toolbar h2 { min-width: 0; font-size: 14px; line-height: 1.4; }
  .dialog-toolbar button { min-width: 44px; min-height: 44px; padding: 5px 8px; }
  .figure-hint { display: block; flex-shrink: 0; padding: 6px 12px; font-size: 12px; }
  .dialog-image-area { flex: 1; max-height: none; padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .dialog-image-area img, .dialog-image-area.zoomed img { cursor: default; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  :root { --bg: white; --surface: white; --ink: #111; --body: #333; --muted: #555; --border: #ddd; --soft: #f5f5f5; }
  .masthead, .resources, .video-controls, .video-start, .copy-button, .figure-action, dialog, footer { display: none !important; }
  .method-stages, .method-aura { display: none; }
  .has-active-stage .method-stage:not(.is-active) { opacity: 1; }
  .page-shell { max-width: none; padding: 0; }
  body { font-size: 11pt; }
  .hero { padding-top: 0; }
  .section { break-inside: avoid; margin-bottom: 25pt; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; }
  pre { white-space: pre-wrap; }
}
