/* =============================================================
   WakeUp Health Organization — Design System
   Editorial layout · tactile surfaces · emerald / sand / coral
   Poppins throughout. Vanilla CSS, no dependencies.
   ============================================================= */

/* -------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------- */
:root {
  /* Brand — deep emerald, warm sand, coral */
  --emerald-ink: #0f3d33;
  --emerald: #1b7a63;
  --emerald-lite: #2f9c7f;
  --mint: #4fb99a;
  --mint-pale: #a9ddcb;
  --coral: #f26a4b;
  --coral-deep: #d94a2b;
  --amber: #e8a33d;
  --amber-deep: #c07f1c;

  /* Warm neutral ramp — tinted toward the sand, never cool grey */
  --ink-900: #0b2320;
  --ink-800: #14342e;
  --ink-700: #24473f;
  --ink-600: #3d5d54;
  --ink-500: #5f7a71;
  --ink-400: #8b9d96;
  --ink-300: #b8c4bd;
  --ink-200: #d8dcd2;
  --ink-100: #e9e6dc;

  /* Surfaces — the page is tinted paper, not white */
  --sand: #faf6ef;
  --sand-deep: #f0e8da;
  --sand-deeper: #e6dbc8;
  --paper: #fffdf9;
  --white: #ffffff;
  --surface: var(--sand);
  --surface-alt: var(--sand-deep);
  --surface-mint: #e7f3ee;
  --surface-coral: #fdece7;
  --surface-deep: #0b2320;
  --surface-deep-2: #0f3d33;

  /* Semantic */
  --text: var(--ink-800);
  --text-muted: var(--ink-600);
  --text-soft: var(--ink-500);
  --line: #ddd7c9;
  --line-strong: #c6bda8;
  --rule: var(--ink-900);

  /* Gradients — used sparingly; this system leans on flat ink + texture */
  --grad-emerald: linear-gradient(135deg, #1b7a63 0%, #0f3d33 100%);
  --grad-coral: linear-gradient(135deg, #f6864b 0%, #e04a2b 100%);
  --grad-warm: linear-gradient(120deg, #e8a33d 0%, #f26a4b 100%);
  --grad-ink: linear-gradient(165deg, #12433a 0%, #0b2320 55%, #071a17 100%);

  /* Radii — soft but not pill-everything */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Tactile elevation: SOLID offset shadows, no blur.
     This is what stops surfaces reading as flat. */
  --off-1: 3px 3px 0 var(--ink-900);
  --off-2: 5px 5px 0 var(--ink-900);
  --off-3: 8px 8px 0 var(--ink-900);
  --off-em: 5px 5px 0 var(--emerald-ink);
  --off-coral: 5px 5px 0 var(--coral-deep);
  --off-soft: 5px 5px 0 var(--sand-deeper);
  /* ambient depth, used behind big media only */
  --amb: 0 18px 40px rgba(11, 35, 32, 0.16);
  --amb-lg: 0 30px 70px rgba(11, 35, 32, 0.22);

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --container-narrow: 880px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 8vw, 8rem);

  /* Type — Poppins throughout */
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 84px;      /* nav height at rest */
  --header-h-sm: 62px;   /* nav height once condensed */
  /* measured at runtime so the fixed bars can be offset exactly */
  --topbar-h: 42px;
  --nav-h: 84px;
}

/* -------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* anchors land clear of the condensed nav, which is what's on screen by the
     time any in-page link is followed */
  scroll-padding-top: calc(var(--header-h-sm) + 20px);
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  /* the info bar and nav are both fixed, so reserve their combined
     at-rest height here. Stays constant when the bar collapses, so the
     page never jumps. */
  padding-top: calc(var(--topbar-h) + var(--nav-h));
}

/* Paper grain over the whole page — the single cheapest way to stop
   large flat fills from reading as digital-flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video, picture { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }

a { color: var(--emerald); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--coral-deep); }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--mint-pale); color: var(--ink-900); }

.skip-link {
  position: absolute;
  left: 50%; top: -100px;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--ink-900);
  color: var(--sand);
  padding: 0.85rem 1.5rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; color: var(--sand); }

/* -------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  text-wrap: balance;
}

/* Oversized editorial display */
.display {
  font-size: clamp(2.5rem, 1.35rem + 3.9vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.6rem); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.06; }
h3 { font-size: clamp(1.28rem, 1.06rem + 0.9vw, 1.7rem); }
h4 { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem); }

.h-sans { font-family: var(--font); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }

p { text-wrap: pretty; }
p + p { margin-top: 1.1em; }

.lead {
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.3rem);
  line-height: 1.68;
  color: var(--text-muted);
  font-weight: 400;
}
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.small { font-size: 0.9375rem; }
.tiny { font-size: 0.8125rem; }

/* Eyebrow — now a boxed editorial tag rather than a floating caption */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-ink);
  padding: 0.42rem 0.85rem;
  border: 1.5px solid var(--emerald-ink);
  border-radius: var(--r-pill);
  background: transparent;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}
.eyebrow.is-centered { justify-content: center; }
.eyebrow.on-dark { color: var(--mint-pale); border-color: rgba(169, 221, 203, 0.5); }
.eyebrow.on-dark::before { background: var(--amber); }
.eyebrow.warm { color: var(--coral-deep); border-color: var(--coral-deep); }
.eyebrow.warm::before { background: var(--emerald); }

/* Colour accent inside headings — flat ink, not gradient */
.grad-text { color: var(--emerald); }
.grad-text-coral { color: var(--coral-deep); }

/* Hand-drawn highlight behind a keyword */
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark::after {
  content: "";
  position: absolute;
  left: -1.5%; right: -1.5%;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--amber);
  opacity: 0.55;
  border-radius: 2px;
  z-index: -1;
  transform: scaleX(0) rotate(-0.6deg);
  transform-origin: left;
  animation: markIn 0.85s 0.35s var(--ease-out) forwards;
}
@keyframes markIn { to { transform: scaleX(1) rotate(-0.6deg); } }

/* -------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3.25rem, 5.5vw, 5rem); }
.section--alt { background: var(--sand-deep); }
.section--warm { background: var(--surface-coral); }
.section--mint { background: var(--surface-mint); }
.section--deep { background: var(--surface-deep); color: var(--ink-300); }
.section--deep h1, .section--deep h2, .section--deep h3, .section--deep h4 { color: var(--sand); }
.section--deep .muted { color: #9fb5ac; }

/* Ruled section edges — visible structure, editorial */
.section--ruled { border-top: 2px solid var(--rule); }

.grid { display: grid; gap: clamp(1.15rem, 2.2vw, 1.9rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 236px), 1fr)); }

.center { text-align: center; }

