:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #ffffff;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #5f656d;
  --quiet: #858b93;
  --line: #e2e4e8;
  --accent: #244c9a;
  --accent-soft: #eef3ff;
  --green: #2f7157;
  --shadow: none;
  --figure-width: 1120px;
  --stage-white: #ffffff;
  --stage-gray: #f6f7f9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.topbar,
main,
.footer {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 20px 0 8px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  color: var(--muted);
  font-size: 1rem;
}

.top-nav a:hover {
  color: var(--accent);
}

.side-nav {
  position: fixed;
  top: 164px;
  left: 32px;
  z-index: 10;
  display: none;
  width: 128px;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.9rem;
  line-height: 1.25;
}

.side-nav a {
  padding: 5px 0;
  transition: color 160ms ease;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--accent);
  font-weight: 760;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 42px 0 32px;
  border-bottom: 1px solid var(--line);
}

.hero-main {
  min-width: 0;
}

.hero-title-line {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-logo {
  flex: 0 1 auto;
  width: clamp(300px, 38vw, 520px);
  margin: 0;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.venue,
.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  display: grid;
  gap: 10px;
  max-width: 1080px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
}

.title-name {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.96;
}

.title-desc {
  max-width: 1080px;
  font-size: clamp(1.65rem, 2.65vw, 2.85rem);
  line-height: 1.12;
}

h2 {
  max-width: 980px;
  margin-bottom: 14px;
  font-size: clamp(1.18rem, 1.5vw, 1.48rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.subtitle {
  max-width: 980px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.55vw, 1.34rem);
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2px 8px;
  color: var(--ink);
  font-size: clamp(1.04rem, 1.25vw, 1.18rem);
  font-weight: 500;
}

.authors span {
  white-space: nowrap;
}

.authors sup {
  margin-left: 2px;
  color: var(--ink);
  font-size: 0.68em;
  font-weight: 500;
}

.corresponding-mark {
  display: inline-block;
  margin-left: 5px;
  color: var(--accent);
  font-size: 0.78em;
  line-height: 1;
  vertical-align: 8%;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  max-width: 1040px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
}

.affiliations sup {
  margin-right: 2px;
  color: var(--ink);
  font-size: 0.72em;
  font-weight: 500;
}

.teaser {
  width: min(100%, var(--figure-width));
  margin: 24px auto 0;
}

.paper-figure img,
.teaser img {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: var(--shadow);
}

figcaption {
  max-width: none;
  margin: 12px 0 0;
  color: var(--quiet);
  font-size: 0.98rem;
  text-align: left;
}

.section {
  padding: 68px 0;
  border-top: 1px solid rgba(36, 76, 154, 0.11);
  background: var(--stage-bg, transparent);
  box-shadow: 0 0 0 100vmax var(--stage-bg, transparent);
  clip-path: inset(0 -100vmax);
}

.stage-motivation {
  --stage-bg: var(--stage-white);
}

.stage-method {
  --stage-bg: var(--stage-gray);
}

.stage-results {
  --stage-bg: var(--stage-white);
}

.stage-gallery {
  --stage-bg: var(--stage-gray);
}

.stage-future {
  --stage-bg: var(--stage-white);
}

.stage-citation {
  --stage-bg: var(--stage-gray);
}

.text-section {
  display: grid;
  gap: 0;
  text-align: left;
}

.text-section p,
.section-heading p,
.section-intro,
.figure-aligned-text p {
  max-width: none;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.22vw, 1.18rem);
  line-height: 1.72;
}

.section-body {
  max-width: none;
  margin: 0;
}

.section-title {
  max-width: none;
  margin: 0 auto 26px;
  color: var(--ink);
  font-size: clamp(1.9rem, 2.9vw, 2.8rem);
  font-weight: 820;
  line-height: 1.04;
  text-align: center;
}

.section-intro {
  margin: 22px 0 28px;
  text-align: left;
}

.paper-figure {
  width: min(100%, var(--figure-width));
  margin: 0 auto;
}

.text-section .teaser {
  margin: 0 auto;
}

.figure-aligned-text {
  width: min(100%, var(--figure-width));
  max-width: none;
  margin: 22px auto 0;
}

.figure-aligned-text h2 {
  margin-bottom: 10px;
}

.carousel {
  width: min(100%, var(--figure-width));
  margin: 0 auto;
}

.carousel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-bottom: 18px;
}

