:root { --ink: #202936; --muted: #5c6674; --blue: #1465b8; --line: #e2e7ee; --wash: #f6f8fb; --page: 1120px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 5; padding: 10px 18px; background: #fff; }
.skip-link:focus { top: 16px; }
.hero { max-width: 1000px; margin: auto; padding: 66px 24px 38px; text-align: center; }
.venue { margin: 12px 0 24px; color: var(--blue); font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; line-height: 1.4; }
.venue strong { font-weight: 800; }
.venue span { margin: 0 4px; }
h1 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.project-name { display: block; color: var(--blue); font-size: clamp(2.5rem, 5.8vw, 4rem); }
.paper-title { display: block; max-width: 900px; margin: 16px auto 0; font-size: clamp(1.5rem, 3.4vw, 2.5rem); }
.authors { max-width: 820px; margin: 26px auto 0; font-size: 1.13rem; line-height: 1.8; font-weight: 500; }
.authors .author { display: inline-block; white-space: nowrap; margin-right: 5px; }
.authors .author:last-child { margin-right: 0; }
.affiliation { margin: 4px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.resource-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 28px; color: #fff; background: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none; line-height: 1.5; }
.button[href]:hover { background: #34465c; border-color: #34465c; }
.button svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.resource-status { cursor: default; }
.release-note { margin-left: 5px; font-size: .76rem; font-weight: 400; color: #d5dde7; }
.section-links { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; font-size: .9rem; }
.section-links span { color: var(--muted); }
.lead { max-width: 800px; margin: 28px auto 0; color: var(--muted); font-size: 1.15rem; }
.lead strong { color: var(--ink); }
.wide { max-width: var(--page); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
figure { margin: 24px 0 0; }
.hero-figure { margin-top: 0; margin-bottom: 60px; }
img { display: block; width: 100%; height: auto; }
.figure-link { display: block; }
figcaption { max-width: 940px; margin: 16px auto 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }
figcaption strong { color: var(--ink); }
.section { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.text-section { max-width: 820px; margin: auto; padding-left: 24px; padding-right: 24px; }
h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.025em; line-height: 1.3; }
h3 { margin: 0 0 12px; font-size: 1.1rem; line-height: 1.4; }
p { margin: 0 0 16px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-header { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.section-header p:last-child { color: var(--muted); }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 36px 0 0; padding: 0; }
.method-steps li { padding-top: 18px; border-top: 2px solid var(--blue); }
.step-number { display: block; margin-bottom: 10px; color: var(--blue); font-size: .8rem; font-weight: 700; }
.method-steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.result-block { margin-top: 40px; }
.result-block > p { max-width: 850px; color: var(--muted); }
.benchmark-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.tab-button { display: inline-block; background: var(--wash); border: 1px solid var(--line); border-radius: 8px; padding: 9px 18px; font-weight: 600; text-decoration: none; color: var(--ink); }
.tab-button[aria-selected="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.benchmark-panel[hidden] { display: none; }
.benchmark-panel h3 { margin: 26px 0 12px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 650px; font-size: .92rem; font-variant-numeric: tabular-nums; }
caption { padding: 15px 18px; text-align: left; color: var(--muted); background: var(--wash); }
th, td { padding: 13px 16px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; }
thead th { color: var(--muted); font-size: .82rem; background: #fff; }
tbody th { font-weight: 500; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody .ours { background: #eef5ff; }
tbody .ours th { color: var(--blue); font-weight: 700; }
.up { color: var(--blue); }
.table-note { margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
footer { padding: 28px 24px 42px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .88rem; }
footer p { margin-bottom: 8px; }
@media (max-width: 700px) {
 .hero { padding-top: 42px; }
 .authors { max-width: 360px; margin-left: auto; margin-right: auto; font-size: 1rem; }
 .affiliation { font-size: .95rem; }
 .lead { font-size: 1.03rem; }
 .wide, .text-section { padding-left: 20px; padding-right: 20px; }
 .section { padding-top: 38px; padding-bottom: 38px; }
 .hero-figure { margin-bottom: 38px; }
 .method-steps { grid-template-columns: 1fr; gap: 22px; }
 .button { padding: 9px 15px; }
 figcaption { font-size: .85rem; }
 th, td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Static example explorer */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.explorer [hidden] { display: none !important; }
.explorer select, .explorer input { font: inherit; }
.explorer select:focus-visible, .explorer input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.explorer-retry { padding: 9px 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: var(--wash); }
.explorer label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .82rem; font-weight: 600; }
.explorer select { min-width: 0; width: 100%; max-width: 100%; padding: 10px 30px 10px 10px; border: 1px solid #bcc6d2; border-radius: 6px; background-color: #fff; color: var(--ink); font-size: .93rem; text-overflow: ellipsis; }
.explorer-intro { max-width: 820px; color: var(--muted); font-size: .94rem; }
.explorer-controls { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 14px; margin: 24px 0 20px; padding: 18px; min-width: 0; border: 1px solid var(--line); background: var(--wash); border-radius: 10px; }
.explorer-query { border-left: 3px solid var(--blue); padding: 2px 0 2px 16px; margin: 20px 0; }
.explorer-query:has(p:empty):not(:has(p:not(:empty))) { display: none; }
.explorer-query p:last-child { margin: 0; font-size: 1.08rem; }
.explorer-status { color: var(--muted); font-size: .9rem; }
.explorer-status:empty { display: none; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.explorer-card { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); }
.explorer-card figcaption { margin: 0; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: .88rem; }
.explorer-card.ours { border-color: var(--blue); }
.explorer-card.ours figcaption { color: var(--blue); }
.explorer-card a { display: block; }
.explorer-footnote { margin: 16px 0 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) {
 .explorer-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
 .explorer-controls { grid-template-columns: minmax(0, 1fr); padding: 14px; }
 .comparison-grid { grid-template-columns: minmax(0, 1fr); }
 .explorer-query p:last-child { font-size: 1rem; }
 .explorer-retry { padding: 9px 12px; }
}

/* One synchronized movie, with native playback controls. */
.comparison-grid.video-mode { display: block; }
.explorer-video { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); }
.explorer-video figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 10px 12px; text-align: center; font-size: .88rem; font-weight: 600; }
.explorer-video figcaption span:last-child { color: var(--blue); }
.explorer-video video { display: block; width: 100%; aspect-ratio: auto 8 / 3; background: #111; }
.explorer-video.methods-video { max-width: min(100%, 97.5vh); margin-inline: auto; }
.explorer-video .explorer-retry { margin: 16px; }
.explorer [hidden] { display: none !important; }

.comparison-grid.four-methods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .comparison-grid.four-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .comparison-grid.four-methods { grid-template-columns: minmax(0, 1fr); } }

.explorer-video.methods-video video { aspect-ratio: auto 5 / 4; }
.explorer-video.methods-video figcaption { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.explorer-video.methods-video figcaption span:last-child { color: var(--ink); }

.explorer-card figcaption, .explorer-video figcaption { font-family: "Times New Roman", Times, serif; }
