/* =====================================================================
   THE OLA OLABINJO FOUNDATION - Institutional Design System
   Premium white + charcoal + gold. Serif display (Cormorant Garamond)
   + Inter body. Used by the redesigned marketing site.
   --------------------------------------------------------------------
   This is a NEW, self-contained layer. It does not depend on the
   legacy site.css / premium.css and is safe to adopt page by page.
   ===================================================================== */

:root {
  /* ---- Typography ---- */
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ---- Palette: institutional, calm, premium ---- */
  --paper: #ffffff;          /* primary background */
  --bone: #f7f5f0;           /* alternating warm off-white */
  --mist: #f0ede6;           /* subtle panel */
  --ink: #1b1a18;            /* primary text - warm near-black */
  --charcoal: #36332e;       /* secondary text */
  --muted: #6c685f;          /* tertiary / captions */
  --hairline: rgba(27, 26, 24, 0.10);
  --hairline-strong: rgba(27, 26, 24, 0.16);

  /* Accents */
  --gold: #b08327;           /* primary warm gold accent */
  --gold-soft: #c9a25a;
  --gold-tint: rgba(176, 131, 39, 0.10);
  --moss: #2f4a38;           /* heritage green for rare deep bands */
  --moss-deep: #233a2c;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(27, 26, 24, 0.04), 0 6px 18px rgba(27, 26, 24, 0.05);
  --shadow-md: 0 2px 6px rgba(27, 26, 24, 0.06), 0 18px 44px rgba(27, 26, 24, 0.08);
  --shadow-lg: 0 30px 80px rgba(20, 18, 14, 0.16);

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --header-bar: #f7f2ec; /* matched to olaolabinjo logo.png matte */
  --header-bar-border: rgba(27, 26, 24, 0.09);
  --header-h: 92px;
  --radius: 4px;            /* restrained, institutional */
  --radius-lg: 8px;
  --gutter: clamp(18px, 4vw, 40px);

  /* Rhythm */
  --section-y: clamp(64px, 8vw, 120px);
  --leading-body: 1.7;
  --measure: 66ch;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.toof {
  margin: 0;
  padding-top: var(--header-h, 76px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.0625rem);
  line-height: var(--leading-body);
  font-weight: 400;
  letter-spacing: 0.002em;
}

.toof img { max-width: 100%; height: auto; display: block; }
.toof a { color: inherit; text-decoration: none; }

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

/* ---------- Headings ---------- */
.toof h1, .toof h2, .toof h3, .toof h4 {
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.004em;
  margin: 0;
  text-wrap: balance;
}

.toof p { margin: 0; text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.toof .wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.toof .wrap--wide { max-width: var(--container-wide); }

.toof section { padding-block: var(--section-y); }
.toof .band-bone { background: var(--bone); }
.toof .band-mist { background: var(--mist); }
.toof .band-ink {
  background: var(--ink);
  color: #f4f1ea;
}
.toof .band-moss {
  background: linear-gradient(160deg, var(--moss) 0%, var(--moss-deep) 100%);
  color: #f1efe6;
}

/* ---------- Eyebrow / section heads ---------- */
.toof .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.toof .eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.band-ink .eyebrow, .band-moss .eyebrow { color: var(--gold-soft); }
.band-ink .eyebrow::before, .band-moss .eyebrow::before { background: var(--gold-soft); }

.toof .section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: 0.005em;
  margin-bottom: 14px;
}
.band-ink .section-title, .band-moss .section-title { color: #f6f3ec; }

.toof .section-lead {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.75;
}
.band-ink .section-lead, .band-moss .section-lead { color: rgba(244, 241, 234, 0.82); }

.toof .section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.toof .section-head.center { text-align: center; }
.toof .section-head.center .eyebrow { justify-content: center; }
.toof .section-head.center .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.toof .btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.toof .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.toof .btn--gold { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #fff; }
.toof .btn--gold:hover { --btn-bg: #9a7220; }
.toof .btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--hairline-strong);
}
.toof .btn--ghost:hover { --btn-bd: var(--gold); --btn-fg: var(--gold); box-shadow: none; }
.band-ink .btn--ghost, .band-moss .btn--ghost { --btn-fg: #f4f1ea; --btn-bd: rgba(244,241,234,0.3); }
.band-ink .btn--ghost:hover, .band-moss .btn--ghost:hover { --btn-fg: #fff; --btn-bd: var(--gold-soft); }

.toof .textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap 0.18s ease, border-color 0.18s ease;
}
.toof .textlink:hover { gap: 12px; border-bottom-color: var(--gold); }
.toof .textlink .arrow { transition: transform 0.18s ease; }
.toof .textlink:hover .arrow { transform: translateX(2px); }

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.toof .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bar);
  border-bottom: 1px solid var(--header-bar-border);
  transition: box-shadow 0.25s ease;
}
.toof .site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(27, 26, 24, 0.05), 0 10px 28px rgba(27, 26, 24, 0.06);
}
.toof .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  min-height: 92px;
  padding-block: 8px;
}
.toof .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  max-height: 76px;
}
/* Official logo — larger within the bar; cream matte blends with --header-bar */
.toof .brand__logo {
  display: block;
  width: auto;
  height: clamp(3.9rem, 6.4vw, 4.75rem);
  max-height: 76px;
  max-width: min(280px, 42vw);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  /* Soft blend so the logo matte sits on the header cream without a hard edge */
  filter: contrast(1.02) saturate(1.02);
}

