/* ==========================================================================
   Hope and Inspiration Project
   --------------------------------------------------------------------------
   STRUCTURE — read this before editing:
     01 Tokens        07 Event banner   13 Contact / forms
     02 Base          08 Sections       14 Video
     03 Layout        09 Cards          15 Footer
     04 Nav           10 Journey        16 Cursor
     05 Buttons       11 Initiatives    17 Motion / reveal
     06 Hero          12 About / donate 18 What's happening
                                        19 MEDIA QUERIES  <-- ALWAYS LAST

   RULE: every @media block lives in section 19 at the bottom of this file.
   Putting one earlier lets later desktop rules win on phones — that exact bug
   shipped once already. Keep them last.
   ========================================================================== */

/* ---------- 01 Tokens ---------------------------------------------------- */
:root {
  /* Brand palette (approved Option 1 triadic) */
  --blue: #2B8FCD;
  --blue-deep: #1F6C9C;
  --blue-darker: #17537A;
  --lime: #8FCD2B;
  --lime-deep: #5C8C22;
  --magenta: #CD2B8F;
  --magenta-deep: #A8206F;

  /* The logo's own colours — used only for the mark and the cursor */
  --logo-peri: #8C99FC;
  --logo-green: #64C309;
  --logo-ink: #290064;

  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --bg: #F8F8F6;
  --surface: #FFFFFF;
  --border: #E8E8E6;

  --lime-tint-bg: #EDF7E0;
  --lime-tint-fg: #5C8C22;
  --blue-tint-bg: #E6F3FB;
  --blue-tint-fg: #1F6C9C;

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 28px;
  --maxw: 1120px;
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(26,26,26,.05), 0 2px 8px rgba(26,26,26,.04);
  --shadow-md: 0 4px 12px rgba(26,26,26,.07), 0 12px 32px rgba(26,26,26,.06);
  --shadow-lg: 0 10px 24px rgba(26,26,26,.09), 0 24px 60px rgba(26,26,26,.08);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 02 Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Global guard: stops images stretching to their HTML height attribute. */
img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.22;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 4.6vw, 52px); }
h2 { font-size: clamp(25px, 3vw, 35px); }
h3 { font-size: 21px; }

p { text-wrap: pretty; }

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

::selection { background: var(--lime); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 20px;
  z-index: 300; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 03 Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container.narrow { max-width: 760px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col-wide { grid-template-columns: 1.25fr 1fr; gap: 56px; }
.two-col-story { grid-template-columns: 1.1fr 1fr; gap: 52px; }

/* ---------- 04 Nav ------------------------------------------------------- */
.nav {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .3s var(--ease);
}
.nav.is-stuck { box-shadow: var(--shadow-sm); }

.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 84px; position: relative;
}

/* The logo is the supplied artwork, used as-is. Never substitute typography. */
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 204px; height: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  text-decoration: none; position: relative; padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--blue); }

.nav-donate {
  background: var(--magenta); color: #fff; font-size: 15.5px; font-weight: 600;
  padding: 10px 22px; border-radius: var(--radius-sm); text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-donate:hover { background: var(--magenta-deep); transform: translateY(-1px); }

.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

/* ---------- 05 Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius-sm);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              transform .2s var(--ease), border-color .2s var(--ease);
  line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-deep); transform: translateY(-2px); }

.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

.btn-outline-blue { background: transparent; color: var(--blue-deep); border-color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.btn-block { width: 100%; }

.prog-link {
  color: var(--blue-deep); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px solid var(--blue-tint-bg); padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.prog-link:hover { border-color: var(--blue); gap: 10px; }

/* ---------- 06 Hero ------------------------------------------------------ */
.hero {
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 62%, var(--blue-darker) 100%);
  color: #fff; position: relative; overflow: hidden;
  padding: 84px 0 92px;
  border-top: 4px solid var(--lime);
}
.hero-deco {
  position: absolute; right: -110px; top: -60px;
  opacity: .07; pointer-events: none; width: 520px; height: 520px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 56px; align-items: center; position: relative; z-index: 1;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 span { color: var(--lime); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px; padding: 7px 16px; margin-bottom: 22px;
}
.hero-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  flex-shrink: 0; animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(143,205,43,.6); }
  70%  { box-shadow: 0 0 0 9px rgba(143,205,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(143,205,43,0); }
}
.hero-eyebrow-text {
  font-size: 12.5px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,.94);
}
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,.9);
  line-height: 1.66; margin-bottom: 30px; max-width: 54ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stat-row {
  display: flex; gap: 40px; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.22); flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display); font-size: 27px; font-weight: 600;
  color: var(--lime); line-height: 1;
}
.hero-stat-label { font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 6px; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}

