/* ============================================================
   TAMELA FOUNDATION, site.css
   Field Editorial
   Order: 1 tokens · 2 reset · 3 base type · 4 layout primitives
          5 header · 6 hero · 7 sections · 8 components
          9 footer · 10 motion · 11 responsive
   ============================================================ */


/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  color-scheme: light;
  /* ground */
  --paper: #FFFFFF;
  --paper-2: #F6F6F4;
  --paper-3: #EDEDEA;

  /* ink */
  --ink: #16182E;
  --ink-2: #4A4F63;
  --ink-3: #666B7D;   /* 5.29:1 on white, AA for small text */

  /* brand */
  --navy: #292E75;
  --navy-deep: #1B1F55;
  --orange: #D86735;
  --orange-deep: #B44E22;
  --orange-tint: #F7EAE2;

  /* line */
  --rule: rgba(22, 24, 46, .09);
  /* derived from the tokens above: the same hairline on dark ground,
     the translucent paper veil for the scrolled header, and its shadow */
  --rule-inverse: rgba(250, 246, 239, .18);
  --paper-veil: rgba(255, 255, 255, .95);
  --shadow-nav: 0 1px 14px rgba(22, 24, 46, .06);

  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* no monospace webfont is loaded on this site, so the old stack fell through
     to Consolas on Windows. Small technical markers use the sans instead. */
  --mono: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* metrics */
  --container: 1560px;
  --pad-x: clamp(1.25rem, 5vw, 3.5rem);
  --band-y: clamp(5.5rem, 10vw, 9rem);
  --gutter: clamp(1.25rem, 2.4vw, 2rem);
  --header-h: 68px;

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}


/* ============================================================
   2. RESET
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--orange-tint);
  color: var(--ink);
}


/* ============================================================
   3. BASE TYPE
   ============================================================ */
h1, h2, h3, h4, blockquote {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 1.15rem;
}

/* On tinted grounds the orange label drops below AA at this size,
   so the label switches to navy. Same role, accessible contrast. */
.band--2 .eyebrow,
.band--3 .eyebrow { color: var(--navy); }

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 20ch;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.62;
  color: var(--ink-2);
}

em, .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}


/* ============================================================
   4. LAYOUT PRIMITIVES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.band {
  padding-block: var(--band-y);
  border-top: 1px solid var(--rule);
}

.band--2 { background: var(--paper-2); }
.band--3 { background: var(--paper-3); }

.section-head { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }

/* narrow measure column, indented to col 3 on wide screens */
.indent-col { max-width: 66ch; }
.indent-col__link { margin-top: 1.5rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: var(--paper);
  padding: .7rem 1.1rem;
  border-radius: 2px;
  font-size: .9rem;
  font-weight: 600;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 1rem; }


/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--ease),
              border-color 200ms var(--ease),
              box-shadow 200ms var(--ease);
}

.site-header.is-scrolled {
  background: var(--paper-veil);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom-color: var(--rule);
  box-shadow: var(--shadow-nav);
}

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .site-header.is-scrolled { background: var(--paper); }
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.brand__logo { height: 30px; width: auto; }
.brand__sub {
  display: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);

  line-height: 1;
}

.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
}
.nav__list a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  padding-block: .35rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .1em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 160ms var(--ease), text-underline-offset 160ms var(--ease);
}
.nav__list a:hover {
  text-decoration-color: var(--orange);
  text-underline-offset: .28em;
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 1.4rem;
}

.link-quiet {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  transition: text-underline-offset 160ms var(--ease), text-decoration-color 160ms var(--ease), color 160ms var(--ease);
}
.link-quiet:hover {
  color: var(--ink);
  text-decoration-color: var(--orange);
  text-underline-offset: .34em;
}

/* burger */
.burger {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  color: var(--ink);
}

/* mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--paper);
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 3rem;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 280ms var(--ease);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }

.mobile-menu__list { border-top: 1px solid var(--rule); }
.mobile-menu__list li { border-bottom: 1px solid var(--rule); }
.mobile-menu__list a {
  display: block;
  padding: 1.05rem 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
}
.mobile-menu__cta { margin-top: 2rem; }
.mobile-menu__meta {
  margin-top: 2.25rem;
  font-size: .875rem;
  color: var(--ink-2);
}

body.is-locked { overflow: hidden; }


/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.75rem, 6vw, 4rem);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  /* upper bound trimmed from 5.4rem so the three authored lines each
     stay on one row inside the 7-column measure at container max-width */
  font-size: clamp(2.9rem, 6.2vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .04em;
}
.hero__title .line__i { display: block; }

.hero__sub {
  font-family: var(--sans);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
}
.hero__sub em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem 2rem;
}

.hero__aside { display: grid; gap: 2rem; align-content: start; }

/* stat block, hairline-topped, not a card */
.statblock {
  
  padding-top: 1rem;
  max-width: 22rem;
}
.statblock__num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.statblock__label {
  display: block;
  margin-top: .6rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 26ch;
}


/* ============================================================
   7. SECTIONS
   ============================================================ */

/* --- The gap: problem stats ------------------------------- */
.stat-row {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  
  
  display: grid;
}
.stat {
  padding-block: 1.9rem;
}


.stat__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__claim {
  margin-top: .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 26ch;
}

/* --- The gap: numbered causes ----------------------------- */
.causes { margin-top: clamp(3.25rem, 6vw, 4.75rem); }
.causes__title {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.causes__list { border-top: 1px solid var(--rule); }
.cause {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1.25rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.cause__n {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--orange);
  font-variant-numeric: lining-nums;
}
.cause__h {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin-bottom: .4rem;
}
.cause__body p {
  max-width: 60ch;
  font-size: 1rem;
}
.note-inline {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--ink-2);
  white-space: nowrap;
}

/* --- What we built: split --------------------------------- */
.split { display: grid; gap: clamp(2.75rem, 5vw, 4rem); }
.split__prose { max-width: 66ch; }
.split__prose p + p { margin-top: 1.15rem; }

.note {
  margin-top: 2.25rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  border-radius: 2px;
  padding: 1.25rem 1.4rem;
  background: var(--paper-2);
}
.band--2 .note { background: var(--paper); }
.note__label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: .5rem;
}
.note__body {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}

.aside-title {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.caps { border-top: 1px solid var(--rule); }
.cap {
  display: block;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
}
.cap__label {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: .2rem;
}
.cap__desc {
  display: block;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
}

/* --- Pull quote ------------------------------------------- */
.quote-band {
  background: var(--navy);
  color: var(--paper);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.quote-band__inner { display: flex; }
.quote {
  /* measure lives on the paragraph, where the ch unit is the display size */
  margin-inline: 0;
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -.015em;
  color: var(--paper);
  max-width: 22ch;
}
.quote__attr {
  margin-top: 2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-tint);
}
.quote-band :focus-visible { outline-color: var(--orange-tint); }

/* --- Where we work ---------------------------------------- */
.where { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.where__map {
  margin: 0;
}
.map { width: 100%; height: auto; max-height: 68vh; margin-inline: auto; }

.map__cap {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink-2);
}

.where__body p { max-width: 60ch; }
.where__body p + p { margin-top: 1.15rem; }

/* --- Our aim: ladder -------------------------------------- */
.ladder {
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
  display: grid;
  gap: 0;
}
.rung {
  position: relative;
  padding: 0 0 2rem 1.75rem;
}
.rung:last-child { padding-bottom: 0; }
.rung::before {
  content: "";
  position: absolute;
  left: -5px;
  top: .5rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--orange);
}
.rung__when {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .5rem;
}
.rung__num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.rung__num--pending {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--ink-2);
  padding-block: .55rem;
}
.rung__what {
  display: block;
  margin-top: .65rem;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 30ch;
}
.honest { max-width: 66ch; }

