/*
Theme Name: CLETAS
Theme URI: http://localhost:8884
Author: Codex
Description: A warm, photography-led charity website for Clean Touch Administrative Services.
Version: 1.1.0
Requires at least: 6.8
Text Domain: cletas
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Surfaces */
  --cream: #fff7eb;
  --cream-deep: #f7ead8;
  --cream-warm: #fdf0dd;
  --paper: #fffdf8;
  --paper-raised: #fffbf3;

  /* Ink */
  --ink: #34231d;
  --ink-deep: #241511;
  --muted: #786158;
  --muted-soft: rgba(120, 97, 88, 0.72);

  /* Brand */
  --terracotta: #a65443;
  --terracotta-deep: #8f4434;
  --clay: #be6246;
  --orange: #f27d2d;
  --gold: #f4b63f;
  --gold-soft: rgba(244, 182, 63, 0.18);
  --rose: #cf4f49;
  --leaf: #6fb06c;

  /* Lines */
  --line: rgba(112, 66, 46, 0.14);
  --line-strong: rgba(112, 66, 46, 0.22);
  --line-light: rgba(255, 250, 242, 0.22);

  /* Layered warm shadows — never neutral black */
  --shadow-sm: 0 1px 2px rgba(102, 58, 32, 0.05), 0 4px 10px rgba(102, 58, 32, 0.05);
  --shadow-md:
    0 1px 2px rgba(102, 58, 32, 0.05),
    0 8px 20px rgba(102, 58, 32, 0.07),
    0 24px 48px rgba(102, 58, 32, 0.07);
  --shadow-lg:
    0 2px 4px rgba(102, 58, 32, 0.05),
    0 14px 34px rgba(102, 58, 32, 0.09),
    0 42px 90px rgba(102, 58, 32, 0.11);
  --shadow-nav:
    0 1px 2px rgba(74, 43, 24, 0.05),
    0 10px 26px rgba(74, 43, 24, 0.08),
    0 28px 60px rgba(74, 43, 24, 0.09);
  --inner-lip: inset 0 1px 0 rgba(255, 255, 255, 0.85);

  /* Radii — concentric bezel maths */
  --r-shell: 2.1rem;
  --r-core: 1.68rem;
  --r-shell-lg: 2.5rem;
  --r-core-lg: 2.03rem;
  --r-sm: 1rem;
  --pad-bezel: 0.42rem;
  --pad-bezel-lg: 0.47rem;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.24, 1);
  --dur-fast: 260ms;
  --dur: 520ms;
  --dur-slow: 900ms;

  /* Type */
  --serif: "Literata CLETAS", "Fraunces", ui-serif, Georgia, serif;
  --sans: "Manrope", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  /* Rhythm */
  --gutter: 40px;
  --measure: 1220px;
}

/* ==========================================================================
   2. Fonts — real weights only, no synthetic bolding
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../twentytwentyfive/assets/fonts/manrope/Manrope-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata CLETAS";
  src: url("../twentytwentyfive/assets/fonts/literata/Literata72pt-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata CLETAS";
  src: url("../twentytwentyfive/assets/fonts/literata/Literata72pt-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata CLETAS";
  src: url("../twentytwentyfive/assets/fonts/literata/Literata72pt-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata CLETAS";
  src: url("../twentytwentyfive/assets/fonts/literata/Literata72pt-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Clears the nav island, whose height is driven by the logo. */
  scroll-padding-top: 8.75rem;
  margin-top: 0 !important;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 6% 0%, rgba(244, 182, 63, 0.14), transparent 60%),
    radial-gradient(90% 50% at 100% 30%, rgba(166, 84, 67, 0.06), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #fffaf2 38%, var(--paper) 100%);
  background-attachment: fixed;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#wpadminbar {
  display: none !important;
}

/* Paper tooth — fixed, pointer-events none, never on a scrolling container. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

.site-shell {
  overflow: clip;
  max-width: 100vw;
}

.container {
  width: min(100% - var(--gutter), var(--measure));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 1rem auto auto 1rem;
  z-index: 60;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   4. Typography
   ========================================================================== */

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.012em;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
}

