:root {
  --ink: #111820;
  --ink-soft: #1d2a33;
  --paper: #f5f1e8;
  --paper-deep: #e9e2d5;
  --white: #fffdf8;
  --teal: #62d2c3;
  --coral: #ff765f;
  --gold: #e8ba63;
  --line: rgba(17, 24, 32, 0.16);
  --line-light: rgba(255, 253, 248, 0.2);
  --max: 1220px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  position: relative;
  z-index: 5;
}

.wordmark { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-decoration: none; }
.wordmark span { color: var(--teal); padding: 0 6px; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: rgba(255, 253, 248, 0.78); font-size: 0.84rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--teal); }

.hero {
  background-image: url("assets/evidence/ue_scene_01.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
  min-height: 78vh;
  position: relative;
}
.hero-shade { background: rgba(10, 18, 24, 0.65); inset: 0; position: absolute; }
.hero-inner { margin: 0 auto; max-width: var(--max); padding: clamp(100px, 15vh, 170px) 28px 70px; position: relative; }
.eyebrow { color: var(--teal); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; margin: 0 0 16px; text-transform: uppercase; }
.eyebrow-dark { color: #168b83; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.8rem, 7vw, 6.8rem); letter-spacing: 0; line-height: 0.98; margin-bottom: 28px; max-width: 920px; }
.hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.35rem); max-width: 670px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 66px; }
.button { border: 1px solid transparent; display: inline-flex; font-size: 0.9rem; font-weight: 800; padding: 12px 17px; text-decoration: none; }
.button-primary { background: var(--coral); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: var(--gold); }
.button-quiet { border-color: rgba(255, 253, 248, 0.5); color: var(--white); }
.button-quiet:hover, .button-quiet:focus-visible { border-color: var(--teal); color: var(--teal); }
.hero-stats { border-top: 1px solid var(--line-light); display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); margin: 0; max-width: 900px; padding-top: 22px; }
.hero-stats div { display: grid; gap: 4px; }
.hero-stats dt { color: var(--gold); font-size: 1.8rem; font-weight: 800; }
.hero-stats dd { color: rgba(255, 253, 248, 0.75); font-size: 0.78rem; margin: 0; }

.section { padding: clamp(70px, 9vw, 132px) clamp(20px, 5vw, 72px); }
.section > * { margin-left: auto; margin-right: auto; max-width: var(--max); }
.section-light { background: var(--paper); }
.section-dark { background: var(--ink-soft); color: var(--white); }
.section-ink { background: #0d1115; color: var(--white); }
.section-heading { margin-bottom: 44px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.03; max-width: 700px; }
.split-heading { align-items: end; display: flex; gap: 28px; justify-content: space-between; }
.section-note { color: rgba(255, 253, 248, 0.68); margin: 0; max-width: 360px; }
.intro-copy { display: grid; gap: 24px; grid-template-columns: 1.1fr 0.9fr; }
.intro-copy p { font-size: clamp(1.12rem, 2vw, 1.55rem); max-width: 730px; }
.intro-copy .muted { color: #58636a; font-size: 1rem; }

.metric-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); margin-bottom: 54px; }
.metric { border: 1px solid var(--line-light); min-height: 160px; padding: 22px; }
.metric strong { color: var(--gold); display: block; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1; margin-bottom: 20px; }
.metric span, .metric small { display: block; }
.metric span { font-weight: 800; }
.metric small { color: rgba(255, 253, 248, 0.62); margin-top: 5px; }
.chart-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
figure { margin: 0; }
figure img { background: var(--white); width: 100%; }
figcaption { color: #59636a; font-size: 0.82rem; padding-top: 10px; }
.section-dark figcaption { color: rgba(255, 253, 248, 0.65); }

.text-link { color: #0e7975; font-size: 0.9rem; font-weight: 800; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { color: var(--coral); }
.replay-frame { background: #0c1116; border: 1px solid var(--line); height: min(72vw, 690px); overflow: hidden; }
.replay-frame iframe { border: 0; height: 100%; width: 100%; }
.caption { color: #59636a; font-size: 0.84rem; margin-top: 14px; }
.film-section video { background: #091016; border: 1px solid var(--line-light); margin: 0 auto; width: 100%; }
.film-section video:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

.evidence-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.evidence-grid figure { background: var(--white); padding-bottom: 12px; }
.evidence-grid figcaption { padding-left: 14px; }
.implementation-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); }
.implementation-grid article { border-top: 2px solid var(--ink); padding: 22px 20px 0 0; }
.implementation-grid h3 { font-size: 1.45rem; line-height: 1.1; }
.implementation-grid p { color: #58636a; min-height: 96px; }
.label { color: #168b83; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.label-accent { color: #9a5b45; }
.label-warm { color: #a1761c; }
.closing-section { display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr auto; }
.closing-section h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; margin: 0; }
.closing-section p { color: rgba(255, 253, 248, 0.72); margin: 0; max-width: 450px; }
.site-footer { background: #0d1115; border-top: 1px solid rgba(255, 253, 248, 0.16); color: rgba(255, 253, 248, 0.56); display: flex; font-size: 0.78rem; justify-content: space-between; padding: 22px clamp(20px, 5vw, 72px); }

@media (max-width: 800px) {
  .site-header { align-items: flex-start; gap: 18px; }
  .site-header nav { flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; }
  .hero-inner { padding-top: 86px; }
  .hero-stats, .metric-grid, .chart-grid, .intro-copy, .implementation-grid, .closing-section { grid-template-columns: 1fr 1fr; }
  .chart-grid figure:last-child { grid-column: 1 / -1; max-width: 66%; }
  .closing-section { display: grid; }
  .closing-section .button { justify-self: start; }
}

@media (max-width: 560px) {
  .site-header { display: block; }
  .site-header nav { justify-content: flex-start; margin-top: 14px; }
  h1 { font-size: 3rem; }
  .hero-stats, .metric-grid, .chart-grid, .intro-copy, .evidence-grid, .implementation-grid, .closing-section { grid-template-columns: 1fr; }
  .chart-grid figure:last-child { grid-column: auto; max-width: none; }
  .split-heading { align-items: flex-start; display: block; }
  .section-note, .split-heading .text-link { display: block; margin-top: 18px; }
  .site-footer { display: block; }
  .site-footer span { display: block; margin-top: 5px; }
}

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