/* ==========================================================================
   Rachel House — Design System
   Visual direction: "Threshold" — arched openings (doors, windows, shelter)
   as the recurring motif for a home-based children's palliative care service.
   Palette, type and spacing tokens live here. Change tokens, not components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colour ---------------------------------------------------------------- */
  /* Brand colours are taken from the Rachel House logo: the crimson outline
     of the house (#d11241), its coral fill (#dc5d61) and the orange of the
     sun and the children (#f79728).                                        */
  --ink: #2a1214;          /* deep warm maroon, used instead of black       */
  --ink-70: #5b393b;
  --muted: #6e5253;        /* body text on paper                            */
  --brand: #c2183c;        /* primary brand / links / primary buttons       */
  --brand-dark: #8c1130;
  --brand-tint: #fbe8e8;   /* pale surface                                  */
  --accent: #f79728;       /* donate accent only — used sparingly           */
  --accent-dark: #d97e14;
  --accent-tint: #fdf1e0;
  --paper: #faf6f3;        /* page background                               */
  --white: #ffffff;
  --line: #eddedb;
  --line-strong: #d9c0bd;

  /* Type ------------------------------------------------------------------ */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.38vw, 1.4rem);
  --step-2: clamp(1.42rem, 1.28rem + 0.68vw, 1.85rem);
  --step-3: clamp(1.7rem, 1.46rem + 1.15vw, 2.44rem);
  --step-4: clamp(2.04rem, 1.65rem + 1.87vw, 3.22rem);
  --step-5: clamp(2.45rem, 1.83rem + 2.96vw, 4.25rem);

  /* Space ----------------------------------------------------------------- */
  --gap: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
  --section-y: clamp(3.75rem, 2.4rem + 6vw, 7.5rem);
  --wrap: 1240px;
  --wrap-narrow: 760px;
  --header-h: 78px;        /* keep in sync with .site-header__inner min-height */

  /* Shape ----------------------------------------------------------------- */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --arch: 999px 999px var(--r-md) var(--r-md);
  --shadow-sm: 0 1px 2px rgba(42, 18, 20, .05), 0 6px 18px -12px rgba(42, 18, 20, .18);
  --shadow-md: 0 2px 6px rgba(42, 18, 20, .05), 0 24px 48px -32px rgba(42, 18, 20, .35);

  /* Motion ---------------------------------------------------------------- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .5s;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -.015em; }
h4 { font-size: var(--step-1); letter-spacing: -.01em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

ul, ol { padding-left: 1.15em; }
li { margin-bottom: .4em; }

strong { color: var(--ink); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .62); }
/* Sits directly under a hero image, so it needs almost no air above it. */
.section--flush-top { padding-top: clamp(1.75rem, 3vw, 3rem); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--tint { background: var(--brand-tint); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink a:not([class*="btn"]) { color: var(--accent); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* Five donation tiers: three on the first row, two half-width on the second. */
.tier-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tier-grid > * { grid-column: span 2; }
.tier-grid > :nth-last-child(-n+2) { grid-column: span 3; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--7-5 { grid-template-columns: 1.35fr 1fr; }
.split--5-7 { grid-template-columns: 1fr 1.35fr; }

/* A heading column that stays in view beside a long list (timeline, names) */
.rail { position: sticky; top: calc(var(--header-h) + 2rem); }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* Section heading block ---------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); flex: none;
}
.section--ink .eyebrow { color: var(--accent); }
.center .eyebrow::before { display: none; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: var(--step-1); line-height: 1.55; }

.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-70); }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .95rem 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-sm); }

.btn--donate { background: var(--accent); color: var(--ink); }
.btn--donate:hover { background: var(--accent-dark); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(224, 160, 42, .9); }

.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { padding: .7rem 1.15rem; font-size: .74rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Text link with arrow ----------------------------------------------------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .85rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; color: var(--brand);
}
.link-arrow svg, .link-arrow .arw { transition: transform .3s var(--ease); }
.link-arrow:hover .arw { transform: translateX(5px); }
.section--ink .link-arrow { color: var(--accent); }

/* --------------------------------------------------------------------------
   5. ARCH — the signature shape (a doorway / window / shelter)
   -------------------------------------------------------------------------- */
.arch {
  border-radius: var(--arch);
  overflow: hidden;
  position: relative;
  background: var(--brand-tint);
}
.arch--soft { border-radius: 220px 220px var(--r-md) var(--r-md); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Square frame for artwork (logo lockups, posters) that an arch crop would cut */
.brand-figure {
  margin: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--brand-tint);
  box-shadow: var(--shadow-sm);
}
.brand-figure img { width: 100%; height: auto; }

.ratio { position: relative; }
.ratio > img, .ratio > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-21-9 { aspect-ratio: 21 / 9; }

