:root {
  --black: #0a0a08;
  --off-black: #111110;
  --surface: #1a1a17;
  --surface2: #222220;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --text: #e8e6df;
  --text-muted: #b8b5ac;
  --text-dim: #8a887f;
  --primary: #64b5f6;
  --primary-bright: #90caf9;
  --critical: #d94f3d;
  --critical-bright: #f05a46;
  --amber: #c47e2a;
  --amber-bright: #e8952f;
  --green: #3d7a52;
  --green-bright: #4e9966;
  --blue: #2e6a9e;
  --blue-bright: #3d84c0;
  --cream: #c8c2ad;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
}

/* ── TYPOGRAPHY ── */
.serif { font-family: 'Merriweather', serif; }
.mono  { font-family: 'DM Sans', sans-serif; }

h1, h2, h3 { font-family: 'Merriweather', serif; font-weight: 700; line-height: 1.2; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.container--wide { max-width: 1300px; margin: 0 auto; padding: 0 32px; }

section { padding: 96px 0; border-bottom: 1px solid var(--border); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--primary-bright); letter-spacing: .12em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; letter-spacing: .06em; transition: color .2s; padding: 8px 0; }
.nav-links a:hover { color: var(--text); text-decoration: underline; }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217,79,61,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 20% 100%, rgba(46,106,158,0.06) 0%, transparent 50%);
}

.hero-ticker {
  position: absolute; top: 80px; left: 0; right: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 10px 0; overflow: hidden;
}
.ticker-inner {
  display: flex; gap: 64px; white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-inner span {
  font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-dim);
  letter-spacing: .08em; flex-shrink: 0;
}
.ticker-inner .sep { color: var(--primary); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-content { position: relative; z-index: 2; padding: 80px 32px 80px; max-width: 1100px; margin: 0 auto; width: 100%; }

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--primary-bright); letter-spacing: .14em;
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--primary-bright);
}

.hero-headline {
  font-family: 'Merriweather', serif;
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 40px;
  color: var(--text);
}

.hero-headline em {
  font-style: italic;
  color: var(--primary-bright);
}

.hero-bottom {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0; border-top: 1px solid var(--border);
  padding-top: 40px; margin-top: 0;
}

.hero-stat { padding: 24px 32px 24px 0; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: none; padding-left: 32px; padding-right: 0; }
.hero-stat:nth-child(2) { padding-left: 32px; }

.stat-num {
  font-family: 'Merriweather', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900; line-height: 1;
  color: var(--primary-bright);
  display: block; margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.stat-source { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-dim); margin-top: 6px; letter-spacing: .04em; }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 64px; }
.section-tag {
  font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--primary-bright);
  letter-spacing: .12em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); max-width: 120px; }
.section-title { font-size: clamp(28px, 4vw, 48px); font-weight: 700; margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 600px; line-height: 1.65; }

/* ── RISK TABLE ── */
#risk { background: var(--off-black); }

.risk-grid { display: flex; flex-direction: column; gap: 0; }

.risk-row {
  display: grid;
  grid-template-columns: 200px 120px 1fr 200px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background .15s;
  cursor: default;
}
.risk-row:hover { background: var(--surface); }
.risk-row.header {
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-dim);
  letter-spacing: .1em;
  border-bottom: 1px solid var(--border-strong);
  background: transparent !important;
}

.risk-cell { padding: 18px 20px; }
.risk-cell:first-child { border-right: 1px solid var(--border); }

