@charset "UTF-8";
/* ==========================================================================
   Racheal Diabetes Amputees Foundation
   assets/css/styles.css

   Contents
     01  Fonts
     02  Design tokens
     03  Reset and base
     04  Typography
     05  Layout primitives
     06  Header and navigation
     07  Buttons and links
     08  Hero
     09  The Chain
     10  Editorial sections
     11  Programme chapters and sticky rail
     12  Portraits and beneficiary blocks
     13  Gallery and lightbox
     14  Forms
     15  Support and copy-to-clipboard
     16  Footer
     17  WhatsApp button
     18  404
     19  Motion preferences
   ========================================================================== */

/* 01  Fonts ---------------------------------------------------------------
   Self-hosted, latin subset, variable. No third-party request at runtime. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/publicsans-latin-var.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 02  Design tokens -------------------------------------------------------
   Brand values sampled directly from logo.jpg. Contrast ratios noted where
   they govern a decision. See DESIGN-PLAN.md section 2. */

:root {
  /* Brand — measured from the logo */
  --deep: #0b3b38;          /* deep teal ground        white on it 12.38:1 */
  --deeper: #072a28;
  --teal: #0a6c63;          /* text-safe teal          5.57:1 on --paper   */
  --teal-bright: #22c7b7;   /* THE logo teal           5.85:1 on --deep    */
  --signal: #c3262f;        /* THE logo red            5.11:1 on --paper   */
  --signal-light: #f2777e;  /* red for dark grounds    4.55:1 on --deep    */
  --gold: #8a6412;          /* livelihoods accent      4.75:1 on --paper   */
  --gold-bright: #e0a63a;   /*                         5.71:1 on --deep    */

  /* Neutrals */
  --paper: #eef2f0;
  --white: #ffffff;
  --ink: #0e1f1d;           /* 15.09:1 on --paper */
  --muted: #4f6467;         /* the logo figure grey, 5.55:1 on --paper */
  --mist: #b9ccc9;          /* 7.39:1 on --deep */
  --line: #d4dedb;
  --line-dark: #1c4f4b;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: clamp(1.375rem, 1.1rem + 1.1vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --fs-2xl: clamp(2.125rem, 1.5rem + 2.7vw, 3.5rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  --fs-hero: clamp(2.5rem, 1.5rem + 5.2vw, 5.5rem);

  --measure: 64ch;
  --measure-tight: 54ch;

  /* Space */
  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 1rem;    --s4: 1.5rem;
  --s5: 2.5rem;   --s6: 4rem;     --s7: 6rem;    --s8: 9rem;   --s9: 12.5rem;

  --shell: 82rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --band: clamp(4rem, 9vw, 9rem);   /* vertical rhythm of a section band */

  --focus: 3px solid var(--teal);
  --focus-dark: 3px solid var(--teal-bright);
}

/* 03  Reset and base ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

::selection { background: var(--teal-bright); color: var(--deeper); }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.chain :focus-visible { outline: var(--focus-dark); }

.skip-link {
  position: absolute;
  left: var(--s3);
  top: var(--s3);
  z-index: 200;
  transform: translateY(-160%);
  background: var(--deep);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

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

/* 04  Typography --------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-3xl);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--fs-2xl);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.02em;
}
h3 {
  font-size: var(--fs-xl);
  font-variation-settings: "opsz" 48;
}
h4 {
  font-size: var(--fs-lg);
  font-variation-settings: "opsz" 24;
  line-height: 1.2;
}

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

.prose { max-width: var(--measure); }
.prose-tight { max-width: var(--measure-tight); }

.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
  max-width: var(--measure);
}
.on-dark .lead { color: var(--mist); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 var(--s2);
}
.on-dark .eyebrow { color: var(--teal-bright); }

/* The section rule carries meaning: red states a problem, teal a response. */
.rule { display: block; width: 3.5rem; height: 2px; border: 0; margin: 0 0 var(--s4); }
.rule-signal { background: var(--signal); }
.rule-teal { background: var(--teal); }
.on-dark .rule-signal { background: var(--signal-light); }
.on-dark .rule-teal { background: var(--teal-bright); }