/* ---------- 07 Event banner ---------------------------------------------- */
/* Lives inside the standard container so its edges line up with every other
   section at every width. Previously it ran wider than the page gutters. */
.event-banner { background: var(--bg); padding: 30px 0; }
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.event-date-chip {
  background: var(--blue); color: #fff; border-radius: var(--radius-sm);
  padding: 11px 15px; text-align: center; flex-shrink: 0; min-width: 66px;
  font-family: var(--font-display);
}
.event-date-chip .day { font-size: 25px; font-weight: 600; line-height: 1; }
.event-date-chip .mon {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  opacity: .92; margin-top: 2px;
}
.event-copy { flex: 1 1 260px; min-width: 0; }
.event-flag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--lime-deep); display: block; margin-bottom: 3px;
}
.event-copy h2 { font-size: 19.5px; margin-bottom: 4px; }
.event-copy p { font-size: 15px; color: var(--muted); }
.event-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.event-actions .btn { padding: 11px 20px; font-size: 15px; }

.event-qr { flex-shrink: 0; text-align: center; }
.event-qr img {
  width: 92px; height: 92px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.event-qr span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 5px; }

/* ---------- 08 Sections -------------------------------------------------- */
.section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.section-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
}
.section-blue h2 { color: #fff; }

.eyebrow-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue-deep);
  margin-bottom: 12px; display: flex; align-items: center; gap: 9px;
}
.eyebrow-label::before {
  content: ""; width: 20px; height: 2px; background: var(--lime); flex-shrink: 0;
}
.section-blue .eyebrow-label { color: var(--lime); }

.section-lede {
  font-size: 18px; color: var(--muted); line-height: 1.7;
  max-width: 62ch; margin-top: 14px;
}
.section-blue .section-lede { color: rgba(255,255,255,.88); }

.page-header {
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; padding: 66px 0 56px; border-top: 4px solid var(--lime);
}
.page-header h1 { color: #fff; margin-bottom: 14px; }
.page-header p { font-size: 18px; color: rgba(255,255,255,.9); max-width: 60ch; }
.back-link {
  display: inline-block; margin-bottom: 16px; font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,.85); text-decoration: none;
}
.back-link:hover { color: #fff; }

.mission-band { background: var(--surface); }
.mission-statement {
  font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.55; max-width: 46ch; margin-bottom: 20px;
}

.prose p { margin-bottom: 17px; }
.prose p:last-child { margin-bottom: 0; }

.pull-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(19px, 2.1vw, 23px); line-height: 1.55; color: var(--ink);
}
.quote-block {
  background: var(--surface); border-left: 4px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 30px 32px; box-shadow: var(--shadow-sm);
}
.quote-block figcaption {
  margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--muted);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--blue); color: #fff; border-radius: 100px;
  padding: 9px 20px; font-size: 15px; font-weight: 600;
}

/* ---------- 09 Cards ----------------------------------------------------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin-top: 36px;
}
.prog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.prog-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-tint-bg); }
.prog-media img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.prog-media-blank {
  width: 100%; height: 100%; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.prog-media-blank svg { width: 56px; height: 56px; }
.prog-media-food { background: var(--lime-tint-bg); color: var(--lime-tint-fg); }
.prog-media-peer { background: var(--blue-tint-bg); color: var(--blue-tint-fg); }
.prog-media-homes { background: var(--blue-tint-bg); color: var(--blue-tint-fg); }
.prog-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prog-body h3 { font-size: 21px; }
.prog-body p { font-size: 16px; color: var(--muted); flex: 1; }

/* ---------- 10 Journey (horizontal scroll) ------------------------------- */
/* Desktop: the track is pinned and slides sideways as the page scrolls down.
   Phones/tablets: JS stays off and the panels stack vertically (section 18).  */
