/* ==========================================================================
   Brain Trust Cooperative — main stylesheet

   1.  Design tokens
   2.  Base & reset
   3.  Layout
   4.  Typography helpers
   5.  Buttons & links
   6.  Header & navigation
   7.  Home hero
   8.  Inner page hero
   9.  Shared components
   10. Home sections
   11. About page
   12. What We Do page
   13. Programmes page
   14. Partnerships page
   15. Members page
   16. Call to action
   17. Footer
   18. Motion
   19. Responsive
   20. Print
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

:root {
  /* Brand colours, sampled from the logo */
  --brand-blue: #0054ae;
  --brand-sky: #0096ea;
  --brand-yellow: #fccc14;

  --navy-900: #0a1f44;
  --navy-800: #0f2d5e;
  --blue-600: #0a63c7;
  --sky-600: #0079c2;   /* sky darkened for text on white (4.6:1) */
  --sky-300: #7fcaf6;   /* sky for text on navy */
  --sky-100: #e1f1fd;
  --sky-50: #f2f8fe;
  --yellow-300: #ffd84a;
  --yellow-100: #fff5cc;
  --yellow-ink: #6b5000;

  --ink: #0f1c2e;
  --ink-muted: #45566d;
  --ink-soft: #5b6a80;
  --line: #dde5f0;
  --line-tint: #d4e7f8;
  --surface: #ffffff;
  --surface-alt: #f5f8fc;

  --on-dark: #ffffff;
  --on-dark-muted: #bccade;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.05), 0 2px 6px rgba(10, 31, 68, 0.05);
  --shadow: 0 14px 34px -14px rgba(10, 31, 68, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(10, 31, 68, 0.3);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* 2. Base & reset
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  text-wrap: balance;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

ul[class],
ol[class] {
  list-style: none;
}

a {
  color: var(--brand-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand-sky);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--yellow-300);
  color: var(--navy-900);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

main:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Inline SVG icon sprite */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* 3. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--surface-alt);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 64px);
}

.section--flush-bottom {
  padding-bottom: 0;
}

.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--on-dark-muted);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 420px at 100% 0%, rgba(0, 150, 234, 0.28), transparent 70%),
    radial-gradient(520px 360px at 0% 100%, rgba(252, 204, 20, 0.12), transparent 70%);
  pointer-events: none;
}

.section--dark > .container {
  position: relative;
}

.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--wide-left {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.split__aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

/* Spacing utilities (top margin, 4px scale) */
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-7 { margin-top: 28px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }


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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-600);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-yellow);
}

.section--dark .eyebrow,
.statement .eyebrow {
  color: var(--sky-300);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-head--split > div {
  max-width: 680px;
}

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
}

.section-head .section-title + .lead,
.section-head .section-title + p {
  margin-top: 16px;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

.section--dark .lead {
  color: var(--on-dark-muted);
}

.prose p + p {
  margin-top: 1.1em;
}

.prose p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.prose .lead {
  color: var(--ink);
}

.highlight {
  color: var(--brand-blue);
  background: linear-gradient(var(--brand-yellow), var(--brand-yellow)) 0 94% / 100% 0.16em no-repeat;
  padding-bottom: 0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


/* 5. Buttons & links
   ========================================================================== */

.btn {
  --btn-bg: var(--brand-blue);
  --btn-fg: #fff;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.375rem;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.9375rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}

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

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary:hover {
  --btn-bg: var(--blue-600);
  box-shadow: 0 12px 24px -12px rgba(0, 84, 174, 0.7);
}

.btn--accent {
  --btn-bg: var(--brand-yellow);
  --btn-fg: var(--navy-900);
}

.btn--accent:hover {
  --btn-bg: var(--yellow-300);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  --btn-border: #c5d3e6;
}

.btn--ghost:hover {
  --btn-bg: #fff;
  --btn-fg: var(--brand-blue);
  --btn-border: var(--brand-blue);
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.45);
}

.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: #fff;
}

.btn--sm {
  min-height: 42px;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-arrow .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.section--dark .link-arrow {
  color: var(--sky-300);
}


/* 6. Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  flex: none;
  border-radius: var(--radius-sm);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav__link:hover {
  color: var(--navy-900);
  background: var(--surface-alt);
}

.nav__link[aria-current="page"] {
  color: var(--brand-blue);
  font-weight: 600;
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--brand-yellow);
}

.nav-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
}

.nav-toggle__bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle__bar:nth-child(1) { top: 13px; }
.nav-toggle__bar:nth-child(2) { top: 20px; }
.nav-toggle__bar:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* 7. Home hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(112px, 12vw, 160px);
  background:
    radial-gradient(1100px 560px at 88% 8%, rgba(0, 150, 234, 0.14), transparent 60%),
    radial-gradient(760px 420px at 0% 100%, rgba(252, 204, 20, 0.16), transparent 62%),
    linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 84, 174, 0.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 10%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 580px;
  margin-top: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 40px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-blue);
}

/* Visual: logo mark in orbit with the four pillars of the motto */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.hero__halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0 58%, rgba(255, 255, 255, 0.6) 72%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 84, 174, 0.35);
}