.sec-num {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.text-signal { color: var(--signal); }
.on-dark { color: var(--mist); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }

/* 05  Layout primitives -------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-narrow { max-width: 62rem; }

.band { padding-block: var(--band); }
.band-paper { background: var(--paper); }
.band-white { background: var(--white); }
.band-deep { background: var(--deep); color: var(--mist); }
.band-deeper { background: var(--deeper); color: var(--mist); }

.band-deep h1, .band-deep h2, .band-deep h3, .band-deep h4,
.band-deeper h1, .band-deeper h2, .band-deeper h3, .band-deeper h4 { color: var(--white); }

/* Document grid: a persistent left index gutter with prose beside it. */
.doc { display: grid; gap: var(--s4); }
@media (min-width: 62rem) {
  .doc {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    column-gap: var(--s6);
    align-items: start;
  }
}
.doc-index { position: relative; }
@media (min-width: 62rem) {
  .doc-index { position: sticky; top: 7.5rem; }
}
.doc-index .sec-num { display: block; margin-bottom: var(--s1); }
.doc-index-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  border-top: 2px solid var(--signal);
  padding-top: var(--s2);
  display: block;
}
.on-dark .doc-index-label { color: var(--white); border-top-color: var(--signal-light); }

.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }

.split {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 52rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
}

.figure { margin: 0; }
.figure img { width: 100%; border-radius: 2px; }
.figure figcaption {
  margin-top: var(--s2);
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 46ch;
}
.on-dark .figure figcaption { color: var(--mist); }

.ratio-3x2 { aspect-ratio: 3 / 2; object-fit: cover; }
.ratio-4x3 { aspect-ratio: 4 / 3; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4 / 5; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; object-fit: cover; }

/* Typographic activity list — a hanging teal rule, not a bullet box. */
.activities { list-style: none; margin: 0; padding: 0; }
.activities > li {
  position: relative;
  padding-left: var(--s4);
  padding-block: 0.55rem;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}
.activities > li:last-child { border-bottom: 1px solid var(--line); }
.activities > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 0.75rem;
  height: 2px;
  background: var(--teal);
}
.on-dark .activities > li { border-color: var(--line-dark); }
.on-dark .activities > li::before { background: var(--teal-bright); }

.plain-list { list-style: none; margin: 0; padding: 0; }

/* A simple keyed list used for values, approach, impact, sustainability. */
.keyed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.keyed > li {
  display: grid;
  gap: var(--s1) var(--s4);
  padding-block: var(--s4);
  border-top: 1px solid var(--line);
}
.keyed > li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 46rem) {
  .keyed > li { grid-template-columns: 3rem 14rem minmax(0, 1fr); align-items: baseline; }
}
.keyed dt, .keyed-term {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-variation-settings: "opsz" 24;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}
.keyed-body { color: var(--muted); max-width: 52ch; }
.on-dark .keyed > li { border-color: var(--line-dark); }
.on-dark .keyed-term { color: var(--white); }
.on-dark .keyed-body { color: var(--mist); }

/* Pill list for SDGs / partner categories */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.tags > li {
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  background: var(--white);
}
.on-dark .tags > li { border-color: var(--line-dark); color: var(--mist); background: transparent; }

/* 06  Header and navigation ---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(11, 59, 56, 0.55); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand-mark { width: 2.65rem; height: 2.65rem; flex: 0 0 auto; }
.brand-text { display: grid; gap: 0.12rem; line-height: 1; }
.brand-name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
}
.brand-sub {
  background: var(--signal);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: -0.005em;
  padding: 0.16rem 0.34rem 0.2rem;
  justify-self: start;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span { display: block; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.35rem);
}
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.55rem 0.15rem;
  display: inline-block;
  min-height: 44px;
  line-height: 2;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { border-bottom-color: var(--teal); color: var(--teal); }
.nav-list a[aria-current="page"] {
  border-bottom-color: var(--signal);
  font-weight: 700;
}
.nav-cta a { border-bottom: 0 !important; }
.nav-cta a:hover { color: var(--white); }

@media (max-width: 63.99rem) {
  .nav-toggle { order: 3; }
  .site-nav {
    position: fixed;
    inset: 4.75rem 0 0 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: var(--s4) var(--gutter) var(--s6);
    overflow-y: auto;
    transform: translateY(-0.75rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a {
    font-size: var(--fs-md);
    padding: 0.95rem 0;
    border-bottom: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
  }
  .nav-list a[aria-current="page"] { color: var(--signal); }
  .nav-cta { border-bottom: 0 !important; padding-top: var(--s4); }
  .nav-cta a { justify-content: center; }
}
@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
}

/* 07  Buttons and links -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.78rem 1.4rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn-signal { background: var(--signal); color: var(--white); border-color: var(--signal); }
.btn-signal:hover { background: #a51f27; border-color: #a51f27; color: var(--white); }

.btn-deep { background: var(--deep); color: var(--white); border-color: var(--deep); }
.btn-deep:hover { background: var(--deeper); border-color: var(--deeper); }

.btn-teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: #08554e; border-color: #08554e; }

.btn-ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { background: var(--white); color: var(--deep); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }
.on-dark a, .band-deep a, .band-deeper a { color: var(--teal-bright); }
.on-dark a:hover, .band-deep a:hover, .band-deeper a:hover { color: var(--white); }

/* A link that names its destination, set as a standalone block. */
.link-more {
  display: inline-block;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}
