:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #101722;
  --muted: #5b6470;
  --line: #d8dee7;
  --accent: #2468df;
  --accent-soft: #e4edff;
  --signal: #52a66f;
  --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;
}

.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: 610px;
  padding: 76px 0 64px;
  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: 750;
  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 #e2f2e8;
}

h1 {
  max-width: 1000px;
  margin: 0;
  line-height: 1.06;
}

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

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

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

.authors {
  max-width: 900px;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font-size: 16px;
  font-weight: 650;
}

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 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.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,
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: 24px 0 56px;
  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: 16 / 9;
  object-fit: contain;
  background: var(--surface);
}

.teaser figcaption {
  max-width: 900px;
  margin: 18px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.overview-band {
  padding: 78px 0 86px;
  background: var(--bg);
}

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

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

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

.overview-copy {
  margin: 3px 0 0;
  color: #303a47;
  font-size: 18px;
}

.facts {
  margin-top: 58px;
  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;
}

footer {
  border-top: 1px solid #2b3544;
  color: #dce5f2;
  background: var(--ink);
}

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

/* ---------- content sections ---------- */

.section-title {
  margin: 0 0 20px;
  font-family: inherit;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
}

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

.abstract-band,
.method-band {
  padding: 72px 0 78px;
  background: var(--bg);
}

.motivation-band,
.demo-band {
  padding: 72px 0 78px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.demo-band {
  padding-bottom: 92px;
}

.method-band .overview-layout,
.motivation-band .overview-layout {
  gap: 64px;
}

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

.gap-card,
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px 18px;
}

.method-band .card {
  background: var(--bg);
}

.gap-card h3,
.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 780;
}

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

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

.card p {
  font-size: 14.5px;
}

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

.method-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.method-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}

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

/* ---------- demo showcase ---------- */

.demo-head h2 {
  max-width: 720px;
}

.demo-intro {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16.5px;
}

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

.la-case {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.la-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.la-ref {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.la-head-text {
  min-width: 0;
}

.la-head-text h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 780;
}

.la-head-text p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.la-pill {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.video-chip {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.video-chip:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.la-video {
  width: 100%;
}

.la-video img,
.la-video video {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #0b0f14;
}

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

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

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: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

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

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

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

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

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

  .visual-band {
    padding: 14px 0 40px;
  }

  .overview-band {
    padding: 58px 0 64px;
  }

  .overview-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h2 {
    font-size: 32px;
  }

  .overview-copy {
    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;
  }

  .abstract-band,
  .motivation-band,
  .method-band,
  .demo-band {
    padding: 54px 0 60px;
  }

  .section-title {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .method-band .overview-layout,
  .motivation-band .overview-layout {
    gap: 28px;
  }

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

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

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

  .la-case {
    padding: 14px;
  }

  .la-head {
    flex-wrap: wrap;
    gap: 12px;
  }

  .la-ref {
    width: 56px;
    height: 56px;
  }

  .la-pill {
    margin-left: 0;
  }

  .la-video img,
  .la-video video {
    max-height: 480px;
  }

  .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: 46px;
  }

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

  .fact {
    padding: 0 14px;
  }
}

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

  .resource-link {
    transition: none;
  }
}

/* Content-preserving academic layout. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --ink: #171717;
  --copy: #303030;
  --muted: #666666;
  --line: #d9d9d5;
  --accent: #171717;
  --accent-soft: #ececea;
  --signal: #171717;
  --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);
  border-bottom: 0;
  background: var(--surface);
}

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

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

.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: 1010px;
  font-weight: 600;
}

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

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

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

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

.affiliations {
  font-size: 15px;
}

.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 {
  display: none;
}

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

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

.teaser-media {
  width: 100%;
  aspect-ratio: 2000 / 643;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
}

.teaser img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: initial;
  transform: translateY(-19.1%);
}

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

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

.overview-copy,
.demo-intro {
  width: 100%;
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  color: var(--copy);
  font-size: 17px;
  line-height: 1.72;
}

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

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

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

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

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

.gap-grid {
  margin-top: 34px;
  gap: 32px;
}

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

.gap-card h3,
.card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.38;
}

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

.method-figure {
  width: 100%;
  margin-top: 42px;
}

.method-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-color: var(--line);
  border-radius: 6px;
  object-fit: contain;
}

.method-figure figcaption {
  margin-top: 14px;
}

.card-grid {
  margin-top: 30px;
  column-gap: 34px;
  row-gap: 28px;
}

.demo-band .demo-head {
  width: 100%;
}

.demo-intro {
  margin-top: 17px;
  text-align: left;
}

.la-grid {
  margin-top: 30px;
  column-gap: 24px;
  row-gap: 24px;
}

.la-case {
  min-width: 0;
  padding: 16px 0 20px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.la-head {
  gap: 12px;
  margin-bottom: 12px;
}

.la-ref {
  width: 58px;
  height: 58px;
  border-radius: 6px;
}

.la-head-text h3 {
  margin-bottom: 3px;
  font-size: 16px;
}

.la-head-text p {
  font-size: 13px;
  line-height: 1.48;
}

.la-pill {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  letter-spacing: 0;
}

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

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

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

.demo-subhead {
  margin: 46px 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
}

.demo-note {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

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

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

.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;
}

@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: 29px;
  }

  .authors {
    font-size: 15px;
  }

  .affiliations {
    font-size: 13px;
  }

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

  .teaser {
    width: 100%;
  }

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

  .overview-copy,
  .demo-intro {
    font-size: 16px;
  }

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

  .gap-grid,
  .card-grid {
    gap: 24px;
  }

  .gap-card p,
  .card p {
    font-size: 15px;
  }

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

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

  .la-case {
    padding: 14px 0 18px;
  }

  .la-head {
    flex-wrap: wrap;
  }

  .la-ref {
    width: 56px;
    height: 56px;
  }

  .la-pill {
    margin-left: 0;
  }

  .demo-subhead {
    margin-top: 38px;
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .paper-name {
    font-size: 38px;
    white-space: nowrap;
  }

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

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