h1 {
  max-width: 15ch;
  margin-top: 1.35rem;
  font-size: clamp(3rem, 6.2vw, 6.1rem);
  color: #fffaf2;
  text-wrap: balance;
}

h2 {
  margin-top: 1.1rem;
  font-size: clamp(2.2rem, 4.1vw, 4.4rem);
  color: var(--ink);
  text-wrap: balance;
}

h3 {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 52ch;
  color: rgba(255, 250, 242, 0.9);
  font-size: clamp(1.02rem, 1.25vw, 1.24rem);
  line-height: 1.62;
}

.copy {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.eyebrow {
  /* justify-self/width keep this a compact tag inside grid parents,
     which otherwise stretch it to the full column. */
  justify-self: start;
  align-self: start;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(166, 84, 67, 0.1);
  color: var(--terracotta-deep);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Dark-context variant — the light-surface eyebrow is unreadable on photos. */
.eyebrow--light {
  background: rgba(255, 250, 242, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.28);
  color: #fff3dd;
  backdrop-filter: blur(6px);
}

.section {
  position: relative;
  padding: clamp(5.5rem, 10vw, 9.5rem) 0;
}

/* Feathered top and bottom so alternating sections never band. */
.section-cream {
  background: linear-gradient(
    180deg,
    rgba(247, 234, 216, 0) 0%,
    rgba(247, 234, 216, 0.82) 9%,
    rgba(247, 234, 216, 0.82) 91%,
    rgba(247, 234, 216, 0) 100%
  );
}

.section-kicker {
  display: grid;
  gap: 0;
  /* Sized in rem, not ch — ch here resolves against the wrapper's 1rem body
     font, which throttled the display heading to a five-line ribbon. */
  max-width: min(100%, 44rem);
}

.section-kicker .copy {
  margin-top: 1.25rem;
  max-width: 54ch;
}

/* ==========================================================================
   5. Nav — floating island
   ========================================================================== */

.site-nav-wrap {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 40;
  pointer-events: none;
}

.site-nav {
  position: relative;
  pointer-events: auto;
  width: min(calc(100% - 32px), 1160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.36rem 0.4rem 0.36rem 1.05rem;
  transition: padding var(--dur) var(--ease);
}

/* The pill's surface lives on a pseudo-element, NOT on .site-nav itself.
   backdrop-filter makes an element the containing block for fixed-position
   descendants, which would re-anchor the fixed mobile menu overlay to this
   73px pill instead of the viewport. */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 999px;
  /* Opaque enough that the logo and links stay legible over the dark hero
     photo, while the blur still picks up the colour behind it. */
  background: rgba(255, 252, 245, 0.88);
  box-shadow:
    var(--shadow-nav),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(122, 67, 39, 0.09);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transition:
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

/* Tightens once the hero is behind you. */
.is-scrolled .site-nav {
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}

.is-scrolled .site-nav::before {
  background: rgba(255, 252, 245, 0.95);
  box-shadow:
    var(--shadow-nav),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(122, 67, 39, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: auto;
  height: 74px;
  max-width: min(290px, 46vw);
  object-fit: contain;
  transition: height var(--dur) var(--ease);
}

.is-scrolled .brand img {
  height: 64px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.1rem;
}

.nav-links a {
  position: relative;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 0.72rem;
  text-decoration: none;
  color: rgba(52, 35, 29, 0.7);
  font-size: 0.795rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(166, 84, 67, 0.07);
}

/* Scroll-spy underline. */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--terracotta);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.2);
  transform-origin: center;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.nav-links a.is-current {
  color: var(--ink);
}

.nav-links a.is-current::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.menu-toggle:active {
  transform: scale(0.94);
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  top: calc(50% - 0.75px);
  width: 20px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--paper);
  transition: transform 620ms var(--ease);
}

.menu-toggle span:first-child {
  transform: translateY(-5px);
}

.menu-toggle span:last-child {
  transform: translateY(5px);
}

.menu-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  border-radius: 999px;
  border: 0;
  padding: 0.28rem 0.3rem 0.28rem 1.15rem;
  font: 750 0.875rem/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

/* Button-in-button: the arrow always lives in its own circle, flush right. */
.btn .arrow {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.btn:hover .arrow {
  transform: translate(3px, -1px) scale(1.06);
}

.btn:hover .arrow-down {
  transform: translateY(3px) scale(1.06);
}

.btn-primary {
  color: #fffaf2;
  background: var(--terracotta);
  box-shadow:
    0 1px 2px rgba(166, 84, 67, 0.2),
    0 10px 26px rgba(166, 84, 67, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  background: var(--clay);
  box-shadow:
    0 1px 2px rgba(166, 84, 67, 0.2),
    0 16px 34px rgba(166, 84, 67, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary .arrow {
  color: var(--ink);
  background: var(--gold);
}

.btn-soft {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(166, 84, 67, 0.14),
    var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.btn-soft:hover {
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(166, 84, 67, 0.2),
    var(--shadow-md);
}

.btn-soft .arrow {
  background: rgba(166, 84, 67, 0.1);
}

.btn-ghost {
  color: #fffaf2;
  background: rgba(255, 250, 242, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.26);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 250, 242, 0.17);
}

.btn-ghost .arrow {
  background: rgba(255, 250, 242, 0.18);
}

/* ==========================================================================
   7. Bezel — outer shell + inner core, concentric radii
   ========================================================================== */

.bezel {
  border-radius: var(--r-shell);
  padding: var(--pad-bezel);
  background: linear-gradient(180deg, rgba(122, 67, 39, 0.085), rgba(122, 67, 39, 0.045));
  box-shadow:
    inset 0 0 0 1px rgba(122, 67, 39, 0.1),
    var(--shadow-md);
}

.bezel-inner {
  position: relative;
  min-height: 100%;
  border-radius: var(--r-core);
  background: var(--paper-raised);
  box-shadow:
    var(--inner-lip),
    inset 0 0 0 1px rgba(122, 67, 39, 0.05);
  padding: 1.4rem;
}

/* Cards that behave like objects get a lift. */
.bezel-lift {
  transition:
    transform 620ms var(--ease),
    box-shadow 620ms var(--ease);
}

.bezel-lift:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 1px rgba(122, 67, 39, 0.14),
    var(--shadow-lg);
}

.photo-shell {
  border-radius: var(--r-shell-lg);
  padding: var(--pad-bezel-lg);
  background: linear-gradient(180deg, rgba(166, 84, 67, 0.11), rgba(166, 84, 67, 0.055));
  box-shadow:
    inset 0 0 0 1px rgba(166, 84, 67, 0.13),
    var(--shadow-lg);
}

.photo-core {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--r-core-lg);
  background:
    linear-gradient(160deg, rgba(166, 84, 67, 0.16), rgba(52, 35, 29, 0.06) 45%, rgba(244, 182, 63, 0.1)),
    var(--image);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(52, 35, 29, 0.06);
}

.photo-caption {
  position: absolute;
  inset: auto 0.85rem 0.85rem 0.85rem;
  border-radius: 1.15rem;
  padding: 0.95rem 1.1rem;
  background: rgba(255, 250, 242, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 8px 24px rgba(52, 35, 29, 0.12);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.45;
  font-weight: 600;
}

/* ==========================================================================
   8. Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  /* Centred rather than bottom-anchored — flex-end left a dead band of photo
     above the copy. min-height (not height) means tall content grows the
     section instead of overflowing past the nav. */
  align-items: center;
  padding: 10rem 0 9rem;
  color: var(--paper);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    /* readable scrim over the left third, plus a floor gradient for the lead + CTAs */
    linear-gradient(94deg, rgba(30, 18, 14, 0.9) 0%, rgba(45, 25, 18, 0.74) 32%, rgba(60, 32, 22, 0.36) 62%, rgba(60, 32, 22, 0.1) 100%),
    linear-gradient(0deg, rgba(30, 18, 14, 0.6) 0%, transparent 45%),
    radial-gradient(120% 100% at 50% 50%, transparent 42%, rgba(30, 18, 14, 0.32) 100%),
    var(--hero-image, linear-gradient(135deg, #9f5442, #f2a93b));
  background-size: cover;
  background-position: center;
}

/* Kept short so hero copy never lands inside the fade and loses contrast. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 14%;
  z-index: -1;
  background: linear-gradient(0deg, var(--cream) 0%, rgba(255, 247, 235, 0.55) 50%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 780px);
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
  width: min(100%, 780px);
}

/* Masked line reveal for the display headline. */
.hero h1 {
  display: grid;
  gap: 0;
  margin-top: 0;
}

/* Supporting hero copy fades in behind the headline lines. */
html.js .hero-copy > :not(h1) {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease);
}

html.js .hero-copy > .eyebrow { transition-delay: 60ms; }
html.js .hero-copy > .lead { transition-delay: 460ms; }
html.js .hero-copy > .hero-actions { transition-delay: 560ms; }
html.js .hero-copy > .hero-note { transition-delay: 650ms; }

html.js .is-ready .hero-copy > :not(h1) {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero h1 .line > span {
  display: block;
  will-change: transform;
}

html.js .hero h1 .line > span {
  transform: translateY(108%);
  transition: transform 1100ms var(--ease);
}

html.js .hero h1 .line:nth-child(1) > span { transition-delay: 80ms; }
html.js .hero h1 .line:nth-child(2) > span { transition-delay: 170ms; }
html.js .hero h1 .line:nth-child(3) > span { transition-delay: 260ms; }
html.js .hero h1 .line:nth-child(4) > span { transition-delay: 350ms; }

html.js .is-ready .hero h1 .line > span {
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.82rem;
  font-weight: 650;
}

.hero-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 182, 63, 0.22);
}

/* ==========================================================================
   9. Trust strip
   ========================================================================== */

.impact-strip {
  position: relative;
  z-index: 2;
  margin-top: -3.2rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card .bezel-inner {
  padding: 1.35rem 1.4rem 1.25rem;
}

.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.1vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--terracotta);
}

.stat-card span {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   10. Split sections
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.story-stack {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
  align-content: start;
}

/* The grid gap already carries the rhythm; the default h2 margin would double it. */
.story-stack h2 {
  margin-top: 0.15rem;
}

.story-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 0.4rem;
}

.story-list p {
  position: relative;
  padding-left: 1.15rem;
}

.story-list p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  bottom: 0.42em;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), rgba(244, 182, 63, 0.25));
}

