/* =========================================================
   Koohi Goth Women's Hospital — 2026 Campaign
   Design tokens + base styles
   ========================================================= */

:root {
  /* Brand palette — pulled from the brochure cover (teal, gold, soft cream) */
  --kgh-teal:        #0e4a5c;
  --kgh-teal-deep:   #093644;
  --kgh-teal-soft:   #4a8597;
  --kgh-gold:        #c9a55a;
  --kgh-gold-deep:   #a8853d;
  --kgh-blush:       #f1d9c4;     /* the warm circle from the cover */
  --kgh-sky:         #c9dde4;     /* the cool circles */

  /* Neutrals — paper-warm */
  --paper:           #faf6ee;
  --paper-2:         #f4ece0;
  --ink:             #1a1a1a;
  --ink-2:           #3a3a3a;
  --ink-soft:        #5e5e5e;
  --rule:            rgba(14, 74, 92, 0.18);
  --rule-soft:       rgba(14, 74, 92, 0.08);

  /* Type */
  --serif: "Cormorant Garamond", "Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Palette themes — switchable via Tweaks */
[data-palette="warm"] {
  --paper: #faf6ee;
  --paper-2: #f4ece0;
}
[data-palette="ivory"] {
  --paper: #ffffff;
  --paper-2: #f7f4ee;
}
[data-palette="dusk"] {
  --paper: #1b2a30;
  --paper-2: #243842;
  --ink: #f1ece0;
  --ink-2: #d8d2c4;
  --ink-soft: #aea99d;
  --rule: rgba(241, 236, 224, 0.18);
  --rule-soft: rgba(241, 236, 224, 0.08);
  --kgh-teal: #7fc5d8;
  --kgh-teal-deep: #b6dde6;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--kgh-teal);
}
.eyebrow.gold { color: var(--kgh-gold-deep); }
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
.display {
  font-size: clamp(48px, 7.4vw, 116px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h2 { font-size: clamp(34px, 4.6vw, 64px); }
.h3 { font-size: clamp(24px, 2.4vw, 36px); }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(80px, 10vw, 160px) 0; position: relative; }

/* ---------- ornamental hairline (the brochure's gold rule) ---------- */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
}
.gold-rule::before, .gold-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--kgh-gold) 20%, var(--kgh-gold) 80%, transparent);
}
.gold-rule::after { background: linear-gradient(90deg, transparent, var(--kgh-gold) 20%, var(--kgh-gold) 80%, transparent); }
.gold-rule .diamond {
  width: 6px; height: 6px;
  background: var(--kgh-gold);
  transform: rotate(45deg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 240ms var(--ease-out), background 200ms, color 200ms, box-shadow 240ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--kgh-teal);
  color: var(--paper);
  box-shadow: 0 6px 24px -8px rgba(14, 74, 92, 0.45);
}
.btn-primary:hover { background: var(--kgh-teal-deep); box-shadow: 0 10px 32px -8px rgba(14, 74, 92, 0.55); }
.btn-gold {
  background: var(--kgh-gold);
  color: var(--kgh-teal-deep);
  box-shadow: 0 6px 24px -8px rgba(168, 133, 61, 0.45);
}
.btn-gold:hover { background: var(--kgh-gold-deep); color: #fff; }
.btn-ghost {
  border: 1px solid var(--rule);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--kgh-teal); color: var(--kgh-teal); }

/* ---------- placeholder / real-image block ----------
   Default: striped warm placeholder w/ label. When [data-src] is set,
   the .ph element shows the photo as a cover background and the label
   becomes a small caption chip. */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(14, 74, 92, 0.05) 0,
      rgba(14, 74, 92, 0.05) 8px,
      rgba(14, 74, 92, 0.09) 8px,
      rgba(14, 74, 92, 0.09) 16px
    ),
    var(--paper-2);
  border: 1px solid var(--rule-soft);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.ph[data-src] {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.ph[data-src]::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.35));
  pointer-events: none;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--kgh-teal);
  background: var(--paper);
  padding: 4px 8px;
  margin: 12px;
  border: 1px solid var(--rule-soft);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.ph[data-src]::after {
  background: rgba(255,255,255,0.92);
  color: var(--kgh-teal-deep);
  border-color: transparent;
  font-weight: 600;
}

/* ---------- abstract motif from brochure cover ----------
   Five circles: sky, sky, blush (warm center), sky, sky */
.cover-motif {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cover-motif .dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--kgh-sky);
  opacity: 0.85;
}
.cover-motif .dot.center {
  background: var(--kgh-blush);
  width: 76px; height: 76px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, padding 200ms;
}
.nav.scrolled {
  border-bottom-color: var(--rule-soft);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--kgh-teal);
}
.nav-logo .mark {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--kgh-teal); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--kgh-teal);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--kgh-gold); color: var(--kgh-teal-deep); }
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- floating donate (mobile + scroll) ---------- */
.floating-donate {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 70;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--kgh-gold);
  color: var(--kgh-teal-deep);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 36px -8px rgba(168, 133, 61, 0.5);
  transform: translateY(120px);
  transition: transform 400ms var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.floating-donate.show { transform: translateY(0); }