/* --- Get involved: routes --------------------------------- */
.routes { border-top: 1px solid var(--ink); }
.route {
  display: grid;
  gap: .5rem 3rem;
  padding-block: 1.85rem;
  border-bottom: 1px solid var(--rule);
}
.route__h {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.018em;
}
.route__link {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .12em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 160ms var(--ease), text-underline-offset 160ms var(--ease);
}
.route__link:hover {
  text-decoration-color: var(--orange);
  text-underline-offset: .22em;
}
.arrow {
  color: var(--orange-deep);
  font-family: var(--sans);
  font-size: .8em;
  transition: transform 160ms var(--ease);
  display: inline-block;
}
.route__link:hover .arrow { transform: translateX(4px); }
.route__p {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 52ch;
}
.routes__cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }


/* ============================================================
   8. COMPONENTS
   ============================================================ */

/* buttons, radius 999px pills only */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .01em;
  line-height: 1;
  padding: .95rem 1.6rem;
  transition: transform 160ms var(--ease), background-image 160ms var(--ease);
}
.btn--primary {
  /* --orange-deep rather than --orange so --paper label text clears AA */
  background-color: var(--orange-deep);
  color: var(--paper);
}
.btn--primary:hover {
  /* darken by overlaying the rule token, no new colour introduced */
  background-image: linear-gradient(var(--rule), var(--rule));
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }
.btn--sm { padding: .7rem 1.15rem; font-size: .8125rem; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.mobile-menu__cta { display: inline-flex; }

/* text links */
.link-underline {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: text-underline-offset 160ms var(--ease);
}
.link-underline:hover { text-underline-offset: .38em; }


/* ============================================================
   9. FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
}

.site-footer__top {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule-inverse);
}

/* the wordmark is navy, so it sits on a paper chip to stay legible */
.brand-chip {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border-radius: 2px;
  padding: .5rem .75rem;
  justify-self: start;
}
.brand-chip img { height: 30px; width: auto; }

.site-footer__line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--orange-tint);
  max-width: 34ch;
}

.site-footer__cols {
  display: grid;
  gap: 2.25rem;
  padding-block: 2.5rem;
}
.fcol__h {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-tint);
  margin-bottom: 1rem;
}
.fcol li + li { margin-top: .55rem; }
.fcol a {
  font-size: .9375rem;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 160ms var(--ease), text-underline-offset 160ms var(--ease);
  overflow-wrap: anywhere;
}
.fcol a:hover {
  text-decoration-color: var(--orange-tint);
  text-underline-offset: .3em;
}

.site-footer__entities {
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule-inverse);
  font-size: .9375rem;
  color: var(--paper-3);
  max-width: 70ch;
}
.site-footer__entities a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--orange-tint);
  text-underline-offset: .22em;
  transition: text-underline-offset 160ms var(--ease);
}
.site-footer__entities a:hover { text-underline-offset: .34em; }

.site-footer__legal {
  margin-top: 2.5rem;
  display: grid;
  gap: .5rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--paper-3);
}
.site-footer :focus-visible { outline-color: var(--orange-tint); }


/* ============================================================
   10. MOTION
   ============================================================ */

/* hero line reveal, once, on load, JS-gated so no-JS shows text */
.js .hero__title .line__i {
  transform: translateY(105%);
  transition: transform 780ms var(--ease);
}
.js .hero.is-ready .line__i { transform: translateY(0); }
.js .hero.is-ready .line:nth-child(1) .line__i { transition-delay: 40ms; }
.js .hero.is-ready .line:nth-child(2) .line__i { transition-delay: 100ms; }
.js .hero.is-ready .line:nth-child(3) .line__i { transition-delay: 160ms; }

/* single reveal utility, used on 3 elements only */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@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;
  }
  .js .hero__title .line__i { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .mobile-menu { transition: none; }
}


/* ============================================================
   11. RESPONSIVE
   ============================================================ */