.link-more:hover { border-bottom-color: var(--deep); }
.on-dark .link-more { border-bottom-color: var(--teal-bright); }
.on-dark .link-more:hover { border-bottom-color: var(--white); }

/* 08  Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 46rem);
  padding-block: var(--s7) var(--s6);
  background: var(--deeper);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: grayscale(1) contrast(1.08) brightness(0.92); }

/* Duotone: multiply the deep teal into the shadows, screen the bright logo
   teal into the highlights. */
.hero-media::before,
.hero-media::after { content: ""; position: absolute; inset: 0; }
.hero-media::before { background: var(--deep); mix-blend-mode: multiply; }
.hero-media::after { background: var(--teal-bright); mix-blend-mode: screen; opacity: 0.16; }

/* A solid scrim guarantees text contrast whatever the photograph does. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(7, 42, 40, 0.94) 0%, rgba(7, 42, 40, 0.86) 42%, rgba(7, 42, 40, 0.42) 100%),
    linear-gradient(to top, rgba(7, 42, 40, 0.85) 0%, rgba(7, 42, 40, 0) 55%);
}
/* The clearing layer for the entrance moment. Sits above the photograph and
   below the copy, and only ever animates once. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--deeper);
  opacity: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 54rem; }
.hero h1 { color: var(--white); margin-bottom: var(--s4); }
.hero-lead {
  color: var(--mist);
  font-size: var(--fs-md);
  max-width: 46ch;
  margin-bottom: var(--s5);
}
.hero-kicker {
  color: var(--teal-bright);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--s3);
}
.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--signal-light);
  vertical-align: 0.28em;
  margin-right: 0.7rem;
}

/* The single orchestrated moment: 760ms, once, on load. */
.hero-anim::before { animation: heroClear 760ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-anim .hero-kicker { animation: heroRise 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 120ms both; }
.hero-anim h1 { animation: heroRise 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 180ms both; }
.hero-anim .hero-lead { animation: heroRise 640ms cubic-bezier(0.22, 0.61, 0.36, 1) 300ms both; }
.hero-anim .hero-actions { animation: heroRise 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 390ms both; }

@keyframes heroClear { from { opacity: 1; } to { opacity: 0; } }
@keyframes heroRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Compact page header used on interior pages. */
.page-head {
  position: relative;
  isolation: isolate;
  background: var(--deep);
  color: var(--mist);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
}
.page-head-media { position: absolute; inset: 0; z-index: -2; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.page-head-media::before { content: ""; position: absolute; inset: 0; background: var(--deep); mix-blend-mode: multiply; }
.page-head::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(92deg, rgba(7, 42, 40, 0.93) 0%, rgba(7, 42, 40, 0.8) 55%, rgba(7, 42, 40, 0.55) 100%);
}
.page-head h1 { color: var(--white); }
.page-head .lead { color: var(--mist); }

.breadcrumb { font-size: var(--fs-sm); color: var(--mist); margin-bottom: var(--s3); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(185, 204, 201, 0.5); }
.breadcrumb a { color: var(--teal-bright); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--mist); }

/* 09  The Chain ----------------------------------------------------------
   Red = the progression toward limb loss. Teal = the intervention that
   leaves it. Works as a plain list with JavaScript disabled. */

.chain { position: relative; }

.chain-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
}

.chain-stage { position: relative; }

