/* ==========================================================================
   Somali Youth League — site stylesheet
   Direction: a national campaign poster. Archivo (heavy, condensed for the big
   lines), paper + ink, the SYL emblem's red and blue, and the Somali flag as the
   one recurring graphic. Square corners everywhere.
   ========================================================================== */

:root {
  /* Colour roles */
  --paper: #f6f7f9;
  --paper-2: #e9ecf1;
  --paper-3: #dde2ea;
  --ink: #0d1828;
  --ink-soft: #46536a;
  --red: #cf141b;          /* emblem red, deepened for white text (5.6:1) */
  --red-press: #a80f15;
  --blue: #1d5cb4;         /* emblem blue, deepened for white text (6.1:1) */
  --blue-brand: #4489db;   /* the emblem's own blue, for large shapes only */
  --blue-pale: #dbe8f8;
  --night: #0a1a33;
  --on-dark: #ffffff;
  --on-dark-soft: #b9c6da;
  --ok: #157347;
  --error: #b3121a;

  /* Type */
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.125rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 1.2rem + 6.6vw, 8rem);

  /* Space and frame */
  --m: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(16px, 1.8vw, 24px);
  --section: clamp(96px, 12vw, 200px);
  --axis: 42%;
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 700ms;
}

/* ---------- Reset ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--blue-brand); outline-offset: 3px; }
.on-blue :focus-visible, .on-red :focus-visible { outline-color: #fff; }

h1, h2, h3 {
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Frame ---------- */
.wrap { padding-inline: var(--m); }
.g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
/* The axis: headings begin at 42% of the page, body hangs from it. */
.axis {
  display: grid;
  grid-template-columns: calc(var(--axis) - var(--m)) minmax(0, 1fr);
  column-gap: var(--gutter);
}
.axis > .axis__side { grid-column: 1; }
.axis > .axis__main { grid-column: 2; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(72px, 8vw, 120px); }

.on-blue { background: var(--blue); color: var(--on-dark); }
.on-red { background: var(--red); color: var(--on-dark); }
.on-ink { background: var(--ink); color: var(--on-dark); }
.on-night { background: var(--night); color: var(--on-dark); }
.on-paper-2 { background: var(--paper-2); }

