/* =====================================================================
   Haiti Child Thrive Foundation — Site Stylesheet v5
   --------------------------------------------------------------------
   Editorial palette · WCAG AA contrast · Mobile-first responsive
   ===================================================================== */

/* -------- CSS Custom Properties -------- */
:root {
  /* Brand — locked from handoff v4 */
  --navy:        #0d1b2a;
  --navy-soft:   #1a2d44;
  --gold:        #c9973a;
  --gold-deep:   #a87d2b;     /* WCAG AA on cream */
  --cream:       #faf6ef;
  --cream-warm:  #f5ead0;
  --paper:       #f0e5c0;
  --ink:         #1a1a1a;
  --ink-soft:    #3a3a3a;
  --ink-mute:    #5a5a5a;
  --rule:        #e1d3a9;
  --rule-soft:   #ece3cb;

  /* Editorial accents */
  --forest:      #1f4332;
  --forest-dark: #0f2a1f;
  --terra:       #c44a2f;
  --terra-dark:  #8f2e18;
  --teal:        #2c6e7e;

  /* Typography */
  --serif: 'Georgia', 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:  'SF Mono', 'Menlo', 'Consolas', monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --max-w:      1200px;
  --max-w-narrow: 760px;
  --header-h:   72px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-base: 360ms;
  --t-slow: 720ms;
}

/* -------- 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(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast); }
a:hover { color: var(--gold-deep); }

/* Skip link — accessibility */
.skip {
  position: absolute; top: -100px; left: 0;
  background: var(--navy); color: var(--cream);
  padding: 12px 20px; z-index: 1000;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 0; }

/* Visible keyboard focus — WCAG */
*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* -------- Typography -------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw + 0.6rem, 3rem); }
h3 { font-size: clamp(1.4rem, 1.6vw + 0.8rem, 1.85rem); }
h4 { font-size: 1.25rem; line-height: 1.3; }
h5 { font-size: 1rem; }

em, .italic { font-style: italic; }
strong { font-weight: 600; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 0.3vw + 1rem, 1.25rem); line-height: 1.6; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1rem;
}
.eyebrow::before { content: "— "; opacity: 0.7; }

.serif { font-family: var(--serif); }
.center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.82rem; }

/* Numerals / display digits */
.display-number {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* -------- Layout primitives -------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark .lead { color: rgba(250, 246, 239, 0.85); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark a { color: var(--gold); }
.section-warm { background: var(--cream-warm); }
.section-paper { background: var(--paper); }

.rule { height: 1px; background: var(--rule); border: 0; margin: var(--space-7) 0; }
.rule-gold { height: 2px; background: var(--gold); border: 0; width: 64px; margin: 1.2rem 0 1.6rem; }
.rule-gold.center { margin-left: auto; margin-right: auto; }

/* -------- Header / Nav -------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy);
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.1;
}
.brand-mark {
  width: 38px; height: 38px;
  display: block;
  flex: none;
}
.footer-mark {
  width: 44px; height: 44px;
  display: block;
  margin-bottom: var(--space-3);
}
.brand-name { font-weight: 400; }
.brand-name b { font-weight: 700; }
.brand small { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-top: 2px; }

nav.primary { display: flex; align-items: center; gap: var(--space-5); }
nav.primary ul { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--space-5); }
nav.primary a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
}
nav.primary a:hover { color: var(--navy); border-bottom-color: var(--gold); }
nav.primary a.active { color: var(--navy); border-bottom-color: var(--gold); }

.nav-donate {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--cream) !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  border: 0 !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-donate:hover { background: var(--gold-deep); color: var(--cream) !important; transform: translateY(-1px); border: 0 !important; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); }
.menu-toggle svg { width: 26px; height: 26px; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all var(--t-base) var(--ease);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy); color: var(--cream);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--cream); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(13,27,42,0.4); }
.btn-gold {
  background: var(--gold-deep); color: var(--cream);
  border-color: var(--gold-deep);
}
.btn-gold:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(13,27,42,0.4); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-on-dark {
  background: var(--cream); color: var(--navy);
  border-color: var(--cream);
}
.btn-on-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-on-dark-ghost {
  background: transparent; color: var(--cream);
  border-color: rgba(250, 246, 239, 0.5);
}
.btn-on-dark-ghost:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* -------- Sticky Donate Bar (mobile) -------- */
.sticky-donate {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--navy); color: var(--cream);
  padding: 10px 16px;
  display: none;
  align-items: center; justify-content: space-between;
  gap: 12px;
  z-index: 90;
  box-shadow: 0 -8px 24px -8px rgba(0,0,0,0.25);
  border-top: 2px solid var(--gold);
}
.sticky-donate .label { font-family: var(--serif); font-size: 0.92rem; line-height: 1.2; }
.sticky-donate .label b { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; font-family: var(--sans); margin-bottom: 2px; }
.sticky-donate .btn {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
  padding: 10px 18px;
  font-size: 0.92rem;
}
.sticky-donate .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }

