:root {
  color-scheme: light;
  --bg: #f4f5f1;
  --surface: #ffffff;
  --ink: #171915;
  --muted: #5e625a;
  --line: #d9ddd4;
  --accent: #bd3f34;
  --accent-soft: #f7e8e4;
  --signal: #267d70;
  --signal-soft: #e0f0ec;
  --gold: #d89018;
  --shell: 1080px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.shell,
.wide-shell {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
}

.wide-shell {
  width: min(calc(100% - 32px), 1320px);
}

.hero-band {
  border-top: 6px solid var(--ink);
  background: var(--bg);
}

.hero {
  min-height: 650px;
  padding: 78px 0 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px var(--signal-soft);
}

h1 {
  max-width: 1040px;
  margin: 0;
  line-height: 1.07;
}

.paper-name,
.paper-subtitle {
  display: block;
}

.paper-name {
  color: var(--accent);
  font-size: 78px;
  font-weight: 850;
}

.paper-subtitle {
  margin-top: 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 600;
}

.authors {
  max-width: 900px;
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  font-size: 17px;
  font-weight: 700;
}

sup {
  color: var(--accent);
  font-size: 0.68em;
  font-weight: 800;
}

.affiliations {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 22px;
  color: var(--muted);
  font-size: 14px;
}

.resource-nav {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-link {
  min-width: 126px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--surface);
  background: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease;
}

.resource-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.resource-link:focus-visible,
.video-chip:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.resource-arrow {
  font-size: 20px;
  line-height: 1;
}

.release-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.visual-band {
  padding: 38px 0 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.teaser {
  margin: 0;
}

.teaser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1900 / 458;
  object-fit: contain;
  background: var(--surface);
}

.teaser figcaption,
.method-figure figcaption,
.result-figure figcaption {
  max-width: 940px;
  margin: 16px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}

.abstract-band,
.method-band,
.demo-band {
  padding: 76px 0 82px;
  background: var(--bg);
}

.motivation-band,
.results-band {
  padding: 76px 0 86px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.method-band,
.demo-band {
  border-top: 1px solid var(--line);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--accent);
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  line-height: 1.16;
}

.body-copy,
.results-intro,
.demo-copy p,
.detail-copy p {
  margin: 3px 0 0;
  color: #383c35;
  font-size: 17px;
}

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

.gap-card,
.method-card {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.gap-card h3,
.method-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.3;
}

.gap-card h3 {
  color: var(--accent);
}

.gap-card p,
.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.52;
}

.facts {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  color: var(--accent);
  font-size: 21px;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
}

.method-intro {
  gap: 64px;
}

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

.method-figure img,
.detail-figure img,
.result-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
}

.method-wide img {
  aspect-ratio: 1758 / 564;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.method-card {
  background: #fbfbf8;
}

.method-card h3 {
  color: var(--signal);
  font-size: 16px;
}

.method-card p {
  font-size: 14px;
}

.method-detail {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 68px;
  align-items: center;
}

.detail-figure {
  margin: 0;
}

.detail-figure img {
  max-height: 480px;
  object-fit: contain;
}

.detail-copy h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.2;
}

.results-head {
  margin: 0 auto 38px;
}

.results-head h2 {
  max-width: 760px;
}

.results-intro {
  max-width: 900px;
  margin-top: 17px;
}

.result-figure {
  margin: 0;
}

.comparison-figure img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.metric-strip {
  width: min(calc(100% - 40px), var(--shell));
  margin: 46px auto 0;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-strip div {
  min-width: 0;
  padding: 0 30px;
  border-left: 1px solid var(--line);
}

.metric-strip div:first-child {
  border-left: 0;
}

.metric-strip span,
.metric-strip strong,
.metric-strip small {
  display: block;
}

.metric-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-strip strong {
  margin-top: 2px;
  color: var(--accent);
  font-size: 27px;
}

.metric-strip small {
  color: var(--muted);
  font-size: 12px;
}

.result-grid {
  width: min(calc(100% - 40px), var(--shell));
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.gallery-figure img {
  max-height: 650px;
  object-fit: contain;
}

.ablation-figure img {
  object-fit: contain;
}

.result-figure figcaption strong {
  color: var(--ink);
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 60px;
  align-items: center;
}

.demo-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15.5px;
}

.video-chip {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  line-height: 0;
}

.video-chip img,
.video-chip video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ffffff;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  color: #ffffff;
  background: rgba(23, 25, 21, 0.72);
  font-size: 22px;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}