/* --- 560px ------------------------------------------------ */
@media (min-width: 560px) {
  .brand__sub { display: inline-block; }

  .route {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-footer__legal {
    grid-template-columns: auto minmax(0, 1fr);
    gap: .5rem 2.5rem;
    align-items: start;
  }
}

/* --- 860px ------------------------------------------------ */
@media (min-width: 860px) {
  :root { --header-h: 76px; }

  .burger { display: none; }
  .mobile-menu { display: none; }
  .nav { display: block; }
  .site-header__actions { display: flex; }

  /* hero: 12-col, asymmetric, aside offset lower */
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
  }
  .hero__lead { grid-column: 1 / span 7; }
  .hero__sub { max-width: 46ch; }
  .hero__aside {
    grid-column: 8 / span 5;
    margin-top: clamp(3rem, 7vw, 6.5rem);
  }

  /* indented measure column, col 3 onwards */
  .indent-col {
    margin-left: calc((100% - 11 * var(--gutter)) / 12 * 2 + 2 * var(--gutter));
  }

  /* problem stats: 3 cols separated by vertical hairlines */
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding-inline-end: var(--gutter); }
  .stat + .stat {
    padding-inline-start: var(--gutter);
  }

  .cause { grid-template-columns: 5rem 1fr; }
  .cause__n { font-size: 2.25rem; }

  /* what we built + about: asymmetric two-column */
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  .split__prose { grid-column: 1 / span 7; }
  .split__aside {
    grid-column: 8 / span 5;
    padding-left: var(--gutter);
  }

  .quote-band__inner { padding-left: clamp(0rem, 8vw, 8rem); }
  .quote p { font-size: clamp(2rem, 3.2vw, 2.6rem); }

  /* where we work */
  .where {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .where__map { grid-column: 1 / span 5; }
  .where__body { grid-column: 6 / span 7; }

  /* ladder: horizontal, hairline-connected */
  .ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--gutter);
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 0;
  }
  .rung {
    padding: 2.25rem var(--gutter) 0 0;
  }
  .rung:last-child { padding-bottom: 0; }
  .rung + .rung {
    padding-left: var(--gutter);
  }
  .rung::before {
    left: 0;
    top: -5px;
  }
  .rung + .rung::before { left: var(--gutter); }

  /* routes: heading left, copy right */
  .route {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: baseline;
  }

  .site-footer__top {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
  }
  .site-footer__line { justify-self: end; text-align: right; }

  .site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gutter); }
}

/* --- 1120px ----------------------------------------------- */
@media (min-width: 1120px) {
  .hero { padding-bottom: clamp(5rem, 9vw, 8rem); }
  .hero__lead { grid-column: 1 / span 7; }
  .hero__aside { grid-column: 8 / span 5; margin-top: 7rem; }

  .section-title { max-width: 18ch; }

  .split__prose { grid-column: 1 / span 6; }
  .split__aside { grid-column: 8 / span 5; }

  .where__map { grid-column: 1 / span 4; }
  .where__body { grid-column: 6 / span 7; }

  .route { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}


/* ============================================================
   12. ICONS
   Iconify web components, used inline and functionally.
   ============================================================ */
.icon {
  display: inline-block;
  vertical-align: -0.125em;
  line-height: 1;
}
.btn .icon,
.link-underline .icon,
.link-quiet .icon { font-size: 1em; margin-left: .35em; }
.btn .icon { transition: transform 160ms var(--ease); }
.btn:hover .icon,
.link-underline:hover .icon { transform: translateX(2px); }


/* ============================================================
   13. PHOTOGRAPHY
   Real photographs, shown as photographs. No duotone, no scrim.
   ============================================================ */
.figure { margin: 0; }
.figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  background: var(--paper-3);
}
.figure--32 .figure__img { aspect-ratio: 3 / 2; }
.figure--43 .figure__img { aspect-ratio: 4 / 3; }
.figure--23 .figure__img { aspect-ratio: 2 / 3; }
.figure--11 .figure__img { aspect-ratio: 1 / 1; }


/* ============================================================
   14. LAYOUT PRIMITIVES ADDED WITH THE PHOTOGRAPHY PASS
   ============================================================ */