/* Donate page intro: copy on the left, key facts filling the right column. */
.intro-split { align-items: start; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.intro-split h2 { font-size: var(--step-3); max-width: 18ch; }
.intro-split .fact-list { padding-top: .35rem; }
.intro-split .fact-list .fig { min-width: 4.5ch; }

/* Donation tier card (donate page) ----------------------------------------- */
.tier {
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
  padding: 1.65rem 1.5rem 1.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tier::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
/* `color: inherit` here beats the global `a:hover` rule, which would otherwise
   repaint the card text — on the feature card, into its own background colour. */
.tier:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-md); color: inherit; }
.tier:hover::before { transform: scaleX(1); }
.tier__icon {
  width: 40px; height: 44px; border-radius: var(--arch); flex: none;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: .4rem;
}
.tier__label {
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin: 0;
}
.tier__price {
  font-family: var(--font-display); font-size: var(--step-3); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.04; color: var(--ink); margin: 0;
}
.tier__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; font-size: .82rem; }
.tier__usd {
  background: var(--accent-tint); color: var(--ink); font-weight: 600;
  border-radius: 999px; padding: .18rem .6rem; font-size: .78rem;
}
.tier__desc { font-size: .9rem; margin: .45rem 0 0; }
.tier .link-arrow { margin-top: auto; padding-top: 1.15rem; font-size: .74rem; }

