:root {
  --bg: #fbf8f4;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --ink: #182028;
  --muted: #52606c;
  --line: rgba(24, 32, 40, 0.1);
  --accent: #bd463d;
  --accent-deep: #97352f;
  --accent-soft: rgba(189, 70, 61, 0.11);
  --teal: #1f8b87;
  --teal-soft: rgba(31, 139, 135, 0.11);
  --gold: #d6a43d;
  --gold-soft: rgba(214, 164, 61, 0.14);
  --blue-soft: rgba(109, 154, 214, 0.13);
  --shadow: 0 24px 80px rgba(26, 34, 43, 0.09);
  --shadow-soft: 0 14px 42px rgba(26, 34, 43, 0.07);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 139, 135, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(214, 164, 61, 0.14), transparent 34%),
    linear-gradient(180deg, #f9f5ee 0%, #fbfaf7 28%, #f5f8fb 100%);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

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

sup {
  font-size: 0.66em;
  line-height: 0;
}

::selection {
  color: #fff;
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid #0f625f;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(251, 248, 244, 0.68);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(251, 248, 244, 0.92);
  box-shadow: 0 8px 30px rgba(24, 32, 40, 0.05);
}

.site-header__inner,
.hero__inner,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.7rem;
}

.site-brand {
  flex: 0 0 auto;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
}

.site-nav a {
  position: relative;
  padding: 0.3rem 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 4.5rem 0 2.6rem;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.16)),
    linear-gradient(180deg, rgba(189, 70, 61, 0.06), rgba(31, 139, 135, 0.02));
}

.hero__inner {
  position: relative;
}

.hero__copy,
.media-frame,
.findings-copy,
.example-card,
.result-note,
.bibtex-wrap {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: clamp(2rem, 5.5vw, 4.9rem);
  border-radius: var(--radius-xl);
  text-align: center;
}

.eyebrow,
.section-label {
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.section h2,
.findings-copy h3,
.result-note h3 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--ink);
}

.hero h1 {
  max-width: 1100px;
  margin: 0 auto 1.15rem;
  font-size: clamp(2.45rem, 6.2vw, 5.55rem);
  line-height: 0.99;
  letter-spacing: -0.043em;
  text-wrap: balance;
}

.hero__tagline {
  margin: 0 auto 0.65rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--accent-deep);
}

.hero__summary {
  max-width: 760px;
  margin: 0 auto 1.6rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.author-list,
.affiliations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
}

.author-list {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}

.affiliations {
  max-width: 880px;
  margin: 0 auto 1.75rem;
  font-size: 0.92rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid rgba(24, 32, 40, 0.12);
  border-radius: 999px;
  background: var(--surface-strong);
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(24, 32, 40, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(24, 32, 40, 0.23);
  box-shadow: 0 10px 24px rgba(24, 32, 40, 0.08);
  transform: translateY(-2px);
}

.button--primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #1c252e, #314251);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 980px;
  margin: 0 auto;
}

.hero__stats div {
  display: flex;
  min-width: 0;
  min-height: 7.6rem;
  padding: 1rem;
  border: 1px solid rgba(24, 32, 40, 0.065);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.67);
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
}

.hero__stats dt {
  max-width: 17ch;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__stats dd {
  margin: 0 0 0.1rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--accent);
}

