:root {
  --ink: #17211d;
  --muted: #5f6e66;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #d9ded8;
  --green: #1e5d47;
  --green-dark: #123c2f;
  --mint: #dcece3;
  --amber: #d49745;
  --max-width: 1180px;
  --shadow: 0 24px 70px rgba(28, 49, 39, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 4vw;
  color: var(--ink);
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 1px solid rgba(23, 33, 29, 0.1);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(135deg, transparent 0 43%, var(--paper) 43% 48%, transparent 48%),
    linear-gradient(45deg, var(--green) 0 48%, var(--amber) 48% 100%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 29, 0.15);
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--green); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: grid;
  place-items: center;
  color: #f7f5ef;
  background:
    radial-gradient(circle at 50% 120%, rgba(212, 151, 69, 0.3), transparent 45%),
    linear-gradient(145deg, #0d2c23, #173f31 62%, #234f3d);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1080px);
  padding: 120px 0 82px;
  text-align: center;
}
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.18;
}
.hero-glow-one { top: -160px; right: -80px; background: #f0bf79; }
.hero-glow-two { bottom: -220px; left: -100px; background: #70b390; }
.eyebrow, .section-index, .kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow { color: #b9dbc7; }
.hero h1 {
  max-width: 980px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 7.7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.hero-subtitle {
  max-width: 780px;
  margin: 34px auto 0;
  color: #d8e7dd;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.authors { margin: 38px auto 0; font-size: 1rem; }
.authors sup { margin-left: 2px; color: #f0c98d; font-size: 0.68em; vertical-align: super; }
.affiliations { max-width: 960px; margin: 18px auto 0; color: #afc9bb; font-size: 0.76rem; line-height: 1.45; }
.affiliations p { margin: 3px 0; }
.affiliations sup { display: inline-block; min-width: 1.4em; color: #f0c98d; font-weight: 700; text-align: left; }
.affiliations .corresponding { margin-top: 8px; color: #c9dbd1; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--green-dark); background: #f4e4c8; border-color: #f4e4c8; }
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 70px auto 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.metric-row div { padding: 25px 15px; border-right: 1px solid rgba(255,255,255,0.15); }
.metric-row div:last-child { border-right: 0; }
.metric-row strong { display: block; font-family: Georgia, serif; font-size: 2.15rem; font-weight: 400; }
.metric-row span { color: #bcd0c4; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }

.section { width: min(100% - 40px, var(--max-width)); margin: 0 auto; padding: 120px 0; scroll-margin-top: 68px; }
.section-tint {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--max-width)) / 2));
  background: var(--mint);
}
.section-heading { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: start; margin-bottom: 58px; }
.section-index { color: var(--green); }
.section h2 {
  max-width: 860px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.intro-grid { margin-left: 210px; }
.intro-grid p { margin: 0; color: var(--muted); }
.intro-grid .lead { color: var(--ink); font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.45; }
.figure { margin: 70px 0 0; }
.figure img { width: 100%; background: var(--surface); box-shadow: var(--shadow); }
.figure figcaption { margin-top: 16px; color: var(--muted); font-size: 0.88rem; }
.feature-figure img { padding: 20px; }

.task-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(23,33,29,0.18); border: 1px solid rgba(23,33,29,0.18); }
.task-grid article { min-height: 285px; padding: 28px 24px; background: var(--mint); }
.task-grid article:hover { background: #edf6f0; }
.task-grid span { display: inline-block; margin-bottom: 44px; color: var(--green); font-family: Georgia, serif; font-size: 1.6rem; }
.task-grid h3 { margin: 0 0 12px; line-height: 1.2; }
.task-grid p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.design-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin: 80px 0 0; padding-top: 40px; border-top: 1px solid rgba(23,33,29,0.22); }
.design-copy h3 { max-width: 520px; margin: 0; font-family: Georgia, serif; font-size: 2.15rem; font-weight: 400; line-height: 1.15; }
.design-copy p:last-child { margin: 0; color: var(--muted); }
.kicker { color: var(--green); }

.condition-flow {
  display: grid;
  grid-template-columns: 1fr 54px 1fr 54px 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.condition-flow article { padding: 34px 28px 38px; }
.condition-flow article:first-child { padding-left: 0; }
.condition-flow article:last-child { padding-right: 0; }
.condition-flow h3 { margin: 8px 0 10px; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.condition-flow p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.condition-label { color: var(--green); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.flow-plus, .flow-equals { display: grid; place-items: center; color: var(--amber); font-family: Georgia, serif; font-size: 2rem; }
.condition-combined { color: #f7f5ef; background: var(--green); }
.condition-combined .condition-label, .condition-combined p { color: #c5ded0; }
.setup-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.setup-facts div { padding: 0 28px; border-right: 1px solid var(--line); }
.setup-facts div:first-child { padding-left: 0; }
.setup-facts div:last-child { padding-right: 0; border-right: 0; }
.setup-facts strong { display: block; margin-bottom: 6px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.setup-facts span { color: var(--muted); font-size: 0.88rem; }

.result-lede { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; padding: 38px 0 52px; border-top: 1px solid rgba(23,33,29,0.22); border-bottom: 1px solid rgba(23,33,29,0.22); }
.headline-result { display: flex; gap: 22px; align-items: center; }
.headline-result strong { color: var(--green); font-family: Georgia, serif; font-size: clamp(3.8rem, 7vw, 6.3rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.055em; }
.headline-result span { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.headline-result b { color: var(--ink); }
.result-lede > p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.table-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin: 72px 0 26px; align-items: end; }
.table-intro h3 { margin: 0; font-family: Georgia, serif; font-size: 2.25rem; font-weight: 400; line-height: 1.12; }
.table-intro p:last-child { margin: 0; color: var(--muted); }
.results-table-wrap { border-top: 2px solid var(--ink); }
.results-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.results-table th, .results-table td { padding: 12px 18px; border-bottom: 1px solid rgba(23,33,29,0.16); text-align: right; }
.results-table th:first-child { text-align: left; }
.results-table thead th { padding-top: 16px; padding-bottom: 16px; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; }
.results-table tbody th { font-weight: 600; }
.results-table td { color: var(--muted); }
.results-table .best { color: var(--green-dark); background: rgba(255,255,255,0.42); font-weight: 800; }
.results-table .proprietary-group tr:first-child > * { border-top: 2px solid rgba(23,33,29,0.42); }
.results-table .top-model th { color: var(--green); }
.result-notes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid rgba(23,33,29,0.2); }
.result-notes article { padding: 24px 28px 0; border-right: 1px solid rgba(23,33,29,0.2); }
.result-notes article:first-child { padding-left: 0; }
.result-notes article:last-child { border-right: 0; }
.result-notes span { display: block; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.result-notes strong { display: block; margin-top: 7px; font-family: Georgia, serif; font-size: 1.85rem; font-weight: 400; }
.result-notes p { margin: 5px 0 0; color: var(--muted); font-size: 0.86rem; }

.finding-list { border-top: 1px solid var(--line); }
.finding-list article { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.finding-number { color: var(--amber); font-family: Georgia, serif; font-size: 2rem; }
.finding-list h3 { margin: 0 0 7px; font-size: 1.3rem; }
.finding-list p { max-width: 760px; margin: 0; color: var(--muted); }

.robustness-block { margin-top: 100px; padding-top: 1px; border-top: 1px solid var(--line); }
.robustness-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; }
.robustness-grid h4 { margin: 0 0 14px; font-size: 1rem; }
.mini-table { border-top: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.mini-table [role="row"] { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(3, 54px); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini-table [role="row"]:first-child { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.mini-table [role="row"] > :not(:first-child) { text-align: right; }
.mini-table b { color: var(--green); }

.conclusion-section {
  width: 100%;
  color: #f7f5ef;
  background:
    radial-gradient(circle at 92% 12%, rgba(212,151,69,0.24), transparent 28%),
    linear-gradient(145deg, #0d2c23, var(--green-dark));
}
.conclusion-inner { width: min(100% - 40px, var(--max-width)); margin: 0 auto; padding: 125px 0 115px; }
.conclusion-section .section-index { color: #93c6a8; }
.conclusion-section h2 { max-width: 1050px; margin: 52px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 6.7vw, 6.6rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.055em; }
.conclusion-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin: 74px 0 0 210px; padding-top: 38px; border-top: 1px solid rgba(255,255,255,0.22); }
.conclusion-copy p { margin: 0; color: #c5d8cd; }
.conclusion-principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); }
.conclusion-principles div { min-height: 190px; padding: 28px; border-right: 1px solid rgba(255,255,255,0.18); }
.conclusion-principles div:first-child { padding-left: 0; }
.conclusion-principles div:last-child { padding-right: 0; border-right: 0; }
.conclusion-principles span { color: var(--amber); font-family: Georgia, serif; font-size: 1.3rem; }
.conclusion-principles strong { display: block; margin-top: 30px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.conclusion-principles p { margin: 7px 0 0; color: #abc4b6; font-size: 0.88rem; }
.conclusion-final { max-width: 900px; margin: 74px 0 0 auto; color: #f4e4c8; font-family: Georgia, serif; font-size: clamp(1.8rem, 3.5vw, 3.35rem); line-height: 1.17; }

.section-dark {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--max-width)) / 2));
  color: #f7f5ef;
  background: var(--green-dark);
}
.section-dark .section-index { color: #93c6a8; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.18); }
.resource-grid a { display: flex; min-height: 235px; padding: 28px; flex-direction: column; text-decoration: none; background: var(--green-dark); transition: background 160ms ease; }
.resource-grid a:hover { background: #1b4d3c; }
.resource-grid span { color: #9dc9ad; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.resource-grid strong { margin-top: auto; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.resource-grid small { margin-top: 7px; color: #b8cfc2; }

.citation-section { padding-bottom: 140px; }
.citation-box { position: relative; padding: 28px; color: #e8f0eb; background: #16251f; border-radius: 12px; }
.citation-box pre { margin: 0; overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-size: 0.83rem; }
.citation-box .button { position: absolute; right: 20px; top: 20px; padding-inline: 16px; color: #e8f0eb; background: #21382e; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 4vw; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.84rem; }
.site-footer p { margin: 0; }

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

@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 20px 4vw; flex-direction: column; gap: 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; padding: 7px 12px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; }
  .hero { min-height: auto; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .metric-row div:nth-child(2) { border-right: 0; }
  .metric-row div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .intro-grid { margin-left: 0; }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .task-grid article:last-child { grid-column: 1 / -1; }
  .condition-flow { grid-template-columns: 1fr 40px 1fr; }
  .condition-flow .flow-equals { display: none; }
  .condition-flow .condition-combined { grid-column: 1 / -1; padding: 28px; }
  .result-lede { grid-template-columns: 1fr; gap: 30px; }
  .robustness-grid { grid-template-columns: 1fr; gap: 48px; }
  .conclusion-copy { margin-left: 0; }
}

@media (max-width: 640px) {
  .hero-inner { padding-top: 90px; }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5rem); }
  .authors br { display: none; }
  .section { padding-top: 84px; padding-bottom: 84px; }
  .two-column, .design-copy, .resource-grid, .table-intro { grid-template-columns: 1fr; gap: 28px; }
  .task-grid { grid-template-columns: 1fr; }
  .task-grid article, .task-grid article:last-child { grid-column: auto; min-height: 0; }
  .task-grid span { margin-bottom: 18px; }
  .finding-list article { grid-template-columns: 55px 1fr; gap: 12px; }
  .condition-flow { display: block; border: 0; }
  .condition-flow article, .condition-flow article:first-child, .condition-flow article:last-child { padding: 26px 0; border-top: 1px solid var(--line); }
  .condition-flow .condition-combined { padding: 26px; border-top: 0; }
  .flow-plus, .flow-equals { display: none; }
  .setup-facts, .result-notes { grid-template-columns: 1fr; }
  .setup-facts div, .setup-facts div:first-child, .setup-facts div:last-child, .result-notes article, .result-notes article:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .headline-result { align-items: flex-start; flex-direction: column; }
  .results-table th, .results-table td { padding: 10px 7px; font-size: 0.78rem; }
  .results-table thead th { font-size: 0.65rem; letter-spacing: 0.03em; }
  .mini-table [role="row"] { grid-template-columns: minmax(125px, 1fr) repeat(3, 42px); gap: 6px; font-size: 0.78rem; }
  .conclusion-inner { padding: 88px 0 82px; }
  .conclusion-copy, .conclusion-principles { grid-template-columns: 1fr; gap: 0; }
  .conclusion-copy { margin-top: 48px; }
  .conclusion-copy p { padding: 0 0 24px; }
  .conclusion-principles div, .conclusion-principles div:first-child, .conclusion-principles div:last-child { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
  .conclusion-principles div:last-child { border-bottom: 0; }
  .conclusion-principles strong { margin-top: 14px; }
  .citation-box { padding-top: 80px; }
  .citation-box .button { left: 20px; right: auto; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