.tier--feature { background: var(--brand-dark); border-color: var(--brand-dark); color: rgba(255, 255, 255, .8); }
.tier--feature .tier__price { color: #fff; }
.tier--feature .tier__label,
.tier--feature .link-arrow { color: var(--accent); }
.tier--feature .tier__icon { background: rgba(255, 255, 255, .12); color: var(--accent); }
.tier--feature .tier__usd { background: rgba(255, 255, 255, .16); color: #fff; }
.tier--feature:hover { border-color: var(--accent); color: rgba(255, 255, 255, .8); }

/* Full-bleed message banner. The artwork already carries its own headline and
   logo, so on wide screens it is shown whole rather than cropped. */
.banner-band { display: block; background: var(--brand-tint); }
.banner-band img { width: 100%; height: auto; }
.banner-band__caption { display: none; }

@media (max-width: 760px) {
  /* At 6:1 the baked-in headline would render at ~9px, so crop to the child
     and carry the line as real text instead. */
  .banner-band img { aspect-ratio: 5 / 2; object-fit: cover; object-position: left center; }
  .banner-band__caption {
    display: block; margin: 0; padding: 1.1rem 1.25rem 1.35rem;
    background: var(--brand-dark); color: #fff; text-align: center;
    font-family: var(--font-display); font-size: var(--step-1);
    line-height: 1.25; letter-spacing: -.02em;
  }
}

/* Rounded photo block, used for the donate page imagery. */
.media-card { border-radius: var(--r-lg); overflow: hidden; background: var(--brand-tint); }
.hero-banner { aspect-ratio: 21 / 9; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
@media (max-width: 760px) { .hero-banner { aspect-ratio: 4 / 3; } }

/* GlobalGiving recognition block (donate page) ----------------------------- */
.gg-trust { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; text-align: center; }
.gg-logo { width: 260px; max-width: 72%; height: auto; }
.gg-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.gg-badges li { margin: 0; }
.gg-badges img { width: 138px; height: auto; display: block; }

/* Same badges as a panel beside the awards list (about page) */
.gg-panel {
  margin-top: var(--gap); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.gg-panel__intro { max-width: 22ch; }
.gg-panel .gg-logo { width: 190px; max-width: 100%; margin-bottom: .9rem; }
.gg-panel p { margin: 0; font-size: .9rem; color: var(--muted); }
.gg-panel .gg-badges { justify-content: flex-end; gap: 1rem; }
@media (max-width: 980px) {
  .gg-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .gg-panel__intro { max-width: none; }
  .gg-panel .gg-badges { justify-content: center; }
}

.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .7s var(--ease); }
.img-zoom:hover img, a:hover .img-zoom img { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   6. TOP UTILITY BAR + HEADER
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; flex-wrap: wrap;
}
.topbar a:not([class*="btn"]) { color: rgba(255, 255, 255, .78); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; gap: 1.35rem; align-items: center; }
.topbar__note { display: flex; align-items: center; gap: .5rem; }
.topbar__note::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(246, 247, 244, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(42, 18, 20, .5);
}
.site-header__inner {
  width: min(100% - 2.5rem, 1320px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; min-height: 78px;
}

/* Logo --------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo__mark { width: 64px; height: auto; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.16rem;
  letter-spacing: -.02em; color: var(--ink); white-space: nowrap;
}
.logo__sub {
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: .3rem; white-space: nowrap;
}

/* Desktop nav -------------------------------------------------------------- */
.nav { display: flex; align-items: center; gap: .35rem; }
.nav__list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .45rem; border-radius: var(--r-sm);
  font-size: .84rem; font-weight: 500; color: var(--ink);
  text-decoration: none; white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { background: var(--brand-tint); color: var(--brand-dark); }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin-left: .1rem;
}
.nav__caret { width: 9px; height: 9px; transition: transform .25s var(--ease); }
.has-drop:hover .nav__caret, .has-drop:focus-within .nav__caret { transform: rotate(180deg); }

.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__list > li:last-child .drop { left: auto; right: 0; }
.has-drop:hover > .drop, .has-drop:focus-within > .drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.drop a {
  display: block; padding: .6rem .75rem; border-radius: var(--r-sm);
  font-size: .88rem; color: var(--ink); text-decoration: none; line-height: 1.35;
}
.drop a span { display: block; font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.drop a:hover { background: var(--brand-tint); }

.header-cta { display: flex; align-items: center; gap: .6rem; flex: none; }
@media (max-width: 420px) {
  .header-cta .btn--donate { padding-inline: 1rem; }
  .logo__sub { display: none; }
}

/* Hamburger ---------------------------------------------------------------- */
.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 13px; width: 20px; height: 1.8px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22.5px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer ------------------------------------------------------------ */
.mobile-nav {
  position: fixed; inset: 0; z-index: 95;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 1.25rem 0 2rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav__close span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mobile-nav__close span:nth-child(2) { opacity: 0; }
.mobile-nav__close span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.mobile-nav__list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.mobile-nav__list > li { border-bottom: 1px solid var(--line); }
.mobile-nav__list a, .mobile-nav__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink);
  padding: .95rem 0; text-decoration: none; background: none; border: 0;
  cursor: pointer; text-align: left; font-feature-settings: inherit;
}
.mobile-nav__toggle .chev { transition: transform .25s var(--ease); }
.mobile-nav__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mobile-sub { list-style: none; margin: 0; padding: 0 0 .75rem; display: none; }
.mobile-sub.is-open { display: block; }
.mobile-sub a { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); padding: .5rem 0 .5rem 1rem; border-left: 2px solid var(--line); }
.mobile-nav__foot { margin-top: 1.75rem; display: grid; gap: .6rem; }
body.nav-open { overflow: hidden; }

/* Sticky mobile donate bar -------------------------------------------------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; gap: .5rem; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.dock.is-visible { transform: translateY(0); }
.dock .btn { flex: 1; padding-block: .85rem; }

/* --------------------------------------------------------------------------
   7. HERO (homepage)
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 6vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(224,160,42,.16), rgba(224,160,42,0) 68%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: var(--step-5); margin-bottom: 1.1rem; }
.hero__title em {
  font-style: normal; color: var(--brand);
  background-image: linear-gradient(transparent 68%, var(--accent-tint) 68%);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero__sub { font-size: var(--step-1); max-width: 46ch; color: var(--ink-70); margin-bottom: 1.9rem; }
.hero__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.hero__meta dt { font-family: var(--font-display); font-size: 1.06rem; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.hero__meta dd { margin: .35rem 0 0; font-size: .84rem; line-height: 1.45; }

.hero__badge {
  position: absolute; left: -22px; bottom: 34px;
  background: #fff; border-radius: var(--r-md);
  padding: 1rem 1.15rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .8rem; max-width: 250px;
}
.hero__badge .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-tint); display: grid; place-items: center; flex: none; }
.hero__badge p { font-size: .8rem; line-height: 1.4; color: var(--ink); margin: 0; }

/* Full-screen variant: the photo fills the first viewport and the headline,
   CTA and key facts sit on top of it. ------------------------------------- */
.hero--full {
  display: grid; align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(2.25rem, 6vh, 4rem) clamp(3.5rem, 9vh, 5.5rem);
  color: rgba(255, 255, 255, .84);
}
.hero--full::before { display: none; }        /* drop the light-mode glow */

.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(42, 18, 20, .93) 0%, rgba(42, 18, 20, .78) 38%, rgba(42, 18, 20, .42) 68%, rgba(42, 18, 20, .22) 100%),
    linear-gradient(to top, rgba(42, 18, 20, .6), rgba(42, 18, 20, 0) 42%);
}

.hero--full .hero__inner {
  grid-template-columns: minmax(0, 56ch) auto;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}

/* Tighter vertical rhythm than the light hero — over a photo the copy needs
   to read as one block, not as separate floating pieces. */