.journey { background: var(--surface); border-top: 1px solid var(--border); }
.journey-pin { position: relative; }
/* DEFAULT = the safe stacked layout. The sideways version is opt-in: JS adds
   .journey-on to <html> only when it can actually drive it (wide screen, motion
   allowed). So if JS never runs, or motion is reduced, every panel still shows. */
.journey-viewport { overflow: visible; }
.journey-track {
  display: flex; flex-direction: column; gap: 22px; align-items: stretch;
  padding: 60px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.journey-intro { display: flex; flex-direction: column; justify-content: center; }
.journey-intro h2 { margin-bottom: 6px; }
.journey-panel { display: flex; }
.journey-hint { display: none; }

.journey-on .journey-hint {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-deep);
}
.journey-hint-line {
  display: block; width: 52px; height: 2px; background: var(--border);
  position: relative; overflow: hidden; border-radius: 2px;
}
.journey-hint-line::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--lime); border-radius: 2px;
  animation: hintslide 2.4s var(--ease) infinite;
}
@keyframes hintslide {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

.jcard {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; width: 100%;
  display: flex; flex-direction: column;
  transition: box-shadow .35s var(--ease);
}
.jcard:hover { box-shadow: var(--shadow-md); }
.jcard-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-tint-bg); }
.jcard-media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.jcard-media .prog-media-blank { aspect-ratio: 4 / 3; }
.jcard-body { padding: 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.jcard-num {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--lime-deep);
}
.jcard-body h3 { font-size: 22px; }
.jcard-body p { font-size: 16px; color: var(--muted); flex: 1; }

/* ---------- 11 Initiatives ----------------------------------------------- */
.initiative-row {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 52px; align-items: center; padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.initiative-row:last-of-type { border-bottom: none; }
.initiative-row-flip .initiative-media { order: 2; }
.initiative-media img,
.initiative-media .prog-media-blank {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.initiative-copy h2 { margin-bottom: 14px; }
.initiative-copy p { margin-bottom: 15px; color: var(--muted); }
.initiative-copy p:last-of-type { margin-bottom: 0; }

.schedule-line {
  margin-top: 22px; padding: 14px 18px; background: var(--lime-tint-bg);
  border-radius: var(--radius-sm); font-size: 15.5px; color: var(--ink);
}
.schedule-line strong { color: var(--lime-tint-fg); }

.detail-img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 32px; box-shadow: var(--shadow-sm);
}
.detail-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* Peer-support group list (Community Connections) */
.group-list { display: grid; gap: 18px; margin: 26px 0 6px; }
.group-item {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--blue); border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.group-item h3 { font-size: 19px; margin-bottom: 3px; }
.group-item .group-for {
  font-size: 13.5px; font-weight: 600; color: var(--blue-deep);
  margin-bottom: 10px; display: block;
}
.group-item p { font-size: 16px; color: var(--muted); margin: 0 0 12px; }
.group-item p:last-child { margin-bottom: 0; }

/* ---------- 12 About / donate -------------------------------------------- */
.mv-band { background: var(--surface); }
.mv-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 32px; border-top: 4px solid var(--lime);
}
.mv-text { font-family: var(--font-display); font-size: 18px; line-height: 1.62; }

.story-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}

.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.leader-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.leader-photo-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-sm); margin-bottom: 16px;
}
.leader-photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm);
  background: var(--blue-tint-bg); color: var(--blue-tint-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; margin-bottom: 16px; text-align: center; padding: 12px;
}
.leader-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.leader-role { font-size: 14.5px; color: var(--blue-deep); font-weight: 600; margin-top: 2px; }
.leader-bio { font-size: 15.5px; color: var(--muted); margin-top: 12px; text-align: left; }

