/* =====================================================================
   Ihima Elites Initiative (IEI) — Global Stylesheet
   Foundation informed by the Genesis Design System (type scale, spacing,
   radius, motion, card discipline), re-skinned for a warm, hopeful NGO.

   ┌─────────────────────────────────────────────────────────────────┐
   │  SWAP YOUR OWN DESIGN SYSTEM HERE                                 │
   │  Every color, font, spacing step and radius is a CSS variable     │
   │  in :root below. Replace the values and the whole site retints.   │
   └─────────────────────────────────────────────────────────────────┘
   ===================================================================== */

/* ---- Webfonts (swap freely) ------------------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap");

/* ====================================================================== */
/*  DESIGN TOKENS                                                         */
/* ====================================================================== */
:root {
  /* ---- Brand color ---- */
  --color-primary:        #15734C;   /* emerald — growth, hope, trust   */
  --color-primary-hover:  #0F5D3C;   /* darker emerald                  */
  --color-primary-soft:   #E4F0E9;   /* tint wash for fills             */
  --color-accent:         #E2A23B;   /* warm gold — warmth, energy      */
  --color-accent-hover:   #CC8E2A;
  --color-accent-soft:    #FBF1DD;

  /* ---- Neutrals ---- */
  --color-ink:        #18231D;   /* warm near-black, primary text       */
  --color-ink-soft:   #50605A;   /* secondary text                      */
  --color-muted:      #8A968F;   /* muted / placeholder                 */
  --color-line:       #E7E3D8;   /* warm hairline border                */
  --color-line-soft:  #F0ECE2;
  --color-cream:      #FAF7F0;   /* page background, warm off-white      */
  --color-cream-deep: #F3EEE2;   /* alt section background               */
  --color-surface:    #FFFFFF;   /* cards / surfaces                     */
  --color-dark:       #14201A;   /* footer / dark sections               */
  --color-dark-soft:  #1E2D26;

  /* ---- Status ---- */
  --color-success: #15734C;
  --color-error:   #C8503C;

  /* ---- Typography ---- */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-hero:     clamp(2.35rem, 5vw + 0.5rem, 4.5rem);
  --text-display:  clamp(1.95rem, 3.3vw + 0.5rem, 3rem);
  --text-headline: clamp(1.55rem, 2vw + 0.55rem, 2.3rem);
  --text-section:  clamp(1.3rem, 1.2vw + 0.7rem, 1.7rem);
  --text-subhead:  1.15rem;
  --text-body:     1rem;
  --text-small:    0.9375rem;
  --text-caption:  0.8125rem;
  --text-overline: 0.75rem;

  --leading-tight:   1.1;
  --leading-snug:    1.28;
  --leading-normal:  1.62;
  --leading-relaxed: 1.75;

  --tracking-display: -0.015em;
  --tracking-tight:   -0.01em;
  --tracking-over:    0.18em;

  /* ---- Spacing (4px base grid) ---- */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem; --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;     --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Radius ---- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-sm:  0 1px 2px rgba(20,32,26,0.05);
  --shadow-md:  0 10px 30px rgba(20,32,26,0.08);
  --shadow-lg:  0 24px 60px rgba(20,32,26,0.14);
  --shadow-accent: 0 10px 26px rgba(226,162,59,0.32);
  --shadow-primary: 0 10px 26px rgba(21,115,76,0.28);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 620ms;

  /* ---- Layout ---- */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Belt-and-suspenders: stop any stray element causing a horizontal scroll/gap
   on mobile. `clip` keeps smooth-scroll and sticky working (unlike hidden). */
html { overflow-x: clip; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--color-primary); color: #fff; }

/* Focus — accessible, branded, never removed */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
a:focus-visible, button:focus-visible { outline-offset: 4px; }

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--color-ink); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xs); z-index: 2000;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

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

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--cream { background: var(--color-cream-deep); }
.section--dark { background: var(--color-dark); color: #E9ECE9; }
.section--primary { background: var(--color-primary); color: #fff; }

.stack > * + * { margin-top: var(--space-5); }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }

/* ---- Section heading kit ---- */
.overline {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-overline); letter-spacing: var(--tracking-over);
  text-transform: uppercase; color: var(--color-primary);
}
.overline::before {
  content: ""; width: 26px; height: 2px; background: var(--color-accent);
  display: inline-block;
}
.section--dark .overline, .section--primary .overline { color: var(--color-accent); }

.section-head { max-width: 60ch; }
.section-head h2 {
  font-size: var(--text-headline);
  margin-top: var(--space-4);
}
.section-head p {
  color: var(--color-ink-soft);
  margin-top: var(--space-4);
  font-size: var(--text-subhead);
  line-height: var(--leading-snug);
}
.section--dark .section-head p, .section--primary .section-head p { color: rgba(255,255,255,0.82); }

.eyebrow-center { text-align: center; margin-inline: auto; }

/* lead paragraph */
.lead { font-size: var(--text-subhead); line-height: var(--leading-snug); color: var(--color-ink-soft); }

/* ====================================================================== */
/*  BUTTONS                                                               */
/* ====================================================================== */
.btn {
  --btn-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.005em;
  padding: 0.66rem 1.25rem;
  color: var(--btn-fg);
  background: var(--color-primary);
  border: 1px solid transparent; border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20,32,26,0.12);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; position: relative; z-index: 1; }
.btn:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,93,60,0.22); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(20,32,26,0.12); }

/* ripple injected on click */
.btn .ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: radial-gradient(circle, rgba(255,255,255,0.45), rgba(255,255,255,0) 70%);
  pointer-events: none; z-index: 0;
  animation: btnRipple 0.6s var(--ease-out) forwards;
}
@keyframes btnRipple { to { transform: scale(2.6); opacity: 0; } }

/* accent = solid gold */
.btn--accent { --btn-fg: #2a1c00; background: var(--color-accent); box-shadow: 0 1px 2px rgba(120,80,0,0.18); }
.btn--accent:hover { background: var(--color-accent-hover); box-shadow: 0 4px 12px rgba(204,142,42,0.26); }

/* secondary = soft cream fill, ink text */
.btn--ghost { --btn-fg: var(--color-ink); background: var(--color-cream-deep); border-color: var(--color-line); box-shadow: none; }
.btn--ghost:hover { background: #ECE5D6; border-color: var(--color-muted); box-shadow: none; transform: translateY(-1px); }

/* on dark / emerald sections */
.btn--light { --btn-fg: var(--color-primary); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.btn--light:hover { background: #fff; color: var(--color-primary-hover); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.btn--on-dark { --btn-fg: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.34); box-shadow: none; }
.btn--on-dark:hover { background: rgba(255,255,255,0.2); border-color: #fff; box-shadow: none; }

.btn--block { width: 100%; }
.btn--lg { padding: 0.85rem 1.6rem; font-size: 0.95rem; }

/* text link with animated underline */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: var(--color-primary); font-size: var(--text-small);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ====================================================================== */
/*  HEADER / NAV                                                          */
/* ====================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(250,247,240,0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform 0.5s var(--ease-out), opacity 0.4s var(--ease);
}
/* Nav stays hidden while the pinned hero sequence plays (revealed past it) */
body.hero-lock .site-header {
  transform: translateY(-115%);
  opacity: 0;
  pointer-events: none;
}
.site-header.is-scrolled {
  background: rgba(250,247,240,0.92);
  border-bottom-color: var(--color-line);
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--color-ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--color-primary); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__mark--logo {
  background: transparent; padding: 0; border: none; box-shadow: none;
  border-radius: 0; overflow: visible; width: 58px; height: 58px;
}
.brand__mark--logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 0; }
.footer__brand .brand__mark--logo { border: none; width: 64px; height: 64px; }
/* header wordmark in brand emerald to match the menu */
.site-header .brand { color: var(--color-primary); }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); margin-top: 1px; }

.nav__links { display: none; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.6rem); }
.nav__links a {
  position: relative; font-size: var(--text-small); font-weight: 500; color: var(--color-ink-soft);
  padding: 0.4rem 0; transition: color var(--dur) var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--color-ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--color-primary); font-weight: 600; }

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