/* -------- HERO -------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(ellipse at top right, rgba(201,151,58,0.10), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw + 1rem, 4.8rem);
  letter-spacing: -0.018em;
  margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--gold-deep); font-style: italic; }
.hero .tagline {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin: 0 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}
.hero .tagline span { color: var(--ink-mute); }
.hero .lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 52ch;
}
.hero-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px -32px rgba(13,27,42,0.4);
  aspect-ratio: 4 / 3;
}
.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--navy);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: 6px;
  border: 2px solid var(--gold);
  max-width: calc(100% - 40px);
}
.hero-badge .display-number {
  font-size: 2.2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}
.hero-badge small {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  display: block;
  opacity: 0.92;
}

/* Page hero (sub-pages) */
.page-hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  border-bottom: 1px solid var(--rule-soft);
}
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 60ch; }

/* -------- Ticker / marquee -------- */
.ticker {
  background: var(--navy);
  color: var(--cream);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid rgba(201,151,58,0.4);
  border-bottom: 1px solid rgba(201,151,58,0.4);
}
.ticker-track {
  display: flex; gap: 56px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
}
.ticker-track span::before {
  content: "✦"; margin-right: 16px; color: var(--cream); opacity: 0.5;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* -------- Quote block -------- */
.pull-quote {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
}
/* Text-lead variant: used when markup order is text-then-image.
   Defined here (not inline) so the 980px breakpoint below can still collapse it. */
.pull-quote--text-lead { grid-template-columns: 1.4fr 1fr; }
.pull-quote img {
  border-radius: 6px;
  box-shadow: 0 24px 60px -28px rgba(13,27,42,0.4);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.pull-quote blockquote {
  margin: 0;
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--gold);
}
.pull-quote blockquote::before {
  content: "“";
  position: absolute;
  top: -32px; left: -8px;
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.1vw + 1rem, 1.65rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1rem;
}
.pull-quote em { color: var(--gold-deep); font-style: italic; }
.pull-quote .attribution {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  max-width: fit-content;
}
.pull-quote .attribution strong { display: block; color: var(--navy); font-weight: 700; }
.pull-quote .attribution small { font-size: 0.82rem; color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; }

/* -------- Stats grid -------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats > div {
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2vw, 28px);
  border-right: 1px solid var(--rule);
}
.stats > div:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3vw + 1rem, 3.6rem);
  font-weight: 400;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.stat-detail {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* -------- Pillars grid -------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: var(--space-7);
}
.pillar {
  background: var(--cream);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(13,27,42,0.25); border-color: var(--gold); }
.pillar-num {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 700;
}
.pillar h3 { margin-bottom: 0.6em; }
.pillar p { color: var(--ink-soft); margin-bottom: var(--space-5); flex: 1; }
.pillar-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
}
.pillar-foot .label { color: var(--ink-mute); letter-spacing: 0.04em; }
.pillar-foot .cost { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); font-weight: 700; }

/* -------- Cost Table -------- */
.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  font-family: var(--sans);
}
.cost-table th, .cost-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.cost-table th {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
  background: var(--cream-warm);
}
.cost-table td:first-child { font-weight: 600; color: var(--navy); }
.cost-table td:last-child { text-align: right; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.cost-table .note { font-weight: 400; color: var(--ink-mute); font-size: 0.9rem; }
.cost-table tr.total td { background: var(--navy); color: var(--cream); font-weight: 700; font-size: 1.05rem; }
.cost-table tr.total td:last-child { color: var(--gold); font-size: 1.3rem; }

/* -------- Roadmap timeline -------- */
.roadmap { position: relative; padding: var(--space-7) 0 0; }
.roadmap::before {
  content: ""; position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--rule);
  transform: translateX(-50%);
}
.milestone {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  align-items: center;
}
.milestone .dot {
  width: 18px; height: 18px;
  background: var(--gold);
  border: 4px solid var(--cream);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 2px var(--gold-deep);
}
.milestone .year {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.milestone .card {
  background: var(--cream);
  padding: var(--space-5);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.milestone:nth-child(odd) > .year { text-align: right; }
.milestone:nth-child(odd) > .card { grid-column: 3; }
.milestone:nth-child(even) > .year { text-align: left; grid-column: 3; grid-row: 1; }
.milestone:nth-child(even) > .card { grid-column: 1; }
.milestone .card h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
.milestone .card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.milestone .card .budget { font-family: var(--serif); font-size: 0.95rem; color: var(--navy); font-weight: 700; padding-top: 10px; border-top: 1px solid var(--rule); }

/* -------- Giving levels grid -------- */
.giving {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.give-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: var(--space-6);
  border-radius: 4px;
  position: relative;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.give-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 24px 40px -28px rgba(13,27,42,0.25); }
.give-card .amount {
  font-family: var(--serif);
  font-size: clamp(2rem, 2vw + 1rem, 2.6rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.give-card h4 { font-family: var(--serif); color: var(--navy); margin: 8px 0 12px; }
.give-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.give-card.featured {
  background: var(--navy); color: var(--cream); border-color: var(--navy);
}
.give-card.featured .amount { color: var(--gold); }
.give-card.featured h4 { color: var(--cream); }
.give-card.featured p { color: rgba(250,246,239,0.85); }
.give-card .tag {
  position: absolute; top: -10px; right: 16px;
  background: var(--gold); color: var(--navy);
  font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}

/* -------- FAQ -------- */
.faq-list { margin-top: var(--space-6); }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-5) 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4);
  font-family: var(--serif); font-size: 1.25rem;
  color: var(--navy); padding: 4px 0;
  transition: color var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-deep); }