.hero__ring {
  position: absolute;
  inset: 2%;
  border: 1.5px dashed rgba(0, 84, 174, 0.22);
  border-radius: 50%;
}

.hero__ring--inner {
  inset: 17%;
  border: 1px solid rgba(0, 150, 234, 0.22);
}

.hero__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54%;
  transform: translate(-50%, -52%);
  filter: drop-shadow(0 18px 28px rgba(0, 84, 174, 0.2));
}

.hero__pillars {
  position: absolute;
  inset: 0;
}

.hero__pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
  white-space: nowrap;
}

.hero__pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--brand-blue));
}

.hero__pill--1 { top: 9%; left: 2%; --dot: var(--brand-blue); }
.hero__pill--2 { top: 21%; right: 0; --dot: var(--brand-sky); }
.hero__pill--3 { bottom: 22%; left: 0; --dot: var(--brand-yellow); }
.hero__pill--4 { bottom: 7%; right: 4%; --dot: var(--navy-900); }

/* Key figures card overlapping the hero */
.stats {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(64px, 8vw, 88px));
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.stat {
  padding: clamp(20px, 3vw, 32px);
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-blue);
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-muted);
}


/* 8. Inner page hero
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(900px 480px at 92% 0%, rgba(0, 150, 234, 0.13), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(252, 204, 20, 0.14), transparent 62%),
    linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero > .container {
  position: relative;
}

.page-hero__mark {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: clamp(220px, 32vw, 420px);
  opacity: 0.09;
  pointer-events: none;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #a5b3c6;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.page-hero__title {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  letter-spacing: -0.025em;
}

.page-hero .lead {
  max-width: 760px;
  margin-top: 20px;
}


/* 9. Shared components
   ========================================================================== */

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sky-100);
  color: var(--brand-blue);
}

.icon-tile .icon {
  width: 26px;
  height: 26px;
}

.icon-tile--yellow {
  background: var(--yellow-100);
  color: var(--yellow-ink);
}

.icon-tile--navy {
  background: var(--navy-900);
  color: var(--brand-yellow);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.875rem;
  border: 1px solid var(--line-tint);
  border-radius: var(--radius-pill);
  background: var(--sky-50);
  color: var(--navy-800);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.chip--solid {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}

/* Chips that open a document */
a.chip {
  gap: 7px;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

a.chip .icon {
  width: 1.05em;
  height: 1.05em;
}

a.chip--solid:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.tick-list {
  display: grid;
  gap: 0.55rem;
}

.tick-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 3px var(--yellow-100);
}

/* Check-mark items (competitive advantage, strategic purpose) */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--navy-900);
  font-weight: 500;
  line-height: 1.45;
}

.section--alt .check-item {
  background: #fff;
}

.check-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--navy-900);
}

.check-badge .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Generic white card */
.panel {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.panel--tint {
  border-color: var(--line-tint);
  background: var(--sky-50);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 1.25rem;
}

/* Numbered list with square counters */
.num-list {
  display: grid;
  gap: 18px;
  counter-reset: num;
}

.num-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  counter-increment: num;
  line-height: 1.55;
}

