:root {
  --paper: #f5f3ec;
  --paper-deep: #e9e5da;
  --ink: #15201b;
  --muted: #637069;
  --line: #c7cdc7;
  --night: #111512;
  --night-soft: #1b221e;
  --teal: #4da99b;
  --acid: #d7e487;
  --coral: #e9765e;
  --sky: #8bbad6;
  color-scheme: light;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  text-rendering: optimizeLegibility;
}

body,
button {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
video {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  max-width: 100%;
}

.section-shell,
.citation-inner {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
}

.hero {
  position: relative;
  height: 92svh;
  min-height: 590px;
  max-height: 900px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.04);
}

.hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(7, 11, 9, 0.7);
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(1520px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  padding: 25px 0 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.wordmark {
  color: #fff;
  font-size: 17px;
  font-weight: 820;
}

.topbar-links {
  display: flex;
  gap: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
  color: var(--acid);
}

.hero-heading {
  width: min(1180px, 88%);
  margin-top: auto;
  padding-bottom: 23px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 15px;
  color: #257e75;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-kicker,
.eyebrow-bright {
  color: var(--acid);
}

.hero h1 {
  margin: 0;
  font-size: 86px;
  font-weight: 790;
  line-height: 0.94;
}

.hero-subtitle {
  max-width: 1120px;
  margin: 17px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.2;
}

.hero-authors {
  max-width: 1150px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

.hero-authors sup,
.hero-affiliations sup {
  margin-left: 1px;
  color: var(--acid);
  font-size: 0.72em;
  line-height: 0;
}

.hero-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 19px;
  max-width: 1120px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 19px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--night);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: #fff;
  background: #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--teal);
  background: rgba(77, 169, 155, 0.18);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 12, 10, 0.78);
}

.hero-facts p {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-facts p + p {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-facts strong {
  color: var(--acid);
}

.section-light {
  background: var(--paper);
}

.overview,
.video-results,
.gallery-section,
.metrics {
  padding: 116px 0 124px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 92px;
  align-items: start;
}

.section-heading h2,
.split-heading h2,
.gallery-heading h2,
.citation-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.section-heading h2 {
  max-width: 590px;
  font-size: 65px;
  line-height: 1.02;
}

.overview-copy {
  padding-top: 22px;
}

.overview-copy p {
  margin: 0;
  color: #53605a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.62;
}

.overview-copy p + p {
  margin-top: 22px;
}

.overview-copy strong {
  color: var(--ink);
}

.workflow-figure {
  width: min(1280px, calc(100% - 80px));
  margin: 70px auto 0;
  border: 1px solid #bdc6c0;
  border-radius: 4px;
  background: #e7ece7;
  text-align: center;
}

.workflow-svg {
  display: block;
  width: 100%;
  height: auto;
}

.workflow-figure figcaption {
  padding: 14px 24px 16px;
  border-top: 1px solid #c2cac4;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.workflow-panel {
  fill: #f8faf7;
  stroke: #b6c2bb;
}

.workflow-index {
  fill: #257e75;
  font-size: 11px;
  font-weight: 850;
}

.workflow-heading {
  fill: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.workflow-note {
  fill: #627069;
  font-size: 10px;
  font-weight: 760;
}

.input-frame rect,
.generated-frame rect {
  fill: #dce5df;
  stroke: #73847a;
}

.input-frame path,
.generated-frame path {
  fill: var(--teal);
}

.input-frame circle {
  fill: var(--coral);
}

.input-back {
  opacity: 0.66;
}

.camera-ray,
.epipolar-line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  animation: dash-flow 2.8s linear infinite;
}

.camera-dot,
.trajectory-token {
  fill: var(--coral);
}

.workflow-bridge {
  fill: none;
  stroke: #65736b;
  stroke-width: 2;
}

#arrow-head path {
  fill: #65736b;
}

.trajectory {
  fill: none;
  stroke: #257e75;
  stroke-width: 3;
  stroke-dasharray: 8 7;
}

.generated-frame {
  opacity: 0.88;
}

.frame-b {
  opacity: 0.72;
}

.scene-sky {
  fill: var(--sky);
}

.scene-ground {
  fill: #789e75;
}

.gaussians circle {
  fill: var(--coral);
  opacity: 0.72;
  animation: gaussian-pulse 2.4s ease-in-out infinite alternate;
}

.gaussians circle:nth-child(even) {
  fill: var(--acid);
  animation-delay: -1.1s;
}

.render-scan {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  opacity: 0.74;
}

.overview-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(1440px, calc(100% - 40px));
  margin: 72px auto 0;
}

