/* ==========================================================================
   I AM A QUEEN — Design System
   A restrained editorial system: deep plum, champagne, ivory.
   Sections: 1 Tokens · 2 Reset · 3 Type · 4 Layout · 5 Components
             6 Sections · 7 Forms · 8 Motion · 9 Responsive
   ========================================================================== */

/* 1 ── TOKENS ─────────────────────────────────────────────────────────── */
:root {
  /* Plum — authority, depth, the brand's spine */
  --plum-950: #150818;
  --plum-900: #1E0C24;
  --plum-800: #2B1134;
  --plum-700: #3C1849;
  --plum-600: #4E2160;   /* primary */
  --plum-500: #63317A;
  --plum-100: #EDE4F1;
  --plum-050: #F7F2F9;

  /* Champagne / gold — accent only. Never a background for body text. */
  --gold-800: #6B501A;
  --gold-700: #86651F;   /* AA on ivory */
  --gold-600: #9E7826;
  --gold-500: #B08434;
  --gold-400: #CFA153;   /* accent on dark */
  --gold-300: #E2C489;
  --champagne: #EFE1C4;

  /* Neutrals — warm, paper-like */
  --ivory: #FBF8F3;
  --paper: #FFFFFF;
  --sand: #F4EEE5;
  --ink: #191320;
  --body: #4B4453;
  --muted: #6E6579;
  --line: #E3DACD;
  --line-strong: #CFC3B2;
  --line-field: #8E8375;   /* form control borders — clears 3:1 on ivory and white */

  /* On dark */
  --on-dark: #FBF8F3;
  --on-dark-soft: #D6C9DE;
  --on-dark-mute: #A296AE;
  --line-dark: rgba(239, 225, 196, .18);

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.9rem, 6.6vw, 6rem);
  --fs-h1: clamp(2.4rem, 5vw, 4.1rem);
  --fs-h2: clamp(2rem, 3.9vw, 3.4rem);
  --fs-h3: clamp(1.4rem, 2.1vw, 1.9rem);
  --fs-h4: 1.2rem;
  --fs-statement: clamp(1.6rem, 3.1vw, 2.8rem);
  --fs-lead: clamp(1.06rem, 1.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Space — 4px base */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 2.5rem;  --s-8: 3rem;
  --s-9: 4rem;    --s-10: 5rem;   --s-11: 6.5rem; --s-12: 8rem;

  --section-y: clamp(4.5rem, 9vw, 9rem);
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --container: 1240px;
  --measure: 68ch;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;
  --header-h: 76px;
}

/* 2 ── RESET ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ivory);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.72;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
/* Photographs get a warm placeholder while they decode; transparent marks must not. */
.figure img, .prog-card-media img, .hero-media img { background: var(--sand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold-700);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-300); }

::selection { background: var(--plum-600); color: var(--ivory); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--plum-600); color: var(--ivory);
  padding: var(--s-3) var(--s-5); font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }
/* The skip link moves focus into <main tabindex="-1">; it should not then be ringed. */
main:focus { outline: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* 3 ── TYPE ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3, h4 { line-height: 1.22; letter-spacing: -0.01em; }

.display { font-size: var(--fs-display); line-height: 1.02; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); font-weight: 500; }

.statement {
  font-family: var(--serif);
  font-size: var(--fs-statement);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.014em;
  color: var(--ink);
  text-wrap: pretty;
}
.statement em { font-style: italic; color: var(--plum-600); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--body);
  text-wrap: pretty;
}
p { text-wrap: pretty; }
p + p { margin-top: var(--s-4); }
.measure { max-width: var(--measure); }
.measure-tight { max-width: 54ch; }

.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-700);
  line-height: 1.4;
}
.eyebrow::before {
  content: ""; flex: none; width: 28px; height: 1px;
  background: currentColor; opacity: .75;
}
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow { color: var(--gold-300); }

.overline {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

a { color: var(--plum-600); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--gold-700); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .01em; color: var(--plum-600); text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--plum-600) 30%, transparent);
  transition: color .3s var(--ease), border-color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--gold-700); border-color: var(--gold-500); gap: .85em; }
.link-arrow:hover::after { transform: translateX(2px); }
.on-dark .link-arrow { color: var(--gold-300); border-color: rgba(226,196,137,.35); }
.on-dark .link-arrow:hover { color: var(--champagne); border-color: var(--gold-300); }