.video-chip:hover .play-badge {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-meta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 5px;
  color: #ffffff;
  background: rgba(23, 25, 21, 0.78);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

footer {
  border-top: 1px solid #33362f;
  color: #e3e5df;
  background: var(--ink);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

footer a {
  color: #ffffff;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .paper-subtitle {
    font-size: 35px;
  }

  .split-layout,
  .method-detail,
  .demo-layout {
    gap: 44px;
  }

  .gap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .hero {
    min-height: 0;
    padding: 58px 0 50px;
  }

  .paper-name {
    font-size: 56px;
  }

  .paper-subtitle {
    margin-top: 14px;
    font-size: 29px;
  }

  .authors {
    margin-top: 30px;
    gap: 3px 15px;
    font-size: 15px;
  }

  .affiliations {
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
  }

  .visual-band {
    padding: 28px 0 38px;
  }

  .abstract-band,
  .motivation-band,
  .method-band,
  .results-band,
  .demo-band {
    padding: 58px 0 64px;
  }

  .split-layout,
  .method-detail,
  .demo-layout,
  .result-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h2 {
    font-size: 32px;
  }

  .body-copy,
  .results-intro {
    font-size: 16px;
  }

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

  .fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .method-detail {
    margin-top: 48px;
    padding-top: 38px;
  }

  .detail-figure img {
    max-height: 420px;
  }

  .metric-strip {
    width: min(calc(100% - 32px), var(--shell));
    grid-template-columns: 1fr;
    padding: 0;
  }

  .metric-strip div,
  .metric-strip div:first-child {
    padding: 17px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric-strip div:first-child {
    border-top: 0;
  }

  .result-grid {
    width: min(calc(100% - 32px), var(--shell));
  }

  .gallery-figure img {
    max-height: none;
  }

  .footer-inner {
    min-height: 108px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .paper-name {
    font-size: 49px;
  }

  .paper-subtitle {
    font-size: 26px;
  }

  .fact {
    padding: 0 14px;
  }

  .play-badge {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
}

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

  .resource-link,
  .play-badge {
    transition: none;
  }
}

/* Unified academic project-page layout. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --ink: #171717;
  --copy: #303030;
  --muted: #666666;
  --line: #d8dde2;
  --accent: #171717;
  --accent-soft: #eceff2;
  --signal: #171717;
  --signal-soft: #eceff2;
  --shell: 1160px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  color: var(--ink);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

.shell,
.wide-shell {
  width: min(calc(100% - 48px), var(--shell));
}

.hero-band {
  border-top: 4px solid var(--ink);
  background: var(--surface);
}

.hero {
  min-height: 0;
  padding: 54px 0 18px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  box-shadow: none;
  vertical-align: 2px;
}

h1,
h2,
.section-title {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  width: 100%;
  max-width: 1050px;
  font-weight: 600;
}

.paper-name {
  color: var(--ink);
  font-size: 58px;
  font-weight: 600;
}

.paper-subtitle {
  margin-top: 14px;
  font-size: 38px;
  font-weight: 600;
}

.authors {
  max-width: 920px;
  margin-top: 34px;
  gap: 3px 17px;
  font-size: 16px;
}

sup {
  color: var(--ink);
}

.affiliations {
  font-size: 14px;
}

.resource-nav {
  margin-top: 30px;
  gap: 10px;
}

.resource-link {
  min-width: 112px;
  height: 42px;
  padding: 0 17px;
  border-color: #242424;
  border-radius: 999px;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: #242424;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
}

.resource-link:hover {
  color: #ffffff;
  background: #000000;
  transform: none;
}

.resource-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.resource-paper:disabled {
  color: #ffffff;
  opacity: 1;
  cursor: default;
}

.resource-arrow,
.release-note,
.section-kicker,
.facts {
  display: none;
}

.visual-band {
  padding: 8px 0 30px;
  border: 0;
  background: var(--surface);
}

.teaser {
  width: 100%;
  margin: 0 auto;
}

.teaser img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #ffffff;
}

.teaser figcaption,
.method-figure figcaption,
.result-figure figcaption {
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.62;
  text-align: left;
}

.abstract-band,
.motivation-band,
.method-band,
.results-band,
.demo-band {
  border: 0;
}

.abstract-band {
  padding: 54px 0 58px;
  background: var(--surface);
}

.motivation-band {
  padding: 58px 0 62px;
  background: var(--surface-alt);
}

.method-band {
  padding: 58px 0 64px;
  background: var(--surface);
}

.results-band {
  padding: 58px 0 66px;
  background: var(--surface-alt);
}

.demo-band {
  padding: 58px 0 72px;
  background: var(--surface);
}

.split-layout,
.method-intro {
  display: block;
}

.section-title {
  width: 100%;
  margin: 0 auto 20px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.22;
  text-align: center;
}

.body-copy,
.results-intro,
.demo-copy p,
.detail-copy p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--copy);
  font-size: 17px;
  line-height: 1.68;
}

.gap-grid {
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.gap-card,
.method-card {
  min-width: 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.gap-card h3,
.method-card h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.gap-card p,
.method-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.method-figure {
  margin: 34px 0 0;
}

.method-figure img,
.detail-figure img,
.result-figure img {
  border-radius: 6px;
}

.method-wide img {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.card-grid {
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 28px;
}

.method-detail {
  margin-top: 48px;
  padding-top: 38px;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  border-top: 1px solid var(--line);
}

.detail-figure img {
  max-height: 430px;
}

.detail-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 650;
  line-height: 1.28;
}

.results-head {
  margin: 0 auto 32px;
}

.results-head h2 {
  max-width: none;
}

.results-intro {
  margin-top: 0;
}

.comparison-figure img {
  width: 100%;
  border-radius: 6px;
}

.metric-strip {
  width: 100%;
  margin: 38px auto 0;
  padding: 22px 0;
}

.metric-strip strong {
  color: var(--ink);
}

.metric-strip span {
  text-transform: none;
}

.result-grid {
  width: 100%;
  margin: 44px auto 0;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 34px;
  align-items: start;
}

.result-figure figcaption strong {
  color: var(--ink);
}

.demo-layout {
  display: block;
}

.demo-copy p {
  margin: 0;
  color: var(--copy);
  font-size: 17px;
}

.video-chip {
  display: block;
  width: min(100%, 960px);
  margin: 30px auto 0;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
}

.video-chip img,
.video-chip video {
  border-radius: 6px;
}

.play-badge {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(10, 10, 10, 0.66);
  font-size: 19px;
}

.video-chip:hover .play-badge {
  background: var(--ink);
}

.video-meta {
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.72);
}

footer {
  border-top-color: var(--ink);
  background: var(--ink);
}

.footer-inner {
  min-height: 82px;
  font-size: 12px;
}

footer a {
  text-decoration-color: #ffffff;
}

.section-progress {
  position: fixed;
  top: 50%;
  right: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transform: translateY(-50%);
}

.section-progress-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: transform 180ms ease, background 180ms ease;
}

.section-progress-dot:hover,
.section-progress-dot.is-active {
  background: var(--ink);
  transform: scale(1.4);
}

.section-progress-dot.is-active {
  box-shadow: 0 0 0 4px rgba(23, 23, 23, 0.1);
}

.section-progress-label {
  position: absolute;
  top: 50%;
  right: 20px;
  padding: 4px 9px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-50%) translateX(6px);
  color: #ffffff;
  background: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.section-progress-dot:hover .section-progress-label,
.section-progress-dot:focus-visible .section-progress-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.section-progress-dot:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.resource-link:focus-visible,
.video-chip:focus-visible,
footer a:focus-visible {
  outline-color: var(--ink);
}

@media (max-width: 1180px) {
  .section-progress {
    display: none;
  }
}

@media (max-width: 760px) {
  .shell,
  .wide-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  body {
    font-size: 16px;
  }

  .hero {
    padding: 48px 0 18px;
  }

  .paper-name {
    font-size: 44px;
  }

  .paper-subtitle {
    margin-top: 12px;
    font-size: 27px;
  }

  .authors {
    font-size: 15px;
  }

  .affiliations {
    font-size: 13px;
  }

  .visual-band {
    padding: 8px 0 24px;
  }

  .abstract-band,
  .motivation-band,
  .method-band,
  .results-band,
  .demo-band {
    padding-top: 44px;
    padding-bottom: 50px;
  }

  .section-title {
    font-size: 29px;
  }

  .body-copy,
  .results-intro,
  .demo-copy p {
    font-size: 16px;
  }

  .gap-grid,
  .card-grid,
  .method-detail,
  .result-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .method-detail {
    margin-top: 42px;
    padding-top: 32px;
  }

  .detail-copy h3 {
    font-size: 23px;
  }

  .metric-strip {
    width: 100%;
  }

  .result-grid {
    width: 100%;
    margin-top: 36px;
  }

  .video-chip {
    width: 100%;
    margin-top: 26px;
  }
}

@media (max-width: 420px) {
  .paper-name {
    font-size: 40px;
  }

  .paper-subtitle {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-progress-dot,
  .section-progress-label {
    transition: none;
  }
}