.chain-node {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0 0 var(--s3);
  color: inherit;
  font: inherit;
  cursor: default;
}
.chain-node-dot {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--signal-light);
  margin-bottom: var(--s3);
  position: relative;
  z-index: 2;
}
.chain-node-index {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--signal-light);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.chain-node-label {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.01em;
}

.chain-branch { padding-left: var(--s4); position: relative; }
.chain-branch-kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal-bright);
  margin: 0 0 0.35rem;
}
.chain-branch-title {
  font-size: var(--fs-lg);
  font-variation-settings: "opsz" 24;
  color: var(--white);
  margin: 0 0 var(--s2);
}
.chain-branch-text { color: var(--mist); margin: 0; max-width: 52ch; }
.chain-offramp { display: none; }

/* --- Enhanced (JavaScript on) --- */

.chain.is-enhanced .chain-node { cursor: pointer; }
.chain.is-enhanced .chain-node:hover .chain-node-label { color: var(--teal-bright); }

.chain.is-enhanced .chain-branch {
  display: none;
  padding-left: 0;
}
.chain.is-enhanced .chain-branch.is-active { display: block; }

.chain-panel {
  display: none;
  position: relative;
  margin-top: var(--s5);
  border-top: 1px solid var(--line-dark);
  padding-top: var(--s5);
}
.chain.is-enhanced .chain-panel { display: block; }

.chain.is-enhanced .chain-offramp {
  display: block;
  position: absolute;
  top: calc(var(--s5) * -1 - 0.4rem);
  left: var(--offramp-x, 0);
  width: 7.5rem;
  height: calc(var(--s5) + 0.8rem);
  overflow: visible;
  pointer-events: none;
}
.chain-offramp path {
  fill: none;
  stroke: var(--teal-bright);
  stroke-width: 2;
  stroke-linecap: round;
}
.chain-branch.is-active .chain-offramp path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: offramp 520ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes offramp { to { stroke-dashoffset: 0; } }

@media (max-width: 51.99rem) {
  /* Vertical chain: the red line runs down the left of the stack. */
  .chain-track { gap: 0; }
  .chain-stage { padding-left: 1.6rem; padding-bottom: var(--s4); }
  .chain-stage::before {
    content: "";
    position: absolute;
    left: 0.36rem;
    top: 0.4rem;
    bottom: -0.4rem;
    width: 2px;
    background: var(--signal-light);
  }
  .chain-stage:last-child::before { bottom: auto; height: 0.5rem; }
  .chain-node-dot { position: absolute; left: -1.6rem; top: 0.3rem; margin: 0; }
  .chain.is-enhanced .chain-stage { padding-bottom: var(--s3); }
}

@media (min-width: 52rem) {
  .chain-track { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .chain-stage { display: contents; }
  .chain-node {
    grid-row: 1;
    padding-right: var(--s3);
    padding-bottom: var(--s5);
  }
  /* The unbroken red line, drawn between the nodes. */
  .chain-node::after {
    content: "";
    position: absolute;
    left: 0.42rem;
    top: 0.42rem;
    width: 100%;
    height: 2px;
    background: var(--signal-light);
    z-index: 1;
  }
  .chain-stage:last-child .chain-node::after { display: none; }
  .chain-branch { grid-row: 2; grid-column: 1 / -1; }
  .chain-panel { grid-row: 2; grid-column: 1 / -1; margin-top: 0; }

  /* Without JavaScript the five branches sit in a readable row. */
  .chain:not(.is-enhanced) .chain-branch {
    grid-row: 2;
    grid-column: auto;
    padding: var(--s3) var(--s3) 0 0;
    border-top: 1px solid var(--line-dark);
  }
  .chain:not(.is-enhanced) .chain-branch-title { font-size: var(--fs-base); }
  .chain:not(.is-enhanced) .chain-branch-text { font-size: var(--fs-sm); }
}

.chain.is-enhanced .chain-node[aria-selected="true"] .chain-node-dot {
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(34, 199, 183, 0.24);
}
.chain.is-enhanced .chain-node[aria-selected="true"] .chain-node-label { color: var(--teal-bright); }
.chain.is-enhanced .chain-node[aria-selected="true"] .chain-node-index { color: var(--teal-bright); }

.chain-hint {
  font-size: var(--fs-sm);
  color: var(--mist);
  margin-top: var(--s4);
  display: none;
}
.chain.is-enhanced ~ .chain-hint, .chain.is-enhanced .chain-hint { display: block; }

/* 10  Editorial sections -------------------------------------------------- */

.section-head { margin-bottom: var(--s6); }
.section-head h2 { max-width: 20ch; }

/* Programme preview on the home page: alternating measure, large numerals. */
.preview-list { list-style: none; margin: 0; padding: 0; }
.preview-item {
  display: grid;
  gap: var(--s3) var(--s5);
  padding-block: var(--s5);
  border-top: 1px solid var(--line);
  align-items: start;
}
.preview-item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) {
  .preview-item { grid-template-columns: 4.5rem minmax(0, 1.15fr) minmax(0, 1fr); }
  .preview-item:nth-child(even) { background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6)); }
}
.preview-num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--signal);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.preview-item h3 { margin-bottom: var(--s2); }
.preview-item h3 a { color: var(--ink); text-decoration: none; }
.preview-item h3 a:hover { color: var(--teal); }
.preview-body { color: var(--muted); max-width: 52ch; }