/* 4 ── LAYOUT ─────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1440px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--flush-top { padding-top: 0; }

.band-paper { background: var(--paper); }
.band-sand { background: var(--sand); }
.band-plum { background: var(--plum-800); }
.band-plum-deep { background: var(--plum-950); }
.band-line-top { border-top: 1px solid var(--line); }
.band-line-bottom { border-bottom: 1px solid var(--line); }

.on-dark { color: var(--on-dark-soft); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark .statement { color: var(--on-dark); }
.on-dark .lead { color: var(--on-dark-soft); }
.on-dark .overline { color: var(--on-dark-mute); }

.grid { display: grid; gap: var(--s-8); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-7); flex-wrap: wrap; margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
}
.section-head > div { max-width: 42rem; }
.section-head .eyebrow { margin-bottom: var(--s-4); }
.section-head p.lead { margin-top: var(--s-5); }

.stack-sm > * + * { margin-top: var(--s-3); }
.stack > * + * { margin-top: var(--s-5); }
.stack-lg > * + * { margin-top: var(--s-7); }
/* A sub-heading inside a stack needs MORE air above it than a sibling paragraph,
   otherwise it reads as attached to the paragraph before it rather than the list after. */
.stack > h3 + *, .stack > h4 + * { margin-top: var(--s-3); }
.stack > * + h3.h4, .stack > * + h4 { margin-top: var(--s-7); }

/* 5 ── COMPONENTS ─────────────────────────────────────────────────────── */

/* — Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--plum-600); --btn-fg: var(--ivory); --btn-bd: var(--plum-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1rem 1.9rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .015em; text-decoration: none; text-align: center;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { --btn-bg: var(--plum-700); --btn-bd: var(--plum-700); color: var(--ivory); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold { --btn-bg: var(--gold-400); --btn-fg: var(--plum-900); --btn-bd: var(--gold-400); }
.btn--gold:hover { --btn-bg: var(--gold-300); --btn-bd: var(--gold-300); color: var(--plum-900); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--plum-600); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--plum-600); --btn-fg: var(--ivory); --btn-bd: var(--plum-600); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-bd: rgba(251,248,243,.45); }
.btn--ghost-light:hover { --btn-bg: rgba(251,248,243,.12); --btn-bd: var(--ivory); color: var(--ivory); }

.btn--sm { padding: .7rem 1.3rem; font-size: var(--fs-xs); white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* — Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--ivory) 96%, transparent); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand img { width: 34px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-size: 1.02rem; font-weight: 500;
  letter-spacing: .17em; color: var(--ink); text-transform: uppercase;
}
.brand-sub {
  font-size: .625rem; font-weight: 600; letter-spacing: .17em;
  text-transform: uppercase; color: var(--gold-700); margin-top: 4px;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 2rem); }
/* :not(.btn) matters — these rules outrank .btn on specificity and would
   otherwise strip the CTA's own padding and type. */
.site-nav a { white-space: nowrap; flex: none; }
.site-nav a:not(.btn) {
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink);
  text-decoration: none; padding: .4rem 0; position: relative;
  transition: color .3s var(--ease);
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--plum-600); }
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--plum-600); font-weight: 600; }
.nav-cta { margin-left: clamp(.25rem, 1vw, .75rem); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* — Hero --------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--plum-900); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 42%); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(21,8,24,.93) 0%, rgba(21,8,24,.62) 38%, rgba(21,8,24,.24) 68%, rgba(21,8,24,.42) 100%),
    linear-gradient(to right, rgba(21,8,24,.55) 0%, rgba(21,8,24,.08) 62%);
}
.hero-inner {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(84vh, 780px);
  padding-top: clamp(5rem, 12vw, 9rem); padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero--page .hero-inner { min-height: min(58vh, 520px); }
/* Interior heroes carry less type, so they need less scrim over the photograph. */
.hero--page .hero-media::after {
  background:
    linear-gradient(to top, rgba(21,8,24,.88) 0%, rgba(21,8,24,.5) 42%, rgba(21,8,24,.16) 78%, rgba(21,8,24,.34) 100%),
    linear-gradient(to right, rgba(21,8,24,.5) 0%, rgba(21,8,24,.04) 66%);
}
.hero h1 { color: var(--ivory); max-width: 17ch; }
.hero .lead { color: rgba(251,248,243,.9); max-width: 48ch; }
.hero .eyebrow { color: var(--gold-300); margin-bottom: var(--s-5); }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-7); flex-wrap: wrap; margin-top: var(--s-6);
}