.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 46px; padding: 11px; border: 1px solid var(--color-line);
  background: var(--color-surface); border-radius: var(--radius-xs); cursor: pointer;
}
.nav__toggle span { height: 2px; width: 100%; background: var(--color-ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile only: solid header instead of the translucent blur. A position:fixed
   bar with backdrop-filter repaints only partially during mobile scroll (the
   top-half clipping). This does NOT change the hero hide/reveal behaviour or
   anything on desktop. */
@media (max-width: 979px) {
  .site-header,
  .site-header.is-scrolled {
    background: #faf7f0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Snappier slide for the auto-hide, and the hidden state (toggled by script.js). */
  .site-header { transition: transform 0.3s var(--ease-out), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .site-header.site-header--hidden { transform: translateY(-115%); }
  /* Compact mobile menu + pinned footer so the CTA buttons stay visible without scrolling. */
  .mobile-menu__links { padding: var(--space-3); gap: 0; }
  .mobile-menu__links a { min-height: 46px; padding: 0.6rem 0.9rem; }
  .mobile-menu__foot {
    position: sticky; bottom: 0; background: var(--color-surface);
    padding: var(--space-4);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  }
}

/* mobile drawer (slim side panel + dimmed scrim) */
.menu-scrim {
  position: fixed; inset: 0; z-index: 1300; background: rgba(16,32,24,0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.menu-scrim.is-open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; z-index: 1310;
  width: min(86vw, 360px); height: 100%;
  background: var(--color-surface);
  box-shadow: -24px 0 60px rgba(20,32,26,0.22);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.42s var(--ease-out), visibility 0.42s;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-line); }
.mobile-menu__head .brand__mark--logo { width: 42px; height: 42px; }
.mobile-menu__close { width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-ink); display: grid; place-items: center; cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.mobile-menu__close:hover { background: var(--color-cream-deep); border-color: var(--color-muted); }
.mobile-menu__close svg { width: 18px; height: 18px; }
.mobile-menu__links { display: flex; flex-direction: column; padding: var(--space-4); gap: 2px; flex: 1; }
.mobile-menu__links a { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 500; color: var(--color-ink); padding: 0.85rem 0.9rem; border-radius: var(--radius-xs); min-height: 50px; display: flex; align-items: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.mobile-menu__links a:hover { background: var(--color-cream-deep); }
.mobile-menu__links a[aria-current="page"] { background: var(--color-cream-deep); color: var(--color-ink); font-weight: 600; }
.mobile-menu__foot { padding: var(--space-5); border-top: 1px solid var(--color-line); display: grid; gap: var(--space-3); padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 980px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__toggle { display: none; }
}

/* ====================================================================== */
/*  HERO                                                                  */
/* ====================================================================== */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4.5rem)); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero__title { font-size: var(--text-hero); letter-spacing: var(--tracking-display); }
.hero__title em { font-style: italic; color: var(--color-primary); }
.hero__lead { margin-top: var(--space-6); max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-8); color: var(--color-ink-soft); font-size: var(--text-small); }
.hero__trust strong { color: var(--color-ink); font-family: var(--font-display); }

.hero__media { position: relative; }
.hero__media-frame {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5;
}
.hero__media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,32,26,0.45)); }

.hero__badge {
  position: absolute; z-index: 3; background: var(--color-surface);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: var(--space-3);
}
.hero__badge--tl { top: var(--space-6); left: calc(-1 * var(--space-4)); }
.hero__badge--br { bottom: var(--space-8); right: calc(-1 * var(--space-4)); }
.hero__badge .num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--color-primary); line-height: 1; }
.hero__badge .lbl { font-size: var(--text-caption); color: var(--color-ink-soft); }
.hero__badge .ico { width: 42px; height: 42px; border-radius: var(--radius-xs); display: grid; place-items: center; background: var(--color-accent-soft); color: var(--color-accent-hover); flex: none; }
.hero__badge .ico svg { width: 22px; height: 22px; }

/* decorative dot field — the one sanctioned ornament */
.dotfield {
  position: absolute; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--color-line) 1.5px, transparent 1.6px);
  background-size: 22px 22px; opacity: 0.7;
}
.dotfield--hero { width: 220px; height: 220px; top: calc(var(--nav-h) + 10px); left: -40px; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* page hero (interior pages) — banded header with bleeding image + torn edge */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--color-cream-deep); overflow: hidden; }
.page-hero__inner { max-width: 62ch; }
.page-hero h1 { font-size: var(--text-display); margin-top: var(--space-4); }
.page-hero p { margin-top: var(--space-5); font-size: var(--text-subhead); color: var(--color-ink-soft); line-height: var(--leading-snug); }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: var(--text-caption); color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---- phead: editorial banded page header ---- */
.phead {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 3.4rem));
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(120% 150% at 90% 6%, rgba(21,115,76,0.12), transparent 44%),
    linear-gradient(180deg, var(--color-cream-deep), #ECE6D7);
}
.phead__inner { position: relative; z-index: 3; max-width: 58ch; }
.phead .breadcrumb { margin-bottom: var(--space-5); }
.phead h1 { font-size: var(--text-display); margin-top: var(--space-4); }
.phead p { margin-top: var(--space-5); font-size: var(--text-subhead); color: var(--color-ink-soft); line-height: var(--leading-snug); max-width: 46ch; }

.phead__media { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: min(46%, 600px); pointer-events: none; }
.phead__media::before {
  content: ""; position: absolute; z-index: -1; top: 50%; right: 8%;
  width: 78%; aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 58%, rgba(21,115,76,0.10) 59%, transparent 62%),
              radial-gradient(circle, rgba(21,115,76,0.05), transparent 70%);
}
.phead__img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 44%);
  mask-image: linear-gradient(to right, transparent, #000 44%);
}
.phead__plus {
  position: absolute; z-index: 2; top: calc(var(--nav-h) + 26px); left: clamp(1rem, 4vw, 3rem);
  width: 104px; height: 104px; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M17 11v12 M11 17h12' stroke='%2315734C' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 34px 34px;
}
.phead__leaf { position: absolute; z-index: 2; top: 34%; right: 38%; width: 38px; height: 38px; color: var(--color-primary); opacity: 0.85; animation: floaty 7s var(--ease) infinite; }
.phead__edge { position: absolute; z-index: 4; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(26px, 4vw, 46px); display: block; }
.phead__edge path { fill: var(--color-cream); }

@media (max-width: 820px) {
  .phead__leaf, .phead__plus { display: none; }
  .phead__inner { max-width: none; position: relative; }
  .phead .breadcrumb { margin-bottom: var(--space-4); }
  /* show the header photo as a faded full-bleed backdrop instead of a plain band */
  .phead__media { display: block; width: 100%; left: 0; right: 0; top: 0; bottom: 0; opacity: 0.28; }
  .phead__img { -webkit-mask-image: none; mask-image: none; object-position: center 30%; }
  .phead::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(243,238,226,0.62) 0%, rgba(243,238,226,0.80) 100%);
  }
}
@media (prefers-reduced-motion: reduce) { .phead__leaf { animation: none; } }