/* ==========================================================================
   11. Programmes
   ========================================================================== */

.program-grid {
  margin-top: 3.25rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

/* Every row sums to 12 — asymmetric by intent, never ragged. */
.programme { grid-column: span 4; }
.programme:nth-child(1) { grid-column: span 5; }
.programme:nth-child(2) { grid-column: span 4; }
.programme:nth-child(3) { grid-column: span 3; }
.programme:nth-child(4) { grid-column: span 3; }
.programme:nth-child(5) { grid-column: span 5; }
.programme:nth-child(6) { grid-column: span 4; }
.programme:nth-child(7) { grid-column: span 6; }
.programme:nth-child(8) { grid-column: span 6; }

.programme .bezel-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
}

.programme-img {
  position: relative;
  min-height: 248px;
  background:
    linear-gradient(180deg, rgba(52, 35, 29, 0.04) 0%, rgba(52, 35, 29, 0.3) 100%),
    var(--image);
  background-size: cover;
  background-position: center;
  transition: transform 950ms var(--ease);
}

.programme:hover .programme-img,
.involved-card:hover .programme-img {
  transform: scale(1.04);
}

.programme-index {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 4px 12px rgba(52, 35, 29, 0.16);
  backdrop-filter: blur(8px);
  color: var(--terracotta-deep);
  font-size: 0.66rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.programme-content {
  padding: 1.25rem 1.3rem 1.4rem;
}

.programme-content p {
  margin-top: 0.5rem;
  font-size: 0.945rem;
  line-height: 1.6;
}

.programme:nth-child(7) .programme-img,
.programme:nth-child(8) .programme-img {
  min-height: 300px;
}

/* ==========================================================================
   12. Featured — Jobs & Recycling
   ========================================================================== */

.featured {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 5vw, 5rem) 0;
  color: #fffaf2;
}

