:root {
  --bg: #fbfaf7;
  --mist: #eaf0f6;
  --sage: #93ada4;
  --sage-soft: #e3ebe7;
  --cream: #f7efe2;
  --line: #e4d6bd;
  --indigo: #3a3e79;
  --indigo-2: #4a5a9a;
  --indigo-deep: #262a55;
  --olive: #56662b;
  --gold: #c98f32;
  --gold-soft: #ecd3a6;
  --gold-deep: #8f611c;
  --ink: #1f2433;
  --ink-soft: #4a5161;
  --on-dark: #eef0fa;
  --on-dark-soft: #c3c7e2;
  --display: "Poppins", system-ui, sans-serif;
  --body: "Raleway", system-ui, sans-serif;
  --quote: "Newsreader", Georgia, serif;
  --measure: 40rem;
  --wide: 72rem;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --hdr: 60px;
  --rh: clamp(40px, 11vw, 150px);
  color-scheme: light;
}
@media (min-width: 900px) { :root { --hdr: 72px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 clamp(1.06rem, 1rem + 0.3vw, 1.2rem)/1.68 var(--body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
main p { max-width: var(--measure); }
b, strong { font-weight: 700; color: var(--indigo); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout: one wide container, readable line length inside it ---------- */
.wrap { width: min(100% - 2 * var(--pad), var(--wide)); margin-inline: auto; }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .split-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.align-start { align-items: start; }
}
.band { position: relative; padding-block: clamp(3.4rem, 8vw, 6rem); }
.band-mist { background: var(--mist); }
.band-sage { background: var(--sage-soft); }
.band-cream { background: var(--cream); }
.band-deep { background: var(--indigo-deep); color: var(--on-dark); }
.band-deep h2, .band-deep strong, .band-deep b { color: #fff; }
.divider { display: block; width: 100%; height: clamp(40px, 6vw, 90px); margin-top: -1px; background: var(--bg); }
.divider .back { opacity: 0.5; }

.eyebrow { font: 700 0.86rem/1.25 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 0.75rem; }
h1, h2, h3 { font-family: var(--display); color: var(--indigo); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); line-height: 1.1; margin-bottom: 1.1rem; max-width: 24ch; }
.sec-head { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.lead-in { font: 700 1.02rem/1.4 var(--display); color: var(--indigo); margin: 1.4rem 0 0; }

/* ---------- sticky header (logo, the match, Give) ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 250, 247, 0.94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 12px 26px -22px rgba(38, 42, 85, 0.55); }
.hdr { display: flex; align-items: center; gap: 1rem; min-height: var(--hdr); }
.hdr-logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.hdr-logo img { width: clamp(128px, 32vw, 172px); }
.cd:not(:empty)::before { content: " · "; white-space: pre; }
.hdr-match { margin: 0; font: 600 0.85rem/1.25 var(--display); color: var(--ink-soft); text-align: right; }
.hdr-match b, .hm-wide { display: none; }
.hm-short { display: block; font-weight: 700; color: var(--indigo); }
.hdr-match .cd { display: block; }
.hdr-match .cd:not(:empty)::before { content: none; }
.hdr-give, .give-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--gold); color: var(--indigo-deep); text-decoration: none; text-align: center; transition: transform 0.2s, background 0.2s; }
.hdr-give { flex: none; min-height: 44px; padding: 0 1.3rem; font: 700 0.95rem/1 var(--display); }
.hdr-give:hover, .give-btn:hover { background: #d9a14a; transform: translateY(-1px); }
@media (min-width: 900px) {
  .hdr-match { font-size: 0.92rem; line-height: 1.3; text-align: left; }
  .hdr-match b { display: inline; color: var(--indigo); }
  .hm-wide, .hdr-match .cd { display: inline; }
  .hm-short { display: none; }
  .hdr-match .cd:not(:empty)::before { content: " · "; }
}

/* ---------- hero: photo, ridges, the campaign up front ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero-photo { margin: 0; position: relative; background: var(--mist); overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
.ridges { position: absolute; left: 0; right: 0; top: calc(62.5vw - var(--rh) + 2px); height: var(--rh); pointer-events: none; z-index: 1; }
.ridges svg { position: absolute; left: -2%; width: 104%; height: 100%; overflow: visible; will-change: transform; }
.ridges .r1 { fill: var(--sage); opacity: 0.55; }
.ridges .r2 { fill: var(--sage-soft); opacity: 0.85; }
.ridges .r3 { fill: var(--bg); }
.hero-in { position: relative; z-index: 2; }
.hero-copy { padding: 0.6rem 0 clamp(2.4rem, 7vw, 3rem); }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 36px; margin: 0 0 1rem; padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 700 0.86rem/1.2 var(--display); letter-spacing: 0.03em; color: var(--indigo); }
.chip svg { width: 16px; height: 16px; flex: none; color: var(--gold-deep); }
.hero h1 { font: 800 clamp(2.15rem, 1.2rem + 4.2vw, 3.6rem)/1.04 var(--display); letter-spacing: -0.03em; margin: 0 0 1rem; }
.hero h1 .accent { color: var(--olive); }
.hero-lede { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); margin-bottom: 1.4rem; }
@media (min-width: 900px) {
  .hero { display: flex; align-items: center; min-height: clamp(560px, calc(100vh - var(--hdr)), 760px); }
  .hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
  .hero-photo img { height: 100%; aspect-ratio: auto; object-position: 50% 40%; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), rgba(251, 250, 247, 0) 20%); }
  .ridges { top: auto; bottom: -2px; }
  .hero-in { width: min(100% - 2 * var(--pad), var(--wide)); }
  .hero-copy { width: 47%; padding: 3rem 0 calc(var(--rh) + 2rem); }
}
@media (max-width: 899px) and (max-height: 700px) {
  .hero-photo img { aspect-ratio: 16 / 9; }
  .ridges { top: calc(56.25vw - var(--rh) + 2px); }
}

/* ---------- Kate's question ---------- */
.why { padding-block: clamp(1rem, 4vw, 3.5rem) clamp(3.4rem, 8vw, 6rem); }
.why h2 { max-width: 22ch; }
.why a { color: var(--indigo); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.gt-lines { list-style: none; margin: 0; padding: clamp(1.3rem, 3vw, 1.8rem); display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 18px 40px -30px rgba(38, 42, 85, 0.45); }
.gt-lines li { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 600; line-height: 1.45; }
.gt-lines svg { width: 24px; height: 24px; flex: none; color: var(--olive); margin-top: 0.1rem; }

/* ---------- give buttons ---------- */
.give-btn { min-height: 56px; padding: 0.4rem 1.7rem; font: 800 1rem/1.2 var(--display); box-shadow: 0 14px 28px -16px rgba(143, 97, 28, 0.9); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.8rem; }
.cta-row.center { justify-content: center; }
@media (max-width: 559px) { .give-btn { width: 100%; } }
@media (max-width: 400px) { .give-btn { padding-inline: 0.9rem; font-size: 0.95rem; } }

/* ---------- the match ---------- */
.match h2 { color: #fff; }
.match p { color: var(--on-dark); }
.countdown { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; font: 700 0.92rem/1.3 var(--display); color: var(--gold-soft) !important; }
.countdown svg { width: 18px; height: 18px; flex: none; }
.equation { margin: 0; padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid rgba(236, 211, 166, 0.28); border-radius: 28px; background: rgba(255, 255, 255, 0.05); }
.eq-part { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.2rem 1rem; }
.eq-label { margin: 0; font: 700 0.86rem/1.3 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-soft) !important; }
.eq-amt { margin: 0; font: 800 clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem)/1 var(--display); letter-spacing: -0.02em; color: #fff !important; font-variant-numeric: tabular-nums; }
.eq-bar { grid-column: 1 / -1; height: 14px; margin-top: 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.eq-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.7,.2,1) 0.15s; }
.matched .eq-bar i { background: var(--gold-soft); transition-delay: 0.75s; }
.eq-op { margin: 0.6rem 0; text-align: center; font: 800 1.6rem/1 var(--display); color: var(--gold-soft) !important; }
.eq-total { text-align: center; padding-top: 1.1rem; border-top: 1px dashed rgba(236, 211, 166, 0.4); }
.eq-total .eq-amt { font-size: clamp(2.8rem, 2rem + 3.5vw, 4.4rem); color: var(--gold-soft) !important; }
.eq-total .eq-label { margin: 0.6rem auto 0; }

/* ---------- wells + gift ladder ---------- */
.wells, .ladder, .stat-grid, .areas { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.wells li, .ladder li { background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.wells li { padding: clamp(1.3rem, 3vw, 1.8rem); }
.wells svg { width: 52px; height: 52px; color: var(--olive); margin-bottom: 0.9rem; }
.wells h3 { font: 800 1rem/1.25 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo); margin: 0 0 0.5rem; }
.wells p { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink-soft); }
.ladder li { display: flex; flex-direction: column; padding: 1.3rem 1.25rem 1.4rem; }
.ladder .amt { margin: 0; font: 800 clamp(2rem, 1.6rem + 1.4vw, 2.6rem)/1 var(--display); letter-spacing: -0.03em; color: var(--indigo); }
.ladder .dbl { margin: 0.45rem 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font: 700 0.9rem/1.25 var(--display); color: var(--gold-deep); }
.ladder h3 { font: 700 1.05rem/1.25 var(--display); color: var(--ink); margin: 0 0 0.35rem; }
.ladder p:last-child { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.ways-foot { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.ways-foot .cta-row { margin-top: 0.4rem; }
.daf { margin-top: 1.8rem; font-size: 0.98rem; color: var(--ink-soft); }
@media (min-width: 640px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .wells { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Year 3 + 60 students ---------- */
.kicker { display: inline-block; font: 800 0.9rem/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--bg); background: var(--indigo); padding: 0.55rem 0.9rem 0.5rem; border-radius: 999px; margin-bottom: 1.1rem; }
.display { font-weight: 800; font-size: clamp(2.5rem, 1.5rem + 5vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; max-width: none; }
.display .fruit { color: var(--olive); }
.fruit-intro { margin-top: clamp(2.8rem, 7vw, 4.5rem); }
.units { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.1rem 1.1rem 1rem; box-shadow: 0 18px 40px -30px rgba(38, 42, 85, 0.45); }
.units-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.units-title { font: 700 0.95rem/1.2 var(--display); color: var(--ink); margin: 0; }
.seg { display: inline-flex; background: var(--mist); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 0 1rem; min-height: 44px; font: 600 0.9rem/1 var(--display); color: var(--ink-soft); cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.units-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.units-grid svg { width: 100%; height: auto; aspect-ratio: 3 / 4; transition: transform 0.45s cubic-bezier(.3,1.5,.5,1), opacity 0.35s; }
.units-grid .f { color: var(--indigo-2); }
.units-grid .n { color: var(--gold); }
.units.is-opening .units-grid .n { opacity: 0.12; transform: scale(0.6); color: var(--ink-soft); }
.units-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.9rem; font: 600 0.9rem/1.3 var(--display); color: var(--ink); }
.units-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.units-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.units-legend .kf { background: var(--indigo-2); }
.units-legend .kn { background: var(--gold); }
@media (min-width: 760px) { .units-grid { gap: 8px; } }

/* ---------- competence ---------- */
.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: clamp(0.7rem, 2vw, 1.1rem); margin: 1.4rem 0 clamp(2rem, 5vw, 3rem); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.15rem 1rem; text-align: center; }
.ring { width: 104px; height: 104px; margin: 0 auto 0.4rem; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--cream); stroke-width: 9; }
.ring .val { fill: none; stroke: var(--olive); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: var(--off, 0); transition: stroke-dashoffset 1.5s cubic-bezier(.2,.7,.2,1); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1.75rem/1 var(--display); color: var(--olive); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.steps { width: 104px; height: 104px; margin: 0 auto 0.4rem; display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding-bottom: 6px; position: relative; }
.steps span { width: 22px; border-radius: 6px 6px 3px 3px; background: var(--olive); transform-origin: bottom; transition: background 0.5s, transform 0.6s cubic-bezier(.3,1.4,.5,1); }
.steps span:nth-child(1) { height: 34%; background: #c9cfb0; } .steps span:nth-child(2) { height: 58%; } .steps span:nth-child(3) { height: 82%; }
.steps .num { position: absolute; top: 2px; left: 0; right: 0; font: 800 1.75rem/1 var(--display); color: var(--olive); }
.stat h3 { font: 700 0.86rem/1.25 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 0.5rem 0 0.35rem; }
.stat p { font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); margin: 0 auto; }
mark { background: linear-gradient(transparent 56%, rgba(201, 143, 50, 0.32) 0); color: inherit; font-weight: 700; padding: 0 0.08em; }
.photo { margin: 0; overflow: hidden; border-radius: clamp(18px, 3vw, 28px); background: var(--mist); }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 380px) { .stat { padding-inline: 0.7rem; } .ring, .steps { width: 92px; height: 92px; } }

/* ---------- character ---------- */
.headline-stat { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.1rem 1.2rem; margin: 0.6rem 0 1.8rem; }
.headline-stat .ring { margin: 0; width: 112px; height: 112px; }
.headline-stat p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.areas-title { font: 700 0.86rem/1.3 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.9rem; }
.areas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 0.75rem; }
.areas li { display: flex; }
.areas button {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.55rem; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1rem 0.6rem 0.9rem; cursor: pointer;
  font: 700 0.86rem/1.25 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.areas svg { width: 40px; height: 40px; flex: none; color: var(--olive); transition: transform 0.5s cubic-bezier(.3,1.6,.5,1); }
.areas button:hover, .areas button[aria-pressed="true"] { border-color: var(--olive); box-shadow: 0 12px 26px -18px rgba(86, 102, 43, 0.8); transform: translateY(-2px); }
.areas button[aria-pressed="true"] svg { transform: scale(1.18) rotate(-6deg); }
@media (max-width: 359px) { .areas button { letter-spacing: 0.02em; } }
.quote { margin: 0 0 1.6rem; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2.6rem 1.4rem 1.3rem; }
.quote::before { content: "\201C"; position: absolute; left: 1rem; top: -0.1rem; font: 500 5.5rem/1 var(--quote); color: var(--gold); }
.quote p { font: italic 400 clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem)/1.45 var(--quote); color: var(--ink); margin-bottom: 0.8rem; text-wrap: pretty; }
.quote p em { font-style: italic; color: var(--olive); font-weight: 500; }
.quote footer { font: 700 0.86rem/1.2 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.note { display: flex; gap: 0.9rem; align-items: flex-start; border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 1rem; }
.note svg { width: 30px; height: 30px; flex: none; color: var(--olive); }
.note p { margin: 0; font-size: 1.04rem; }

/* ---------- the heart of Legacy ---------- */
.heart-band { background: var(--indigo-deep); color: var(--on-dark); padding-block: clamp(3.6rem, 10vw, 7rem); text-align: center; }
.heart { margin: 0 auto; max-width: 24ch; font: italic 400 clamp(1.9rem, 1.2rem + 3.2vw, 3.6rem)/1.2 var(--quote); text-wrap: balance; }
.heart em { display: block; margin-bottom: 1rem; font: 700 0.9rem/1.3 var(--display); letter-spacing: 0.18em; text-transform: uppercase; font-style: normal; color: var(--gold-soft); }

/* ---------- word is spreading + website quotes ---------- */
.spread { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.4rem; align-items: center; max-width: 46rem; }
.spread .ring { width: 112px; height: 112px; margin: 0; }
.spread h3 { font: 800 0.9rem/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.35rem; }
.spread p { margin: 0; font-size: 1.04rem; line-height: 1.5; }
@media (max-width: 419px) { .spread { grid-template-columns: 1fr; justify-items: start; } }
.block { margin-top: clamp(2.6rem, 6vw, 4rem); }
.block:first-child { margin-top: 0; }
.block-title { font: 700 1.3rem/1.2 var(--display); color: var(--indigo); margin: 0 0 1rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 0.3rem var(--pad) 1rem; margin-inline: calc(-1 * var(--pad)); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.quotes { align-items: start; }
.rail.team { grid-auto-columns: 44%; }
.tcard { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem 1.3rem 1.2rem; }
.tcard p { font: italic 400 1.15rem/1.5 var(--quote); color: var(--ink); max-width: none; }
.tcard footer { font: 700 0.86rem/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.team-card { margin: 0; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1rem 0.5rem 0.9rem; }
.team-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: center 25%; margin: 0 auto 0.75rem; box-shadow: 0 0 0 4px var(--cream); }
.team-card h4 { font: 700 1rem/1.25 var(--display); color: var(--indigo); margin: 0 0 0.2rem; }
.team-card p { font-size: 0.86rem; line-height: 1.35; color: var(--ink-soft); margin: 0 auto; }
.bento .photo img { aspect-ratio: 4 / 3; }
@media (min-width: 760px) {
  .rail { overflow: visible; margin-inline: 0; padding: 0; grid-auto-flow: row; grid-auto-columns: auto; scroll-snap-type: none; }
  .rail.quotes { display: block; columns: 2; column-gap: 1rem; }
  .rail.quotes > * { break-inside: avoid; margin-bottom: 1rem; }
  .rail.team { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rail.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2 / 1; }
  .rail.bento > :first-child { grid-column: span 2; grid-row: span 2; }
  .rail.bento .photo img { height: 100%; aspect-ratio: auto; }
}
@media (min-width: 1100px) { .rail.quotes { columns: 3; } }

/* ---------- videos ---------- */
.video-grid { display: grid; gap: clamp(1.8rem, 4vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem); margin-top: 0.4rem; }
.vfeat { margin: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0.9rem; }
.vfeat > p { margin: 0; align-self: end; font-size: 1.04rem; }
.vfeat figcaption { text-align: center; font: 700 0.92rem/1.3 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.video { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; border-radius: clamp(16px, 3vw, 26px); overflow: hidden; background: var(--indigo-deep); aspect-ratio: 16 / 9; box-shadow: 0 24px 50px -30px rgba(38, 42, 85, 0.65); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.video:hover img { transform: scale(1.03); }
.video .play { position: absolute; inset: 0; margin: auto; width: 70px; height: 70px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: transform 0.25s; }
.video:hover .play { transform: scale(1.08); }
.video .play svg { width: 24px; height: 24px; margin-left: 4px; fill: var(--indigo-deep); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.band-mist .cta-row { margin-top: clamp(2rem, 5vw, 2.8rem); }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- thank you, the P.S., footer ---------- */
.thanks h2 { font-size: clamp(2.4rem, 1.7rem + 3.6vw, 4rem); }
.vision { font: 600 clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem)/1.5 var(--body); color: var(--indigo); text-wrap: pretty; }
.signoff { margin-top: 1.8rem; }
.signoff .with { font: italic 400 1.2rem/1.4 var(--quote); color: var(--ink-soft); margin: 0 0 0.25rem; }
.signoff .who { font: 700 1.05rem/1.3 var(--display); color: var(--indigo); margin: 0; }
.final { text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.final .ps { margin: 0 auto; max-width: 36rem; font: italic 400 clamp(1.3rem, 1.1rem + 1vw, 1.75rem)/1.45 var(--quote); color: var(--on-dark); }
.final .ps b { margin-right: 0.3rem; font: 800 1rem/1 var(--display); font-style: normal; letter-spacing: 0.1em; color: var(--gold-soft); }
.remind { margin: 1.3rem auto 0; font: 600 0.92rem/1.4 var(--display); }
.remind a { color: var(--on-dark-soft); }
.site-footer { background: var(--indigo-deep); color: var(--on-dark-soft); padding: clamp(2.8rem, 7vw, 4rem) 0 2.4rem; }
.foot { display: grid; gap: 1.6rem; justify-items: center; text-align: center; }
.foot h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin: 0 0 0.6rem; max-width: none; }
.foot img { width: clamp(150px, 30vw, 190px); }
.foot .email { margin: 0; }
.foot .email b, .foot a { color: #fff; }
.fine { margin: 0; max-width: 46rem; font: 500 0.88rem/1.55 var(--display); color: rgba(255, 255, 255, 0.62); }
@media (min-width: 900px) {
  .foot { grid-template-columns: 1fr auto; align-items: center; justify-items: start; text-align: left; }
  .foot img { justify-self: end; }
  .foot .fine { grid-column: 1 / -1; max-width: none; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

/* ---------- campaign updates (weekly cards from updates.json) ---------- */
.latest { display: flex; align-items: center; width: fit-content; min-height: 44px; margin-top: 0.5rem; font: 700 0.95rem/1.2 var(--display); color: var(--indigo); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.upd-rail { align-items: start; }
.upd-card { margin: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.upd-card .video { border-radius: 0; box-shadow: none; }
.upd-media img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.upd-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.2rem 1.1rem; }
.upd-when { margin: 0; font: 700 0.8rem/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.upd-card h3 { font: 700 1.1rem/1.3 var(--display); color: var(--indigo); }
.upd-card p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.upd-card .upd-when { color: var(--gold-deep); }
.upd-link { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; font: 700 0.95rem/1.2 var(--display); color: var(--indigo); text-decoration-color: var(--gold); text-underline-offset: 3px; }
@media (min-width: 760px) { .rail.upd-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- donor update page: the save-the-date ribbon from Kate's original page ---------- */
.ribbon { display: flex; justify-content: center; align-items: center; gap: 0.55rem; flex-wrap: wrap; min-height: 44px; padding: 0.75rem var(--pad); background: var(--indigo-deep); color: var(--on-dark); text-decoration: none; text-align: center; font: 600 0.9rem/1.3 var(--display); letter-spacing: 0.02em; }
.ribbon b { color: var(--gold-soft); font-weight: 700; }
.ribbon .pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 143, 50, 0.6); }
@media (prefers-reduced-motion: no-preference) { .ribbon .pulse { animation: pulse 2.4s 4; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(201, 143, 50, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 143, 50, 0); } }

/* ---------- donor update page: full-width photo hero, calculator, footer links ---------- */
.hero.full { display: block; min-height: 0; }
.hero.full .hero-photo { position: relative; width: auto; }
.hero.full .hero-photo::after { display: none; }
.hero.full .ridges { top: auto; bottom: -2px; }
.hero.full .hero-copy { width: auto; padding: 0.4rem 0 clamp(1.6rem, 4vw, 2.6rem); text-align: center; }
.hero.full h1 { font-size: clamp(2.6rem, 1.5rem + 5.6vw, 5.2rem); line-height: 1; }
.hero.full h1 .fruit { color: var(--olive); }
@media (min-width: 900px) { .hero.full .hero-photo img { aspect-ratio: auto; height: clamp(300px, 54vh, 600px); object-position: 50% 45%; } }
@media (max-width: 899px) { .hdr-match.wide-only { display: none; } }
.intro { padding-block: clamp(1.4rem, 4vw, 2.6rem) clamp(3rem, 7vw, 5rem); }
.lede { font: 600 clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem)/1.5 var(--body); color: var(--indigo); }
.video-solo .video { max-width: 56rem; margin-top: 1.4rem; }
.teaser-grid { display: grid; gap: 0 clamp(2rem, 5vw, 4.5rem); grid-template-areas: "text" "calc" "cta"; }
.t-text { grid-area: text; } .calc { grid-area: calc; } .t-cta { grid-area: cta; }
@media (min-width: 900px) { .teaser-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text calc" "cta calc"; align-items: start; } }
.match .amount { margin: 0.4rem 0 0.3rem; font: 800 clamp(3.6rem, 2.6rem + 6vw, 6.4rem)/0.9 var(--display); letter-spacing: -0.04em; color: var(--gold-soft); }
.match .amount-label { margin-bottom: 1.6rem; font: 700 0.85rem/1.2 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); }
.calc { margin: 1.6rem 0; padding: clamp(1.3rem, 3vw, 1.8rem); border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
@media (min-width: 900px) { .calc { margin: 0; } }
.calc h3 { margin-bottom: 0.9rem; font: 700 1.15rem/1.25 var(--display); color: var(--indigo); }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; margin-bottom: 0.6rem; }
.chips button { min-height: 44px; padding: 0 0.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); white-space: nowrap; font: 600 0.88rem/1 var(--display); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chips button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.calc input[type="range"] { width: 100%; height: 44px; margin: 0 0 0.8rem; accent-color: var(--indigo); cursor: pointer; }
.calc-bars { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.calc-row { display: grid; grid-template-columns: 6.6rem 1fr auto; align-items: center; gap: 0.6rem; font: 600 0.88rem/1.2 var(--display); }
.calc-row .track { height: 14px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.calc-row .fill { height: 100%; border-radius: 999px; transition: width 0.45s cubic-bezier(.2,.8,.2,1); }
.calc-row.you .fill { background: var(--indigo-2); }
.calc-row.matched .fill { background: var(--gold); }
.calc-row output { min-width: 4.4rem; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.match .calc p { color: var(--ink-soft); max-width: none; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.calc-total span { font: 700 0.85rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.calc-total output { font: 800 2.2rem/1 var(--display); color: var(--indigo); font-variant-numeric: tabular-nums; }
.match .calc-note { margin: 0.8rem 0 0; font-size: 0.92rem; line-height: 1.45; }
.match .save-date { margin: 0 0 0.9rem; font: 700 0.9rem/1.3 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.t-cta .cta-row { margin-top: 0; gap: 0.7rem; }
@media (min-width: 560px) { .t-cta .btn.primary { flex-basis: 100%; max-width: 22rem; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; padding: 0.7rem 1.25rem; border: 1px solid rgba(238, 240, 250, 0.35); border-radius: 999px; background: transparent; color: #fff; text-decoration: none; font: 700 0.92rem/1.1 var(--display); cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.btn:hover { border-color: var(--gold-soft); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--indigo-deep); }
.btn.primary:hover { background: #d9a14a; }
@media (max-width: 559px) { .cta-row .btn { width: 100%; min-height: 50px; } }
.thanks-text { max-width: 44rem; }
.links { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; text-decoration: none; font: 600 0.92rem/1 var(--display); color: #fff; transition: background 0.2s, border-color 0.2s; }
.links a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold-soft); }
.links a.give { background: var(--gold); border-color: var(--gold); color: var(--indigo-deep); }
@media (min-width: 900px) { .links { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .calc-row .fill { transition: none; } }

/* ---------- floating crest: back to top with reading progress ---------- */
.crest-fab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 10px 28px -10px rgba(38, 42, 85, 0.55); display: grid; place-items: center; z-index: 20; opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9); transition: opacity 0.35s, transform 0.35s, visibility 0s 0.35s; pointer-events: none; }
.crest-fab.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 0.35s, transform 0.35s, visibility 0s; }
.crest-fab svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.crest-fab circle { fill: none; stroke-width: 3; }
.crest-fab .t { stroke: var(--mist); }
.crest-fab .p { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 157; stroke-dashoffset: 157; }
.crest-fab img { width: 26px; }

/* ---------- motion: everything is visible by default; it only moves with JS on and no reduced-motion preference ---------- */
@media (prefers-reduced-motion: no-preference) {
  body:not(.no-js) .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
  .reveal { transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
  .hero-copy > * { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .hero-photo img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  body:not(.no-js) .equation:not(.in) .eq-bar i { transform: scaleX(0); }
  .wells path { stroke-dasharray: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.4,0,.2,1) 0.3s; }
  body:not(.no-js) .wells li:not(.in) path { stroke-dashoffset: 1; }
  .photo img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
  body:not(.no-js) .reveal:not(.in) .photo img, body:not(.no-js) .photo.reveal:not(.in) img { transform: scale(1.06); }
  body:not(.no-js) .reveal:not(.in) .ring .val { stroke-dashoffset: 289; }
  body:not(.no-js) .reveal:not(.in) .steps span:nth-child(n+2) { transform: scaleY(0.25); }
  body:not(.no-js) .units.pre .units-grid .n { opacity: 0; transform: scale(0.3) translateY(8px); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes settle { from { transform: scale(1.05); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .heart-band { view-timeline-name: --heart; }
    .heart .w { animation: lit linear both; animation-timeline: --heart; animation-range: cover calc(14% + var(--w) * 3%) cover calc(22% + var(--w) * 3%); }
  }
}
@keyframes lit { from { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
