:root {
  /* Surfaces */
  --surface-primary: #ffffff;
  --surface-secondary: #f4f6f8;
  --surface-background: #e9ecef;
  --surface-wash: #f7f9fc;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --surface-hero: #f2f7fb;
  --surface-brand-secondary: #06aea6;
  --surface-brand-contrast: #26476c;
  --surface-logo: #0f2f52;
  --surface-icon: rgba(46, 115, 189, 0.12);
  --surface-icon-strong: rgba(6, 174, 166, 0.18);
  --surface-accent: rgba(244, 179, 94, 0.18);

  /* Text */
  --text-primary: #1b1d1f;
  --text-secondary: #37393d;
  --text-contrast: #899097;
  --text-invert: #ffffff;
  --text-brand-contrast: #0f2f52;
  --text-brand-secondary: #2e73bd;
  --text-positive: #198754;
  --text-negative: #cc0000;
  --text-button-label-primary: #ffffff;
  --text-button-label-secondary: #2e73bd;

  /* Buttons */
  --button-primary-bg: #2e73bd;
  --button-secondary-bg: #ffffff;
  --button-disabled-bg: #e9ecef;

  /* Borders */
  --border-primary: #2769b1;
  --border-secondary: #e9ecef;
  --border-invert: #ffffff;
  --border-positive: #d1e7dd;
  --border-negative: #f5cccc;
  --border-negative-active: #cc0000;
  --border-subtle: rgba(27, 29, 31, 0.04);

  /* Shadows */
  --shadow-soft: 0 30px 70px rgba(15, 47, 82, 0.14);
  --shadow-card: 0 18px 40px rgba(15, 47, 82, 0.08);
  --shadow-float: 0 12px 26px rgba(15, 47, 82, 0.12);

  /* Icons */
  --icon-primary: #2e73bd;
  --icon-secondary: #ffffff;
  --icon-brand: #a7e1de;
  --icon-disabled: #899097;
  --icon-positive: #198754;
  --icon-negative: #cc0000;

  /* States */
  --state-primary-hover: rgba(27, 29, 31, 0.01);
  --state-primary-active: rgba(27, 29, 31, 0.04);
  --state-secondary-hover: rgba(214, 221, 228, 0.08);
  --state-secondary-active: rgba(214, 221, 228, 0.16);
  --state-focus: #2e73bd;

  /* Typography */
  --font-title: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;
  --weight-regular: 400;
  --weight-semi-bold: 600;
  --weight-bold: 700;

  /* Layout */
  --max-width: 1100px;
  --radius-card: 12px;
  --radius-button: 10px;
  --section-padding: 64px;
  --section-padding-mobile: 40px;
  --header-compact-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  padding-top: var(--header-compact-height);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    radial-gradient(1200px 620px at -10% -20%, rgba(6, 174, 166, 0.22) 0%, transparent 60%),
    radial-gradient(880px 520px at 110% -10%, rgba(46, 115, 189, 0.2) 0%, transparent 55%),
    var(--surface-background);
}

a {
  color: var(--text-brand-secondary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--state-focus);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: -48px;
  background: var(--surface-primary);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-secondary);
  z-index: 200;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(46, 115, 189, 0.08);
  box-shadow: 0 12px 24px rgba(15, 47, 82, 0.06);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 16px;
  transition: padding 0.25s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  color: var(--text-brand-contrast);
  font-family: var(--font-title);
  font-weight: var(--weight-bold);
  font-size: 20px;
}

.logo img {
  width: auto;
  height: 72px;
  max-width: 100%;
  display: block;
  image-rendering: auto;
  transition: height 0.25s ease;
}

.site-header.is-compact .header-inner {
  padding: 10px 0;
}

.site-header.is-compact .logo img {
  width: auto;
  height: 56px;
}