.video-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #202823;
  color: #fff;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
}

.video-card > div {
  position: absolute;
  inset: auto 0 0;
  padding: 38px 17px 15px;
  background: linear-gradient(transparent, rgba(8, 12, 10, 0.92));
  pointer-events: none;
}

.video-card span {
  color: var(--acid);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.video-card h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
}

.section-dark {
  background: var(--night);
  color: #fff;
}

.method,
.exploration,
.citation {
  padding: 112px 0 118px;
}

.split-heading,
.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 90px;
  align-items: end;
}

.split-heading h2,
.gallery-heading h2 {
  max-width: 780px;
  font-size: 57px;
  line-height: 1.05;
}

.split-heading > p,
.gallery-heading > p,
.results-intro > p {
  margin: 0 0 4px;
  color: #9ca8a1;
  font-size: 17px;
  line-height: 1.65;
}

.method-figure {
  margin: 65px 0 0;
  text-align: center;
}

.method-figure img {
  display: block;
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  border: 1px solid #39423d;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.method-figure figcaption {
  max-width: 980px;
  margin: 15px auto 0;
  color: #8f9b95;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.method-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 58px;
  border-top: 1px solid #37413b;
}

.method-stages article {
  min-width: 0;
  padding: 27px 28px 0 0;
}

.method-stages article + article {
  padding-left: 28px;
  border-left: 1px solid #37413b;
}

.method-stages span {
  color: var(--acid);
  font-size: 12px;
  font-weight: 850;
}

.method-stages h3 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.method-stages p {
  margin: 11px 0 0;
  color: #98a59e;
  font-size: 15px;
  line-height: 1.6;
}

.results-intro {
  color: var(--ink);
}

.results-intro > p {
  color: var(--muted);
}

.reconstruction-grid,
.exploration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
  margin-top: 60px;
}

.video-card-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.video-card-wide video {
  height: 100%;
  min-height: 420px;
  aspect-ratio: auto;
}

.gallery-section {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.gallery-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.demo-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.demo-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #abb4ae;
  border-radius: 3px;
  background: transparent;
  color: #56635d;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.demo-tab span {
  margin-left: 6px;
  color: #89948e;
  font-size: 9px;
}

.demo-tab:hover,
.demo-tab:focus-visible,
.demo-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.demo-panel {
  margin-top: 50px;
}

.demo-panel[hidden] {
  display: none;
}

.result-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-wall article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #1d2420;
}

.result-wall video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
}

.result-wall span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  background: rgba(8, 12, 10, 0.78);
  color: var(--acid);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  pointer-events: none;
}

.exploration-grid {
  margin-top: 62px;
}