/* Quiet tagline band */
.tagline-band { text-align: left; }
.tagline {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 20;
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: 1.12;
  color: var(--white);
  max-width: 22ch;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Mosaic teaser — asymmetric by design: one large frame, then a 3+3 rhythm. */
.mosaic { display: grid; gap: var(--s2); grid-template-columns: repeat(2, 1fr); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; aspect-ratio: 3 / 2; }
.mosaic-a { grid-column: span 2; }

@media (min-width: 46rem) {
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; }
  /* row 1-2: a (half width, double height) beside b and c stacked */
  .mosaic-a { grid-column: 1 / 4; grid-row: 1 / 3; aspect-ratio: auto; min-height: 22rem; }
  .mosaic-b { grid-column: 4 / 7; grid-row: 1; aspect-ratio: auto; }
  .mosaic-c { grid-column: 4 / 7; grid-row: 2; aspect-ratio: auto; }
  /* row 3: three equal frames */
  .mosaic-d { grid-column: 1 / 3; grid-row: 3; aspect-ratio: 3 / 2; }
  .mosaic-e { grid-column: 3 / 5; grid-row: 3; aspect-ratio: 3 / 2; }
  .mosaic-f { grid-column: 5 / 7; grid-row: 3; aspect-ratio: 3 / 2; }
}

/* Two-up call to action */
.cta-split { display: grid; gap: 0; }
@media (min-width: 52rem) { .cta-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cta-panel { padding: clamp(2rem, 4vw, 3.5rem); }
.cta-panel-deep { background: var(--deep); color: var(--mist); }
.cta-panel-deeper { background: var(--deeper); color: var(--mist); }
.cta-panel h2, .cta-panel h3 { color: var(--white); }

/* 11  Programme chapters and sticky rail --------------------------------- */

.chapters { display: grid; gap: 0; }
@media (min-width: 64rem) {
  .chapters { grid-template-columns: 15rem minmax(0, 1fr); column-gap: var(--s6); align-items: start; }
}

.rail { display: none; }
@media (min-width: 64rem) {
  .rail {
    display: block;
    position: sticky;
    top: 7.5rem;
    padding-top: var(--s6);
  }
}
.rail-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 var(--s3);
}
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail li { border-top: 1px solid var(--line); }
.rail li:last-child { border-bottom: 1px solid var(--line); }
.rail a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0;
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: none;
  line-height: 1.3;
  border-left: 2px solid transparent;
  padding-left: 0.6rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.rail a:hover { color: var(--ink); }
.rail a .rail-num { font-variant-numeric: tabular-nums; font-weight: 700; }
.rail a[aria-current="true"] {
  color: var(--ink);
  border-left-color: var(--signal);
  font-weight: 600;
}

.chapter { padding-block: var(--s7); border-top: 1px solid var(--line); scroll-margin-top: 7rem; }
.chapter:first-of-type { border-top: 0; }
.chapter-head { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.chapter-num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--signal);
  line-height: 1;
}
.chapter-body { display: grid; gap: var(--s5); }
@media (min-width: 56rem) {
  .chapter-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .chapter:nth-of-type(even) .chapter-media { order: -1; }
}
.chapter-media img { width: 100%; border-radius: 2px; }
.chapter-activities { margin-top: var(--s5); }
.chapter-activities h4 { margin-bottom: var(--s3); }