.featured-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(1.75rem, 3vw, 3rem);
  padding: clamp(2.5rem, 5.5vw, 5rem);
  background: linear-gradient(155deg, #8a4335 0%, #70362b 55%, #5e2d24 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 242, 0.12),
    0 30px 80px rgba(72, 36, 26, 0.28);
}

.featured-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  background:
    radial-gradient(60% 60% at 12% 12%, var(--gold), transparent 70%),
    radial-gradient(55% 55% at 88% 78%, var(--rose), transparent 70%);
}

.featured-panel .split {
  align-items: center;
}

.featured h2,
.featured .copy {
  color: #fffaf2;
}

.featured .copy {
  color: rgba(255, 250, 242, 0.82);
}

.featured-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: var(--gold);
  color: var(--ink-deep);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(244, 182, 63, 0.28);
}

.feature-points {
  display: grid;
  gap: 0;
  margin: 1.6rem 0 0.4rem;
}

.feature-points span {
  display: block;
  border-top: 1px solid var(--line-light);
  padding: 0.9rem 0;
  color: rgba(255, 250, 242, 0.86);
  font-size: 0.97rem;
}

.feature-points span:last-child {
  border-bottom: 1px solid var(--line-light);
}

/* Programme steps panel — stands in for the missing recycling photograph. */
.steps-shell {
  border-radius: var(--r-shell-lg);
  padding: var(--pad-bezel-lg);
  background: rgba(255, 250, 242, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.16);
}