.num-list li::before {
  content: counter(num);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sky-100);
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-weight: 700;
}

.panel--tint .num-list li::before {
  background: #fff;
}

/* Vision & mission */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.vm-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.vm-card__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-600);
}

.vm-card__text {
  position: relative;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy-900);
}

.vm-card--vision {
  border-color: var(--navy-900);
  background: var(--navy-900);
}

.vm-card--vision::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -56px;
  width: 240px;
  aspect-ratio: 640 / 503;
  background: url("../img/logo-mark.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.07;
}

.vm-card--vision .vm-card__label {
  color: var(--sky-300);
}

.vm-card--vision .vm-card__text {
  color: #fff;
}

.vm-card--vision .icon-tile {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-yellow);
}

/* Closing statement block */
.statement {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 300px at 100% 100%, rgba(0, 150, 234, 0.3), transparent 70%),
    var(--navy-900);
}

.statement::after {
  content: "";
  position: absolute;
  right: clamp(-80px, -4vw, -20px);
  bottom: -60px;
  width: clamp(200px, 28vw, 340px);
  aspect-ratio: 640 / 503;
  background: url("../img/logo-mark.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.07;
  pointer-events: none;
}

.statement__text {
  position: relative;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}

.statement__text strong {
  color: var(--brand-yellow);
  font-weight: 600;
}

/* In-page document reader (assets/js/doc-viewer.js) */
html.has-modal {
  overflow: hidden;
}

.doc-viewer {
  width: calc(100% - 48px);
  max-width: 1000px;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.doc-viewer[open] {
  display: flex;
  flex-direction: column;
}

.doc-viewer::backdrop {
  background: rgba(10, 31, 68, 0.72);
}

.doc-viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 10px 10px 10px 24px;
  border-bottom: 1px solid var(--line);
}

.doc-viewer__heading {
  min-width: 0;
}

.doc-viewer__title {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.doc-viewer__status {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.doc-viewer__tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}

.doc-viewer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--navy-900);
  font: 600 0.875rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.doc-viewer__btn:hover {
  background: var(--surface-alt);
}

.doc-viewer__btn:disabled {
  background: transparent;
  opacity: 0.35;
  cursor: default;
}

.doc-viewer__btn--download {
  margin-inline: 6px 2px;
  border-color: var(--line);
}

.doc-viewer__zoom {
  min-width: 3.25rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.doc-viewer__body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #e8eef6;
}

.doc-viewer__body:focus-visible {
  outline-offset: -3px;
  border-radius: 0;
}

.doc-viewer__page {
  margin: 0 auto 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 31, 68, 0.14), 0 6px 18px -8px rgba(10, 31, 68, 0.2);
  /* The reduced-motion rule gives every property a 0.01ms transition; page sizes
     must apply at once because doc-viewer.js reads them back to keep the scroll position */
  transition-property: none;
}

.doc-viewer__page canvas {
  width: 100%;
  height: 100%;
}

/* Spinner until a page's drawing is ready (the canvas is only inserted once complete) */
/* Near the top rather than centred, so it is in view while a tall page is still loading */
.doc-viewer__page:empty {
  display: grid;
  place-items: start center;
  padding-top: min(30%, 140px);
}

.doc-viewer__page:empty::after {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid var(--sky-100);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.doc-viewer__message {
  max-width: 460px;
  margin: 12vh auto 0;
  text-align: center;
  color: var(--ink-muted);
}

.doc-viewer__message-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}


/* 10. Home sections
   ========================================================================== */

/* "Founded on intellectual capital": four elements converging on the mark */
.converge {
  padding: 14px;
  border-radius: calc(var(--radius-lg) + 8px);
  background: var(--sky-50);
  border: 1px solid var(--line-tint);
}

.converge__body {
  position: relative;
}

.converge__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Labels sit on each tile's outer edge so the central hub never covers them */
.converge__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  gap: 36px;
  min-height: 172px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.converge__item:nth-child(even) {
  align-items: flex-end;
  text-align: right;
}

.converge__item:nth-child(n + 3) {
  flex-direction: column;
}

.converge__item h3 {
  font-size: 1.1875rem;
}

