@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bg: #edf3fb;
  --ink: #152840;
  --muted: #53657e;
  --line: #d7e1f0;
  --panel: rgba(255, 255, 255, .82);
  --accent: #315fe5;
  --on: #187a74;
  --off: #926033;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse 900px 700px at 6% 2%, #dceaff 0%, transparent 75%),
    radial-gradient(ellipse 850px 750px at 98% 12%, #e9e3fa 0%, transparent 75%),
    radial-gradient(ellipse 850px 900px at 5% 62%, #e0f0ef 0%, transparent 75%), var(--bg);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: #183db0; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #7798f5;
  outline-offset: 4px;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: #cbdcff; color: #102346; }
.no-wrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 20px; top: -80px; z-index: 10; padding: 12px; background: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.wrap { max-width: 1220px; padding: 0 32px 36px; margin: 0 auto; }
.site-nav {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 86px; gap: 24px; border-bottom: 1px solid rgba(118, 143, 185, .2);
}
.wordmark { font-weight: 800; font-size: 23px; letter-spacing: -.06em; text-decoration: none; color: var(--ink); }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 650; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--accent); }
.hero { text-align: center; padding: 26px 0 40px; }
.eyebrow { margin: 0 0 14px; color: #496899; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-title { margin: 0 auto 29px; font-weight: 600; max-width: 1030px; }
.project-name {
  display: block; color: var(--accent); font-size: clamp(62px, 7.5vw, 92px);
  font-weight: 800; letter-spacing: -.075em; line-height: 1.15; margin: 0 0 18px;
}
.project-title { display: block; font-size: clamp(25px, 3vw, 37px); line-height: 1.32; letter-spacing: -.045em; }
.publication-venue { display: block; margin-top: 8px; color: var(--accent); font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: .01em; }
.authors { max-width: 1050px; margin: 0 auto 20px; }
.author-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 24px; margin-top: 6px; }
.author { white-space: nowrap; font-size: 15px; font-weight: 650; }
sup { color: #5c75a0; font-size: .69em; line-height: 0; vertical-align: super; margin-left: 2px; }
.affiliations { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 1030px; margin: auto; }
.affiliations p { margin: 0; }
.affiliation-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.author-notes { margin-top: 15px; color: #687995; font-size: 11.5px; line-height: 1.85; }
.author-notes p { margin: 0; }
.author-notes .role-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.action-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 11px 20px; border: 1px solid #c4d3ec; border-radius: 12px;
  font-weight: 700; font-size: 13px; text-decoration: none; color: var(--ink); background: #ffffff80;
}
.action-link.primary { background: var(--accent); border-color: var(--accent); color: white; box-shadow: 0 5px 15px #315fe51a; }
.action-link:hover { background: #e4ecff; color: #173c97; }
.action-link.primary:hover { background: #244dc9; color: white; }
.coming-soon { color: var(--muted); cursor: default; }
.coming-soon .github-icon { flex: 0 0 auto; }
.coming-soon:hover { color: var(--muted); background: #ffffff80; }
section {
  margin-top: 26px; padding: 32px; background: var(--panel);
  border: 1px solid rgba(173, 193, 222, .5); border-radius: 24px;
  box-shadow: 0 12px 40px -25px rgba(31, 61, 112, .22);
}
.section-title { margin: 0; font-size: 27px; line-height: 1.3; letter-spacing: -.045em; font-weight: 800; }
.abstract-section {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 30px;
  padding: 36px; background: linear-gradient(130deg, #e7edfc 0%, #f2f5ff 58%, #eef4ff 100%);
}
.abstract-copy { font-size: 15px; line-height: 1.95; color: #344760; }
.abstract-copy p { margin: 0 0 15px; }
.abstract-copy p:last-child { margin-bottom: 0; }
.abstract-copy strong { color: #234fbd; }
.citation-code {
  margin: 0; padding: 20px; border: 1px solid #dce5f3; border-radius: 12px;
  background: #f3f6fc; color: #344760; font-size: 13px; line-height: 1.8;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.citation-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.pipeline-figure { margin: 0; }
.pipeline-image { display: block; background: white; border: 1px solid #e1e8f3; border-radius: 14px; overflow: hidden; }
.pipeline-image img { width: 100%; height: auto; display: block; }
.demo-intro { padding: 68px 4px 0; }
.demo-intro .section-title { font-size: 35px; letter-spacing: -.055em; }
.demo-intro p:last-child { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.demo-heading { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.demo-number { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid #d7e3fa; border-radius: 12px; background: #edf3ff; color: #4c6da5; font-size: 12px; font-weight: 800; }
.demo-heading .eyebrow { margin-bottom: 5px; font-size: 10px; }
.card-subtitle { margin: 0; color: var(--ink); font-size: 24px; font-weight: 800; line-height: 1.35; letter-spacing: -.04em; }
.card-lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; max-width: 88ch; }
    .label-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 8px;
      font-size: 0.82rem;
      color: var(--muted);
    }
    .label-row strong { color: var(--ink); font-weight: 600; }
    .stage {
      position: relative;
      width: 100%;
      background: #111;
      overflow: hidden;
      aspect-ratio: 2590 / 350;
    }
    .stage img, .stage canvas {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: fill;
      user-select: none;
      -webkit-user-drag: none;
    }
    .compare {
      position: relative;
      width: 100%;
      aspect-ratio: 2590 / 350;
      overflow: hidden;
      background: #111;
      cursor: ew-resize;
      touch-action: none;
      container-type: inline-size;
    }
    .compare .layer {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }
    /* Keep full-frame width; clip via overflow, do NOT shrink the image. */
    .compare .layer img {
      position: absolute;
      top: 0;
      left: 0;
      width: var(--compare-w, 100cqw);
      height: 100%;
      max-width: none;
      object-fit: fill;
      user-select: none;
      -webkit-user-drag: none;
    }
    .compare .on-layer {
      width: 50%;
      border-right: 2px solid #fff;
      z-index: 2;
    }
    .compare .handle {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 2px;
      transform: translateX(-1px);
      z-index: 3;
      pointer-events: none;
    }
    .compare .handle::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 28px;
      height: 28px;
      border: 2px solid #fff;
      background: rgba(0,0,0,0.45);
      border-radius: 50%;
      transform: translate(-50%, -50%);
    }
    .chip {
      position: absolute;
      top: 10px;
      z-index: 4;
      padding: 3px 8px;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      color: #fff;
      background: rgba(0,0,0,0.55);
      pointer-events: none;
    }
    .chip.left { left: 10px; }
    .chip.right { right: 10px; }
    .chip.on { background: rgba(31,111,74,0.85); }
    .chip.off { background: rgba(138,75,31,0.85); }

    .controls {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 18px;
      align-items: center;
      margin-top: 12px;
    }
    button, .toggle {
      appearance: none;
      border: 1px solid var(--line);
      background: #fafaf7;
      color: var(--ink);
      padding: 8px 12px;
      font: inherit;
      font-size: 0.88rem;
      cursor: pointer;
    }
    button:hover, .toggle:hover { border-color: #aaa; }
    button.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    .toggle-group {
      display: inline-flex;
      border: 1px solid var(--line);
    }
    .toggle-group button {
      border: 0;
      border-right: 1px solid var(--line);
      min-width: 118px;
    }
    .toggle-group button:last-child { border-right: 0; }
    .toggle-group button.on.active {
      background: var(--on);
      border-color: var(--on);
      color: #fff;
    }
    .toggle-group button.off.active {
      background: var(--off);
      border-color: var(--off);
      color: #fff;
    }
    .slider-wrap {
      flex: 1 1 220px;
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 200px;
    }
    .slider-wrap label {
      font-size: 0.8rem;
      color: var(--muted);
      white-space: nowrap;
    }
    input[type="range"] { width: 100%; }
    .status {
      margin-top: 8px;
      font-size: 0.8rem;
      color: var(--muted);
    }
    .note {
      margin-top: 18px;
      font-size: 0.86rem;
      color: var(--muted);
    }
    .note code,
    .note kbd {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.84em;
      background: #eee;
      padding: 1px 5px;
    }
    .note kbd {
      border: 1px solid #ccc;
      border-bottom-width: 2px;
      border-radius: 3px;
    }
    .splat-tip {
      margin: 14px 0 6px;
      text-align: center;
      font-size: 0.9rem;
      font-style: italic;
      color: #c62828;
      font-weight: 700;
    }
    .splat-tip strong { color: inherit; font-weight: 700; }
    .splat-tip kbd {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.9em;
      font-weight: 700;
      font-style: normal;
      color: #c62828;
      background: #fdecea;
      padding: 1px 6px;
      border: 1px solid #ef9a9a;
      border-bottom-width: 2px;
      border-radius: 3px;
    }
    .splat-load-status {
      display: block;
      text-align: center;
      margin: 0 0 10px;
      font-size: 0.82rem;
      color: var(--muted);
    }
    .splat-main {
      border-radius: 0 0 14px 14px;
      overflow: hidden;
    }
    .splat-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      align-items: stretch;
    }
    .splat-col {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
    .splat-col-label {
      margin-bottom: 6px;
      font-size: 0.82rem;
      color: var(--muted);
    }
    .splat-col-label strong {
      color: var(--ink);
      font-weight: 700;
    }
    .splat-wrap {
      position: relative;
      width: 100%;
      height: min(56vh, 520px);
      background: #111;
      border: 1px solid var(--line);
      border-radius: 10px;
      overflow: hidden;
    }
    .splat-wrap iframe {
      display: block;
      width: 100%;
      height: 100%;
      border: 0;
      background: #111;
    }
    .splat-placeholder {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      color: #ddd;
      background: #161616;
      z-index: 2;
      text-align: center;
      padding: 20px;
    }
    .splat-placeholder p {
      margin: 0;
      font-size: 0.86rem;
      color: #bdbdbd;
      max-width: 36ch;
    }
    .splat-placeholder.hidden { display: none; }
    .scene-picker {
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px dashed #cfcfc8;
    }
    .scene-picker-hint {
      margin: 0 0 14px;
      text-align: center;
      font-size: 0.86rem;
      font-style: italic;
      color: var(--muted);
    }
    .scene-carousel {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }
    .scene-nav {
      flex: 0 0 auto;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid #d0d0d0;
      background: #f7f7f5;
      color: #666;
      font-size: 1.2rem;
      line-height: 1;
      cursor: pointer;
      display: grid;
      place-items: center;
      padding: 0;
    }
    .scene-nav:hover { border-color: #999; background: #fff; }
    .scene-thumbs {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding: 4px 2px 8px;
      scroll-snap-type: x mandatory;
      max-width: min(100%, 900px);
    }
    .scene-thumb {
      flex: 0 0 auto;
      width: 168px;
      border: 2px solid transparent;
      border-radius: 12px;
      padding: 0;
      background: transparent;
      cursor: pointer;
      overflow: hidden;
      scroll-snap-align: center;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
    .scene-thumb img {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
      border-radius: 10px;
    }
    .scene-thumb.active {
      border-color: var(--accent);
      background: var(--accent);
      color: #fff;
      box-shadow: 0 0 0 2px rgba(11, 61, 92, 0.18);
    }
    .scene-thumb-caption {
      margin-top: 6px;
      font-size: 0.78rem;
      color: var(--muted);
      text-align: center;
    }
    .scene-thumb.active .scene-thumb-caption {
      color: #fff;
      font-weight: 650;
    }
    .gif-stage {
      width: 100%;
      background: #111;
      border: 1px solid var(--line);
      border-radius: 10px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 220px;
    }
    .gif-stage video {
      display: block;
      width: 100%;
      height: auto;
      max-height: min(70vh, 720px);
      object-fit: contain;
      background: #111;
    }

/* Demo surfaces share the paper's typography and color palette. */
.stage, .compare { border-radius: 10px; }
button, .toggle { border-radius: 10px; background: #f4f7fc; color: var(--ink); font-weight: 600; }
button:hover, .toggle:hover { border-color: #9eb5de; background: #edf3ff; }
.toggle-group { border-radius: 11px; overflow: hidden; }
.toggle-group button { border-radius: 0; }
input[type="range"] { accent-color: var(--accent); }
.label-row { font-size: 12px; margin-bottom: 10px; }
.controls { gap: 14px 18px; margin-top: 18px; }
.status { margin-top: 12px; }
.splat-tip { color: #47638d; font-style: normal; font-size: 12px; font-weight: 500; background: #edf3fc; padding: 12px 16px; border-radius: 10px; }
.splat-tip strong { font-weight: 500; }
.splat-tip kbd { color: #365d9e; background: white; border-color: #b6c9e6; }
.splat-load-status { font-size: 11px; margin-top: 10px; }
.splat-row { gap: 18px; }
.scene-picker { border-top: 1px solid #e1e8f2; padding-top: 22px; margin-top: 22px; }
.scene-picker-hint { font-style: normal; font-size: 12px; }
.scene-nav { background: #f0f4fb; border-color: #d8e2f1; color: #4c6590; }
.scene-thumb { border-radius: 13px; background: #f4f7fc; padding-bottom: 8px; }
.scene-thumb img { border-radius: 9px; }
.scene-thumb-caption { font-size: 11px; font-weight: 650; }
.scene-thumb.active { background: var(--accent); box-shadow: 0 0 0 3px #315fe516; }
@media (max-width: 900px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .abstract-section { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .splat-row { grid-template-columns: 1fr; }
  .splat-wrap { height: min(54vh, 460px); }
  .hero { padding-top: 26px; }
  .author-row { gap: 6px 18px; }
  .scene-thumb { width: 140px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px 24px; }
  .site-nav { min-height: 72px; gap: 16px; }
  .wordmark { font-size: 21px; }
  .nav-links { gap: 15px; font-size: 11px; }
  .hero { padding: 24px 0 32px; }
  .project-name { margin-bottom: 15px; font-size: 64px; }
  .project-title { font-size: 25px; line-height: 1.35; }
  .page-title { margin-bottom: 25px; }
  .author-row { gap: 7px 15px; margin-top: 7px; }
  .author { font-size: 12px; }
  .affiliations { font-size: 10.5px; line-height: 1.85; padding: 0 2px; }
  .affiliation-row { display: block; }
  .affiliation-row span { display: block; }
  .author-notes { font-size: 10px; }
  .hero-actions { margin-top: 24px; }
  .action-link { font-size: 12px; padding: 10px 16px; }
  section { padding: 20px 16px; border-radius: 18px; margin-top: 20px; }
  .abstract-section { padding: 24px 21px; }
  .abstract-copy { font-size: 13px; line-height: 1.9; }
  .section-title { font-size: 24px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .demo-intro { padding-top: 44px; }
  .demo-intro .section-title { font-size: 29px; }
  .demo-intro p:last-child { font-size: 12px; }
  .demo-heading { gap: 12px; margin-bottom: 18px; }
  .demo-number { flex-basis: 34px; height: 34px; border-radius: 10px; }
  .card-subtitle { font-size: 19px; }
  .card-lead { font-size: 12px; }
  .label-row { font-size: 10px; gap: 8px; }
  .chip { font-size: 9px; top: 6px; padding: 2px 5px; }
  .chip.left { left: 6px; } .chip.right { right: 6px; }
  .compare .handle::after { width: 21px; height: 21px; }
  .controls { gap: 10px; }
  .toggle-group button { min-width: 82px; padding: 8px; }
  .slider-wrap { min-width: 0; flex-basis: 100%; }
  .scene-carousel { gap: 8px; }
  .scene-nav { width: 32px; height: 32px; }
  .scene-thumbs { gap: 10px; }
  .scene-thumb { width: 124px; }
  .splat-tip { font-size: 11px; }
}
/* Fit the complete paper header into shorter laptop browser windows. */
@media (min-width: 901px) {
  .site-nav { min-height: clamp(56px, 8svh, 74px); }
  .hero { padding: clamp(8px, 1.5svh, 16px) 0 28px; }
  .project-name { font-size: clamp(50px, 9svh, 80px); line-height: 1.1; margin-bottom: 10px; }
  .project-title { font-size: clamp(23px, 4svh, 34px); line-height: 1.25; text-wrap: balance; }
  .page-title { margin-bottom: 14px; }
  .authors { margin-bottom: 10px; }
  .author-row { margin-top: 4px; }
  .author { font-size: 14px; line-height: 1.5; }
  .affiliations { font-size: 12px; line-height: 1.65; }
  .author-notes { margin-top: 10px; font-size: 10.5px; line-height: 1.6; }
  .hero-actions { margin-top: 12px; }
  .hero-actions .action-link { padding: 10px 20px; }
}
/* Keep each demo's scene choices beside its visualization. */
.demo-section { padding: 24px; }
.demo-section .demo-heading { margin-bottom: 18px; }
.demo-section .card-lead { margin-bottom: 18px; font-size: 13px; }
.demo-layout { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: start; }
.demo-visual { min-width: 0; }
.demo-layout .scene-picker {
  position: sticky; top: 20px; align-self: start;
  margin: 0; padding: 0 18px 0 0;
  border-top: 0; border-right: 1px solid var(--line);
}
.demo-layout .scene-picker-hint { margin: 0 0 10px; text-align: left; font-size: 11px; font-weight: 800; color: #496899; }
.demo-layout .scene-thumbs { min-width: 0; max-width: none; }
.demo-layout .scene-thumb img { aspect-ratio: 16 / 10; }
.demo-layout .splat-wrap { height: clamp(220px, calc(100svh - 300px), 430px); }
.demo-layout .splat-tip { margin-top: 12px; padding: 10px 12px; }
.demo-layout .splat-load-status { margin-bottom: 0; }
.demo-layout .gif-stage { height: clamp(240px, calc(100svh - 225px), 540px); min-height: 0; }
.demo-layout .gif-stage video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
@media (min-width: 901px) {
  .demo-layout .scene-carousel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .demo-layout .scene-thumbs { grid-column: 1 / -1; grid-row: 1; flex-direction: column; gap: 10px; padding: 3px 2px 6px; overflow: visible; }
  .demo-layout .scene-thumb { width: 100%; padding-bottom: 6px; border-radius: 10px; }
  .demo-layout .scene-thumb-caption { margin-top: 4px; }
  .demo-layout .scene-nav { width: 100%; height: 30px; border-radius: 8px; }
}
@media (max-width: 900px) {
  .demo-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .demo-layout .scene-picker {
    top: 8px; z-index: 5; padding: 8px;
    border: 1px solid var(--line); border-radius: 12px;
    background: rgba(248, 251, 255, .97);
  }
  .demo-layout .scene-picker-hint { margin-bottom: 5px; }
  .demo-layout .scene-thumbs { padding-bottom: 3px; gap: 8px; }
  .demo-layout .scene-thumb { width: 104px; padding-bottom: 5px; }
  .demo-layout .scene-thumb-caption { margin-top: 3px; }
  .demo-layout .splat-wrap { height: clamp(190px, 30svh, 280px); }
  .demo-layout .gif-stage { height: auto; }
  .demo-layout .gif-stage video { height: auto; max-height: 58svh; }
}
@media (max-width: 640px) {
  .demo-section { padding: 20px 16px; }
  .demo-section .card-lead { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