.section {
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__header {
  display: grid;
  grid-template-columns: minmax(100px, 0.27fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.1rem;
}

.section__header .section-label {
  margin-bottom: 0.42rem;
}

.section h2 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lede {
  max-width: 800px;
  margin: -0.4rem 0 2rem calc(27% + 1.1rem);
  font-size: 1.08rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 1.35rem;
  align-items: stretch;
}

.intro-grid__text,
.highlight-list {
  min-width: 0;
}

.intro-grid__text {
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid rgba(24, 32, 40, 0.06);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.intro-grid__text p {
  font-size: 1.08rem;
}

.intro-grid__text p:last-child,
.highlight-list article p:last-child,
.note-block p:last-child,
.takeaways article p:last-child,
.result-note p:last-child {
  margin-bottom: 0;
}

.highlight-list {
  display: grid;
  gap: 0.85rem;
}

.highlight-list article {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(24, 32, 40, 0.065);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.highlight-list article:nth-child(2) {
  background: rgba(31, 139, 135, 0.07);
}

.highlight-list article:nth-child(3) {
  background: rgba(214, 164, 61, 0.09);
}

.highlight-list h3,
.note-block h3,
.takeaways h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink);
}

.media-frame {
  min-width: 0;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
}

.media-frame--full {
  margin-bottom: 1.35rem;
  padding: clamp(0.7rem, 1.8vw, 1.5rem);
}

.media-frame img {
  border-radius: calc(var(--radius-lg) - 10px);
  background: #fff;
}

.media-frame figcaption {
  padding: 0.95rem 0.4rem 0.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.pipeline-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.note-block {
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid rgba(24, 32, 40, 0.065);
  border-radius: var(--radius-md);
}

.note-block--collect {
  background: var(--gold-soft);
}

.note-block--validate {
  background: var(--blue-soft);
}

.note-block--cross {
  background: var(--teal-soft);
}

.stage-number {
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.dimension-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.dimension-strip span {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.section--findings {
  position: relative;
}

.findings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 1.45rem;
  align-items: start;
}

.findings-copy,
.example-stack,
.example-card {
  min-width: 0;
}

.findings-copy {
  position: sticky;
  top: 6rem;
  padding: clamp(1.55rem, 3vw, 2.15rem);
  border-radius: var(--radius-lg);
}

.findings-copy h3 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.findings-copy > p:not(.significance) {
  font-size: 1.02rem;
}

.choice-stats {
  display: grid;
  gap: 0.7rem;
  margin: 1.6rem 0 1rem;
}

.choice-stats div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(24, 32, 40, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.choice-stats dt {
  min-width: 0;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.choice-stats dd {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.significance {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.example-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.example-card {
  margin: 0;
  padding: clamp(0.75rem, 1.5vw, 1.15rem);
  border-radius: var(--radius-lg);
}

.example-card img {
  border-radius: calc(var(--radius-lg) - 11px);
  background: #fff;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.results-grid .media-frame {
  margin: 0;
}

.result-note {
  display: flex;
  min-width: 0;
  padding: clamp(1.6rem, 3vw, 2.35rem);
  border-radius: var(--radius-lg);
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(189, 70, 61, 0.07)),
    var(--surface);
}

.result-note h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.takeaways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.takeaways article {
  min-width: 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(24, 32, 40, 0.065);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
}

.takeaways article:nth-child(2) {
  background: rgba(214, 164, 61, 0.1);
}

.takeaways article:nth-child(3) {
  background: rgba(31, 139, 135, 0.08);
}

.section--bibtex {
  padding-bottom: 3rem;
}

.bibtex-wrap {
  min-width: 0;
  padding: 1.55rem;
  border-radius: var(--radius-lg);
  background: #131d29;
  box-shadow: 0 24px 70px rgba(19, 29, 41, 0.17);
}

.bibtex-wrap pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.bibtex-wrap code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.77rem, 1.4vw, 0.93rem);
  line-height: 1.75;
  color: #edf3fa;
}

.site-footer {
  padding: 1.4rem 0 3.2rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.72, 0.25, 1);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero__copy {
    padding: clamp(2rem, 4.7vw, 3.8rem);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.75rem);
  }

  .pipeline-cards,
  .takeaways {
    grid-template-columns: 1fr;
  }

  .pipeline-cards,
  .takeaways {
    gap: 0.8rem;
  }
}

@media (max-width: 980px) {
  .section__header {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .section-lede {
    margin-left: 0;
  }

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

  .findings-copy {
    position: static;
  }

  .findings-copy h3 {
    max-width: 18ch;
    font-size: clamp(2rem, 7vw, 3.8rem);
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    align-items: flex-start;
    padding: 0.95rem 0;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 2.2rem;
  }

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

  .intro-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 8rem;
  }

  body {
    line-height: 1.65;
  }

  .site-header__inner,
  .hero__inner,
  .section,
  .site-footer {
    width: min(calc(100% - 1.15rem), var(--max-width));
  }

  .site-nav {
    gap: 0.25rem 0.8rem;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .hero__copy {
    padding: 1.65rem 1rem;
    border-radius: 25px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero__summary,
  .intro-grid__text p {
    font-size: 1rem;
  }

  .author-list {
    font-size: 0.94rem;
  }

  .affiliations {
    font-size: 0.84rem;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__stats {
    gap: 0.65rem;
  }

  .hero__stats div {
    min-height: 6.7rem;
    padding: 0.75rem 0.55rem;
  }

  .hero__stats dt {
    font-size: 0.66rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .section h2 {
    font-size: clamp(2.05rem, 10vw, 3.15rem);
  }

  .findings-copy,
  .media-frame,
  .result-note,
  .bibtex-wrap {
    border-radius: 22px;
  }

  .findings-copy h3 {
    max-width: none;
  }

  .choice-stats div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .choice-stats dd {
    font-size: 1.65rem;
  }

  .dimension-strip {
    align-items: stretch;
    border-radius: var(--radius-md);
    flex-direction: column;
  }

  .dimension-strip span {
    text-align: center;
  }

  .bibtex-wrap {
    padding: 1rem;
  }
}

@media (max-width: 520px) {
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .example-card {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .example-card img {
    width: 680px;
    max-width: none;
    min-width: 680px;
    scroll-snap-align: start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}