.soft { color: var(--ink-soft); }
.on-blue .soft, .on-red .soft, .on-ink .soft, .on-night .soft { color: var(--on-dark-soft); }
.on-red .soft { color: #ffeeee; }
.on-blue .soft { color: #d4e3f7; }

.h-display { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.035em; }
.h-head { font-size: var(--step-head); }
.h-sub { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); line-height: 1.5; }
.measure { max-width: 38ch; }
.measure-wide { max-width: 62ch; }
.tabular { font-variant-numeric: tabular-nums lining-nums; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; font-size: var(--step-lead); line-height: 1.2; }
.prose ul { display: grid; gap: 0.5em; }
.prose ul li { padding-left: 1.2em; position: relative; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  width: 0.45em; height: 0.45em; background: var(--red);
}
.on-blue .prose ul li::before, .on-red .prose ul li::before { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff; --bg-hover: var(--red-press);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 0; border-radius: 0;
  font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ink { --bg: var(--ink); --bg-hover: #1f2d44; }
.btn--paper { --bg: #fff; --fg: var(--ink); --bg-hover: var(--paper-2); }
.btn--quiet { --bg: var(--paper-2); --fg: var(--ink); --bg-hover: var(--paper-3); }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 1.125rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.link-arrow {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; text-decoration: none;
  padding-bottom: 3px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0.25); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: scaleX(1); }
.link-arrow .arrow { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--m);
  color: var(--ink);
  background: var(--paper);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.site-header.is-over { background: transparent; color: #fff; }
.site-header.is-over.is-solid { background: var(--paper); color: var(--ink); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.1;
}
.brand img { width: 44px; height: 44px; }
.brand small { display: block; font-weight: 400; font-size: 0.875rem; opacity: 0.8; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav__links { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav__links a { position: relative; text-decoration: none; font-size: 1rem; padding: 10px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle {
  display: none;
  min-height: 44px; min-width: 44px; padding: 0 4px;
  background: none; border: 0; font-weight: 600; font-size: 1rem;
}
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav .btn { min-height: 44px; padding: 0 16px; font-size: 1rem; }
}
@media (max-width: 520px) {
  .brand span.brand__name { display: none; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--night); color: #fff;
  display: grid; grid-template-rows: var(--header-h) 1fr auto;
  padding-inline: var(--m); padding-bottom: 32px;
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity var(--dur) var(--ease-out); }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__close { background: none; border: 0; color: #fff; font-weight: 600; min-height: 44px; min-width: 44px; font-size: 1rem; }
.menu__links { align-self: center; display: grid; gap: 6px; }
.menu__links a {
  font-size: clamp(2rem, 9vw, 3.25rem); line-height: 1.15; letter-spacing: -0.02em;
  text-decoration: none; font-weight: 500;
  transform: translateY(16px); opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links li:nth-child(2) a { transition-delay: 40ms; }
.menu.is-open .menu__links li:nth-child(3) a { transition-delay: 80ms; }
.menu.is-open .menu__links li:nth-child(4) a { transition-delay: 120ms; }
.menu.is-open .menu__links li:nth-child(5) a { transition-delay: 160ms; }
.menu.is-open .menu__links li:nth-child(6) a { transition-delay: 200ms; }
.menu__links a[aria-current="page"] { color: var(--blue-brand); }

/* ---------- Home hero: a view with two cards in the corner ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  color: #fff; background: var(--night);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
  opacity: 0; transition: opacity 1600ms var(--ease-in-out);
  transform: scale(1.04);
}
.hero__media img.is-on { opacity: 1; animation: drift 9s linear both; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1); } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  /* taste-skill-ignore: neutral legibility scrim over the photograph */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.12) 66%, rgba(0, 0, 0, 0.2) 100%); /* taste-skill-ignore */
}
.hero__body {
  position: absolute; left: var(--m); top: 50%; transform: translateY(-50%);
  width: min(46rem, 52vw);
}
.hero__title { font-size: clamp(3.25rem, 1rem + 6vw, 7.5rem); line-height: 0.96; letter-spacing: -0.035em; }
.hero__sentence { margin-top: 32px; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__actions .link-arrow { color: #fff; min-height: 44px; }
.hero__pin {
  position: absolute; left: 57%; top: 60%;
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; line-height: 1.3; max-width: 24ch;
  transition: opacity 900ms var(--ease-in-out);
}
.hero__pin::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--red); border-radius: 50%; border: 4px solid #fff; box-sizing: content-box; }
.hero__pin.is-off { opacity: 0; }
.hero__cards {
  position: absolute; right: var(--m); bottom: var(--m);
  display: grid; grid-template-columns: repeat(2, 230px); gap: 16px;
}
.card-next {
  display: block; text-decoration: none; color: var(--ink); background: var(--paper);
  transition: transform var(--dur) var(--ease-out);
}
.card-next:hover { transform: translateY(-4px); }
.card-next__img { aspect-ratio: 3 / 2; overflow: hidden; }
.card-next__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.card-next:hover .card-next__img img { transform: scale(1.05); }
.card-next__bar {
  height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-inline: 14px; font-size: 1rem; font-weight: 600; line-height: 1.15;
}
.card-next .arrow { transition: transform var(--dur) var(--ease-out); }
.card-next:hover .arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .hero { min-height: max(720px, 100svh); }
  .hero__media img { object-position: 52% 30%; }
  .hero__scrim {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.66) 48%, rgba(0, 0, 0, 0.25) 100%); /* taste-skill-ignore */
  }
  .hero__body { top: auto; bottom: calc(var(--m) + 210px); transform: none; width: auto; right: var(--m); }
  .hero__title { font-size: clamp(2.875rem, 12vw, 5rem); }
  .hero__sentence { margin-top: 20px; font-size: 1.125rem; }
  .hero__actions { margin-top: 24px; }
  .hero__pin { display: none; }
  .hero__cards { left: var(--m); right: var(--m); grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-next__bar { height: 44px; font-size: 1rem; padding-inline: 10px; }
}
@media (max-width: 420px) {
  .hero__body { bottom: calc(var(--m) + 170px); }
  .card-next__img { aspect-ratio: 16 / 9; }
}

/* ---------- Page masthead (inner pages): image band, title on the axis ---------- */
.masthead { padding-top: var(--header-h); }
.masthead__band {
  display: grid; grid-template-columns: repeat(6, 1fr);
  height: clamp(220px, 42svh, 460px);
}
.masthead__band > * { overflow: hidden; min-width: 0; }
.masthead__band img { width: 100%; height: 100%; object-fit: cover; }
.masthead__band .tile-red { background: var(--red); }
.masthead__band .tile-blue { background: var(--blue-brand); }
.masthead__band .tile-night { background: var(--night); }
.masthead__band .span-2 { grid-column: span 2; }
.masthead__band .span-3 { grid-column: span 3; }
.masthead__band .span-4 { grid-column: span 4; }
.masthead__body { padding-block: clamp(48px, 6vw, 96px) clamp(64px, 8vw, 128px); }
.masthead__title { font-size: clamp(2.75rem, 1rem + 5.4vw, 7rem); line-height: 1; letter-spacing: -0.035em; }
.masthead__stand { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.masthead__side { padding-top: 0.6em; }
@media (max-width: 760px) {
  .masthead__band { grid-template-columns: repeat(3, 1fr); height: 34svh; min-height: 220px; }
  .masthead__band .hide-sm { display: none; }
  .masthead__band .span-2, .masthead__band .span-3, .masthead__band .span-4 { grid-column: span 1; }
  .masthead__band .span-sm-2 { grid-column: span 2; }
  .masthead__band .span-sm-3 { grid-column: span 3; }
}

/* ---------- Intro: lead line over four columns ---------- */
.intro__lead { grid-column: 1 / -1; font-size: clamp(1.375rem, 0.9rem + 1.3vw, 2rem); line-height: 1.3; letter-spacing: -0.01em; max-width: 60ch; }
.intro__lead strong { font-weight: 500; }
.intro__cols { grid-column: 1 / -1; margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.intro__cols p { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.intro__cols p b { color: var(--ink); font-weight: 600; }
.intro__cols a { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .intro__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; margin-top: 48px; }
}
@media (max-width: 560px) {
  .intro__cols { grid-template-columns: 1fr; row-gap: 28px; }
}

/* ---------- About: side facts, wide paragraph ---------- */
.facts-row { display: grid; grid-template-columns: calc(34% - var(--m)) minmax(0, 1fr); column-gap: var(--gutter); }
.facts { display: grid; gap: 20px; align-content: start; max-width: 220px; }
.facts dt { font-size: var(--step-small); color: var(--ink-soft); }
.facts dd { font-size: 1.125rem; line-height: 1.35; font-weight: 500; }
.facts-para { font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem); line-height: 1.4; max-width: 46ch; }
.record { margin-top: 120px; }
.record__word { font-size: 1.125rem; font-weight: 600; padding-top: 4px; }
.record__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); column-gap: 64px; row-gap: 48px; }
.record__lists h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; }
.record__lists li { display: flex; justify-content: space-between; gap: 16px; font-size: 1rem; line-height: 1.4; padding-block: 6px; }
.record__lists li span:last-child { color: var(--ink-soft); font-variant-numeric: tabular-nums; flex: none; }
@media (max-width: 860px) {
  .facts-row { grid-template-columns: 1fr; row-gap: 32px; }
  .facts { grid-template-columns: 1fr 1fr; max-width: none; order: 2; }
  .facts-para { order: 1; }
  .record { margin-top: 72px; }
  .record__lists { grid-template-columns: 1fr; }
}

/* ---------- Features: rows with margin photographs ---------- */
.promises__head {
  min-height: 60svh; display: grid; align-content: center;
}
.promises__head h2 { grid-column: 2; font-size: clamp(2.5rem, 1rem + 4.6vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; max-width: 12ch; }
.promises__head p { grid-column: 2; margin-top: 28px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; }
.promise {
  display: grid;
  grid-template-columns: calc(var(--axis) - var(--m)) minmax(0, 1fr) auto;
  column-gap: var(--gutter);
  align-items: start;
  padding-block: clamp(48px, 6vw, 60px);
}
.promise__text { grid-column: 2; max-width: 40ch; }
.promise__text h3 { font-size: clamp(1.75rem, 1rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; }
.promise__text p { margin-top: 18px; font-size: 1.125rem; line-height: 1.6; }
.promise__img { grid-column: 3; overflow: hidden; }
.promise__img img { width: 100%; height: 100%; object-fit: cover; }
.promise:nth-child(3n+1) .promise__img { width: 280px; aspect-ratio: 4 / 5; }
.promise:nth-child(3n+2) .promise__img { width: 360px; aspect-ratio: 3 / 2; }
.promise:nth-child(3n) .promise__img { width: 220px; aspect-ratio: 1; }
.promises__more { padding-top: clamp(32px, 4vw, 56px); }
.promises__more > div { grid-column: 2; }
@media (max-width: 860px) {
  .promises__head { min-height: 44svh; }
  .promises__head h2, .promises__head p, .promises__more > div { grid-column: 1 / -1; }
  .promise { grid-template-columns: 1fr; row-gap: 24px; padding-block: 32px; }
  .promise__text, .promise__img { grid-column: 1; }
  .promise:nth-child(3n+1) .promise__img { width: 100%; aspect-ratio: 3 / 2; }
  .promise:nth-child(3n+2) .promise__img { width: 72%; justify-self: end; }
  .promise:nth-child(3n) .promise__img { width: 56%; }
}

/* ---------- Gallery: dense masonry sheet ---------- */
.sheet__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-bottom: 64px; align-items: end; }
.sheet__head h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.sheet__head p { grid-column: 8 / -1; font-size: 1.25rem; line-height: 1.45; max-width: 34ch; }
.masonry { columns: 5 220px; column-gap: 6px; padding-inline: var(--m); }
.masonry figure { break-inside: avoid; margin: 0 0 16px; }
.masonry a { display: block; overflow: hidden; background: var(--paper-2); }
.masonry img { width: 100%; transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) var(--ease-out); }
.masonry a:hover img { transform: scale(1.04); }
.masonry figcaption { margin-top: 6px; font-size: var(--step-small); line-height: 1.35; color: var(--ink-soft); }
.masonry figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .sheet__head { grid-template-columns: 1fr; row-gap: 20px; margin-bottom: 40px; }
  .sheet__head h2, .sheet__head p { grid-column: 1; }
  .masonry { columns: 2; column-gap: 6px; }
}

/* ---------- Stats: column aligned like a ledger ---------- */
.ledger { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.ledger__head { grid-column: 1 / 6; }
.ledger__head h2 { font-size: clamp(2rem, 1rem + 2.6vw, 3.25rem); line-height: 1.05; }
.ledger__head h2 span { display: block; }
.ledger__head p { margin-top: 24px; max-width: 34ch; }
.ledger__rows { grid-column: 7 / -1; display: grid; gap: 22px; }
.ledger__row { display: grid; grid-template-columns: calc(clamp(4rem, 1rem + 6vw, 7rem) * 1.3) minmax(0, 1fr); column-gap: 28px; align-items: baseline; }
.ledger__fig { font-size: clamp(4rem, 1rem + 6vw, 7rem); line-height: 1; letter-spacing: -0.04em; text-align: right; font-variant-numeric: tabular-nums lining-nums; font-weight: 500; }
.ledger__cap { font-size: 1.125rem; line-height: 1.4; max-width: 36ch; }
@media (max-width: 860px) {
  .ledger { grid-template-columns: 1fr; row-gap: 48px; }
  .ledger__head, .ledger__rows { grid-column: 1; }
}
@media (max-width: 600px) {
  .ledger__row { grid-template-columns: 1fr; row-gap: 4px; }
  .ledger__fig { text-align: left; font-size: clamp(3.5rem, 16vw, 5rem); }
}

/* ---------- CTA: the idea again, inverted ---------- */
.close {
  min-height: 78svh; display: grid; grid-template-rows: 1fr auto;
  padding-block: clamp(80px, 10vw, 140px) 40px;
}
.close h2 { font-size: clamp(3.25rem, 1rem + 8vw, 10rem); line-height: 0.92; letter-spacing: -0.04em; max-width: 11ch; }
.close__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-top: 64px; }
.close__foot p { font-size: 1.25rem; line-height: 1.45; max-width: 40ch; }
.close__left { grid-column: 1 / 7; display: grid; gap: 20px; }
.close__right { grid-column: 8 / -1; display: grid; gap: 20px; justify-items: end; min-width: 0; }
.close__right .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 900px) {
  .close { min-height: 72svh; }
  .close__foot { grid-template-columns: 1fr; row-gap: 28px; }
  .close__left, .close__right { grid-column: 1; justify-items: stretch; }
  .close__right .member-card { justify-self: start; }
}