.faq-item summary::after {
  content: "+";
  font-family: var(--serif); font-size: 1.6rem;
  color: var(--gold-deep); line-height: 1;
  transition: transform var(--t-base);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: var(--space-3) 0 0; color: var(--ink-soft); }
.faq-item .answer p { margin: 0 0 0.8em; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* -------- Newsletter -------- */
.newsletter {
  background: var(--navy);
  color: var(--cream);
  border-radius: 8px;
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: radial-gradient(circle at center, rgba(201,151,58,0.18), transparent 70%);
  pointer-events: none;
}
.newsletter h2 { color: var(--cream); }
.newsletter .lead { color: rgba(250,246,239,0.85); max-width: 50ch; }
.newsletter form {
  margin-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 540px;
  position: relative;
}
.newsletter input[type="email"] {
  flex: 1; min-width: 240px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(250,246,239,0.3);
  background: rgba(255,255,255,0.07);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
}
.newsletter input[type="email"]::placeholder { color: rgba(250,246,239,0.5); }
.newsletter input[type="email"]:focus { outline: 2px solid var(--gold); background: rgba(255,255,255,0.12); }
.newsletter button {
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-family: var(--sans);
  transition: background var(--t-fast), color var(--t-fast);
}
.newsletter button:hover { background: var(--cream); color: var(--navy); }
.newsletter .small { font-size: 0.82rem; color: rgba(250,246,239,0.65); margin-top: 12px; }

/* -------- Image gallery -------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.gallery > figure { margin: 0; position: relative; overflow: hidden; border-radius: 4px; }
.gallery > figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform var(--t-slow); }
.gallery > figure:hover img { transform: scale(1.06); }
.gallery > figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(13,27,42,0.85), transparent);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity var(--t-base);
}
.gallery > figure:hover figcaption { opacity: 1; }

/* -------- Image with caption / banner -------- */
.banner-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.banner-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.banner-image .banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.4) 50%, transparent 100%);
  display: flex; align-items: center; padding: clamp(24px, 4vw, 56px);
}
.banner-image .banner-overlay h2 {
  color: var(--cream); max-width: 18ch; margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* -------- Two-column stack -------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.two-col img { border-radius: 4px; }
.two-col.flip > :first-child { order: 2; }
/* Single-column variant of .two-col (pillar with no image) */
.two-col.single { grid-template-columns: 1fr; max-width: 780px; }
.two-col.single > :first-child { order: 0; }


/* -------- Trust strip / partners -------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust-strip > div { text-align: center; padding: 0 var(--space-3); }
.trust-strip .big {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.4vw + 0.8rem, 1.9rem);
  color: var(--navy);
  letter-spacing: -0.01em;
  display: block;
}
.trust-strip .label {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-top: 4px;
  display: block;
}

/* -------- Founder bio block -------- */
.founder {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: var(--space-8);
}
.founder--text-lead { grid-template-columns: 1.6fr 1fr; }
.founder img { border-radius: 4px; box-shadow: 0 24px 60px -32px rgba(13,27,42,0.4); aspect-ratio: 4 / 5; object-fit: cover; }
.founder .meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin: 0 0 8px;
}
.founder h2 { margin-bottom: 0.6em; }