.site-header.is-compact .primary-nav {
  gap: 18px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-nav a {
  font-weight: var(--weight-semi-bold);
  color: var(--text-secondary);
}

.primary-nav a.button--primary {
  color: var(--text-button-label-primary);
}

.primary-nav a[aria-current="page"] {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.primary-nav a.button--primary[aria-current="page"] {
  color: var(--text-button-label-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.header-donate {
  margin-right: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  padding: 12px 18px;
  font-weight: var(--weight-semi-bold);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  text-decoration: none;
}

.button--primary {
  background: linear-gradient(135deg, #2e73bd, #1c5fa5);
  color: var(--text-button-label-primary);
  border: 1px solid rgba(46, 115, 189, 0.35);
  box-shadow: 0 12px 24px rgba(46, 115, 189, 0.25);
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(46, 115, 189, 0.3);
}

.button--secondary {
  background: var(--button-secondary-bg);
  color: var(--text-button-label-secondary);
  border-color: rgba(46, 115, 189, 0.3);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(46, 115, 189, 0.06);
}

main {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-wash) 100%);
  scroll-margin-top: var(--header-compact-height);
}

section {
  padding: var(--section-padding) 0;
  background: var(--surface-primary);
  position: relative;
  scroll-margin-top: var(--header-compact-height);
}

.section--alt {
  background: linear-gradient(180deg, #f4f7fa 0%, #eef3f7 100%);
  overflow: hidden;
}

.section--band {
  background:
    linear-gradient(120deg, rgba(46, 115, 189, 0.14), rgba(6, 174, 166, 0.18)),
    var(--surface-secondary);
  border-top: 1px solid rgba(46, 115, 189, 0.08);
  border-bottom: 1px solid rgba(46, 115, 189, 0.08);
}

.eyebrow {
  font-size: 14px;
  color: var(--text-contrast);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--weight-semi-bold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--surface-brand-secondary), var(--button-primary-bg));
}

h1,
h2 {
  font-family: var(--font-title);
  color: var(--text-brand-contrast);
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 {
  font-size: 44px;
  line-height: 50px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 28px;
  line-height: 36px;
  font-weight: var(--weight-bold);
}

h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--surface-brand-secondary), var(--button-primary-bg));
  opacity: 0.7;
}

h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: var(--weight-semi-bold);
  color: var(--text-primary);
  margin: 0 0 12px;
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.small {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-contrast);
}

.footnote {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-contrast);
}

.no-ligatures {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0;
}

.section-note {
  margin-top: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #f7fbff 0%, #f1f6fb 45%, #ffffff 100%);
  padding-top: calc(var(--section-padding) + 64px);
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero--home .container {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -240px;
  right: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(6, 174, 166, 0.32) 0%, transparent 65%);
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle at 35% 35%, rgba(46, 115, 189, 0.28) 0%, transparent 65%);
}

.hero-panel {
  background: var(--surface-glass);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 1px solid rgba(46, 115, 189, 0.12);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.hero-visual {
  margin: 0;
}

.hero-visual-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid rgba(46, 115, 189, 0.12);
  box-shadow: var(--shadow-card);
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.hero-panel li {
  font-weight: var(--weight-semi-bold);
  color: var(--text-primary);
  position: relative;
  padding-left: 20px;
}

.hero-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-brand-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

.hero .flow > p:not(.footnote) {
  font-size: 18px;
}

.hero .flow > p.footnote {
  font-size: 14px;
  line-height: 16px;
}

.flow > * + * {
  margin-top: 16px;
}

#mission-statement {
  padding-top: 36px;
  padding-bottom: 36px;
}

#mission-statement p {
  margin: 0;
  max-width: 980px;
}

#mission-statement .eyebrow + p {
  font-size: 18px;
}

#mission-statement .small {
  margin-top: 12px;
  max-width: 980px;
}

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

.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#why-foundation .card-grid {
  margin-top: 24px;
}

#why-foundation h2 + p {
  font-size: 18px;
  color: var(--text-secondary);
}