.steps-core {
  border-radius: var(--r-core-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(38, 20, 15, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.1);
  backdrop-filter: blur(2px);
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 250, 242, 0.14);
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step:last-child {
  padding-bottom: 0;
}

.step-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 182, 63, 0.16);
  box-shadow: inset 0 0 0 1px rgba(244, 182, 63, 0.42);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-variant-numeric: lining-nums;
}

.step strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 750;
  color: #fffaf2;
}

.step p {
  margin-top: 0.3rem;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ==========================================================================
   13. Impact ledger
   ========================================================================== */

.impact-story {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: 3.25rem;
}

.numbers {
  display: grid;
  align-content: center;
}

.number-row {
  display: grid;
  /* Sized off the widest value ("2007") so the figure can never collide
     with its label the way a fixed 140px column did. */
  grid-template-columns: minmax(0, clamp(6rem, 13vw, 10.5rem)) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.number-row:last-child {
  border-bottom: 1px solid var(--line);
}

.number-row strong {
  display: block;
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.028em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--terracotta);
}

.number-row span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
}

/* ==========================================================================
   14. Get Involved
   ========================================================================== */

.involved-grid {
  margin-top: 3.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.involved-card .bezel-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
}

.involved-card .programme-img {
  min-height: 280px;
}

.involved-card .programme-content {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1.35rem 1.4rem 1.5rem;
}

.involved-card .programme-content p {
  margin-top: 0;
}

.involved-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  color: var(--terracotta);
  font-size: 0.83rem;
  font-weight: 750;
  text-decoration: none;
}

.involved-link .arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(166, 84, 67, 0.11);
  font-size: 0.72rem;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.involved-card:hover .involved-link .arrow {
  transform: translate(3px, -1px);
  background: rgba(166, 84, 67, 0.18);
}

/* ==========================================================================
   15. Partners
   ========================================================================== */

.partners-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-logo {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: rgba(52, 35, 29, 0.52);
  font-size: 0.79rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: inset 1px 0 0 var(--line);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.partner-logo:first-child {
  box-shadow: none;
}

.partner-logo:hover {
  color: var(--terracotta);
  background: rgba(166, 84, 67, 0.035);
}

/* ==========================================================================
   16. Testimonials
   ========================================================================== */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.25rem;
}