.toof .primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.1vw, 18px);
  min-width: 0;
}
.toof .primary-nav a {
  font-size: clamp(0.68rem, 0.55vw + 0.58rem, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
  transition: color 0.18s ease;
}
.toof .primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.22s ease;
}
.toof .primary-nav a:hover,
.toof .primary-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.toof .primary-nav a:hover::after,
.toof .primary-nav a[aria-current="page"]::after { width: 100%; }

/* Nav dropdowns (About, Impact, Reports) */
.toof .nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.toof .nav-dropdown__trigger {
  font-size: clamp(0.68rem, 0.55vw + 0.58rem, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
  padding-inline: 0 2px;
  transition: color 0.18s ease;
}
.toof .nav-dropdown__trigger::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.22s ease;
}
.toof .nav-dropdown__trigger:hover,
.toof .nav-dropdown__trigger.is-active,
.toof .nav-dropdown__trigger[aria-current="page"] { color: var(--ink); font-weight: 700; }
.toof .nav-dropdown__trigger:hover::after,
.toof .nav-dropdown__trigger.is-active::after { width: 100%; }
.toof .nav-dropdown__toggle {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px 2px;
  color: var(--muted);
  line-height: 1;
  border-radius: 2px;
}
.toof .nav-dropdown__chev {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}
.toof .nav-dropdown[data-open="true"] .nav-dropdown__chev { transform: rotate(-135deg) translateY(1px); }
.toof .nav-dropdown__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  z-index: 40;
}
@media (hover: hover) {
  .toof .nav-dropdown:hover .nav-dropdown__menu,
  .toof .nav-dropdown:focus-within .nav-dropdown__menu { display: block; }
}
.toof .nav-dropdown[data-open="true"] .nav-dropdown__menu { display: block; }
.toof .nav-dropdown__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.toof .nav-dropdown__menu a::after { display: none; }
.toof .nav-dropdown__menu a:hover,
.toof .nav-dropdown__menu a[aria-current="page"] {
  background: var(--bone);
  color: var(--ink);
}

.toof .header-cta { display: inline-flex; align-items: center; gap: clamp(6px, 0.8vw, 10px); flex-shrink: 0; }
.toof .header-cta .btn {
  padding-inline: clamp(12px, 1.2vw, 18px);
  white-space: nowrap;
  font-size: clamp(0.72rem, 0.5vw + 0.62rem, 0.82rem);
  font-weight: 700;
}