.container--wide { max-width: 1680px; }

/* eyebrow tied to a rule so it reads as document structure */
.eyebrow--rule { display: block; }


/* prose beside a photograph */
.open-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.open-grid__prose { max-width: 66ch; }

/* closing note beside a square photograph */
.aim-close {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
  align-items: center;
}
.aim-close__prose { max-width: 60ch; }

.where__figure { margin: 0; }


/* ============================================================
   15. HEADER ICON BUTTON
   ============================================================ */
.burger__icon { display: block; color: var(--ink); }
.burger__icon--close { display: none; }
.burger[aria-expanded="true"] .burger__icon--menu { display: none; }
.burger[aria-expanded="true"] .burger__icon--close { display: block; }
.mobile-menu__inner { padding-top: 1.5rem; padding-bottom: 3rem; }


/* ============================================================
   17. CITATIONS AND SOURCES
   Every figure carries a reference. Styled quietly, never italic.
   ============================================================ */
.src {
  display: block;
  margin-top: .6rem;
  font-family: var(--mono);
  font-size: .68rem;
  font-style: normal;
  letter-spacing: .03em;
  line-height: 1.5;
  color: var(--ink-3);
}
.src a { color: var(--navy); text-underline-offset: 2px; }

/* numbered footnote marker beside a statistic or a claim */
.fn {
  font-family: var(--sans);
  font-size: .62em;
  font-weight: 600;
  line-height: 0;
  margin-left: .15em;
}
.fn a {
  color: var(--navy);
  text-decoration: none;
  padding: 0 .1em;
}
.fn a:hover,
.fn a:focus-visible { text-decoration: underline; }

.sources {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: 82ch;
}
.sources__title {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .5rem;
}
.sources__list { margin: 0; padding-left: 1.6rem; list-style: decimal; }
.sources__item::marker {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
}
.sources__item {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--ink-2);
  padding-block: .6rem;
  border-bottom: 1px solid var(--rule);
}
.sources__item:last-child { border-bottom: 0; }
.sources__item a { color: var(--navy); text-underline-offset: 2px; }
.sources__note {
  margin-top: .9rem;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--ink-3);
}


/* ============================================================
   18. RESPONSIVE FOR THE ABOVE
   ============================================================ */
@media (min-width: 860px) {
  .open-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .aim-close { grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); }

  /* the pull quote sits beside a tall portrait */
  .quote-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .3fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
  }
}

/* photograph placement hooks, geometry comes from .figure */
.hero__figure { align-self: start; }
.open-grid__figure { align-self: start; }
.aim-close__figure { align-self: center; }

@media (min-width: 860px) {
  /* the hero photograph drops below the headline baseline, keeping the
     hero asymmetric rather than two columns of equal weight */
  .hero__figure { margin-top: clamp(2rem, 5vw, 4.5rem); }
}


/* ============================================================
   ICONS
   Local SVG sprite. No runtime fetch and no third party
   dependency, so icons still render on a blocked or offline
   network. Regenerate with _tools/inline_icons.py
   ============================================================ */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex: none;
  fill: none;
  stroke: currentColor;
}
/* .icon-sprite-css-marker */


/* accurate Africa outline, built from real country geometry
   by _tools/build_africa_map.py */
.map { width: 100%; height: auto; display: block; }
.map__shape {
  fill: var(--navy);
  fill-opacity: .14;
  stroke: var(--navy);
  stroke-opacity: .38;
  stroke-width: .7;
  stroke-linejoin: round;
}
.map__cap {
  margin-top: .85rem;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ink-3);
}


/* ============================================================
   19. INNER PAGES
   Added with the inner-page build. Three genuinely new patterns:
   the page head used in place of the homepage hero, the closing
   block that routes every page to contact.
   Then a current-page nav state, one rendering fix and one
   contrast fix, both of which also apply to the homepage.
   ============================================================ */

