/* ==========================================================================
   Ellarkkum AI — Main stylesheet
   Layout inspired by clean programme landing pages: blue hero, light
   partner band, bold section titles, simple cards, blue closing band.
   Mobile-first. Breakpoints: 600px (tablet), 900px (laptop), 1100px (desktop)

   1. Brand tokens        5. Hero & partner band     8. Inner pages & forms
   2. Reset & base        6. Sections & components   9. Footer
   3. Typography          7. Programme page         10. Responsive
   4. Buttons & header
   ========================================================================== */

/* 1. Brand tokens — official palette (do not change without brand approval)
   -------------------------------------------------------------------------- */
:root {
  --blue: #1d34b8;      /* primary: hero, titles, primary buttons */
  --orange: #f89f29;    /* accent: CTAs on blue, leader band, footer bar */
  --purple: #a054a1;    /* accent: section leads */
  --pink: #de3985;      /* accent: highlights */
  --slate: #485399;     /* logo arc */
  --charcoal: #221f1f;  /* logo tagline */

  /* Supporting tones derived from the primary blue */
  --blue-dark: #16288f;
  --ink: #0d1442;
  --tint: #f3f5fb;
  --line: #dfe2f3;
  --white: #ffffff;
  --text: #2b2d42;
  --muted: #55586e;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ml: "Noto Sans Malayalam", "Outfit", system-ui, sans-serif;

  --container: 1160px;
  --gutter: 1.25rem;
  --header-h: 72px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px -12px rgba(13, 20, 66, 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

[hidden] { display: none !important; }
[lang="ml"] { font-family: var(--font-ml); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { top: 0; color: var(--white); }

/* 3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 0.75rem; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1rem; }

.section-title {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-lead {
  max-width: 34em;
  margin-bottom: 1.25rem;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--purple);
}

.section-text {
  max-width: 44em;
  margin-bottom: 2rem;
  color: var(--muted);
}

/* 4. Buttons & header
   -------------------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }

.btn-accent { background: var(--orange); color: var(--ink); }
.btn-accent:hover { background: var(--white); color: var(--blue); }

.btn-ghost-light { border-color: var(--white); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--blue); }

.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid background on purpose: backdrop-filter would trap the fixed mobile menu inside the header */
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px -12px rgba(13, 20, 66, 0.4); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: auto; height: 46px; }

.header-cta { display: none; min-height: 44px; padding: 0.5rem 1rem; font-size: 0.98rem; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--tint);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile: full-screen menu */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem var(--gutter) 2rem;
  background: var(--blue);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s var(--ease); }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--orange); }

.nav-menu-cta { align-self: stretch; }

.no-js .nav-toggle { display: none; }
.no-js .header-inner { flex-wrap: wrap; }
.no-js .site-nav { position: static; opacity: 1; visibility: visible; background: none; padding: 0 0 1rem; width: 100%; }
.no-js .nav-list a { font-size: 1.05rem; color: var(--ink); }
.no-js .nav-menu-cta { display: none; }

/* 5. Hero & partner band
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem);
  color: var(--white);
  background: var(--blue);
  isolation: isolate;
}

.hero-grid { display: grid; gap: 3rem; align-items: center; }

.hero-title {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero-sub {
  margin-bottom: 1.25rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--orange);
}

.hero-text {
  max-width: 34em;
  margin-bottom: 2rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.watch-video {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding: 0.25rem 0.5rem 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  background: none;
  border: 0;
  cursor: pointer;
}
.watch-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--white);
  border-radius: 50%;
  transition: background-color 0.2s;
}
.watch-icon svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--white); }
.watch-video:hover .watch-icon { background: var(--orange); border-color: var(--orange); }
.watch-video:hover .watch-icon svg { fill: var(--ink); }

/* Hero visual: brand composition (replace with media.heroImage in config.js) */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 440px; margin-top: 4rem; }
.hero-visual .arc {
  position: absolute;
  z-index: -1;
  top: -4.5rem;
  left: 50%;
  width: 135%;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-visual .hero-image { width: 100%; border-radius: var(--radius-lg); }
.hero-visual:has(.hero-image) { margin-top: 0; }
.hero-visual:has(.hero-image) .arc { display: none; }

.meaning-card {
  position: relative;
  margin: 0;
  padding: 2rem 1.75rem 1.75rem;
  color: var(--charcoal);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.45);
}
.meaning-star { position: absolute; top: -20px; right: 24px; width: 44px; height: 44px; }
.meaning-star svg { width: 100%; height: 100%; fill: var(--pink); }
.meaning-word {
  margin-bottom: 0.25rem;
  font-family: var(--font-ml);
  font-size: clamp(2.3rem, 8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--blue);
}
.meaning-say { margin-bottom: 1.5rem; color: var(--muted); }
.meaning-say strong { color: var(--charcoal); }
.meaning-goal {
  display: grid;
  gap: 0.15rem;
  padding-top: 1.25rem;
  font-weight: 500;
  border-top: 2px dashed var(--line);
}
.meaning-num { font-size: clamp(2.3rem, 7vw, 3rem); font-weight: 800; line-height: 1; color: var(--pink); }

