:root {
  color-scheme: light;
  --text: #252633;
  --muted: #626572;
  --accent: #5943a0;
  --accent-dark: #403077;
  --tint: #f7f7fb;
  --highlight: #efecf8;
  --chart-baseline: #78668f;
  --chart-ablation: #c7bedb;
  --rule: #dedee7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; line-height: 1.7; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, summary:focus-visible, .table-scroll:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; }
h2 { font-size: 1.9rem; font-weight: 650; letter-spacing: -.025em; }
h3 { font-size: 1.14rem; font-weight: 650; }
strong { font-weight: 650; }
p + p { margin-top: 1rem; }
.container { width: min(100% - 64px, 1060px); margin-inline: auto; }
.reading-column { width: min(100% - 64px, 810px); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  background: #fff;
}
.skip-link:focus {
  position: fixed;
  width: auto;
  height: auto;
  padding: 8px 16px;
  overflow: visible;
  clip-path: none;
}

.publication-header { padding: 64px 0 0; text-align: center; }
.project-name {
  display: block;
  color: var(--accent);
  font-size: clamp(2.6rem, 5.4vw, 3.6rem);
  font-weight: 750;
  letter-spacing: -.055em;
  margin-bottom: 16px;
}
.project-name > span { color: var(--text); }
.paper-title {
  display: block;
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(1.7rem, 3.5vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.22;
  text-wrap: balance;
}
.publication-summary {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 24px auto 0;
}
.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 37px;
}
.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid #d6d5df;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 550;
}
.resource-link.primary { background: var(--text); border-color: var(--text); color: #fff; }
.resource-link:hover { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.resource-link.primary:hover { color: #fff; background: var(--accent); }
.resource-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.file-type { font-size: .67rem; font-weight: 500; color: var(--muted); }
.section-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
.section-nav a { color: var(--muted); font-size: .86rem; text-decoration: none; }
.section-nav a:hover { color: var(--accent); text-decoration: underline; }

.abstract-section { padding: 48px 0 54px; background: var(--tint); border-block: 1px solid #ececf2; }
.abstract-section h2 { text-align: center; margin-bottom: 25px; }
.abstract-section p { font-size: 1.04rem; line-height: 1.85; }
.content-section { padding: 62px 0; }
.section-heading { text-align: center; margin-bottom: 30px; }
.section-heading > p { max-width: 740px; margin: 12px auto 0; color: var(--muted); font-size: 1rem; }
.architecture-figure { margin-top: 35px; }
.architecture-figure > img { display: block; width: 100%; height: auto; }
figcaption {
  max-width: 920px;
  margin: 22px auto 0;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--muted);
}
figcaption strong { color: var(--text); }
figcaption a { display: block; width: fit-content; font-size: .82rem; margin-top: 9px; }

.results-section { border-top: 1px solid var(--rule); }
.results-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 30px; margin: -6px 0 44px; font-size: .9rem; }
.result-domain { max-width: 960px; margin-inline: auto; }
.result-domain + .result-domain { margin-top: 64px; }
.domain-heading { border-bottom: 2px solid #b7a7dc; padding-bottom: 18px; margin-bottom: 30px; }
.domain-heading h3 { font-size: 1.6rem; letter-spacing: -.02em; color: var(--accent-dark); }
.domain-heading p { margin-top: 10px; color: var(--muted); font-size: .93rem; }
.result-block + .result-block { margin-top: 46px; }
.result-block > h4 { font-size: 1.16rem; letter-spacing: -.01em; }
.result-intro { margin: 12px 0 24px; color: var(--muted); font-size: .9rem; }
.reconstruction-table { min-width: 510px; }
/* dataset bands: the same solid accent band names the dataset in every results table */
.reconstruction-table .metric-setting th { background: var(--accent); color: #fff; padding: 11px 14px; border-bottom: none; border-top: 12px solid #fff; font-size: .86rem; font-weight: 600; letter-spacing: .01em; }
.reconstruction-table tbody:first-of-type .metric-setting th { border-top: none; }
.metric-setting span { margin-left: 16px; font-size: .78rem; color: #dcd5f2; font-weight: 400; }
.task-table caption { background: var(--accent); color: #fff; padding: 10px 14px; font-size: .86rem; font-weight: 600; letter-spacing: .01em; }
.reconstruction-table .metric-ours > * { color: var(--accent-dark); font-weight: 650; background: var(--highlight); }
.method-difference { color: var(--muted); font-size: .75rem; font-weight: 400; }
.reconstruction-table .metric-baseline > * { border-top: 1px solid #aaa7b7; }
.comparison-dataset { margin-top: 28px; }
.comparison-dataset > h5 { font-size: 1rem; margin-bottom: 16px; }
.comparison-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.comparison-card { min-width: 0; }
.comparison-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: relative; }
.comparison-layer { position: relative; min-width: 0; }
.comparison-gt { order: -1; }
.comparison-layer img { display: block; width: 100%; height: auto; }
.comparison-label { position: absolute; top: 8px; padding: 3px 5px; background: #292237e6; color: white; font-size: .64rem; font-weight: 550; line-height: 1.5; border-radius: 2px; pointer-events: none; }
.label-gt { left: 6px; }
.label-reconstruction { right: 6px; }
.comparison-divider { display: none; }
.is-interactive .comparison-stage { display: block; aspect-ratio: var(--image-ratio); overflow: hidden; border-radius: 3px; background: var(--tint); }
.is-interactive .comparison-layer { position: absolute; inset: 0; }
.is-interactive .comparison-layer img { height: 100%; object-fit: contain; }
.is-interactive .comparison-gt { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.is-interactive .comparison-divider { display: block; position: absolute; left: var(--reveal); top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: white; box-shadow: 0 0 0 1px #5943a070; pointer-events: none; }
.comparison-divider > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid white; border-radius: 50%; background: var(--accent); color: white; font-size: 1.15rem; line-height: 1; box-shadow: 0 1px 5px #0004; }
.comparison-range { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y pinch-zoom; }
.comparison-range[hidden] { display: none; }
.image-comparison:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.comparison-card figcaption { display: flex; justify-content: space-between; gap: 5px 10px; flex-wrap: wrap; margin-top: 8px; font-size: .78rem; }
.decomposition-section { border-top: 1px solid var(--rule); }
.media-reading-note { max-width: 810px; margin: 0 auto 30px; color: var(--muted); font-size: .87rem; line-height: 1.75; }
.scene-example { max-width: 960px; margin-inline: auto; }
.scene-example + .scene-example { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--rule); }
.scene-heading { margin-bottom: 22px; }
.scene-heading h3 { font-size: 1rem; letter-spacing: -.015em; }
.scene-heading p { max-width: 810px; margin-top: 10px; color: var(--muted); font-size: .91rem; }
.scene-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.scene-panel-group { min-width: 0; }
.reconstruction-panels { grid-column: 1 / -1; }
.panel-group-label { margin: 0 0 12px; padding-top: 10px; border-top: 1px solid #d6cdeb; color: var(--accent-dark); font-size: .76rem; font-weight: 600; letter-spacing: .035em; line-height: 1.5; }
.reconstruction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.component-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.video-card { min-width: 0; }
.video-card video { display: block; width: 100%; height: auto; background: #15151b; border: 1px solid var(--rule); border-radius: 3px; }
.video-card video:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.video-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 2px 10px; flex-wrap: wrap; margin: 8px 0 0; line-height: 1.5; }
.video-label { color: var(--text); font-size: .8rem; font-weight: 550; line-height: 1.4; }
.media-meta { white-space: nowrap; color: var(--muted); font-size: .74rem; }
.video-card .media-meta a { display: inline; margin: 0; font-size: inherit; }
.publication-header .overview-video { margin-bottom: 32px; text-align: left; }
.overview-video video { background: #f7f5fb; border-radius: 10px; box-shadow: 0 12px 40px #30204a0a; }
.overview-video figcaption { max-width: none; margin-top: 14px; gap: 8px 20px; }
.overview-video .video-label { font-size: .88rem; font-weight: 400; }
.overview-video .media-meta { font-size: .8rem; }
.media-footnote { margin: 18px auto 0; max-width: 960px; color: var(--muted); font-size: .79rem; line-height: 1.7; }
.rollout-list { max-width: 960px; margin-inline: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.rollout-task { min-width: 0; border-top: 1px solid #d6cdeb; padding-top: 13px; }
.rollout-heading { margin-bottom: 12px; }
.rollout-heading h5 { font-size: 1rem; color: var(--accent-dark); }
.rollout-grid { display: grid; grid-template-columns: 1fr; }
.results-section { padding-bottom: 54px; }
.comparison-note {
  max-width: 900px;
  margin-inline: auto;
  background: var(--tint);
  border-left: 3px solid #b7a7dc;
  padding: 16px 22px;
  font-size: .9rem;
  line-height: 1.8;
}
.success-chart { min-width: 0; width: min(100%, 610px); margin: 28px auto; }
.success-chart figcaption { margin: 0 0 16px; text-align: center; }
.success-chart figcaption p { margin: 5px 0 0; font-size: .85rem; }
.success-chart .chart-finding { color: var(--accent); font-size: .85rem; font-weight: 600; }
.success-chart img { display: block; width: 100%; height: auto; background: white; }
.chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; font-size: .8rem; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 13px; height: 13px; border-radius: 3px; }
.legend-ours { background: var(--accent); }
.legend-baseline { background: var(--chart-baseline); }
.legend-ablation { background: var(--chart-ablation); }
.chart-note { max-width: 810px; margin: 12px auto 0; color: var(--muted); font-size: .8rem; line-height: 1.7; text-align: center; }
.benchmark { margin-top: 38px; border-top: 1px solid var(--rule); padding-top: 30px; }
.benchmark-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.benchmark-heading h5 { font-size: 1.25rem; letter-spacing: -.015em; }
.benchmark-heading > span { color: var(--muted); font-size: .85rem; }
.benchmark-protocol { margin-top: 12px; color: var(--muted); font-size: .93rem; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin-top: 22px; padding-bottom: 3px; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 580px;
  line-height: 1.5;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
caption { text-align: left; caption-side: top; padding-bottom: 11px; color: var(--muted); font-size: .8rem; }
th, td { padding: 12px 15px; text-align: right; border-bottom: 1px solid #e6e6ed; white-space: nowrap; }
th:first-child { text-align: left; }
thead th { font-weight: 600; font-size: .82rem; vertical-align: bottom; background: #fafafd; border-top: 1.5px solid #8e8b9e; border-bottom: 1px solid #aaa7b7; color: #4f5060; }
tbody th { font-weight: 500; }
tbody tr:last-child > * { border-bottom: 1.5px solid #8e8b9e; }
.table-note { margin-top: 11px; font-size: .8rem; line-height: 1.75; color: var(--muted); }
.result-details { margin-top: 16px; border: 1px solid var(--rule); border-radius: 5px; }
.result-details summary {
  padding: 13px 18px;
  font-size: .9rem;
  font-weight: 550;
  cursor: pointer;
  color: var(--accent-dark);
  background: #fbfafd;
}
.result-details summary:hover { background: var(--highlight); }
.result-details summary::marker { color: var(--accent); }
.result-details summary > span { margin-left: 12px; color: var(--muted); font-weight: 400; font-size: .79rem; }
.result-details[open] summary { border-bottom: 1px solid var(--rule); }
.result-details > p { padding: 18px 18px 0; font-size: .9rem; }
.result-details .table-scroll { margin: 18px; max-width: calc(100% - 36px); }
.task-table { font-size: .86rem; }
.task-table th, .task-table td { padding: 10px 12px; }
.task-table .ours-col { background: var(--highlight); color: var(--accent-dark); font-weight: 600; }
.deviation { color: var(--muted); font-size: .76rem; font-weight: 400; }
tfoot th, tfoot td { border-bottom: none; border-top: 1px solid #8e8b9e; font-weight: 600; }

.related-section { padding: 42px 0 48px; border-top: 1px solid var(--rule); }
.related-section h2 { font-size: 1.3rem; margin-bottom: 17px; }
.related-section p { color: var(--muted); font-size: .91rem; }
.references { display: grid; gap: 12px; padding: 0; margin: 21px 0 0; list-style: none; }
.references li { display: flex; flex-wrap: wrap; column-gap: 20px; font-size: .87rem; }
.references span { color: var(--muted); font-size: .83rem; }
.site-footer { background: var(--tint); border-top: 1px solid #ececf2; padding: 22px 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p { color: var(--muted); font-size: .86rem; font-weight: 600; }
.site-footer a { font-size: .8rem; text-decoration: none; }

@media (max-width: 900px) {
  .comparison-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .container, .reading-column { width: calc(100% - 40px); }
  .publication-header { padding-top: 42px; }
  .publication-summary { font-size: 1rem; }
  .desktop-break { display: none; }
  .section-nav { gap: 8px 14px; }
  .section-nav a { font-size: .78rem; }
  .abstract-section { padding: 35px 0 40px; }
  .abstract-section p { font-size: 1rem; line-height: 1.8; }
  .content-section { padding: 43px 0; }
  h2 { font-size: 1.6rem; }
  .section-heading > p { font-size: .94rem; }
  .scene-panels, .rollout-list { grid-template-columns: 1fr; }
  .reconstruction-grid { grid-template-columns: 1fr; gap: 20px; }
  .component-grid { gap: 10px; }
  .component-grid figcaption { flex-direction: column; gap: 3px; }
  .rollout-grid figcaption { flex-direction: column; gap: 3px; }
  .domain-heading h3 { font-size: 1.4rem; }
  .metric-setting span { display: block; margin: 4px 0 0; }
  .benchmark-heading { flex-direction: column; gap: 5px; }
  .comparison-note { padding: 14px 17px; }
  .chart-legend { gap: 8px 14px; font-size: .76rem; }
  .result-details summary > span { display: block; margin: 3px 0 0 18px; }
  .task-table { font-size: .82rem; }
  .result-details .table-scroll { margin: 12px; max-width: calc(100% - 24px); }
  th, td { padding-inline: 12px; }
  .references li { flex-direction: column; }
}

@media (max-width: 480px) {
  .comparison-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  html { font-size: 11px; }
  .container, .reading-column { width: 100%; max-width: none; }
  .publication-header { padding-top: 0; }
  .publication-links, .section-nav, .skip-link, .site-footer { display: none; }
  .content-section, .abstract-section, .related-section { padding: 24px 0; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; }
  .result-details::details-content { content-visibility: visible; }
  .result-details { border: 0; }
  .result-details > summary { display: none; }
  .media-meta { display: none; }
  .results-nav, .comparison-range, .comparison-divider { display: none; }
  .is-interactive .comparison-stage { display: grid; aspect-ratio: auto; overflow: visible; }
  .is-interactive .comparison-layer { position: relative; clip-path: none; }
  figure, tr { break-inside: avoid; }
}