.converge__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 6px solid var(--sky-50);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.converge__hub img {
  width: 62px;
}

.converge__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.members {
  margin-top: 32px;
}

.members__label {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-900);
}

/* Core values strip under vision & mission */
.values-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.values-strip__label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-900);
}

.values-strip .chip-list {
  flex: 1 1 420px;
}

/* Sector cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card-grid > li {
  display: flex;
}

.sector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.sector-card:hover {
  border-color: #b8d9f3;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.sector-card:has(.card-link:focus-visible) {
  outline: 3px solid var(--brand-sky);
  outline-offset: 3px;
}

.sector-card h3 {
  margin: 22px 0 14px;
  font-size: 1.25rem;
}

.sector-card .tick-list {
  font-size: 0.9375rem;
}

.card-link {
  margin-top: auto;
  padding-top: 22px;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-link:focus-visible {
  outline: none;
}

/* Programme links on the dark band */
.programme-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 48px;
}

.programme-links li:nth-child(1),
.programme-links li:nth-child(6) {
  border-top: 1px solid var(--line-dark);
}

.programme-links a {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s;
}

.programme-links .num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--brand-yellow);
}

.programme-links .icon {
  color: var(--on-dark-muted);
  transition: transform 0.2s var(--ease), color 0.2s;
}

.programme-links a:hover {
  color: var(--sky-300);
}

.programme-links a:hover .icon {
  color: var(--brand-yellow);
  transform: translateX(4px);
}

/* Development frameworks band */
.align-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.align-band h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
}

.align-band .chip-list {
  margin-top: 18px;
}

.align-band__hint {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}


/* 11. About page
   ========================================================================== */

.profile-card {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-card img {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 28px;
}

.facts {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin-top: 2px;
  font-weight: 600;
  color: var(--navy-900);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.value__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sky-600);
}

.value__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-900);
}

.value::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -1px;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-yellow);
}

/* Governance structure */
.gov-list {
  position: relative;
  display: grid;
  gap: 12px;
  counter-reset: gov;
}

.gov-list::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 30px;
  width: 2px;
  background: linear-gradient(var(--brand-blue), var(--brand-sky));
  opacity: 0.35;
}

.gov-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 20px 15px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-900);
  counter-increment: gov;
}

.gov-list li::before {
  content: counter(gov, decimal-leading-zero);
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
}

.gov-list li:first-child {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}

.gov-list li:first-child::before {
  background: var(--brand-yellow);
  color: var(--navy-900);
}

.principles {
  margin-top: 28px;
}

.principles__label {
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--navy-900);
}

.objectives {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Legal status: registration certificate + policy framework */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.legal-note {
  margin-top: 20px;
  color: var(--ink-muted);
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.doc-actions .btn:hover .icon {
  transform: none;
}

.doc-meta {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}


/* 12. What We Do page
   ========================================================================== */

.sector-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.sector-nav ul {
  list-style: none;
  position: relative;
  display: flex;
  gap: 8px;
  padding-block: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sector-nav ul::-webkit-scrollbar {
  display: none;
}

.sector-nav a {
  display: block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.sector-nav a:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.sector-nav a.is-active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

.sector-wrap {
  padding-top: clamp(40px, 6vw, 64px);
}

.sector {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 64px);
}

.sector:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.sector__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sector__num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-sky);
}

@supports (-webkit-text-stroke: 1px black) {
  .sector__num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--brand-sky);
  }
}

.sector__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

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

.sector__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--navy-900);
  font-weight: 500;
  line-height: 1.4;
}

.sector__list .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-blue);
  stroke-width: 2.25;
}


/* 13. Programmes page
   ========================================================================== */

.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.programme-grid > li {
  display: flex;
}

.programme {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  width: 100%;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.programme:target {
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 4px rgba(0, 150, 234, 0.18);
}

.programme__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--sky-100);
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.programme-grid > li:nth-child(3n + 2) .programme__num {
  background: var(--yellow-100);
  color: var(--yellow-ink);
}

.programme-grid > li:nth-child(3n) .programme__num {
  background: var(--navy-900);
  color: var(--brand-yellow);
}