.board-list { columns: 2; column-gap: 40px; list-style: none; }
.board-list li { padding: 9px 0; border-bottom: 1px solid var(--border); break-inside: avoid; }
.board-list .role { color: var(--muted); font-size: 15px; }

.cta-band { text-align: center; }
.cta-band .cta-body {
  font-size: 18px; color: rgba(255,255,255,.9);
  max-width: 56ch; margin: 14px auto 28px;
}
.cta-band .hero-actions { justify-content: center; }

.donate-stack { display: flex; flex-direction: column; gap: 20px; }
.donate-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.donate-card h3 { margin-bottom: 8px; }
.donate-card p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.donate-card-quiet { background: var(--bg); box-shadow: none; }
.check-addr { font-style: normal; line-height: 1.7; font-weight: 600; }

/* Donation embed slot — drop the Zeffy iframe in here. */
.give-embed {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.give-embed iframe { width: 100%; border: 0; display: block; min-height: 760px; }
.give-placeholder {
  padding: 44px 28px; text-align: center;
  border: 2px dashed #CBD5DE; border-radius: var(--radius); background: var(--bg);
}
.give-placeholder img { width: 46px; height: 46px; margin: 0 auto 16px; opacity: .55; }
.give-placeholder h3 { margin-bottom: 8px; }
.give-placeholder p { color: var(--muted); font-size: 16px; max-width: 46ch; margin: 0 auto 18px; }

.trust-list { list-style: none; margin: 20px 0; display: grid; gap: 11px; }
.trust-list li { position: relative; padding-left: 30px; font-size: 16px; color: var(--muted); }
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 15px; height: 8px; border-left: 2.5px solid var(--lime);
  border-bottom: 2.5px solid var(--lime); transform: rotate(-45deg);
}

/* ---------- 13 Contact / forms ------------------------------------------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16.5px;
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43,143,205,.16);
}
.hidden-field { position: absolute; left: -9999px; }

.form-status { margin-top: 14px; font-size: 15.5px; display: none; }
.form-status.is-shown { display: block; }
.form-status.is-error {
  color: #8A1F1F; background: #FCEDED; border-left: 3px solid #C0392B;
  padding: 11px 14px; border-radius: var(--radius-sm);
}
.form-status.is-working { color: var(--muted); }
#contact-form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

.contact-list { list-style: none; display: grid; gap: 18px; margin: 20px 0 28px; }
.contact-list li { display: grid; gap: 3px; }
.contact-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-deep);
}
.contact-value { font-size: 17px; }
.contact-value a { color: var(--ink); }

.map-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- 14 Video ----------------------------------------------------- */
.section-video { background: var(--bg); }
.video-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; align-items: center; }
.video-wrap {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #000;
}
.video-wrap video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* ---------- 15 Footer ---------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.76); padding: 60px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px; margin-bottom: 40px;
}
.footer-brand img { width: 210px; height: auto; margin-bottom: 18px; }
.footer-org { font-weight: 600; color: #fff; margin-bottom: 8px; }
.footer-addr { font-size: 15.5px; line-height: 1.8; }
.footer-addr a { color: rgba(255,255,255,.76); }
.footer-addr a:hover { color: var(--lime); }
.footer h4 {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: #fff; margin-bottom: 14px;
}
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; font-size: 16px; }
.footer-links a:hover { color: var(--lime); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px;
  font-size: 14px; color: rgba(255,255,255,.55); max-width: 70ch;
}