/* ====================================================================== */
/*  CARDS & COMPONENTS                                                    */
/* ====================================================================== */
.card {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.media { position: relative; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.card:hover .media img { transform: scale(1.05); }

/* ---- Programmes grid (icon cards) ---- */
.prog-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.prog {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); padding: var(--space-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.prog:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.prog__ico { width: 54px; height: 54px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); margin-bottom: var(--space-5); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.prog:hover .prog__ico { background: var(--color-primary); color: #fff; }
.prog__ico svg { width: 26px; height: 26px; }
.prog h3 { font-size: var(--text-subhead); }
.prog p { margin-top: var(--space-3); color: var(--color-ink-soft); font-size: var(--text-small); }
@media (min-width: 640px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .prog-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Cause / project card (with progress) ---- */
.cause { display: flex; flex-direction: column; }
.cause .media { aspect-ratio: 16 / 11; }
.cause__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.cause h3 { font-size: var(--text-subhead); }
.cause p { color: var(--color-ink-soft); font-size: var(--text-small); }
.cause__foot { margin-top: auto; }

.tag { display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start; font-family: var(--font-body); font-weight: 600; font-size: var(--text-caption); letter-spacing: 0.02em; padding: 0.3rem 0.7rem; border-radius: var(--radius-xs); background: var(--color-accent-soft); color: var(--color-accent-hover); }
.tag--green { background: var(--color-primary-soft); color: var(--color-primary); }

.progress { margin-top: var(--space-2); }
.progress__bar { height: 8px; border-radius: var(--radius-pill); background: var(--color-line-soft); overflow: hidden; }
.progress__fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); width: 0; transition: width 1.4s var(--ease-out); }
.progress__meta { display: flex; justify-content: space-between; font-size: var(--text-caption); color: var(--color-ink-soft); margin-top: var(--space-2); }
.progress__meta strong { color: var(--color-ink); font-family: var(--font-display); }

/* ---- Split feature ---- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: 2; } }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5 / 4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.feature-list { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.feature-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.feature-list .chk { flex: none; width: 28px; height: 28px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); }
.feature-list .chk svg { width: 16px; height: 16px; }
.feature-list h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-body); }
.feature-list p { font-size: var(--text-small); color: var(--color-ink-soft); margin-top: 2px; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--color-primary); letter-spacing: -0.03em; }
.section--dark .stat__num, .section--primary .stat__num { color: var(--color-accent); }
.stat__num .suffix { color: var(--color-accent); }
.section--primary .stat__num .suffix { color: #fff; }
.stat__label { margin-top: var(--space-3); font-size: var(--text-small); color: var(--color-ink-soft); max-width: 22ch; }
.section--dark .stat__label, .section--primary .stat__label { color: rgba(255,255,255,0.82); }
.stat__rule { width: 32px; height: 3px; background: var(--color-accent); margin-top: var(--space-4); border-radius: 2px; }

/* ---- Process timeline (unique section) ---- */
.timeline { display: grid; gap: var(--space-6); counter-reset: step; position: relative; }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.tl-step { position: relative; padding-top: var(--space-8); }
.tl-step__n { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--color-primary-soft); letter-spacing: -0.04em; transition: color var(--dur) var(--ease); }
.tl-step:hover .tl-step__n { color: var(--color-accent); }
.tl-step__dot { position: absolute; top: 8px; left: 0; width: 14px; height: 14px; border-radius: var(--radius-pill); background: var(--color-primary); box-shadow: 0 0 0 5px var(--color-primary-soft); }
.tl-step h3 { font-size: var(--text-subhead); margin-top: var(--space-4); }
.tl-step p { font-size: var(--text-small); color: var(--color-ink-soft); margin-top: var(--space-3); }
.tl-line { position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--color-line); display: none; }
@media (min-width: 860px) { .tl-line { display: block; } .tl-step { padding-top: var(--space-10); } }

/* vertical milestone timeline (about) */
.milestones { position: relative; display: grid; gap: var(--space-8); border-left: 2px solid var(--color-line); padding-left: var(--space-8); margin-left: var(--space-3); }
.ms { position: relative; }
.ms::before { content: ""; position: absolute; left: calc(-1 * var(--space-8) - 8px); top: 4px; width: 16px; height: 16px; border-radius: var(--radius-pill); background: var(--color-surface); border: 3px solid var(--color-primary); }
.ms .year { font-family: var(--font-display); font-weight: 700; color: var(--color-primary); font-size: 1.4rem; }
.ms h3 { font-size: var(--text-subhead); margin-top: var(--space-1); }
.ms p { color: var(--color-ink-soft); font-size: var(--text-small); margin-top: var(--space-2); }

/* ---- Testimonials (unique section) ---- */
.tgrid { display: grid; grid-template-columns: 1fr; gap: clamp(1.25rem, 3vw, 1.75rem); }
@media (min-width: 720px) { .tgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tgrid { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--color-accent); height: 1.4rem; }
.quote p { font-size: var(--text-body); color: var(--color-ink); line-height: var(--leading-snug); flex: 1; }
.quote__by { display: flex; align-items: center; gap: var(--space-3); }
.avatar { width: 46px; height: 46px; border-radius: var(--radius-pill); object-fit: cover; flex: none; background: var(--color-primary-soft); }
.quote__by strong { display: block; font-size: var(--text-small); }
.quote__by span { font-size: var(--text-caption); color: var(--color-muted); }

/* ---- CTA band ---- */
.cta-band { position: relative; border-radius: var(--radius-xl); overflow: hidden; color: #fff; }
.cta-band__bg { position: absolute; inset: 0; z-index: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(15,93,60,0.96) 38%, rgba(15,93,60,0.7) 100%); }
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: var(--space-6); padding: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 820px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; font-size: var(--text-headline); }
.cta-band p { color: rgba(255,255,255,0.88); margin-top: var(--space-4); font-size: var(--text-subhead); line-height: var(--leading-snug); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- Blog cards ---- */
.posts { display: grid; grid-template-columns: 1fr; gap: clamp(1.25rem, 3vw, 1.75rem); }
@media (min-width: 680px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; }
.post .media { aspect-ratio: 16 / 10; }
.post__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.post__meta { display: flex; gap: var(--space-3); align-items: center; font-size: var(--text-caption); color: var(--color-muted); }
.post h3 { font-size: 1.3rem; line-height: var(--leading-snug); }
.post h3 a { transition: color var(--dur) var(--ease); }
.post:hover h3 a { color: var(--color-primary); }
.post p { font-size: var(--text-small); color: var(--color-ink-soft); }
.post__foot { margin-top: auto; padding-top: var(--space-2); }

/* feature post (blog hero) */
.feature-post { display: grid; gap: 0; border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); }
@media (min-width: 880px) { .feature-post { grid-template-columns: 1.1fr 1fr; } }
.feature-post .media { aspect-ratio: 16 / 11; min-height: 280px; }
.feature-post__body { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; gap: var(--space-4); justify-content: center; }
.feature-post__body h2 { font-size: var(--text-headline); }

/* ---- Filter chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { font-size: var(--text-small); font-weight: 500; padding: 0.55rem 1.05rem; border-radius: var(--radius-pill); border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-ink-soft); cursor: pointer; transition: all var(--dur) var(--ease); }
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---- Events ---- */
.event { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
@media (min-width: 720px) { .event { grid-template-columns: 200px 1fr auto; align-items: stretch; } }
.event__date { background: var(--color-primary); color: #fff; padding: var(--space-5); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; }
.event__date .d { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.event__date .m { text-transform: uppercase; letter-spacing: var(--tracking-over); font-size: var(--text-caption); font-weight: 600; }
.event__date .y { font-size: var(--text-caption); opacity: 0.8; }
.event__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); justify-content: center; }
.event__body h3 { font-size: var(--text-subhead); }
.event__body p { font-size: var(--text-small); color: var(--color-ink-soft); }
.event__metarow { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-caption); color: var(--color-muted); margin-top: var(--space-1); }
.event__metarow span { display: inline-flex; align-items: center; gap: 0.35rem; }
.event__metarow svg { width: 14px; height: 14px; color: var(--color-primary); }
.event__cta { padding: var(--space-5); display: flex; align-items: center; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(20,32,26,0); transition: background var(--dur) var(--ease); }
.gallery a:hover::after { background: rgba(21,115,76,0.28); }

/* ---- Donation tiers (unique section) ---- */
.tiers { display: grid; grid-template-columns: 1fr; gap: clamp(1.25rem, 3vw, 1.75rem); }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); position: relative; }
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tier.is-featured { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.tier.is-featured::before { content: "Most chosen"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--color-accent); color: #2a1c00; font-size: var(--text-caption); font-weight: 700; padding: 0.3rem 0.9rem; border-radius: var(--radius-pill); white-space: nowrap; }
.tier__amt { font-family: var(--font-display); font-weight: 700; font-size: 2.8rem; color: var(--color-ink); line-height: 1; }
.tier__amt span { font-size: 1rem; color: var(--color-muted); font-family: var(--font-body); font-weight: 500; }
.tier h3 { font-size: var(--text-subhead); }
.tier ul { display: grid; gap: var(--space-3); margin-top: var(--space-2); flex: 1; }
.tier li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-small); color: var(--color-ink-soft); }
.tier li svg { flex: none; width: 18px; height: 18px; color: var(--color-primary); margin-top: 2px; }

/* membership/dues note */
.note-card { background: var(--color-accent-soft); border: 1px solid #EBD9B0; border-radius: var(--radius-md); padding: var(--space-6); display: flex; gap: var(--space-4); align-items: flex-start; }
.note-card .ico { flex: none; width: 44px; height: 44px; border-radius: var(--radius-xs); display: grid; place-items: center; background: var(--color-accent); color: #2a1c00; }
.note-card .ico svg { width: 24px; height: 24px; }
.note-card h3 { font-size: var(--text-subhead); }
.note-card p { font-size: var(--text-small); color: var(--color-ink-soft); margin-top: var(--space-2); }

/* ---- FAQ accordion (CSS-only) ---- */
.faq { display: grid; gap: var(--space-3); }
.faq details { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.faq details[open] { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-6); font-family: var(--font-display); font-weight: 600; font-size: var(--text-subhead); color: var(--color-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 30px; height: 30px; border-radius: var(--radius-pill); border: 1px solid var(--color-line); display: grid; place-items: center; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease); }
.faq summary .pm svg { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.faq__body { padding: 0 var(--space-6) var(--space-6); color: var(--color-ink-soft); font-size: var(--text-small); line-height: var(--leading-relaxed); }
.faq details[open] .faq__body { animation: fadeDown var(--dur-slow) var(--ease-out); }

/* ---- Forms ---- */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-small); font-weight: 600; }
.field label .req { color: var(--color-error); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; background: var(--color-surface);
  border: 1px solid var(--color-line); border-radius: var(--radius-xs);
  font-size: var(--text-small); color: var(--color-ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--color-error); }
.field .hint { font-size: var(--text-caption); color: var(--color-muted); }
.form__consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-caption); color: var(--color-ink-soft); }
.form__consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); }

.info-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.info-row .ico { flex: none; width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); }
.info-row .ico svg { width: 22px; height: 22px; }
.info-row h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-body); }
.info-row p, .info-row a { font-size: var(--text-small); color: var(--color-ink-soft); }
.info-row a:hover { color: var(--color-primary); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-line); aspect-ratio: 16 / 10; position: relative; background: var(--color-cream-deep); }
.map-frame img { width: 100%; height: 100%; object-fit: cover; }

/* values grid (about) */
.values { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: var(--space-6); border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); }
.value .ico { width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--color-accent-soft); color: var(--color-accent-hover); margin-bottom: var(--space-4); }
.value .ico svg { width: 24px; height: 24px; }
.value h3 { font-size: var(--text-subhead); }
.value p { font-size: var(--text-small); color: var(--color-ink-soft); margin-top: var(--space-3); }

