:root {
  color-scheme: light;
  --ink: #363636;
  --muted: #4a4a4a;
  --line: #e9e9e9;
  --paper: #ffffff;
  --mist: #f7f7f7;
  --soft-blue: #eef5ff;
  --accent: #3273dc;
  --accent-strong: #276cda;
  --shadow: 0 10px 30px rgba(10, 10, 10, 0.06);
  font-family: "Noto Sans", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

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

button {
  font: inherit;
}

.site-header {
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(960px, calc(100% - 32px));
  min-height: 48px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  min-height: 32px;
  padding: 4px 11px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  background: transparent;
  outline: none;
}

.hero {
  display: grid;
  align-items: center;
  background: #fff;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 38px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 1120px;
  margin: 0 auto;
  color: #363636;
  font-size: clamp(0.82rem, 3.1vw, 2.65rem);
  font-weight: 700;
  letter-spacing: 0;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.title-green {
  color: #45b82a;
}

.title-red {
  color: #df6469;
}

.title-blue {
  color: #3e73d1;
}

.title-orange {
  color: #f4b000;
}

.title-gray {
  color: #a7a7a7;
}

h2 {
  margin-bottom: 22px;
  color: #363636;
  text-align: center;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
}

.authors {
  margin: 22px 0 0;
  color: #363636;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  font-weight: 500;
}

.submission-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.content {
  width: min(1050px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(880px, calc(100% - 32px));
}

.figure-band,
.text-section,
.split-section,
.segmentation-section,
.reconstruction-section,
.video-section {
  padding: 44px 0;
}

.figure-band {
  background: var(--paper);
}

.figure-band.teaser,
.split-section.alt {
  background: #fff;
}

.primary-figure,
.side-figure {
  margin: 0;
}

.primary-figure {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.primary-figure img,
.side-figure img {
  border: 0;
  border-radius: 2px;
  background: #fff;
}

figcaption {
  max-width: 960px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.text-section p,
.section-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.text-section p:last-child,
.section-copy p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 46px;
}

.split.reverse {
  grid-template-columns: minmax(0, 0.86fr) minmax(240px, 1.14fr);
}

.split.reverse .section-copy {
  grid-column: 2;
  grid-row: 1;
}

.split.reverse .side-figure {
  grid-column: 1;
  grid-row: 1;
}

.section-copy {
  max-width: 460px;
}

.method-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}

.method-panel h2 {
  min-height: 2.25em;
  display: grid;
  place-items: end center;
}

.method-panel figcaption {
  max-width: none;
}

.side-figure {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.side-figure.compact img {
  width: min(520px, 100%);
  margin: 0 auto;
}

.site-footer {
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.video-section {
  background: #fff;
}

.reconstruction-section {
  background: #fff;
}

.segmentation-section {
  background: #fff;
}

.segmentation-tabs {
  margin-bottom: 24px;
}

.segmentation-carousel {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;
}

.segmentation-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.segmentation-card {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.segmentation-card img {
  border-radius: 2px;
}

.segmentation-card figcaption {
  margin-top: 10px;
  color: #363636;
  text-align: center;
  font-weight: 600;
}

.segmentation-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  box-shadow: var(--shadow);
}

.segmentation-arrow:hover,
.segmentation-arrow:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.segmentation-page {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.reconstruction-controls {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.dataset-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dataset-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.2;
}

.dataset-tab {
  min-width: 112px;
  padding: 9px 17px;
  font-weight: 600;
}

.dataset-tab:hover,
.dataset-tab:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.dataset-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.reconstruction-carousel {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;
}

.reconstruction-viewer {
  max-width: 680px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.reconstruction-viewer img {
  border-radius: 2px;
}

.reconstruction-viewer figcaption {
  margin-top: 12px;
  color: #363636;
  text-align: center;
  font-weight: 600;
}

.reconstruction-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  box-shadow: var(--shadow);
}

.reconstruction-arrow:hover,
.reconstruction-arrow:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.reconstruction-page {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.project-video {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 4px;
  background: #000;
  box-shadow: var(--shadow);
}

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

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 36px 0 28px;
  }

  h1 {
    font-size: clamp(0.82rem, 3.25vw, 1.25rem);
  }

  .figure-band,
  .text-section,
  .split-section,
  .segmentation-section,
  .reconstruction-section,
  .video-section {
    padding: 38px 0;
  }

  .primary-figure,
  .side-figure {
    padding: 10px;
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .split.reverse .section-copy,
  .split.reverse .side-figure {
    grid-column: auto;
    grid-row: auto;
  }

  .section-copy {
    max-width: none;
  }

  .method-pair {
    grid-template-columns: 1fr;
  }

  .method-panel h2 {
    min-height: auto;
  }

  .dataset-tab {
    min-width: 96px;
  }

  .reconstruction-viewer {
    padding: 10px;
  }

  .reconstruction-carousel {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 8px;
  }

  .reconstruction-arrow {
    width: 30px;
    height: 30px;
    font-size: 1.55rem;
  }

  .segmentation-carousel {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 8px;
  }

  .segmentation-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .segmentation-card {
    padding: 8px;
  }

  .segmentation-arrow {
    width: 30px;
    height: 30px;
    font-size: 1.55rem;
  }

  .segmentation-card figcaption {
    font-size: 0.85rem;
  }
}