/* ---------- 16 Cursor ---------------------------------------------------- */
/* The logo's own diamond, following the pointer. Fine pointers only; JS adds
   .has-cursor to <html>. Hidden entirely for touch and reduced motion.        */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  opacity: 0; transition: opacity .3s var(--ease); will-change: transform;
}
.cursor-dot .diamond {
  width: 100%; height: 100%; background: var(--logo-peri);
  border-radius: 5px; transform: rotate(45deg) scale(1);
  transition: transform .32s var(--ease), background-color .32s var(--ease),
              border-radius .32s var(--ease);
}
.has-cursor.cursor-ready .cursor-dot { opacity: 1; }
/* Over media: grow and invert whatever is underneath. */
.cursor-dot.is-hot { mix-blend-mode: difference; }
.cursor-dot.is-hot .diamond {
  transform: rotate(45deg) scale(2.6); background: #fff; border-radius: 9px;
}
.cursor-dot.is-link .diamond { transform: rotate(45deg) scale(1.7); background: var(--logo-green); }
.cursor-dot.is-down .diamond { transform: rotate(45deg) scale(.78); }

.has-cursor [data-zoom] { overflow: hidden; }
.has-cursor [data-zoom] img { transition: transform .6s var(--ease); }
.has-cursor [data-zoom].is-hovered img { transform: scale(1.055); }

/* ---------- 17 Motion / reveal ------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }
/* If JS never runs, content must still be visible. */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 18 What's happening ------------------------------------------ */
/* Dated posts: the index, the post page, and the three-up band reused by the
   homepage and the initiative pages. The card deliberately borrows the
   surface / border / lift of section 09 so the two never drift apart.
   Lime is the accent throughout — magenta stays reserved for donate and
   primary action buttons and appears nowhere below. */

.happening-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin-top: 32px;
}
.happening-slot { display: flex; }
.happening-slot > .happening-card { flex: 1 1 auto; }

.happening-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .2s var(--ease);
}
.happening-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.happening-card:focus-within { border-color: var(--blue); box-shadow: var(--shadow-md); }

.happening-card-media {
  position: relative; aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--blue-tint-bg);
}
.happening-card-media img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}

/* The event banner's date chip, in lime, sat on the corner of the photo.
   Dark text on lime rather than white — white on this green does not carry. */
.happening-chip {
  position: absolute; left: 14px; top: 14px; display: block;
  background: var(--lime); color: var(--ink);
  border-radius: var(--radius-sm); padding: 8px 12px 7px;
  text-align: center; min-width: 58px;
  font-family: var(--font-display);
  box-shadow: 0 2px 10px rgba(26,26,26,.24);
}
.happening-chip .day { display: block; font-size: 22px; font-weight: 600; line-height: 1; }
.happening-chip .mon {
  display: block; font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; margin-top: 2px;
}

.happening-card-body {
  padding: 22px 24px 24px; display: flex; flex-direction: column;
  gap: 9px; flex: 1;
}
.happening-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--lime-tint-fg);
}
.happening-card-title { font-size: 21px; }
.happening-card-link { text-decoration: none; transition: color .2s var(--ease); }
/* Stretches the title link over the whole card, so the card is one target
   while the accessible name stays the post title. Nothing else in the card
   is a link, so there is nothing for it to cover. */
.happening-card-link::after { content: ""; position: absolute; inset: 0; }
.happening-card:hover .happening-card-link { color: var(--blue-deep); }
.happening-card-body p { font-size: 16px; color: var(--muted); flex: 1; }
.happening-card-more {
  font-size: 15px; font-weight: 600; color: var(--blue-deep);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s var(--ease);
}
.happening-card:hover .happening-card-more { gap: 10px; }

/* Show more. The default state is every post visible and no button; the class
   below is added by JavaScript and is the only thing that hides a post. */
.happening-more { display: none; margin-top: 34px; text-align: center; }
.happening-list.is-collapsed .happening-more { display: block; }
.happening-list.is-collapsed .happening-slot.is-extra { display: none; }

.happening-empty {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--lime); border-radius: var(--radius);
  padding: 28px 30px; font-size: 17.5px; color: var(--muted); max-width: 62ch;
}
.happening-empty a { color: var(--blue-deep); font-weight: 600; }

/* ---- The band on the homepage and the initiative pages ---- */
.happening-band { background: var(--surface); }
.happening-band-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.happening-band-head h2 { margin-top: 2px; }
.happening-band-all { flex-shrink: 0; padding-bottom: 4px; }