/* team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 1.75rem); }
@media (min-width: 860px) { .team { grid-template-columns: repeat(4, 1fr); } }
.member { text-align: left; }
.member .media { aspect-ratio: 1; border-radius: var(--radius-md); margin-bottom: var(--space-3); }
.member h3 { font-size: var(--text-body); font-family: var(--font-body); font-weight: 600; }
.member p { font-size: var(--text-caption); color: var(--color-primary); font-weight: 600; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 760px) { .partners { grid-template-columns: repeat(4, 1fr); } }
.partner { display: grid; place-items: center; padding: var(--space-6); border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-muted); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-align: center; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.partner:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* newsletter inline */
.subscribe { display: flex; flex-wrap: wrap; gap: var(--space-3); max-width: 460px; }
.subscribe input { flex: 1; min-width: 200px; padding: 0.95rem 1.1rem; border-radius: var(--radius-pill); border: 1px solid var(--color-line); background: var(--color-surface); }
.subscribe input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.section--dark .subscribe input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #fff; }
.section--dark .subscribe input::placeholder { color: rgba(255,255,255,0.5); }

/* ====================================================================== */
/*  FOOTER                                                                */
/* ====================================================================== */
.site-footer { background: var(--color-dark); color: #C9D2CD; padding-block: clamp(3rem, 6vw, 5rem) var(--space-8); }
.footer__top { display: grid; gap: clamp(2rem, 5vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__top { grid-template-columns: 1.8fr 1fr 1fr 1.4fr; } }
.footer__brand .brand { color: #fff; }
.footer__brand .brand small { color: rgba(255,255,255,0.55); }
.footer__brand p { margin-top: var(--space-5); font-size: var(--text-small); color: rgba(255,255,255,0.7); max-width: 38ch; }
.footer h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: var(--text-small); letter-spacing: 0.04em; margin-bottom: var(--space-4); }
.footer__links { display: grid; gap: var(--space-3); }
.footer__links a { font-size: var(--text-small); color: rgba(255,255,255,0.72); transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease); }
.footer__links a:hover { color: var(--color-accent); padding-left: 4px; }
.footer__contact { display: grid; gap: var(--space-4); }
.footer__contact .info-row .ico { background: rgba(255,255,255,0.08); color: var(--color-accent); }
.footer__contact .info-row p, .footer__contact .info-row a { color: rgba(255,255,255,0.78); }

.socials { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.socials a { width: 42px; height: 42px; border-radius: var(--radius-pill); display: grid; place-items: center; background: rgba(255,255,255,0.07); color: #fff; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.socials a:hover { background: var(--color-primary); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.footer__bottom { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; font-size: var(--text-caption); color: rgba(255,255,255,0.55); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer__bottom a:hover { color: var(--color-accent); }

/* ====================================================================== */
/*  SCROLL-REVEAL ANIMATIONS                                              */
/* ====================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 90ms; }
[data-reveal-delay="2"] { transition-delay: 180ms; }
[data-reveal-delay="3"] { transition-delay: 270ms; }
[data-reveal-delay="4"] { transition-delay: 360ms; }
[data-reveal-delay="5"] { transition-delay: 450ms; }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: floaty 6s var(--ease) infinite; }

/* subtle parallax target */
[data-parallax] { transition: transform 100ms linear; }

@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; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .float { animation: none; }
}

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; }
.muted { color: var(--color-ink-soft); }
.hide-sm { display: none; }
@media (min-width: 760px) { .hide-sm { display: initial; } }

/* ====================================================================== */
/*  PINNED SCROLL HERO  (index.html)                                      */
/* ====================================================================== */
.hp { position: relative; background: var(--color-primary); color: #fff; overflow: hidden; }
.hp__bg { position: absolute; inset: 0; z-index: 0; background: var(--color-primary); }
.hp__stage { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + var(--space-8)) var(--gutter) var(--space-12); }
.hp__inner { width: 100%; }

/* map stack */
.hp-map { position: relative; width: min(96vw, 760px); aspect-ratio: 902 / 788; margin: var(--space-5) auto 0; }
.hp-map__glow {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(255,212,128,0.55), rgba(255,200,110,0.16) 42%, transparent 68%);
  filter: blur(26px); opacity: 0.7;
  animation: glowPulse 5.5s var(--ease) infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.45; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
.hp-map__layer { position: absolute; inset: 0; opacity: 0; z-index: 1; will-change: opacity; transform: translateZ(0); }
.hp-map__layer--1 { opacity: 1; }
.hp-map__layer svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 26px rgba(20,32,26,.22)); }
/* gentle multi-directional "dance" while a state is held (inner svg only — no GSAP conflict) */
@keyframes mapDrift {
  0%   { transform: translate(0%, 0%) rotate(0deg); }
  18%  { transform: translate(-1.4%, -2.1%) rotate(-0.6deg); }
  36%  { transform: translate(1.9%, -1.1%) rotate(0.5deg); }
  54%  { transform: translate(-1.1%, 1.9%) rotate(-0.45deg); }
  72%  { transform: translate(1.6%, 1.1%) rotate(0.55deg); }
  88%  { transform: translate(-0.7%, -0.9%) rotate(-0.3deg); }
  100% { transform: translate(0%, 0%) rotate(0deg); }
}
.hp-map__svg { transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .hp-map__svg { animation: none; } }
.hp-map__layer img, .hp-map__img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 26px 52px rgba(20,32,26,.34)); }