.carousel-top .section-intro {
  margin: 0;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.carousel-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 760;
  cursor: pointer;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  transition: height 220ms ease;
}

.carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform 280ms ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  align-self: flex-start;
  min-width: 0;
}

.carousel-slide .figure-aligned-text,
.carousel-slide .section-intro {
  width: 100%;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dots button {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c4cbd6;
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--accent);
}

.video-carousel {
  margin-top: 4px;
}

.paired-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.334fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.video-panel {
  min-width: 0;
}

.video-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-panel video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  background: transparent;
  object-fit: contain;
  object-position: center;
}

.bev-panel video {
  aspect-ratio: 1 / 1;
}

.video-caption {
  width: 100%;
  margin: 14px 0 0;
}

.video-caption h3 {
  margin: 14px 0 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.video-caption p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.limitation-carousel {
  width: min(100%, var(--figure-width));
  margin: 0 auto;
}

.limitation-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.limitation-carousel .carousel-slide {
  display: grid;
}

.limitation-carousel .carousel-slide:not(.is-active) {
  visibility: hidden;
}

.limitation-carousel .carousel-dots {
  margin-top: 22px;
}

.limitation-item:last-child,
.limitation-carousel .limitation-item {
  border-bottom: 1px solid var(--line);
}

.limitation-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.limitation-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.28rem, 1.7vw, 1.55rem);
  line-height: 1.2;
}

.limitation-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.limitation-copy p:last-child {
  margin-bottom: 0;
}

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

.limitation-media,
.asset-case-groups {
  min-width: 0;
}

.limitation-media video,
.asset-case-groups img {
  display: block;
  width: 100%;
}

.limitation-media video {
  background: transparent;
}

.dual-video {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dual-video video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.asset-case-groups {
  display: grid;
  gap: 16px;
}

.asset-case-group > p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.asset-case-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.asset-case-groups figure {
  margin: 0;
}

.asset-case-groups img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.asset-case-groups figcaption {
  margin-top: 6px;
  color: var(--quiet);
  font-size: 0.88rem;
}

.render-trim {
  aspect-ratio: 5.25 / 1;
  overflow: hidden;
}

.render-trim video {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric-row div {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 18px 12px;
  background: var(--panel);
  text-align: center;
}

.metric-row strong {
  color: var(--accent);
  font-size: 1.55rem;
  line-height: 1;
}

.metric-row span {
  color: var(--muted);
  font-size: 0.98rem;
}

.citation {
  border-bottom: 1px solid var(--line);
}

pre {
  width: min(100%, var(--figure-width));
  max-width: 100%;
  margin: 16px auto 0;
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6f9;
  color: #1f2937;
  font-size: 0.96rem;
  line-height: 1.55;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 38px;
  color: var(--quiet);
  font-size: 0.98rem;
}

.footer-title {
  max-width: 820px;
  line-height: 1.45;
}

.footer-venue {
  flex: 0 0 auto;
}

@media (min-width: 1000px) {
  .topbar,
  main,
  .footer {
    width: min(1120px, calc(100% - 320px));
    margin-left: auto;
    margin-right: auto;
  }

  .top-nav {
    display: none;
  }

  .topbar {
    display: none;
  }

  .side-nav {
    display: grid;
    left: clamp(16px, 3vw, 48px);
  }
}

@media (max-width: 820px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .hero-logo {
    order: -1;
    width: min(100%, 520px);
    margin-left: -4px;
    margin-bottom: 20px;
  }

  .hero-title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .title-name {
    font-size: clamp(2.4rem, 15vw, 4.4rem);
  }

  .title-desc {
    font-size: clamp(1.35rem, 7vw, 2.15rem);
  }

  .text-section,
  .metric-row,
  .limitation-item,
  .paired-video-grid {
    grid-template-columns: 1fr;
  }

  .dual-video,
  .asset-case-pair {
    grid-template-columns: 1fr;
  }

  .carousel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 44px 0;
  }
}
