:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9dee8;
  --soft-line: #e8ecf3;
  --red: #d95f4f;
  --teal: #007c89;
  --green: #2f7d4d;
  --shadow: 0 18px 60px rgba(20, 26, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(217, 222, 232, 0.82);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.98), rgba(247, 248, 251, 0.78) 58%, rgba(247, 248, 251, 0.45)),
    url("assets/core_findings.gif") center right / min(780px, 72vw) auto no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, rgba(247, 248, 251, 0), var(--bg));
}

.hero-content {
  width: min(1060px, calc(100% - 44px));
  margin: 0 auto;
  padding: 70px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.subtitle {
  max-width: 760px;
  margin-bottom: 28px;
  color: #384252;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 650;
}

.authors {
  max-width: 820px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.authors p {
  margin-bottom: 6px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(20, 26, 40, 0.08);
}

.button:hover {
  border-color: #b9c1cf;
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.section {
  padding: 78px 0;
}

.section-inner {
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 780px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: stretch;
}

.intro-grid > p {
  margin: 0;
  color: #303a49;
  font-size: 20px;
  font-weight: 650;
}

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

.metrics div,
.finding-card,
.resource-panel {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metrics div {
  padding: 20px;
}

.metrics span {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
}

.metrics div:nth-child(2) span {
  color: var(--red);
}

.metrics div:nth-child(3) span {
  color: var(--teal);
}

.metrics p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.visual-section {
  background: #eef2f7;
  border-block: 1px solid var(--line);
}

.teaser {
  margin: 0;
}

.teaser img {
  width: min(760px, 100%);
  margin: 0 auto;
}

figcaption {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

.findings-band {
  background: var(--surface);
}

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

.finding-card {
  padding: 24px;
}

.finding-card span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.finding-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.finding-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
}

.figure-section {
  background: #f7f8fb;
}

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

.figure-grid figure {
  margin: 0;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.figure-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

.figure-grid figcaption {
  min-height: 68px;
  margin: 0;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--soft-line);
  text-align: left;
}

.resources-section {
  background: #eef2f7;
  border-block: 1px solid var(--line);
}

.resource-panel {
  padding: 24px 28px;
}

.resource-panel p {
  margin-bottom: 12px;
  color: #2f3846;
  font-size: 18px;
  font-weight: 700;
}

.resource-panel p:last-child {
  margin-bottom: 0;
}

.resource-panel a {
  color: #2457a6;
  overflow-wrap: anywhere;
}

.citation-section pre {
  margin: 0;
  overflow: auto;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #101828;
  color: #ecf2ff;
  box-shadow: var(--shadow);
}

.citation-section code {
  display: block;
  padding: 22px;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  padding: 30px 22px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    min-height: auto;
    padding: 16px 22px;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(247, 248, 251, 0.98), rgba(247, 248, 251, 0.86)),
      url("assets/core_findings.gif") center 18% / min(640px, 112vw) auto no-repeat;
  }

  .hero-content {
    padding: 64px 0 82px;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading,
  .intro-grid,
  .metrics,
  .finding-list,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 16px;
  }

  .intro-grid > p {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .hero-content,
  .section-inner {
    width: min(100% - 28px, 1100px);
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .subtitle {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .resource-panel {
    padding: 20px;
  }
}