/* copy */
.hp__state .overline { color: var(--color-accent); }
.hp__title { font-family: var(--font-display); font-weight: 700; line-height: var(--leading-tight); letter-spacing: var(--tracking-display); font-size: var(--text-hero); margin-top: var(--space-4); color: #fff; }
.hp__title em { font-style: italic; color: var(--color-accent); }
.hp__lead { margin-top: var(--space-5); font-size: var(--text-subhead); line-height: var(--leading-snug); color: rgba(255,255,255,.9); max-width: 44ch; }
.hp__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }
.hp__trust { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-6); font-size: var(--text-small); color: rgba(255,255,255,.85); }
.hp__trust strong { font-family: var(--font-display); color: #fff; }

/* states 2 & 3 hidden until desktop + GSAP */
.hp__state--2, .hp__state--3 { display: none; opacity: 0; }
.hp__state--2 .overline, .hp__state--3 .overline { color: var(--color-primary); }
.hp__state--2 .hp__title, .hp__state--3 .hp__title { color: var(--color-ink); }
.hp__state--2 .hp__title em, .hp__state--3 .hp__title em { color: var(--color-primary); }
.hp__state--2 .hp__lead, .hp__state--3 .hp__lead { color: var(--color-ink-soft); }

/* scroll cue — animated mouse wheel */
.hp-cue { display: none; }
.hp-mouse { width: 28px; height: 44px; color: rgba(255,255,255,.9); }
.hp-mouse__dot { transform-box: fill-box; transform-origin: center; animation: mouseDot 1.7s var(--ease) infinite; }
@keyframes mouseDot {
  0% { transform: translateY(-4px); opacity: 0; }
  25% { opacity: 1; }
  70% { transform: translateY(7px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---- desktop: story text on the left, map on the right ---- */
@media (min-width: 900px) {
  .hp { height: 100vh; }
  .hp__stage { display: block; min-height: 0; height: 100%; padding: 0; }
  .hp__inner { position: absolute; inset: 0; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
  .hp-map { position: absolute; top: 50%; left: 44%; right: -9vw; width: auto; height: 97vh; aspect-ratio: auto; transform: translateY(-50%); margin: 0; z-index: 1; }
  .hp__state { position: absolute; top: 50%; left: var(--gutter); transform: translateY(-50%); width: min(38%, 440px); z-index: 4; }
  .hp__state .hp__title { font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.08; }
  .hp__state--2, .hp__state--3 { display: block; }
  .hp__trust { display: none; }
  .hp-cue { display: block; position: absolute; bottom: var(--space-6); left: 50%; transform: translateX(-50%); z-index: 5; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-mouse__dot { animation: none; }
  .hp-map__glow { animation: none; }
}

/* mobile: run the SAME pinned scroll story as desktop, re-laid-out for portrait */
.hp-mobile { display: none; }
@media (max-width: 899px) {
  .hp { height: 100vh; }
  .hp-map {
    position: absolute; top: 9%; left: 50%; right: auto; bottom: auto;
    transform: translateX(-50%); width: min(84vw, 400px); height: 40vh;
    aspect-ratio: auto; margin: 0; z-index: 1;
  }
  .hp__state {
    position: absolute; top: auto; bottom: 18%; left: 50%; right: auto;
    transform: translateX(-50%); width: min(90vw, 480px); text-align: center; z-index: 4;
  }
  .hp__state .overline { justify-content: center; }
  .hp__state--2, .hp__state--3 { display: block; }
  .hp__title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hp__lead { margin: var(--space-4) auto 0; font-size: var(--text-body); max-width: 40ch; }
  .hp__cta { justify-content: center; margin-top: var(--space-6); }
  .hp-cue { display: block; bottom: var(--space-3); }
}
@keyframes mapReveal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* ====================================================================== */
/*  CUSTOM GLOWING POINTER + BUBBLES                                      */
/* ====================================================================== */
.cursor-dot {
  --cursor-color: #15734C;
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 16px; height: 16px; border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--cursor-color), transparent 72%);
  box-shadow: 0 0 14px 2px var(--cursor-color);
  opacity: 0; transition: opacity 0.3s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.cursor-dot.is-visible { opacity: 0.9; }

.bubble {
  --bubble-color: #15734C;
  position: fixed; z-index: 9998; border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.92), var(--bubble-color) 58%, transparent 74%);
  box-shadow: 0 0 10px 1px var(--bubble-color);
  opacity: 0;
  animation: bubbleRise 1.1s var(--ease-out) forwards;
  will-change: transform, opacity;
}
@keyframes bubbleRise {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  18% { opacity: 0.92; }
  100% { transform: translate(-50%, calc(-50% - 70px)) scale(1.05); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble { display: none; }
  .cursor-dot { transition: none; }
}

/* ====================================================================== */
/*  AUTH (member.html)                                                    */
/* ====================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--color-cream); }
@media (min-width: 940px) { .auth { grid-template-columns: 1.05fr 1fr; } }

.auth__aside {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, var(--color-primary), #0c4a30);
  padding: clamp(2rem, 5vw, 4rem);
  display: none; flex-direction: column; justify-content: space-between;
}
@media (min-width: 940px) { .auth__aside { display: flex; } }
.auth__aside .dotfield { width: 280px; height: 280px; right: -60px; top: -40px; opacity: 0.25; }
.auth__aside-brand { display: inline-flex; align-items: center; gap: 0.7rem; position: relative; z-index: 1; }
.auth__aside-brand img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.auth__aside-brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.auth__aside h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); position: relative; z-index: 1; }
.auth__aside p { color: rgba(255,255,255,0.86); margin-top: var(--space-4); position: relative; z-index: 1; max-width: 42ch; }
.auth__perks { display: grid; gap: var(--space-3); margin-top: var(--space-6); position: relative; z-index: 1; }
.auth__perks li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-small); color: rgba(255,255,255,0.92); }
.auth__perks svg { flex: none; width: 20px; height: 20px; color: var(--color-accent); margin-top: 2px; }

.auth__main { display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter); }
.auth__card { width: 100%; max-width: 460px; }
.auth__back { font-size: var(--text-small); color: var(--color-ink-soft); display: inline-flex; gap: 0.4rem; align-items: center; margin-bottom: var(--space-6); }
.auth__back:hover { color: var(--color-primary); }
.auth__card h1 { font-size: var(--text-display); }
.auth__card > p.sub { color: var(--color-ink-soft); margin-top: var(--space-2); }

.auth__tabs { display: flex; gap: 0.25rem; background: var(--color-cream-deep); border: 1px solid var(--color-line); border-radius: var(--radius-pill); padding: 4px; margin: var(--space-6) 0; }
.auth__tab { flex: 1; border: none; background: transparent; padding: 0.7rem 1rem; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--text-small); color: var(--color-ink-soft); cursor: pointer; transition: all var(--dur) var(--ease); }
.auth__tab.is-active { background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-sm); }

.oauth { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.85rem 1.2rem; border: 1px solid var(--color-line); border-radius: var(--radius-pill); background: var(--color-surface); font-weight: 600; font-size: var(--text-small); cursor: pointer; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.oauth:hover { box-shadow: var(--shadow-md); border-color: var(--color-muted); }
.oauth svg { width: 18px; height: 18px; }
.auth__divider { display: flex; align-items: center; gap: var(--space-3); color: var(--color-muted); font-size: var(--text-caption); margin: var(--space-5) 0; }
.auth__divider::before, .auth__divider::after { content: ""; height: 1px; background: var(--color-line); flex: 1; }
.auth__err { background: #FBEAE6; color: var(--color-error); border: 1px solid #F2C9C0; border-radius: var(--radius-xs); padding: 0.7rem 0.9rem; font-size: var(--text-small); margin-bottom: var(--space-4); }
.auth__switch { text-align: center; font-size: var(--text-small); color: var(--color-ink-soft); margin-top: var(--space-5); }
.auth__switch button { background: none; border: none; color: var(--color-primary); font-weight: 600; cursor: pointer; font: inherit; }

/* payment step */
.pay__fee { display: flex; align-items: baseline; gap: 0.5rem; margin: var(--space-4) 0; }
.pay__fee .amt { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--color-primary); line-height: 1; }
.pay__fee .per { color: var(--color-muted); font-size: var(--text-small); }
.pay__summary { background: var(--color-cream-deep); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-3); margin: var(--space-5) 0; }
.pay__summary .row { display: flex; justify-content: space-between; font-size: var(--text-small); }
.pay__summary .row strong { font-family: var(--font-display); }
.pay__note { font-size: var(--text-caption); color: var(--color-muted); display: flex; gap: 0.5rem; align-items: flex-start; margin-top: var(--space-3); }
.pay__note svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }

.demo-flag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-caption); font-weight: 600; color: var(--color-accent-hover); background: var(--color-accent-soft); border: 1px solid #EBD9B0; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); }

/* ====================================================================== */
/*  DASHBOARD (dashboard.html)                                            */
/* ====================================================================== */
.dash { min-height: 100vh; background: var(--color-cream); }

/* top bar (replaces the old dark sidebar) */
.dash__side {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--space-5);
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  background: rgba(250,247,240,0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.dash__brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--color-ink); flex: none; }
.dash__brand img { width: 40px; height: 40px; object-fit: contain; }
.dash__brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.dash__nav { display: flex; gap: 0.25rem; overflow-x: auto; flex: 1; scrollbar-width: none; }
.dash__nav::-webkit-scrollbar { display: none; }
.dash__nav a { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; padding: 0.5rem 0.85rem; border-radius: var(--radius-pill); color: var(--color-ink-soft); font-size: var(--text-small); font-weight: 500; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); flex: none; }
.dash__nav a svg { width: 16px; height: 16px; flex: none; }
.dash__nav a:hover { background: var(--color-cream-deep); color: var(--color-ink); }
.dash__nav a.is-active { background: var(--color-primary); color: #fff; }
.dash__nav a.is-active svg { color: #fff; }
.dash__side-foot { display: flex; align-items: center; gap: var(--space-4); flex: none; margin: 0; }
.dash__side-foot a { font-size: var(--text-small); color: var(--color-ink-soft); white-space: nowrap; }
.dash__side-foot a:hover { color: var(--color-primary); }
@media (max-width: 720px) {
  .dash__side { flex-wrap: wrap; gap: var(--space-3); padding: 0.7rem var(--gutter); }
  .dash__brand { order: 1; }
  .dash__brand img { width: 36px; height: 36px; }
  .dash__brand span { font-size: 0.95rem; }
  .dash__side-foot { order: 2; margin-left: auto; gap: var(--space-3); font-size: var(--text-caption); }
  /* scrollable pill nav with a right-edge fade hint that there's more */
  .dash__nav { order: 3; flex-basis: 100%; padding-bottom: 2px; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, #000 86%, transparent);
    mask-image: linear-gradient(to right, #000 86%, transparent); }
  .dash__nav a { scroll-snap-align: center; padding: 0.55rem 0.95rem; }
}

.dash__main { max-width: 1140px; margin-inline: auto; padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem) 5rem; }
.dash__topbar { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; margin-bottom: var(--space-8); }
.dash__hello { flex: 1 1 320px; min-width: 0; }
.dash__hello h1 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.14; margin-bottom: var(--space-2); }
.dash__hello p { color: var(--color-ink-soft); font-size: var(--text-body); }
.dash__user { display: flex; align-items: center; gap: var(--space-3); }
.dash__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--color-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.dash__mobnav { display: none; }

.status-pill { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--text-caption); font-weight: 700; padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); background: var(--color-primary-soft); color: var(--color-primary); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); }

.dash__section { margin-bottom: var(--space-12); scroll-margin-top: 92px; }
.dash__section > h2 { font-size: var(--text-section); margin-bottom: var(--space-5); }
.dash__section > h2 .muted { font-family: var(--font-body); font-weight: 500; font-size: var(--text-small); color: var(--color-muted); }

.dcard { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-6); }
.dgrid { display: grid; gap: var(--space-4); }
@media (min-width: 600px) { .dgrid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .dgrid--3 { grid-template-columns: repeat(3, 1fr); } .dgrid--4 { grid-template-columns: repeat(4, 1fr); } }

.dstat { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-6); }
.dstat .k { font-size: var(--text-caption); color: var(--color-muted); display: flex; align-items: center; gap: 0.4rem; }
.dstat .k svg { width: 15px; height: 15px; color: var(--color-primary); }
.dstat .v { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--color-ink); margin-top: var(--space-3); letter-spacing: -0.02em; }
.dstat .s { font-size: var(--text-caption); color: var(--color-ink-soft); margin-top: 4px; }

.dtable { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.dtable th, .dtable td { text-align: left; padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--color-line); }
.dtable th { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); font-weight: 600; }
.dtable td .ref { font-family: var(--font-display); }
.tag-ok { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--text-caption); font-weight: 600; color: var(--color-success); background: var(--color-primary-soft); padding: 0.2rem 0.6rem; border-radius: var(--radius-xs); }

.dnews { display: grid; gap: var(--space-4); }
.dnews article { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-2); }
.dnews .meta { display: flex; gap: var(--space-3); align-items: center; font-size: var(--text-caption); color: var(--color-muted); }
.dnews h3 { font-size: var(--text-subhead); }
.dnews p { font-size: var(--text-small); color: var(--color-ink-soft); }

