:root {
  --ink: #17191f;
  --muted: #5d6470;
  --line: #d9dde1;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --surface-strong: #eef2f2;
  --teal: #157a74;
  --teal-dark: #0e534f;
  --coral: #d96245;
  --gold: #c49a3b;
  --violet: #6d5ea8;
  --shadow: 0 20px 50px rgba(23, 25, 31, 0.12);
}

* {
  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.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 44px;
  color: #ffffff;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 247, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--coral);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #ffffff;
  background: #111318;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 16, 0.88) 0%, rgba(10, 13, 16, 0.68) 45%, rgba(10, 13, 16, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 13, 16, 0.72) 0%, rgba(10, 13, 16, 0.1) 62%);
}

.hero-content {
  position: relative;
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding: 136px 0 76px;
}

.venue,
.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
  font-weight: 850;
}

.hero-subtitle {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.authors {
  max-width: 900px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

.authors a {
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.authors a:hover {
  border-bottom-color: #ffffff;
}

.authors sup {
  font-size: 0.72em;
  line-height: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 850;
  text-decoration: none;
  background: #000000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.button:hover {
  background: #17191f;
  transform: translateY(-1px);
}

.button svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: currentColor;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-band div {
  padding: 28px 32px;
  background: var(--surface);
}

.metric-band strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2.2rem;
  line-height: 1;
}

.metric-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 86px 44px;
}

.section-copy,
.section-heading,
.wide-figure,
.video-shell,
.result-layout,
.benchmark-grid,
.visual-pair,
.dynamics-grid,
.resource-grid,
.citation-section .section-heading,
.bibtex {
  width: min(1320px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.citation-section .section-heading,
.bibtex {
  width: min(1120px, 100%);
}

.section-heading {
  margin-bottom: 34px;
}

.wide-figure,
.video-shell,
.result-layout,
.visual-pair,
.dynamics-grid {
  width: min(1440px, 100%);
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2,
.section-copy h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.1;
}

.section-heading p:not(.eyebrow),
.section-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
  gap: 36px;
  width: min(1210px, 100%);
  margin: 0 auto;
}

.intro-grid .section-copy {
  width: 100%;
}

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

.comparison-panel article,
.process-grid article,
.benchmark-card,
.resource-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.comparison-panel article {
  min-height: 230px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.comparison-panel article:first-child {
  border-top: 5px solid var(--violet);
}

.comparison-panel article:last-child {
  border-top: 5px solid var(--teal);
}

.comparison-panel span,
.resource-card span {
  display: block;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.comparison-panel strong {
  display: block;
  margin-top: 16px;
  font-size: 1.45rem;
  line-height: 1.18;
}

.comparison-panel p,
.process-grid p,
.benchmark-card p,
.resource-card p {
  color: var(--muted);
}

.method-section,
.results-section,
.resources-section {
  background: var(--surface);
}

.wide-figure,
.result-figure,
.visual-pair figure,
.dynamics-grid figure {
  margin-top: 0;
  margin-bottom: 0;
}

.wide-figure img,
.result-figure img,
.visual-pair img,
.dynamics-grid img,
.embedded-demo {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

.process-grid {
  width: min(1120px, 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article,
.benchmark-card,
.resource-card {
  padding: 24px;
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-weight: 850;
}

.process-grid h3,
.benchmark-card h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
}

.video-section {
  background: var(--ink);
  color: #ffffff;
}

.video-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #000000;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(480px, 1.05fr);
  gap: 34px;
  align-items: center;
}

.result-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.result-table caption {
  padding: 18px 20px;
  text-align: left;
  font-size: 1.16rem;
  font-weight: 850;
  background: var(--surface-strong);
}

.result-table th,
.result-table td {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.result-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.highlight-row {
  background: #eaf5f2;
  font-weight: 850;
}

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

.mini-bars {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.mini-bars div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border-radius: 6px;
  background: var(--surface-strong);
}

.mini-bars span {
  color: var(--muted);
  font-weight: 700;
}

.mini-bars strong {
  color: var(--teal-dark);
}

.visual-pair,
.dynamics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  margin-top: 36px;
}

.visual-pair img,
.dynamics-grid img {
  height: auto;
  padding: 0;
  object-fit: contain;
}

.embedded-demo {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 0;
  background: #000000;
}

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

.resource-card {
  min-height: 188px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.resource-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.resource-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.07rem;
  line-height: 1.25;
}

.citation-section {
  background: var(--surface-strong);
}

.bibtex {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101216;
  color: #f7f7f4;
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 44px;
  color: rgba(255, 255, 255, 0.75);
  background: var(--ink);
}

.site-footer span:first-child {
  color: #ffffff;
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 24px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }

  .hero-content {
    width: min(100% - 40px, 900px);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .metric-band,
  .intro-grid,
  .benchmark-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-layout,
  .visual-pair,
  .dynamics-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 68px 24px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 112px 0 44px;
  }

  .hero h1 {
    font-size: 2.18rem;
    line-height: 1.08;
  }

  .hero-subtitle {
    font-size: 1.04rem;
  }

  .authors {
    font-size: 0.88rem;
  }

  .actions {
    gap: 10px;
  }

  .button {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  .metric-band,
  .intro-grid,
  .comparison-panel,
  .result-layout,
  .benchmark-grid,
  .visual-pair,
  .dynamics-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .metric-band div {
    padding: 22px 20px;
  }

  .metric-band strong {
    font-size: 1.8rem;
  }

  .section {
    padding: 58px 18px;
  }

  .section-heading h2,
  .section-copy h2 {
    font-size: 2rem;
  }

  .comparison-panel article {
    min-height: auto;
  }

  .result-table {
    font-size: 0.86rem;
  }

  .result-table th,
  .result-table td {
    padding: 12px 10px;
  }

  .wide-figure,
  .visual-pair figure,
  .dynamics-grid figure {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .wide-figure img,
  .visual-pair img,
  .dynamics-grid img,
  .embedded-demo {
    max-width: none;
  }

  .wide-figure img,
  .visual-pair figure:first-child img {
    width: 720px;
  }

  .visual-pair figure:last-child img {
    width: 920px;
  }

  .dynamics-grid figure:first-child img {
    width: 760px;
  }

  .embedded-demo {
    width: 520px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
