/* ============================================================
   Nevada Economic Forum — Stylesheet
   Premium editorial + dashboard aesthetic
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  hanging-punctuation: first last;
}

/* --- DESIGN TOKENS --- */
:root, [data-theme="light"] {
  /* Type */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.4rem + 2vw, 3rem);
  --text-3xl: clamp(2.5rem, 1.2rem + 3.5vw, 4rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Colors — Nevada desert-inspired: warm sandstone + deep teal accent */
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5F4F0;
  --color-surface-alt: #F0EEE8;
  --color-border: #DDD9D0;
  --color-border-light: #ECEAE4;
  --color-text: #1A1A18;
  --color-text-muted: #6B6961;
  --color-text-faint: #A9A69E;
  --color-primary: #0B6E6E;
  --color-primary-hover: #095555;
  --color-primary-light: #E8F4F4;
  --color-primary-muted: rgba(11,110,110,0.08);

  /* Semantic */
  --color-up: #2E7D32;
  --color-down: #C62828;
  --color-flat: #9E9E9E;

  /* Chart palette */
  --chart-1: #0B6E6E;
  --chart-2: #B85C38;
  --chart-3: #2D5F6E;
  --chart-4: #D4A853;
  --chart-5: #8B4C6E;
  --chart-6: #6E8B4C;

  /* Radius & Shadows */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 3px rgba(26,26,24,0.04);
  --shadow-md: 0 4px 12px rgba(26,26,24,0.06);
  --shadow-lg: 0 12px 32px rgba(26,26,24,0.08);
  --shadow-card: 0 1px 3px rgba(26,26,24,0.04), 0 0 0 1px rgba(26,26,24,0.04);

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-max: 1200px;
  --content-narrow: 800px;
  --header-h: 3.5rem;
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --color-bg: #141413;
  --color-surface: #1C1C1A;
  --color-surface-2: #232320;
  --color-surface-alt: #2A2A27;
  --color-border: #3A3A36;
  --color-border-light: #2E2E2B;
  --color-text: #E0DED8;
  --color-text-muted: #9A9890;
  --color-text-faint: #5E5D58;
  --color-primary: #5EADAD;
  --color-primary-hover: #7CC5C5;
  --color-primary-light: #1A2E2E;
  --color-primary-muted: rgba(94,173,173,0.1);
  --color-up: #66BB6A;
  --color-down: #EF5350;
  --chart-1: #5EADAD;
  --chart-2: #D4845C;
  --chart-3: #6BA3B8;
  --chart-4: #E8C06A;
  --chart-5: #C07DAD;
  --chart-6: #A3C07D;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #141413;
    --color-surface: #1C1C1A;
    --color-surface-2: #232320;
    --color-surface-alt: #2A2A27;
    --color-border: #3A3A36;
    --color-border-light: #2E2E2B;
    --color-text: #E0DED8;
    --color-text-muted: #9A9890;
    --color-text-faint: #5E5D58;
    --color-primary: #5EADAD;
    --color-primary-hover: #7CC5C5;
    --color-primary-light: #1A2E2E;
    --color-primary-muted: rgba(94,173,173,0.1);
    --color-up: #66BB6A;
    --color-down: #EF5350;
    --chart-1: #5EADAD;
    --chart-2: #D4845C;
    --chart-3: #6BA3B8;
    --chart-4: #E8C06A;
    --chart-5: #C07DAD;
    --chart-6: #A3C07D;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.04);
  }
}

/* --- BODY --- */
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

::selection { background: rgba(11,110,110,0.15); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- NON-AFFILIATION DISCLAIMER --- */
.disclaimer-bar {
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-6);
  text-align: center;
}

.disclaimer-bar p {
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: var(--text-xs);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

.disclaimer-bar a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.disclaimer-bar a:hover { color: var(--color-primary); }

.footer-disclaimer {
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 68ch;
  margin: 0 auto var(--space-2);
}

.footer-disclaimer a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon { flex-shrink: 0; }

.logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.main-nav { margin-left: auto; }

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-1);
}