.devent { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); }
.devent .date { text-align: center; background: var(--color-primary-soft); color: var(--color-primary); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; min-width: 58px; }
.devent .date .d { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1; }
.devent .date .m { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.05em; }
.devent .info h4 { font-size: var(--text-body); }
.devent .info p { font-size: var(--text-caption); color: var(--color-ink-soft); margin-top: 2px; }
@media (max-width: 560px) { .devent { grid-template-columns: auto 1fr; } .devent .rsvp { grid-column: 1 / -1; } }
.btn--mini { padding: 0.55rem 1rem; font-size: var(--text-caption); }
.btn--rsvped { background: linear-gradient(135deg, rgba(120,140,130,0.5), rgba(90,110,100,0.5)); }

.ddoc { display: flex; align-items: center; gap: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); }
.ddoc .ico { flex: none; width: 42px; height: 42px; border-radius: var(--radius-xs); display: grid; place-items: center; background: var(--color-accent-soft); color: var(--color-accent-hover); }
.ddoc .ico svg { width: 22px; height: 22px; }
.ddoc .info { flex: 1; }
.ddoc .info h4 { font-size: var(--text-body); }
.ddoc .info p { font-size: var(--text-caption); color: var(--color-muted); }

.ddir { display: grid; gap: var(--space-3); }
@media (min-width: 600px) { .ddir { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .ddir { grid-template-columns: repeat(3, 1fr); } }
.dmember { display: flex; align-items: center; gap: var(--space-3); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-4); }
.dmember .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; flex: none; }
.dmember h4 { font-size: var(--text-small); }
.dmember p { font-size: var(--text-caption); color: var(--color-muted); }

/* ---- premium overview: membership card + quick rail ---- */
.dhero { display: grid; gap: var(--space-5); margin-bottom: var(--space-6); }
@media (min-width: 860px) { .dhero { grid-template-columns: 1.25fr 1fr; align-items: stretch; } }

.mcard {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 85% 10%, rgba(226,162,59,0.28), transparent 55%),
    linear-gradient(135deg, #1A7E54 0%, #0F5D3C 60%, #0c4a30 100%);
  color: #fff; padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6);
  box-shadow: var(--shadow-md); min-height: 220px;
}
.mcard::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px;
  background: url("assets/iei-logo.png") center/contain no-repeat; opacity: 0.08; pointer-events: none;
}
.mcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); position: relative; z-index: 1; }
.mcard__brand { display: flex; align-items: center; gap: 0.6rem; }
.mcard__brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.mcard__brand span { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.mcard__chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #F4D58D, #D9A441); position: relative; opacity: 0.9; }
.mcard__chip::before, .mcard__chip::after { content: ""; position: absolute; left: 6px; right: 6px; height: 1px; background: rgba(120,80,0,0.4); }
.mcard__chip::before { top: 11px; } .mcard__chip::after { top: 18px; }
.mcard__name { position: relative; z-index: 1; }
.mcard__name .lbl { font-size: var(--text-overline); letter-spacing: var(--tracking-over); text-transform: uppercase; color: rgba(255,255,255,0.6); }
.mcard__name .val { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin-top: 3px; }
.mcard__row { display: flex; gap: var(--space-6); position: relative; z-index: 1; flex-wrap: wrap; }
.mcard__row .lbl { font-size: var(--text-overline); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.mcard__row .val { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-top: 3px; letter-spacing: 0.02em; }
.mcard__status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-caption); font-weight: 600; color: #CFF3DF; }
.mcard__status .dot { width: 8px; height: 8px; border-radius: 50%; background: #6EE7A8; box-shadow: 0 0 0 3px rgba(110,231,168,0.25); }

.drail { display: grid; gap: var(--space-4); align-content: start; }
.drail__card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-5); }
.drail__card h3 { font-size: var(--text-small); font-family: var(--font-body); font-weight: 600; margin-bottom: var(--space-4); display: flex; align-items: center; gap: 0.5rem; }
.drail__card h3 svg { width: 16px; height: 16px; color: var(--color-primary); }
.qa { display: grid; gap: 0.5rem; }
.qa a { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.7rem; border-radius: var(--radius-xs); font-size: var(--text-small); font-weight: 500; color: var(--color-ink); transition: background var(--dur) var(--ease); }
.qa a:hover { background: var(--color-cream-deep); }
.qa a svg { width: 17px; height: 17px; color: var(--color-primary); flex: none; }
.qa a .arr { margin-left: auto; color: var(--color-muted); }
.nextev { display: flex; gap: var(--space-3); align-items: center; }
.nextev .date { text-align: center; background: var(--color-primary); color: #fff; border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; min-width: 56px; }
.nextev .date .d { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.nextev .date .m { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.05em; }
.nextev .info h4 { font-size: var(--text-small); }
.nextev .info p { font-size: var(--text-caption); color: var(--color-ink-soft); margin-top: 2px; }

/* dashboard section scroll-reveal (visible by default — JS only adds polish) */
.dash__section { opacity: 1; }
.dash .reveal-up { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js-reveal .dash .reveal-up { opacity: 0; transform: translateY(22px); }
.js-reveal .dash .reveal-up.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .dash .reveal-up { opacity: 1 !important; transform: none !important; } }

/* ====================================================================== */
/*  UNIVERSAL CARD & MEDIA HOVER ANIMATION (site-wide)                    */
/*  Brings the homepage's lift/zoom feel to every card & image.           */
/* ====================================================================== */
/* tiles that lift + gain shadow (and drop their resting border) */
.value, .feature-post, .dcard, .ddoc, .dmember, .devent {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.value:hover, .feature-post:hover, .dcard:hover, .ddoc:hover, .dmember:hover, .devent:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent;
}
/* tiles that lift + gain shadow but keep their border/accent */
.note-card, .map-frame, .dstat, .tl-step, .ms, .partner {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.note-card:hover, .map-frame:hover, .dstat:hover, .tl-step:hover, .ms:hover, .partner:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-sm);
}
/* team member tiles: gentle lift only (no floating shadow under text) */
.member { transition: transform var(--dur) var(--ease); }
.member:hover { transform: translateY(-4px); }
/* media zoom on hover (wrappers already clip overflow) */
.member .media img, .feature-post .media img, .split__media img, .map-frame img {
  transition: transform var(--dur-slow) var(--ease-out);
}
.member:hover .media img, .feature-post:hover .media img,
.split__media:hover img, .map-frame:hover img { transform: scale(1.06); }
/* icon micro-interaction inside value/document tiles */
.value .ico, .ddoc .ico { transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease); }
.value:hover .ico, .ddoc:hover .ico { transform: translateY(-2px) scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .value, .feature-post, .dcard, .ddoc, .dmember, .devent,
  .note-card, .map-frame, .dstat, .tl-step, .ms, .partner, .member,
  .member .media img, .feature-post .media img, .split__media img, .map-frame img,
  .value .ico, .ddoc .ico {
    transition: none !important; transform: none !important;
  }
}

/* ====================================================================== */
/*  PREMIUM LAYER — preloader, grain, ambient depth, progress, reveals    */
/* ====================================================================== */

/* ---- Branded preloader ---- */
body.is-loading { overflow: hidden; }
#preloader {
  position: fixed; inset: 0; z-index: 4000;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 30%, #1A7E54, #0C4A30 70%);
  transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease);
}
#preloader.is-done { transform: translateY(-100%); opacity: 0; }
#preloader .preloader__inner { display: grid; justify-items: center; gap: var(--space-5); }
#preloader .preloader__logo {
  width: clamp(96px, 15vw, 132px); height: auto; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  animation: preLogo 1.1s var(--ease-out) both;
}
#preloader .preloader__name {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em;
  color: #fff; font-size: var(--text-small); opacity: 0; animation: preFade 0.7s var(--ease) 0.5s both;
}
#preloader .preloader__bar {
  width: 120px; height: 2px; border-radius: 2px; overflow: hidden;
  background: rgba(255,255,255,0.22); position: relative;
}
#preloader .preloader__bar::after {
  content: ""; position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(90deg, var(--color-accent), #fff);
  animation: preBar 1.4s var(--ease) both;
}
@keyframes preLogo { from { opacity: 0; transform: scale(0.7) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes preFade { to { opacity: 1; } }
@keyframes preBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Film grain (whole site, recessive) ---- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .grain { display: none; } }

/* ---- Ambient light pools on dark/primary sections ---- */
.section--dark, .section--primary { position: relative; isolation: isolate; }
.section--dark::before, .section--primary::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 82% 12%, rgba(226,162,59,0.16), transparent 60%),
    radial-gradient(50% 70% at 8% 92%, rgba(255,255,255,0.06), transparent 60%);
}
.section--dark > .container, .section--primary > .container { position: relative; z-index: 1; }

/* ---- Scroll progress bar ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* ---- Richer scroll reveals (reuse .is-visible) ---- */
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 0.9s var(--ease-out); }
[data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0); }
[data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-out); }
[data-reveal="mask"].is-visible { clip-path: inset(0 0 0 0); }
.media [data-reveal], .split__media[data-reveal] { will-change: clip-path; }

/* image "unmask + settle" wrapper */
.reveal-img { overflow: hidden; }
.reveal-img img { transform: scale(1.12); transition: transform 1.2s var(--ease-out); }
.reveal-img.is-visible img, .is-visible .reveal-img img { transform: scale(1); }