.programme h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.programme p {
  margin-top: 10px;
  color: var(--ink-muted);
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.framework {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-blue);
  border-radius: var(--radius);
  background: #fff;
}

.framework-grid > li:nth-child(2) .framework { border-top-color: var(--brand-sky); }
.framework-grid > li:nth-child(3) .framework { border-top-color: var(--brand-yellow); }
.framework-grid > li:nth-child(4) .framework { border-top-color: var(--navy-900); }

.framework__org {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.framework__name {
  margin-top: 8px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.framework__meta {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Read / download links, pinned to the bottom so the four cards line up */
.framework__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 20px;
}

.framework__actions .link-arrow {
  font-size: 0.9375rem;
}

.framework__alt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.framework__alt:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.framework__alt .icon {
  width: 1.05em;
  height: 1.05em;
}


.sdg-intro {
  margin: clamp(48px, 6vw, 72px) 0 24px;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

.sdg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sdg {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line-tint);
  border-radius: var(--radius);
  background: var(--sky-50);
}

.sdg__num {
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line-tint);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
}

.sdg__name {
  margin-top: auto;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-900);
}


/* 14. Partnerships page
   ========================================================================== */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.partner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.partner h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
}

.outcomes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px 32px;
  margin-top: 32px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
}

.outcomes__text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.outcomes ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.outcomes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 500;
}

.outcomes .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-yellow);
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 48px;
  counter-reset: reason;
}

.reason-list li:nth-child(1),
.reason-list li:nth-child(5) {
  border-top: 1px solid var(--line-dark);
}

.reason-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  counter-increment: reason;
}

.reason-list li::before {
  content: counter(reason, decimal-leading-zero);
  padding-top: 0.15em;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-yellow);
}


/* 15. Members page
   ========================================================================== */

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 24px;
}

.member-grid > li {
  display: flex;
}

.member-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 12px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.member-card:hover {
  border-color: #b8d9f3;
  box-shadow: var(--shadow);
}

.member-card__photo,
.member-card__avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--sky-100);
}

/* Initials tile for members without a photo */
.member-card__avatar {
  display: grid;
  place-items: center;
  background:
    radial-gradient(260px 200px at 100% 100%, rgba(0, 150, 234, 0.4), transparent 70%),
    var(--navy-900);
  color: #fff;
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.member-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 10px 0;
}

.member-card__name {
  font-size: 1.1875rem;
}

.member-card__title {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.member-card__role {
  align-self: flex-start;
  margin-top: 12px;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--yellow-100);
  color: var(--yellow-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.member-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.member-card__tags li {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line-tint);
  border-radius: var(--radius-pill);
  background: var(--sky-50);
  color: var(--navy-800);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.member-card__bio {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.member-card__link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.9375rem;
}

/* Shown until the first profile is published */
.member-empty {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.member-empty h3 {
  font-size: 1.25rem;
}

.member-empty p {
  margin-top: 6px;
  color: var(--ink-muted);
}


/* 16. Call to action
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);
  background:
    radial-gradient(700px 400px at 92% 115%, rgba(252, 204, 20, 0.24), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(0, 150, 234, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, #0b3a80 60%, var(--brand-blue) 100%);
  color: #fff;
}

.cta::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -60px;
  width: clamp(240px, 34vw, 440px);
  aspect-ratio: 640 / 503;
  background: url("../img/logo-mark.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.07;
  transform: translateY(-50%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px 64px;
}

.cta__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  color: #fff;
}

.cta__text {
  max-width: 660px;
  margin-top: 16px;
  font-size: 1.0625rem;
  color: #cad7ea;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* 17. Footer
   ========================================================================== */

.site-footer {
  padding: clamp(48px, 7vw, 72px) 0 28px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer__brand img {
  width: auto;
  height: 48px;
}

.footer__brand p {
  max-width: 340px;
  margin-top: 20px;
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
}

.footer__col h2 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer__col a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease),
    background-color 0.2s,
    visibility 0s linear 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease),
    background-color 0.2s;
}

.to-top:hover {
  background: var(--blue-600);
}

.to-top .icon {
  width: 22px;
  height: 22px;
}


/* 18. Motion
   ========================================================================== */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero__copy > *,
.page-hero .container > * {
  animation: rise 0.8s var(--ease) both;
}

.hero__copy > :nth-child(2),
.page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3),
.page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
.hero__copy > :nth-child(4),
.page-hero .container > :nth-child(4) { animation-delay: 0.24s; }
.hero__copy > :nth-child(5) { animation-delay: 0.32s; }