/* Inner page hero */
.hero-page { padding-block: clamp(3rem, 7vw, 5rem); }
.hero-page .hero-sub { margin-bottom: 0.75rem; }
.hero-page .hero-text { margin-bottom: 0; }
.hero-page-arc {
  position: absolute;
  z-index: -1;
  right: -30vw;
  bottom: -55%;
  width: 90vw;
  opacity: 0.9;
  pointer-events: none;
}
.hero-page-arc .arc { width: 100%; }

/* "Initiative by" partner band */
.initiative { padding-block: 1.75rem; background: var(--tint); border-bottom: 1px solid var(--line); }
.initiative-row { display: grid; gap: 1.5rem; }

.partner { display: flex; flex-direction: column; gap: 0.55rem; }
.partner-role { font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.partner-logo { display: flex; align-items: center; min-height: 48px; }
.partner-logo a { display: block; }
.partner-logo img { width: auto; max-width: 100%; height: 42px; object-fit: contain; }
.partner-featured .partner-logo img { height: 50px; border-radius: 4px; }
.partner-wordmark { font-size: 1.2rem; font-weight: 700; line-height: 1.15; color: var(--ink); }
.partner-wordmark small { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); }

/* 6. Sections & components
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--tint); }
.section-foot { margin-top: 2.5rem; }

/* Leader band */
.leader-band {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 7vw, 4.5rem);
  color: var(--ink);
  background: var(--orange);
}
.leader-grid { display: grid; gap: 2.5rem; align-items: end; }
.leader-copy { padding-bottom: 0; }
.leader-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--ink); }
.leader-text { max-width: 34em; font-size: 1.15rem; }
.leader-quote { margin: 0 0 1.25rem; }
.leader-quote p { font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.5; }
.leader-quote p::before { content: "“"; }
.leader-quote p::after { content: "”"; }
.leader-name { display: grid; margin: 1.5rem 0 0; }
.leader-name strong { font-size: 1.15rem; color: var(--ink); }
.leader-name span { color: var(--ink); }
.leader-video { margin-top: 1.5rem; max-width: 520px; }

.leader-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
}
.leader-photo::before {
  content: "";
  position: absolute;
  inset: 8% -14% 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.85) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
  -webkit-mask: radial-gradient(closest-side, #000 60%, transparent 100%);
          mask: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.leader-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 425;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
  background: var(--white);
}
.leader-photo.is-cutout img { aspect-ratio: auto; border-radius: 0; background: none; }

/* Impact metrics */
.metrics {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 150px;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 5px solid var(--slate);
}
.metric:nth-child(2) { border-top-color: var(--pink); }
.metric:nth-child(3) { border-top-color: var(--purple); }
.metric-value {
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.metric-label { font-size: 1.05rem; font-weight: 500; color: var(--muted); }
.metric-kicker { font-weight: 600; color: var(--white); }
.metric-target { color: var(--white); background: var(--blue); border-top-color: var(--orange); }
.metric-target .metric-value { color: var(--white); }
.metric-target .metric-label { color: rgba(255, 255, 255, 0.85); }

/* Outcome / benefit cards */
.outcome-grid {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
.outcome {
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.outcome-art {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--tint);
  overflow: hidden;
}
.outcome-art img { width: 100%; height: 100%; object-fit: cover; }
.outcome-art svg { width: 40px; height: 40px; fill: var(--slate); }
.outcome:nth-child(2) .outcome-art svg { fill: var(--pink); }
.outcome:nth-child(3) .outcome-art svg { fill: var(--orange); }
.outcome:nth-child(4) .outcome-art svg { fill: var(--purple); }
.outcome h3 { margin-bottom: 0.4rem; font-size: 1.35rem; color: var(--blue); }
.outcome p { margin: 0; color: var(--muted); }

/* Image cards (audiences, modules) */
.card-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card:has(a):hover { border-color: var(--blue); }
.card-media {
  --card-color: var(--blue);
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: var(--white);
  background: var(--card-color);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(6n + 2) .card-media { --card-color: var(--purple); }
.card:nth-child(6n + 3) .card-media { --card-color: var(--pink); }
.card:nth-child(6n + 4) .card-media { --card-color: var(--slate); }
.card:nth-child(6n + 5) .card-media { --card-color: var(--orange); color: var(--ink); }
.card:nth-child(6n + 6) .card-media { --card-color: var(--ink); }
.card-body { display: grid; gap: 0.45rem; padding: 1.4rem 1.5rem 1.6rem; }
.card-label { font-weight: 600; color: var(--purple); }
.card-body h3 { margin: 0; font-size: 1.3rem; color: var(--blue); }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body p { margin: 0; color: var(--muted); }
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--muted);
}
.card-meta svg { width: 20px; height: 20px; fill: none; stroke: var(--purple); stroke-width: 2; }

/* Updates */
.updates-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.update-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.update-card:has(a):hover { border-color: var(--blue); }
.update-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.update-media img { width: 100%; height: 100%; object-fit: cover; }
.update-body { display: grid; gap: 0.5rem; padding: 1.5rem; }
.update-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0; font-weight: 600; color: var(--purple); }
.update-meta time { font-weight: 500; color: var(--muted); }
.update-body h3 { margin: 0; font-size: 1.3rem; color: var(--blue); }
.update-body p { margin: 0; color: var(--muted); }
.update-body a { color: inherit; text-decoration: none; }
.update-body a::after { content: ""; position: absolute; inset: 0; }