/* ---- A single post ---- */
.happening-byline {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 17px;
}
.happening-byline a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.happening-byline-sep { opacity: .6; }

.happening-layout {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 52px; align-items: start;
}
.happening-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.happening-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.happening-body { margin-top: 30px; }
/* No write-up: the summary carries the post, so it is set like a pull quote. */
.happening-lede {
  margin-top: 30px; max-width: 46ch;
  font-family: var(--font-display); font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.55; color: var(--ink);
}

.happening-gallery-wrap { margin-top: 42px; }
.happening-gallery-title { font-size: 22px; margin-bottom: 18px; }
.happening-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* Photo-led posts run the grid larger, since the photos are the point. */
.happening-gallery-lg { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.happening-photo {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--blue-tint-bg);
}
.happening-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* A hover cue that costs no script — the link opens the full-size file. */
.happening-photo::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to top, rgba(26,26,26,.3), rgba(26,26,26,0) 45%);
  transition: opacity .3s var(--ease);
}
.happening-photo:hover::after, .happening-photo:focus-visible::after { opacity: 1; }

.happening-rail {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  position: sticky; top: 104px;
}
.happening-rail-title { font-size: 19px; margin-bottom: 16px; }
.happening-rail-list { list-style: none; display: grid; gap: 16px; margin-bottom: 20px; }
.happening-rail-item a {
  display: grid; grid-template-columns: 78px 1fr; gap: 13px;
  align-items: center; text-decoration: none;
}
.happening-rail-item img {
  width: 78px; height: 60px; object-fit: cover;
  border-radius: var(--radius-sm);
}
.happening-rail-copy { display: grid; gap: 2px; min-width: 0; }
.happening-rail-copy time {
  font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--lime-tint-fg);
}
.happening-rail-copy strong {
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600;
  line-height: 1.32; transition: color .2s var(--ease);
}
.happening-rail-item a:hover strong { color: var(--blue-deep); }

/* ==========================================================================
   19 MEDIA QUERIES — everything responsive lives below this line.
   Nothing may be added after this block. Order: widest to narrowest.
   ========================================================================== */