/* ---- Editorial numbered section head ---- */
.sec-head {
  display: grid;
  gap: 1.1rem;
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
  justify-items: start;
}
.sec-head.is-centered { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head__title { margin: 0; }
.sec-head--split {
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem 2.5rem;
}
.sec-head--split .sec-head__copy { max-width: 48rem; display: grid; gap: 1.1rem; justify-items: start; }
@media (max-width: 780px) {
  .sec-head--split { grid-template-columns: 1fr; align-items: start; }
}

/* The number + rule that opens each major section */
.sec-num {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.sec-num b {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--coral-deep);
}
.sec-num::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--rule);
  opacity: 0.85;
}
.section--deep .sec-num { color: var(--mint-pale); }
.section--deep .sec-num b { color: var(--amber); }
.section--deep .sec-num::after { background: rgba(169, 221, 203, 0.32); }

/* Decorative organic blobs */
.bloom {
  position: absolute;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(50px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.bloom--teal { background: rgba(79, 185, 154, 0.4); }
.bloom--blue { background: rgba(27, 122, 99, 0.28); }
.bloom--rose { background: rgba(242, 106, 75, 0.24); }
.bloom--orange { background: rgba(232, 163, 61, 0.3); }
.section > .container { position: relative; z-index: 1; }

/* Curved divider between sections */
.wave {
  display: block;
  width: 100%;
  height: clamp(38px, 5vw, 72px);
  fill: currentColor;
  margin-bottom: -1px;
}
.wave--flip { transform: rotate(180deg); margin-bottom: 0; margin-top: -1px; }

/* -------------------------------------------------------------
   5. BUTTONS — pressable, solid offset shadow
   ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--sand);
  --btn-sh: var(--ink-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.7rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border: 2px solid var(--ink-900);
  box-shadow: 4px 4px 0 var(--btn-sh);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--btn-sh); color: var(--btn-fg); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--btn-sh); }
.btn svg { flex: none; }

.btn--primary { --btn-bg: var(--emerald); --btn-fg: #fff; --btn-sh: var(--emerald-ink); border-color: var(--emerald-ink); }
.btn--donate  { --btn-bg: var(--coral); --btn-fg: #fff; --btn-sh: var(--ink-900); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-sh: var(--ink-900); }
.btn--ghost:hover { background: var(--paper); }
.btn--white   { --btn-bg: var(--paper); --btn-fg: var(--ink-900); --btn-sh: var(--emerald-ink); }
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: var(--sand); --btn-sh: var(--mint);
  border-color: var(--mint-pale);
}
.btn--ghost-light:hover { background: rgba(169, 221, 203, 0.14); }

.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.85rem; box-shadow: 3px 3px 0 var(--btn-sh); }
.btn--sm:hover { box-shadow: 1px 1px 0 var(--btn-sh); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.02rem; box-shadow: 5px 5px 0 var(--btn-sh); }
.btn--lg:hover { box-shadow: 3px 3px 0 var(--btn-sh); }
/* Full-width buttons must be allowed to wrap. Inheriting the default
   white-space:nowrap made a long label (e.g. "Continue to secure payment")
   set a ~326px min-content that pushed its whole form grid wider than the
   panel on small screens. */
.btn--block { width: 100%; min-width: 0; white-space: normal; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--emerald-ink);
  border-bottom: 2px solid var(--mint);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--coral-deep); border-color: var(--coral); }
.link-arrow:hover svg { transform: translateX(5px); }

/* -------------------------------------------------------------
   6. BADGES / STICKERS / CHIPS
   ------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--sand-deep);
  color: var(--ink-800);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1.5px solid var(--ink-900);
  line-height: 1;
}
.badge--teal   { background: var(--mint-pale); color: var(--emerald-ink); }
.badge--blue   { background: var(--surface-mint); color: var(--emerald-ink); }
.badge--rose   { background: var(--surface-coral); color: var(--coral-deep); }
.badge--orange { background: #fbe9c9; color: var(--amber-deep); }
.badge--free   { background: var(--emerald); color: #fff; border-color: var(--emerald-ink); }
.badge--glass  { background: rgba(250, 246, 239, 0.16); color: var(--sand); border-color: rgba(250, 246, 239, 0.4); }

/* Sticker — a badge that sits on media, rotated like it was placed by hand */
.sticker {
  transform: rotate(-3.5deg);
  box-shadow: 2px 2px 0 var(--ink-900);
}
.sticker--r { transform: rotate(2.5deg); }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.6rem 1.15rem;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink-900);
  background: var(--paper);
  color: var(--ink-800);
  font-size: 0.87rem;
  font-weight: 600;
  box-shadow: 2px 2px 0 var(--ink-900);
  transition: all 0.18s var(--ease);
}
.chip:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink-900); color: var(--emerald-ink); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--emerald-ink);
  color: var(--sand);
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink-900);
}

/* -------------------------------------------------------------
   7. HEADER
   ------------------------------------------------------------- */
.topbar {
  background: var(--ink-900);
  color: var(--mint-pale);
  font-size: 0.8rem;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 55;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
/* slides out of the way as soon as the page moves */
body.is-scrolled .topbar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 42px;
  padding-block: 0.35rem;
}
.topbar__list { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--mint-pale); font-weight: 400; }
.topbar__item svg { color: var(--amber); flex: none; }
a.topbar__item:hover { color: var(--sand); }
.topbar__socials { display: flex; align-items: center; gap: 0.45rem; }
.soc {
  display: grid; place-items: center;
  width: 31px; height: 31px;
  border-radius: 50%;
  border: 1.5px solid rgba(169, 221, 203, 0.35);
  color: var(--mint-pale);
  transition: all 0.25s var(--ease);
}
.soc:hover { background: var(--amber); border-color: var(--amber); color: var(--ink-900); transform: translateY(-2px); }

.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 50;
  background: var(--sand);
  border-bottom: 2px solid var(--ink-900);
  transition: top 0.35s var(--ease), box-shadow 0.3s var(--ease);
}
/* rides up to the very top once the info bar has gone */
body.is-scrolled .site-header {
  top: 0;
  box-shadow: 0 4px 0 rgba(11, 35, 32, 0.08), 0 12px 28px rgba(11, 35, 32, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height 0.35s var(--ease);
}
body.is-scrolled .nav { min-height: var(--header-h-sm); }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img {
  height: clamp(42px, 4.4vw, 54px);
  width: auto;
  transition: height 0.35s var(--ease);
}
body.is-scrolled .brand img { height: clamp(34px, 3.4vw, 42px); }

.nav__menu { display: flex; align-items: center; gap: clamp(0.1rem, 0.8vw, 0.45rem); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}
/* Hover and "you are here" must never look the same.
   Hover   = soft mint pill, no rule at all.
   Current = fine coral rule + heavier type, always on. */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.38rem;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.26s var(--ease);
}
.nav__link:hover {
  color: var(--emerald-ink);
  background: var(--surface-mint);
}