/* -------- Contact form -------- */
.contact-form {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: clamp(28px, 3vw, 40px);
  border-radius: 4px;
}
.contact-form label {
  display: block; margin-bottom: var(--space-3);
}
.contact-form .label-text {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  display: block; margin-bottom: 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--cream-warm);
  border-radius: 4px;
  font-family: var(--sans); font-size: 1rem;
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: -1px; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button[type="submit"] { margin-top: var(--space-3); }

/* -------- Footer -------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-8) 0 var(--space-5);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-6);
}
.site-footer h5 {
  font-family: var(--sans);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.site-footer p, .site-footer li { font-size: 0.95rem; color: rgba(250,246,239,0.85); line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(250,246,239,0.85); text-decoration: none; transition: color var(--t-fast); }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-brand { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); margin-bottom: 12px; display: block; text-decoration: none; }
.site-footer .footer-tag { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.site-footer .footer-tag span { color: rgba(250,246,239,0.4); margin: 0 6px; }
.legal {
  grid-column: 1 / -1;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(250,246,239,0.15);
  font-size: 0.82rem;
  color: rgba(250,246,239,0.55);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3);
}

/* -------- Utility -------- */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.hidden { display: none !important; }
.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;
}

/* -------- Reveal-on-scroll -------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   RESPONSIVE BREAKPOINTS
   ===================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-img { aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; }
  .pull-quote, .pull-quote--text-lead { grid-template-columns: 1fr; }
  .pull-quote img { max-width: 420px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(odd) { border-right: 1px solid var(--rule); }
  .stats > div:nth-child(1), .stats > div:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .pillars { grid-template-columns: 1fr; }
  .cost-grid { grid-template-columns: 1fr; }
  .giving { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .two-col.flip > :first-child { order: 0; }
  .founder, .founder--text-lead { grid-template-columns: 1fr; gap: var(--space-4); }
  .founder img { max-width: 360px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .site-footer .footer-meta { grid-column: 1 / -1; }
  /* mobile nav */
  nav.primary ul { display: none; }
  nav.primary.open ul {
    display: flex; flex-direction: column; gap: var(--space-4);
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--cream); padding: var(--space-5);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.12);
    z-index: 50;
  }
  nav.primary.open ul li { width: 100%; }
  nav.primary.open ul a { display: block; padding: 10px 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule-soft); }
  .menu-toggle { display: block; }
  /* roadmap stacks */
  .roadmap::before { left: 18px; }
  .milestone {
    grid-template-columns: 36px 1fr;
    gap: var(--space-4);
  }
  .milestone .dot { margin: 0; }
  .milestone .year { text-align: left !important; grid-column: 2 !important; grid-row: auto !important; }
  .milestone .card { grid-column: 2 !important; }
  /* sticky donate visible */
  .sticky-donate { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .section { padding: 56px 0; }
  .wrap { padding: 0 18px; }
  .hero { padding: 32px 0 56px; }
  .hero .lead { font-size: 1.05rem; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0 !important; border-bottom: 1px solid var(--rule); }
  .stats > div:last-child { border-bottom: 0; }
  .giving { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; gap: var(--space-4); }
  .site-footer .wrap { grid-template-columns: 1fr; gap: var(--space-5); }
  .btn { padding: 12px 20px; font-size: 0.95rem; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .hero-badge { bottom: 14px; left: 14px; padding: 12px 16px; }
  .hero-badge .display-number { font-size: 1.8rem; }
  .pull-quote blockquote::before { font-size: 4rem; top: -22px; }
}

/* Print styles */
@media print {
  .site-header, .sticky-donate, .ticker, .newsletter { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}

/* =====================================================================
   v6 · Year 1 Progress Component
   ===================================================================== */
.progress-block {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(28px, 3vw, 40px);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.progress-block.dark {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.progress-block.dark h2 { color: var(--cream); }
.progress-block.dark .lead { color: rgba(250, 246, 239, 0.85); }
.progress-block.dark .eyebrow { color: var(--gold); }

.progress-numbers {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  color: var(--navy);
  margin: 8px 0 4px;
  line-height: 1;
}
.progress-block.dark .progress-numbers { color: var(--cream); }
.progress-numbers .big {
  font-size: clamp(3.4rem, 5vw + 1rem, 5.4rem);
  letter-spacing: -0.03em;
}
.progress-numbers .of {
  font-size: clamp(1.2rem, 0.6vw + 1rem, 1.6rem);
  color: var(--ink-mute);
  font-style: italic;
}
.progress-block.dark .progress-numbers .of { color: rgba(250, 246, 239, 0.6); }
.progress-numbers .total {
  font-size: clamp(1.8rem, 1.4vw + 1rem, 2.4rem);
  color: var(--gold-deep);
}
.progress-block.dark .progress-numbers .total { color: var(--gold); }

.progress-caption {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 20px;
}
.progress-block.dark .progress-caption { color: var(--gold); }

.progress-bar {
  height: 14px;
  background: var(--rule-soft);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin: 20px 0 12px;
  border: 1px solid var(--rule);
}
.progress-block.dark .progress-bar {
  background: rgba(250, 246, 239, 0.12);
  border-color: rgba(250, 246, 239, 0.18);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold) 100%);
  border-radius: 999px;
  transition: width 1.2s var(--ease);
  position: relative;
}
.progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 8px; height: 100%;
  background: var(--cream);
  opacity: 0.4;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 8px;
}
.progress-block.dark .progress-meta { color: rgba(250, 246, 239, 0.65); }

.school-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem);
  color: var(--navy);
  background: var(--cream-warm);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  margin-top: 8px;
}
.progress-block.dark .school-date {
  color: var(--cream);
  background: rgba(201, 151, 58, 0.15);
  border-color: rgba(201, 151, 58, 0.35);
}
.school-date b {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}
.progress-block.dark .school-date b { color: var(--gold); }