/* --- Tablet / small laptop --- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 72px; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .video-layout { grid-template-columns: 1fr; gap: 28px; }
  .two-col-wide, .two-col-story { grid-template-columns: 1fr; gap: 36px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }

  .happening-grid { grid-template-columns: repeat(2, 1fr); }
  .happening-layout { grid-template-columns: 1fr; gap: 40px; }
  .happening-rail { position: static; }
  .happening-gallery, .happening-gallery-lg { grid-template-columns: repeat(2, 1fr); }
}

/* --- Nav collapses; journey becomes a vertical stack --- */
@media (max-width: 900px) {
  .nav-inner { min-height: 72px; padding: 9px var(--gutter); }
  .nav-logo img { width: 172px; }

  .nav-toggle-label {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; cursor: pointer; flex-shrink: 0;
    border-radius: var(--radius-sm); position: relative; z-index: 2;
  }
  /* Hamburger that morphs into an X — three solid bars, no stray dashes. */
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block; position: absolute; width: 24px; height: 2.5px;
    background: var(--ink); border-radius: 2px;
    transition: transform .3s var(--ease), background-color .2s var(--ease);
  }
  .nav-toggle-label span::before { content: ""; transform: translateY(-8px); }
  .nav-toggle-label span::after  { content: ""; transform: translateY(8px); }
  .nav-toggle-input:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle-input:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle-label span::after  { transform: rotate(-45deg); }
  .nav-toggle-input:focus-visible ~ .nav-toggle-label {
    outline: 3px solid var(--magenta); outline-offset: 2px;
  }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 18px;
    display: none;
  }
  .nav-toggle-input:checked ~ .nav-links { display: flex; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .nav-link::after { display: none; }
  .nav-donate { margin-top: 14px; text-align: center; padding: 14px 22px; font-size: 17px; }

  .initiative-row { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .initiative-row-flip .initiative-media { order: 0; }
}

/* --- Journey: sideways layout. Opt-in via .journey-on, wide screens only. --- */
@media (min-width: 901px) {
  .journey-on .journey-viewport { overflow: hidden; }
  .journey-on .journey-track {
    flex-direction: row; gap: 34px;
    padding: 0 var(--gutter);
    max-width: none; margin: 0;
    will-change: transform;
  }
  .journey-on .journey-intro { flex: 0 0 auto; width: min(460px, 80vw); padding-right: 12px; }
  .journey-on .journey-panel { flex: 0 0 auto; width: min(520px, 78vw); }
}

/* --- Phones --- */
@media (max-width: 680px) {
  :root { --gutter: 20px; }

  body { font-size: 16.5px; }

  .section { padding: 52px 0; }
  .section-tight { padding: 38px 0; }
  .page-header { padding: 46px 0 40px; }
  .page-header p { font-size: 16.5px; }

  .hero { padding: 48px 0 56px; }
  .hero-sub { font-size: 16.5px; }
  .hero-deco { width: 340px; height: 340px; right: -120px; }
  .hero-stat-row { gap: 26px; margin-top: 32px; padding-top: 22px; }
  .hero-stat-num { font-size: 23px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-band .hero-actions { align-items: stretch; }

  /* Event banner sits on the same gutters as every other block. */
  .event-banner { padding: 22px 0; }
  .event-card {
    flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 20px; border-left-width: 4px;
  }
  .event-copy { flex: 1 1 auto; width: 100%; }
  .event-copy h2 { font-size: 18px; }
  .event-copy p { font-size: 14.5px; }
  .event-actions { margin-left: 0; width: 100%; flex-direction: column; }
  .event-actions .btn { width: 100%; }
  .event-qr { align-self: center; }
  .event-qr img { width: 78px; height: 78px; }

  .journey-track { padding: 44px var(--gutter); }
  .card-grid { grid-template-columns: 1fr; gap: 20px; }
  .leader-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .board-list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand img { width: 180px; }

  .quote-block { padding: 24px 22px; }
  .mv-card { padding: 24px; }
  .donate-card { padding: 22px; }
  .group-item { padding: 18px 20px; }
  .detail-actions { flex-direction: column; align-items: stretch; }
  .detail-actions .btn { width: 100%; }
  .map-frame iframe { height: 240px; }
  .give-embed iframe { min-height: 680px; }
  .give-placeholder { padding: 32px 20px; }

  .happening-grid { grid-template-columns: 1fr; gap: 20px; }
  .happening-band-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .happening-band-all { padding-bottom: 0; }
  .happening-more .btn { width: 100%; }
  .happening-empty { padding: 22px 20px; font-size: 16.5px; }
  .happening-byline { font-size: 15.5px; gap: 8px; }
  .happening-cover img { aspect-ratio: 3 / 2; }
  .happening-gallery, .happening-gallery-lg { gap: 10px; }
  .happening-gallery-wrap { margin-top: 32px; }
  .happening-rail { padding: 22px 20px; }
}

@media (max-width: 400px) {
  .nav-logo img { width: 148px; }
  .nav-inner { min-height: 66px; }
  .hero-stat-row { gap: 20px; }
}

/* --- Reduced motion: strip every non-essential animation --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .journey-track { transform: none !important; }
  .journey-on .journey-viewport { overflow: visible; }
  .journey-on .journey-track { flex-direction: column; max-width: var(--maxw); margin: 0 auto; padding: 60px var(--gutter); }
  .journey-on .journey-intro, .journey-on .journey-panel { width: 100%; }
  .cursor-dot { display: none !important; }
}

/* --- Print --- */
@media print {
  .nav, .footer, .cursor-dot, .event-actions, .hero-actions { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .hero, .page-header, .section-blue { background: #fff !important; color: #000 !important; }
  .hero h1, .page-header h1, .section-blue h2, .hero-sub, .page-header p { color: #000 !important; }
}