.hero--full .eyebrow { color: var(--accent); margin-bottom: .8rem; }
.hero--full .hero__title { color: #fff; margin-bottom: .8rem; }
.hero--full .hero__title em { color: var(--accent); background-image: none; }
.hero--full .hero__sub { color: rgba(255, 255, 255, .86); max-width: 52ch; margin-bottom: 1.5rem; }
.hero--full .hero__meta {
  margin-top: 1.85rem; padding-top: 1.3rem; gap: 1.15rem;
  border-top-color: rgba(255, 255, 255, .24);
}
.hero--full .hero__meta dt { color: #fff; font-size: 1rem; }
.hero--full .hero__meta dd { color: rgba(255, 255, 255, .74); font-size: .82rem; margin-top: .25rem; }

.hero--full .hero__badge { position: static; margin: 0; max-width: 265px; }

/* Cue that there is more below the fold. */
.hero__scroll {
  position: absolute; z-index: 1; left: 50%; bottom: clamp(1.25rem, 4vh, 2.25rem);
  transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.hero__scroll:hover { background: rgba(255, 255, 255, .2); transform: translate(-50%, 3px); }

/* --------------------------------------------------------------------------
   8. PAGE HERO (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2.75rem, 5vw, 4.5rem); }
.page-hero__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.page-hero h1 { font-size: var(--step-4); margin-bottom: .6rem; }
.page-hero p { max-width: 56ch; font-size: var(--step-1); }
.page-hero--center .page-hero__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
/* Hero that ends with a banner image needs less air beneath it. */
.page-hero--media { padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem); }

.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .8rem; list-style: none; padding: 0; margin: 0 0 1.1rem; color: var(--muted); }
.crumbs li { margin: 0; display: flex; gap: .45rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* --------------------------------------------------------------------------
   9. PROBLEM / BIG STATEMENT
   -------------------------------------------------------------------------- */
h2.statement { margin-bottom: 0; }
.statement {
  font-family: var(--font-display); font-size: var(--step-3);
  line-height: 1.22; letter-spacing: -.02em; color: var(--ink);
  max-width: 22ch; font-weight: 600;
}
.figure-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; }

.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.35rem 0; border-top: 1px solid var(--line); margin: 0; }
.fact-list li:last-child { border-bottom: 1px solid var(--line); }
.fact-list .fig {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 700;
  color: var(--brand); letter-spacing: -.03em; line-height: 1.1; min-width: 3.5ch;
}
.fact-list h3, .fact-list h4 { font-size: var(--step-0); margin-bottom: .2rem; letter-spacing: 0; font-weight: 600; }
.fact-list p { font-size: .92rem; margin: 0; }

/* --------------------------------------------------------------------------
   10. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card__body { padding: 1.5rem 1.5rem 1.65rem; display: flex; flex-direction: column; flex: 1; gap: .6rem; }
.card__body h3 { margin: 0; }
.card__body p { font-size: .95rem; margin: 0; }
.card__foot { margin-top: auto; padding-top: 1.1rem; }
.card__tag {
  align-self: flex-start; font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-tint);
  padding: .3rem .65rem; border-radius: 999px;
}

/* Programme card — arched image, no box around the whole card */
/* Flex column so the "Learn more" link sits on the same baseline across the
   row, however long each card's copy runs. */