.toof .nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  border-radius: var(--radius);
  padding: 9px 14px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

/* Mobile drawer */
.toof .mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(20, 18, 14, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.toof .mobile-nav.is-open { opacity: 1; visibility: visible; }
.toof .mobile-nav__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(360px, 86vw);
  background: var(--paper);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.toof .mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.toof .mobile-nav__panel a {
  padding: 14px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.toof .mobile-nav__group {
  border-bottom: 1px solid var(--hairline);
}
.toof .mobile-nav__group summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toof .mobile-nav__group summary::-webkit-details-marker { display: none; }
.toof .mobile-nav__group summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.toof .mobile-nav__group[open] summary::after { transform: rotate(-135deg); }
.toof .mobile-nav__group summary a { border: 0; padding: 0; flex: 1; }
.toof .mobile-nav__subgroup { padding: 0 0 8px 12px; display: flex; flex-direction: column; }
.toof .mobile-nav__sub {
  font-size: 0.95rem;
  padding: 10px 4px !important;
  border-bottom: 0 !important;
  color: var(--charcoal);
}
.toof .mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.toof .mobile-nav__close {
  align-self: flex-end;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--ink);
  padding: 4px 8px; margin-bottom: 10px;
}

/* ===================================================================
   HERO
   =================================================================== */
.toof .hero {
  position: relative;
  min-height: clamp(560px, 86vh, 860px);
  display: flex;
  align-items: center;
  color: #f6f2e9;
  overflow: hidden;
  background: var(--moss-deep);
}
.toof .hero__media { position: absolute; inset: 0; z-index: 0; }
.toof .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.toof .hero__media::after {
  content: "";
  position: absolute; inset: 0;
  /* ~12% darker text-side overlay for WCAG AA legibility; photo warmth preserved on the right */
  background:
    linear-gradient(100deg, rgba(12, 14, 11, 0.92) 0%, rgba(12, 14, 11, 0.72) 42%, rgba(12, 14, 11, 0.28) 100%),
    linear-gradient(0deg, rgba(12, 14, 11, 0.62), rgba(12, 14, 11, 0) 55%);
}
.toof .hero__inner { position: relative; z-index: 1; padding-block: clamp(80px, 12vh, 140px); }
.toof .hero__content { max-width: 760px; }
.toof .hero .eyebrow { color: var(--gold-soft); }
.toof .hero .eyebrow::before { background: var(--gold-soft); }
.toof .hero__word {
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}
.toof .hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  color: #fbf8f1;
  margin-bottom: 28px;
  font-weight: 600;
}
.toof .hero h1 .accent { color: var(--gold-soft); font-style: italic; }
.toof .hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.7;
  color: rgba(251, 248, 241, 0.94);
  max-width: 60ch;
  margin: 0 0 20px;
}
.toof .hero__statement {
  margin: 0 0 36px;
  max-width: 42ch;
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}
.toof .hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.toof .hero .btn--ghost-on-dark,
.toof .hero .btn--ghost {
  --btn-bg: rgba(15, 17, 14, 0.28);
  --btn-fg: #fbf8f1;
  --btn-bd: rgba(251, 248, 241, 0.55);
  backdrop-filter: blur(2px);
}
.toof .hero .btn--ghost-on-dark:hover,
.toof .hero .btn--ghost:hover {
  --btn-bg: rgba(15, 17, 14, 0.42);
  --btn-fg: #fff;
  --btn-bd: var(--gold-soft);
  box-shadow: none;
}

/* ===================================================================
   IMPACT STATS
   =================================================================== */
.toof .stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.toof .stat {
  background: var(--paper);
  padding: 32px 24px;
  text-align: center;
}
.toof .stat__value {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}
.toof .stat__value .suffix { color: var(--gold); }
.toof .stat__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 1080px) { .toof .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .toof .stats-grid { grid-template-columns: repeat(2, 1fr); } .toof .stat { padding: 24px 14px; } }