.progress-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 780px) {
  .progress-block { grid-template-columns: 1fr; }
}

/* =====================================================================
   v6 · Roadmap status pill
   ===================================================================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: 2px;
}
.status-pill.in-progress {
  background: rgba(201, 151, 58, 0.15);
  color: var(--gold-deep);
  border: 1px solid var(--gold);
}
.status-pill.in-progress::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .status-pill.in-progress::before { animation: none; }
}

/* ---- Hero progress (v7.4) ---- */
.hero-progress { max-width: 46ch; margin: 0 0 1.8rem; }
.hero-progress .progress-bar { margin: 0 0 10px; }
.hero-progress .progress-meta { font-size: 0.86rem; }
.hero-progress .progress-meta strong { color: var(--navy); font-weight: 700; }
.hero .btn-row + .tagline { margin: 2rem 0 0; opacity: 0.85; }
@media (max-width: 780px) {
  .hero-progress { max-width: 100%; }
  .hero .btn-row + .tagline { font-size: 0.74rem; letter-spacing: 0.22em; }
}

/* ---- Give Lively embedded widget (v7.5) ---- */
#give { scroll-margin-top: 90px; }
.widget-shell {
  max-width: 720px; margin: 0 auto; min-height: 320px;
  background: #fff; border: 1px solid var(--rule);
  border-radius: 10px; padding: 10px; overflow: hidden;
}
.widget-shell .gl-branded-donation-widget { max-width: 100%; }
.widget-note {
  max-width: 720px; margin: 14px auto 0; text-align: center;
  font-family: var(--sans); font-size: 0.84rem; color: var(--ink-mute);
}
@media (max-width: 640px) {
  .widget-shell { padding: 6px; border-radius: 8px; }
}

