:root {
  color-scheme: light;
  --ink: #202b3c;
  --muted: #596579;
  --accent: #176c65;
  --soft: #f5f8f9;
  --border: #dce4e8;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, [tabindex]:focus-visible, video:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
sup { font-size: .7em; line-height: 0; }
p { margin: 0 0 1em; }
.container { width: min(960px, calc(100% - 128px)); margin-inline: auto; }
.reading-width { max-width: 800px; }
.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 1;
  padding: 8px 14px;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.publication-header { padding-top: 48px; padding-bottom: 28px; text-align: center; }
.publication-title { max-width: 940px; margin: 0 auto 23px; font-weight: 700; line-height: 1.28; letter-spacing: -.025em; }
.project-name { display: block; font-size: clamp(44px, 5vw, 58px); letter-spacing: -.04em; margin-bottom: 12px; }
.paper-title { display: block; font-size: clamp(25px, 2.8vw, 34px); }
.publication-authors { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px 9px; font-size: 18px; margin-bottom: 12px; }
.publication-authors span { white-space: nowrap; }
.publication-affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px 22px; max-width: 850px; margin: auto; color: var(--muted); font-size: 14px; }
.publication-affiliations a { color: inherit; text-decoration: none; }
.publication-affiliations a:hover { text-decoration: underline; }
.publication-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 24px; }
.resource-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 19px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}
.resource-button[href] { text-decoration: none; }
.resource-button[href]:hover { border-color: var(--accent); color: var(--accent); }
.resource-button:disabled { cursor: not-allowed; opacity: 1; }
.resource-button span { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.tagline { font-size: clamp(22px, 2.5vw, 28px); font-weight: 650; line-height: 1.3; margin: 0 0 18px; letter-spacing: -.02em; }
.section-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); text-decoration: none; }
.section-nav a:hover { background: var(--soft); border-color: var(--accent); color: var(--accent); }
.teaser { padding-bottom: 40px; }
.teaser-figure { margin-bottom: 24px; }
.teaser-figure > img { border-radius: 14px; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; }
.section { padding: 58px 0; }
.section-muted { background: var(--soft); border-block: 1px solid var(--border); }
h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.25; text-align: center; margin: 0 0 23px; letter-spacing: -.02em; }
.section-heading { margin: 0 auto 30px; }
#abstract p { margin-bottom: 0; }
.project-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b111b; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgb(32 43 60 / 8%); }
#overview-video { background: #fff; border: 0; box-shadow: none; }
.project-video figcaption { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-height: 44px; margin-top: 15px; font-size: 14px; color: var(--muted); }
.play-hint { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: auto; padding: 6px 12px; border: 2px solid var(--accent); border-radius: 8px; background: var(--soft); color: var(--accent); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.play-hint span { font-size: 22px; line-height: 1; }
.play-hint:hover { background: #e0f3f0; }
.play-hint[hidden] { display: none; }
.method-figure img { border: 1px solid var(--border); border-radius: 14px; }
.method-walkthrough { margin-top: 48px; }
.effect-selectors { display: flex; width: max-content; max-width: 100%; margin: 0 auto 28px; overflow-x: auto; border: 1px solid #aabeb7; border-radius: 999px; }
.effect-comparison button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.effect-comparison button:hover { background: rgb(23 108 101 / 8%); }
.effect-comparison button:disabled { color: var(--muted); cursor: default; opacity: .6; }
.effect-selectors button { flex: 0 0 auto; min-width: 80px; border-radius: 0; color: #354b44; letter-spacing: .1px; transition: background-color 160ms; }
.effect-selectors button + button { border-left: 1px solid #aabeb7; }
.effect-selectors button:first-child { border-radius: 999px 0 0 999px; }
.effect-selectors button:last-child { border-radius: 0 999px 999px 0; }
.effect-selectors button:only-child { border-radius: 999px; }
.effect-selectors button[aria-pressed="true"] { background: #cee9df; color: #103d32; font-weight: 600; }
.effect-selectors button:hover { background: #e0ebe6; }
.effect-selectors button[aria-pressed="true"]:hover { background: #c0dfd2; }
.effect-selectors button:active { background: #b3d5c8; }
.effect-selectors button:focus-visible { outline-offset: -3px; }
.comparison-toolbar { display: flex; justify-content: flex-end; margin-top: 12px; }
.comparison-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.effect-comparison .method-rotation { font-size: 13px; }
.comparison-row { position: relative; }
.effect-comparison .effect-arrow { position: absolute; top: calc(50% + 26px); transform: translateY(-50%); width: 44px; padding: 0; font-size: 25px; }
.effect-prev { left: -56px; }
.effect-next { right: -56px; }
.comparison-cards { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 2fr)); align-items: center; gap: 12px; min-width: 0; }
.comparison-inputs { display: grid; gap: 12px; min-width: 0; }
.comparison-card { display: grid; gap: 8px; min-width: 0; }
.comparison-card figcaption { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.4; text-align: center; }
.comparison-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 0; border-radius: 0; }
.comparison-ours figcaption { color: var(--accent); font-weight: 600; }
.comparison-error { color: #b42318; text-align: center; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
table { width: 100%; min-width: 790px; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; text-align: left; font-weight: 400; padding: 17px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
th, td { padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-weight: 600; }
thead { background: #fafbfd; }
thead th { text-align: center; }
thead th:first-child[rowspan], tbody th { text-align: left; }
td { text-align: center; }
.group-row th { padding-block: 7px; background: #f2f5f9; color: var(--muted); font-size: 13px; font-weight: 500; }
.ours-row { background: #eaf2fc; }
.ours-row th, .ours-row td { border-bottom: 0; }
.runner-up { text-decoration: underline; text-underline-offset: 3px; }
.study-eyebrow { margin-bottom: 10px; color: var(--accent); text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 650; }
.study-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.study-panel { min-width: 0; }
.study-panel-heading { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.study-panel h3 { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -.02em; }
.study-metric { margin-top: 26px; }
.study-metric h4 { margin: 0 0 12px; font-size: 15px; font-weight: 550; line-height: 1.4; }
.study-bar { display: flex; height: 32px; gap: 2px; overflow: hidden; border-radius: 6px; }
.study-bar > span { flex: var(--share) 1 0%; min-width: 0; }
.study-win { background: var(--accent); }
.study-tie { background: #e2e8ed; }
.study-baseline { background: #7c8da5; }
.study-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.study-values > div { display: flex; flex-direction: column-reverse; align-items: center; min-width: 0; }
.study-values > div:first-child { align-items: flex-start; }
.study-values > div:last-child { align-items: flex-end; }
.study-values dt { color: var(--muted); font-size: 12px; line-height: 1.5; }
.study-values dd { margin: 0; font-size: 18px; font-weight: 550; line-height: 1.5; letter-spacing: -.02em; }
.study-win-value dd { color: var(--accent); font-size: 30px; font-weight: 750; line-height: 1.1; }
.study-win-value dt { color: var(--accent); font-weight: 700; }
.study-baseline-value dd { color: #536780; }
.study-protocol { margin-top: 30px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.citation-code { margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.footer { background: var(--soft); border-top: 1px solid var(--border); padding: 28px 0; font-size: 13px; color: var(--muted); text-align: center; }
.footer p:last-child { margin-bottom: 0; }

@media (max-width: 850px) {
  .study-panels { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 48px); }
  .publication-header { padding-top: 34px; padding-bottom: 24px; }
  .paper-title { font-size: 25px; }
  .paper-title br { display: none; }
  .publication-authors { font-size: 16px; gap: 3px 7px; }
  .publication-affiliations { display: grid; gap: 5px; font-size: 13px; }
  .publication-links { gap: 8px; margin-block: 22px; }
  .resource-button { padding: 8px 14px; font-size: 14px; }
  .teaser { padding-bottom: 32px; }
  .section { padding: 38px 0; }
  .section-heading { margin-bottom: 22px; }
  .project-video video { border-radius: 9px; }
  .project-video figcaption { font-size: 12px; }
  .method-figure img { border-radius: 9px; }
  .method-walkthrough { margin-top: 32px; }
  .play-hint { padding-inline: 8px; gap: 6px; font-size: 13px; }
  .teaser-figure > img { border-radius: 9px; }
  .effect-comparison button { font-size: 13px; padding-inline: 12px; }
  .effect-selectors button { min-width: 72px; }
  .comparison-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .comparison-cards { grid-column: 1 / -1; grid-row: 1; gap: 6px; }
  .comparison-inputs { gap: 8px; }
  .comparison-card { gap: 6px; }
  .effect-comparison .effect-arrow { position: static; transform: none; grid-row: 2; width: 44px; }
  .effect-prev { justify-self: end; }
  .effect-next { justify-self: start; }
  .comparison-card figcaption { min-height: 32px; font-size: 11px; }
  .section-nav a { padding-inline: 15px; }
  .study-panel h3 { font-size: 18px; }
  .study-metric { margin-top: 22px; }
  .study-protocol { margin-top: 26px; }
  th, td { padding: 10px 13px; }
}