/* ===================================================================
   CHAIRMAN VISION
   =================================================================== */
.toof .chairman {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.toof .chairman__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--mist);
  box-shadow: var(--shadow-md);
}
.toof .chairman__figure img { width: 100%; height: 100%; object-fit: cover; }
.toof .chairman__figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(20,18,14,0.82), transparent);
  color: #fff;
}
.toof .chairman__figure figcaption strong { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; }
.toof .chairman__figure figcaption span { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-top: 4px; }
.toof .chairman__quote {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.32;
  color: var(--ink);
  font-weight: 500;
  margin: 18px 0 24px;
}
.toof .chairman__quote::before { content: "\201C"; color: var(--gold); font-size: 1.2em; line-height: 0; vertical-align: -0.35em; margin-right: 4px; }
.toof .chairman__body { color: var(--charcoal); margin-bottom: 26px; }
@media (max-width: 860px) { .toof .chairman { grid-template-columns: 1fr; } .toof .chairman__figure { max-width: 420px; } }

/* ===================================================================
   CARD GRIDS (focus areas, programmes, stories, reports, news)
   =================================================================== */
.toof .grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.toof .grid--3 { grid-template-columns: repeat(3, 1fr); }
.toof .grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .toof .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .toof .grid--3, .toof .grid--2 { grid-template-columns: 1fr; } }

.toof .card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.toof .card:hover,
.toof .card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--hairline-strong); }
.toof .card--link {
  display: flex;
  flex-direction: column;
  color: inherit;
  height: 100%;
}
.toof .card--link .card__body { flex: 1; }
.toof .card--link .textlink { pointer-events: none; }
.toof .card__media { aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.toof .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.toof .card:hover .card__media img { transform: scale(1.05); }
.toof .card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.toof .card__kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.toof .card__title { font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.toof .card__text { color: var(--muted); font-size: 0.98rem; line-height: 1.65; }
.toof .card .textlink { margin-top: auto; }

/* Focus area card (icon-led, no image) */
.toof .focus-card { padding: 30px 26px; gap: 14px; }
.toof .focus-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold);
  border: 1px solid rgba(176, 131, 39, 0.25);
}
.toof .focus-card__icon svg { width: 22px; height: 22px; }