/* The chapter glyph: which link of the chain this programme breaks. */
.glyph { width: 100%; max-width: 9rem; height: auto; margin-bottom: var(--s3); overflow: visible; }
.glyph .glyph-chain { fill: none; stroke: var(--signal); stroke-width: 2; }
.glyph .glyph-off { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.glyph .glyph-dot { fill: var(--signal); }
.glyph .glyph-dot-live { fill: var(--teal); }
.glyph-caption { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 var(--s4); }

/* 12  Portraits and beneficiary blocks ----------------------------------- */

.people { display: grid; gap: var(--s6) var(--s5); }
@media (min-width: 46rem) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person img { width: 100%; border-radius: 2px; margin-bottom: var(--s3); }
.person h3 { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.person p { color: var(--muted); font-size: var(--fs-sm); }
.person-rule { display: block; width: 100%; height: 2px; background: var(--teal); border: 0; margin: 0 0 var(--s3); }

/* Alternating full-width beneficiary chapters */
.serve-block {
  display: grid;
  gap: var(--s4) var(--s6);
  padding-block: var(--s6);
  border-top: 1px solid var(--line);
  align-items: center;
}
@media (min-width: 56rem) {
  .serve-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .serve-block:nth-of-type(even) .serve-media { order: -1; }
}
.serve-media img { width: 100%; border-radius: 2px; }
.serve-text h2 { font-size: var(--fs-xl); }

/* 13  Gallery and lightbox ------------------------------------------------ */

.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.6rem 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip[aria-pressed="true"] {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
  font-weight: 600;
}

.masonry { columns: 1; column-gap: var(--s3); }
@media (min-width: 34rem) { .masonry { columns: 2; } }
@media (min-width: 56rem) { .masonry { columns: 3; } }
@media (min-width: 82rem) { .masonry { columns: 4; } }

.tile {
  break-inside: avoid;
  margin: 0 0 var(--s3);
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--deep);
  cursor: pointer;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
}
.tile img { width: 100%; height: auto; border-radius: 2px; transition: opacity 0.2s ease, transform 0.35s ease; }
.tile:hover img { opacity: 0.86; transform: scale(1.015); }
.tile[hidden] { display: none; }
.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s4) 0.85rem 0.7rem;
  background: linear-gradient(to top, rgba(7, 42, 40, 0.9), rgba(7, 42, 40, 0));
  color: var(--white);
  font-size: var(--fs-xs);
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tile:hover .tile-caption, .tile:focus-visible .tile-caption { opacity: 1; }

.gallery-empty { color: var(--muted); padding: var(--s5) 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 42, 40, 0.96);
  padding: clamp(0.75rem, 3vw, 2.5rem);
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; max-width: min(72rem, 100%); max-height: 100%; display: grid; gap: var(--s3); }
.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 2px;
  object-fit: contain;
}
.lightbox-figure figcaption { color: var(--mist); font-size: var(--fs-sm); text-align: center; max-width: 60ch; margin-inline: auto; }
.lightbox-count { color: rgba(185, 204, 201, 0.7); font-size: var(--fs-xs); text-align: center; font-variant-numeric: tabular-nums; }

.lightbox-btn {
  position: absolute;
  background: rgba(11, 59, 56, 0.86);
  border: 1px solid rgba(185, 204, 201, 0.35);
  color: var(--white);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
}
.lightbox-btn:hover { background: var(--teal); border-color: var(--teal); }
.lightbox-close { top: clamp(0.75rem, 3vw, 1.75rem); right: clamp(0.75rem, 3vw, 1.75rem); }
.lightbox-prev { left: clamp(0.5rem, 2vw, 1.75rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.5rem, 2vw, 1.75rem); top: 50%; transform: translateY(-50%); }

/* 14  Forms -------------------------------------------------------------- */

.form { display: grid; gap: var(--s4); max-width: 42rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.on-dark .field label { color: var(--white); }
.field-hint { font-size: var(--fs-xs); color: var(--muted); }
.on-dark .field-hint { color: var(--mist); }

.field input, .field select, .field textarea {
  font: inherit;
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--muted);
  border-radius: 0;
  padding: 0.72rem 0.85rem;
  min-height: 44px;
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: var(--focus);
  outline-offset: 1px;
  border-color: var(--teal);
}
.field-error {
  font-size: var(--fs-sm);
  color: var(--signal);
  font-weight: 600;
  display: none;
}
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--signal); border-width: 2px; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: var(--s3) var(--s4);
  border-left: 3px solid var(--teal);
  background: var(--white);
  font-size: var(--fs-sm);
}
.form-status[hidden] { display: none; }
.form-status.is-error { border-left-color: var(--signal); }
.on-dark .form-status { background: rgba(255, 255, 255, 0.06); color: var(--mist); }