.hero__visual {
  animation: rise 1s 0.15s var(--ease) both;
}

.hero__ring {
  animation: spin 80s linear infinite;
}

.hero__pill {
  animation: float 6s ease-in-out infinite;
}

.hero__pill--2 { animation-delay: -1.5s; }
.hero__pill--3 { animation-delay: -3s; }
.hero__pill--4 { animation-delay: -4.5s; }

/* Scroll reveal — only active once main.js has set .reveal-ready */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}


/* 19. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .partner-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  }

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .brand img {
    height: 38px;
  }

  /* Mobile navigation (JS-enhanced). Without JS the menu stays inline. */
  .js .nav-toggle {
    display: block;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    padding: 12px var(--gutter) 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s,
      transform 0.2s var(--ease),
      visibility 0s linear 0.2s;
  }

  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.2s,
      transform 0.2s var(--ease);
  }

  .js .nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .js .nav__link {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }

  .js .nav__link[aria-current="page"] {
    background: var(--sky-50);
  }

  .js .nav__link[aria-current="page"]::after {
    top: 50%;
    bottom: auto;
    left: 0;
    width: 3px;
    height: 20px;
    margin: -10px 0 0;
  }

  html:not(.js) .header__inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
  }

  html:not(.js) .site-nav,
  html:not(.js) .nav__list {
    flex-wrap: wrap;
  }

  .hero__grid,
  .split,
  .split--wide-left,
  .objectives,
  .sector {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    max-width: 420px;
  }

  .split__aside,
  .profile-card {
    position: static;
  }

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

  .programme-links,
  .reason-list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .programme-links li:nth-child(6),
  .reason-list li:nth-child(5) {
    border-top: 0;
  }

  .align-band,
  .cta__inner,
  .outcomes {
    grid-template-columns: minmax(0, 1fr);
  }

  .outcomes ul {
    justify-content: flex-start;
  }

  .sector {
    gap: 24px;
  }

  .sector__head {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat + .stat {
    border-left: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .vm-grid,
  .legal-grid,
  .card-grid,
  .check-grid,
  .programme-grid,
  .sector__list {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .doc-viewer {
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: 0;
  }

  .doc-viewer__bar {
    padding: 8px 8px 8px 16px;
  }

  .doc-viewer__body {
    padding: 12px;
  }

  .doc-viewer__page {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .hero__pill {
    padding: 6px 11px 6px 8px;
    font-size: 0.75rem;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .converge__item {
    min-height: 140px;
    padding: 18px;
  }

  .converge__item h3 {
    font-size: 1rem;
  }

  .converge__hub {
    width: 84px;
    height: 84px;
  }

  .converge__hub img {
    width: 48px;
  }

  .values-grid,
  .framework-grid,
  .sdg-grid,
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .programme {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .sdg {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-height: 0;
    padding: 16px 18px;
  }

  .sdg__num {
    align-self: center;
    flex: none;
    min-width: 4.5rem;
    text-align: center;
  }

  .sdg__name {
    margin-top: 0;
  }

  .doc-viewer__zoom,
  .doc-viewer__btn-label {
    display: none;
  }

  .doc-viewer__title {
    font-size: 0.9375rem;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }
}


/* 20. Print
   ========================================================================== */

@media print {
  .site-header,
  .sector-nav,
  .cta,
  .to-top,
  .hero__visual,
  .doc-viewer {
    display: none !important;
  }

  .section--dark,
  .statement,
  .vm-card--vision {
    background: #fff !important;
    color: #000 !important;
  }

  .section--dark h2,
  .section--dark h3,
  .statement__text,
  .vm-card--vision .vm-card__text,
  .programme-links a,
  .reason-list li {
    color: #000 !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