.country-name { font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.country-flag { font-size: 18px; }
.country-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; font-family: 'DM Sans', sans-serif; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 2px;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .06em; white-space: nowrap;
}
.badge-critical { background: rgba(217,79,61,0.15); color: var(--critical-bright); border: 1px solid rgba(217,79,61,0.3); }
.badge-severe   { background: rgba(196,126,42,0.12); color: var(--amber-bright); border: 1px solid rgba(196,126,42,0.25); }
.badge-high     { background: rgba(196,126,42,0.07); color: #b89060; border: 1px solid rgba(196,126,42,0.15); }
.badge-moderate { background: rgba(61,122,82,0.1); color: var(--green-bright); border: 1px solid rgba(61,122,82,0.2); }
.badge-low      { background: rgba(46,106,158,0.1); color: var(--blue-bright); border: 1px solid rgba(46,106,158,0.2); }

.bar-container { display: flex; align-items: center; gap: 12px; }
.bar-outer { flex: 1; height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.bar-inner { height: 100%; border-radius: 2px; }
.bar-critical    { background: var(--critical-bright); }
.bar-amber  { background: var(--amber-bright); }
.bar-yellow { background: #c4a52a; }
.bar-green  { background: var(--green-bright); }
.bar-blue   { background: var(--blue-bright); }
.bar-gray   { background: var(--text-dim); }

.bar-label { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-dim); white-space: nowrap; min-width: 80px; }

.risk-note { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── TIMELINE ── */
#timeline { background: var(--black); }

.timeline-container { position: relative; }

.timeline-axis {
  display: flex; margin-bottom: 24px; margin-left: 200px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.axis-label {
  flex: 1; font-family: 'DM Sans', sans-serif; font-size: 11px;
  color: var(--text-dim); letter-spacing: .08em; text-align: center;
}

.tl-row {
  display: flex; align-items: center; margin-bottom: 10px;
}

.tl-country {
  width: 200px; flex-shrink: 0;
  font-size: 14px; padding-right: 16px;
  display: flex; align-items: center; gap: 8px;
  color: var(--cream);
}
.tl-flag { font-size: 14px; }

.tl-track {
  flex: 1; height: 28px; position: relative;
  background: var(--surface); border-radius: 2px;
}

.tl-bar {
  position: absolute; top: 0; height: 100%; border-radius: 2px;
  display: flex; align-items: center; padding: 0 10px;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  white-space: nowrap; overflow: hidden; min-width: 4px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

.tl-year-label {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-muted);
  white-space: nowrap;
}

.tl-now { background: var(--critical); color: #fff; }
.tl-30  { background: #854f0b; color: #fac775; }
.tl-40  { background: #6b4010; color: #e8952f; }
.tl-50  { background: #2a5238; color: #4e9966; }
.tl-60  { background: #1c3d5a; color: #3d84c0; }
.tl-long{ background: var(--surface2); color: var(--text-dim); }

/* ── KEY NUMBERS ── */
#numbers { background: var(--off-black); }

.numbers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.number-card {
  background: var(--off-black); padding: 40px 32px;
  transition: background .2s;
}
.number-card:hover { background: var(--surface); }
.number-card .big-num {
  font-family: 'Merriweather', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; line-height: 1;
  margin-bottom: 12px;
}
.number-card .num-label {
  font-size: 14px; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 10px;
}
.number-card .num-source {
  font-family: 'DM Sans', sans-serif; font-size: 10px;
  color: var(--text-dim); letter-spacing: .04em;
}
.primary-num    { color: var(--primary-bright); }
.amber-num  { color: var(--amber-bright); }
.green-num  { color: var(--green-bright); }
.blue-num   { color: var(--blue-bright); }
.cream-num  { color: var(--cream); }

/* ── ACTIONS ── */
#actions { background: var(--black); }

.actions-intro { font-size: 18px; color: var(--text-muted); max-width: 700px; margin-bottom: 56px; line-height: 1.7; }

.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); }

.action-card {
  background: var(--off-black); padding: 40px;
  position: relative; overflow: hidden;
  transition: background .2s;
}
.action-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
}
.action-card:hover { background: var(--surface); }
.action-card.individual::before { background: var(--blue-bright); }
.action-card.community::before { background: var(--green-bright); }
.action-card.political::before { background: var(--amber-bright); }
.action-card.systemic::before  { background: var(--primary-bright); }

.action-category {
  font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: .12em;
  margin-bottom: 16px;
}
.action-card.individual .action-category { color: var(--blue-bright); }
.action-card.community  .action-category { color: var(--green-bright); }
.action-card.political  .action-category { color: var(--amber-bright); }
.action-card.systemic   .action-category { color: var(--primary-bright); }

.action-title { font-family: 'Merriweather', serif; font-size: 22px; font-weight: 700; margin-bottom: 20px; }

.action-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.action-list li {
  font-size: 14px; color: var(--text-muted); line-height: 1.55;
  display: flex; gap: 12px; align-items: flex-start;
}
.action-list li::before {
  content: '→'; flex-shrink: 0; color: var(--text-dim);
  font-family: 'DM Sans', sans-serif; font-size: 12px; margin-top: 2px;
}

/* ── RESOURCES ── */
#resources { background: var(--off-black); padding: 80px 0; }

.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.resource-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 28px; border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.resource-card:hover { border-color: var(--border-strong); background: var(--surface2); }
.resource-type {
  font-family: 'DM Sans', sans-serif; font-size: 10px; color: var(--text-dim);
  letter-spacing: .1em; margin-bottom: 10px;
}
.resource-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 8px; line-height: 1.35; }
.resource-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.resource-link {
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--primary-bright);
  text-decoration: none; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.resource-link:hover { color: var(--primary); }
.resource-link::after { content: '↗'; }

/* ── DATA SOURCES ── */
.sources-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border); }
.source-item {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.source-item:nth-last-child(-n+2) { border-bottom: none; }
.source-item:nth-child(odd) { border-right: 1px solid var(--border); }
.source-name { font-size: 13px; font-weight: 500; color: var(--cream); }
.source-desc { font-size: 12px; color: var(--text-dim); }
.source-year { font-family: 'DM Sans', sans-serif; font-size: 10px; color: var(--text-dim); letter-spacing: .04em; }

/* ── FOOTER ── */
footer {
  padding: 40px 32px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-note { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-dim); max-width: 600px; line-height: 1.6; }
.footer-attribution { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-muted); line-height: 1.6; }
.footer-attribution a { color: var(--primary-bright); text-decoration: none; transition: color .2s; }
.footer-attribution a:hover { color: var(--primary); text-decoration: underline; }
.footer-brand { font-family: 'Merriweather', serif; font-size: 20px; font-weight: 900; color: var(--text-dim); font-style: italic; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 48px 0; }
.divider-label {
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-dim);
  letter-spacing: .1em;
  display: flex; align-items: center; gap: 16px; margin: 48px 0 32px;
}
.divider-label::before, .divider-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── PULL QUOTE ── */
.pull-quote {
  border-left: 3px solid var(--primary-bright); padding: 20px 28px;
  margin: 40px 0; background: rgba(100,181,246,0.04);
}
.pull-quote p { font-family: 'Merriweather', serif; font-size: 20px; font-style: italic; color: var(--cream); line-height: 1.5; margin-bottom: 10px; }
.pull-quote cite { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-dim); letter-spacing: .04em; }

/* ── SCROLL ANIMATIONS ── */
/* Removed - all content loads immediately */

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 0; }
  .hero-stat:first-child { padding-left: 0; }
  .hero-stat:last-child { padding-left: 0; }
  .risk-row { grid-template-columns: 1fr; }
  .risk-row.header { display: none; }
  .numbers-grid { grid-template-columns: 1fr; }
  .actions-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .sources-grid { grid-template-columns: 1fr; }
  .source-item:nth-child(odd) { border-right: none; }
  .source-item { border-bottom: 1px solid var(--border); }
  .source-item:last-child { border-bottom: none; }
  .nav-links { display: none; }
  .tl-country { width: 120px; font-size: 12px; }
  .hero-headline { font-size: clamp(40px, 12vw, 80px); }
  footer { flex-direction: column; }
  
  /* Better mobile text sizes */
  body { font-size: 16px; }
  .hero-eyebrow { font-size: 11px; }
  .ticker-inner span { font-size: 11px; }
  .section-tag { font-size: 11px; }
  .badge { font-size: 10px; }
  .country-name { font-size: 14px; }
  .country-sub { font-size: 11px; }
  .stat-label { font-size: 12px; }
  .stat-source { font-size: 10px; }
  .risk-note { font-size: 12px; }
  .axis-label { font-size: 10px; }
  .tl-bar { font-size: 10px; }
  .tl-year-label { font-size: 10px; }
  .action-title { font-size: 18px; }
  .action-list li { font-size: 13px; }
  .resource-title { font-size: 14px; }
  .resource-desc { font-size: 12px; }
  .resource-link { font-size: 10px; }
  
  /* Touch-friendly improvements */
  .nav-links a { padding: 12px 0; }
  .action-card { padding: 32px 24px; }
  .resource-card { padding: 24px 20px; }
  .number-card { padding: 32px 24px; }
  .risk-cell { padding: 16px 12px; }
  
  /* Better mobile spacing */
  section { padding: 64px 0; }
  .container { padding: 0 24px; }
  .container--wide { padding: 0 24px; }
  nav { padding: 12px 24px; }
  footer { padding: 32px 24px; }
  
  /* Prevent horizontal scroll */
  html, body { overflow-x: hidden; }
  * { max-width: 100%; }
  
  /* Safe area insets for notched devices */
  .container { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  nav { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  footer { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
}