.form-fallback { font-size: var(--fs-sm); color: var(--muted); }
.on-dark .form-fallback { color: var(--mist); }

/* 15  Support and copy-to-clipboard --------------------------------------- */

.give-grid { display: grid; gap: var(--s4); }
@media (min-width: 46rem) { .give-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.give-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  padding: var(--s4);
  display: grid;
  gap: var(--s3);
  align-content: start;
}
.give-card h3 { font-size: var(--fs-lg); margin: 0; }
.give-card p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

.give-row { display: grid; gap: 0.4rem; }
.give-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }
.give-value-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.give-value {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  word-break: break-word;
}
.give-value.is-placeholder { color: var(--signal); font-size: var(--fs-sm); font-weight: 600; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--muted);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { background: var(--deep); color: var(--white); border-color: var(--deep); }
.copy-btn.is-copied { background: var(--teal); border-color: var(--teal); color: var(--white); }
.copy-btn.is-failed { background: var(--signal); border-color: var(--signal); color: var(--white); }
.copy-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.accountability {
  border-left: 3px solid var(--signal);
  padding-left: var(--s4);
  max-width: var(--measure);
}

/* 16  Footer -------------------------------------------------------------- */

.site-footer { background: var(--deeper); color: var(--mist); padding-top: var(--s7); }
.footer-grid { display: grid; gap: var(--s6); padding-bottom: var(--s6); }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--s5); } }

.footer-brand .brand { color: var(--white); margin-bottom: var(--s3); }
.footer-brand .brand-name { color: var(--white); }
.footer-tagline {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: var(--fs-lg);
  color: var(--teal-bright);
  line-height: 1.2;
  max-width: 20ch;
  margin: 0 0 var(--s3);
}
.footer-note { font-size: var(--fs-sm); color: var(--mist); max-width: 40ch; }

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--white);
  margin: 0 0 var(--s3);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-links a { color: var(--mist); text-decoration: none; font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--teal-bright); text-decoration: underline; }

.footer-contact { font-size: var(--fs-sm); font-style: normal; display: grid; gap: 0.55rem; }
.footer-contact a { color: var(--mist); text-decoration: none; word-break: break-word; }
.footer-contact a:hover { color: var(--teal-bright); text-decoration: underline; }

.footer-base {
  border-top: 1px solid var(--line-dark);
  padding-block: var(--s4);
  font-size: var(--fs-xs);
  color: rgba(185, 204, 201, 0.75);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
}
.footer-base a { color: rgba(185, 204, 201, 0.85); }

/* 17  WhatsApp button ----------------------------------------------------- */

.wa {
  position: fixed;
  right: clamp(0.85rem, 2.5vw, 1.5rem);
  bottom: clamp(0.85rem, 2.5vw, 1.5rem);
  z-index: 90;
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.wa.is-visible { display: flex; }
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--deep);
  color: var(--white);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.72rem 1.05rem;
  min-height: 48px;
  box-shadow: 0 10px 30px -12px rgba(7, 42, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.wa-link:hover { background: var(--teal); color: var(--white); }
.wa-link svg { width: 1.15rem; height: 1.15rem; fill: currentColor; flex: 0 0 auto; }
.wa-dismiss {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 6px 18px -10px rgba(7, 42, 40, 0.6);
}
.wa-dismiss:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* 18  404 ----------------------------------------------------------------- */

.notfound { display: grid; place-items: start; min-height: 58vh; align-content: center; }
.notfound-code {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--signal);
  margin: 0 0 var(--s3);
}

/* 19  Motion preferences -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-anim::before,
  .hero-anim .hero-kicker,
  .hero-anim h1,
  .hero-anim .hero-lead,
  .hero-anim .hero-actions { animation: none !important; opacity: 1; transform: none; }
  .hero-anim::before { opacity: 0; }
  .chain-branch.is-active .chain-offramp path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .tile:hover img { transform: none; }
}