.card {
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border: 1px solid rgba(46, 115, 189, 0.08);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon {
  width: 24px;
  height: 24px;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 115, 189, 0.14), rgba(6, 174, 166, 0.24));
  border: 1px solid rgba(46, 115, 189, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-primary);
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(46, 115, 189, 0.18);
}

.icon-badge--small {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(46, 115, 189, 0.12);
  border: 1px solid rgba(46, 115, 189, 0.16);
  color: var(--text-brand-contrast);
}

.icon-badge--small .icon {
  width: 18px;
  height: 18px;
}

.card-icon {
  margin-bottom: 16px;
}

.card p {
  margin: 0;
}

.card .list-clean {
  margin-top: 16px;
}

.program-icon {
  font-weight: var(--weight-bold);
  font-size: 16px;
}

.card--pillar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #ffffff 0%, #f3f8fc 100%);
  border: 1px solid rgba(46, 115, 189, 0.18);
}

.card--pillar::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -118px;
  right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(46, 115, 189, 0.18), rgba(6, 174, 166, 0.12) 56%, transparent 72%);
  pointer-events: none;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.list-clean li {
  padding-left: 20px;
  position: relative;
}

.list-clean li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-brand-secondary);
  position: absolute;
  left: 0;
  top: 9px;
}

.list-clean.icon-list li {
  padding-left: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.list-clean.icon-list li::before {
  content: none;
}

.list-clean.icon-list .icon-badge {
  margin-top: 2px;
}

.section-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.cta-panel {
  border-radius: var(--radius-card);
  border: 1px solid rgba(46, 115, 189, 0.18);
  background: rgba(255, 255, 255, 0.92);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.cta-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -90px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(244, 179, 94, 0.35), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

#infrastructure-gap.section--alt {
  background: linear-gradient(180deg, #eef4fa 0%, #e7eff7 100%);
}

.gap-lead {
  margin: 0 0 12px;
  color: var(--text-brand-contrast);
  font-size: 22px;
  line-height: 1.35;
  font-weight: var(--weight-semi-bold);
}

.gap-visualization {
  margin-top: 28px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 16px;
}

.gap-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.gap-metric {
  --gap-accent: 46, 115, 189;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(var(--gap-accent), 0.18);
  background: rgba(var(--gap-accent), 0.05);
  box-shadow: 0 12px 22px rgba(15, 47, 82, 0.08);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gap-metric::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -140px;
  top: -160px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(var(--gap-accent), 0.32),
    transparent 70%
  );
  opacity: 0.9;
  pointer-events: none;
}

.gap-metric--impact {
  --gap-accent: 244, 179, 94;
}

.gap-metric--help {
  --gap-accent: 6, 174, 166;
}

.gap-metric > * {
  position: relative;
  z-index: 1;
}

.gap-metric__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gap-metric__icon.icon-badge--small {
  background: rgba(var(--gap-accent), 0.2);
  border-color: rgba(var(--gap-accent), 0.28);
  color: var(--text-brand-contrast);
}

.gap-metric__label {
  margin: 0;
  color: var(--text-contrast);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--weight-semi-bold);
}

.gap-metric__value {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 38px;
  line-height: 1.05;
  font-weight: var(--weight-bold);
  color: var(--text-brand-contrast);
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.gap-metric__value-sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  font-weight: var(--weight-semi-bold);
  color: var(--text-secondary);
  letter-spacing: 0;
}

.gap-metric__takeaway {
  margin: 0 0 14px;
  color: var(--text-primary);
  font-weight: var(--weight-semi-bold);
  line-height: 1.35;
  text-wrap: pretty;
}

.gap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gap-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gap-accent), 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.1;
  font-weight: var(--weight-semi-bold);
}

.gap-chip strong {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
}

.gap-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}

.gap-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text-secondary);
  font-weight: var(--weight-semi-bold);
}

.gap-legend strong {
  color: var(--text-primary);
}

.gap-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.gap-dot--reached {
  background: #1f6eac;
}

.gap-dot--unreached {
  background: #b7c5d4;
}

