/* =========================================================================
   Every Child Reads Initiative NPC
   Design system + styles. Mobile-first.

   Palette (per brand spec): navy #1F4E79 / green #2E7D32 / gold #E9B949
   Type: Fraunces (display + numerals), Public Sans (body/UI)
   Signature motif: foundation-phase handwriting guideline
     (solid top line, dashed midline, solid baseline)
   ========================================================================= */

/* ---------- Fonts (self-hostable later; loaded from Google Fonts) -------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..800;1,9..144,400..600&family=Public+Sans:ital,wght@0,400..800;1,400..600&display=swap');

/* ---------- Tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #1F4E79;
  --navy-900: #163a5a;
  --navy-700: #21567f;
  --green: #2E7D32;
  --green-700: #256628;
  --gold: #E9B949;
  --ink: #1a1a1a;
  --paper: #F7F9F6;

  /* Derived neutrals */
  --white: #ffffff;
  --cloud: #eef2ee;      /* soft card wash */
  --line: #dfe6df;       /* hairline */
  --line-strong: #c6d1c6;
  --muted: #566056;      /* secondary text */
  --muted-2: #6d766d;

  /* Tints for washes */
  --navy-wash: #eaf0f6;
  --green-wash: #e9f2ea;
  --gold-wash: #fbf3dd;

  /* Type */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Scale (fluid) */
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.22vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.11rem + 0.42vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.33rem + 0.85vw, 2.1rem);
  --step-3:  clamp(1.95rem, 1.65rem + 1.5vw, 3rem);
  --step-4:  clamp(2.5rem, 1.95rem + 2.75vw, 4.4rem);
  --step-5:  clamp(3rem, 2.1rem + 4.5vw, 6rem);

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.15rem, 0.7rem + 2.2vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(22, 40, 30, 0.06), 0 2px 6px rgba(22, 40, 30, 0.05);
  --shadow-md: 0 6px 18px rgba(22, 40, 30, 0.08), 0 2px 6px rgba(22, 40, 30, 0.05);
  --shadow-lg: 0 22px 55px rgba(20, 45, 70, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers --------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
:where(section[id], [id]) { scroll-margin-top: 88px; }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before {
  content: ""; width: 1.6em; height: 2px;
  background: var(--gold);
}
.eyebrow--navy { color: var(--navy); }

.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 0.7rem; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); line-height: 1.45; }
.lead { font-size: var(--step-1); line-height: 1.5; color: #33403a; }

/* Signature: handwriting guideline motif.
   A solid top rule, a dashed midline, a solid baseline. */
.guideline {
  --gl-h: 34px;
  position: relative; height: var(--gl-h); width: 100%;
  border-top: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--navy);
}
.guideline::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 2px dashed var(--gold);
  transform: translateY(-1px);
}
/* Underline variant used on headings/links */
.penned {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.14em;
  padding-bottom: 0.04em;
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.5em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  font-weight: 700; font-size: var(--step-0);
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .18s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn--navy { --btn-bg: var(--navy); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy);
  border-color: var(--line-strong); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #3a2c05; }
.btn--block { width: 100%; }
.btn--lg { padding: 1em 1.8em; font-size: var(--step-1); }

.textlink {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; color: var(--navy);
  border-bottom: 2px solid transparent;
  transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.textlink:hover { border-color: var(--gold); gap: 0.65em; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand .logo { width: 44px; height: 44px; flex: none; object-fit: contain; }
.brand-text { line-height: 1.05; }
.brand-text b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--navy); display: block; }
.brand-text span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

.nav-links { display: none; align-items: center; gap: 0.35rem; }
.nav-links a {
  padding: 0.5rem 0.8rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; color: #2b352e;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-links a:hover { background: var(--green-wash); color: var(--green-700); }
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 0.6rem var(--gutter) 1.2rem;
}
.site-header:has(.nav[data-open="true"]) .mobile-menu { display: block; }
.mobile-menu a {
  display: block; padding: 0.8rem 0.4rem; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 1rem; }

@media (min-width: 940px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--navy-wash) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, var(--green-wash) 0%, transparent 60%),
    var(--paper);
}
.hero-grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
.hero h1 {
  font-size: var(--step-5);
  letter-spacing: -0.02em;
  margin-top: 1.1rem;
}
.hero h1 .lead-word { color: var(--navy); }
.hero h1 .lead-word2 { color: var(--green); }
.hero-sub { margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.5; color: #33403a; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.trust-bar {
  margin-top: 2.2rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--muted);
}
.trust-bar b { color: var(--navy); font-weight: 700; }
.trust-bar li { display: flex; align-items: center; gap: 0.5rem; }
.trust-bar li:not(:first-child)::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