.nav__link[aria-current="page"] { color: var(--ink-900); font-weight: 700; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__item { position: relative; }
.nav__caret { transition: transform 0.28s var(--ease); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 268px;
  padding: 0.55rem;
  background: var(--paper);
  border: 2px solid var(--ink-900);
  border-radius: var(--r-md);
  box-shadow: var(--off-2);
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.26s var(--ease);
}
.nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: grid; gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-xs);
  color: var(--ink-800);
  font-size: 0.9rem;
  font-weight: 600;
}
.dropdown a span { display: block; font-size: 0.77rem; font-weight: 400; color: var(--text-soft); line-height: 1.45; }
.dropdown a:hover { background: var(--surface-mint); color: var(--emerald-ink); }
/* current item reads as coral + bold, distinct from the mint hover */
.dropdown a[aria-current="page"] {
  background: var(--surface-coral);
  color: var(--coral-deep);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--coral);
}
.dropdown a[aria-current="page"] span { color: var(--coral-deep); opacity: 0.75; }

.nav__actions { display: flex; align-items: center; gap: 0.7rem; flex: none; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--r-md);
  border: 2px solid var(--ink-900);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink-900);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.burger:hover {
  background: var(--surface-mint);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink-900);
}
.burger:focus-visible {
  outline: 2.5px solid var(--emerald);
  outline-offset: 2px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink-900);
  transform-origin: center;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}
.burger[aria-expanded="true"] {
  background: var(--surface-coral);
  border-color: var(--coral-deep);
  box-shadow: 1px 1px 0 var(--coral-deep);
}
.burger[aria-expanded="true"] span {
  background: var(--coral-deep);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(400px, 88vw);
  background: var(--sand);
  z-index: 90;
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease);
  border-left: 2px solid var(--ink-900);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.drawer__close {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink-900);
  display: grid; place-items: center;
  color: var(--ink-900);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink-900);
}
.drawer__menu { display: grid; gap: 0.15rem; }
.drawer__menu a {
  display: block;
  padding: 0.9rem 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-900);
  border-bottom: 1.5px solid var(--line);
  border-left: 4px solid transparent;
  transition: color 0.22s var(--ease), padding-left 0.22s var(--ease), border-left-color 0.22s var(--ease);
}
/* hover shifts to emerald and indents; current keeps a solid coral marker */
.drawer__menu a:hover { color: var(--emerald); padding-left: 0.9rem; }
.drawer__menu a[aria-current="page"] {
  color: var(--coral-deep);
  font-weight: 700;
  border-left-color: var(--coral);
  padding-left: 0.9rem;
}
.drawer__foot { display: grid; gap: 0.85rem; margin-top: auto; padding-top: 1rem; }
.drawer__contact { display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }

.scrim {
  position: fixed; inset: 0;
  background: rgba(11, 35, 32, 0.55);
  z-index: 80;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.scrim.is-open { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* -------------------------------------------------------------
   8. HERO — asymmetric editorial
   ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4.5rem, 8vw, 8rem);
  background:
    radial-gradient(46rem 34rem at 88% -6%, rgba(79, 185, 154, 0.2), transparent 62%),
    radial-gradient(38rem 30rem at 4% 104%, rgba(232, 163, 61, 0.2), transparent 62%),
    var(--sand);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero__title { margin: 0; }
.hero__lead { max-width: 33rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 2rem;
  padding-top: 1.6rem;
  margin-top: 0.4rem;
  border-top: 2px solid var(--rule);
  width: 100%;
}
.trust-item { display: grid; gap: 0.05rem; }
.trust-item b {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--emerald-ink);
  line-height: 1;
}
.trust-item span { font-size: 0.76rem; color: var(--text-soft); font-weight: 500; letter-spacing: 0.02em; }
.trust-sep { width: 2px; height: 32px; background: var(--line-strong); }

/* Image cluster — one frame breaks out of the column */
.hero__art {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.7rem, 1.4vw, 1rem);
  align-items: stretch;
}
.hero__shape {
  position: absolute;
  inset: -10% -8% -14% -6%;
  background: var(--mint);
  opacity: 0.18;
  border-radius: 48% 52% 44% 56% / 54% 44% 56% 46%;
  z-index: -1;
  animation: morph 18s ease-in-out infinite alternate;
}
@keyframes morph {
  0%   { border-radius: 48% 52% 44% 56% / 54% 44% 56% 46%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 58% 42% 60% 40% / 42% 58% 42% 58%; transform: rotate(5deg) scale(1.04); }
}
.hero__pic {
  position: relative;
  overflow: hidden;
  min-width: 0; /* grid items default to min-content; let them track the column */
  border-radius: var(--r-lg);
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-3);
  background: var(--ink-100);
}
.hero__pic img { width: 100%; height: 100%; object-fit: cover; }
.hero__pic--main { grid-column: span 2; aspect-ratio: 16 / 10; transform: rotate(-1deg); }
.hero__pic--a { aspect-ratio: 4 / 3.15; transform: rotate(1.2deg); box-shadow: var(--off-2); }
.hero__pic--b { aspect-ratio: 4 / 3.15; transform: rotate(-0.8deg); box-shadow: var(--off-2); }

.hero__float {
  position: absolute;
  left: -6%;
  bottom: -8%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.15rem;
  background: var(--paper);
  border: 2.5px solid var(--ink-900);
  border-radius: var(--r-md);
  box-shadow: var(--off-2);
  transform: rotate(-2deg);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-10px); }
}
.hero__float-ic {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--coral);
  color: #fff;
  border: 2px solid var(--ink-900);
  flex: none;
}
.hero__float b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink-900); }
.hero__float span { font-size: 0.75rem; color: var(--text-soft); font-weight: 500; }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 640px; }
  .hero__float { left: 0; }
}
@media (max-width: 520px) {
  /* the float becomes a normal grid item here — span both columns so its
     natural width can't push past a single track */
  .hero__float {
    position: static;
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
    margin-top: 1.4rem;
    animation: none;
    transform: rotate(-1.5deg);
  }
  .hero__pic { border-width: 2px; }
  .hero__pic--main, .hero__pic--a, .hero__pic--b { transform: none; }
}