.prog { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.prog .link-arrow { margin-top: auto; align-self: flex-start; }
.prog__media { border-radius: var(--arch); overflow: hidden; margin-bottom: 1.35rem; background: var(--brand-tint); }
.prog__no {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: .5rem;
}
.prog h3 { margin-bottom: .5rem; }
.prog p { font-size: .95rem; margin-bottom: 1rem; }
.prog:hover h3 { color: var(--brand); }

/* Person card -------------------------------------------------------------- */
.person__media { border-radius: var(--arch); overflow: hidden; margin-bottom: 1rem; background: var(--brand-tint); }
.person h3, .person h4 { font-size: var(--step-1); margin-bottom: .1rem; }
.person .role { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: .55rem; }
.person p { font-size: .9rem; margin: 0; }

/* Award card --------------------------------------------------------------- */
.award { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; display: flex; flex-direction: column; gap: .45rem; }
.award .yr { font-family: var(--font-display); font-size: var(--step-1); color: var(--accent-dark); font-weight: 700; }
.award h3, .award h4 { margin: 0; font-size: var(--step-0); letter-spacing: 0; }
.award p { font-size: .88rem; margin: 0; }

/* --------------------------------------------------------------------------
   11. IMPACT COUNTERS
   -------------------------------------------------------------------------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); overflow: hidden; }
.impact-cell { background: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem); }
.impact-cell .num {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700;
  color: #fff; letter-spacing: -.035em; line-height: 1; display: flex; align-items: baseline; gap: .1rem;
}
.impact-cell .num .suffix { color: var(--accent); }
.impact-cell .lbl { margin-top: .75rem; font-size: .88rem; color: rgba(255, 255, 255, .72); line-height: 1.4; }

/* --------------------------------------------------------------------------
   12. FEATURED STORY (editorial)
   -------------------------------------------------------------------------- */
.feature-story { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-story__media { border-radius: var(--r-lg); overflow: hidden; }
.pull-quote {
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.28;
  letter-spacing: -.02em; color: var(--ink); font-weight: 500;
  border-left: 3px solid var(--accent); padding-left: 1.35rem; margin: 0 0 1.35rem;
}
.byline { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Story card --------------------------------------------------------------- */
.story-card { display: block; text-decoration: none; color: inherit; }
.story-card__media { border-radius: var(--r-md); overflow: hidden; margin-bottom: 1.1rem; background: var(--brand-tint); }
.story-card h3 { font-size: var(--step-1); margin-bottom: .45rem; }
.story-card p { font-size: .94rem; margin-bottom: .8rem; }
.story-card:hover h3 { color: var(--brand); }
.meta-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.meta-row .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* --------------------------------------------------------------------------
   13. LOGO WALL
   -------------------------------------------------------------------------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(185px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.logo-wall__item {
  background: #fff; min-height: 108px; display: grid; place-items: center; padding: 1.25rem;
  filter: grayscale(1); opacity: .62;
  transition: filter .35s var(--ease), opacity .35s var(--ease), background-color .35s var(--ease);
}
.logo-wall__item:hover { filter: grayscale(0); opacity: 1; background: var(--paper); }
.logo-wall__item img { max-height: 46px; width: auto; }
.logo-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink);
  letter-spacing: -.01em; text-align: center; line-height: 1.2;
}
.logo-mark span { display: block; font-family: var(--font-body); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: .25rem; }

/* --------------------------------------------------------------------------
   14. GET INVOLVED
   -------------------------------------------------------------------------- */
.involve { display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.involve:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.involve__icon { width: 46px; height: 46px; border-radius: 999px 999px 10px 10px; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand); margin-bottom: .35rem; }
.involve h3 { font-size: var(--step-1); margin: 0; }
.involve p { font-size: .93rem; margin: 0; flex: 1; }

/* --------------------------------------------------------------------------
   15. BIG CTA
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--brand-dark); color: rgba(255, 255, 255, .82); }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(140, 17, 48, .96) 22%, rgba(140, 17, 48, .62) 100%); }
.cta-band__inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.cta-band__body { max-width: 62ch; }
.cta-band .eyebrow { color: var(--accent); }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: var(--step-1); margin-bottom: 1.9rem; }

/* --------------------------------------------------------------------------
   16. VIDEO
   -------------------------------------------------------------------------- */
.video { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--ink); max-width: 980px; margin-inline: auto; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__btn {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(42, 18, 20, .12), rgba(42, 18, 20, .55));
  display: grid; place-items: center; color: #fff;
}
.video__btn .play {
  width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, .94);
  display: grid; place-items: center; color: var(--brand); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.video__btn:hover .play { transform: scale(1.08); background: #fff; }
.video__label { position: absolute; left: 1.5rem; bottom: 1.35rem; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.6); }

/* --------------------------------------------------------------------------
   17. PHOTO GRID / GALLERY
   -------------------------------------------------------------------------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.photo-grid .cell {
  border-radius: var(--r-md); overflow: hidden; background: var(--brand-tint);
  aspect-ratio: 1; position: relative;
}
.photo-grid .cell--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.photo-grid .cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-grid .cell:hover img { transform: scale(1.06); }

.gallery-grid { columns: 4; column-gap: .85rem; }
.gallery-grid .g-item { break-inside: avoid; margin-bottom: .85rem; border-radius: var(--r-md); overflow: hidden; position: relative; background: var(--brand-tint); display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.gallery-grid .g-item img { width: 100%; transition: transform .6s var(--ease); }
.gallery-grid .g-item:hover img { transform: scale(1.05); }
.gallery-grid .g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem .9rem .8rem; text-align: left;
  background: linear-gradient(transparent, rgba(42, 18, 20, .82));
  color: #fff; font-size: .82rem; opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-grid .g-item:hover figcaption, .gallery-grid .g-item:focus-visible figcaption { opacity: 1; }
.g-item.is-hidden { display: none; }

/* Filter chips ------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Lightbox ----------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(8, 22, 19, .93); padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; max-width: min(1100px, 100%); text-align: center; transform: scale(.97); transition: transform .35s var(--ease); }
.lightbox.is-open .lightbox__fig { transform: scale(1); }
.lightbox img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: var(--r-md); }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: .88rem; margin-top: 1rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.4rem;
  transition: background-color .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   18. TIMELINE
   -------------------------------------------------------------------------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 2.25rem 3rem; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .55rem; width: 15px; height: 15px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--brand);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .yr { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; color: var(--brand); letter-spacing: -.02em; display: block; margin-bottom: .3rem; }
.timeline h3, .timeline h4 { font-size: var(--step-0); letter-spacing: 0; margin-bottom: .3rem; }
.timeline p { font-size: .95rem; margin: 0; }

/* --------------------------------------------------------------------------
   19. ACCORDION
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  letter-spacing: -.015em; color: var(--ink); line-height: 1.3;
  transition: color .2s var(--ease);
}
.acc__btn:hover { color: var(--brand); }
.acc__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; position: relative; margin-top: .18rem; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.acc__icon::before { width: 11px; height: 1.6px; }
.acc__icon::after { width: 1.6px; height: 11px; }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--ink); border-color: var(--ink); }
.acc__btn[aria-expanded="true"] .acc__icon::before { background: #fff; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: scaleY(0); opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 1.35rem; max-width: 68ch; font-size: .97rem; }
.acc__panel p:first-child { padding-top: .1rem; }

/* --------------------------------------------------------------------------
   20. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .req { color: var(--accent-dark); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: .85rem 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232a1214' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 89, 78, .14); }
input::placeholder, textarea::placeholder { color: #9aa8a2; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .1); }
.error-msg { font-size: .82rem; color: #b3261e; display: none; }
.field.has-error .error-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: .28rem; accent-color: var(--brand); width: 17px; height: 17px; }

.form-note { font-size: .82rem; color: var(--muted); }
.form-status {
  display: none; align-items: flex-start; gap: .7rem;
  background: var(--brand-tint); border: 1px solid rgba(23, 89, 78, .2);
  border-radius: var(--r-md); padding: 1rem 1.15rem; font-size: .92rem; color: var(--ink);
}
.form-status.is-visible { display: flex; }
.form-status strong { display: block; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem); }

/* Newsletter --------------------------------------------------------------- */
.newsletter { display: flex; gap: .55rem; flex-wrap: wrap; }
.newsletter input { flex: 1 1 190px; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .25); color: #fff; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 160, 42, .18); }

/* --------------------------------------------------------------------------
   21. DONATE
   -------------------------------------------------------------------------- */
.need { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.need h3 { font-size: var(--step-1); margin: 0; }
.need p { font-size: .93rem; margin: 0; }
.need ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.progress { height: 7px; background: var(--brand-tint); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: 0; transition: width 1.2s var(--ease); }
.need__figures { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; font-size: .84rem; margin-bottom: .6rem; }
.need__figures .big { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }

.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.amount--wide { grid-column: 1 / -1; }
.amount {
  padding: 1rem .5rem; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: #fff; cursor: pointer; font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; color: var(--ink); letter-spacing: -.01em;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.amount:hover { border-color: var(--brand); }
.amount[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.amount small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 500; letter-spacing: .04em; opacity: .72; margin-top: .2rem; text-transform: none; }

.freq { display: inline-flex; width: max-content; max-width: 100%; padding: 4px; background: var(--brand-tint); border-radius: 999px; gap: 4px; }
.freq button { border: 0; background: transparent; padding: .55rem 1.15rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink-70); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.freq button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.summary-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-top: 1px dashed var(--line-strong); font-size: .92rem; }
.summary-line .total { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; color: var(--ink); letter-spacing: -.03em; }

.channel { display: flex; gap: 1rem; align-items: center; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; text-decoration: none; color: inherit; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.channel:hover { border-color: var(--brand); transform: translateY(-2px); }
.channel .mark { width: 52px; height: 52px; flex: none; border-radius: var(--r-sm); background: var(--brand-tint); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: .82rem; }
/* Partner logo instead of initials: a white plate that fits any logo shape. */
.channel .mark--logo { width: 112px; height: 64px; background: var(--white); border: 1px solid var(--line); padding: 0; overflow: hidden; }
/* Fixed px caps rather than percentages: the plate is a fixed-size grid cell,
   so a percentage max-height would resolve against the padding box and clip. */
.channel .mark--logo img { width: auto; height: auto; max-width: 92px; max-height: 46px; }
.channel .mark--bleed img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.channel h3, .channel h4 { margin: 0 0 .1rem; font-size: var(--step-0); letter-spacing: 0; }
.channel p { margin: 0; font-size: .86rem; }

/* --------------------------------------------------------------------------
   22. RESOURCES & BLOG
   -------------------------------------------------------------------------- */
.res { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.15rem; transition: border-color .25s var(--ease), box-shadow .3s var(--ease); }
.res:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.res__thumb { border-radius: var(--r-sm); overflow: hidden; background: var(--brand-tint); }
.res h3 { font-size: var(--step-0); margin-bottom: .35rem; letter-spacing: 0; }
.res p { font-size: .89rem; margin-bottom: .7rem; }
.res.is-hidden { display: none; }

.searchbar { position: relative; }
.searchbar input { padding-left: 2.85rem; }
.searchbar svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }

.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card__media { border-radius: var(--r-md); overflow: hidden; margin-bottom: 1.1rem; background: var(--brand-tint); }
.post-card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.post-card p { font-size: .93rem; margin-bottom: .8rem; }
.post-card:hover h3 { color: var(--brand); }
.post-card.is-hidden { display: none; }

.pagination { display: flex; gap: .4rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.pagination button {
  min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pagination button:hover:not(:disabled) { border-color: var(--ink); }
.pagination button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* Long-form article -------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p, .prose ul, .prose ol { font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose h3 { font-size: var(--step-1); margin-top: 2rem; }
.prose blockquote {
  margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4;
  color: var(--ink); letter-spacing: -.015em;
}
.prose figure { margin: 2.25rem 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .7rem; }

.share { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.share a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.share a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.aside-card { background: var(--brand-tint); border-radius: var(--r-lg); padding: 1.65rem; position: sticky; top: 110px; }
.aside-card h2, .aside-card h3 { font-size: var(--step-1); letter-spacing: -.01em; }
.aside-card p { font-size: .93rem; }

/* --------------------------------------------------------------------------
   23. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding-block: clamp(3rem, 6vw, 5rem) 0; }
.site-footer .footer-heading { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: 1.1rem; }
.site-footer a:not([class*="btn"]) { color: rgba(255, 255, 255, .68); text-decoration: none; }
.site-footer a:not([class*="btn"]):hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.footer-list li { margin-bottom: .55rem; }
.footer-brand .logo__name, .footer-brand .logo__sub { color: #fff; }
.footer-brand .logo__sub { color: rgba(255, 255, 255, .55); }
.footer-brand p { font-size: .92rem; margin-top: 1.1rem; max-width: 34ch; }
.footer-donate { margin-top: 1.35rem; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center; }
.social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
/* Beats `.site-footer a:not([class*="btn"]):hover`, which would otherwise turn
   the icon white on the white hover circle. */
.site-footer .social a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(255, 255, 255, .13); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; justify-content: space-between; font-size: .84rem; }
.footer-bottom ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-bottom li { margin: 0; }

/* --------------------------------------------------------------------------
   24. REVEAL ANIMATION
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }

[data-reveal-img] { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
[data-reveal-img].is-visible { clip-path: inset(0 0 0 0); }

/* --------------------------------------------------------------------------
   25. VISION, MISSION & VALUES
   -------------------------------------------------------------------------- */
/* Vision sits opposite the mission: one short enough to be read as a promise,
   the other long enough to explain how the promise is kept. */
.vm { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.vm__quote {
  font-family: var(--font-display); font-size: var(--step-4); font-weight: 600;
  line-height: 1.1; letter-spacing: -.025em; color: #fff;
  max-width: 17ch; margin: 0;
}
.vm__mission { padding-left: clamp(1.25rem, 3vw, 2.25rem); border-left: 1px solid rgba(255, 255, 255, .16); }
.vm__mission p { font-size: var(--step-1); line-height: 1.6; margin: 0; }

.values {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.values li {
  background: #fff; margin: 0; padding: clamp(1.5rem, 3vw, 2.1rem);
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
}
.values .tick {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center;
}
.values p { margin: 0; font-size: 1.02rem; line-height: 1.5; font-weight: 500; color: var(--ink); }

.reg-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); background: var(--paper);
  padding: 1.1rem 1.35rem; font-size: .9rem; color: var(--muted);
}
.reg-note .reg-no { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }

/* --------------------------------------------------------------------------
   26. BOARDS & NAME LISTS
   -------------------------------------------------------------------------- */
/* Boards are listed as names, not portraits: one hairline-separated card per
   body, so four bodies read as one governance table rather than four blocks. */
.board-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.board-group { background: #fff; padding: clamp(1.35rem, 2.4vw, 1.9rem); }
.board-group__title {
  font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line);
}

.name-list { list-style: none; margin: 0; padding: 0; }
.name-list li { margin: 0; padding: .55rem 0; }
.name-list .nm {
  display: block; font-family: var(--font-display); font-size: var(--step-0);
  font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ink);
}
.name-list .role {
  display: block; margin-top: .1rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent-dark);
}
.name-list--split { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 1.75rem; }
.name-list--3up { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 1.75rem; }

/* One card spanning the full row — the staff list under the boards */
.board-grid.board-grid--full { grid-template-columns: 1fr; margin-top: var(--gap); }

/* International panel — one tinted card holding two lanes of names */
.advisors {
  margin-top: var(--gap); background: var(--brand-tint); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; grid-template-columns: 1fr 2.15fr; gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.advisors__title { margin: 0; }
.advisors__cols { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
.advisors .board-group { background: transparent; padding: 0; }
.advisors .board-group__title { border-bottom-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   27. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1340px) {
  .header-cta .btn--outline { display: none; }
}

@media (max-width: 1220px) {
  .logo__sub { display: none; }
}

@media (max-width: 1100px) {
  .nav, .header-cta .btn--outline { display: none; }
  .burger { display: block; }
  :root { --header-h: 70px; }
  .site-header__inner { min-height: 70px; }
  .logo__sub { display: block; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; row-gap: 2.5rem; }
  .gallery-grid { columns: 3; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  /* Stacked layout: the copy sits over the foot of the photo, so the scrim
     has to run bottom-to-top instead of left-to-right. */
  .hero--full { align-items: end; padding-block: clamp(3rem, 10vh, 5rem) clamp(2.25rem, 6vh, 3.5rem); }
  .hero--full .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero--full .hero__badge { margin-top: 1.75rem; max-width: none; }
  .hero--full .hero__bg img { object-position: center 26%; }
  .hero__bg::after {
    background: linear-gradient(to top,
      rgba(42, 18, 20, .95) 0%, rgba(42, 18, 20, .88) 32%,
      rgba(42, 18, 20, .62) 62%, rgba(42, 18, 20, .35) 100%);
  }
  .hero__scroll { display: none; }
  .split, .split--7-5, .split--5-7, .feature-story, .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__inner { align-items: start; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid > *, .tier-grid > :nth-last-child(-n+2) { grid-column: auto; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .aside-card, .rail { position: static; }
  .dock { display: flex; }
  body { padding-bottom: 0; }
  .vm { grid-template-columns: 1fr; }
  .advisors, .advisors__cols { grid-template-columns: 1fr; }
  .name-list--3up { grid-template-columns: repeat(2, 1fr); }
  .vm__mission { padding-left: 0; padding-top: 1.75rem; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .vm__quote { max-width: 22ch; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .hero__meta { grid-template-columns: 1fr; gap: 1.1rem; }
  /* Phone: shrink the display type and squeeze the rhythm so the whole hero
     still lands within one screen. */
  .hero--full .hero__title { font-size: var(--step-4); margin-bottom: .7rem; }
  .hero--full .hero__sub { font-size: var(--step-0); margin-bottom: 1.35rem; }
  .hero--full .hero__meta { margin-top: 1.5rem; padding-top: 1.15rem; gap: .9rem; }
  .hero--full .hero__meta dd { margin-top: .15rem; }
  .hero--full .hero__badge { margin-top: 1.5rem; padding: .85rem 1rem; }
  .wrap, .wrap-narrow { width: min(100% - 2rem, var(--wrap)); }
  .grid-2, .grid-3, .grid-4, .tier-grid, .values,
  .board-grid, .name-list--split, .name-list--3up { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
  .topbar__links { gap: 1rem; font-size: .74rem; }
  .topbar__note { display: none; }
  .hero__badge { position: static; margin-top: 1rem; max-width: none; }
  .res { grid-template-columns: 72px 1fr; gap: 1rem; }
  .impact-grid { grid-template-columns: 1fr; }
  .prose p, .prose ul, .prose ol { font-size: 1.01rem; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
}

@media (max-width: 480px) {
  .logo__sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid .cell--big { grid-column: span 2; grid-row: span 2; }
  .btn-row .btn { width: 100%; }
  .site-header .btn, .topbar .btn, .dock .btn, .btn--sm,
  .newsletter .btn, .card .btn, .need .btn { width: auto; }
  .freq { width: 100%; }
  .freq button { flex: 1; padding: .55rem .5rem; font-size: .78rem; }
  /* Donation tiers: keep the long rupiah figures on one line on small phones. */
  .gg-badges { gap: .75rem; }
  .gg-badges img { width: 96px; }
  .amount { padding: .85rem .45rem; font-size: .95rem; }
  .amount small { font-size: .66rem; }
  .summary-line { flex-wrap: wrap; }
  .summary-line .total { font-size: var(--step-1); }
}

@media (max-width: 360px) {
  /* Very narrow phones: keep the logo + donate button + burger on one row. */
  .site-header__inner { width: min(100% - 1.5rem, 1320px); gap: .55rem; }
  .logo { gap: .5rem; }
  .logo__mark { width: 46px; }
  .logo__name { font-size: 1.02rem; }
  .header-cta { gap: .4rem; }
  .header-cta .btn--donate { padding-inline: .8rem; }
  .burger { width: 42px; height: 42px; }
}

/* Print -------------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .dock, .site-footer, .cta-band, .burger { display: none !important; }
  body { background: #fff; }
}

/* Reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal-img] { clip-path: none; }
  .btn:hover { transform: none; }
}

/* Reversed split (image on the right) ------------------------------------- */
@media (min-width: 981px) {
  .split--reverse > *:first-child { order: 2; }
}