/* Hero visual: stack of phonics flashcards on the guideline */
.hero-visual { position: relative; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.cardstack {
  position: relative; aspect-ratio: 5 / 4.4; max-width: 520px; margin-inline: auto;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  transition: transform .3s var(--ease);
}
.flashcard {
  position: absolute; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: grid; place-content: center; text-align: center;
  padding: 1.2rem;
}
.flashcard .grapheme { font-family: var(--display); font-weight: 600; line-height: 1; }
.flashcard .word { font-family: var(--body); font-weight: 700; letter-spacing: 0.02em; color: var(--muted); margin-top: 0.5rem; font-size: 0.8rem; text-transform: uppercase; }
.fc-1 { inset: 8% 30% 30% 4%; transform: rotate(-6deg) translateZ(55px); z-index: 3; }
.fc-1 .grapheme { font-size: clamp(3rem, 8vw, 5.2rem); color: var(--navy); }
.fc-2 { inset: 26% 6% 8% 34%; transform: rotate(5deg) translateZ(28px); z-index: 2; }
.fc-2 .grapheme { font-size: clamp(3rem, 8vw, 5.2rem); color: var(--green); }
.fc-3 { inset: 2% 8% 46% 44%; transform: rotate(-2deg) translateZ(10px); z-index: 1; background: var(--gold-wash); }
.fc-3 .grapheme { font-size: clamp(2.4rem, 6vw, 4rem); color: #7a5c05; }
.hero-chip {
  position: absolute; z-index: 5; left: -2%; bottom: 4%;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 0.85rem 1.1rem; box-shadow: var(--shadow-lg); max-width: 210px;
  transform: translateZ(80px);
}

/* Photographic hero card (replaces flashcards when a real photo is used) */
.hero-photo-card {
  position: relative; aspect-ratio: 4 / 5; max-width: 460px;
  margin: 0 auto; transform-style: preserve-3d;
}
.hero-photo-card > img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}
/* small floating phonics accent for the signature nod */
.hero-accent {
  position: absolute; z-index: 4; top: -4%; right: -3%;
  width: 88px; height: 88px; background: var(--gold-wash);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-content: center; box-shadow: var(--shadow-md);
  transform: rotate(6deg) translateZ(60px);
}
.hero-accent .grapheme { font-family: var(--display); font-weight: 600; font-size: 2.6rem; color: var(--green); line-height: 1; }
.hero-accent .word { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* ---------- Materials: languages + method --------------------------------- */
.materials { background: var(--white); }
.materials-cols { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 820px) { .materials-cols { grid-template-columns: 1fr 1fr; } }
.mat-box { border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.1rem); }
.mat-box h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.mat-box p { color: var(--muted); }
.mat-box--lang { background: var(--green-wash); }
.mat-box--lang h3 { color: var(--green-700); }
.mat-box--method { background: var(--navy-wash); }
.mat-box--method h3 { color: var(--navy); }

/* Section photographs */
.section-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.section-figure img { width: 100%; display: block; object-fit: cover; }
.section-figure figcaption { font-size: var(--step--1); color: var(--muted); padding: 0.8rem 1.1rem; background: #fff; }
.hero-chip .n { display: block; font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--gold); line-height: 1; }
.hero-chip .t { display: block; font-size: 0.78rem; line-height: 1.35; margin-top: 0.35rem; color: #dbe6f2; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- Stat blocks ------------------------------------------------- */
.crisis { background: var(--white); }
.stat-cols {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-block: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.stat-cell { background: var(--white); padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); }
.stat-cell .figure { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 1.8rem + 3.5vw, 4rem); color: var(--navy); line-height: 0.95; }
.stat-cell:nth-child(2) .figure { color: var(--green); }
.stat-cell:nth-child(3) .figure { color: #b58a12; }
.stat-cell .figure-label { margin-top: 0.7rem; color: var(--muted); font-size: var(--step-0); max-width: 26ch; }
@media (min-width: 720px) { .stat-cols { grid-template-columns: repeat(3, 1fr); } }

.crisis-close {
  font-family: var(--display); font-weight: 600;
  font-size: var(--step-2); line-height: 1.2; color: var(--green-700);
  max-width: 30ch;
}

/* Impact cards */
.impact { background: var(--navy); color: #eaf1f8; position: relative; overflow: hidden; }
.impact .eyebrow { color: var(--gold); }
.impact .eyebrow::before { background: var(--gold); }
.impact h2 { color: #fff; }
.impact .section-head p { color: #bcd0e6; }
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.impact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: clamp(1.2rem, 0.9rem + 1.5vw, 2rem);
}
.impact-card .n { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); color: var(--gold); line-height: 1; }
.impact-card .l { margin-top: 0.5rem; color: #cddcec; font-weight: 600; }
.impact-note { margin-top: 2.2rem; color: #bcd0e6; max-width: 62ch; font-size: var(--step-0); }
@media (min-width: 820px) { .impact-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Solution ---------------------------------------------------- */
.two-layer { display: grid; gap: 1.2rem; margin-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.layer {
  position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  padding-left: clamp(1.4rem, 1rem + 2vw, 2.2rem);
}
.layer .layer-tag {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  color: var(--green-700); margin-bottom: 0.6rem;
}
.layer .layer-tag .num {
  display: grid; place-content: center; width: 2rem; height: 2rem; flex: none;
  border-radius: 50%; background: var(--green-wash); color: var(--green-700);
  font-size: 0.95rem;
}
.layer:nth-child(2) .layer-tag { color: var(--navy); }
.layer:nth-child(2) .layer-tag .num { background: var(--navy-wash); color: var(--navy); }
.layer h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.layer p { color: var(--muted); }
@media (min-width: 820px) { .two-layer { grid-template-columns: 1fr 1fr; } }

.deliver-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.deliver-item { background: var(--white); padding: 1.3rem 1.4rem; display: flex; gap: 0.9rem; align-items: flex-start; }
.deliver-item .ic { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--green-wash); display: grid; place-content: center; color: var(--green-700); }
.deliver-item p { font-weight: 600; }
@media (min-width: 640px) { .deliver-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .deliver-grid { grid-template-columns: repeat(3, 1fr); } }

.langs {
  margin-top: 2rem; background: var(--green-wash);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2rem);
}
.langs h3 { font-size: var(--step-1); margin-bottom: 0.6rem; color: var(--green-700); }
.lang-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.lang-chips span { background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4rem 0.95rem; font-weight: 600; font-size: var(--step--1); }

/* ---------- Founder ----------------------------------------------------- */
.founder-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: start; }
.founder-media { position: relative; }
.founder-portrait {
  border-radius: var(--radius-lg); overflow: hidden; margin: 0;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4; background: var(--cloud);
}
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recognition { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.recognition li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); }
.recognition li .tick { flex: none; color: var(--green); margin-top: 2px; }
.pullquote {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: var(--step-2); line-height: 1.28; color: var(--navy);
  border-left: 3px solid var(--gold); padding-left: 1.2rem; margin-block: 1.6rem;
}
.pullquote cite { display: block; font-style: normal; font-family: var(--body); font-size: var(--step--1); font-weight: 700; color: var(--muted); margin-top: 0.8rem; }
@media (min-width: 860px) { .founder-grid { grid-template-columns: 0.8fr 1.2fr; } }

/* ---------- How we work (two entities) ---------------------------------- */
.how { background: var(--white); }
.entities { display: grid; gap: 1.2rem; margin-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.entity {
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  border: 1px solid var(--line);
}
.entity--npc { background: var(--green-wash); border-color: #cfe3d0; }
.entity--pty { background: var(--navy-wash); border-color: #cddfef; }
.entity .kicker { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.entity--npc .kicker { color: var(--green-700); }
.entity--pty .kicker { color: var(--navy); }
.entity h3 { font-size: var(--step-1); margin: 0.35rem 0 1rem; }
.entity ul { display: grid; gap: 0.6rem; }
.entity li { display: flex; gap: 0.6rem; align-items: flex-start; }
.entity li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.6em; border-radius: 2px; }
.entity--npc li::before { background: var(--green); }
.entity--pty li::before { background: var(--navy); }
.entity .reg { margin-top: 1rem; font-family: var(--body); font-weight: 700; font-size: var(--step--1); color: var(--muted); }
@media (min-width: 820px) { .entities { grid-template-columns: 1fr 1fr; } }

.why-cols { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.why-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 1rem + 1.5vw, 1.9rem); box-shadow: var(--shadow-sm); }
.why-col .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-wash); color: #8a6608; display: grid; place-content: center; margin-bottom: 0.9rem; }
.why-col h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.why-col p { color: var(--muted); font-size: var(--step-0); }
@media (min-width: 820px) { .why-cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Endorsements ------------------------------------------------ */
.endorse { background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.qcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 2vw, 2rem); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.qcard .mark { font-family: var(--display); font-size: 3rem; line-height: 0.5; color: var(--gold); height: 1.2rem; }
.qcard blockquote { font-size: var(--step-0); line-height: 1.55; color: #2b352e; }
.qcard .attrib { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--step--1); }
.qcard .attrib b { color: var(--navy); display: block; }
.qcard .attrib span { color: var(--muted); }
@media (min-width: 760px) { .quote-grid { grid-template-columns: 1fr 1fr; } }

.media-row { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.video-embed {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000; box-shadow: var(--shadow-sm);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.video-cap { margin-top: 0.6rem; font-weight: 600; font-size: var(--step--1); color: var(--muted); }
.media-note { margin-top: 1.6rem; color: var(--muted); max-width: 60ch; }
@media (min-width: 760px) { .media-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Packages ---------------------------------------------------- */
/* Sits directly under the hero, so it inherits the paper background: the
   white package cards read more clearly on paper than on white, and it
   keeps a clean band change into the white crisis section below. */
.fund { background: transparent; }
.pkg-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.pkg {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pkg:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pkg--feature { border-color: var(--green); box-shadow: var(--shadow-md); }
.pkg--feature::before {
  content: "Most funded"; display: inline-block; align-self: flex-start;
  background: var(--green); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem;
  border-radius: 999px; margin-bottom: 0.9rem;
}
.pkg .pkg-name { font-size: var(--step-1); }
.pkg .price { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: var(--navy); margin: 0.4rem 0 0.2rem; line-height: 1; }
.pkg .price span { font-family: var(--body); font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.pkg .covers { color: var(--muted); font-size: var(--step-0); margin: 0.9rem 0; flex: 0 0 auto; }
.pkg .impact-line {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.3rem;
}
.pkg .impact-line span {
  background: var(--green-wash); color: var(--green-700); font-weight: 700;
  font-size: var(--step--1); border-radius: 999px; padding: 0.35rem 0.8rem;
}
.pkg .btn { margin-top: auto; }
@media (min-width: 900px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

.fund-disclaimer { text-align: center; color: var(--muted); font-size: var(--step--1); margin-bottom: 2rem; }
.csi-bar {
  display: flex; flex-direction: column; gap: 1.2rem;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  align-items: flex-start;
}
.csi-bar h3 { color: #fff; font-size: var(--step-2); max-width: 22ch; }
.csi-bar p { color: #c6d7ea; }
.csi-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
@media (min-width: 820px) {
  .csi-bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .csi-bar .csi-text { max-width: 48%; }
}

/* ---------- Downloads --------------------------------------------------- */
.dl-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.dl-tile {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
a.dl-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.dl-tile .ic { flex: none; width: 46px; height: 46px; border-radius: 11px; background: var(--navy-wash); color: var(--navy); display: grid; place-content: center; }
.dl-tile h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.dl-tile p { font-size: var(--step--1); color: var(--muted); }
.dl-tile .pending { display: inline-block; margin-top: 0.5rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #8a6608; background: var(--gold-wash); padding: 0.2rem 0.55rem; border-radius: 999px; }
@media (min-width: 680px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dl-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Single download card ---------------------------------------- */
.download-card {
  display: flex; flex-direction: column; gap: 1.4rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  box-shadow: var(--shadow-sm); align-items: flex-start;
}
.download-card .dc-icon {
  flex: none; width: 60px; height: 60px; border-radius: 14px;
  background: var(--navy-wash); color: var(--navy);
  display: grid; place-content: center;
}
.download-card h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.download-card p { color: var(--muted); max-width: 52ch; }
.download-card .dc-meta {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted-2);
}
.download-card .dc-meta::before {
  content: "PDF"; background: var(--gold-wash); color: #8a6608;
  padding: 0.2rem 0.55rem; border-radius: 6px; font-size: 0.68rem;
}
@media (min-width: 680px) {
  .download-card { flex-direction: row; align-items: center; justify-content: space-between; }
  .download-card .dc-body { flex: 1; }
  .download-card .btn { flex: none; }
}

/* ---------- Contact ----------------------------------------------------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 1rem + 3vw, 3rem); }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.contact-card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.contact-card a { color: var(--navy); font-weight: 600; border-bottom: 2px solid transparent; }
.contact-card a:hover { border-color: var(--gold); }
.contact-card .row { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.7rem; }
.contact-card .best { font-size: var(--step--1); color: var(--muted); }
.office { background: var(--green-wash); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.office address { font-style: normal; line-height: 1.6; }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field .req { color: var(--green-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 10px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-wash);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-status { font-size: var(--step-0); font-weight: 600; padding: 0.9rem 1rem; border-radius: 10px; display: none; }
.form-status.is-ok { display: block; background: var(--green-wash); color: var(--green-700); border: 1px solid #cfe3d0; }
.form-status.is-err { display: block; background: #fdecec; color: #a1322b; border: 1px solid #f2c9c6; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ---------- Page hero (utility pages) ---------------------------------- */
.page-hero {
  background:
    radial-gradient(100% 120% at 100% 0%, var(--navy-wash) 0%, transparent 55%),
    var(--paper);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero p { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); max-width: 54ch; }
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.9rem; }
.breadcrumb a { color: var(--navy); font-weight: 600; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: var(--navy-900); color: #c6d4e2; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.footer-grid h4 { font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 700; }
.footer-grid p { font-size: var(--step--1); line-height: 1.6; }
.footer-grid a { color: #d5e0ec; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: grid; gap: 0.55rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
/* The mark is navy + green, so it needs a light chip to read on the navy footer. */
.footer-brand .logo {
  width: 44px; height: 44px; flex: none; object-fit: contain;
  background: #fff; padding: 5px; border-radius: 10px;
}
.footer-brand b { font-family: var(--display); color: #fff; font-size: 1rem; }
.reg-list { display: grid; gap: 0.45rem; font-size: var(--step--1); }
.reg-list span { color: #9fb4c9; }
.reg-list b { color: #fff; font-weight: 700; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.4rem; font-size: var(--step--1); color: #9fb4c9;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: space-between;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; } }

/* ---------- Section band rhythm -----------------------------------------
   Sections are separated by alternating background bands rather than a
   drawn rule, so each block reads as its own surface with no hard line. */
.fund       { background: var(--white); }
.crisis     { background: transparent; }
#solution   { background: var(--white); }
.materials  { background: transparent; }
/* .impact stays navy */
#founder    { background: var(--white); }
.how        { background: transparent; }
.endorse    { background: var(--white); }
#downloads  { background: transparent; }

/* ---------- Reveal animation ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero entrance sequence -------------------------------------
   Above the fold, so visibility must NEVER depend on an animation running:
   opacity stays 1, the entrance only slides content up. Worst case (motion
   disabled / compositor paused) the hero simply renders in place. */
.hero-anim { opacity: 1; }
body.is-loaded .hero-anim { animation: heroRise .8s var(--ease) var(--d, 0s) backwards; }
@keyframes heroRise { from { transform: translateY(22px); } to { transform: none; } }
/* hero visual rises a touch later, then the bob loop takes over */
body.is-loaded .hero-visual { animation: heroRise .9s var(--ease) .35s backwards, bob 7s ease-in-out 1.3s infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-anim, .hero-visual { opacity: 1 !important; transform: none !important; transition: none; animation: none !important; }
  .cardstack { transform: none !important; }
  .btn, .pkg, .dl-tile { transition: none; }
  .btn:hover, .pkg:hover, .dl-tile:hover { transform: none; }
}