/* -------------------------------------------------------------
   9. PAGE HERO (inner pages)
   ------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 6vw, 6rem);
  background: var(--grad-ink);
  color: var(--ink-300);
  isolation: isolate;
  border-bottom: 2px solid var(--ink-900);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42rem 30rem at 84% 0%, rgba(79, 185, 154, 0.3), transparent 62%),
    radial-gradient(36rem 26rem at 4% 100%, rgba(232, 163, 61, 0.22), transparent 64%);
}
.page-hero__inner { display: grid; gap: 1.15rem; max-width: 56rem; justify-items: start; }
.page-hero h1 { color: var(--sand); }
.page-hero .lead { color: #a9c1b8; max-width: 46rem; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #7f9b91;
}
.crumbs a { color: var(--mint-pale); }
.crumbs a:hover { color: var(--amber); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: #4b6a60; }
.crumbs [aria-current] { color: var(--sand); }

/* -------------------------------------------------------------
   10. CARDS — bordered, offset, tactile
   ------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2.5px solid var(--ink-900);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--off-2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--off-3); }

.action-card {
  position: relative;
  display: grid;
  gap: 0.95rem;
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  background: var(--paper);
  border: 2.5px solid var(--ink-900);
  border-radius: var(--r-lg);
  box-shadow: var(--off-2);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  justify-items: start;
}
.action-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 7px;
  background: var(--emerald);
}
.action-card:hover { transform: translate(-3px, -3px); box-shadow: var(--off-3); }
.action-card--warm::before { background: var(--amber); }
.action-card--rose::before { background: var(--coral); }
.action-card__ic {
  width: 58px; height: 58px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--surface-mint);
  color: var(--emerald-ink);
  border: 2px solid var(--ink-900);
  transition: transform 0.3s var(--ease);
}
.action-card:hover .action-card__ic { transform: rotate(-8deg); }
.action-card--warm .action-card__ic { background: #fbe9c9; color: var(--amber-deep); }
.action-card--rose .action-card__ic { background: var(--surface-coral); color: var(--coral-deep); }
.action-card h3 { margin: 0; }
.action-card p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* Cause card */
.cause-card { height: 100%; }
.cause-card__media {
  position: relative;
  aspect-ratio: 16 / 10.4;
  overflow: hidden;
  background: var(--ink-100);
  border-bottom: 2.5px solid var(--ink-900);
}
.cause-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.cause-card:hover .cause-card__media img { transform: scale(1.06); }
.cause-card__tag { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; }
.cause-card__body { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.35rem 1.45rem 1.55rem; flex: 1; }
.cause-card__body h3 { margin: 0; font-size: 1.15rem; }
.cause-card__body h3 a { color: inherit; }
.cause-card__body h3 a:hover { color: var(--coral-deep); }
.cause-card__body p {
  margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cause-card__foot { margin-top: auto; display: grid; gap: 0.7rem; }

/* Progress — chunky, bordered */
.progress {
  position: relative;
  height: 12px;
  border-radius: var(--r-pill);
  background: var(--sand-deep);
  border: 2px solid var(--ink-900);
  overflow: hidden;
}
.progress__bar {
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  background: var(--emerald);
  transition: width 1.3s var(--ease-out);
}
.progress__bar.warm { background: var(--amber); }
.progress__bar.rose { background: var(--coral); }
.progress-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; font-size: 0.8rem; font-weight: 500; color: var(--text-soft);
}
.progress-meta b { color: var(--ink-900); font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; }

/* Program card */
.program-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 1.55rem 1.5rem 1.7rem;
  background: var(--paper);
  border: 2.5px solid var(--ink-900);
  border-radius: var(--r-lg);
  box-shadow: var(--off-2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  justify-items: start;
}
.program-card:hover { transform: translate(-3px, -3px); box-shadow: var(--off-3); }
.program-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.program-card__ic {
  width: 50px; height: 50px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--surface-mint);
  color: var(--emerald-ink);
  border: 2px solid var(--ink-900);
}
.program-card h3 { margin: 0; font-size: 1.08rem; }
.program-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.62; }
.program-card__meta {
  display: grid; gap: 0.4rem;
  padding-top: 0.9rem; margin-top: auto;
  border-top: 2px dashed var(--line-strong);
  width: 100%;
}
.meta-row {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.84rem; font-weight: 600; color: var(--ink-800);
}
.meta-row svg { flex: none; margin-top: 3px; color: var(--emerald); }
.meta-row span { font-weight: 400; color: var(--text-muted); }

/* Event card */
.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.3rem 1.45rem;
  background: var(--paper);
  border: 2.5px solid var(--ink-900);
  border-radius: var(--r-md);
  box-shadow: var(--off-2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.event-card:hover { transform: translate(-3px, -3px); box-shadow: var(--off-3); }
.event-date {
  display: grid; place-items: center; align-content: center;
  width: 72px;
  padding: 0.65rem 0.4rem;
  border-radius: var(--r-sm);
  background: var(--emerald-ink);
  color: var(--sand);
  border: 2px solid var(--ink-900);
  flex: none;
  line-height: 1;
}
.event-date b { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; }
.event-date span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-top: 0.3rem; }
.event-card__body { display: grid; gap: 0.5rem; min-width: 0; justify-items: start; }
.event-card__body h3 { margin: 0; font-size: 1.04rem; }
.event-card__meta { display: grid; gap: 0.3rem; }

/* Team card */
.team-card { text-align: center; }
.team-card__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-100);
  margin-bottom: 1.05rem;
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.team-card:hover .team-card__media { transform: translate(-3px, -3px); box-shadow: var(--off-3); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.team-card:hover .team-card__media img { transform: scale(1.05); }
.team-card__ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--surface-mint);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--emerald);
}
.team-card h3 { margin: 0; font-size: 1.12rem; }
.team-card p { margin: 0.2rem 0 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--coral-deep); }

/* Stat tile */
.stat {
  display: grid; gap: 0.3rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: var(--r-lg);
  background: rgba(250, 246, 239, 0.05);
  border: 2px solid rgba(169, 221, 203, 0.28);
  transition: transform 0.2s var(--ease), background-color 0.3s var(--ease);
}
.stat:hover { transform: translate(-3px, -3px); background: rgba(250, 246, 239, 0.09); box-shadow: 4px 4px 0 rgba(169, 221, 203, 0.3); }
.stat b {
  font-size: clamp(2.5rem, 1.4rem + 3.2vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--amber);
}
.stat span { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint-pale); }
.stat p { font-size: 0.86rem; color: #9fb5ac; margin: 0.25rem 0 0; }

/* Value tile */
.tile {
  display: grid; gap: 0.8rem;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  justify-items: start;
}
.tile:hover { transform: translate(-3px, -3px); box-shadow: var(--off-3); }
.tile__ic {
  width: 50px; height: 50px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--surface-mint);
  color: var(--emerald-ink);
  border: 2px solid var(--ink-900);
}
.tile h3 { margin: 0; font-size: 1.1rem; }
.tile p { margin: 0; font-size: 0.93rem; color: var(--text-muted); }