/* ---------- Footer: columns above, wordmark below ---------- */
.site-footer {
  position: relative;
  background: var(--night); color: var(--on-dark);
  min-height: min(100svh, 860px);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 56px var(--m) 24px;
}
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.footer__cols h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer__cols li, .footer__cols p { font-size: 1rem; line-height: 1.7; color: var(--on-dark-soft); }
.footer__cols a { text-decoration: none; color: var(--on-dark-soft); transition: color var(--dur-fast); }
.footer__cols a:hover { color: #fff; text-decoration: underline; }
.footer__mark { align-self: end; margin-top: 64px; }
.footer__mark svg { width: 100%; height: auto; fill: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; font-size: var(--step-small); color: var(--on-dark-soft); }
.footer__legal a { color: var(--on-dark-soft); }
@media (max-width: 760px) {
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .site-footer { min-height: auto; }
}

/* ---------- Generic editorial rows ---------- */
.chapter { padding-block: clamp(56px, 7vw, 104px); }
.chapter + .chapter { padding-top: 0; }
.chapter__title { font-size: var(--step-head); max-width: 14ch; }
.chapter__year { font-size: clamp(3rem, 1rem + 5vw, 6rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; color: var(--red); font-weight: 500; }
.on-blue .chapter__year, .on-red .chapter__year { color: #fff; }
.chapter__body { max-width: 40ch; }
.chapter__body > * + * { margin-top: 1em; }
.chapter__body h3 { font-size: clamp(1.5rem, 1rem + 1.3vw, 2.25rem); line-height: 1.1; }
@media (max-width: 860px) {
  .axis { grid-template-columns: 1fr; row-gap: 20px; }
  .axis > .axis__side, .axis > .axis__main { grid-column: 1; }
  .axis > .axis__side.small { order: 2; }
  .chapter__body { max-width: 62ch; }
}

/* Full-bleed picture with caption */
.plate { margin: 0; }
.plate img { width: 100%; height: clamp(320px, 70svh, 760px); object-fit: cover; }
.plate figcaption { padding: 12px var(--m) 0; font-size: var(--step-small); color: var(--ink-soft); max-width: 70ch; }

/* Two-up pictures */
.pair { display: grid; grid-template-columns: 5fr 7fr; gap: 6px; }
.pair img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.pair figure:first-child img { aspect-ratio: 4 / 5; }
.pair figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } .pair figure:first-child img { aspect-ratio: 4 / 3; } }

/* Mosaic page (colour tiles butted against photographs) */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(140px, 17vw, 280px); margin-inline: var(--m); }
.mosaic > * { overflow: hidden; min-width: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .c2 { grid-column: span 2; } .mosaic .c3 { grid-column: span 3; } .mosaic .c4 { grid-column: span 4; }
.mosaic .r2 { grid-row: span 2; }
.mosaic .tile { display: grid; align-content: end; padding: clamp(16px, 2vw, 28px); }
.mosaic .tile p { font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.625rem); line-height: 1.3; max-width: 22ch; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mosaic .c2, .mosaic .c3, .mosaic .c4 { grid-column: span 2; }
  .mosaic .sm-1 { grid-column: span 1; }
}