.updates-empty {
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--tint);
  border-radius: var(--radius);
}
.section-tint .updates-empty { background: var(--white); }
.updates-empty h3 { margin-bottom: 0.5rem; font-size: clamp(1.35rem, 3vw, 1.75rem); color: var(--blue); }
.updates-empty p { max-width: 34em; margin: 0; color: var(--muted); }
.updates-empty-action { margin-top: 1.5rem !important; }
.updates-kinds { display: grid; margin: 0; padding: 0; list-style: none; }
.updates-kinds li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.updates-kinds li:first-child { border-top: 1px solid var(--line); }
.updates-kinds svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Testimonials */
.testimonial-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.testimonial {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  margin: 0;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.testimonial blockquote { margin: 0; font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.testimonial figcaption { display: flex; align-items: center; gap: 0.9rem; }
.testimonial-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial-name { display: block; font-weight: 700; color: var(--blue); }
.testimonial-detail { display: block; font-size: 0.95rem; color: var(--muted); }

.stories-empty {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border-radius: var(--radius);
}
.stories-empty-mark { font-size: 5rem; font-weight: 800; line-height: 0.6; color: var(--pink); }
.stories-empty h3 { margin-bottom: 0.5rem; font-size: clamp(1.35rem, 3vw, 1.75rem); color: var(--blue); }
.stories-empty p { max-width: 34em; color: var(--muted); }

/* Video */
.video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius); }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  background: var(--ink) center / cover no-repeat;
  border: 0;
  cursor: pointer;
}
.play-badge { display: grid; place-items: center; width: 76px; height: 76px; background: var(--white); border-radius: 50%; }
.play-badge svg { width: 30px; height: 30px; margin-left: 4px; fill: var(--blue); }

.video-dialog {
  width: min(960px, calc(100vw - 2rem));
  padding: 0;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
}
.video-dialog::backdrop { background: rgba(13, 20, 66, 0.85); }
.video-dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.video-dialog-close svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.video-dialog .video-frame { border-radius: 0; }

/* Final CTA */
.final-cta { padding-block: clamp(3.5rem, 8vw, 5.5rem); color: var(--white); background: var(--blue); }
.final-inner { display: grid; gap: 2rem; align-items: end; }
.final-title { margin-bottom: 0.75rem; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.1; color: var(--white); }
.final-text { max-width: 34em; margin: 0; font-size: 1.2rem; color: rgba(255, 255, 255, 0.92); }

/* 7. Programme page
   -------------------------------------------------------------------------- */
.modules-empty {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border-radius: var(--radius);
}
.modules-empty h3 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); color: var(--blue); }
.modules-empty p { max-width: 34em; margin: 0; color: var(--muted); }

.faq-list { display: grid; gap: 0.75rem; max-width: 820px; margin-top: 1.5rem; }
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq summary {
  position: relative;
  display: block;
  padding: 1.15rem 3.5rem 1.15rem 1.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.4rem;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--purple);
  border-bottom: 2.5px solid var(--purple);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-answer { padding: 0 1.4rem 1.25rem; color: var(--muted); }
.faq-answer p { margin: 0; }

/* 8. Inner pages & forms
   -------------------------------------------------------------------------- */