.floating-donate .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--kgh-teal-deep);
  position: relative;
}
.floating-donate .pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--kgh-teal-deep);
  animation: pulse 2s var(--ease-out) infinite;
  opacity: 0.6;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- hero variants share ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Variant A: portrait left, headline right */
.hero-portrait {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-2);
  box-shadow:
    0 1px 0 rgba(14, 74, 92, 0.06),
    0 30px 60px -28px rgba(14, 74, 92, 0.35),
    0 60px 120px -60px rgba(14, 74, 92, 0.25);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 12s ease-out;
}
.hero-figure:hover img { transform: scale(1.04); }

/* Subtle film grain over the photo for editorial finish */
.hero-figure-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0),
    linear-gradient(180deg, transparent 50%, rgba(0, 20, 30, 0.55));
  background-size: 3px 3px, 100% 100%;
  mix-blend-mode: multiply;
}

/* Caption — bottom left, layered on the photo, gives the woman a name */
.hero-figure-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 28px 26px;
  color: #fff;
  font-family: var(--serif);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.hero-figure-caption .kicker { color: rgba(255,255,255,0.72); font-size: 11px; }
.hero-figure-name {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1;
  margin-top: 2px;
}
.hero-figure-meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  margin-top: 2px;
}

/* Top-right corner stamp — case-for-support badge */
.hero-figure-stamp {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  background: var(--kgh-gold);
  color: var(--kgh-teal-deep);
  padding: 12px 14px 10px;
  text-align: right;
  font-family: var(--sans);
  border-radius: 1px;
  box-shadow: 0 6px 18px -8px rgba(168, 133, 61, 0.6);
}
.hero-figure-stamp-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero-figure-stamp-lbl {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.78;
}

/* Legacy badge style (kept in case something else uses .pic .badge) */
.hero-portrait .pic {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  position: relative;
}
.hero-portrait .pic .badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--paper);
  padding: 14px 18px;
  border-left: 3px solid var(--kgh-gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  max-width: 280px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.18);
}
.hero-portrait .pic .badge .name {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kgh-teal);
  margin-bottom: 6px;
  display: block;
}
@media (max-width: 900px) {
  .hero-portrait { grid-template-columns: 1fr; gap: 32px; }
  .hero-portrait .pic, .hero-figure { max-width: 480px; }
}

/* Variant B: manifesto */
.hero-manifesto {
  text-align: left;
}
.hero-manifesto .display {
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.hero-manifesto .display .em {
  color: var(--kgh-gold);
  font-style: italic;
}

/* Variant C: crisis stat */
.hero-crisis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-crisis .big-num {
  font-size: clamp(120px, 18vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--kgh-teal);
  font-weight: 500;
}
@media (max-width: 900px) {
  .hero-crisis { grid-template-columns: 1fr; }
}

/* ---------- impact tiles ---------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.impact-grid .cell {
  padding: 40px 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.impact-grid .cell:last-child { border-right: none; }
.impact-grid .num {
  font-family: var(--serif);
  font-size: clamp(48px, 5.6vw, 84px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--kgh-teal);
}
.impact-grid .label {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid .cell:nth-child(2n) { border-right: none; }
  .impact-grid .cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

/* ---------- progress bar ---------- */
.progress {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
  position: relative;
}
.progress > .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--kgh-teal), var(--kgh-gold));
  border-radius: 999px;
  transition: width 1.4s var(--ease-out);
}

/* ---------- story carousel ---------- */
.story-card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}
.story-card .pic { aspect-ratio: 4 / 5; }
.story-card .body {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.story-card .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  text-wrap: pretty;
}
.story-card .quote::before { content: "\201C"; }
.story-card .quote::after  { content: "\201D"; }
@media (max-width: 820px) {
  .story-card { grid-template-columns: 1fr; }
}

.story-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule-soft);
}
.story-tab {
  padding: 14px 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: all 200ms;
  text-transform: uppercase;
}
.story-tab.active { color: var(--kgh-teal); border-bottom-color: var(--kgh-gold); }
.story-tab:hover { color: var(--kgh-teal); }

/* ---------- donation panel ---------- */
.donate-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(28px, 3.4vw, 48px);
  position: relative;
  box-shadow: 0 24px 64px -32px rgba(14, 74, 92, 0.25);
}
.freq-toggle {
  display: inline-flex;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}
