:root {
  color-scheme: light;
  --white: #fff;
  --soft: #f6f7fa;
  --border: #e0e4ec;
  --ink: #191e30;
  --muted: #586174;
  --accent: #3946a7;
  --accent-soft: #edf0ff;
  --focus: #596ce4;
  --sans: Geist, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, video:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
section[id], #results { scroll-margin-top: 26px; }
.shell { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.skip-link, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  inset: 10px auto auto 10px;
  z-index: 5;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--white);
}

.site-header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  color: var(--white);
}
.header-inner, .footer-inner {
  display: flex;
  min-height: 79px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header-inner { width: min(1520px, calc(100% - 88px)); }
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.035em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  background: url("icon.png") center / contain no-repeat;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid #ffffff3d;
  border-radius: 999px;
  background: #11172980;
  font-size: .86rem;
  font-weight: 600;
}
.site-header nav a { padding: 7px 13px; border-radius: 999px; }
.site-header nav a:hover { background: #ffffff24; }

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 112px 90px;
  align-items: center;
  overflow: hidden;
  background: #222b3d url("hero-poster.webp") center / cover no-repeat;
  color: var(--white);
}
.hero-video, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-video { z-index: -2; display: block; object-fit: cover; object-position: 50% 50%; filter: brightness(1.34); }
.hero::after {
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse at 50% 45%, #12192714 3%, transparent 72%),
    linear-gradient(180deg, #0b101e3a 0%, #121b2c0c 32%, #121a2c22 65%, #0b122148 100%);
}
.hero-inner { display: grid; justify-items: center; text-align: center; }
.hero h1 {
  font-size: clamp(4.7rem, 11.6vw, 10.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.085em;
  text-shadow: 0 4px 36px #0b152755;
}
.hero h1 span { color: #e0e5ff; }
.paper-title {
  max-width: 870px;
  margin-top: 22px;
  font-size: clamp(1.18rem, 2.12vw, 2.05rem);
  font-weight: 650;
  line-height: 1.26;
  letter-spacing: -.027em;
  text-wrap: balance;
  text-shadow: 0 2px 18px #0a1026a6;
}
.title-task {
  text-decoration: underline;
  text-decoration-thickness: .09em;
  text-underline-offset: .17em;
  text-decoration-color: var(--task-accent);
}
.title-task--reconstruction { --task-accent: #9bdff4; color: #c7effb; }
.title-task--generation { --task-accent: #c6b8ff; color: #e2d9ff; }
.title-task--extrapolation { --task-accent: #ffd3a1; color: #ffdfbc; }
.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 22px;
  margin: 30px 0 8px;
  padding: 0;
  list-style: none;
  font-weight: 650;
  font-size: clamp(.9rem, 1.27vw, 1.05rem);
  line-height: 1.45;
  text-shadow: 0 1px 12px #0a1026b0;
}
.authors li, .affiliations span { white-space: nowrap; }
.hero sup { margin-left: .1em; font-size: .72em; line-height: 0; vertical-align: super; }
.affiliations { color: #f3f4fa; font-size: clamp(.8rem, 1.1vw, .95rem); text-shadow: 0 1px 12px #0a1026b0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .91rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { background: var(--accent-soft); color: var(--accent); border-color: #d1d9ff; }
.hero .button {
  min-height: 45px;
  padding-inline: 19px;
  gap: 9px;
  border-color: #ffffff24;
  border-radius: 14px;
  background: #1d293f;
  color: var(--white);
  box-shadow: 0 4px 12px #09111e50;
}
.hero .button:hover { background: #354660; border-color: #ffffff80; color: var(--white); }
.button-icon { width: 20px; height: 20px; flex: none; }
.button-emoji { font-size: 1.2rem; line-height: 1; }
.site-header a:focus-visible, .hero a:focus-visible { outline-color: #e0e5ff; }

.results { padding-block: 60px 68px; }
.work-section + .work-section { margin-top: 52px; padding-top: 49px; border-top: 1px solid var(--border); }
.work-header { margin-bottom: 21px; }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.section-heading h2, .abstract h2, .method h2 {
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.067em;
}
.condition {
  border-radius: 6px;
  background: var(--accent-soft);
  padding: 5px 9px;
  color: var(--accent);
  font: 500 .77rem/1.35 var(--mono);
}
.work-description { margin-top: 9px; color: var(--muted); font-size: 1rem; text-wrap: pretty; }
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 25px;
}
.viewer {
  min-width: 0;
  width: min(100%, 920px);
  justify-self: center;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
}
.viewer-media { display: grid; grid-template-columns: minmax(0, 1fr); }
.viewer--with-inputs { width: 100%; }
.viewer--with-inputs .viewer-media {
  grid-template-columns: minmax(0, 1fr) minmax(255px, 29%);
}
.motion-viewer { width: 100%; }
.motion-layout {
  display: grid;
  grid-template-columns: minmax(190px, 27%) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--soft);
}
.motion-sidebar { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0; }
.motion-panel, .motion-output { min-width: 0; }
.motion-panel {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
}
.motion-panel h3, .motion-output h3 {
  margin-bottom: 8px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.25;
}
.motion-reference {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 22 / 15;
  object-fit: contain;
  border-radius: 5px;
  background: #171c28;
}
.motion-reference[hidden], .trajectory-canvas[hidden] { display: none; }
.motion-reference-unavailable, .trajectory-unavailable {
  margin: auto;
  padding: 12px 4px;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}
.trajectory-frame {
  display: flex;
  flex: 1;
  min-height: 105px;
  overflow: hidden;
  border-radius: 5px;
  background: #f2f4fa;
}
.trajectory-canvas { display: block; width: 100%; height: 100%; min-height: 105px; }
.motion-output { display: flex; flex-direction: column; }
.motion-output .video-frame { flex: 1; display: grid; align-items: center; overflow: hidden; border-radius: 7px; }
.motion-viewer .viewer-info { border-top: 1px solid var(--border); }
.video-frame { position: relative; background: #171c28; }
.scene-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(51px, 6vw, 70px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid #ffffffc0;
  border-radius: 50%;
  background: #fdfdfff0;
  color: var(--accent);
  box-shadow: 0 4px 24px #141b4140;
  transition: background .18s, color .18s;
}
.video-play:hover { background: var(--accent); color: #fff; }
.play-icon { width: 0; height: 0; margin-left: 3px; border-block: 9px solid transparent; border-left: 14px solid currentColor; }
.video-error {
  position: absolute;
  inset: auto 12px 12px;
  padding: 9px 12px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.video-error a { color: var(--accent); text-decoration: underline; }
.reference-views {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(10px, 1.7vw, 18px);
  border-inline-start: 1px solid var(--border);
  background: var(--soft);
}
.reference-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 8px;
  margin-bottom: 9px;
}
.reference-header h3 { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.reference-count { color: var(--muted); font-size: .83rem; }
.reference-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reference-list a {
  display: block;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.reference-list a:hover { border-color: #aab6ef; color: var(--accent); }
.reference-list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 22 / 15;
  object-fit: contain;
  background: #171c28;
}
.reference-list span {
  display: block;
  padding: 4px 7px;
  color: var(--muted);
  font: 500 .75rem/1.35 var(--mono);
}
.viewer--with-inputs .viewer-info { border-top: 1px solid var(--border); }
.viewer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 13px 15px;
}
.scene-caption h3 { font-size: 1.06rem; font-weight: 650; line-height: 1.3; }
.scene-caption p { margin-top: 2px; color: var(--muted); font-size: .83rem; }
.viewer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.browse-scenes { color: var(--accent); font-size: .85rem; font-weight: 650; }
.browse-scenes:hover { text-decoration: underline; }
.view-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--soft);
}
.view-switch button {
  min-height: 35px;
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
}
.view-switch button:hover { color: var(--accent); }
.view-switch button[aria-pressed="true"] {
  background: var(--white);
  box-shadow: 0 1px 3px #24274924;
  color: var(--accent);
}
.scene-picker { min-width: 0; scroll-margin-top: 20px; }
.scene-picker:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.scene-browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.scene-count { color: var(--muted); font-size: .875rem; }
.scene-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(166px, 100%), 1fr));
  gap: 10px;
  padding-top: 16px;
}
.scene-option {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  scroll-snap-align: start;
  text-align: left;
  transition: border-color .18s, background .18s;
}
.scene-option:focus-visible { outline-offset: 1px; }
.scene-option:hover { border-color: #acb8ee; background: #fafbff; }
.scene-option[aria-pressed="true"] { border-color: #8a9ae8; background: var(--accent-soft); }
.scene-thumbnail { position: relative; display: block; width: 100%; background: var(--soft); }
.scene-option img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--border);
}
.scene-thumbnail-play {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  width: 29px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #fdfdfff2;
  color: var(--accent);
}
.scene-thumbnail-play .play-icon { margin-left: 2px; border-block-width: 5px; border-left-width: 8px; }
.scene-option-title {
  display: block;
  padding: 8px 9px;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.abstract { padding-block: 55px 65px; }
.abstract-inner { max-width: 1000px; }
.abstract p { margin-top: 18px; color: var(--muted); font-size: 1.04rem; line-height: 1.8; text-wrap: pretty; }
.method { padding-block: 57px 60px; border-block: 1px solid var(--border); background: var(--soft); }
.method-copy p { max-width: 730px; margin-top: 11px; color: var(--muted); text-wrap: pretty; }
.method-figure { margin-top: 21px; }
.method-figure a { display: block; overflow: clip; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.method-figure img { display: block; width: 100%; height: auto; }
.method-figure figcaption { margin-top: 8px; color: var(--muted); font-size: .84rem; }
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
  margin-top: 26px;
}
.method-steps div { padding-top: 11px; border-top: 1px solid var(--border); }
.method-steps dt { margin-bottom: 4px; font-weight: 650; }
.method-steps dd { color: var(--muted); font-size: .93rem; }

.citation { padding-block: 48px 58px; }
.citation .section-heading { align-items: center; }
.citation h2 { font-size: clamp(1.65rem, 3.5vw, 2.3rem); }
.citation pre {
  margin: 15px 0 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--soft);
  font: .84rem/1.65 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.citation code { font: inherit; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 940px) {
  .shell, .header-inner { width: calc(100% - 54px); }
}
@media (max-width: 820px) {
  .viewer--with-inputs .viewer-media { grid-template-columns: minmax(0, 1fr); }
  .reference-views { border-inline-start: 0; border-top: 1px solid var(--border); }
  .reference-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .shell, .header-inner { width: calc(100% - 34px); }
  .header-inner { min-height: 76px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-block: 13px; }
  .site-header nav { font-size: clamp(.68rem, 2.45vw, .83rem); padding: 3px; }
  .site-header nav a { padding: 5px clamp(5px, 1.7vw, 11px); }
  .hero { padding-block: 125px 83px; }
  .hero h1 { font-size: clamp(3.9rem, 14.6vw, 6rem); }
  .paper-title { margin-top: 15px; }
  .authors { gap: 5px 13px; margin-top: 22px; }
  .hero-actions { gap: 6px; margin-top: 20px; }
  .hero .button { min-height: 41px; padding-inline: 11px; font-size: .83rem; }
  .results { padding-block: 37px 43px; }
  .work-section + .work-section { margin-top: 34px; padding-top: 32px; }
  .work-header { margin-bottom: 14px; }
  .work-description { margin-top: 8px; font-size: .94rem; }
  .gallery { gap: 19px; }
  .motion-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; }
  .motion-output { order: -1; }
  .motion-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 10px; }
  .motion-panel { padding: 8px; }
  .trajectory-frame, .trajectory-canvas { min-height: 96px; }
  .scene-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .abstract, .method, .citation { padding-block: 38px; }
  .method-steps { grid-template-columns: 1fr; gap: 13px; }
}
@media (max-width: 500px) {
  .reference-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 378px) {
  .site-header nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 15px; text-align: center; }
  .site-header nav a { padding-inline: 12px; }
  .hero { padding-top: 140px; }
  .hero h1 { font-size: clamp(3.3rem, 15.4vw, 3.8rem); }
}
@media (max-width: 350px) {
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.demo-section { padding-block: 72px 20px; }
.demo-section h2 { margin-bottom: 32px; color: #080808; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; text-align: center; }
.demo-section h2::after { display: block; width: 90px; height: 4px; margin: 20px auto 0; border-radius: 999px; background: linear-gradient(90deg, #e879f9, #fb4f75); content: ""; }
.demo-video { display: block; width: 100%; max-width: 1000px; margin-inline: auto; aspect-ratio: 16 / 9; background: #111729; border-radius: 12px; }