.gap-bar {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 99fr;
  border: 1px solid rgba(46, 115, 189, 0.26);
  background: #d5e0ec;
}

.gap-bar__reached,
.gap-bar__unreached {
  display: inline-flex;
  align-items: center;
  font-weight: var(--weight-bold);
}

.gap-bar__reached {
  justify-content: flex-start;
  padding-left: 10px;
  background: #1f6eac;
  color: #ffffff;
  min-width: 56px;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
}

.gap-bar__unreached {
  justify-content: flex-end;
  padding-right: 14px;
  background: linear-gradient(90deg, #d0dbe8 0%, #d9e3ef 100%);
  color: #1b1d1f;
}

.gap-source {
  margin-top: 18px;
  display: block;
}

.gap-source-label {
  color: var(--text-contrast);
  font-weight: var(--weight-semi-bold);
  margin-right: 10px;
}

.gap-source-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.gap-source-links {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.gap-source-item + .gap-source-item {
  margin-left: 10px;
}

.gap-source-item + .gap-source-item::before {
  content: "•";
  color: rgba(46, 115, 189, 0.65);
  margin: 0 10px 0 0;
}

.gap-source-item strong {
  color: var(--text-primary);
  font-weight: var(--weight-semi-bold);
}

.gap-actions {
  margin-top: 20px;
}

.footer ul.badge-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer ul.badge-list li {
  font-size: 13px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(46, 115, 189, 0.2);
  background: rgba(46, 115, 189, 0.08);
  color: var(--text-brand-contrast);
}

.footer {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6f9 100%);
  border-top: 1px solid rgba(46, 115, 189, 0.08);
  padding: 40px 0;
}

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

.footer h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-semi-bold);
  margin-bottom: 12px;
}

.footer a {
  color: var(--text-brand-secondary);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer .small {
  margin: 0;
}

.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(46, 115, 189, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}

.section--alt > .container {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
  }

  .gap-metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(15, 47, 82, 0.12);
    border-color: rgba(var(--gap-accent), 0.32);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: transform, opacity;
  }

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

  .hero .flow > * {
    animation: fade-up 0.6s ease both;
  }

  .hero .flow > *:nth-child(1) {
    animation-delay: 0.05s;
  }

  .hero .flow > *:nth-child(2) {
    animation-delay: 0.12s;
  }

  .hero .flow > *:nth-child(3) {
    animation-delay: 0.2s;
  }

  .hero .flow > *:nth-child(4) {
    animation-delay: 0.28s;
  }

  .hero .flow > *:nth-child(5) {
    animation-delay: 0.36s;
  }

  .hero-panel {
    animation: float-in 0.7s ease 0.25s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero .container,
  .section-columns {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
    line-height: 42px;
  }

  .gap-lead {
    font-size: 20px;
  }

  .gap-legend-row {
    gap: 14px;
  }

  .gap-metrics {
    grid-template-columns: 1fr;
  }

  .gap-bar {
    min-height: 48px;
  }
}

@media (max-width: 860px) {
  .primary-nav {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    display: flex;
    width: auto;
    z-index: auto;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 720px) {
  section {
    padding: var(--section-padding-mobile) 0;
  }

  .hero {
    padding-top: calc(var(--section-padding-mobile) + 40px);
  }

  .gap-source {
    display: block;
  }

  .gap-source-label {
    margin-right: 0;
  }

  .gap-source-item {
    display: flex;
    flex-wrap: wrap;
  }

  .gap-source-item + .gap-source-item {
    margin-left: 0;
  }

  .gap-source-item + .gap-source-item::before {
    content: none;
  }

  .gap-source a {
    overflow-wrap: anywhere;
  }

  .header-inner {
    padding: 16px 0;
  }

  .logo img {
    width: auto;
    height: 72px;
  }

  .site-header.is-compact .header-inner {
    padding: 10px 0;
  }

  .site-header.is-compact .logo img {
    width: auto;
    height: 56px;
  }
}
