:root {
  --bg: #f6f7f8;
  --surface: rgba(255, 255, 255, 0.84);
  --text: #111418;
  --muted: #5d6670;
  --line: rgba(17, 20, 24, 0.12);
  --accent: #146a87;
  --accent-2: #1a86a8;
  --shadow: 0 10px 32px rgba(12, 18, 26, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(20, 106, 135, 0.06), transparent 28%),
    linear-gradient(180deg, #fafafa 0%, #f3f5f7 100%);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing: 0;
}
img, video {
  display: block;
  width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
section[id] {
  scroll-margin-top: 84px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 248, 250, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 20, 24, 0.08);
}
.header-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}
.nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 30px 0 12px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-copy {
  max-width: 860px;
  padding-top: 8px;
}
.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
}
h1, h2, h3 {
  margin: 0;
  font-family: "Crimson Pro", Georgia, serif;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(3rem, 5.4vw, 5.8rem);
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  gap: 0.04em;
  max-width: none;
}
h1 span {
  display: block;
  white-space: nowrap;
}
.lede {
  margin: 16px 0 0;
  max-width: 58rem;
  font-size: 1.07rem;
  line-height: 1.65;
  color: var(--muted);
}
.authors {
  margin: 14px 0 0;
  font-size: 0.97rem;
  font-weight: 600;
}
.release-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.release-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 106, 135, 0.22);
  background: rgba(20, 106, 135, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.release-chip-muted {
  border-color: rgba(17, 20, 24, 0.14);
  background: rgba(17, 20, 24, 0.04);
  color: var(--muted);
}
.hero-teaser {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.hero-teaser img {
  border-radius: 10px;
  border: 1px solid rgba(17, 20, 24, 0.09);
  box-shadow: var(--shadow);
  background: #fff;
  height: auto;
}

.section {
  padding: 72px 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  align-items: flex-start;
}
h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
}
h3 {
  font-size: 1.55rem;
  line-height: 1.08;
  margin-bottom: 8px;
}
.overview-lead {
  margin: 0;
  max-width: 56rem;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}
.overview-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.overview-grid article,
.comparison-panel {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.overview-grid p,
.comparison-panel figcaption,
.video-card figcaption {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.method-figure {
  margin: 0;
}
.method-figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}
.method-caption {
  margin: 10px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.video-card {
  margin: 0;
}
.video-card video {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0d1115;
  box-shadow: var(--shadow);
}
.video-card figcaption {
  margin-top: 10px;
  font-size: 0.94rem;
}

.comparison-stack {
  display: grid;
  gap: 24px;
}
.comparison-panel {
  margin: 0;
  display: grid;
  gap: 14px;
  align-items: start;
}
.chart-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.chart-panel img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.pair-panel {
  display: grid;
  gap: 12px;
}
.comparison-title {
  font-size: 0.88rem;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 700;
}
.comparison-note {
  margin: -4px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}
.comparison-subtitle {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(17, 20, 24, 0.12);
}
.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pair-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}
.single-ring-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.comparison-thumb {
  margin: 0;
  display: grid;
  gap: 6px;
}
.comparison-thumb img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}
.single-ring-grid .comparison-thumb img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}
.comparison-thumb figcaption {
  margin: 0;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
}
.nu-lower {
  text-transform: none;
}
.lbm-panel {
  display: grid;
  gap: 12px;
}
.lbm-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}
.lbm-chart {
  width: 100%;
  max-width: 50%;
  justify-self: start;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}
.lbm-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}

.footer {
  padding: 0 0 36px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .overview-grid,
  .video-grid,
  .pair-grid {
    grid-template-columns: 1fr;
  }
  .lbm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-panel,
  .lbm-top {
    grid-template-columns: 1fr;
  }
  .lbm-chart {
    width: 100%;
    max-width: none;
  }
  .single-ring-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-teaser {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  h1 {
    max-width: none;
    font-size: clamp(1.9rem, 4.6vw, 3rem);
  }
  h1 span {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .wrap, .header-inner {
    width: min(100% - 24px, 1160px);
  }
  .header-inner {
    min-height: 60px;
  }
  .nav {
    gap: 12px;
    font-size: 0.88rem;
  }
  .section {
    padding: 54px 0;
  }
  h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.8rem);
  }
  .hero {
    padding-top: 18px;
  }
  .hero-teaser {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .lbm-chart {
    width: 100%;
    max-width: none;
  }
  .lbm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .single-ring-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