/* -------------------------------------------------------------
   11. MISSION / VISION
   ------------------------------------------------------------- */
.mv {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.8rem, 3.2vw, 2.9rem);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-3);
  overflow: hidden;
  justify-items: start;
}
.mv::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 9px; background: var(--emerald); }
.mv--mission::before { background: var(--coral); }
.mv__num {
  position: absolute;
  right: 1.3rem; top: 1rem;
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--emerald);
  opacity: 0.14;
}
.mv--mission .mv__num { color: var(--coral); opacity: 0.18; }
.mv h3 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
.mv p { margin: 0; color: var(--text-muted); }
.mv__label,
.mv .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-ink);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  line-height: 1;
}
.mv__label::before,
.mv .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex: none;
}
.mv__label--warm,
.mv--mission .mv__label,
.mv--mission .eyebrow {
  color: var(--coral-deep);
}
.mv__label--warm::before,
.mv--mission .mv__label::before,
.mv--mission .eyebrow::before {
  background: var(--coral);
}

/* -------------------------------------------------------------
   12. SPLIT / MEDIA
   ------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(2rem, 4.5vw, 4.25rem);
  align-items: center;
}
.split__copy { display: grid; gap: 1.15rem; justify-items: start; }
.split__copy h2 { margin: 0; }

.frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-3);
  background: var(--ink-100);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 11; }

.frame-duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
.frame-duo .frame:first-child { margin-top: 2.5rem; transform: rotate(-1.5deg); }
.frame-duo .frame:nth-child(2) { transform: rotate(1.5deg); }
.frame-badge {
  position: absolute;
  z-index: 3;
  left: 50%; bottom: -1.2rem;
  transform: translateX(-50%) rotate(-2deg);
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: var(--ink-900);
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-1);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
.frame-badge svg { color: var(--ink-900); }

.checklist { display: grid; gap: 0.7rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.97rem; color: var(--text-muted); }
.checklist svg { flex: none; margin-top: 4px; color: var(--emerald); }
.checklist b { color: var(--ink-900); font-weight: 700; }

/* -------------------------------------------------------------
   13. TABS
   ------------------------------------------------------------- */
.tabs {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: var(--r-pill);
  background: var(--sand-deep);
  border: 2px solid var(--ink-900);
  box-shadow: var(--off-1);
  flex-wrap: wrap;
}
.tabs button {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.22s var(--ease);
}
.tabs button:hover { color: var(--ink-900); }
.tabs button[aria-selected="true"] { background: var(--emerald-ink); color: var(--sand); }
.tabs button .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.tabs button[aria-selected="true"] .dot { background: var(--amber); opacity: 1; }
.tabpanel[hidden] { display: none; }

/* -------------------------------------------------------------
   14. TESTIMONIALS
   ------------------------------------------------------------- */
.quote-slider { position: relative; }
.quote-track { display: grid; }
.quote-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
}
.quote-slide.is-active { opacity: 1; visibility: visible; transform: translateY(0); position: relative; }

.quote-card {
  position: relative;
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.9rem, 3.6vw, 3.25rem);
  border-radius: var(--r-xl);
  background: rgba(250, 246, 239, 0.05);
  border: 2px solid rgba(169, 221, 203, 0.3);
}
.quote-card__mark { font-size: 4.5rem; line-height: 0.6; font-weight: 700; color: var(--amber); height: 2rem; }
.quote-card blockquote {
  margin: 0;
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.18rem);
  line-height: 1.78;
  color: #cfdfd8;
  font-weight: 300;
}
.quote-card blockquote p + p { margin-top: 1rem; }
.quote-card__by {
  display: flex; align-items: center; gap: 0.85rem;
  padding-top: 1.1rem;
  border-top: 2px solid rgba(169, 221, 203, 0.22);
  flex-wrap: wrap;
}
.quote-card__av {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber);
  color: var(--ink-900);
  font-weight: 700;
  border: 2px solid var(--ink-900);
  flex: none;
}
.quote-card__by b { color: var(--sand); display: block; font-size: 0.97rem; }
.quote-card__by span { font-size: 0.81rem; color: #9fb5ac; }
.quote-card__by .btn { margin-left: auto; }

.quote-nav { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.75rem; flex-wrap: wrap; }
.qnav-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--mint-pale);
  color: var(--mint-pale);
  transition: all 0.2s var(--ease);
}
.qnav-btn:hover { background: var(--amber); color: var(--ink-900); border-color: var(--amber); }
.qdots { display: flex; gap: 0.45rem; margin-left: auto; }
.qdot { width: 10px; height: 10px; border-radius: 50%; background: rgba(169, 221, 203, 0.35); transition: all 0.3s var(--ease); }
.qdot[aria-selected="true"] { background: var(--amber); width: 30px; border-radius: var(--r-pill); }

/* -------------------------------------------------------------
   15. GALLERY + LIGHTBOX
   ------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}
.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-100);
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 35, 32, 0.6), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gallery__item:hover { transform: translate(-3px, -3px); box-shadow: var(--off-3); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.gallery__zoom {
  position: absolute;
  right: 0.7rem; bottom: 0.7rem;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber);
  color: var(--ink-900);
  border: 2px solid var(--ink-900);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(7, 26, 23, 0.94);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 84vh;
  width: auto;
  border-radius: var(--r-md);
  border: 3px solid var(--sand);
  transform: scale(0.95);
  transition: transform 0.4s var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lb-btn {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: transparent;
  border: 2px solid var(--mint-pale);
  color: var(--mint-pale);
  transition: all 0.22s var(--ease);
}
.lb-btn:hover { background: var(--amber); color: var(--ink-900); border-color: var(--amber); }
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb-prev { left: clamp(0.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-count { position: absolute; bottom: clamp(1rem, 3vw, 2rem); left: 50%; transform: translateX(-50%); color: #9fb5ac; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.08em; }

/* -------------------------------------------------------------
   16. CTA BAND / DONATE STRIP
   ------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4.5rem, 7vw, 7rem);
  color: var(--sand);
  border-block: 2px solid var(--ink-900);
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11, 35, 32, 0.95) 22%, rgba(15, 61, 51, 0.86) 58%, rgba(27, 122, 99, 0.72));
}
.cta-band h2 { color: var(--sand); }
.cta-band p { color: #b9cdc5; }
.cta-band__inner { display: grid; gap: 1.4rem; max-width: 48rem; justify-items: start; }
.cta-band__inner.is-centered { margin-inline: auto; text-align: center; justify-items: center; }

.donate-strip {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--coral);
  color: #fff;
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-3);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.75rem 2.5rem;
}
.donate-strip::after {
  content: ""; position: absolute; right: -70px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.donate-strip::before {
  content: ""; position: absolute; left: -50px; bottom: -100px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(11, 35, 32, 0.1);
}
.donate-strip > * { position: relative; z-index: 1; }
.donate-strip h2 { color: #fff; margin: 0 0 0.55rem; }
.donate-strip p { color: rgba(255, 255, 255, 0.94); margin: 0; }
@media (max-width: 780px) { .donate-strip { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------
   17. NEWSLETTER
   ------------------------------------------------------------- */