/* ---- Dispatches from the field (v7.7) ---- */
.dispatch-empty {
  background: var(--cream-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: var(--space-7);
  max-width: 680px;
}
.dispatch-empty h2 { margin: 0.4rem 0 1rem; }
.dispatch-empty p { color: var(--ink-soft); margin-bottom: var(--space-5); }

.dispatch-feed { max-width: 720px; margin-top: var(--space-8); }
.dispatch-entry {
  position: relative;
  padding: 0 0 var(--space-8) 2.2rem;
  border-left: 2px solid var(--rule);
}
.dispatch-entry:last-child { padding-bottom: 0; border-left-color: transparent; }
.dispatch-entry::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--cream);
}
.dispatch-date {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.dispatch-entry h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin: 0 0 0.6rem; }
.dispatch-entry p { color: var(--ink-soft); margin-bottom: 0; }
.dispatch-media { margin: 1rem 0; border-radius: 4px; overflow: hidden; }
.dispatch-media img { width: 100%; display: block; }

/* ---- Dispatch entry additions (v7.10.0) ---- */
.dispatch-entry p + p { margin-top: 1rem; }
.dispatch-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.dispatch-media-grid img {
  width: 100%;
  display: block;
  border-radius: 4px;
}
.dispatch-caption {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  opacity: 0.85;
  margin: 0.5rem 0 1.25rem;
}
.dispatch-entry .dispatch-caption + p { margin-top: 0; }
@media (max-width: 640px) {
  .dispatch-media-grid { grid-template-columns: 1fr; }
}

/* ---- Student message block (v7.11.1) ---- */
.dispatch-message {
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.15rem;
  margin: 1.75rem 0;
}
.dispatch-shot {
  max-width: 420px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.dispatch-shot img { width: 100%; display: block; }
.dispatch-entry .dispatch-quote-en {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 1rem 0 0;
}
.dispatch-message .dispatch-caption { margin-bottom: 0; }

/* ---- Portrait photos in dispatches (v7.14.0) ---- */
.dispatch-media--portrait { max-width: 420px; }

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy);
  margin: 1rem 0;
}
.video-embed iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}

/* -------- Footer email capture (v7.9.3) -------- */
.site-footer .footer-signup {
  grid-column: 1 / -1;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(250,246,239,0.15);
}
.site-footer .footer-signup h5 { margin-bottom: 10px; }
.site-footer .footer-signup p { max-width: 52ch; margin: 0 0 16px; }
.footer-signup-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; max-width: 520px; }
.footer-signup-form input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  font-family: var(--sans); font-size: 0.95rem;
  padding: 12px 14px; color: var(--cream);
  background: rgba(250,246,239,0.06);
  border: 1px solid rgba(250,246,239,0.28); border-radius: 2px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.footer-signup-form input[type="email"]::placeholder { color: rgba(250,246,239,0.45); }
.footer-signup-form input[type="email"]:focus {
  border-color: var(--gold); background: rgba(250,246,239,0.10);
  outline: 2px solid var(--gold); outline-offset: -1px;
}
.footer-signup-form button[type="submit"] {
  flex: 0 0 auto;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 12px 26px; color: var(--navy); background: var(--gold);
  border: 1px solid var(--gold); border-radius: 2px; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.footer-signup-form button[type="submit"]:hover { background: var(--cream); border-color: var(--cream); }
.footer-signup-hp { position: absolute !important; left: -5000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
@media (max-width: 640px) {
  .footer-signup-form { max-width: 100%; }
  .footer-signup-form input[type="email"] { flex: 1 1 100%; }
  .footer-signup-form button[type="submit"] { flex: 1 1 100%; }
}