/* Status pill */
.toof .pill {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.toof .pill--active { background: rgba(47, 74, 56, 0.12); color: var(--moss); }
.toof .pill--planned { background: var(--gold-tint); color: #8a6418; }
.toof .pill--completed { background: rgba(27,26,24,0.08); color: var(--charcoal); }

/* ===================================================================
   IMPACT MAP
   =================================================================== */
.toof .map-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.toof .map-stage { position: relative; }
.toof .map-detail {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.toof .map-detail[hidden] { display: none; }
.toof .map-detail__state {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.toof .map-detail__count {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}
.toof .map-detail__meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}
.toof .map-detail__hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.toof .map-stage {
  position: relative;
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 360px;
}
.toof .map-stage svg { width: 100%; height: auto; }
.toof .map-region {
  fill: #e7e2d6;
  stroke: #fff;
  stroke-width: 1.2;
  transition: fill 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  outline: none;
}
.toof .map-region:hover, .toof .map-region.is-active, .toof .map-region:focus-visible { fill: var(--gold); }
.toof .map-region.is-selected { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 2; }
.toof .map-region--off { fill: #efece4; cursor: default; pointer-events: none; }
.toof .region-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toof .region-list li {
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--hairline);
}
.toof .region-list .r-name { font-weight: 600; color: var(--ink); }
.toof .region-list .r-meta { font-size: 0.84rem; color: var(--muted); }
.toof .region-list li.is-selected,
.toof .region-list li:focus-visible {
  background: var(--gold-tint);
  outline: none;
}
@media (max-width: 860px) { .toof .map-layout { grid-template-columns: 1fr; } }

/* ===================================================================
   GOVERNANCE / board / policies
   =================================================================== */
.toof .gov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .toof .gov-grid { grid-template-columns: 1fr; } }
.toof .gov-item {
  border: 1px solid rgba(244,241,234,0.16);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(255,255,255,0.03);
}
.toof .gov-item h3 { color: #f6f3ec; font-size: 1.25rem; margin-bottom: 8px; }
.toof .gov-item p { color: rgba(244,241,234,0.74); font-size: 0.95rem; }
.toof .policy-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.toof .policy-chip {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid rgba(244,241,234,0.2);
  color: rgba(244,241,234,0.9);
}

/* Board members */
.toof .board-card { text-align: center; padding: 26px; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.toof .board-card__avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--mist); overflow: hidden; border: 2px solid var(--gold-tint);
}
.toof .board-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.toof .board-card h3 { font-size: 1.2rem; }
.toof .board-card .role { color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

/* ===================================================================
   REPORTS
   =================================================================== */
.toof .report-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; background: var(--paper);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.toof .report-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.toof .report-card .year { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; color: var(--gold); }
.toof .report-card h3 { font-size: 1.25rem; }
.toof .report-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.toof .report-card .dl { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.84rem; color: var(--ink); margin-top: 6px; }
.toof .report-card .dl svg { width: 16px; height: 16px; }
.toof .report-card:hover .dl { color: var(--gold); }

/* ===================================================================
   PARTNER PATHWAYS
   =================================================================== */
.toof .pathways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .toof .pathways { grid-template-columns: 1fr; } }
.toof .pathway {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(244,241,234,0.16);
  transition: background 0.2s ease, transform 0.2s ease;
}
.toof .pathway:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.toof .pathway h3 { color: #f6f3ec; font-size: 1.2rem; }
.toof .pathway p { color: rgba(244,241,234,0.74); font-size: 0.92rem; flex: 1; }

/* ===================================================================
   DONATION
   =================================================================== */
.toof .support {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 820px) { .toof .support { grid-template-columns: 1fr; } }

/* ===================================================================
   FOOTER
   =================================================================== */
.toof .site-footer { background: var(--ink); color: rgba(244, 241, 234, 0.78); }
.toof .footer-top { padding-block: clamp(54px, 7vw, 88px); }
.toof .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 920px) { .toof .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .toof .footer-grid { grid-template-columns: 1fr; } }
.toof .footer-brand strong { font-family: var(--f-display); font-size: 1.5rem; color: #f6f3ec; font-weight: 600; display: block; margin-bottom: 12px; }
.toof .footer-brand p { font-size: 0.95rem; line-height: 1.7; max-width: 38ch; }
.toof .footer-col h4 { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.toof .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.toof .footer-col a { font-size: 0.92rem; color: rgba(244,241,234,0.74); transition: color 0.18s ease; }
.toof .footer-col a:hover { color: var(--gold-soft); }
.toof .footer-contact-line { font-size: 0.92rem; margin-bottom: 10px; }
.toof .footer-contact-line span { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,241,234,0.5); margin-bottom: 3px; }
.toof .footer-bottom { border-top: 1px solid rgba(244,241,234,0.12); padding-block: 22px; }
.toof .footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; font-size: 0.84rem; color: rgba(244,241,234,0.6); }
.toof .footer-bottom-inner a { color: rgba(244,241,234,0.7); }
.toof .footer-bottom-inner a:hover { color: var(--gold-soft); }
.toof .footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ===================================================================
   REVEAL ON SCROLL
   =================================================================== */
.toof [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); transition-delay: var(--reveal-delay, 0ms); }
.toof [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .toof * { scroll-behavior: auto !important; }
  .toof [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .toof .card:hover, .toof .btn:hover, .toof .card:hover .card__media img { transform: none !important; }
}

/* ---------- Responsive nav switch (hamburger on phones only) ---------- */
@media (max-width: 768px) {
  .toof .header-inner {
    display: flex;
    justify-content: space-between;
    min-height: 76px;
  }
  .toof .primary-nav,
  .toof .header-cta .btn { display: none; }
  .toof .nav-toggle { display: inline-flex; }
  .toof .brand {
    max-height: 60px;
  }
  .toof .brand__logo {
    height: 3.35rem;
    max-height: 60px;
    max-width: min(220px, 58vw);
  }
}

/* ---------- Skip link ---------- */
.toof .skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
  font-weight: 600; font-size: 0.85rem;
}
.toof .skip-link:focus { left: 0; }

/* ===================================================================
   INNER PAGE COMPONENTS (shared by About, Programmes, Governance, etc.)
   =================================================================== */
.toof .page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 52vh, 520px);
  background: var(--moss-deep);
  overflow: hidden;
  color: #f6f2e9;
}
.toof .page-hero__media { position: absolute; inset: 0; z-index: 0; }
.toof .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.toof .page-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,17,14,0.45) 0%, rgba(15,17,14,0.55) 45%, rgba(15,17,14,0.86) 100%);
}
.toof .page-hero__inner { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 84px); }
.toof .page-hero .eyebrow { color: var(--gold-soft); }
.toof .page-hero .eyebrow::before { background: var(--gold-soft); }
.toof .page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  color: #fbf8f1;
  max-width: 18ch;
  margin-bottom: 18px;
}
.toof .page-hero__lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(246, 242, 233, 0.9);
  max-width: 56ch;
}