.nav-list a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--color-text);
  background: var(--color-primary-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}

.theme-toggle:hover { color: var(--color-text); background: var(--color-primary-muted); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  transition: background var(--transition);
  white-space: nowrap;
}

.btn-cta:hover { background: var(--color-primary-hover); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav { margin-left: auto; }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-lg);
  }

  .nav-list.open { display: flex; }

  .nav-list a {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  .btn-cta { display: none; }
}

/* --- HERO --- */
.hero {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-6);
  background: var(--color-bg);
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
}

.hero-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: var(--radius-full, 9999px);
  margin-bottom: var(--space-6);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto var(--space-4);
  line-height: 1.5;
}

.hero-credibility {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-8);
}

.hero-credibility a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover { background: var(--color-primary-hover); color: #fff; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), color var(--transition);
}

.btn-secondary:hover { border-color: var(--color-text-muted); color: var(--color-text); }

/* --- SECTIONS --- */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-6);
}

.section-alt {
  background: var(--color-surface-2);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-10);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.section-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- KPI GRID --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5);
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
  transform: translateY(-2px);
}

.kpi-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.kpi-value {
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.kpi-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.kpi-delta {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.kpi-delta.up { color: var(--color-up); }
.kpi-delta.down { color: var(--color-down); }
.kpi-delta.flat { color: var(--color-flat); }

/* --- CHART CARDS --- */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition);
}

.chart-card:hover { box-shadow: var(--shadow-sm); }

.chart-card-wide {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .chart-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.chart-card-header h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.chart-legend {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chart-controls {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.chip {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.chip:hover { border-color: var(--color-border); color: var(--color-text); }
.chip.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.chart-wrap {
  position: relative;
  height: 280px;
}

.chart-wrap-tall {
  height: 380px;
}

.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-source {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.chart-source a {
  color: var(--color-text-faint);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
}

.chart-source a:hover { color: var(--color-text-muted); }

/* --- INSIGHT BOX --- */
.insight-box {
  grid-column: 1 / -1;
  background: var(--color-primary-light);
  border: 1px solid color-mix(in srgb, var(--color-primary) 15%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.insight-box h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.insight-box p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --- MIGRATION FACTS --- */
.migration-facts {
  grid-column: 1 / -1;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.migration-facts h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.fact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.fact-list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.fact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* --- REGIONAL --- */
.region-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.region-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.region-tab:hover { border-color: var(--color-border); color: var(--color-text); }
.region-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.region-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.region-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition), transform var(--transition);
}

.region-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.region-card-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
}

.region-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2) 0;
}

.region-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.region-stat-value {
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--color-text);
}

.region-industries {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
}

.region-industries-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.region-tag {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  background: var(--color-primary-muted);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* --- INSIGHTS --- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}

.insight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-left: 3px solid var(--color-primary);
}

.insight-card-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.insight-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.insight-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- METHODOLOGY --- */
.methodology-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .methodology-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.method-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.method-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
}

.method-list {
  list-style: none;
}

.method-list li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.method-list li:last-child { border-bottom: none; }
.method-list strong { color: var(--color-text); }

.sources-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.source-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.source-item:last-child { border-bottom: none; }

.source-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
}

.source-name a {
  color: var(--color-primary);
}

.source-desc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.methodology-link {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-10) var(--space-6);
  background: var(--color-bg);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

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

.footer-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.footer-legal {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.fade-up:nth-child(2) { animation-delay: 60ms; }
.fade-up:nth-child(3) { animation-delay: 120ms; }
.fade-up:nth-child(4) { animation-delay: 180ms; }
.fade-up:nth-child(5) { animation-delay: 240ms; }
.fade-up:nth-child(6) { animation-delay: 300ms; }

/* --- RESPONSIVE --- */
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; }
  .region-cards { grid-template-columns: 1fr; }
  .chart-wrap { height: 220px; }
  .chart-wrap-tall { height: 300px; }
  .hero-title br { display: none; }

  .methodology-content { grid-template-columns: 1fr; }
}