/* --- page head -------------------------------------------- */
/* the homepage headline is three authored lines and carries the
   whole first screen. An inner-page h1 is a single sentence, so
   it steps down a size and the block closes up beneath it. */
.hero--page { padding-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.hero--page .hero__title { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.hero--page .hero__sub { max-width: 54ch; }

@media (min-width: 860px) {
  .hero--page .hero__sub { max-width: 50ch; }
  .hero--page .hero__aside { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
}

/* second paragraph inside a prose column beside a photograph */
.open-grid__prose p + p { margin-top: 1.15rem; }

/* --- closing block: route to contact ---------------------- */
.cta-end__p {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.cta-end__actions {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem 2rem;
}

/* --- contact details, reusing the capability list ---------- */
.contact-lines { margin-top: 2.25rem; }
.cap__label a {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: text-underline-offset 160ms var(--ease);
}
.cap__label a:hover { text-underline-offset: .3em; }
.cap__desc a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: .18em;
}

/* --- current page in the nav ------------------------------ */
/* the current page keeps the same underline the hover state
   uses, so the nav has one visual language rather than two */
.nav__list a[aria-current="page"],
.mobile-menu__list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}
.link-quiet[aria-current="page"] {
  color: var(--ink);
  text-decoration-color: var(--orange);
}

/* --- burger icon state fix -------------------------------- */
/* the ICONS block sets .icon to display:inline-block. It sits
   after section 15, so at equal specificity it overrode
   .burger__icon--close{display:none} and the menu and close
   glyphs rendered side by side. One extra class restores the
   intended single-glyph state. The open state already carries
   enough specificity of its own. */
.burger .burger__icon--close { display: none; }

/* --- quiet grey, raised to AA ----------------------------- */
/* --ink-3 (#767B8E) measured 4.20:1 on the white ground. Every
   use of it is small text (citation markers, the sources note,
   the map caption, the optional-field marker, placeholders),
   which needs 4.5:1. Darkening the token to #666B7D takes the
   same role to 5.29:1 and keeps the colour recognisably quiet. */

/* ============================================================
   20. CONTACT
   The enquiry form was removed because it had no endpoint and
   delivered nothing. The address is the route, so it leads.
   ============================================================ */
.reach { display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); align-items: start; }
.reach__kicker {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .6rem;
}
.reach__email {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--orange-deep);
  padding-bottom: .12em;
  overflow-wrap: anywhere;
  transition: color 160ms var(--ease);
}
.reach__email:hover { color: var(--orange-deep); }
.reach__note { margin-top: 1.15rem; max-width: 52ch; }

.reach__list { list-style: none; margin: 0; padding: 0; }
.reach__list li { padding-block: 1.05rem; }
.reach__list li + li { border-top: 1px solid var(--rule); }
.reach__what {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
  margin-bottom: .3rem;
}
.reach__desc { display: block; font-size: .95rem; line-height: 1.6; color: var(--ink-2); }

@media (min-width: 860px) {
  .reach { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* phone sitting under the prominent email on the contact page */
.reach__tel { margin-top: 1.5rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.reach__tel a { color: var(--navy); font-weight: 600; }
.reach__tel-note { font-size: .88rem; color: var(--ink-3); flex-basis: 100%; }

/* inline source reference sitting in body prose */
.src-ref {
  color: var(--navy);
  text-underline-offset: 2px;
}
.sources__item a { white-space: nowrap; }

/* section labels: slightly larger and darker so the reader can
   see which section they are in at a glance */
.eyebrow { font-size: .78rem; color: var(--ink-2); }

/* layout hooks: geometry comes from the parent grid */
.reach__primary { min-width: 0; }
.quote-band__figure { align-self: center; }

/* plain list marker for lists that are not achievements. The client's copy
   used ticks on one list only; the rest are ordinary bullets. */
.bullet {
  display: inline-block;
  width: .42em;
  height: .42em;
  border-radius: 50%;
  background: var(--navy);
  vertical-align: .18em;
  margin-right: .35em;
  flex: none;
}