/* Emblem explainer */
.emblem { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.emblem__img { max-width: 520px; width: 100%; justify-self: center; }
.emblem__img img { width: 100%; animation: turn 60s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.emblem__list { display: grid; gap: 28px; }
.emblem__list h3 { font-size: clamp(1.375rem, 1rem + 1vw, 2rem); line-height: 1.1; }
.emblem__list p { margin-top: 8px; max-width: 46ch; }
@media (max-width: 860px) { .emblem { grid-template-columns: 1fr; } .emblem__img { max-width: 300px; } }

/* Founder page portrait */
.portrait-hero { padding-top: var(--header-h); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100svh; }
.portrait-hero__img { position: relative; overflow: hidden; background: var(--night); }
.portrait-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; position: absolute; inset: 0; }
.portrait-hero__body { padding: clamp(40px, 6vw, 96px) var(--m); display: grid; align-content: center; }
.portrait-hero__body h1 { font-size: clamp(2.75rem, 1rem + 4.6vw, 6.25rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 11ch; }
.portrait-hero__role { margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.portrait-hero__facts { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); max-width: 640px; }
.portrait-hero__facts dt { font-size: var(--step-small); }
.portrait-hero__facts dd { font-size: 1.125rem; font-weight: 500; line-height: 1.3; margin-top: 4px; }
@media (max-width: 860px) {
  .portrait-hero { grid-template-columns: 1fr; min-height: auto; }
  .portrait-hero__img { aspect-ratio: 4 / 5; max-height: 76svh; }
  .portrait-hero__facts { grid-template-columns: 1fr 1fr; }
}

/* Pledge band */
.pledge { font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); line-height: 1.3; max-width: 44ch; font-weight: 400; letter-spacing: -0.01em; }

/* Programme chapters */
.programme-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; align-self: start; }
.programme-nav a { text-decoration: none; font-size: 1rem; padding: 6px 0 6px 16px; color: var(--ink-soft); position: relative; transition: color var(--dur-fast); }
.programme-nav a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; background: var(--paper-3); transform: translateY(-50%); transition: background-color var(--dur-fast), width var(--dur) var(--ease-out); }
.programme-nav a:hover, .programme-nav a.is-active { color: var(--ink); }
.programme-nav a.is-active::before { background: var(--red); width: 10px; }
.policy { padding-bottom: clamp(64px, 8vw, 120px); scroll-margin-top: calc(var(--header-h) + 24px); }
.policy h2 { font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); max-width: 16ch; }
.policy__intro { margin-top: 20px; font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.policy__list { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gutter); max-width: 900px; }
.policy__list li { padding-top: 18px; position: relative; }
.policy__list li::before { content: ""; position: absolute; left: 0; top: 0; width: 32px; height: 4px; background: var(--red); }
.on-blue .policy__list li::before, .on-red .policy__list li::before, .on-ink .policy__list li::before { background: #fff; }
.on-blue .policy__list span, .on-red .policy__list span, .on-ink .policy__list span { color: var(--on-dark-soft); }
.on-blue .policy__list span { color: #d4e3f7; }
.policy__list b { display: block; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.policy__list span { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; display: block; }
.policy__img { margin-top: 40px; max-width: 900px; }
.policy__img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 860px) {
  .programme-nav { display: none; }
  .policy__list { grid-template-columns: 1fr; }
}

/* Campaign gallery with filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  min-height: 44px; padding: 0 18px; border: 0; background: var(--paper-2); color: var(--ink);
  font-size: 1rem; transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.filter:hover { background: var(--paper-3); }
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; }
.grid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.grid-photos figure { margin: 0; }
.grid-photos figure[hidden] { display: none; }
.grid-photos a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.grid-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.grid-photos a:hover img { transform: scale(1.05); }
.grid-photos figcaption { padding: 8px 0 14px; font-size: var(--step-small); color: var(--ink-soft); }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: auto; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; background: rgba(6, 12, 22, 0.96); color: #fff; }
.lightbox::backdrop { background: rgba(6, 12, 22, 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in var(--dur) var(--ease-out); }
.lightbox__top { display: flex; justify-content: flex-end; padding: 12px var(--m); gap: 8px; }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--m); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--m) 24px; }
.lightbox__foot p { font-size: 1rem; }
.lightbox button { background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; min-height: 44px; min-width: 44px; padding: 0 16px; font-weight: 600; transition: background-color var(--dur-fast); }
.lightbox button:hover { background: rgba(255, 255, 255, 0.24); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* FAQ */
.faq { display: grid; gap: 6px; max-width: 860px; }
.faq details { background: var(--paper-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 1.125rem; line-height: 1.3; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform var(--dur) var(--ease-out); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; max-width: 64ch; color: var(--ink); }
.faq details[open] > div { animation: rise var(--dur) var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Contact blocks */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); }
.contact-list { display: grid; gap: 32px; align-content: start; }
.contact-list h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.contact-list p, .contact-list a { font-size: 1.125rem; line-height: 1.55; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field > .label { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field .hint { font-size: 1rem; color: var(--ink-soft); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 12px 16px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--paper-3); border-radius: 0;
  font-size: 1.125rem; line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230d1828' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: #b9c3d2; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid rgba(68, 137, 219, 0.35); outline-offset: 0; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); background: #fff6f6; }
.field .error { display: none; color: var(--error); font-size: var(--step-small); font-weight: 600; line-height: 1.4; }
.field.has-error .error { display: block; animation: rise var(--dur-fast) var(--ease-out); }
.input-group { display: flex; }
.input-group .prefix {
  display: inline-flex; align-items: center; padding: 0 14px; background: var(--paper-2); border: 2px solid var(--paper-3); border-right: 0;
  font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--gutter); }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px var(--gutter); }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }

/* Choice chips (radio / checkbox) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices legend { font-weight: 600; font-size: 1rem; margin-bottom: 10px; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 18px;
  background: #fff; border: 2px solid var(--paper-3);
  font-size: 1rem; line-height: 1.25;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.choice span::before {
  content: ""; width: 16px; height: 16px; flex: none; border: 2px solid #9aa6b8; background: #fff;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:hover + span { border-color: #b9c3d2; }
.choice input:active + span { transform: scale(0.98); }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice input:checked + span::before { background: var(--red); border-color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--blue-brand); outline-offset: 2px; }
.choices.has-error .choice span { border-color: var(--error); }

.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 1rem; line-height: 1.5; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--red); cursor: pointer; }

/* ---------- Join page ---------- */
.join { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.join__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; }
@media (max-width: 1000px) {
  .join { grid-template-columns: 1fr; }
  .join__aside { position: static; order: -1; }
}
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 48px; }
.steps li { font-size: 1rem; line-height: 1.3; color: var(--ink-soft); padding-top: 14px; position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--paper-3); }
.steps li::after { content: ""; position: absolute; left: 0; top: 0; height: 6px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.steps li.is-done::after, .steps li.is-current::after { transform: scaleX(1); }
.steps li.is-current { color: var(--ink); font-weight: 600; }
.steps li.is-done { color: var(--ink); }
@media (max-width: 560px) { .steps li { font-size: 0.875rem; } }

.step { display: grid; gap: 28px; }
.step[hidden] { display: none; }
.step.is-entering { animation: step-in 420ms var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.step__title { font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); line-height: 1.1; }
.step__intro { margin-top: -12px; color: var(--ink-soft); max-width: 52ch; }
.step__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.step__nav .btn { min-width: 160px; }
@media (max-width: 480px) { .step__nav .btn { flex: 1; min-width: 0; } }

.error-summary { background: #fff1f1; padding: 18px 22px; display: none; }
.error-summary.is-shown { display: block; animation: rise var(--dur) var(--ease-out); }
.error-summary h2 { font-size: 1.125rem; font-weight: 600; color: var(--error); letter-spacing: 0; }
.error-summary ul { margin-top: 8px; display: grid; gap: 4px; font-size: 1rem; }
.error-summary a { color: var(--error); }

.upload { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.upload__preview { width: 88px; height: 110px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; color: var(--ink-soft); font-size: var(--step-small); text-align: center; }
.upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload label.btn { cursor: pointer; }
.upload input[type="file"]:focus-visible + label { outline: 3px solid var(--blue-brand); outline-offset: 3px; }

.review { display: grid; gap: 6px; }
.review section { background: #fff; padding: 20px 22px; }
.review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.review__head h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
.review__head button { background: none; border: 0; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 0.18em; min-height: 44px; padding: 0 4px; }
.review dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 16px; font-size: 1rem; line-height: 1.45; }
.review dt { color: var(--ink-soft); }
.review dd { word-break: break-word; }

/* The membership card — the live thing */
.member-card {
  position: relative; aspect-ratio: 1.586; width: 100%; max-width: 520px;
  color: #fff; background: var(--red); overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto; padding: clamp(16px, 2.4vw, 26px);
  container-type: inline-size;
}
.member-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: var(--blue-brand); z-index: -1; }
.member-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.member-card__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: clamp(0.8125rem, 3.4cqi, 1.125rem); line-height: 1.1; }
.member-card__brand img { width: clamp(30px, 10cqi, 48px); height: auto; }
.member-card__type { font-size: clamp(0.75rem, 2.8cqi, 0.875rem); text-align: right; line-height: 1.2; }
.member-card__mid { display: grid; grid-template-columns: auto 1fr; gap: clamp(12px, 4cqi, 20px); align-items: end; align-self: end; }
.member-card__photo { width: clamp(56px, 19cqi, 96px); aspect-ratio: 4 / 5; background: rgba(255, 255, 255, 0.92); color: var(--blue); display: grid; place-items: center; overflow: hidden; font-weight: 600; font-size: clamp(1.25rem, 7cqi, 2rem); }
.member-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.member-card__name { font-size: clamp(1.125rem, 6.4cqi, 2rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; overflow-wrap: anywhere; }
.member-card__place { margin-top: 4px; font-size: clamp(0.8125rem, 3.2cqi, 1rem); line-height: 1.3; }
.member-card__foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: clamp(10px, 3cqi, 18px); font-size: clamp(0.75rem, 2.8cqi, 0.9375rem); line-height: 1.25; }
.member-card__foot b { display: block; font-size: clamp(0.875rem, 3.6cqi, 1.125rem); font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0.02em; }
.member-card.is-bump { animation: bump 380ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.015); } }
.card-note { font-size: 1rem; color: var(--ink-soft); max-width: 46ch; }
.join__aside .member-card { max-width: none; }
.join__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.join__photo figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 1000px) { .join__photo { display: none; } }
.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; }
.strip img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } .strip figure:first-child { grid-column: 1 / -1; } }

