:root {
  --paper: #f5f6f8;
  --white: #ffffff;
  --ink: #151b2b;
  --muted: #5f6879;
  --line: #d9dde5;
  --dark: #111827;
  --dark-soft: #1f2937;
  --accent: #d1245b;
  --accent-dark: #a81745;
  --cyan: #20b8b1;
  --orange: #f07a25;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container,
.container-wide {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

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

.hero {
  position: relative;
  min-height: min(760px, 88vh);
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.015);
}

.hero-shade {
  background: rgba(8, 12, 22, 0.66);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.wordmark {
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(min(760px, 88vh) - 76px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 54px 0 76px;
}

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

.eyebrow {
  color: #ff8bad;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 96px;
  line-height: 0.95;
}

.hero-title {
  max-width: 780px;
  margin: 20px 0 0;
  font-size: 34px;
  font-weight: 760;
  line-height: 1.16;
}

.subtitle {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.authors {
  max-width: 900px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--white);
  background: rgba(17, 24, 39, 0.35);
}

.section {
  padding: 88px 0;
  scroll-margin-top: 18px;
}

.section-light {
  background: var(--white);
}

.intro-section {
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.citation-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.13;
}

h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.prose p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.prose p + p {
  margin-top: 18px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading > p:last-child {
  margin: 16px auto 0;
  color: var(--muted);
}

.paper-figure {
  margin: 0;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.framework-figure {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fafafa;
}

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

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

.method-steps article {
  padding-top: 22px;
  border-top: 3px solid var(--line);
}

.method-steps article:nth-child(1) {
  border-color: var(--orange);
}

.method-steps article:nth-child(2) {
  border-color: #7254b3;
}

.method-steps article:nth-child(3) {
  border-color: var(--cyan);
}

.step-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.method-steps p,
.split-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 40px;
}

.dataset-section {
  background: var(--paper);
}

.dataset-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.section-dark {
  color: var(--white);
  background: var(--dark);
}

.section-heading-light > p:last-child {
  color: #aab3c2;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #374151;
  background: var(--dark-soft);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 12px 18px;
  border-bottom: 1px solid #374151;
  text-align: right;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: #c8cfda;
  background: #182131;
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #e5e7eb;
  font-size: 14px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.ours td {
  color: var(--white);
  background: rgba(209, 36, 91, 0.24);
  font-weight: 900;
}

.alternate td {
  color: #d9f7f4;
  background: rgba(32, 184, 177, 0.10);
}

.result-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 620px);
  gap: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
}

.result-value {
  margin: 0;
  color: #ff6f9a;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.result-summary p:last-child {
  margin: 0;
  color: #c8cfda;
}

.result-summary > p:not(.result-value) {
  grid-column: 2;
  max-width: 620px;
}

.qualitative-figure {
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.visuals-section {
  background: var(--paper);
}

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

.video-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.video-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--dark);
}

.video-grid figcaption {
  padding: 10px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.citation-section {
  color: var(--white);
  background: #1d2533;
}

.citation-section .section-kicker {
  color: #ff8bad;
}

pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid #3c4656;
  border-radius: 6px;
  color: #e7eaf0;
  background: #121824;
  font-size: 13px;
  line-height: 1.65;
}

.footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 900px) {
  .nav-links {
    gap: 18px;
  }

  h1 {
    font-size: 80px;
  }

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

  .intro-grid,
  .citation-grid,
  .split-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .method-steps,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container,
  .container-wide {
    width: min(100% - 28px, var(--max-width));
  }

  .hero {
    min-height: 720px;
  }

  .nav {
    min-height: 64px;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(4) {
    display: none;
  }

  .hero-inner {
    min-height: 656px;
    padding: 48px 0 66px;
  }

  h1 {
    font-size: 68px;
  }

  .hero-title {
    font-size: 25px;
  }

  .subtitle {
    font-size: 16px;
  }

  .section {
    padding: 62px 0;
  }

  h2 {
    font-size: 32px;
  }

  .prose p {
    font-size: 16px;
  }

  .framework-figure,
  .qualitative-figure {
    padding: 5px;
  }

  .method-steps,
  .video-grid {
    grid-template-columns: 1fr;
  }

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

  .result-summary > p:not(.result-value) {
    grid-column: 1;
  }

  .result-value {
    font-size: 42px;
  }

  .citation-grid pre {
    font-size: 11px;
  }
}

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