@font-face {
  font-family: Inter;
  src: url("vendor/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1e293b;
  --text: #363636;
  --secondary: #565d66;
  --line: #e5e7eb;
  --light: #f5f6f8;
  --blue: #2563eb;
  --page-width: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 18px; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.6 Inter, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3, h4, dl, dd { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.container { width: min(calc(100% - 48px), var(--page-width)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; padding: .6em 1em; background: #fff; }

.hero { padding: clamp(45px, 6vw, 76px) 0 clamp(28px, 4vw, 42px); text-align: center; }
.hero h1 {
  max-width: 1100px; margin-inline: auto; color: var(--ink); text-wrap: balance;
  font-size: clamp(29px, 4.4vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em;
}
.title-break { display: none; }
@media (min-width: 1168px) { .title-break { display: initial; } }
.authors { margin-top: 23px; font-size: clamp(16px, 2vw, 20px); font-weight: 500; }
.affiliation { margin-top: 4px; }
.author-note { display: block; color: var(--secondary); font-size: .79rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 19px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 39px; padding: 7px 14px; border: 1px solid transparent; border-radius: 6px;
  font-size: .88rem; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none;
}
.button.primary { color: #fff; background: var(--ink); }
.button.primary:hover { background: #334155; }
.button.secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.button.secondary:hover { background: var(--light); }
.hero-actions .button { border-radius: 999px; padding-inline: 17px; }
.teaser { max-width: 1000px; text-align: center; }
.teaser a, .method-figure a { display: block; }
.teaser img, .method-figure img { width: 100%; height: auto; }
figcaption { margin-top: 9px; font-size: .9rem; color: var(--secondary); }

h2 { font-size: clamp(25px, 3.1vw, 33px); line-height: 1.22; color: var(--ink); font-weight: 750; }
.section-heading { max-width: 760px; margin: 0 auto 22px; text-align: center; }
.section-heading p { margin: 8px auto 0; color: var(--secondary); font-size: .95rem; }
.gallery-section, .comparison-section, .citation { padding-block: clamp(37px, 5vw, 62px); }
.gallery-content { width: min(100%, 850px); margin-inline: auto; }
.gallery-caption { margin-bottom: 12px; text-align: center; }
.gallery-caption h3 { color: var(--ink); font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.gallery-caption p { margin-top: 2px; color: var(--secondary); font-size: .8rem; }
.gallery-inputs { margin-bottom: 10px; padding: 7px 10px 9px; text-align: center; background: var(--light); border-radius: 6px; }
.gallery-inputs h4 { margin-bottom: 5px; font-size: .78rem; font-weight: 650; }
.input-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.input-grid a { display: block; }
.input-grid img { width: clamp(42px, 10vw, 68px); aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.gallery-stage { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 3 / 2; background: #808080; border-radius: 6px; }
.gallery-stage > img, .gallery-stage > video, #viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-stage > img, .gallery-stage > video { object-fit: cover; }
.gallery-stage > video:not(.playing) { opacity: 0; }
#viewer { background: #808080; }
#viewer.loading { opacity: 0; pointer-events: none; }
#viewer iframe { display: block; width: 100%; height: 100%; border: 0; }
.stage-actions { position: absolute; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; bottom: 12px; left: 12px; right: 12px; }
.stage-actions .secondary { border-color: transparent; }
.explore-button { border-color: #ffffff70; }
#toggle-playback { margin-left: auto; }
.stage-status { position: absolute; z-index: 1; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 5px 9px; border-radius: 4px; background: #141414e8; color: #fff; font-size: .85rem; }
.viewer-help { margin-top: 7px; text-align: center; font-size: .8rem; color: var(--secondary); }
.scene-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 740px; margin: 11px auto 0; }
.scene-option {
  display: grid; width: 100%; gap: 5px; padding: 4px 4px 6px; border: 1px solid var(--line);
  border-radius: 5px; background: #fff; text-align: center; color: var(--ink); font-size: .79rem; font-weight: 600; line-height: 1.3;
}
.scene-option img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.scene-option:hover, .scene-option[aria-pressed="true"] { border-color: var(--blue); background: #eff6ff; }

.paper-content { padding-top: clamp(22px, 4vw, 46px); display: grid; gap: clamp(38px, 6vw, 64px); }
.prose-block { width: min(100%, 765px); margin-inline: auto; }
.prose-block h2 { margin-bottom: 15px; text-align: center; }
.prose-block p + p { margin-top: .85em; }
.method-figure { max-width: 1000px; margin-inline: auto; }
.method-notes { max-width: 765px; margin: 16px auto 0; display: grid; gap: 8px; }
.method-notes dt, .method-notes dd { display: inline; }
.method-notes dt { font-weight: 700; color: var(--ink); }
.method-notes dt::after { content: " — "; }
.method-notes dd { color: var(--secondary); }

.comparison-group + .comparison-group { margin-top: 30px; }
.comparison-group h3 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; line-height: 1.25; color: var(--ink); margin-bottom: 9px; }
.comparison-scroll { overflow-x: auto; padding: 3px 2px 8px; overscroll-behavior-x: contain; }
.result-grid { --cell-min: 156px; display: grid; grid-template-columns: repeat(var(--columns), minmax(var(--cell-min), 1fr)); gap: 8px; min-width: calc(var(--columns) * (var(--cell-min) + 8px) - 8px); }
.result-head { text-align: center; padding: 5px 3px; font-size: .84rem; font-weight: 650; border-bottom: 1px solid var(--line); }
.result-head.ground-truth { color: var(--ink); font-weight: 800; border-color: #9299a4; }
.result-head small { display: block; color: var(--secondary); font-size: .74rem; font-weight: 400; }
.scene-label { grid-column: 1 / -1; padding-top: 5px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.scene-label strong { font-size: .87rem; font-weight: 650; }
.scene-label span { font-size: .77rem; color: var(--secondary); }
.split { --split: 50%; position: relative; isolation: isolate; aspect-ratio: 1 / 2; overflow: hidden; background: var(--light); }
.split img { position: absolute; width: 100%; height: 100%; inset: 0; user-select: none; pointer-events: none; }
.split .ours-image { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.split::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid #fff; pointer-events: none; }
.split-tag {
  position: absolute; top: 5px; padding: 1px 5px; color: #fff; background: #171717e0;
  font-size: .69rem; font-weight: 600; border-radius: 3px; pointer-events: none;
}
.split-tag.left { left: 5px; }
.split-tag.right { right: 5px; }
.split-divider {
  position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--split); width: 2px;
  background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 4px #0009;
}
.split-divider::after {
  content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: #222; border: 1px solid #fff; font-size: 14px; line-height: 1;
}
.split input {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0;
  appearance: none; opacity: 0; cursor: ew-resize; touch-action: pan-y; direction: ltr;
}
.split input::-webkit-slider-thumb { appearance: none; width: 1px; height: 24px; }
.split input::-moz-range-thumb { width: 1px; height: 24px; border: 0; }
.split:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.citation { max-width: 850px; padding-top: 10px; }
.citation .section-heading { text-align: left; max-width: none; margin-bottom: 12px; }
.citation-box { position: relative; background: var(--light); border: 1px solid var(--line); border-radius: 5px; padding: 15px; }
.citation-box button { position: absolute; top: 10px; right: 10px; }
pre { margin: 0; padding: 35px 0 0; font-size: .84rem; white-space: pre; overflow-x: auto; }
.site-footer { border-top: 1px solid var(--line); text-align: center; padding-block: 18px; font-size: .82rem; color: var(--secondary); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 530px) {
  .scene-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .container { width: calc(100% - 28px); }
  .authors { margin-top: 16px; }
  .affiliation { font-size: .9rem; }
  .stage-actions { bottom: 7px; left: 7px; right: 7px; }
  .stage-actions .button { padding-inline: 9px; min-height: 34px; font-size: .76rem; }
}