/* — Figures ------------------------------------------------------------ */
.figure { position: relative; margin: 0; }
/* --focal lets a tall crop keep faces in frame instead of centring on torsos. */
.figure img { width: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.figure figcaption {
  margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--muted);
  line-height: 1.5; max-width: 44ch;
}
.on-dark .figure figcaption { color: var(--on-dark-mute); }
.figure-tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--gold-400); color: var(--plum-900);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: .6rem 1.1rem;
}
.ratio-4-3 { aspect-ratio: 4/3; } .ratio-3-2 { aspect-ratio: 3/2; }
.ratio-1-1 { aspect-ratio: 1/1; }  .ratio-3-4 { aspect-ratio: 3/4; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3 img, .ratio-3-2 img, .ratio-1-1 img, .ratio-3-4 img, .ratio-16-9 img { width: 100%; height: 100%; }

/* — Fact strip --------------------------------------------------------- */
.factbar { border-top: 1px solid var(--line-dark); }
.factbar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line-dark);
}
.factbar-item { padding: var(--s-6) var(--s-5); border-right: 1px solid var(--line-dark); }
.factbar-num {
  font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 300; line-height: 1; color: var(--gold-300); letter-spacing: -.02em;
}
.factbar-label {
  margin-top: var(--s-3); font-size: var(--fs-xs); line-height: 1.5;
  letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mute);
  overflow-wrap: anywhere;
}

/* — Stats -------------------------------------------------------------- */
.stat { border-top: 1px solid var(--line-dark); padding-top: var(--s-5); }
.stat-num {
  font-family: var(--serif); font-size: clamp(3.2rem, 6.4vw, 5.4rem);
  font-weight: 300; line-height: .95; letter-spacing: -.035em; color: var(--gold-400);
  display: block;
}
.stat-label { margin-top: var(--s-4); font-size: var(--fs-sm); line-height: 1.5; color: var(--on-dark-soft); max-width: 22ch; }
.stat--light { border-top-color: var(--line); }
.stat--light .stat-num { color: var(--plum-600); }
.stat--light .stat-label { color: var(--body); }

/* — Programme cards ---------------------------------------------------- */
.prog-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
  height: 100%;
}
.prog-card:hover {
  border-color: var(--plum-100); transform: translateY(-3px);
  box-shadow: 0 18px 42px -26px rgba(30,12,36,.4);
}
.prog-card-media { overflow: hidden; aspect-ratio: 3/2; }
.prog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.prog-card:hover .prog-card-media img { transform: scale(1.035); }
.prog-card-body { padding: var(--s-6) var(--s-5) var(--s-5); display: flex; flex-direction: column; flex: 1; gap: var(--s-3); }
.prog-card-index {
  font-family: var(--serif); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .18em; color: var(--gold-700);
}
.prog-card h3 { font-size: 1.32rem; color: var(--ink); }
.prog-card p { font-size: var(--fs-sm); line-height: 1.62; color: var(--body); flex: 1; }
.prog-card .link-arrow { align-self: flex-start; margin-top: var(--s-2); }

/* — Plain card / pillar ------------------------------------------------ */
.pillar { border-top: 2px solid var(--plum-600); padding-top: var(--s-5); }
.pillar h3 { font-size: 1.3rem; margin-bottom: var(--s-3); }
.pillar p { font-size: var(--fs-sm); line-height: 1.66; }
.pillar-num {
  font-family: var(--serif); font-size: var(--fs-xs); letter-spacing: .18em;
  color: var(--gold-700); display: block; margin-bottom: var(--s-3);
}
.on-dark .pillar { border-top-color: var(--gold-400); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.5rem); height: 100%;
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { border-color: var(--plum-100); box-shadow: 0 18px 42px -30px rgba(30,12,36,.35); }
.card h3:not([class]) { font-size: 1.3rem; }
.card p { font-size: var(--fs-sm); line-height: 1.66; flex: 1; }
.card .link-arrow { align-self: flex-start; }
.card-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--gold-700); flex: none;
}
.card-icon svg { width: 19px; height: 19px; }
.on-dark .card { background: rgba(251,248,243,.045); border-color: var(--line-dark); }
.on-dark .card p { color: var(--on-dark-soft); }
.on-dark .card-icon { border-color: var(--line-dark); color: var(--gold-300); }

