@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  --bg: #faf9f6;
  --ink: #202f2b;
  --muted: #6b7470;
  --green: #1d6456;
  --line: #dddfd7;
  --soft: #eeeee8;
  --gold: #c89450;
  --font: "DM Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #c89450;
  outline-offset: 4px;
}
::selection {
  background: #c9ddd2;
}
.wrap {
  width: min(1120px, calc(100% - 64px));
  margin: auto;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.95);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
}
.wordmark > span:first-child {
  font-weight: 450;
}
.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin: 12px 0 0 4px;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 13px;
  color: #59615d;
}
.nav-links a:hover,
.nav-code:hover {
  color: var(--green);
}
.nav-code {
  font-size: 13px;
  font-weight: 600;
}
.nav-code span {
  margin-left: 12px;
}
.hero {
  text-align: center;
  padding-top: 69px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
  margin: 0 0 19px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero .eyebrow {
  justify-content: center;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #669887;
}
.hero h1 {
  margin: 0;
  font-family: "Manrope", var(--font);
  font-weight: 650;
  letter-spacing: -1.8px;
  line-height: 1.27;
  font-size: clamp(28px, 3.6vw, 45px);
}
.title-brand {
  display: block;
  font-size: clamp(48px, 6.4vw, 78px);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 14px;
}
#paper-subtitle {
  display: block;
  max-width: 900px;
  margin: auto;
}
.hero-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 25px auto;
}
.authors {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.authors:empty {
  display: none;
}
.authors a {
  color: var(--green);
}
.affiliations {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.resource-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid #ccd3ca;
  border-radius: 6px;
  padding: 10px 19px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #e9ede7;
  transform: translateY(-2px);
}
.button.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.button.primary:hover {
  background: #154c41;
}
.hero-rule {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 53px;
  padding-top: 16px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #879088;
}
.viewer-section {
  padding-top: 49px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
h2 {
  font:
    600 clamp(23px, 2.6vw, 31px)/1.3 "Manrope",
    var(--font);
  letter-spacing: -1px;
  margin: 0;
}
h3 {
  line-height: 1.4;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--green);
  background: #e9eee6;
  border: 1px solid #dce5d8;
  border-radius: 30px;
  padding: 6px 12px;
  white-space: nowrap;
}
.viewer-shell {
  border: 1px solid #d3d8cd;
  border-radius: 10px;
  overflow: hidden;
  background: #e9ede5;
}
.viewer-topbar {
  min-height: 58px;
  padding: 11px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d7ddd2;
  gap: 14px;
}
.scene-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.scene-tabs button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #697467;
  font-size: 12px;
  padding: 6px 16px;
}
.scene-tabs button[aria-pressed="true"] {
  background: #fcfcf8;
  color: var(--green);
  box-shadow: 0 1px 4px #34452a12;
}
.viewer-top-label {
  font-size: 9px;
  color: #818b7c;
  letter-spacing: 1.6px;
}
.point-viewer {
  height: 470px;
  position: relative;
  background: radial-gradient(ellipse at 50% 45%, #f4f5ed, #e5eadd);
  overflow: hidden;
}
.point-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.point-viewer canvas:active {
  cursor: grabbing;
}
.scene-overlay {
  position: absolute;
  z-index: 1;
  left: 25px;
  top: 22px;
  pointer-events: none;
}
.small-badge {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #6e7e67;
}
.scene-overlay h3 {
  font-size: 15px;
  margin: 5px 0 3px;
  font-weight: 600;
}
.scene-overlay p {
  font-size: 10px;
  color: #7a8673;
  margin: 0;
}
.viewer-message {
  position: absolute;
  z-index: 2;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 85%;
  background: #faf9f6ec;
  border: 1px solid var(--line);
  padding: 16px 22px;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}
.viewer-message[hidden] {
  display: none;
}
.viewer-hint {
  position: absolute;
  pointer-events: none;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  white-space: nowrap;
  color: #65725e;
  background: #f8f9f0c9;
  border-radius: 30px;
  padding: 6px 13px;
}
.viewer-hint span {
  padding: 0 8px;
}
.axis-label {
  position: absolute;
  bottom: 22px;
  left: 24px;
  font: 10px/1.8 monospace;
  color: #819178;
  pointer-events: none;
}
.axis-label span {
  display: block;
}
.viewer-toolbar {
  padding: 12px 18px;
  background: #f4f5ee;
  border-top: 1px solid #d7ddd2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.toolbar-group {
  display: flex;
  gap: 16px;
  align-items: center;
}
.viewer-toolbar button {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #506149;
  padding: 5px 1px;
  white-space: nowrap;
}
.viewer-toolbar button[aria-pressed="true"] {
  color: var(--green);
  font-weight: 700;
}
.point-size-label {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.point-size-label input {
  width: 65px;
  accent-color: var(--green);
}
#fullscreen {
  font-size: 21px;
  line-height: 1;
}
.viewer-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 13px;
}
.viewer-caption p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.upload-label {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.upload-label:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.local-note {
  color: #7c857c;
  font-size: 10px;
  margin: 7px 0 0;
}
.section {
  padding-top: 85px;
  padding-bottom: 80px;
}
.overview-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 65px;
  margin-top: 30px;
}
.large-copy {
  font:
    500 25px/1.5 "Manrope",
    var(--font);
  letter-spacing: -0.6px;
  margin: 0;
}
.abstract p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.85;
  color: #535f57;
}
.abstract .muted {
  font-size: 11px;
  color: #7c857c;
}
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 42px;
}
.highlights article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.card-number {
  font: 12px monospace;
  color: #8d9a87;
}
.highlights h3 {
  font-size: 15px;
  margin: 12px 0 9px;
}
.highlights p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.method-section {
  background: #f0f1eb;
  border-top: 1px solid #e2e4dc;
  border-bottom: 1px solid #e2e4dc;
}
.method-section .section {
  padding-top: 62px;
  padding-bottom: 49px;
}
.section-aside {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.pipeline {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 35px 0;
}
.pipeline li {
  position: relative;
}
.pipeline li:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -20px;
  top: 49px;
  color: #a7b09f;
  font-size: 20px;
}
.pipeline-art {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}
.step {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #829077;
}
.pipeline h3 {
  font-size: 14px;
  margin: 8px 0;
}
.pipeline p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
/* Compact illustrations: original paper imagery on layered cards, plus a drawn pose schematic. */
.image-art,
.depth-art {
  position: relative;
}
.photo-card,
.depth-card,
.matches-card {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 3px solid #fcfcf7;
  border-radius: 2px;
  background: #fcfcf7;
  box-shadow: 0 2px 7px #59664c20;
}
.photo-card {
  width: 92px;
  height: 72px;
  transform: rotate(-13deg) translateX(-28px);
}
.photo-card:nth-child(2) {
  transform: rotate(1deg) translateY(-3px);
}
.photo-card:nth-child(3) {
  transform: rotate(14deg) translateX(28px);
}
.matches-card {
  width: 160px;
  height: 66px;
  transform: translateY(-25px) rotate(4deg);
}
.depth-card {
  width: 78px;
  height: 56px;
  transform: translate(-20px, 28px) perspective(200px) rotateY(-17deg) rotate(-7deg);
}
.pose-art > img,
.cloud-art > img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: 120px;
}
.cloud-art > img {
  mix-blend-mode: multiply;
}
.method-caption {
  font-size: 11px;
  color: #788372;
  text-align: center;
  margin: 0;
}
.section-intro {
  font-size: 14px;
  color: var(--muted);
  margin-top: -10px;
  margin-bottom: 30px;
}
.media-card {
  margin: 0;
}
.media-card video,
.media-card img,
.media-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  border-radius: 7px;
  background: #edf0e8;
  border: 1px solid #dfe4d8;
  display: block;
}
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 70%, #e3e8da, transparent 60%), #eff1e9;
}
.play-symbol {
  display: grid;
  place-items: center;
  border: 1px solid #c6d0be;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #7b9070;
  font-size: 16px;
  padding-left: 3px;
}
.media-placeholder p {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #839078;
  margin: 14px 0 0;
}
.media-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-top: 14px;
}
.media-card h3 {
  font-size: 13px;
  margin: 0;
}
.media-card figcaption p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.citation-section {
  border-top: 1px solid var(--line);
  padding-top: 49px;
  padding-bottom: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  flex-wrap: wrap;
}
.citation-section .eyebrow {
  margin-bottom: 10px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.citation-box {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f0f1ea;
  overflow: hidden;
}
.citation-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.citation-header button {
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 12px;
}
pre {
  font-size: 12px;
  overflow: auto;
  padding: 15px 20px;
  margin: 0;
}
#copy-status {
  font-size: 12px;
  margin: 0 20px 10px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  padding-bottom: 30px;
}
footer .wordmark {
  font-size: 17px;
}
footer p,
footer > a:last-child {
  font-size: 10px;
  color: #879080;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.noscript {
  padding: 20px;
  text-align: center;
}
.viewer-shell:fullscreen {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}
.viewer-shell:fullscreen .point-viewer {
  height: auto;
  flex: 1;
}
.viewer-shell:fullscreen .viewer-toolbar {
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.authors {
  font-size: 16px;
  gap: 22px;
}
.authors sup {
  font-size: 10px;
  color: var(--green);
  margin-left: 2px;
}
.affiliations {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
  line-height: 1.9;
}
.paper-teaser img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}
.paper-teaser figcaption,
.paper-figure figcaption {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}
.paper-teaser figcaption a,
.paper-figure figcaption a {
  color: var(--green);
}
.paper-figure {
  margin: 32px 0 0;
}
.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px;
}
.result-figure {
  margin: 0 0 45px;
}
.abstract {
  max-width: 690px;
}
.overview-layout {
  grid-template-columns: 0.7fr 1.5fr;
  gap: 50px;
}
.abstract p {
  font-size: 13px;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 85px;
  }
  .point-viewer {
    height: 520px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .nav {
    height: 64px;
  }
  .nav-links {
    gap: 15px;
    font-size: 11px;
  }
  .nav-links a:last-child {
    display: none;
  }
  .nav-code {
    display: none;
  }
  .hero {
    padding-top: 43px;
  }
  .hero h1 {
    letter-spacing: -1px;
  }
  .title-brand {
    letter-spacing: -2px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-rule {
    margin-top: 37px;
    font-size: 7px;
    letter-spacing: 1px;
  }
  .viewer-section {
    padding-top: 33px;
  }
  .section-heading {
    gap: 10px;
  }
  .live-badge {
    font-size: 9px;
    padding: 5px 9px;
  }
  .point-viewer {
    height: 375px;
  }
  .viewer-topbar {
    padding: 10px 12px;
  }
  .viewer-top-label {
    display: none;
  }
  .viewer-toolbar {
    flex-wrap: wrap;
    padding: 10px 14px;
  }
  .toolbar-group {
    gap: 13px;
  }
  .viewer-caption {
    flex-direction: column;
    gap: 8px;
  }
  .viewer-hint {
    font-size: 8px;
    bottom: 15px;
  }
  .viewer-hint span {
    padding: 0 2px;
  }
  .axis-label {
    display: none;
  }
  .scene-overlay {
    left: 18px;
    top: 16px;
  }
  .section {
    padding-top: 56px;
    padding-bottom: 50px;
  }
  .overview-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .large-copy {
    font-size: 22px;
  }
  .highlights {
    gap: 17px;
  }
  .highlights h3 {
    font-size: 13px;
  }
  .highlights p {
    font-size: 12px;
  }
  .section-aside {
    display: none;
  }
  .pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 32px 25px;
  }
  .pipeline li:nth-child(2):after {
    display: none;
  }
  .media-card figcaption {
    margin-bottom: 8px;
  }
  .citation-section {
    align-items: flex-start;
    gap: 16px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer p {
    display: none;
  }
  .local-note {
    font-size: 9px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
}
@media (max-width: 420px) {
  .nav-links {
    gap: 10px;
  }
  .nav-links a:first-child {
    display: none;
  }
  .section-heading {
    align-items: flex-start;
  }
  .live-badge {
    margin-top: 4px;
  }
  .highlights {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .point-viewer {
    height: 330px;
  }
  .hero-rule span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* Reconstruction media carousel */
.media-carousel {
  max-width: 920px;
  margin: 0 auto;
}
.hero-carousel {
  padding-top: 32px;
}
.media-gallery {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #b8c6b3 transparent;
  border-radius: 7px;
}
.media-gallery:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
.media-gallery .media-card {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-bottom: 10px;
}
.media-gallery .media-card video,
.media-gallery .media-card img,
.media-gallery .media-placeholder {
  aspect-ratio: auto;
  height: clamp(220px, 45vw, 500px);
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}
.carousel-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: transparent;
  font-size: 20px;
}
.carousel-arrow:hover:not(:disabled) {
  background: #e9ede7;
  border-color: #b8c6b3;
}
.carousel-indicators {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}
.carousel-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}
.carousel-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5cec0;
  transition: background 0.2s;
}
.carousel-dot[aria-current="true"]::after {
  width: 20px;
  border-radius: 6px;
  background: var(--green);
}
.carousel-position {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .carousel-controls {
    gap: 10px;
    margin-top: 14px;
  }
  .media-gallery .media-card figcaption {
    flex-direction: column;
    gap: 4px;
  }
  .media-placeholder p {
    font-size: 8px;
    letter-spacing: 1px;
    text-align: center;
  }
}

.viewer-toolbar {
  flex-wrap: wrap;
  color: #506149;
}
.viewer-toolbar .toolbar-group {
  flex-wrap: wrap;
  min-width: 0;
}
.camera-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  white-space: nowrap;
}
.camera-toggle input {
  accent-color: #c36b2b;
}
#camera-status {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.local-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