.partners-board { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.partner-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
}
.partner-card .partner-logo { min-height: 64px; }
.partner-card .partner-logo img { height: 46px; }
.partner-card h3 { margin: 0; font-size: 1.3rem; color: var(--blue); }
.partner-card p { margin: 0; color: var(--muted); }
.partner-card .partner-local { font-family: var(--font-ml); font-weight: 600; color: var(--ink); }
.partner-card-featured .partner-logo img { height: auto; width: 100%; max-width: 420px; border-radius: 6px; }

.contact-grid { display: grid; gap: 3rem; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.5rem; }
.contact-aside .contact-list li, .contact-aside .contact-list a { color: var(--ink); }
.contact-aside .contact-note { color: var(--muted); }
.contact-aside-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--tint);
  border-left: 5px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.contact-aside-note p { margin-bottom: 0.6rem; color: var(--muted); }
.contact-aside-note a { font-weight: 600; }

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--tint);
  border-radius: var(--radius);
}
.form-field label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--ink); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 52, 184, 0.15);
}
.form-field [aria-invalid="true"] { border-color: #b4235f; }
.field-error { min-height: 1.25rem; margin: 0.3rem 0 0; font-size: 0.9rem; color: #b4235f; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-success { color: var(--blue); }
.form-status.is-error { color: #b4235f; }
.contact-form .btn { justify-self: start; }

/* 9. Footer
   -------------------------------------------------------------------------- */
.site-footer { color: var(--text); background: var(--white); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 7vw, 4.5rem); }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { width: auto; height: 70px; }
.footer-brand p { max-width: 30em; color: var(--muted); }
.footer-title { margin-bottom: 1rem; font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; color: var(--blue); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.contact-list .contact-note { color: var(--muted); }

.social-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem !important; }
.social-list a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}
.social-list a:hover { color: var(--white); background: var(--blue); }
.social-list svg { width: 20px; height: 20px; fill: currentColor; }

.footer-partner-list { display: grid; gap: 1rem; }
.footer-partner { display: grid; gap: 0.3rem; }
.footer-partner .partner-role { font-size: 0.85rem; }
.footer-partner .partner-logo { min-height: 0; }
.footer-partner .partner-logo img { height: 32px; }
.footer-partner .partner-wordmark { font-size: 1rem; }

.footer-bar { color: var(--ink); background: var(--orange); }
.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
  font-size: 0.95rem;
}
.footer-bar p { margin: 0; }

/* 10. Responsive
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media (max-width: 379px) {
  :root { --gutter: 1rem; }
  .brand img { height: 40px; }
}

@media (min-width: 380px) {
  .header-cta { display: inline-flex; }
}

/* Tablet ≥ 600px */
@media (min-width: 600px) {
  :root { --gutter: 2rem; --header-h: 80px; }
  .brand img { height: 52px; }
  .header-cta { padding: 0.55rem 1.25rem; font-size: 1rem; }

  .initiative-row { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .outcome-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .updates-grid { grid-template-columns: 1fr 1fr; }
  .updates-grid:has(> .updates-empty) { grid-template-columns: 1fr; }
  .updates-empty { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 3rem; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .stories-empty { grid-template-columns: auto 1fr; align-items: start; column-gap: 2rem; }
  .partners-board { grid-template-columns: 1fr 1fr; }
  .partner-card-featured { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .leader-grid { grid-template-columns: 1.2fr 0.8fr; }
  .leader-copy { padding-bottom: clamp(3rem, 7vw, 4.5rem); }
  .leader-photo { justify-self: end; }
}

/* Laptop ≥ 900px */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
  .hero-visual { justify-self: end; margin-top: 3rem; }
  .hero-page-arc { right: -6vw; width: 46vw; bottom: -45%; }

  .metrics { grid-template-columns: repeat(4, 1fr); }
  .outcome-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .updates-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
  .final-inner { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-partners { grid-column: auto; }
}

/* Desktop ≥ 1100px: inline navigation */
@media (min-width: 1100px) {
  :root { --header-h: 88px; }
  .brand img { height: 58px; }

  .nav-toggle,
  .nav-menu-cta { display: none; }

  .site-nav,
  .no-js .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    width: auto;
  }
  .nav-list { display: flex; gap: 0.25rem; }
  .nav-list a,
  .no-js .nav-list a {
    padding: 0.5rem 0.85rem;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--blue);
    border: 0;
    border-radius: 6px;
  }
  .nav-list a:hover { color: var(--blue-dark); background: var(--tint); }
  .nav-list a[aria-current="page"] { color: var(--blue); background: var(--tint); font-weight: 600; }

  .header-cta { margin-left: 1.25rem; min-height: 46px; padding: 0.6rem 1.4rem; }
}