/* Long-form prose */
.toof .prose { max-width: var(--measure); }
.toof .prose p { margin-bottom: 1.15rem; color: var(--charcoal); }
.toof .prose p:last-child { margin-bottom: 0; }
.toof .prose .lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

/* Two-column split (text + image) */
.toof .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.toof .split--text-first .split__media { order: 2; }
.toof .split__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--mist);
  box-shadow: var(--shadow-md);
}
.toof .split__media img { width: 100%; height: 100%; object-fit: cover; }
.toof .split__media--contain {
  aspect-ratio: unset;
  height: auto;
  max-height: none;
}
.toof .split__media--contain img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}

.toof .impact-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.toof .impact-gallery__item {
  margin: 0;
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  border: 1px solid rgba(27, 26, 24, 0.08);
  background: var(--bone, #f6f3ec);
}

.toof .impact-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 640px) {
  .toof .impact-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .toof .split { grid-template-columns: 1fr; }
  .toof .split--text-first .split__media { order: 0; }
  .toof .split__media:not(.split__media--contain) { max-height: 360px; }
  .toof .split__media--contain { max-height: none; }
}

/* Pull quote */
.toof .quote-block {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 0;
}
.toof .quote-block p {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.22;
  color: var(--ink);
  font-weight: 500;
}
.toof .quote-block cite { display: block; margin-top: 14px; font-family: var(--f-body); font-style: normal; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.toof .quote-block__word {
  margin: 0 0 10px;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Belief quote (About philosophy) */
.toof .belief-quote {
  margin: clamp(28px, 5vw, 48px) auto 0;
  max-width: 680px;
  text-align: center;
}
.toof .belief-quote__panel {
  position: relative;
  padding: clamp(36px, 6vw, 56px) clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184, 150, 90, 0.12), transparent 70%),
    linear-gradient(165deg, var(--paper) 0%, var(--mist) 100%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
}
.toof .belief-quote__panel::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: clamp(16px, 4vw, 28px);
  font-family: var(--f-display);
  font-size: clamp(4rem, 10vw, 6rem);
  line-height: 1;
  color: var(--gold-tint);
  pointer-events: none;
  user-select: none;
}
.toof .belief-quote__word {
  position: relative;
  margin: 0 0 16px;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.toof .belief-quote__text {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
}
.toof .belief-quote__text p {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
}
.toof .belief-quote__text em {
  display: block;
  margin-top: 0.12em;
  font-style: italic;
  color: var(--moss);
}
.toof .belief-quote__cite {
  display: block;
  margin-top: 22px;
  font-family: var(--f-body);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Vision / Mission / Values grid */
.toof .vm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); }
@media (max-width: 720px) { .toof .vm { grid-template-columns: 1fr; } }
.toof .vm__col { border-top: 2px solid var(--gold-tint); padding-top: 18px; }
.toof .vm__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.toof .vm__text { color: var(--charcoal); }