.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 1fr);
  align-items: center;
  gap: 1.75rem 3rem;
}
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter h2 { margin: 0 0 0.5rem; }
.nl-form {
  display: flex;
  gap: 0.55rem;
  padding: 0.45rem;
  background: rgba(250, 246, 239, 0.07);
  border: 2px solid rgba(169, 221, 203, 0.35);
  border-radius: var(--r-pill);
  flex-wrap: wrap;
}
.nl-form input {
  flex: 1 1 200px; min-width: 0;
  padding: 0.82rem 1.2rem;
  border: 0; background: transparent;
  color: var(--sand);
  font-size: 0.95rem;
}
.nl-form input::placeholder { color: #7f9b91; }
.nl-form input:focus { outline: none; }
.nl-form .btn { flex: none; }

/* -------------------------------------------------------------
   18. FORMS
   ------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.1rem; min-width: 0; }
/* grid items default to min-width:auto, so a <select> with long option text
   (the cause list) would push the whole form wider than its panel */
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-size: 0.83rem; font-weight: 600; color: var(--ink-800); }
.field label .req { color: var(--coral-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.88rem 1.05rem;
  border-radius: var(--r-sm);
  border: 2px solid var(--ink-900);
  background: var(--paper);
  color: var(--ink-900);
  font-size: 0.96rem;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 3px 3px 0 var(--emerald);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--coral-deep);
  box-shadow: 3px 3px 0 var(--coral);
}
.field__err { font-size: 0.79rem; font-weight: 600; color: var(--coral-deep); display: none; }
.field.has-error .field__err { display: block; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2324473f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
  padding-right: 2.6rem;
}
.form-note { font-size: 0.83rem; color: var(--text-soft); }
.form-success {
  display: none;
  align-items: center; gap: 0.7rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--r-sm);
  background: var(--surface-mint);
  border: 2px solid var(--emerald);
  color: var(--emerald-ink);
  font-weight: 600;
  font-size: 0.91rem;
}
.form-success.is-visible { display: flex; }

.card-panel {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--paper);
  border: 2.5px solid var(--ink-900);
  border-radius: var(--r-xl);
  box-shadow: var(--off-3);
}

.info-list { display: grid; gap: 1rem; }
.info-item {
  display: flex; align-items: flex-start; gap: 0.95rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-1);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.info-item:hover { transform: translate(-2px, -2px); box-shadow: var(--off-2); }
.info-item__ic {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--surface-mint);
  color: var(--emerald-ink);
  border: 2px solid var(--ink-900);
  flex: none;
}
.info-item b { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: 0.15rem; font-weight: 700; }
.info-item a, .info-item p { font-weight: 600; color: var(--ink-900); margin: 0; font-size: 0.97rem; }
.info-item a:hover { color: var(--emerald); }

.map-embed {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-3);
  line-height: 0;
  background: var(--ink-100);
}
.map-embed iframe { width: 100%; height: clamp(300px, 42vw, 460px); border: 0; }

.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 0.7rem; }
.amount {
  padding: 0.95rem 0.5rem;
  border-radius: var(--r-sm);
  border: 2px solid var(--ink-900);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink-900);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  transition: all 0.16s var(--ease);
}
.amount:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink-900); }
/* pressed state flattens its shadow rather than shifting, so a selected
   amount can't nudge the grid 3px past its panel */
.amount[aria-pressed="true"] {
  background: var(--emerald);
  color: #fff;
  transform: none;
  box-shadow: inset 0 2px 0 rgba(11, 35, 32, 0.25);
}
.freq-toggle {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: var(--r-pill);
  background: var(--sand-deep);
  border: 2px solid var(--ink-900);
}
.freq-toggle button {
  padding: 0.52rem 1.35rem;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.22s var(--ease);
}
.freq-toggle button[aria-pressed="true"] { background: var(--emerald-ink); color: var(--sand); }

/* -------------------------------------------------------------
   19. ACCORDION
   ------------------------------------------------------------- */
.accordion { display: grid; gap: 0.8rem; }
.acc-item {
  background: var(--paper);
  border: 2.5px solid var(--ink-900);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--off-1);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.acc-item.is-open { box-shadow: var(--off-3); transform: translate(-2px, -2px); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.2rem 1.35rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  transition: color 0.25s var(--ease);
}
.acc-trigger:hover { color: var(--coral-deep); }
.acc-icon {
  margin-left: auto; flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand-deep);
  color: var(--ink-900);
  border: 2px solid var(--ink-900);
  transition: all 0.32s var(--ease);
}
.acc-item.is-open .acc-icon { background: var(--amber); transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 1.35rem 1.35rem; margin: 0; color: var(--text-muted); font-size: 0.96rem; }

/* -------------------------------------------------------------
   20. LOGO STRIP
   ------------------------------------------------------------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.logo-strip img {
  height: clamp(52px, 6vw, 76px);
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 0.3s var(--ease);
}
.logo-strip img:hover { filter: none; opacity: 1; transform: scale(1.05) rotate(-1.5deg); }

/* -------------------------------------------------------------
   21. FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background: var(--surface-deep);
  color: #9fb5ac;
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--ink-900);
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--emerald) 0 33%, var(--amber) 33% 66%, var(--coral) 66% 100%);
}
.site-footer .muted, .site-footer .soft { color: #9fb5ac; }
.site-footer h2 { color: var(--sand); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: grid; gap: 1.1rem; align-content: start; }
.footer-brand img { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: 0.94; }
.footer-brand p { font-size: 0.94rem; line-height: 1.7; max-width: 30rem; }
.footer-contact { display: grid; gap: 0.55rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--mint-pale); font-weight: 500; font-size: 0.94rem; }
.footer-contact a svg { color: var(--amber); flex: none; }
.footer-contact a:hover { color: var(--sand); }

.footer-col h4 {
  color: var(--sand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.05rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: #9fb5ac; font-size: 0.93rem; }
.footer-col li a { transition: color 0.22s var(--ease), padding-left 0.22s var(--ease); display: inline-block; }
.footer-col a:hover { color: var(--amber); padding-left: 4px; }

.charity-box {
  padding: 1.05rem 1.2rem;
  border-radius: var(--r-md);
  background: rgba(250, 246, 239, 0.05);
  border: 2px solid rgba(169, 221, 203, 0.28);
  display: grid;
  gap: 0.4rem;
}
.charity-box b { color: var(--sand); font-size: 0.9rem; }
.charity-box span { font-size: 0.84rem; color: #9fb5ac; }
.charity-box code { font-family: var(--font); font-weight: 700; color: var(--amber); letter-spacing: 0.02em; }

.footer-bottom {
  border-top: 2px solid rgba(169, 221, 203, 0.16);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a { color: #9fb5ac; }
.footer-bottom a:hover { color: var(--amber); }

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 70;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber);
  color: var(--ink-900);
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-1);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink-900); }

/* -------------------------------------------------------------
   22. SCROLL REVEAL
   ------------------------------------------------------------- */
