:root {
  color-scheme: light;
  --text: #34343a;
  --heading: #18181b;
  --accent: #a51fb7;
  --accent-soft: #f8eefb;
  --link: #8c1c9c;
  --line: #e4e4e7;
  --muted: #71717a;
  --page: #fafafa;
  --surface: #fff;
  --sidebar-width: 200px;
  --content-spacing: .85;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--text); background: var(--page); font-family: "Noto Sans", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
p + p { margin-top: 1rem; }
strong { color: var(--heading); font-weight: 600; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.page-shell { margin-left: var(--sidebar-width); }
.container { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
main .container { width: min(1008px, calc(90% - 72px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.section-nav { position: fixed; top: 50%; left: 16px; z-index: 2; display: flex; flex-direction: column; width: 176px; max-height: calc(100dvh - 48px); overflow-y: auto; transform: translateY(-50%); }
.section-nav a { display: block; flex-shrink: 0; padding: 8px 14px; border-radius: 8px; color: #1e293b; font-size: 13px; font-weight: 400; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s, background .15s; }
.section-nav a:hover { background: rgb(0 0 0 / 4%); text-decoration: none; }
.section-nav a[aria-current] { color: var(--accent); background: rgb(0 0 0 / 6%); font-weight: 700; }

.hero { padding: 64px 0 calc(40px * var(--content-spacing)); text-align: center; }
.title-container { max-width: 1120px; }
h1 { margin: 0; color: var(--heading); font-family: "Google Sans", "Noto Sans", sans-serif; font-size: clamp(32px, 3.1vw, 44px); font-weight: 700; line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
.title-accent { color: var(--accent); }
.title-separator { color: #a1a1aa; font-weight: 400; }
.publication-venue { margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.publication-authors { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 28px; row-gap: 8px; margin-top: 34px; font-family: "Google Sans", "Noto Sans", sans-serif; font-size: 18px; font-weight: 500; }
.publication-authors > * { white-space: nowrap; }
.publication-authors a { color: #27272a; }
.publication-authors a:hover { color: var(--accent); }
sup { margin-left: 2px; font-size: .65em; }
.publication-affiliation { margin-top: 10px; color: var(--muted); font-size: 15px; }
.author-note { margin-top: 6px; color: var(--muted); font-size: 12px; font-style: italic; }
.publication-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--heading); font-size: 14px; font-weight: 500; cursor: pointer; line-height: 1.5; transition: color .18s, background .18s, border-color .18s; }
.button:hover { color: #fff; background: var(--heading); border-color: var(--heading); text-decoration: none; }

.section { padding: calc(52px * var(--content-spacing)) 0; }
.teaser-section { padding-top: 88px; padding-bottom: calc(28px * var(--content-spacing)); }
h2 { position: relative; margin: 0 0 calc(30px * var(--content-spacing)); padding-bottom: calc(16px * var(--content-spacing)); color: var(--heading); font-family: "Google Sans", "Noto Sans", sans-serif; font-size: 29px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.section h2::after { content: ""; position: absolute; bottom: 0; left: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--accent); }
h3 { margin: 0; color: var(--heading); font-size: 18px; font-weight: 600; line-height: 1.4; }
.tldr { padding: calc(24px * var(--content-spacing)) 28px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface); text-align: center; }
.tldr h2 { margin: 0 0 calc(10px * var(--content-spacing)); padding: 0; color: #000; font-size: 12px; letter-spacing: .06em; }
.tldr p { color: #000; font-size: 20px; line-height: 1.75; text-wrap: balance; }
.tldr p strong { color: inherit; font-weight: 700; }
.tldr-lead, .tldr-context, .tldr-result { display: block; }
.figure-link { display: block; padding: 5px; border-radius: 10px; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.figure-link img { width: 100%; }
.teaser-copy { margin-top: calc(22px * var(--content-spacing)); }
.teaser-copy > p { text-align: center; font-size: 15px; line-height: 1.7; letter-spacing: -.01em; }
.teaser-caption-line { display: block; text-wrap: balance; }

.dataset-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: calc(24px * var(--content-spacing)); }
.dataset-tabs button { min-height: 42px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: #52525b; font-size: 13px; font-weight: 500; cursor: pointer; transition: color .18s, border-color .18s, background .18s; }
.dataset-tabs button:hover { color: var(--accent); border-color: #d9b5df; }
.dataset-tabs button[aria-selected="true"] { color: var(--accent); border-color: #dec1e3; background: var(--accent-soft); font-weight: 700; }
.scene-toolbar { margin-bottom: calc(24px * var(--content-spacing)); }
.scene-heading h3 { font-family: "Google Sans", "Noto Sans", sans-serif; font-size: 22px; font-weight: 600; }
.scene-heading p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.comparison-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(20px * var(--content-spacing)); touch-action: pan-y pinch-zoom; }
.comparison-panel { min-width: 0; padding: calc(14px * var(--content-spacing)); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.comparison-panel figcaption { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; margin-bottom: calc(12px * var(--content-spacing)); color: var(--heading); font-size: 15px; font-weight: 600; line-height: 1.4; text-align: center; }
.comparison-ours { border-color: #dec1e3; }
.comparison-ours figcaption { color: var(--accent); }
.comparison-panel figcaption span { font-size: 12px; font-weight: 400; }
.scene-image { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; }
.scene-svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden; stroke: none; background: #fff; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: calc(24px * var(--content-spacing)); }
.carousel-frame { position: relative; min-width: 0; }
.carousel-frame > .carousel-arrow { position: absolute; top: 50%; z-index: 1; transform: translateY(-50%); }
.carousel-previous { left: -58px; }
.carousel-next { right: -58px; }
.carousel-arrow { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--heading); background: var(--surface); cursor: pointer; transition: color .18s, border-color .18s, background .18s; }
.carousel-arrow:hover { color: var(--accent); border-color: #dec1e3; background: var(--accent-soft); }
.carousel-count { min-width: 40px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.no-script-note { margin-top: 18px; text-align: center; font-size: 14px; }

.method-stages { display: flex; flex-direction: column; gap: calc(24px * var(--content-spacing)); margin-top: calc(34px * var(--content-spacing)); }
.method-card { display: grid; grid-template-columns: 250px 1fr; align-items: start; gap: 32px; }
.stage-topline { display: flex; flex-direction: column; gap: 7px; }
.stage-label { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.method-card h3 { color: var(--accent); font-family: "Google Sans", "Noto Sans", sans-serif; font-size: 19px; font-weight: 600; }
.method-card > p { padding-top: 21px; line-height: 1.75; }
.contributions-list { list-style: none; counter-reset: contributions; margin: 0; padding: 0; }
.contributions-list li { position: relative; counter-increment: contributions; padding-left: 48px; margin-bottom: calc(26px * var(--content-spacing)); line-height: 1.75; }
.contributions-list li:last-child { margin-bottom: 0; }
.contributions-list li::before { content: counter(contributions); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.contributions-list strong { color: var(--accent); }
.citation-section { padding-bottom: calc(64px * var(--content-spacing)); }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: calc(24px * var(--content-spacing)); }
.citation-heading h2 { margin: 0; }
.citation-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.copy-button { min-height: 34px; padding: 5px 15px; font-size: 13px; }
pre { min-height: 90px; margin: 0; padding: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; line-height: 1.75; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.citation-placeholder { color: var(--muted); }
footer { padding: 32px 24px 40px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; }
footer span { margin-inline: 8px; }
footer .template-credit { font-size: 12px; margin-top: 8px; }

dialog { width: min(1500px, 96vw); max-width: 96vw; max-height: 92dvh; padding: 0; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 60px #0003; color: var(--text); }
dialog::backdrop { background: #18181bc9; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.dialog-toolbar h2 { margin: 0; padding: 0; font-size: 18px; text-align: left; }
.dialog-toolbar > div { display: flex; align-items: center; gap: 24px; flex-shrink: 0; font-size: 14px; }
.dialog-toolbar .button { min-height: 36px; padding: 6px 15px; font-size: 14px; }
.dialog-image-container { max-height: calc(92dvh - 80px); overflow: auto; padding: 20px; }
.dialog-image-container img { width: 100%; min-width: 1000px; max-width: none; }
.dialog-image-container .scene-svg { width: 100%; height: min(72dvh, 900px); aspect-ratio: auto; }

.quantitative-heading { margin-bottom: calc(20px * var(--content-spacing)); }
.quantitative-heading h3 { font-family: "Google Sans", "Noto Sans", sans-serif; font-size: 22px; }
.results-metric { margin-top: 6px; font-size: 13px; }
.results-metric span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.results-table { width: 100%; min-width: 580px; border-collapse: separate; border-spacing: 0; color: var(--heading); font-size: .9em; line-height: 1.5; font-variant-numeric: tabular-nums; }
.results-table th, .results-table td { padding: 10px 16px; border-right: 1px solid #ececee; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.results-table thead th { background: #f2e2f9; color: var(--heading); font-weight: 600; border-bottom-width: 2px; }
.results-table th:first-child { position: sticky; left: 0; z-index: 1; width: 34%; }
.results-table tbody th { background: var(--row-background, #fff); font-weight: 500; }
.results-table td { background: var(--row-background, #fff); }
.results-table tbody tr { transition: background .15s; }
.results-table tbody tr:not(.ours):hover { --row-background: #fbfbfb; }
.results-table .ours { --row-background: #f4f4f5; }
.results-table .ours > * { color: #27272a; }
.results-table .ours th { font-weight: 700; }
.results-table tr > :last-child { border-right: 0; }
.results-table tbody tr:last-child > * { border-bottom: 0; }
.score-best { font-weight: 700; }
.score-second { text-decoration: underline; text-underline-offset: 3px; }
.table-note { margin-top: calc(14px * var(--content-spacing)); color: var(--muted); font-size: 12px; }
.is-switching { pointer-events: none; }

.reveal { opacity: 0; transform: translate3d(0, 44px, 0); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1200px) {
  .container { width: calc(100% - 64px); }
  main .container { width: calc(90% - 57.6px); }
  .desktop-break { display: none; }
  .tldr p { font-size: 19px; }
  .method-card { grid-template-columns: 210px 1fr; gap: 24px; }
}
@media (max-width: 1000px) {
  .hero { padding-top: 44px; }
  h1 { font-size: clamp(30px, 4.6vw, 42px); }
}
@media (max-width: 768px) {
  .section-nav { display: none; }
  .page-shell { margin-left: 0; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 36px); }
  main .container { width: calc(90% - 32.4px); }
  .hero { padding: 36px 0 calc(30px * var(--content-spacing)); }
  h1 { font-size: clamp(28px, 5.2vw, 36px); line-height: 1.25; }
  .publication-venue { margin-top: 14px; font-size: 11px; }
  .publication-authors { column-gap: 16px; row-gap: 5px; font-size: 16px; margin-top: 26px; }
  .publication-affiliation { font-size: 14px; }
  .publication-links { margin-top: 24px; gap: 8px; }
  .button { min-height: 42px; padding: 9px 15px; font-size: 13px; }
  .section { padding-block: calc(38px * var(--content-spacing)); }
  .teaser-section { padding-top: 64px; padding-bottom: calc(24px * var(--content-spacing)); }
  h2 { margin-bottom: calc(24px * var(--content-spacing)); font-size: 26px; }
  .tldr { padding: calc(20px * var(--content-spacing)) 16px; }
  .tldr p { font-size: 18px; line-height: 1.7; }
  .teaser-copy { margin-top: calc(20px * var(--content-spacing)); }
  .teaser-copy > p { font-size: 14px; }
  .dataset-tabs { gap: 6px; margin-bottom: calc(20px * var(--content-spacing)); }
  .dataset-tabs button { min-height: 42px; padding: 8px 12px; font-size: 12px; }
  .scene-toolbar { margin-bottom: calc(20px * var(--content-spacing)); }
  .scene-heading h3 { font-size: 20px; }
  .carousel-frame > .carousel-arrow { top: 16px; }
  .carousel-previous { left: 0; }
  .carousel-next { right: 0; }
  .scene-heading, .quantitative-heading { text-align: center; }
  .scene-heading h3, .quantitative-heading h3 { padding-inline: 48px; }
  .results-metric span { display: block; margin: 3px 0 0; }
  .comparison-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(12px * var(--content-spacing)); }
  .comparison-panel { padding: calc(10px * var(--content-spacing)); }
  .comparison-panel figcaption { margin-bottom: calc(8px * var(--content-spacing)); font-size: 13px; }
  .comparison-panel figcaption span { font-size: 11px; }
  .method-stages { gap: calc(24px * var(--content-spacing)); margin-top: calc(26px * var(--content-spacing)); }
  .method-card { grid-template-columns: 1fr; gap: 8px; }
  .method-card > p { padding: 0; font-size: 15px; }
  .stage-topline { gap: 4px; }
  .contributions-list { font-size: 15px; }
  .contributions-list li { padding-left: 42px; margin-bottom: calc(22px * var(--content-spacing)); }
  .citation-heading { gap: 12px; }
  .citation-actions { gap: 10px; font-size: 12px; }
  pre { padding: 18px; font-size: 12px; }
  .dialog-toolbar { padding: 14px; gap: 12px; align-items: flex-start; }
  .dialog-toolbar h2 { font-size: 15px; }
  .dialog-toolbar > div { gap: 10px; font-size: 12px; }
  .dialog-toolbar .button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
  .dialog-image-container { padding: 12px; }
  .quantitative-heading h3 { font-size: 20px; }
  .results-table { min-width: 520px; font-size: 13px; }
  .results-table th, .results-table td { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .publication-links { display: grid; grid-template-columns: repeat(2, max-content); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}