/* Success screen */
.success { display: grid; gap: 28px; }
.success[hidden] { display: none; }
.success h2 { font-size: clamp(2.25rem, 1rem + 3.4vw, 4rem); line-height: 1.02; }
.success__id { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); font-variant-numeric: tabular-nums lining-nums; font-weight: 500; letter-spacing: 0.01em; }
.success__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.success ol { display: grid; gap: 14px; counter-reset: s; }
.success ol li { padding-left: 1.4em; position: relative; }
.success ol li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5em; height: 0.5em; background: var(--red); }

.notice { background: var(--blue-pale); padding: 18px 22px; font-size: 1rem; line-height: 1.5; }
.notice--ok { background: #e3f4ea; }
.notice--warn { background: #fff4d6; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }

/* Spinner inside buttons */
.btn .spin { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 700ms linear infinite; display: none; }
.btn.is-loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Admin ---------- */
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 24px; }
.admin-bar .field { min-width: 200px; }
.table-wrap { overflow-x: auto; background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
table.data th { font-weight: 600; background: var(--paper-2); position: sticky; top: 0; white-space: nowrap; }
table.data tr:hover td { background: #fafbfc; }
.tag { display: inline-block; padding: 3px 10px; font-size: 0.8125rem; font-weight: 600; background: var(--paper-2); }
.tag--new { background: var(--blue-pale); color: var(--blue); }
.tag--approved { background: #e3f4ea; color: var(--ok); }
.tag--rejected { background: #ffe6e6; color: var(--error); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; margin-bottom: 24px; }
.kpis div { background: #fff; padding: 18px 20px; }
.kpis b { display: block; font-size: 2rem; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpis span { font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- Motion: section entrances ---------- */
.js [data-reveal] > * { opacity: 0; transform: translateY(24px); }
.js [data-reveal].in > * {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal-img] { overflow: hidden; }
.js [data-reveal-img] img { transform: scale(1.12); opacity: 0; }
.js [data-reveal-img].in img { transform: none; opacity: 1; transition: transform 1200ms var(--ease-out), opacity 700ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] > *, .js [data-reveal-img] img { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
  .emblem__img img { animation: none; }
}

/* ---------- Print: the membership confirmation ---------- */
@media print {
  .site-header, .site-footer, .menu, .join__form-col .step, .steps, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .join { display: block; }
  .member-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Choice groups show their error under the chips */
.choices > .error { display: none; color: var(--error); font-size: var(--step-small); font-weight: 600; line-height: 1.4; margin-top: 4px; }
.choices.has-error > .error { display: block; }
.choices .opt { font-weight: 400; color: var(--ink-soft); }

/* Compact masthead for the application, so the form starts on the first screen */
.masthead--compact .masthead__band { height: clamp(120px, 18svh, 200px); }
.masthead--compact .masthead__body { padding-block: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 48px); }
.masthead--compact .masthead__title { font-size: clamp(2.5rem, 1rem + 3.8vw, 4.75rem); }
.masthead--compact .masthead__stand { margin-top: 16px; }
@media (max-width: 1000px) {
  .join__aside .member-card { max-width: 440px; }
  .join__aside { margin-bottom: 8px; }
}