/* Opt-in: content is only hidden once JS confirms it can reveal it again. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal="left"]  { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="zoom"]  { transform: scale(0.95); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =============================================================
   22b. ENHANCEMENT LAYER
   Carousels · bento grids · marquee · scroll progress ·
   split-text reveals · parallax · richer card behaviour
   ============================================================= */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--amber) 55%, var(--coral) 100%);
  z-index: 100;
  pointer-events: none;
  will-change: transform;
}

/* ---- Page-load fade ---- */
.js body { opacity: 0; }
.js body.is-ready { opacity: 1; transition: opacity 0.5s var(--ease); }

/* ---- Split-text heading reveal ---- */
.split-line { display: block; overflow: hidden; }
.split-word {
  display: inline-block;
  transform: translateY(105%) rotate(3deg);
  opacity: 0;
  transition: transform 0.75s var(--ease-out), opacity 0.6s var(--ease-out);
  transition-delay: var(--wd, 0ms);
}
.is-split-in .split-word { transform: translateY(0) rotate(0); opacity: 1; }

/* ---- Parallax media ---- */
[data-parallax] { will-change: transform; }
[data-parallax] img { transform: scale(1.14); will-change: transform; }

/* -------------------------------------------------------------
   CAROUSEL — native scroll-snap track, JS drives arrows/dots
   ------------------------------------------------------------- */
.carousel { position: relative; }

.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* room for the cards' offset shadows and hover lift */
  padding: 6px 0 16px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  /* without this the snapport starts at the border box, so slides snap flush
     to the screen edge and cancel the gutter above */
  scroll-padding-inline: var(--gutter);
  cursor: grab;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.carousel__viewport.is-dragging * { pointer-events: none; }

.carousel__track {
  display: flex;
  gap: var(--car-gap, clamp(1rem, 2vw, 1.6rem));
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* --peek leaves the next slide clearly visible on small screens, so a card
   never looks like it has simply been cut off at the screen edge */
.carousel__slide {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--car-gap, 1.6rem) - var(--peek, 0px)) / var(--per));
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
}
.carousel__slide > * { width: 100%; }

/* slides-per-view — set by --per, stepped down at each breakpoint */
.carousel { --per: 1; --car-gap: clamp(1rem, 2vw, 1.6rem); --peek: 2.75rem; }
@media (min-width: 640px) { .carousel { --peek: 0px; } }
@media (min-width: 640px)  { .carousel[data-per="2"], .carousel[data-per="3"], .carousel[data-per="4"] { --per: 2; } }
@media (min-width: 1000px) { .carousel[data-per="3"] { --per: 3; } .carousel[data-per="4"] { --per: 3; } }
@media (min-width: 1240px) { .carousel[data-per="4"] { --per: 4; } }

.carousel__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}
.carousel__arrow {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  color: var(--ink-900);
  border: 2.5px solid var(--ink-900);
  box-shadow: 3px 3px 0 var(--ink-900);
  transition: all 0.16s var(--ease);
  flex: none;
}
.carousel__arrow:hover:not(:disabled) { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink-900); background: var(--amber); }
.carousel__arrow:disabled { opacity: 0.32; cursor: not-allowed; box-shadow: 2px 2px 0 var(--ink-900); }
.carousel__dots { display: flex; gap: 0.45rem; margin-left: auto; align-items: center; }
.carousel__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--ink-900);
  transition: all 0.3s var(--ease);
  padding: 0;
}
.carousel__dot[aria-selected="true"] { background: var(--coral); width: 32px; border-radius: var(--r-pill); }

/* progress rail alternative to dots */
.carousel__rail {
  flex: 1;
  height: 4px;
  background: var(--sand-deeper);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-left: 0.5rem;
  min-width: 80px;
}
.carousel__rail span {
  display: block;
  height: 100%;
  width: 30%;
  background: var(--emerald);
  border-radius: var(--r-pill);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}

/* dark-band carousel controls */
.section--deep .carousel__arrow,
.cta-band .carousel__arrow {
  background: transparent; color: var(--mint-pale);
  border-color: var(--mint-pale); box-shadow: 3px 3px 0 rgba(169, 221, 203, 0.35);
}
.section--deep .carousel__arrow:hover:not(:disabled) { background: var(--amber); color: var(--ink-900); border-color: var(--amber); }
.section--deep .carousel__dot { border-color: var(--mint-pale); }
.section--deep .carousel__dot[aria-selected="true"] { background: var(--amber); border-color: var(--amber); }

/* -------------------------------------------------------------
   BENTO GRID — asymmetric editorial media grid
   ------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(0, 190px);
  gap: clamp(0.8rem, 1.6vw, 1.25rem);
}
.bento__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 2.5px solid var(--ink-900);
  box-shadow: var(--off-1);
  background: var(--ink-100);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  grid-column: span 1;
  grid-row: span 1;
}
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.85s var(--ease); }
.bento__item:hover { transform: translate(-3px, -3px); box-shadow: var(--off-3); z-index: 2; }
.bento__item:hover img { transform: scale(1.09); }
.bento__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 35, 32, 0.72), transparent 58%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.bento__item:hover::after { opacity: 1; }

.bento__cap {
  position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: 0.85rem;
  z-index: 2;
  color: var(--sand);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s var(--ease);
}
.bento__item:hover .bento__cap { opacity: 1; transform: translateY(0); }

.bento__item--w2 { grid-column: span 2; }
.bento__item--h2 { grid-row: span 2; }
.bento__item--w2h2 { grid-column: span 2; grid-row: span 2; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(0, 165px); }
  .bento__item--w2h2 { grid-column: span 2; grid-row: span 2; }
  .bento__item--w2 { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bento { grid-auto-rows: minmax(0, 140px); }
  .bento__item--h2 { grid-row: span 1; }
  .bento__item--w2h2 { grid-row: span 2; }
}

/* -------------------------------------------------------------
   MARQUEE — scrolling values ticker
   ------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(0.9rem, 1.6vw, 1.3rem);
  background: var(--emerald-ink);
  border-block: 2.5px solid var(--ink-900);
  display: flex;
}
.marquee--amber { background: var(--amber); }
.marquee--coral { background: var(--coral); }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: none;
  min-width: 100%;
  padding-right: 2.5rem;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--sand);
  white-space: nowrap;
}
.marquee--amber .marquee__item, .marquee--coral .marquee__item { color: var(--ink-900); }
.marquee__item svg { flex: none; opacity: 0.75; }
.marquee__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; }
.marquee--amber .marquee__dot, .marquee--coral .marquee__dot { background: var(--ink-900); }

/* -------------------------------------------------------------
   RICHER CARD BEHAVIOUR
   ------------------------------------------------------------- */