/* ---- Typographic accents ---- */
.sect-no {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.4px var(--color-line);
  display: inline-block;
}
.section--dark .sect-no { -webkit-text-stroke-color: rgba(255,255,255,0.22); }
.display-quote {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.9rem); line-height: 1.24; letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---- Impact trust strip ---- */
.impact-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-6); }
@media (min-width: 860px) { .impact-strip { grid-template-columns: repeat(4, 1fr); } }
.impact-strip__item { text-align: center; position: relative; }
@media (min-width: 860px) {
  .impact-strip__item:not(:first-child)::before {
    content: ""; position: absolute; left: calc(-0.5 * var(--space-6)); top: 8%; bottom: 8%;
    width: 1px; background: var(--color-line);
  }
}
.impact-strip__item .stat__num { font-size: clamp(2.2rem, 4vw, 3rem); }
.impact-strip__item p { margin-top: var(--space-2); font-size: var(--text-small); color: var(--color-ink-soft); }

/* ---- Featured pull-quote moment ---- */
.quote-feature { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 860px) { .quote-feature { grid-template-columns: 0.85fr 1.3fr; } }
.quote-feature__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.quote-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.quote-feature__mark { font-family: var(--font-display); font-size: 4rem; line-height: 0.5; color: var(--color-accent); height: 2rem; }
.quote-feature cite { display: block; margin-top: var(--space-6); font-style: normal; font-size: var(--text-small); color: var(--color-ink-soft); }
.quote-feature cite strong { display: block; font-family: var(--font-display); font-size: var(--text-body); color: var(--color-ink); }
.section--dark .quote-feature cite strong { color: #fff; }

/* ---- Cinematic full-bleed chapter ---- */
.chapter { position: relative; min-height: clamp(520px, 86vh, 820px); display: grid; align-items: center; overflow: hidden; color: #fff; }
.chapter__bg { position: absolute; inset: -12% 0; z-index: 0; }
.chapter__bg img { width: 100%; height: 124%; object-fit: cover; }
.chapter::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(10,40,26,0.92) 30%, rgba(10,40,26,0.55) 70%, rgba(10,40,26,0.35)); }
.chapter > .container { position: relative; z-index: 2; }
.chapter h2 { color: #fff; font-size: var(--text-display); }
.chapter p { color: rgba(255,255,255,0.9); }
.chapter__stats { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: var(--space-10); }
.chapter__stats .stat__num { color: var(--color-accent); }
.chapter__stats p { font-size: var(--text-small); margin-top: var(--space-1); }

/* ---- Where your money goes ---- */
.allocation { display: grid; gap: var(--space-5); }
.alloc__row { display: grid; gap: var(--space-2); }
.alloc__head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-small); }
.alloc__head strong { font-family: var(--font-display); font-size: var(--text-subhead); }
.alloc__track { height: 12px; border-radius: var(--radius-pill); background: var(--color-line-soft); overflow: hidden; }
.alloc__fill { height: 100%; border-radius: var(--radius-pill); width: 0; transition: width 1.4s var(--ease-out); background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); }

/* ---- Elevated newsletter band ---- */
.newsletter-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); color: #fff;
  background: radial-gradient(120% 140% at 85% 10%, #1A7E54, #0C4A30 72%);
  padding: clamp(2.25rem, 5vw, 4rem); display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 860px) { .newsletter-band { grid-template-columns: 1.2fr 1fr; } }
.newsletter-band h2 { color: #fff; font-size: var(--text-headline); }
.newsletter-band p { color: rgba(255,255,255,0.86); margin-top: var(--space-3); }
.newsletter-band .dotfield { width: 220px; height: 220px; right: -40px; top: -40px; opacity: 0.18; }

/* form success toast/delight */
.form-success {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-5);
  background: var(--color-primary-soft); border: 1px solid #BFE0CE; border-radius: var(--radius-md);
  color: var(--color-primary); animation: fadeDown var(--dur-slow) var(--ease-out);
}
.form-success svg { flex: none; width: 24px; height: 24px; }
.form-success strong { display: block; font-family: var(--font-display); font-size: var(--text-body); }
.form-success span { font-size: var(--text-small); color: var(--color-ink-soft); }

/* ====================================================================== */
/*  MOBILE LUXURY POLISH                                                  */
/* ====================================================================== */

/* M5 — inputs ≥16px so iOS never zoom-jumps on focus; bigger touch targets */
@media (max-width: 899px) {
  .field input, .field select, .field textarea,
  .subscribe input, .auth__card input, .auth__card select {
    font-size: 16px; padding: 0.95rem 1.05rem;
  }
  .oauth { padding: 0.95rem 1.2rem; }
  .nav__links a, .footer__links a { padding-block: 0.35rem; }
}

/* M3/M4 — tighter type & spacing rhythm on phones */
@media (max-width: 640px) {
  .section { padding-block: clamp(2.5rem, 9vw, 3.5rem); }
  .section--tight { padding-block: clamp(2rem, 7vw, 2.75rem); }
  .page-hero h1, .phead h1 { font-size: clamp(1.7rem, 7.5vw, 2.15rem); line-height: 1.12; }
  .section-head h2 { line-height: 1.12; }
  .hero__title, .hp__title { line-height: 1.08; }
  p { line-height: 1.62; }
  .lead, .section-head p { font-size: 1rem; }
  .overline { letter-spacing: 0.2em; }
  .cta-band__inner { padding: clamp(1.75rem, 7vw, 2.5rem); }
  .display-quote { font-size: clamp(1.5rem, 6.6vw, 2rem); }
  .sect-no { font-size: clamp(2rem, 9vw, 2.6rem); }
  /* keep section headers from hugging the screen edge inconsistently */
  .flex-between { gap: var(--space-4); }
}

/* M6 — touch press feedback (no hover on touch devices) */
@media (hover: none) {
  .card, .prog, .cause, .tier, .value, .event, .post, .quote,
  .member, .feature-post, .partner, .ddoc, .dmember, .dcard, .dstat {
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .card:active, .prog:active, .cause:active, .tier:active, .value:active,
  .event:active, .post:active, .quote:active, .member:active, .feature-post:active,
  .partner:active, .ddoc:active, .dmember:active {
    transform: scale(0.985); box-shadow: var(--shadow-sm);
  }
  .btn:active { transform: scale(0.97); }
  /* neutralize sticky hover-lift that can get "stuck" after tap */
  .card:hover, .prog:hover, .cause:hover, .tier:hover, .value:hover,
  .event:hover, .post:hover, .quote:hover, .member:hover, .feature-post:hover {
    transform: none;
  }
}

/* M6 — lock media ratios so cards don't jump as images load */
.card .media, .post .media, .cause .media { aspect-ratio: 16 / 11; }
.feature-post .media { aspect-ratio: 16 / 11; }

/* M11 — grain barely-there on phones (less visual noise on small screens) */
@media (max-width: 640px) { .grain { opacity: 0.022; } }

/* M8 — payment history table becomes stacked cards on mobile */
@media (max-width: 680px) {
  .dtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable tr { border: 1px solid var(--color-line); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); background: var(--color-surface); }
  .dtable td { border: none; padding: 0.35rem 0; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; text-align: right; }
  .dtable td::before { content: attr(data-label); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); font-weight: 600; text-align: left; }
}

/* M10 — drawer link stagger */
.mobile-menu__links a { transform: translateX(14px); opacity: 0; }
.mobile-menu.is-open .mobile-menu__links a { transform: none; opacity: 1; transition: transform 0.45s var(--ease-out), opacity 0.35s var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease); }
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 0.09s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 0.13s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 0.17s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: 0.21s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(6) { transition-delay: 0.25s; }

/* M1 — sticky mobile action bar */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: none; gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(250,247,240,0.9); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--color-line); box-shadow: 0 -6px 24px rgba(20,32,26,0.08);
  transform: translateY(100%); transition: transform 0.4s var(--ease-out);
}
.mobile-cta.is-shown { transform: translateY(0); }
.mobile-cta .btn { flex: 1; padding: 0.85rem 1rem; }
@media (max-width: 760px) { .mobile-cta { display: flex; } body { --mcta-pad: 76px; } }
@media (max-width: 760px) { .site-footer { padding-bottom: calc(clamp(2rem,6vw,3rem) + 76px); } }

/* M2 — back-to-top */
.to-top {
  position: fixed; right: var(--gutter); bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  z-index: 1090; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--color-ink); color: #fff; border: none;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur), background var(--dur) var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--color-primary); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .to-top { bottom: calc(var(--space-6) + 76px + env(safe-area-inset-bottom, 0px)); } }

/* M9 — hero story progress dots */
.hp-dots { position: absolute; z-index: 5; display: flex; gap: 9px; }
.hp-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(20,32,26,0.22); transition: all var(--dur) var(--ease); }
.hp-dots button.is-active { background: var(--color-primary); transform: scale(1.35); }
@media (min-width: 900px) { .hp-dots { bottom: var(--space-6); right: var(--gutter); flex-direction: column; } }
@media (max-width: 899px) { .hp-dots { top: calc(var(--nav-h) + 0.5rem); left: 50%; transform: translateX(-50%); } .hp-dots button.is-active { background: var(--color-primary); } }