.freq-toggle button {
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 220ms;
}
.freq-toggle button.active {
  background: var(--kgh-teal);
  color: var(--paper);
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
@media (max-width: 600px) { .tier-grid { grid-template-columns: 1fr; } }
.tier {
  text-align: left;
  padding: 18px 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  transition: all 220ms;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier:hover { border-color: var(--kgh-teal); }
.tier.active {
  border-color: var(--kgh-teal);
  background: color-mix(in oklab, var(--kgh-teal) 6%, var(--paper));
  box-shadow: inset 0 0 0 1px var(--kgh-teal);
}
.tier .amt {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tier .pkr {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}
.tier .impact {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 4px;
}
.tier.active .impact { color: var(--kgh-teal-deep); }

.amount-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.amount-row .currency {
  display: grid;
  place-items: center;
  padding: 0 18px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--kgh-teal);
}
.amount-row input {
  font: inherit;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 0 4px 4px 0;
  background: var(--paper);
  width: 100%;
  outline: none;
  letter-spacing: -0.01em;
  transition: border-color 200ms;
}
.amount-row input:focus { border-color: var(--kgh-teal); }

.live-impact {
  margin-top: 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--kgh-gold) 18%, var(--paper)), var(--paper));
  border-left: 3px solid var(--kgh-gold);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
  border-radius: 2px;
}
.live-impact strong { color: var(--kgh-teal); font-weight: 600; }

/* ---------- map ---------- */
.map-wrap {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  overflow: hidden;
}
.map-wrap svg { width: 100%; height: 100%; display: block; }
.map-pin {
  fill: var(--kgh-gold);
  stroke: var(--kgh-teal-deep);
  stroke-width: 2;
}
.map-pulse {
  fill: var(--kgh-gold);
  opacity: 0.4;
  transform-origin: center;
  animation: mapPulse 3s var(--ease-out) infinite;
}
@keyframes mapPulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- footer ---------- */
footer {
  background: var(--kgh-teal-deep);
  color: var(--paper);
  padding: 80px var(--gutter) 40px;
}
footer .row {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
footer .col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kgh-gold);
  margin-bottom: 16px;
  font-weight: 600;
}
footer .col a {
  display: block;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
footer .col a:hover { color: var(--kgh-gold); }
footer .meta {
  max-width: var(--container);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 820px) {
  footer .row { grid-template-columns: 1fr 1fr; }
}

/* ---------- reveal-on-scroll ----------
   Fail-open: default visible. JS adds .reveal--off / .reveal-stagger--off
   on entry, then strips it on intersection. If JS never runs, content shows. */
.reveal { transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal--off { opacity: 0; transform: translateY(28px); }
.reveal.in, .reveal--off.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal-stagger--off > * { opacity: 0; transform: translateY(20px); }
.reveal-stagger.in > *, .reveal-stagger--off.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1), .reveal-stagger--off.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2), .reveal-stagger--off.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3), .reveal-stagger--off.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4), .reveal-stagger--off.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5), .reveal-stagger--off.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6), .reveal-stagger--off.in > *:nth-child(6) { transition-delay: 400ms; }

/* ---------- pull quote ---------- */
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--kgh-teal-deep);
  text-wrap: balance;
  max-width: 22ch;
}
.pull::before { content: "\201C"; color: var(--kgh-gold); }
.pull::after  { content: "\201D"; color: var(--kgh-gold); }

/* ---------- recognitions strip ---------- */
.recog {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.recog .item {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
}
.recog .item:hover { color: var(--kgh-teal); }
@media (max-width: 900px) {
  .recog { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- promise band ---------- */
.promise {
  background: var(--kgh-teal);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.promise .display {
  color: var(--paper);
}
.promise .em {
  color: var(--kgh-gold);
  font-style: italic;
}
.promise .pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(circle at 1px 1px, var(--paper) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ---------- two-up text section ---------- */
.two-up {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .two-up { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- programs grid ---------- */
.programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.program {
  background: var(--paper);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 280ms;
}
.program:hover { background: var(--paper-2); }
.program .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--kgh-gold-deep);
}
.program h3 {
  font-size: 28px;
  color: var(--kgh-teal);
}
.program p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.program .stat {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
@media (max-width: 800px) { .programs { grid-template-columns: 1fr; } }

/* ---------- form ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.field input, .field textarea {
  font: inherit;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 200ms;
}
.field input:focus, .field textarea:focus { border-color: var(--kgh-teal); }

/* ---------- success modal ---------- */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(14, 74, 92, 0.6);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 24px;
  animation: fadein 280ms var(--ease-out);
}
.modal {
  background: var(--paper);
  border-radius: 6px;
  padding: 56px 48px;
  max-width: 480px;
  text-align: center;
  position: relative;
  animation: pop 380ms var(--ease-out);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- a tiny helper for the campaign progress card ---------- */
.live-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.live-card .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.live-card .raised {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--kgh-teal);
}
.live-card .goal {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.live-card .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ---------- small util ---------- */
.center { text-align: center; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row.center { justify-content: center; }
.spacer { height: 80px; }
.divider {
  display: flex;
  justify-content: center;
  margin: clamp(48px, 6vw, 80px) 0;
}