/* media zoom + slide-up caption for cause cards */
.cause-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 35, 32, 0.55), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.cause-card:hover .cause-card__media::after { opacity: 1; }

/* arrow that slides in on hover */
.card-go {
  position: absolute;
  right: 0.85rem; bottom: 0.85rem;
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber);
  color: var(--ink-900);
  border: 2.5px solid var(--ink-900);
  opacity: 0;
  transform: translate(6px, 6px) rotate(-25deg);
  transition: all 0.35s var(--ease);
}
.cause-card:hover .card-go,
.program-card:hover .card-go { opacity: 1; transform: translate(0, 0) rotate(0); }

/* subtle 3D tilt — JS writes the transform, this just smooths the return */
[data-tilt] { transition: transform 0.35s var(--ease), box-shadow 0.25s var(--ease); transform-style: preserve-3d; }

/* icon pop on card hover */
.program-card:hover .program-card__ic,
.tile:hover .tile__ic { transform: rotate(-8deg) scale(1.06); }
.program-card__ic, .tile__ic { transition: transform 0.3s var(--ease); }

/* Stat cards get a hover glow on the dark band */
.stat { position: relative; overflow: hidden; }
.stat::after {
  content: "";
  position: absolute;
  inset: auto auto -60% -20%;
  width: 140%; height: 120%;
  background: radial-gradient(closest-side, rgba(232, 163, 61, 0.22), transparent);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.stat:hover::after { opacity: 1; }

/* -------------------------------------------------------------
   23. UTILITIES
   ------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.5rem; }
.full { width: 100%; }
.divider { height: 2px; background: var(--line); border: 0; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.flow-tight > * + * { margin-top: 0.75rem; }

/* -------------------------------------------------------------
   24. RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 1120px) {
  .nav__menu { display: none; }
  .nav__actions .btn--donate { display: none; }
  .burger { display: flex; }
}
@media (max-width: 480px) {
  .nav { gap: 0.5rem; }
  .brand img { height: auto; width: auto; max-width: 140px; max-height: 42px; }
  body.is-scrolled .brand img { max-width: 120px; max-height: 36px; }
  .nav__actions { gap: 0.45rem; }
}
/* Between the mobile cut-off and ~1000px the three items plus socials wrap
   onto a second line; drop the address (it is in the footer and drawer). */
@media (max-width: 1000px) {
  .topbar__list > li:first-child { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  /* The info bar goes entirely on mobile — phone, hours and address all live
     in the drawer and the footer. JS measures its height as 0, so the nav
     simply moves to the top of the page. */
  .topbar { display: none; }
}
@media (max-width: 640px) {
  .trust-sep { display: none; }
  .hero__trust { gap: 1.1rem 1.75rem; }
  .event-card { grid-template-columns: 1fr; }
  .event-date { width: 100%; grid-auto-flow: column; gap: 0.6rem; justify-content: center; padding: 0.55rem; }
  .event-date span { margin-top: 0; }
  /* rotated frames widen their bounding box; keep them square on phones */
  .frame-duo .frame:first-child { margin-top: 0; transform: none; }
  .frame-duo .frame:nth-child(2) { transform: none; }
  .quote-card__by .btn { margin-left: 0; width: 100%; }
  .sec-num b { font-size: 1.4rem; }
}

/* -------------------------------------------------------------
   24b. MOBILE REFINEMENTS
   ------------------------------------------------------------- */
@media (max-width: 620px) {
  /* Tabs wrapped onto three lines inside a pill and read as a blob.
     Turn them into a proper segmented control instead. */
  .tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 0.3rem;
    border-radius: var(--r-md);
  }
  .tabs button {
    justify-content: center;
    padding: 0.65rem 0.35rem;
    font-size: 0.8rem;
    border-radius: var(--r-sm);
    line-height: 1.2;
  }
  .tabs button .dot { display: none; }

  /* comfortable tap targets */
  .footer-col a, .footer-bottom a { display: inline-block; padding-block: 0.5rem; }
  .footer-contact a { padding-block: 0.5rem; }
  .info-item a { display: inline-block; padding-block: 0.45rem; }
  .link-arrow { padding-block: 0.4rem; }
  .crumbs a { display: inline-block; padding-block: 0.4rem; }
  .soc { width: 42px; height: 42px; }
  .drawer__contact a { display: inline-block; padding-block: 0.4rem; }

  /* the dots are 10px of ink — give them an invisible 38px-tall hit area.
     Vertical only, so the expanded area can't widen the row. */
  .carousel__dot { position: relative; }
  .carousel__dot::after { content: ""; position: absolute; inset: -14px 0; }
  .qdot { position: relative; width: 11px; height: 11px; }
  .qdot::after { content: ""; position: absolute; inset: -14px 0; }

  .event-date span { font-size: 0.72rem; }

  /* keep the back-to-top clear of full-width buttons */
  .to-top { width: 46px; height: 46px; }
}

/* Decorative art must never widen a section on small screens. The morphing
   blob ends its keyframe rotated and scaled, which pushed the hero art ~44px
   past its column; it adds nothing behind full-width photos anyway. */
@media (max-width: 720px) {
  .hero__shape { display: none; }
  /* blurred blobs are positioned well outside their section; on phones they
     widen the section box for no visual gain (and cost a large blur) */
  .bloom { display: none; }
}

/* -------------------------------------------------------------
   25. MOTION & PRINT
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .mark::after { transform: scaleX(1) rotate(-0.6deg); }
  .split-word { transform: none !important; opacity: 1 !important; }
  .marquee__track { animation: none; }
  .carousel__viewport { scroll-behavior: auto; }
  [data-parallax] img { transform: none; }
  .js body { opacity: 1; }
}

@media print {
  .topbar, .site-header, .to-top, .cta-band, .drawer, .scrim, .lightbox { display: none !important; }
  body { color: #000; background: #fff; padding-top: 0; }
  body::after { display: none; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