/* ====================================================================== */
/*  P2 — IMAGE REVEAL MASKS (clip-path wipe on enter)                     */
/* ====================================================================== */
[data-img-reveal] { clip-path: inset(0 0 100% 0); opacity: 0.4; transition: clip-path 1s var(--ease-out), opacity 1s var(--ease-out); will-change: clip-path; }
[data-img-reveal].is-shown { clip-path: inset(0 0 0 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { [data-img-reveal] { clip-path: none !important; opacity: 1 !important; } }

/* ====================================================================== */
/*  P4 — TESTIMONIAL / STORY SLIDER (portraits)                           */
/* ====================================================================== */
.tslider { position: relative; margin-top: var(--space-10); }
.tslider__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.tslider__track { display: flex; transition: transform 0.7s var(--ease-out); will-change: transform; }
.tslide { flex: 0 0 100%; min-width: 100%; }
.tslide__inner {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 820px) { .tslide__inner { grid-template-columns: 0.85fr 1.15fr; } }
.tslide__media { position: relative; min-height: 280px; overflow: hidden; }
.tslide__media img { width: 100%; height: 100%; object-fit: cover; }
.tslide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 55%, rgba(15,93,60,0.18)); }
.tslide__body { padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; gap: var(--space-5); justify-content: center; }
.tslide__mark { font-family: var(--font-display); font-size: 4rem; line-height: 0.5; color: var(--color-accent); height: 1.6rem; }
.tslide__quote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.34; color: var(--color-ink); font-weight: 500; letter-spacing: -0.01em; }
.tslide__who { display: flex; align-items: center; gap: var(--space-3); }
.tslide__who img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; }
.tslide__who strong { display: block; font-family: var(--font-body); font-size: var(--text-small); }
.tslide__who span { font-size: var(--text-caption); color: var(--color-muted); }
.tslider__nav { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-6); }
.tslider__dots { display: flex; gap: 8px; }
.tslider__dots button { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: var(--color-line); cursor: pointer; transition: all var(--dur) var(--ease); }
.tslider__dots button.is-active { background: var(--color-primary); width: 26px; border-radius: 99px; }
.tslider__arrows { display: flex; gap: var(--space-3); }
.tslider__arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-ink); display: grid; place-items: center; cursor: pointer; transition: all var(--dur) var(--ease); }
.tslider__arrows button:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.tslider__arrows svg { width: 20px; height: 20px; }

/* ====================================================================== */
/*  P5 — ACCREDITATION STRIP                                              */
/* ====================================================================== */
.accred { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 680px) { .accred { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .accred { grid-template-columns: repeat(4, 1fr); } }
.accred__item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.accred__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.accred__ico { flex: none; width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); }
.accred__ico svg { width: 24px; height: 24px; }
.accred__item h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-small); }
.accred__item p { font-size: var(--text-caption); color: var(--color-muted); margin-top: 1px; }

/* ====================================================================== */
/*  IMPACT CALCULATOR (donate)                                            */
/* ====================================================================== */
.calc { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: var(--space-10); }
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.calc__control { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; }
.calc__amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--color-primary); letter-spacing: -0.02em; line-height: 1; }
.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; margin-top: var(--space-6); background: var(--color-line-soft); cursor: pointer; outline: none; }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(15,93,60,0.35); cursor: pointer; }
.calc__range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(15,93,60,0.35); cursor: pointer; }
.calc__ticks { display: flex; justify-content: space-between; font-size: var(--text-caption); color: var(--color-muted); margin-top: var(--space-3); }
.calc__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.calc__chip { font-size: var(--text-small); font-weight: 600; padding: 0.5rem 1rem; border-radius: 99px; border: 1px solid var(--color-line); background: var(--color-cream); color: var(--color-ink-soft); cursor: pointer; transition: all var(--dur) var(--ease); }
.calc__chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.calc__chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.calc__result { background: linear-gradient(150deg, #1A7E54, #0F5D3C); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-md); }
.calc__icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: grid; place-items: center; background: rgba(255,255,255,0.14); color: #fff; margin-bottom: var(--space-5); }
.calc__icon svg { width: 30px; height: 30px; }
.calc__lead { font-size: var(--text-small); color: rgba(255,255,255,0.72); }
.calc__headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.18; margin-top: var(--space-2); transition: opacity 0.25s var(--ease); }
.calc__sub { font-size: var(--text-small); color: rgba(255,255,255,0.85); margin-top: var(--space-3); transition: opacity 0.25s var(--ease); }
.calc__result .btn--lg { align-self: flex-start; }

/* ====================================================================== */
/*  RECENT SUPPORTERS FEED (social proof toast)                          */
/* ====================================================================== */
.supporter-toast {
  position: fixed; left: var(--gutter); bottom: var(--space-6); z-index: 1080;
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-pill); padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  box-shadow: var(--shadow-lg); max-width: min(86vw, 340px);
  transform: translateY(140%); opacity: 0; visibility: hidden;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease), visibility 0.4s;
}
.supporter-toast.is-shown { transform: none; opacity: 1; visibility: visible; }
.supporter-toast__av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.supporter-toast__txt strong { display: block; font-size: var(--text-small); line-height: 1.2; }
.supporter-toast__txt span { font-size: var(--text-caption); color: var(--color-muted); }
.supporter-toast__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); margin-left: auto; box-shadow: 0 0 0 3px var(--color-primary-soft); }
@media (max-width: 760px) { .supporter-toast { bottom: calc(76px + var(--space-3) + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .supporter-toast { transition: opacity 0.3s var(--ease); transform: none; } }

/* ====================================================================== */
/*  KOGI JOURNEY MAP                                                      */
/* ====================================================================== */
.jmap { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); margin-top: var(--space-10); }
@media (min-width: 900px) { .jmap { grid-template-columns: 1.5fr 1fr; align-items: center; } }
.jmap__stage { position: relative; aspect-ratio: 891 / 779; width: 100%; }
.jmap__bg { width: 100%; height: 100%; display: block; }
.jpin { position: absolute; width: 18px; height: 18px; padding: 0; border: none; border-radius: 50%; background: var(--color-accent); cursor: pointer; transform: translate(-50%, -50%) scale(0); transition: transform 0.4s var(--ease-out), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease); box-shadow: 0 0 0 0 rgba(226,162,59,0.5); z-index: 2; }
.jpin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--color-accent); opacity: 0; }
.jmap.is-live .jpin { transform: translate(-50%, -50%) scale(1); }
.jmap.is-live .jpin { animation: jpinPulse 2.4s var(--ease) infinite; }
.jpin:nth-child(2) { transition-delay: 0.05s; } .jpin:nth-child(3) { transition-delay: 0.13s; }
.jpin:nth-child(4) { transition-delay: 0.21s; } .jpin:nth-child(5) { transition-delay: 0.29s; }
.jpin:nth-child(6) { transition-delay: 0.37s; } .jpin:nth-child(7) { transition-delay: 0.45s; }
.jpin:nth-child(8) { transition-delay: 0.53s; } .jpin:nth-child(9) { transition-delay: 0.61s; }
.jpin:nth-child(10) { transition-delay: 0.69s; }
.jpin:hover, .jpin:focus-visible, .jpin.is-active { background: var(--color-primary); box-shadow: 0 0 0 6px rgba(21,115,76,0.18); outline: none; z-index: 4; }
@keyframes jpinPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(226,162,59,0.45); } 50% { box-shadow: 0 0 0 9px rgba(226,162,59,0); } }
@media (prefers-reduced-motion: reduce) { .jmap.is-live .jpin { animation: none; transform: translate(-50%, -50%) scale(1); } }

.jmap__tip { position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 16px)); background: var(--color-ink); color: #fff; border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; width: max-content; max-width: 220px; box-shadow: var(--shadow-lg); pointer-events: none; }
.jmap__tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--color-ink); }
.jmap__tip strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.jmap__tip > span { display: block; font-size: var(--text-caption); color: rgba(255,255,255,0.82); margin-top: 2px; }
.jmap__tipmeta { display: flex; gap: var(--space-3); margin-top: var(--space-2); font-size: var(--text-caption); }
.jmap__tipmeta span { color: var(--color-accent); font-weight: 600; }

.jmap__legend { display: grid; gap: var(--space-4); }
.jmap__stat .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--color-primary); line-height: 1; letter-spacing: -0.02em; }
.jmap__stat .l { font-size: var(--text-small); color: var(--color-ink-soft); margin-top: 4px; }
.jmap__hint { font-size: var(--text-small); color: var(--color-ink-soft); border-left: 2px solid var(--color-accent); padding-left: var(--space-4); }

/* ---- legal pages (privacy / terms) ---- */
.legal__block { margin-bottom: var(--space-8); }
.legal__block h2 { font-size: var(--text-subhead); margin-bottom: var(--space-3); }
.legal__block p, .legal__block li { color: var(--color-ink-soft); line-height: var(--leading-relaxed); }
.legal__block p + p { margin-top: var(--space-3); }
.legal__block a { color: var(--color-primary); font-weight: 600; }
.legal__list { display: grid; gap: var(--space-2); margin-top: var(--space-3); padding-left: var(--space-5); list-style: disc; }
.legal__list li { padding-left: var(--space-2); }
