/* ─── Custom Properties ─────────────────────────────────────────────────── */
:root {
  --bg-primary:      #0A0A0A;
  --bg-surface:      #111111;
  --bg-surface-alt:  #1A1A1A;
  --bg-elevated:     #222222;
  --accent:          #9B1B1B;
  --accent-hover:    #C0392B;
  --text-primary:    #F0EDE8;
  --text-secondary:  #A09A94;
  --text-muted:      #5C5654;
  --chart-red:       #C0392B;
  --chart-cream:     #E8D5B0;
  --chart-green:     #6B8F71;
  --border:          #2A2A2A;
  --footer-bg:       #080808;
}

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

/* ─── Base ──────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

/* ─── Headings ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-surface);
}

/* ─── Selection ─────────────────────────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: #ffffff;
}

/* ─── Transitions ───────────────────────────────────────────────────────── */
* {
  transition: all 0.2s ease;
}

/* ─── Nav ───────────────────────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

#main-nav.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.85);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

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

.nav-links a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* ─── Hamburger toggle ──────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile nav panel ──────────────────────────────────────────────────── */
.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 998;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: transform, opacity;
}

.nav-mobile-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile-links {
  list-style: none;
  padding: 16px 32px 24px;
}

.nav-mobile-links li {
  border-bottom: 1px solid var(--border);
}

.nav-mobile-links li:last-child {
  border-bottom: none;
}

.nav-mobile-links a {
  display: block;
  padding: 16px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-mobile-links a:hover,
.nav-mobile-links a.active {
  color: var(--text-primary);
}

@media (max-width: 767px) {
  #main-nav {
    padding: 0 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-panel {
    display: block;
  }
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-mountain {
  position: absolute;
  inset: 0;
  background:
    /* Mountain ridge — lighter charcoal band suggesting a silhouette */
    linear-gradient(
      to bottom,
      transparent 54%,
      #252535 57%,
      #1e1e2e 60%,
      transparent 65%
    ),
    /* Base sky gradient */
    linear-gradient(
      to bottom,
      #1a1a2e 0%,
      #16162a 40%,
      #141420 60%,
      #0e0e16 100%
    );
  /* Clip the ridge to a rough mountain silhouette */
  --ridge: polygon(
    0% 100%,
    0% 62%,
    6% 60%,
    12% 55%,
    18% 52%,
    22% 49%,
    26% 46%,   /* left peak — Greater Ararat */
    30% 49%,
    34% 52%,
    38% 54%,
    42% 56%,
    46% 57%,
    50% 56%,
    54% 54%,
    57% 52%,   /* right peak — Lesser Ararat */
    60% 54%,
    64% 57%,
    70% 59%,
    78% 61%,
    85% 63%,
    100% 65%,
    100% 100%
  );
}

/* Separate element for the mountain silhouette clip */
.hero-mountain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 44%,
    #1f1f30 47%,
    #1a1a28 52%,
    #121218 65%,
    transparent 80%
  );
  clip-path: var(--ridge);
}

.hero-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(
    to top,
    rgba(180, 100, 30, 0.08) 0%,
    rgba(160, 80, 20, 0.04) 50%,
    transparent 100%
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
}

/* Site name — top-left */
.hero-site-name {
  position: absolute;
  top: 24px;
  left: 48px;
  z-index: 2;
  font-family: 'DM Sans', sans-serif;
  font-variant: small-caps;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  /* offset for fixed nav */
  top: calc(60px + 24px);
}

/* Center content */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--text-primary);
  max-width: 800px;
  line-height: 1.15;
}

/* Stat line */
.hero-stats {
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--chart-cream);
  letter-spacing: 1px;
  white-space: nowrap;
  /* cursor blink via border-right on ::after */
  border-right: 2px solid var(--accent);
  animation: cursor-blink 1s step-end infinite;
}

@media (max-width: 600px) {
  .hero-stats {
    font-size: 0.8rem;
    white-space: normal;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.8;
  }
}

.hero-stats.typing-done {
  animation: cursor-blink 1s step-end infinite;
}

/* Pipe separators rendered via JS get this color */
.hero-stats .pipe {
  color: var(--text-muted);
}

@keyframes cursor-blink {
  0%, 100% { border-color: var(--accent); }
  50%       { border-color: transparent; }
}

/* Subtitle */
.hero-subtitle {
  margin-top: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  text-align: center;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-chevron {
  color: var(--text-muted);
  animation: bounce-down 2s ease-in-out infinite;
  will-change: transform;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ─── Overview: KPI Strip ───────────────────────────────────────────────── */
#overview {
  background: var(--bg-primary);
}

.kpi-strip {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 64px 48px;
}

.kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

/* Vertical divider between items */
.kpi-item + .kpi-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background: var(--border);
}

.kpi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -1px;
}