.metrics-heading h2 {
  max-width: 900px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid article {
  min-width: 0;
  padding: 34px 27px 38px 0;
}

.metric-grid article + article {
  padding-left: 27px;
  border-left: 1px solid var(--line);
}

.metric-grid strong {
  display: block;
  color: #257e75;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 47px;
  font-weight: 400;
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 17px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.evaluation-note {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  margin-top: 25px;
}

.evaluation-note span {
  color: #257e75;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.evaluation-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.citation-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 90px;
  align-items: start;
}

.citation-title h2 {
  font-size: 55px;
  line-height: 1.05;
}

.citation-title > p:last-child {
  margin: 18px 0 0;
  color: #95a199;
  font-size: 15px;
}

.citation-code {
  position: relative;
  min-width: 0;
  border: 1px solid #3b453f;
  border-radius: 4px;
  background: #171d19;
}

.citation-code button {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 66px;
  min-height: 34px;
  border: 1px solid #58635c;
  border-radius: 3px;
  background: transparent;
  color: var(--acid);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.citation-code button:hover,
.citation-code button:focus-visible {
  border-color: var(--acid);
}

.citation-code pre {
  margin: 0;
  overflow-x: auto;
  padding: 55px 25px 27px;
  color: #cad3cd;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
}

footer {
  padding: 24px 0;
  border-top: 1px solid #2d3731;
  background: var(--night);
  color: #87928c;
  font-size: 11px;
  text-transform: uppercase;
}

footer > div {
  display: flex;
  justify-content: space-between;
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
}

footer a:hover,
footer a:focus-visible {
  color: var(--acid);
}

@keyframes dash-flow {
  to { stroke-dashoffset: -24; }
}

@keyframes gaussian-pulse {
  from { opacity: 0.48; transform: scale(0.94); transform-origin: center; }
  to { opacity: 0.86; transform: scale(1.04); transform-origin: center; }
}

@media (max-width: 1050px) {
  .section-shell,
  .citation-inner,
  .workflow-figure {
    width: min(100% - 48px, 1280px);
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .overview-grid,
  .split-heading,
  .citation-inner {
    gap: 52px;
  }

  .section-heading h2,
  .split-heading h2,
  .gallery-heading h2 {
    font-size: 51px;
  }

  .result-wall,
  .reconstruction-grid,
  .exploration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .section-shell,
  .citation-inner,
  .workflow-figure {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: 610px;
    max-height: none;
  }

  .hero-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .hero-stage {
    width: calc(100% - 30px);
    padding: 18px 0 14px;
  }

  .topbar-links {
    gap: 15px;
    font-size: 10px;
  }

  .hero-heading {
    width: 100%;
    padding-bottom: 14px;
  }

  .hero-kicker {
    margin-bottom: 9px;
  }

  .hero h1 {
    font-size: 50px;
    line-height: 1;
  }

  .hero-subtitle {
    margin-top: 11px;
    font-size: 18px;
    line-height: 1.22;
  }

  .hero-authors {
    margin-top: 11px;
    font-size: 11px;
    line-height: 1.4;
  }

  .hero-affiliations {
    gap: 1px 12px;
    font-size: 9px;
  }

  .hero-actions {
    margin-top: 13px;
  }

  .button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 10px;
  }

  .hero-facts p {
    display: block;
    padding: 10px 8px;
    font-size: 9px;
  }

  .hero-facts strong {
    display: block;
    margin-bottom: 4px;
  }

  .overview,
  .video-results,
  .gallery-section,
  .metrics,
  .method,
  .exploration,
  .citation {
    padding: 78px 0 84px;
  }

  .overview-grid,
  .split-heading,
  .gallery-heading,
  .citation-inner {
    grid-template-columns: 1fr;
    gap: 29px;
  }

  .section-heading h2,
  .split-heading h2,
  .gallery-heading h2,
  .citation-title h2 {
    font-size: 42px;
  }

  .overview-copy {
    padding-top: 0;
  }

  .overview-copy p {
    font-size: 19px;
    line-height: 1.52;
  }

  .workflow-figure {
    margin-top: 45px;
    overflow-x: auto;
    text-align: left;
  }

  .workflow-svg {
    width: 900px;
    max-width: none;
  }

  .workflow-figure figcaption {
    position: sticky;
    left: 0;
    width: calc(100vw - 32px);
    padding: 12px 15px 14px;
    text-align: center;
  }

  .overview-videos {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    margin-top: 45px;
  }

  .split-heading > p,
  .gallery-heading > p {
    font-size: 15px;
  }

  .method-figure {
    margin-top: 42px;
  }

  .method-figure img {
    max-height: 470px;
  }

  .method-stages {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .method-stages article,
  .method-stages article + article {
    padding: 22px 0;
    border-left: 0;
  }

  .method-stages article + article {
    border-top: 1px solid #37413b;
  }

  .reconstruction-grid,
  .exploration-grid,
  .result-wall {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .video-card-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .video-card-wide video {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .gallery-heading {
    align-items: start;
  }

  .demo-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .demo-tab {
    flex: none;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .metric-grid article,
  .metric-grid article + article,
  .metric-grid article:nth-child(3) {
    padding: 26px 0 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric-grid article:first-child {
    border-top: 0;
  }

  .metric-grid strong {
    font-size: 43px;
  }

  .evaluation-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .citation-code pre {
    font-size: 11px;
  }

  footer > div {
    width: calc(100% - 32px);
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .topbar-links a:nth-child(2) {
    display: none;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-subtitle {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .camera-ray,
  .epipolar-line,
  .gaussians circle {
    animation: none;
  }
}