.quote-card .bezel-inner {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

.quote-card blockquote {
  position: relative;
  margin: 0;
  padding-top: 2.4rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.quote-card blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.32em;
  left: -0.04em;
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(244, 182, 63, 0.55);
}

.quote-card cite {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.83rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   17. FAQ — native <details>, works without JavaScript
   ========================================================================== */

:root {
  interpolate-size: allow-keywords;
}

.faq-list {
  margin-top: 3.25rem;
  display: grid;
  gap: 0.7rem;
  max-width: 900px;
}

.faq-item {
  border-radius: var(--r-shell);
  background: rgba(255, 253, 248, 0.78);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.faq-item[open] {
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(166, 84, 67, 0.16),
    var(--shadow-md);
}

.faq-question {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.35rem;
  color: var(--ink);
  font: 750 1rem/1.35 var(--sans);
  letter-spacing: -0.008em;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(166, 84, 67, 0.09);
  color: var(--terracotta);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 560ms var(--ease), background 560ms var(--ease);
}

.faq-item[open] .faq-icon {
  transform: rotate(135deg);
  background: rgba(166, 84, 67, 0.16);
}

.faq-answer {
  padding: 0 1.35rem 1.4rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.66;
  max-width: 70ch;
}

@supports selector(::details-content) {
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      block-size 480ms var(--ease),
      opacity 360ms var(--ease),
      content-visibility 480ms var(--ease) allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

/* ==========================================================================
   18. Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-top: 3.25rem;
  align-items: stretch;
}

.map-bezel .bezel-inner {
  display: grid;
  padding: var(--pad-bezel);
  overflow: hidden;
}

.map-frame {
  display: block;
  width: 100%;
  min-height: 480px;
  height: 100%;
  border: 0;
  border-radius: calc(var(--r-core) - var(--pad-bezel));
  filter: saturate(0.72) sepia(0.12) contrast(1.02);
}

.contact-bezel .bezel-inner {
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
}

.contact-form {
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--r-sm);
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px rgba(122, 67, 39, 0.16);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font: 600 1rem/1.45 var(--sans);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(120, 97, 88, 0.5);
}

.field input:hover,
.field textarea:hover {
  box-shadow: inset 0 0 0 1px rgba(122, 67, 39, 0.26);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form .btn {
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   Contact Form 7
   CF7 wraps every control in <span class="wpcf7-form-control-wrap"> and injects
   its own validation, response and spinner markup, none of which exists in the
   static markup above. These rules fold that output into the design.
   -------------------------------------------------------------------------- */

.wpcf7 {
  /* CF7 adds its own margins around the form. */
  margin: 0;
}

.wpcf7 form.wpcf7-form {
  display: grid;
  gap: 0.95rem;
  margin: 0;
}

/* The wrap span is a grid item, so blockify it and let the control fill it. */
.wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

/* CF7's own p-tags around fields add stray vertical space. */
.wpcf7 form.wpcf7-form p {
  margin: 0;
}

/* Inline validation message under a field. */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.45rem;
  color: #b3332e;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.field input.wpcf7-not-valid,
.field textarea.wpcf7-not-valid {
  background: #fff6f4;
  box-shadow: inset 0 0 0 1.5px rgba(179, 51, 46, 0.55);
}

/* Form-level response banner. CF7 ships a 2px blue border by default. */
.wpcf7 .wpcf7-response-output {
  margin: 1.1rem 0 0;
  padding: 0.9rem 1.1rem;
  border: 0;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.5;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: rgba(111, 176, 108, 0.14);
  box-shadow: inset 0 0 0 1px rgba(111, 176, 108, 0.42);
  color: #2f6b2c;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background: rgba(244, 182, 63, 0.16);
  box-shadow: inset 0 0 0 1px rgba(244, 182, 63, 0.5);
  color: #8a5a12;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  background: rgba(207, 79, 73, 0.12);
  box-shadow: inset 0 0 0 1px rgba(207, 79, 73, 0.42);
  color: #a3302b;
}

/* Submitting state — the button reads as busy instead of dead. */
.wpcf7 form.submitting .btn {
  pointer-events: none;
  opacity: 0.72;
}

.wpcf7-spinner {
  margin: 0 0 0 0.75rem;
  background-color: var(--terracotta);
}

/* Fallback block shown when CF7 is inactive or has no form yet. */
.form-fallback {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
}

.form-fallback .btn {
  margin-top: 0.4rem;
}

.form-fallback-admin {
  margin-top: 0.6rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--r-sm);
  background: rgba(244, 182, 63, 0.14);
  box-shadow: inset 0 0 0 1px rgba(244, 182, 63, 0.4);
  color: #8a5a12;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-fallback-admin code {
  font-size: 0.78rem;
  word-break: break-all;
}

/* Terracotta focus ring — gold on cream was far too low-contrast. */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 2px;
  box-shadow: inset 0 0 0 1px var(--terracotta);
}

.office-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.office-list a,
.office-list span {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.office-list a {
  color: var(--terracotta);
  width: fit-content;
  transition: color var(--dur) var(--ease);
}

.office-list a:hover {
  color: var(--terracotta-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   19. Footer
   ========================================================================== */

.footer {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 2.25rem;
  background: linear-gradient(180deg, #4a2b23 0%, #3a211b 100%);
  color: #fffaf2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.footer-col strong {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 250, 242, 0.55);
}

.footer-col p {
  color: rgba(255, 250, 242, 0.76);
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: 38ch;
}

/* The wordmark's terracotta is too close to the footer brown to read on it
   directly, so the lockup sits on a paper chip. */
.footer-brand {
  display: inline-block;
  border-radius: 1.15rem;
  padding: 0.85rem 1.1rem;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(20, 10, 6, 0.28);
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-col p + p {
  margin-top: 0.85rem;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer a {
  color: rgba(255, 250, 242, 0.82);
  font-size: 0.93rem;
  text-decoration: none;
  width: fit-content;
  transition: color var(--dur) var(--ease);
}

.footer a:hover {
  color: #fffaf2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 250, 242, 0.14);
}

.footer-base small {
  color: rgba(255, 250, 242, 0.55);
  font-size: 0.82rem;
}

/* ==========================================================================
   20. Reveal
   ========================================================================== */

/* Gated on html.js so the page is never blank if the script fails. */
html.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(7px);
  transition:
    opacity 950ms var(--ease),
    transform 950ms var(--ease),
    filter 950ms var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Large panels skip the blur — filtering a full-width surface is a
   needless GPU repaint for an effect nobody reads at that size. */
html.js .featured-panel.reveal,
html.js .partners-grid.reveal,
html.js .faq-list.reveal {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  html.js .reveal,
  html.js .hero h1 .line > span {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ==========================================================================
   21. Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav-links a {
    padding: 0 0.55rem;
    font-size: 0.76rem;
  }

  .brand img {
    height: 64px;
    max-width: min(240px, 34vw);
  }
}

@media (max-width: 980px) {
  :root {
    --gutter: 28px;
  }

  .site-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(calc(100% - 24px), 760px);
    padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  }

  .brand img {
    height: 68px;
    max-width: 62vw;
  }

  /* z-index -1 sits above the pill surface (-2) but below the brand and the
     toggle, so the pill dissolves into the overlay while the logo and the
     close button stay on top of it. */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: grid;
    align-content: center;
    justify-content: start;
    gap: 0.35rem;
    padding: 8.5rem 2rem 3rem;
    background: rgba(255, 247, 235, 0.94);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    visibility: hidden;
    transform: translateY(-101%);
    opacity: 0;
    transition:
      transform 760ms var(--ease),
      opacity 520ms var(--ease),
      visibility 0s linear 760ms;
  }

  .menu-open .nav-links {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    transition:
      transform 760ms var(--ease),
      opacity 520ms var(--ease),
      visibility 0s;
  }

  /* Keeps the brand and the toggle painted over the open overlay. */
  .menu-open .brand,
  .menu-open .nav-actions {
    position: relative;
    z-index: 1;
  }

  .nav-links a {
    min-height: 56px;
    justify-items: start;
    place-items: center start;
    padding: 0;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 7.5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--ink);
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 620ms var(--ease),
      transform 620ms var(--ease),
      color var(--dur) var(--ease);
  }

  .nav-links a:hover {
    background: transparent;
    color: var(--terracotta);
  }

  .nav-links a::after {
    display: none;
  }

  .menu-open .nav-links a {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-open .nav-links a:nth-child(1) { transition-delay: 120ms; }
  .menu-open .nav-links a:nth-child(2) { transition-delay: 170ms; }
  .menu-open .nav-links a:nth-child(3) { transition-delay: 220ms; }
  .menu-open .nav-links a:nth-child(4) { transition-delay: 270ms; }
  .menu-open .nav-links a:nth-child(5) { transition-delay: 320ms; }
  .menu-open .nav-links a:nth-child(6) { transition-delay: 370ms; }
  .menu-open .nav-links a:nth-child(7) { transition-delay: 420ms; }

  .menu-toggle {
    display: inline-block;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-grid,
  .split,
  .impact-story,
  .quote-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Photo leads, story follows — keeps reading order sane when the
     jobs section reverses on desktop. */
  .featured-panel .split > .story-stack {
    order: -1;
  }

  .impact-grid,
  .involved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partner-logo:nth-child(3n + 1) {
    box-shadow: none;
  }

  .partner-logo:nth-child(n + 4) {
    box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line);
  }

  .partner-logo:nth-child(4) {
    box-shadow: inset 0 1px 0 var(--line);
  }

  .programme,
  .programme:nth-child(1),
  .programme:nth-child(2),
  .programme:nth-child(3),
  .programme:nth-child(4),
  .programme:nth-child(5),
  .programme:nth-child(6),
  .programme:nth-child(7),
  .programme:nth-child(8) {
    grid-column: span 6;
  }

  .photo-core {
    min-height: 440px;
  }

  .map-frame {
    min-height: 380px;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 28px;
    --r-shell: 1.7rem;
    --r-core: 1.32rem;
    --r-shell-lg: 1.9rem;
    --r-core-lg: 1.52rem;
  }

  html {
    scroll-padding-top: 7.5rem;
  }

  .container {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
  }

  .brand img {
    height: 58px;
  }

  .hero {
    min-height: 100dvh;
    padding: 8.5rem 0 5.5rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 12vw, 3.6rem);
    line-height: 1.06;
    overflow-wrap: break-word;
  }

  h2 {
    /* 0.96 line-height collided descenders against the line above. */
    font-size: clamp(2.1rem, 9.5vw, 3.1rem);
    line-height: 1.08;
  }

  .section-kicker {
    max-width: 100%;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* 2×2 reads better than four full-width slabs. */
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .stat-card .bezel-inner {
    padding: 1.05rem 1.1rem;
  }

  .stat-card span {
    font-size: 0.72rem;
  }

  .program-grid,
  .involved-grid,
  .quote-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-logo,
  .partner-logo:nth-child(n + 4) {
    min-height: 92px;
    box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line);
  }

  .partner-logo:nth-child(odd) {
    box-shadow: inset 0 1px 0 var(--line);
  }

  .partner-logo:nth-child(1),
  .partner-logo:nth-child(2) {
    box-shadow: none;
  }

  .partner-logo:nth-child(2) {
    box-shadow: inset 1px 0 0 var(--line);
  }

  .programme,
  .programme:nth-child(1),
  .programme:nth-child(2),
  .programme:nth-child(3),
  .programme:nth-child(4),
  .programme:nth-child(5),
  .programme:nth-child(6),
  .programme:nth-child(7),
  .programme:nth-child(8) {
    grid-column: span 1;
  }

  .programme .programme-img,
  .programme:nth-child(7) .programme-img,
  .programme:nth-child(8) .programme-img,
  .involved-card .programme-img {
    min-height: 220px;
  }

  .photo-core {
    min-height: 340px;
  }

  .number-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    padding: 1.1rem 0;
  }

  .number-row strong {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .quote-card blockquote {
    padding-top: 2rem;
    font-size: clamp(1.35rem, 6.5vw, 1.9rem);
  }

  .quote-card blockquote::before {
    font-size: 3.4rem;
  }

  .footer-base {
    justify-content: flex-start;
  }
}