/* — Split (image + text) ----------------------------------------------- */
.split {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.split--reverse > .split-media { order: 2; }
.split-body { max-width: 34rem; }
/* Let the photograph carry the full height of the row rather than float inside it. */
.split--stretch { align-items: stretch; }
.split--stretch .split-media { display: flex; }
.split--stretch .figure {
  flex: 1; display: flex; flex-direction: column;   /* column, so a caption stacks under the photo */
  min-height: 26rem; aspect-ratio: auto;
}
.split--stretch .figure img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.split--top { align-items: start; }

/* — Pull quote --------------------------------------------------------- */
.quote { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.quote blockquote {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 300; font-style: italic; line-height: 1.34;
  letter-spacing: -.012em; color: var(--ink);
}
.on-dark .quote blockquote { color: var(--on-dark); }
.quote-attrib { margin-top: var(--s-5); font-size: var(--fs-sm); font-style: normal; color: var(--muted); }
.on-dark .quote-attrib { color: var(--on-dark-mute); }
.quote-attrib strong { display: block; color: var(--ink); font-weight: 600; }
.on-dark .quote-attrib strong { color: var(--on-dark); }

/* — Timeline ----------------------------------------------------------- */
.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid; grid-template-columns: 150px 1fr; gap: var(--s-6);
  padding-block: var(--s-6); border-bottom: 1px solid var(--line);
}
.timeline-year {
  font-family: var(--serif); font-size: 1.15rem; color: var(--gold-700); letter-spacing: .06em;
}
.timeline-item h3 { font-size: 1.22rem; margin-bottom: var(--s-2); }
.timeline-item p { font-size: var(--fs-sm); line-height: 1.66; max-width: 52ch; }

/* — Accordion ---------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5);
  padding-block: var(--s-5); cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.16rem; color: var(--ink); line-height: 1.35;
  transition: color .3s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--plum-600); }
.accordion summary::after {
  content: "+"; flex: none; font-family: var(--sans); font-size: 1.3rem; font-weight: 300;
  color: var(--gold-600); line-height: 1; transition: transform .35s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion-body { padding-bottom: var(--s-6); max-width: 62ch; font-size: var(--fs-sm); line-height: 1.7; }

/* — Ticked list -------------------------------------------------------- */
.ticks li {
  position: relative; padding-left: 1.65rem; font-size: var(--fs-sm); line-height: 1.62;
}
.ticks li + li { margin-top: var(--s-3); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px; background: var(--gold-500); transform: rotate(45deg);
}
.on-dark .ticks li::before { background: var(--gold-400); }

/* — Meta table --------------------------------------------------------- */
.meta-list { border-top: 1px solid var(--line); }
.meta-list div {
  display: flex; gap: var(--s-5); justify-content: space-between;
  padding-block: var(--s-3); border-bottom: 1px solid var(--line); font-size: var(--fs-sm);
}
.meta-list dt { color: var(--muted); flex: none; }
.meta-list dd { text-align: right; color: var(--ink); font-weight: 500; }
.on-dark .meta-list, .on-dark .meta-list div { border-color: var(--line-dark); }
.on-dark .meta-list dt { color: var(--on-dark-mute); }
.on-dark .meta-list dd { color: var(--on-dark); }

/* — Footer ------------------------------------------------------------- */
.site-footer { background: var(--plum-950); color: var(--on-dark-soft); }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-8); padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand img { width: 46px; margin-bottom: var(--s-4); }
.footer-brand p { font-size: var(--fs-sm); line-height: 1.66; color: var(--on-dark-mute); max-width: 34ch; }
.footer-col h2 {
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  line-height: 1.22; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: var(--s-4);
  overflow-wrap: anywhere;
}
.footer-col a, .footer-col p { display: block; font-size: var(--fs-sm); color: var(--on-dark-soft); text-decoration: none; line-height: 1.9; overflow-wrap: anywhere; }
.footer-col a { transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap;
  padding-block: var(--s-6); font-size: var(--fs-xs); color: var(--on-dark-mute);
}
.footer-bottom a { color: var(--on-dark-mute); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-300); }
.footer-legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* 7 ── FORMS ──────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field--full { grid-column: 1 / -1; }
.field > label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field > label.form-consent { font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; background: var(--paper);
  border: 1px solid var(--line-field); color: var(--ink); font-size: var(--fs-sm);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--plum-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--plum-600) 13%, transparent);
}
.field-note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.form-consent { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); }
.form-consent input { width: 17px; height: 17px; flex: none; margin-top: 3px; accent-color: var(--plum-600); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* The Get involved form sits on a plum ground, where --muted fails contrast.
   Status colours live here rather than inline in JS so both themes can be set. */
.on-dark .field > label,
.on-dark .field-note,
.on-dark .form-consent { color: var(--on-dark-soft); }
.on-dark .field input,
.on-dark .field select,
.on-dark .field textarea { border-color: rgba(239, 225, 196, .42); }
.on-dark .field input:not([type="checkbox"]):focus,
.on-dark .field select:focus,
.on-dark .field textarea:focus {
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(226, 196, 137, .22);
}
.on-dark .form-consent input { accent-color: var(--gold-400); }

.form-status { font-size: var(--fs-sm); }
.form-status--ok { color: var(--plum-600); }
.form-status--error { color: #A3282F; }
.on-dark .form-status { color: var(--on-dark-soft); }
.on-dark .form-status--ok { color: var(--gold-300); }
.on-dark .form-status--error { color: #F1A7A2; }

/* 8 ── MOTION ─────────────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 9 ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); }
  .footer-brand { grid-column: 1 / -1; }
  .quote { grid-template-columns: 200px 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  /* backdrop-filter would make the header a containing block for the fixed nav,
     trapping the panel inside the 66px bar. The mobile bar is opaque anyway. */
  .site-header, .site-header.is-stuck {
    background: var(--ivory);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  /* The slide-down panel only exists when JS can open it. Without JS the toggle is
     inert, so the nav stays in flow and remains usable. */
  .js .nav-toggle { display: flex; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 90;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0; padding: var(--s-7) var(--gutter) var(--s-9);
    background: var(--ivory); border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    /* visibility, not just opacity — otherwise the closed panel's links stay
       focusable and a keyboard user tabs into an invisible menu. */
    visibility: hidden;
    overflow-y: auto;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .js .nav-open .site-nav {
    opacity: 1; transform: none; pointer-events: auto;
    visibility: visible; transition-delay: 0s;
  }
  .no-js .site-nav { flex-wrap: wrap; gap: var(--s-4) var(--s-5); padding-bottom: var(--s-4); }
  .no-js .header-inner { flex-wrap: wrap; }
  .site-nav a:not(.btn) {
    width: 100%; padding: var(--s-4) 0; font-family: var(--serif);
    font-size: 1.6rem; font-weight: 400; border-bottom: 1px solid var(--line);
  }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: var(--s-6) 0 0; width: 100%; }
  .nav-open { overflow: hidden; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > .split-media { order: 0; }
  .split-body { max-width: none; }
  .quote { grid-template-columns: 1fr; gap: var(--s-6); }
  .quote-media { max-width: 240px; }
  .factbar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { min-height: min(78vh, 640px); }
}

@media (max-width: 620px) {
  :root { --fs-body: 1.02rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: var(--s-2); }
  .btn { width: 100%; }
  .btn-row { width: 100%; }
  .hero-foot { gap: var(--s-5); }
  .meta-list div { flex-direction: column; gap: var(--s-1); }
  .meta-list dd { text-align: left; }
  .section-head { align-items: flex-start; }
}

/* Small phones: two-up grids leave columns narrower than a single tracked word. */
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--s-6); }
  .factbar-grid { grid-template-columns: 1fr; }
  .factbar-item { padding-inline: var(--s-4); }
  .footer-col h2 { letter-spacing: .14em; }
}

@media print {
  .site-header, .site-nav, .nav-toggle, .hero-media, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  /* Every dark band would otherwise print light-on-white and vanish. */
  .band-plum, .band-plum-deep, .band-sand, .band-paper, .site-footer,
  .on-dark, .on-dark *, .site-footer * {
    background: #fff !important; color: #000 !important;
  }
  .hero, .hero * { background: #fff !important; color: #000 !important; }
  .figure-tag { border: 1px solid #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