/* Values / feature list */
.toof .feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.toof .feature-list li { position: relative; padding-left: 28px; color: var(--charcoal); }
.toof .feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 14px; height: 2px; background: var(--gold);
}
.toof .band-ink .feature-list li,
.toof .band-moss .feature-list li {
  color: #f6f3ec;
}
.toof .band-ink .feature-list li::before,
.toof .band-moss .feature-list li::before {
  background: var(--gold-soft);
}

/* Definition cards (values, principles) */
.toof .def-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .toof .def-grid { grid-template-columns: 1fr; } }
.toof .def {
  padding: 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.toof .def__word {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: clamp(1.65rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.08;
  color: var(--gold);
}
.toof .def h3 { font-size: 1.25rem; margin-bottom: 8px; }
.toof .def__word + h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.toof .def p { color: var(--muted); font-size: 0.96rem; }

/* Closing statement band */
.toof .closing { text-align: center; }
.toof .closing p {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto;
}
.band-ink .closing p, .band-moss .closing p { color: #f6f3ec; }

/* ===================================================================
   FORMS
   =================================================================== */
.toof .form { max-width: 720px; }
.toof .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .toof .form-grid { grid-template-columns: 1fr; } }
.toof .field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.toof .field.col-span-2 { grid-column: 1 / -1; }
.toof .field > label {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink);
}
.toof .field .req { color: var(--gold); }
.toof .field .hint { font-size: 0.78rem; color: var(--muted); }
.toof .form input,
.toof .form select,
.toof .form textarea {
  font-family: var(--f-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.toof .form textarea { min-height: 130px; resize: vertical; }
.toof .form input:focus,
.toof .form select:focus,
.toof .form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
}
.toof .form input[aria-invalid="true"],
.toof .form select[aria-invalid="true"],
.toof .form textarea[aria-invalid="true"] { border-color: #b3261e; }
.toof .field-error { font-size: 0.78rem; color: #b3261e; min-height: 0; }
.toof .form input[type="file"] { padding: 9px 12px; background: var(--bone); cursor: pointer; }

.toof .consent {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  background: var(--bone); margin: 8px 0 22px;
}
.toof .consent input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--gold); }
.toof .consent label { font-size: 0.88rem; color: var(--charcoal); line-height: 1.55; }

.toof .form-status { font-size: 0.92rem; margin-top: 14px; }
.toof .form-status[data-state="error"] { color: #b3261e; }
.toof .form-status[data-state="success"] { color: var(--moss); }
.toof .form-success {
  display: none;
  padding: 28px; border: 1px solid rgba(47,74,56,0.3); border-radius: var(--radius-lg);
  background: rgba(47,74,56,0.06);
}
.toof .form-success.is-shown { display: block; }
.toof .form-success h3 { color: var(--moss); margin-bottom: 8px; }
.toof .form-success p { color: var(--charcoal); }

/* Tabs for the Apply hub */
.toof .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; border-bottom: 1px solid var(--hairline); }
.toof .tab {
  appearance: none; border: none; background: none; cursor: pointer;
  font-family: var(--f-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted); padding: 12px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.toof .tab:hover { color: var(--ink); }
.toof .tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.toof .tab-panel { display: none; }
.toof .tab-panel.is-active { display: block; }

/* ---------- Utility ---------- */
.toof .center { text-align: center; }
.toof .mt-32 { margin-top: 32px; }
.toof .mt-40 { margin-top: 40px; }
.toof .stack-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.toof .stack-actions.center { justify-content: center; }