.kpi-label {
  margin-top: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive — 2-column grid */
@media (max-width: 768px) {
  .kpi-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 0;
    padding: 48px 32px;
    justify-items: center;
  }

  .kpi-item + .kpi-item::before {
    display: none;
  }

  /* Re-add vertical dividers only between column pairs */
  .kpi-item:nth-child(even)::before {
    display: block;
    height: 40px;
  }
}

/* Single column on small mobile */
@media (max-width: 420px) {
  .kpi-strip {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .kpi-item:nth-child(even)::before {
    display: none;
  }
}

/* ─── Shared section layout ─────────────────────────────────────────────── */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 48px;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.section-subtitle {
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ─── Section reveal animation ──────────────────────────────────────────── */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── GDP Section ───────────────────────────────────────────────────────── */
#gdp {
  background: var(--bg-primary);
}

.gdp-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.gdp-chart-panel {
  flex: 0 0 60%;
  min-width: 0;
}

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  min-height: 280px;
}

.gdp-stats-panel {
  flex: 0 0 calc(40% - 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stat cards */
.stat-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  cursor: default;
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

.stat-card:hover {
  box-shadow: 0 0 20px rgba(155, 27, 27, 0.1);
}

.stat-card-inner {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stat-accent-bar {
  width: 3px;
  height: 32px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
}

/* GDP responsive */
@media (max-width: 768px) {
  .section-inner {
    padding: 64px 24px;
  }

  .gdp-layout {
    flex-direction: column;
  }

  .gdp-chart-panel {
    flex: none;
    width: 100%;
  }

  .gdp-stats-panel {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .section-inner {
    padding: 48px 16px;
  }

  .gdp-stats-panel {
    grid-template-columns: 1fr;
  }
}

/* ─── Indicators Section ────────────────────────────────────────────────── */
#indicators {
  background: var(--bg-primary);
}

.indicators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.indicator-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: default;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

.indicator-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(155, 27, 27, 0.08);
}

.indicator-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.indicator-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.indicator-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}

.indicator-unit {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.indicator-trend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.indicator-trend .arrow {
  font-size: 0.7rem;
  line-height: 1;
}

.trend-up   { color: #6B8F71; }
.trend-down { color: #C0392B; }

/* "down" on Unemployment/Inflation is actually positive — handled via data */
.trend-positive { color: #6B8F71; }
.trend-negative { color: #C0392B; }

.indicator-sparkline-wrap {
  margin-top: auto;
  height: 80px;
  position: relative;
}

.indicator-sparkline-wrap canvas {
  width: 100% !important;
  height: 80px !important;
}

/* Indicators responsive */
@media (max-width: 900px) {
  .indicators-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ─── Regions Section ───────────────────────────────────────────────────── */
#regions {
  background: #0F0D0C;
  position: relative;
}

.regions-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.regions-inner {
  /* centre section header text */
}

.regions-inner .section-header {
  text-align: center;
}

/* Three metric charts grid */
.regions-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.regions-mini-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.regions-metric-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.regions-mini-card canvas {
  width: 100% !important;
}

@media (max-width: 768px) {
  .regions-charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Country cards */
.country-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.country-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

.country-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.country-top-bar {
  height: 4px;
  width: 100%;
}

.country-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.country-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.country-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.country-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.country-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.country-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
}

/* Regions responsive */
@media (max-width: 768px) {
  .country-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .country-stat-value {
    font-size: 0.9rem;
  }
}

/* ─── Correlations Section ──────────────────────────────────────────────── */
#correlations {
  background: var(--bg-primary);
}

.correlation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  min-height: 380px;
}

.correlation-chart-wrap {
  width: 100%;
  margin-bottom: 32px;
}

.correlation-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.correlation-r {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.correlation-r-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.correlation-r-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}

.correlation-title-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: right;
  max-width: 320px;
}

.correlation-insight {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.8;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 600px) {
  .correlation-card {
    padding: 24px 20px;
  }

  .correlation-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .correlation-title-label {
    text-align: left;
    max-width: 100%;
  }

  .correlation-r-value {
    font-size: 1.8rem;
  }
}

/* ─── Health Score Section ──────────────────────────────────────────────── */
#health-score {
  background: linear-gradient(160deg, #0A0A0A 0%, #120A0A 100%);
}

.health-inner {
  max-width: 800px;
}

.health-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Ring */
.health-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.health-ring {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  /* conic-gradient ring: filled arc for score, track for remainder */
  background: conic-gradient(
    #6B8F71 0deg,
    #6B8F71 calc(68 / 100 * 360deg),
    var(--bg-elevated) calc(68 / 100 * 360deg),
    var(--bg-elevated) 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner cutout to make it a ring */
.health-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #120A0A;
}

/* Subtle glow behind the ring */
.health-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 143, 113, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.health-ring-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.health-score-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.health-score-denom {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.health-ring-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Bars card */
.health-bars-card {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.health-bar-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.health-bar-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.health-bar-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-primary);
}

.health-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.health-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;                  /* starts at 0, animated by JS */
  transition: width 1s ease-out;
  will-change: width;
}

@media (max-width: 600px) {
  .health-bars-card {
    padding: 28px 20px;
  }

  .health-score-number {
    font-size: 3.2rem;
  }
}

/* ─── Forecast Section ──────────────────────────────────────────────────── */
#forecast {
  background: var(--bg-primary);
}

.forecast-chart-wrap {
  margin-bottom: 32px;
}

/* Scenario cards */
.forecast-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.forecast-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

.forecast-card--base {
  background: var(--bg-surface-alt);
}

.forecast-card--optimistic {
  background: #0A120A;
  border-color: rgba(107, 143, 113, 0.25);
}

.forecast-card--pessimistic {
  background: #120A0A;
  border-color: rgba(155, 27, 27, 0.3);
}

.forecast-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.forecast-scenario-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Colour dot next to label */
.forecast-scenario-indicator {
  width: 28px;
  height: 2px;
  border-radius: 1px;
  display: inline-block;
}

.forecast-indicator--base        { background: #E8D5B0; border-top: 2px dashed #E8D5B0; height: 0; }
.forecast-indicator--optimistic   { background: #6B8F71; border-top: 2px dashed #6B8F71; height: 0; }
.forecast-indicator--pessimistic  { background: #9B1B1B; border-top: 2px dashed #9B1B1B; height: 0; }

.forecast-gdp-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
}

.forecast-growth-rate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.forecast-assumption {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .forecast-scenarios {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
#site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 64px 48px;
}

/* Left */
.footer-col--left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-org {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
}

.footer-source {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Center */
.footer-col--center {
  display: flex;
  justify-content: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

/* Right — khachkar watermark */
.footer-col--right {
  display: flex;
  justify-content: flex-end;
}

.footer-khachkar {
  display: block;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  text-align: center;
}

.footer-bottom span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px;
    text-align: center;
  }

  .footer-col--left {
    align-items: center;
  }

  .footer-col--right {
    justify-content: center;
  }

  .footer-bottom {
    padding: 24px;
  }
}

/* ─── Card entrance animations ──────────────────────────────────────────── */
@keyframes card-appear {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Indicator cards — 13 items, 0.06s stagger */
.section-reveal.visible .indicator-card { animation: card-appear 0.5s ease both; }
.section-reveal.visible .indicator-card:nth-child(1)  { animation-delay: 0.00s; }
.section-reveal.visible .indicator-card:nth-child(2)  { animation-delay: 0.06s; }
.section-reveal.visible .indicator-card:nth-child(3)  { animation-delay: 0.12s; }
.section-reveal.visible .indicator-card:nth-child(4)  { animation-delay: 0.18s; }
.section-reveal.visible .indicator-card:nth-child(5)  { animation-delay: 0.24s; }
.section-reveal.visible .indicator-card:nth-child(6)  { animation-delay: 0.30s; }
.section-reveal.visible .indicator-card:nth-child(7)  { animation-delay: 0.36s; }
.section-reveal.visible .indicator-card:nth-child(8)  { animation-delay: 0.42s; }
.section-reveal.visible .indicator-card:nth-child(9)  { animation-delay: 0.48s; }
.section-reveal.visible .indicator-card:nth-child(10) { animation-delay: 0.54s; }
.section-reveal.visible .indicator-card:nth-child(11) { animation-delay: 0.60s; }
.section-reveal.visible .indicator-card:nth-child(12) { animation-delay: 0.66s; }
.section-reveal.visible .indicator-card:nth-child(13) { animation-delay: 0.72s; }

/* Stat cards — GDP section, 0.1s stagger */
.section-reveal.visible .stat-card { animation: card-appear 0.5s ease both; }
.section-reveal.visible .stat-card:nth-child(1) { animation-delay: 0.10s; }
.section-reveal.visible .stat-card:nth-child(2) { animation-delay: 0.20s; }
.section-reveal.visible .stat-card:nth-child(3) { animation-delay: 0.30s; }
.section-reveal.visible .stat-card:nth-child(4) { animation-delay: 0.40s; }

/* Country cards — regions section */
.section-reveal.visible .country-card { animation: card-appear 0.5s ease both; }
.section-reveal.visible .country-card:nth-child(1) { animation-delay: 0.10s; }
.section-reveal.visible .country-card:nth-child(2) { animation-delay: 0.22s; }
.section-reveal.visible .country-card:nth-child(3) { animation-delay: 0.34s; }

/* Forecast scenario cards */
.section-reveal.visible .forecast-card { animation: card-appear 0.5s ease both; }
.section-reveal.visible .forecast-card:nth-child(1) { animation-delay: 0.10s; }
.section-reveal.visible .forecast-card:nth-child(2) { animation-delay: 0.22s; }
.section-reveal.visible .forecast-card:nth-child(3) { animation-delay: 0.34s; }
