/* Januam design system — single entry point.
 *
 * The build inlines every local @import below into one fingerprinted file, so
 * the browser makes exactly one CSS request while the source stays split by
 * concern. Order matters: tokens first, utilities last.
 */

/* --- css/parts/_tokens.css (base) --- */
/* Design tokens.
 *
 * This is the file to replace when a new visual identity arrives: every colour,
 * space, radius and type step in the site resolves through these variables, so
 * re-theming never means touching a component.
 *
 * Palette: taken from the logo — the wave mark's cyan-to-blue gradient and the
 * navy wordmark. "Set free your flow." The cyan is the single highlight colour.
 */

:root {
  color-scheme: light dark;

  /* ---------------------------------------------------------- brand scale */
  /* Sampled from the logo: the mark runs from a clear cyan to a deep blue, the
   * wordmark is set in navy. brand-* follows the mark; accent-* is the cyan of
   * the tagline, used for highlights and the focus ring. */
  --brand-50:  #eaf6fc;
  --brand-100: #cfeaf8;
  --brand-200: #a3d8f2;
  --brand-300: #6cc2ea;
  --brand-400: #3aade4;
  --brand-500: #2290d0;
  --brand-600: #1e78c0;
  --brand-700: #2050a0;
  --brand-800: #1b4184;
  --brand-900: #142f60;
  --brand-950: #0b1f4d;   /* the deepest navy, for hero gradients */

  /* Warm accent: the one colour that is not blue. Reserved for the ask —
   * donate, sponsor, the "now" in a story — so it stays rare and legible. */
  --warm-50:  #fdf1e6;
  --warm-100: #fbdfc2;
  --warm-400: #f59b4a;
  --warm-500: #ee8329;
  --warm-600: #d26a17;
  --warm-700: #a9520f;

  --accent-50:  #e8f8fc;
  --accent-100: #c9eef8;
  --accent-200: #9be0f2;
  --accent-300: #62cde8;
  --accent-400: #33bbe0;
  --accent-500: #1aa8cc;
  --accent-600: #158aa8;
  --accent-700: #126e86;
  --accent-800: #0f5468;
  --accent-900: #0b3a48;

  /* Cool neutrals to sit with the blues; a warm grey would fight them. */
  --neutral-0:   #ffffff;
  --neutral-25:  #f9fbfd;
  --neutral-50:  #f2f6fa;
  --neutral-100: #e6edf3;
  --neutral-200: #d3dde6;
  --neutral-300: #b3c0cc;
  --neutral-400: #8494a3;
  --neutral-500: #63737f;
  --neutral-600: #4b5964;
  --neutral-700: #36434d;
  --neutral-800: #232d35;
  --neutral-900: #141c22;
  --neutral-950: #0c1116;

  --success-500: #2f855a;
  --success-300: #9fd9b5;   /* success as text on dark surfaces */
  --success-50:  #eaf6ef;
  --warning-500: #b7791f;
  --warning-50:  #fdf6e7;
  --danger-500:  #c53030;
  --danger-50:   #fdeeee;

  /* ------------------------------------------------- semantic assignments */
  --surface:          var(--neutral-0);
  --surface-sunken:   var(--neutral-50);
  --surface-raised:   var(--neutral-0);
  --surface-inverse:  var(--brand-900);
  --surface-brand:    var(--brand-700);
  --surface-accent:   var(--accent-50);

  --text:             var(--neutral-900);
  --text-muted:       var(--neutral-600);
  --text-subtle:      var(--neutral-500);
  --text-inverse:     var(--neutral-0);
  --text-on-brand:    var(--neutral-0);
  --text-link:        var(--brand-600);
  --text-link-hover:  var(--brand-800);

  --border:           var(--neutral-200);
  --border-strong:    var(--neutral-300);
  --border-subtle:    var(--neutral-100);
  --border-inverse:   color-mix(in oklab, var(--neutral-0) 22%, transparent);

  --focus-ring:       var(--accent-500);

  /* ------------------------------------------------------------ typography */
  /* System stacks keep first paint instant and avoid shipping a third-party
   * font request, which German data-protection guidance advises against.
   * To adopt a self-hosted face, set --font-sans / --font-display in
   * _fonts.css — nothing else needs to change. */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  /* Arabic needs a face with proper shaping; these ship with the OS. */
  --font-arabic: "Noto Naskh Arabic", "Segoe UI", "Geeza Pro", "Times New Roman", serif;

  /* A fluid type scale: each step interpolates between 360px and 1280px
   * viewports, so headings stay proportional without breakpoint juggling. */
  --step--2: clamp(0.694rem, 0.67rem + 0.12vw, 0.75rem);   /* eyebrows, small-caps labels */
  --step--1: clamp(0.833rem, 0.80rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.38vw, 1.4rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.68vw, 1.8rem);
  --step-3:  clamp(1.728rem, 1.50rem + 1.10vw, 2.35rem);
  --step-4:  clamp(2.074rem, 1.72rem + 1.70vw, 3rem);
  --step-5:  clamp(2.488rem, 1.96rem + 2.55vw, 3.9rem);
  --step-6:  clamp(2.986rem, 2.20rem + 3.75vw, 5rem);

  --leading-tight: 1.12;
  --leading-snug: 1.28;
  --leading-normal: 1.6;
  --leading-relaxed: 1.72;

  --tracking-tight: -0.022em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-caps: 0.08em;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---------------------------------------------------------------- space */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2rem;
  --space-xl:  3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Vertical rhythm between page sections, tighter on phones. */
  --section-gap: clamp(3rem, 2rem + 5vw, 6.5rem);
  --section-gap-tight: clamp(2rem, 1.5rem + 3vw, 4rem);

  /* --------------------------------------------------------------- layout */
  --width-full: 100%;
  --width-wide: 82rem;    /* hero imagery, wide galleries */
  --width-page: 72rem;    /* default content container */
  --width-text: 44rem;    /* long-form prose — ~70 characters */
  --width-narrow: 34rem;  /* forms, single-column cards */
  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 2.5rem);

  /* --------------------------------------------------------------- shape */
  --radius-xs: 3px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --border-width: 1px;

  --shadow-xs: 0 1px 2px rgb(16 15 14 / 0.05);
  --shadow-s:  0 1px 3px rgb(16 15 14 / 0.07), 0 1px 2px rgb(16 15 14 / 0.04);
  --shadow-m:  0 4px 12px rgb(16 15 14 / 0.07), 0 2px 4px rgb(16 15 14 / 0.04);
  --shadow-l:  0 12px 28px rgb(16 15 14 / 0.10), 0 4px 8px rgb(16 15 14 / 0.05);
  --shadow-xl: 0 24px 56px rgb(16 15 14 / 0.14), 0 8px 16px rgb(16 15 14 / 0.06);

  /* -------------------------------------------------------------- motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 120ms;
  --duration-base: 220ms;
  --duration-slow: 420ms;

  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-header: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* Dark theme. Guarded so an explicit data-theme="light" always wins, which the
 * theme toggle relies on. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface:         var(--neutral-950);
    --surface-sunken:  #171614;
    --surface-raised:  var(--neutral-900);
    --surface-inverse: var(--neutral-0);
    --surface-brand:   var(--brand-800);
    --surface-accent:  color-mix(in oklab, var(--accent-500) 14%, var(--neutral-950));

    --text:            var(--neutral-50);
    --text-muted:      var(--neutral-300);
    --text-subtle:     var(--neutral-400);
    --text-inverse:    var(--neutral-950);
    --text-on-brand:   var(--neutral-0);
    --text-link:       var(--brand-200);
    --text-link-hover: var(--brand-100);

    --border:          color-mix(in oklab, var(--neutral-0) 14%, transparent);
    --border-strong:   color-mix(in oklab, var(--neutral-0) 24%, transparent);
    --border-subtle:   color-mix(in oklab, var(--neutral-0) 8%, transparent);
    --border-inverse:  color-mix(in oklab, var(--neutral-950) 20%, transparent);

    --focus-ring:      var(--accent-300);

    --success-50: color-mix(in oklab, var(--success-500) 18%, var(--neutral-950));
    --warning-50: color-mix(in oklab, var(--warning-500) 18%, var(--neutral-950));
    --danger-50:  color-mix(in oklab, var(--danger-500) 18%, var(--neutral-950));

    /* Shadows read as noise on dark surfaces; borders carry elevation instead. */
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-s:  0 1px 3px rgb(0 0 0 / 0.5);
    --shadow-m:  0 4px 12px rgb(0 0 0 / 0.5);
    --shadow-l:  0 12px 28px rgb(0 0 0 / 0.55);
    --shadow-xl: 0 24px 56px rgb(0 0 0 / 0.6);
  }
}

:root[data-theme="dark"] {
  --surface:         var(--neutral-950);
  --surface-sunken:  #171614;
  --surface-raised:  var(--neutral-900);
  --surface-inverse: var(--neutral-0);
  --surface-brand:   var(--brand-800);
  --surface-accent:  color-mix(in oklab, var(--accent-500) 14%, var(--neutral-950));

  --text:            var(--neutral-50);
  --text-muted:      var(--neutral-300);
  --text-subtle:     var(--neutral-400);
  --text-inverse:    var(--neutral-950);
  --text-on-brand:   var(--neutral-0);
  --text-link:       var(--brand-200);
  --text-link-hover: var(--brand-100);

  --border:          color-mix(in oklab, var(--neutral-0) 14%, transparent);
  --border-strong:   color-mix(in oklab, var(--neutral-0) 24%, transparent);
  --border-subtle:   color-mix(in oklab, var(--neutral-0) 8%, transparent);
  --border-inverse:  color-mix(in oklab, var(--neutral-950) 20%, transparent);

  --focus-ring:      var(--accent-300);

  --success-50: color-mix(in oklab, var(--success-500) 18%, var(--neutral-950));
  --warning-50: color-mix(in oklab, var(--warning-500) 18%, var(--neutral-950));
  --danger-50:  color-mix(in oklab, var(--danger-500) 18%, var(--neutral-950));

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-s:  0 1px 3px rgb(0 0 0 / 0.5);
  --shadow-m:  0 4px 12px rgb(0 0 0 / 0.5);
  --shadow-l:  0 12px 28px rgb(0 0 0 / 0.55);
  --shadow-xl: 0 24px 56px rgb(0 0 0 / 0.6);
}

/* --- css/parts/_fonts.css (base) --- */
/* Design variant "Flow" — fonts.
 *
 * Sora (SIL OFL 1.1) for headlines: a geometric sans whose construction sits
 * close to the JANUAM wordmark, so type and logo read as one family without
 * the wordmark's letterforms being used for running text. Plus Jakarta Sans
 * stays for everything else. Both self-hosted; nothing from a font CDN.
 *
 * Paths are relative to css/main.css: the build splices partials into it.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus-jakarta-sans-latin-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus-jakarta-sans-latin-ext-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus-jakarta-sans-latin-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus-jakarta-sans-latin-ext-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Sora";
  src: url("/static/fonts/sora-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("/static/fonts/sora-latin-ext.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
}

:lang(ar) {
  --font-sans: var(--font-arabic);
  --font-display: var(--font-arabic);
}

/* --- css/parts/_base.css (base) --- */
/* Reset and element defaults.
 *
 * Everything here uses logical properties (inline/block, start/end) rather than
 * left/right, so enabling Arabic is a `dir="rtl"` change and nothing more.
 */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sticky header height, so in-page anchors do not land under it. */
  scroll-padding-block-start: 6rem;
  hanging-punctuation: first last;
}

body {
  margin: 0;
  min-block-size: 100svh;
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading-normal);
  font-weight: var(--weight-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  /* Long German compounds ("Sprachförderprogramm") overflow narrow columns
   * without this; the browser hyphenates using the lang attribute's dictionary. */
  overflow-wrap: break-word;
}

:lang(ar) body,
[dir="rtl"] body {
  font-family: var(--font-arabic);
}

/* ------------------------------------------------------------- typography */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  color: var(--text);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
h5 { font-size: var(--step-1); }
h6 {
  font-size: var(--step-0);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--text-link);
  text-decoration-thickness: max(1px, 0.06em);
  text-underline-offset: 0.18em;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--text-link-hover);
}

strong, b { font-weight: var(--weight-semibold); }

small { font-size: var(--step--1); }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
  background-color: var(--surface-sunken);
}

pre {
  overflow-x: auto;
  padding: var(--space-s);
  border-radius: var(--radius-m);
  background-color: var(--surface-sunken);
  border: var(--border-width) solid var(--border-subtle);
}

pre code {
  padding: 0;
  background: none;
}

blockquote {
  margin: 0;
}

/* Contact details are set upright; the italic default reads as a quotation. */
address { font-style: normal; }

hr {
  border: 0;
  block-size: var(--border-width);
  background-color: var(--border);
}

/* ----------------------------------------------------------------- media */

img, picture, svg, video, canvas {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

img {
  /* Prevents layout shift while a photo loads, when width/height are absent. */
  background-color: var(--surface-sunken);
}

svg {
  fill: currentColor;
}

figure { margin: 0; }

/* ----------------------------------------------------------------- lists */

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* ----------------------------------------------------------------- forms */

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

textarea {
  resize: vertical;
  min-block-size: 8rem;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

/* ----------------------------------------------------------------- tables */

table {
  inline-size: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th {
  text-align: start;
  font-weight: var(--weight-semibold);
}

/* ------------------------------------------------------------- selection */

::selection {
  background-color: var(--accent-200);
  color: var(--neutral-900);
}

/* --------------------------------------------------------------- focus */

/* A single, high-contrast focus treatment everywhere. Keyboard users get it;
 * pointer users do not, which keeps the visual noise down. */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------- motion */

@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;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------- skip navigation */

.skip-link {
  position: absolute;
  inset-block-start: var(--space-2xs);
  inset-inline-start: var(--space-2xs);
  z-index: var(--z-toast);
  padding: var(--space-2xs) var(--space-s);
  border-radius: var(--radius-s);
  background-color: var(--surface-brand);
  color: var(--text-on-brand);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-s)));
  transition: transform var(--duration-base) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--text-on-brand);
}

/* ------------------------------------------------- screen-reader helpers */

.visually-hidden:not(:focus):not(:active) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- css/parts/_layout.css (base) --- */
/* Layout primitives.
 *
 * Six composable pieces do almost all the structural work: a container, a
 * vertical stack, a cluster, a responsive grid, a split, and a section band.
 * Blocks arrange these rather than inventing their own geometry.
 */

/* ------------------------------------------------------------- container */

.container {
  inline-size: min(var(--width-page), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.container--wide   { inline-size: min(var(--width-wide), 100% - var(--gutter) * 2); }
.container--text   { inline-size: min(var(--width-text), 100% - var(--gutter) * 2); }
.container--narrow { inline-size: min(var(--width-narrow), 100% - var(--gutter) * 2); }
.container--full   { inline-size: 100%; }

/* ------------------------------------------------------------------ stack */

/* Vertical rhythm via the owl selector: margin only appears *between*
 * children, so a stack never adds stray space at its own edges. */
.stack > * + * {
  margin-block-start: var(--stack-gap, var(--space-s));
}

.stack--2xs { --stack-gap: var(--space-3xs); }
.stack--xs  { --stack-gap: var(--space-2xs); }
.stack--s   { --stack-gap: var(--space-xs); }
.stack--m   { --stack-gap: var(--space-m); }
.stack--l   { --stack-gap: var(--space-l); }
.stack--xl  { --stack-gap: var(--space-xl); }
.stack--2xl { --stack-gap: var(--space-2xl); }

/* ---------------------------------------------------------------- cluster */

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster-gap, var(--space-xs));
  align-items: var(--cluster-align, center);
}

.cluster--s  { --cluster-gap: var(--space-2xs); }
.cluster--m  { --cluster-gap: var(--space-s); }
.cluster--l  { --cluster-gap: var(--space-m); }
.cluster--between { justify-content: space-between; }
.cluster--center  { justify-content: center; }
.cluster--end     { justify-content: flex-end; }
.cluster--baseline { --cluster-align: baseline; }
.cluster--nowrap  { flex-wrap: nowrap; }

/* ------------------------------------------------------------------- grid */

/* Auto-fitting grid: items claim at least --grid-min and share the row.
 * min() guards the single-column case on very narrow phones. */
.grid {
  display: grid;
  gap: var(--grid-gap, var(--space-m));
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(var(--grid-min, 18rem), 100%), 1fr)
  );
}

.grid--2 { --grid-min: 22rem; }
.grid--3 { --grid-min: 17rem; }
.grid--4 { --grid-min: 13rem; }
.grid--5 { --grid-min: 10rem; }
.grid--gap-s { --grid-gap: var(--space-s); }
.grid--gap-l { --grid-gap: var(--space-l); }

/* Fixed column counts once there is room for them. */
.grid--fixed-2,
.grid--fixed-3,
.grid--fixed-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .grid--fixed-2 { grid-template-columns: repeat(2, 1fr); }
  .grid--fixed-3 { grid-template-columns: repeat(2, 1fr); }
  .grid--fixed-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .grid--fixed-3 { grid-template-columns: repeat(3, 1fr); }
  .grid--fixed-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------------ split */

/* Two columns that stack on small screens. --split-ratio sets the balance. */
.split {
  display: grid;
  gap: var(--split-gap, var(--space-xl));
  align-items: var(--split-align, start);
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: var(--split-ratio, 1fr 1fr);
  }

  .split--sidebar    { --split-ratio: minmax(0, 2fr) minmax(16rem, 1fr); }
  .split--sidebar-start { --split-ratio: minmax(16rem, 1fr) minmax(0, 2fr); }
  .split--wide-start { --split-ratio: minmax(0, 3fr) minmax(0, 2fr); }
  .split--wide-end   { --split-ratio: minmax(0, 2fr) minmax(0, 3fr); }
  .split--center     { --split-align: center; }
}

/* Reverses visual order without touching the DOM, so screen readers and
 * keyboard order keep following the source. */
@media (min-width: 52rem) {
  .split--reverse > :first-child { order: 2; }
  .split--reverse > :last-child  { order: 1; }
}

/* ---------------------------------------------------------------- section */

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

.section--tight { --section-padding: var(--section-gap-tight); }
.section--flush-start { padding-block-start: 0; }
.section--flush-end   { padding-block-end: 0; }

/* Tonal bands give a long page rhythm without extra graphics. */
.section--sunken  { background-color: var(--surface-sunken); }
.section--accent  { background-color: var(--surface-accent); }

.section--brand {
  background-color: var(--surface-brand);
  color: var(--text-on-brand);
}

.section--inverse {
  background-color: var(--surface-inverse);
  color: var(--text-inverse);
}

/* Inside a dark band, headings, borders and links must follow the band. */
.section--brand :is(h1, h2, h3, h4, h5, h6),
.section--inverse :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

.section--brand a:not(.button),
.section--inverse a:not(.button) {
  color: inherit;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
}

.section--brand a:not(.button):hover,
.section--inverse a:not(.button):hover {
  text-decoration-color: currentColor;
}

/* --------------------------------------------------------------- page */

.page-body {
  display: flex;
  flex-direction: column;
  min-block-size: 100svh;
}

.page-main {
  flex: 1;
}

/* ------------------------------------------------------------ full bleed */

/* Lets a child of a container escape it and span the viewport — used by
 * full-width imagery inside prose. */
.full-bleed {
  inline-size: 100vw;
  margin-inline-start: 50%;
  transform: translateX(-50%);
  max-inline-size: none;
}

[dir="rtl"] .full-bleed {
  transform: translateX(50%);
}

/* --- css/parts/_components.css (base) --- */
/* Reusable components: buttons, cards, badges, prose, forms, media. */

/* --------------------------------------------------------------- eyebrow */

/* The small caps label above a heading — it orients the reader before the
 * headline does, and carries the accent colour through the page. */
.eyebrow {
  display: block;
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-600);
}

.section--brand .eyebrow,
.section--inverse .eyebrow {
  color: var(--accent-300);
}

.lead {
  font-size: var(--step-1);
  line-height: var(--leading-snug);
  color: var(--text-muted);
  text-wrap: pretty;
}

.section--brand .lead,
.section--inverse .lead {
  color: color-mix(in oklab, currentColor 82%, transparent);
}

/* --------------------------------------------------------------- buttons */

.button {
  --button-bg: var(--brand-700);
  --button-fg: var(--neutral-0);
  --button-border: var(--brand-700);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding-block: 0.7em;
  padding-inline: 1.4em;
  border: var(--border-width) solid var(--button-border);
  border-radius: var(--radius-pill);
  background-color: var(--button-bg);
  color: var(--button-fg);
  font-size: var(--step-0);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  /* Below the 44px WCAG target only when the label is tiny; this guarantees it. */
  min-block-size: 2.75rem;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.button:hover {
  --button-bg: var(--brand-800);
  --button-border: var(--brand-800);
  color: var(--button-fg);
}

.button:active {
  transform: translateY(1px);
}

.button[aria-disabled="true"],
.button:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.button--accent {
  --button-bg: var(--accent-500);
  --button-fg: var(--neutral-0);
  --button-border: var(--accent-500);
}

.button--accent:hover {
  --button-bg: var(--accent-600);
  --button-border: var(--accent-600);
}

.button--secondary {
  --button-bg: transparent;
  --button-fg: var(--text-link);
  --button-border: var(--border-strong);
}

.button--secondary:hover {
  --button-bg: var(--surface-sunken);
  --button-fg: var(--text-link-hover);
  --button-border: var(--brand-600);
}

.button--ghost {
  --button-bg: transparent;
  --button-fg: var(--text);
  --button-border: transparent;
}

.button--ghost:hover {
  --button-bg: var(--surface-sunken);
  --button-fg: var(--text);
}

/* On a dark band the default fill disappears, so invert it. */
.section--brand .button--secondary,
.section--inverse .button--secondary {
  --button-fg: var(--neutral-0);
  --button-border: var(--border-inverse);
}

.section--brand .button--secondary:hover,
.section--inverse .button--secondary:hover {
  --button-bg: color-mix(in oklab, var(--neutral-0) 12%, transparent);
  --button-fg: var(--neutral-0);
  --button-border: var(--neutral-0);
}

.button--large {
  font-size: var(--step-1);
  padding-block: 0.75em;
  padding-inline: 1.6em;
}

.button--small {
  font-size: var(--step--1);
  padding-block: 0.5em;
  padding-inline: 1em;
  min-block-size: 2.25rem;
}

.button--full { inline-size: 100%; }

.button .icon {
  inline-size: 1.1em;
  block-size: 1.1em;
  flex: none;
}

/* Arrow nudge on hover — a small signal that the link goes somewhere. */
.button--arrow .icon {
  transition: transform var(--duration-base) var(--ease-out);
}

.button--arrow:hover .icon {
  transform: translateX(0.2em);
}

[dir="rtl"] .button--arrow .icon {
  transform: scaleX(-1);
}

[dir="rtl"] .button--arrow:hover .icon {
  transform: scaleX(-1) translateX(0.2em);
}

/* ------------------------------------------------------------- text link */

/* A standalone link that reads as an action without being a button. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform var(--duration-base) var(--ease-out);
}

[dir="rtl"] .link-arrow::after {
  content: "←";
}

/* A "back" link: the arrow leads, pointing the way the reader came. */
.link-arrow--back {
  flex-direction: row-reverse;
}

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

.link-arrow:hover::after {
  transform: translateX(0.25em);
}

[dir="rtl"] .link-arrow:hover::after {
  transform: translateX(-0.25em);
}

/* ---------------------------------------------------------------- badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-pill);
  background-color: var(--surface-sunken);
  border: var(--border-width) solid var(--border-subtle);
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

a.badge:hover {
  background-color: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-700);
}

.badge--accent {
  background-color: var(--accent-50);
  border-color: var(--accent-200);
  color: var(--accent-700);
}

.badge--active {
  background-color: var(--success-50);
  border-color: color-mix(in oklab, var(--success-500) 30%, transparent);
  color: var(--success-500);
}

.badge--completed {
  background-color: var(--surface-sunken);
  color: var(--text-subtle);
}

.badge--dot::before {
  content: "";
  inline-size: 0.5em;
  block-size: 0.5em;
  border-radius: 50%;
  background-color: currentColor;
  flex: none;
}

/* ----------------------------------------------------------------- cards */

.card {
  display: flex;
  flex-direction: column;
  block-size: 100%;
  overflow: hidden;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-l);
  background-color: var(--surface-raised);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

/* Only cards that are entirely clickable lift. */
.card--link:hover,
.card--link:focus-within {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--surface-sunken);
}

.card__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card--link:hover .card__media img {
  transform: scale(1.03);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-m);
  flex: 1;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  align-items: center;
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.card__title {
  font-size: var(--step-2);
  line-height: var(--leading-snug);
  /* German compounds ("Computergrundkenntnisse") are longer than a card is
   * wide. Without this the global break-word splits them at an arbitrary
   * letter; hyphens: auto breaks at a syllable and shows the hyphen, using the
   * dictionary for the lang on <html>. */
  hyphens: auto;
  overflow-wrap: normal;
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

/* Stretched link: the whole card is the hit target, but only the title is in
 * the accessibility tree as the link. */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card--link { position: relative; }

.card__text {
  color: var(--text-muted);
  font-size: var(--step-0);
}

.card__footer {
  margin-block-start: auto;
  padding-block-start: var(--space-xs);
}

/* Anything interactive inside a stretched-link card needs to sit above it. */
.card__footer a,
.card__meta a,
.card .badge {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------- prose */

/* Long-form content rendered from Markdown. Scoped tightly so it never leaks
 * into component markup. */
.prose {
  max-inline-size: var(--width-text);
  font-size: var(--step-0);
  line-height: var(--leading-relaxed);
  color: var(--text);
  hyphens: auto;
}

.prose > * + * {
  margin-block-start: var(--space-s);
}

.prose > :is(h2, h3, h4) {
  margin-block-start: var(--space-xl);
  margin-block-end: var(--space-xs);
}

.prose > :is(h2, h3, h4) + * {
  margin-block-start: 0;
}

.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); }
.prose h4 { font-size: var(--step-1); }

.prose :is(ul, ol) {
  padding-inline-start: 1.4em;
}

.prose li + li {
  margin-block-start: var(--space-3xs);
}

.prose li::marker {
  color: var(--accent-500);
}

.prose blockquote {
  padding-inline-start: var(--space-m);
  border-inline-start: 3px solid var(--accent-400);
  font-size: var(--step-1);
  line-height: var(--leading-snug);
  color: var(--text-muted);
}

.prose img {
  border-radius: var(--radius-m);
}

.prose figure figcaption {
  margin-block-start: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.prose table {
  display: block;
  overflow-x: auto;
  font-size: var(--step--1);
}

.prose :is(th, td) {
  padding: var(--space-2xs) var(--space-xs);
  border-block-end: var(--border-width) solid var(--border);
}

.prose thead th {
  border-block-end-width: 2px;
  border-block-end-color: var(--border-strong);
}

.prose hr {
  margin-block: var(--space-xl);
}

.prose--wide { max-inline-size: none; }

/* Footnotes from markdown-it. */
.prose .footnotes {
  margin-block-start: var(--space-xl);
  padding-block-start: var(--space-m);
  border-block-start: var(--border-width) solid var(--border);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* ----------------------------------------------------------------- forms */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.field__label {
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.field__hint {
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.field__required {
  color: var(--danger-500);
}

.input,
.textarea,
.select {
  inline-size: 100%;
  padding: 0.65em 0.9em;
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-s);
  background-color: var(--surface);
  color: var(--text);
  font-size: var(--step-0);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--brand-400);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-500) 25%, transparent);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger-500);
}

.field__error {
  font-size: var(--step--1);
  color: var(--danger-500);
}

.checkbox {
  display: flex;
  align-items: start;
  gap: var(--space-2xs);
  font-size: var(--step--1);
  line-height: var(--leading-normal);
  cursor: pointer;
}

.checkbox input {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  margin-block-start: 0.15rem;
  flex: none;
  accent-color: var(--brand-600);
}

/* A hidden field real users never see and bots reliably fill in. */
.honeypot {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ----------------------------------------------------------------- notes */

.note {
  padding: var(--space-s) var(--space-m);
  border-inline-start: 3px solid var(--brand-500);
  border-radius: var(--radius-s);
  background-color: var(--surface-sunken);
  font-size: var(--step--1);
}

.note--success { border-inline-start-color: var(--success-500); background-color: var(--success-50); }
.note--warning { border-inline-start-color: var(--warning-500); background-color: var(--warning-50); }
.note--danger  { border-inline-start-color: var(--danger-500);  background-color: var(--danger-50); }

/* --------------------------------------------------------------- figures */

.figure img {
  inline-size: 100%;
  border-radius: var(--radius-l);
}

.figure figcaption {
  margin-block-start: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--text-subtle);
  text-wrap: pretty;
}

/* --------------------------------------------------------- section header */

.section-header {
  max-inline-size: var(--width-text);
  margin-block-end: var(--space-xl);
}

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

.section-header > * + * {
  margin-block-start: var(--space-xs);
}

/* ---------------------------------------------------------------- divider */

.divider {
  block-size: var(--border-width);
  background-color: var(--border);
  border: 0;
}

/* ------------------------------------------------------------- pagination */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  align-items: center;
  justify-content: center;
  margin-block-start: var(--space-xl);
}

.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.5rem;
  min-block-size: 2.5rem;
  padding-inline: 0.5em;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--text-muted);
}

.pagination__item[aria-current="page"] {
  background-color: var(--brand-700);
  border-color: var(--brand-700);
  color: var(--neutral-0);
  font-weight: var(--weight-semibold);
}

/* ---------------------------------------------------------- placeholder */

/* Stands in for a photograph that has not been supplied yet, so a layout can
 * be reviewed before the photo shoot rather than collapsing. */
.image-placeholder {
  display: grid;
  place-items: center;
  inline-size: 100%;
  overflow: hidden;
  border-radius: var(--radius-l);
  background-color: var(--surface-sunken);
  color: var(--brand-700);
}

.image-placeholder svg {
  inline-size: 100%;
  block-size: 100%;
}

/* A card with no photograph gets a thin accent rule instead of an empty frame,
 * so a listing without imagery still has a top edge to scan against. */
.card:not(:has(.card__media)) {
  border-block-start: 3px solid var(--brand-600);
}

.card:not(:has(.card__media)):hover {
  border-block-start-color: var(--accent-500);
}

/* --- css/parts/_header.css (base) --- */
/* Site header: brand, primary navigation, language switcher, search, donate CTA. */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-header);
  background-color: color-mix(in oklab, var(--surface) 88%, transparent);
  border-block-end: var(--border-width) solid var(--border-subtle);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header { background-color: var(--surface); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-block-size: 4.5rem;
}

/* ------------------------------------------------------------------ brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  flex: none;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.brand:hover { color: var(--brand-700); }

.brand__mark {
  inline-size: 2.5rem;
  block-size: auto;
  flex: none;
  background: none;
}

/* The wordmark is an image of the brand's own letterforms; height sets size. */
.brand__wordmark {
  block-size: 0.8rem;
  inline-size: auto;
  background: none;
}


/* The wordmark is navy on transparent; on a dark surface it vanishes. Rendering
 * it white keeps the letterforms and needs no second asset. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__wordmark { filter: brightness(0) invert(1); }
}
:root[data-theme="dark"] .brand__wordmark { filter: brightness(0) invert(1); }

.brand__tagline--flow {
  color: var(--accent-500);
  letter-spacing: 0.12em;
  font-size: 0.62rem;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }

.brand__tagline {
  font-size: 0.6rem;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
}

@media (max-width: 26rem) {
  .brand__tagline { display: none; }
}

/* ------------------------------------------------------------ desktop nav */

.site-nav { display: none; }

@media (min-width: 64rem) {
  .site-nav {
    display: block;
    margin-inline-start: auto;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-3xs);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-s);
    color: var(--text);
    font-size: var(--step-0);
    font-weight: var(--weight-medium);
    text-decoration: none;
    white-space: nowrap;
  }

  .site-nav__link:hover {
    background-color: var(--surface-sunken);
    color: var(--brand-700);
  }

  .site-nav__link[aria-current="page"],
  .site-nav__item--active > .site-nav__link {
    color: var(--brand-700);
  }

  /* Underline marks the active branch without shifting layout. */
  .site-nav__item--active > .site-nav__link::after {
    content: "";
    position: absolute;
    inset-block-end: -1px;
    inset-inline: 0.7rem;
    block-size: 2px;
    border-radius: 2px;
    background-color: var(--accent-500);
  }

  .site-nav__item { position: relative; }

  /* -------------------------------------------------------- dropdown menu */

  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
  }

  .site-nav__chevron {
    inline-size: 0.7em;
    block-size: 0.7em;
    transition: transform var(--duration-fast) var(--ease-out);
  }

  .site-nav__item[data-open="true"] .site-nav__chevron {
    transform: rotate(180deg);
  }

  .site-nav__submenu {
    position: absolute;
    inset-block-start: calc(100% + 0.35rem);
    inset-inline-start: 0;
    z-index: var(--z-overlay);
    min-inline-size: 16rem;
    padding: var(--space-2xs);
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius-m);
    background-color: var(--surface-raised);
    box-shadow: var(--shadow-l);
    list-style: none;
    margin: 0;
  }

  .site-nav__submenu[hidden] { display: none; }

  .site-nav__sublink {
    display: block;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-s);
    color: var(--text);
    text-decoration: none;
    font-size: var(--step-0);
  }

  .site-nav__sublink:hover {
    background-color: var(--surface-sunken);
    color: var(--brand-700);
  }

  .site-nav__subdesc {
    display: block;
    font-size: var(--step--1);
    color: var(--text-subtle);
  }
}

/* -------------------------------------------------------------- utilities */

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-inline-start: auto;
}

@media (min-width: 64rem) {
  .header-actions { margin-inline-start: var(--space-s); }
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: var(--radius-s);
  color: var(--text);
  background: none;
  border: none;
}

.icon-button:hover {
  background-color: var(--surface-sunken);
  color: var(--brand-700);
}

.icon-button .icon {
  inline-size: 1.25rem;
  block-size: 1.25rem;
}

/* Below the desktop breakpoint the bar keeps only the language switcher and
 * the donate button: a phone has room for two controls beside the logo and the
 * menu trigger, and for a non-profit those are the two that matter. Search and
 * the theme toggle are duplicated inside the menu — see .mobile-menu__tools. */
@media (max-width: 63.99rem) {
  .header-actions > [data-search-open],
  .header-actions > [data-theme-toggle] {
    display: none;
  }
}

.header-actions .button--donate {
  padding-inline: 1.1em;
  font-size: var(--step--1);
}

@media (min-width: 48rem) {
  .header-actions .button--donate {
    padding-inline: 1.4em;
    font-size: var(--step-0);
  }
}

/* The tools row inside the mobile menu. */
.mobile-menu__tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.mobile-menu__tool {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.6rem 1rem;
  min-block-size: 2.75rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.mobile-menu__tool:hover {
  background-color: var(--surface-sunken);
  color: var(--brand-700);
}

.mobile-menu__tool .icon {
  inline-size: 1.1rem;
  block-size: 1.1rem;
}

.mobile-menu__tool[aria-current="true"] {
  border-color: var(--brand-500);
  color: var(--brand-700);
  font-weight: var(--weight-semibold);
}

/* ------------------------------------------------------- language switcher */

.lang-switcher { position: relative; }

.lang-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.5rem 0.7rem;
  min-block-size: 2.75rem;
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.lang-switcher__button:hover {
  background-color: var(--surface-sunken);
}

.lang-switcher__menu {
  position: absolute;
  inset-block-start: calc(100% + 0.35rem);
  inset-inline-end: 0;
  z-index: var(--z-overlay);
  min-inline-size: 11rem;
  padding: var(--space-3xs);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-m);
  background-color: var(--surface-raised);
  box-shadow: var(--shadow-l);
  list-style: none;
  margin: 0;
}

.lang-switcher__menu[hidden] { display: none; }

.lang-switcher__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-s);
  color: var(--text);
  text-decoration: none;
  font-size: var(--step-0);
}

.lang-switcher__link:hover { background-color: var(--surface-sunken); }

.lang-switcher__link[aria-current="true"] {
  font-weight: var(--weight-semibold);
  color: var(--brand-700);
}

.lang-switcher__code {
  font-size: var(--step--1);
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: var(--tracking-wide);
}

/* An untranslated target falls back to that language's home page — say so. */
.lang-switcher__link[data-fallback="true"] .lang-switcher__code::after {
  content: " ·";
  color: var(--accent-500);
}

/* ------------------------------------------------------------ mobile menu */

.menu-button { display: inline-flex; }

@media (min-width: 64rem) {
  .menu-button { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-block-size: 4.5rem;
  border-block-end: var(--border-width) solid var(--border-subtle);
}

.mobile-menu__body {
  padding-block: var(--space-l) var(--space-2xl);
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__link {
  display: block;
  padding-block: var(--space-xs);
  border-block-end: var(--border-width) solid var(--border-subtle);
  color: var(--text);
  font-size: var(--step-2);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.mobile-menu__link:hover { color: var(--brand-700); }

.mobile-menu__sublist {
  list-style: none;
  margin: 0;
  padding-block: var(--space-2xs);
  padding-inline-start: var(--space-s);
}

.mobile-menu__sublink {
  display: block;
  padding-block: var(--space-3xs);
  color: var(--text-muted);
  text-decoration: none;
}

.mobile-menu__sublink:hover { color: var(--brand-700); }

.mobile-menu__footer {
  margin-block-start: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

/* Without JS the menu cannot open, so show navigation inline instead. */
.no-js .menu-button { display: none; }
.no-js .site-nav { display: block; margin-inline-start: auto; }

@media (max-width: 63.99rem) {
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .site-nav__list { flex-wrap: wrap; }
  .no-js .site-nav__submenu { position: static; box-shadow: none; border: 0; padding: 0; }
  .no-js .site-nav__submenu[hidden] { display: block; }
}

/* ---------------------------------------------------------------- search */

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  align-content: start;
  justify-items: center;
  padding-block-start: clamp(3rem, 10vh, 8rem);
  background-color: color-mix(in oklab, var(--neutral-950) 55%, transparent);
  backdrop-filter: blur(4px);
}

.search-dialog[hidden] { display: none; }

.search-dialog__panel {
  inline-size: min(40rem, 100% - var(--gutter) * 2);
  padding: var(--space-m);
  border-radius: var(--radius-l);
  background-color: var(--surface-raised);
  box-shadow: var(--shadow-xl);
}

.search-dialog__results {
  margin-block-start: var(--space-s);
  max-block-size: min(24rem, 50vh);
  overflow-y: auto;
  list-style: none;
  padding: 0;
}

.search-result {
  display: block;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-s);
  color: var(--text);
  text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible {
  background-color: var(--surface-sunken);
}

/* Both are spans, so they need to be told to occupy their own line — without
 * this the summary runs straight on from the title. */
.search-result__title {
  display: block;
  font-weight: var(--weight-semibold);
}

.search-result__meta {
  display: block;
  font-size: var(--step--1);
  line-height: var(--leading-snug);
  color: var(--text-subtle);
  /* Keep a long summary to two lines so the result list stays scannable. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result mark {
  background-color: var(--accent-100);
  color: inherit;
  border-radius: 2px;
}

/* Locks background scroll while a full-screen overlay is open. */
body.is-locked { overflow: hidden; }

/* --- css/parts/_footer.css (base) --- */
/* Site footer: organisation summary, link columns, newsletter, legal strip. */

.site-footer {
  margin-block-start: auto;
  background-color: var(--brand-900);
  color: color-mix(in oklab, var(--neutral-0) 82%, transparent);
  font-size: var(--step-0);
}

.site-footer a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, currentColor 35%, transparent);
}

.site-footer a:hover {
  color: var(--neutral-0);
  text-decoration-color: currentColor;
}

.site-footer :is(h2, h3) {
  color: var(--neutral-0);
}

.site-footer__main {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-2xl) var(--space-xl);
}

@media (min-width: 52rem) {
  .site-footer__main {
    grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(10rem, 1fr));
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  max-inline-size: 26rem;
}

.site-footer__brand .brand,
.site-footer__brand .brand:hover {
  color: var(--neutral-0);
}

.site-footer__blurb {
  color: color-mix(in oklab, var(--neutral-0) 72%, transparent);
  text-wrap: pretty;
}

.footer-column__title {
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: color-mix(in oklab, var(--neutral-0) 62%, transparent);
  margin-block-end: var(--space-xs);
}

.footer-column__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

/* ------------------------------------------------------------- contact */

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  font-style: normal;
}

.footer-contact li {
  display: flex;
  align-items: start;
  gap: var(--space-2xs);
}

.footer-contact .icon {
  inline-size: 1.1em;
  block-size: 1.1em;
  margin-block-start: 0.35em;
  flex: none;
  opacity: 0.7;
}

/* ------------------------------------------------------------- social */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border: var(--border-width) solid color-mix(in oklab, var(--neutral-0) 22%, transparent);
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.social-links a:hover {
  background-color: color-mix(in oklab, var(--neutral-0) 12%, transparent);
  border-color: color-mix(in oklab, var(--neutral-0) 45%, transparent);
}

.social-links .icon {
  inline-size: 1.15rem;
  block-size: 1.15rem;
}

/* -------------------------------------------------------- accreditations */

.accreditations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
}

.accreditations li {
  padding: 0.3em 0.8em;
  border: var(--border-width) solid color-mix(in oklab, var(--neutral-0) 20%, transparent);
  border-radius: var(--radius-pill);
  color: color-mix(in oklab, var(--neutral-0) 74%, transparent);
}

/* ----------------------------------------------------------- newsletter */

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.newsletter-form .input {
  flex: 1 1 12rem;
  background-color: color-mix(in oklab, var(--neutral-0) 8%, transparent);
  border-color: color-mix(in oklab, var(--neutral-0) 24%, transparent);
  color: var(--neutral-0);
}

.newsletter-form .input::placeholder {
  color: color-mix(in oklab, var(--neutral-0) 52%, transparent);
}

.newsletter-form .input:focus-visible {
  border-color: var(--accent-300);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-400) 30%, transparent);
}

.newsletter-hint {
  font-size: var(--step--1);
  color: color-mix(in oklab, var(--neutral-0) 58%, transparent);
}

/* ---------------------------------------------------------- legal strip */

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-m);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-m);
  border-block-start: var(--border-width) solid
    color-mix(in oklab, var(--neutral-0) 14%, transparent);
  font-size: var(--step--1);
  color: color-mix(in oklab, var(--neutral-0) 62%, transparent);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- css/parts/_blocks.css (base) --- */
/* Page-section blocks.
 *
 * Each block here maps 1:1 to a template in templates/blocks/ and to a `type:`
 * an editor can write in a page's YAML. Adding a visual pattern means adding
 * one template and one section in this file — nothing else changes.
 */

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
  overflow: hidden;
}

/* Default hero: text beside an image. */
.hero__inner {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 58rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-2xl);
  }
}

.hero__content > * + * { margin-block-start: var(--space-s); }

.hero__title {
  font-size: var(--step-6);
  letter-spacing: var(--tracking-tight);
}

.hero__lead {
  font-size: var(--step-2);
  line-height: var(--leading-snug);
  color: var(--text-muted);
  max-inline-size: 36rem;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-block-start: var(--space-m);
}

.hero__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--surface-sunken);
  box-shadow: var(--shadow-l);
}

.hero__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* A soft brand wash behind the hero, so the fold has depth without an image. */
.hero--washed {
  background:
    radial-gradient(
      70rem 40rem at 88% -10%,
      color-mix(in oklab, var(--brand-200) 50%, transparent),
      transparent 60%
    ),
    radial-gradient(
      50rem 34rem at -10% 110%,
      color-mix(in oklab, var(--accent-100) 65%, transparent),
      transparent 62%
    ),
    var(--surface);
}

/* The light wash is far too bright on a dark surface; dim both stops. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero--washed {
    background:
      radial-gradient(
        70rem 40rem at 88% -10%,
        color-mix(in oklab, var(--brand-500) 22%, transparent),
        transparent 60%
      ),
      radial-gradient(
        50rem 34rem at -10% 110%,
        color-mix(in oklab, var(--accent-500) 16%, transparent),
        transparent 62%
      ),
      var(--surface);
  }
}

:root[data-theme="dark"] .hero--washed {
  background:
    radial-gradient(
      70rem 40rem at 88% -10%,
      color-mix(in oklab, var(--brand-500) 22%, transparent),
      transparent 60%
    ),
    radial-gradient(
      50rem 34rem at -10% 110%,
      color-mix(in oklab, var(--accent-500) 16%, transparent),
      transparent 62%
    ),
    var(--surface);
}

/* Full-bleed photographic hero with an overlay. */
.hero--image {
  min-block-size: clamp(24rem, 62vh, 40rem);
  color: var(--neutral-0);
  align-content: end;
}

.hero--image .hero__title,
.hero--image .hero__lead,
.hero--image .eyebrow {
  color: inherit;
}

.hero--image .hero__lead {
  color: color-mix(in oklab, var(--neutral-0) 88%, transparent);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__backdrop img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* The scrim keeps text at AA contrast over any photograph. */
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in oklab, var(--neutral-950) 82%, transparent) 0%,
    color-mix(in oklab, var(--neutral-950) 52%, transparent) 45%,
    color-mix(in oklab, var(--neutral-950) 22%, transparent) 100%
  );
}

.hero--centered .hero__inner {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero--centered .hero__content {
  max-inline-size: var(--width-text);
}

.hero--centered .hero__actions { justify-content: center; }

/* ------------------------------------------------------------------ stats */

.stats {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  padding: var(--space-m);
  border-radius: var(--radius-l);
  background-color: var(--surface-raised);
  border: var(--border-width) solid var(--border);
}

.section--brand .stat,
.section--inverse .stat {
  background-color: color-mix(in oklab, var(--neutral-0) 8%, transparent);
  border-color: var(--border-inverse);
}

.stat__value {
  font-family: var(--font-display);
  /* One step below the display size: "10.000+" is seven glyphs and wrapped
   * onto a second line at --step-5 in a four-column row. */
  font-size: var(--step-4);
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
  /* A figure split across two lines stops being a figure. */
  white-space: nowrap;
}

.section--brand .stat__value,
.section--inverse .stat__value {
  color: var(--accent-300);
}

.stat__label {
  font-weight: var(--weight-semibold);
}

.stat__note {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.section--brand .stat__note,
.section--inverse .stat__note {
  color: color-mix(in oklab, currentColor 72%, transparent);
}

/* ------------------------------------------------------------ feature card */

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-m);
  border-radius: var(--radius-l);
  background-color: var(--surface-raised);
  border: var(--border-width) solid var(--border);
  block-size: 100%;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 3rem;
  block-size: 3rem;
  margin-block-end: var(--space-2xs);
  border-radius: var(--radius-m);
  background-color: var(--brand-50);
  color: var(--brand-700);
}

.feature__icon .icon {
  inline-size: 1.5rem;
  block-size: 1.5rem;
}

.feature__title { font-size: var(--step-1); }

.feature__text { color: var(--text-muted); }

.feature--plain {
  background: none;
  border: 0;
  padding: 0;
}

/* ------------------------------------------------------------------ steps */

/* A numbered process. The connecting rule is drawn with a pseudo-element so
 * it survives reflow at any column count. */
.steps {
  display: grid;
  gap: var(--space-l);
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.step {
  position: relative;
  counter-increment: step;
  padding-block-start: var(--space-m);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-bold);
  color: var(--accent-500);
  font-variant-numeric: tabular-nums;
}

.step::after {
  content: "";
  position: absolute;
  inset-block-start: 0.75em;
  inset-inline-start: 2.5rem;
  inline-size: calc(100% - 3rem);
  block-size: var(--border-width);
  background-color: var(--border);
}

.step:last-child::after { display: none; }

@media (max-width: 47.99rem) {
  .step::after { display: none; }
}

.step__title {
  font-size: var(--step-1);
  margin-block-start: var(--space-s);
}

.step__text { color: var(--text-muted); }

/* --------------------------------------------------------------- timeline */

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: var(--space-l);
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0.6rem;
  inset-inline-start: 0.3rem;
  inline-size: 2px;
  background: linear-gradient(
    to bottom,
    var(--brand-300),
    color-mix(in oklab, var(--brand-300) 20%, transparent)
  );
}

.timeline__item {
  position: relative;
  padding-block-end: var(--space-l);
}

.timeline__item:last-child { padding-block-end: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  inset-block-start: 0.45rem;
  inset-inline-start: calc(-1 * var(--space-l) + 0.3rem);
  inline-size: 0.75rem;
  block-size: 0.75rem;
  margin-inline-start: -0.25rem;
  border-radius: 50%;
  background-color: var(--surface);
  border: 2px solid var(--brand-500);
}

.timeline__date {
  display: block;
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--accent-600);
}

.timeline__title {
  font-size: var(--step-1);
  margin-block-start: var(--space-3xs);
}

.timeline__text { color: var(--text-muted); }

/* ----------------------------------------------------------------- quote */

.quote {
  display: grid;
  gap: var(--space-m);
  max-inline-size: var(--width-text);
}

.quote__text {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  text-wrap: pretty;
}

.quote__text::before { content: "“"; }
.quote__text::after  { content: "”"; }

.quote__attribution {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-style: normal;
}

.quote__avatar {
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.quote__name { font-weight: var(--weight-semibold); }

.quote__role {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.section--brand .quote__role,
.section--inverse .quote__role {
  color: color-mix(in oklab, currentColor 74%, transparent);
}

/* ----------------------------------------------------------------- logos */

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-l) var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-wall img {
  block-size: clamp(2rem, 4vw, 3rem);
  inline-size: auto;
  max-inline-size: 11rem;
  object-fit: contain;
  /* Partner marks come in every colour; neutralising them keeps the wall calm
   * and restores full colour on hover for recognition. */
  filter: grayscale(1);
  opacity: 0.65;
  background: none;
  transition: filter var(--duration-base) var(--ease-out),
    opacity var(--duration-base) var(--ease-out);
}

.logo-wall a:hover img,
.logo-wall a:focus-visible img {
  filter: grayscale(0);
  opacity: 1;
}

/* -------------------------------------------------------------- accordion */

.accordion {
  border-block-start: var(--border-width) solid var(--border);
  max-inline-size: var(--width-text);
}

.accordion__item {
  border-block-end: var(--border-width) solid var(--border);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding-block: var(--space-s);
  font-size: var(--step-1);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  list-style: none;
}

.accordion__summary::-webkit-details-marker { display: none; }

.accordion__summary::after {
  content: "";
  inline-size: 0.75rem;
  block-size: 0.75rem;
  flex: none;
  border-inline-end: 2px solid var(--accent-500);
  border-block-end: 2px solid var(--accent-500);
  transform: rotate(45deg);
  transition: transform var(--duration-base) var(--ease-out);
}

.accordion__item[open] > .accordion__summary::after {
  transform: rotate(-135deg);
}

.accordion__panel {
  padding-block-end: var(--space-m);
  color: var(--text-muted);
}

/* --------------------------------------------------------------- media+text */

.media-text__media img {
  inline-size: 100%;
  border-radius: var(--radius-l);
  aspect-ratio: var(--media-ratio, 4 / 3);
  object-fit: cover;
}

.media-text__content > * + * { margin-block-start: var(--space-s); }

/* ------------------------------------------------------------------- SDG */

.sdg-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.sdg-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: var(--radius-pill);
  background-color: color-mix(in oklab, var(--sdg-color) 12%, var(--surface));
  border: var(--border-width) solid color-mix(in oklab, var(--sdg-color) 35%, transparent);
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  color: var(--text);
  text-decoration: none;
}

[dir="rtl"] .sdg-badge {
  padding-inline: 0.4rem 0.85rem;
}

.sdg-badge__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.65rem;
  block-size: 1.65rem;
  flex: none;
  border-radius: 50%;
  background-color: var(--sdg-color);
  color: #fff;
  font-weight: var(--weight-bold);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

/* Large SDG tiles for the dedicated section. */
.sdg-grid {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.sdg-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-m);
  border-radius: var(--radius-m);
  background-color: var(--sdg-color);
  color: #fff;
  block-size: 100%;
}

.sdg-tile__number {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.sdg-tile__title {
  font-size: var(--step-0);
  font-weight: var(--weight-semibold);
  color: inherit;
}

.sdg-tile__text {
  font-size: var(--step--1);
  color: color-mix(in oklab, #fff 84%, transparent);
}

/* ------------------------------------------------------------------ team */

.team-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-member__photo {
  inline-size: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-l);
  margin-block-end: var(--space-xs);
}

.team-member__name { font-size: var(--step-1); }

.team-member__role {
  font-size: var(--step--1);
  color: var(--accent-600);
  font-weight: var(--weight-semibold);
}

.team-member__bio {
  margin-block-start: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* -------------------------------------------------------------------- CTA */

.cta-band {
  display: grid;
  gap: var(--space-m);
  align-items: center;
}

@media (min-width: 52rem) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-xl);
  }
}

.cta-band__title { font-size: var(--step-3); }

.cta-band__text {
  color: color-mix(in oklab, currentColor 80%, transparent);
  max-inline-size: 42rem;
  text-wrap: pretty;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* --------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery img {
  inline-size: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-m);
}

/* ----------------------------------------------------------------- embed */

.embed {
  position: relative;
  aspect-ratio: var(--embed-ratio, 16 / 9);
  border-radius: var(--radius-l);
  overflow: hidden;
  background-color: var(--surface-sunken);
}

.embed iframe {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}

/* A click-to-load placeholder keeps third-party cookies off the page until the
 * visitor asks for the video — the position German data protection expects. */
.embed__consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--space-xs);
  padding: var(--space-m);
  text-align: center;
  background-color: var(--surface-sunken);
}

/* --------------------------------------------------------------- key facts */

.fact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.fact-list > div {
  display: grid;
  gap: var(--space-3xs) var(--space-s);
  padding-block: var(--space-xs);
  border-block-end: var(--border-width) solid var(--border-subtle);
}

@media (min-width: 34rem) {
  .fact-list > div {
    grid-template-columns: minmax(8rem, 12rem) 1fr;
    align-items: baseline;
  }
}

.fact-list dt {
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--text-subtle);
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
}

/* ------------------------------------------------------------ impact model */

/* Three horizons read left to right as time passes; on narrow screens they
 * stack, and the period label keeps the sequence legible. */
.impact-model {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: horizon;
}

.impact-horizon {
  counter-increment: horizon;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding-block-start: var(--space-m);
  border-block-start: 3px solid var(--brand-300);
}

.impact-horizon:nth-child(2) { border-block-start-color: var(--brand-500); }
.impact-horizon:nth-child(3) { border-block-start-color: var(--brand-700); }

.impact-horizon__period {
  display: block;
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brand-600);
}

.impact-horizon__title {
  font-size: var(--step-2);
  margin-block-start: var(--space-3xs);
}

.impact-horizon__lead {
  margin-block-start: var(--space-2xs);
  color: var(--text-muted);
}

.impact-horizon__outcomes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.impact-horizon__outcomes li {
  position: relative;
  padding-inline-start: 1.4rem;
}

.impact-horizon__outcomes li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55em;
  inline-size: 0.6rem;
  block-size: 0.6rem;
  border-radius: 50%;
  background-color: var(--accent-500);
}

.impact-horizon__evidence {
  margin-block-start: auto;
  padding: var(--space-s);
  border-radius: var(--radius-m);
  background-color: var(--surface-sunken);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.impact-horizon__evidence-label {
  display: block;
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-block-end: var(--space-3xs);
}

.impact-caveat {
  margin-block-start: var(--space-xl);
  padding-inline-start: var(--space-m);
  border-inline-start: 3px solid var(--border-strong);
  max-inline-size: var(--width-text);
}

.impact-caveat__title {
  font-size: var(--step-1);
  margin-block-end: var(--space-2xs);
}

/* --------------------------------------------------------------- team v2 */

.team {
  display: grid;
  gap: var(--space-l) var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.team + .team-group__title { margin-block-start: var(--space-2xl); }
.team-group__title { margin-block-end: var(--space-m); font-size: var(--step-1); color: var(--text-muted); }

.member { display: flex; flex-direction: column; gap: var(--space-s); }

/* Leadership spans two columns and lays photo beside text once there is room. */
.member--large { grid-column: span 2; }

@media (min-width: 40rem) {
  .member--large {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-l);
  }
  .member--large .member__photo { flex: 0 0 42%; }
}

.member__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, var(--brand-100), var(--brand-300));
}

.member__photo img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.member:hover .member__photo img { transform: scale(1.03); }

.member__initials {
  display: grid;
  place-items: center;
  block-size: 100%;
  font-size: var(--step-4);
  font-weight: var(--weight-bold);
  color: var(--brand-800);
  letter-spacing: var(--tracking-tight);
}

.member__name { font-size: var(--step-1); }
.member--large .member__name { font-size: var(--step-2); }

.member__role {
  color: var(--brand-600);
  font-weight: var(--weight-semibold);
  font-size: var(--step--1);
}

.member__bio {
  margin-block-start: var(--space-2xs);
  color: var(--text-muted);
  font-size: var(--step--1);
}

.member--large .member__bio { font-size: var(--step-0); }

.member__meta {
  margin-block-start: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.member__links {
  display: flex;
  gap: var(--space-2xs);
  list-style: none;
  margin: var(--space-s) 0 0;
  padding: 0;
}

.member__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.member__links a:hover { border-color: var(--brand-500); color: var(--brand-700); }
.member__links .icon { inline-size: 1rem; block-size: 1rem; }

.team__join {
  margin-block-start: var(--space-xl);
  color: var(--text-muted);
  max-inline-size: var(--width-text);
}

/* --- css/parts/_utilities.css (base) --- */
/* Utilities. Deliberately few — the layout primitives should do the work.
 * Anything added here must be genuinely single-purpose and reused. */

/* ------------------------------------------------------------------ text */

.text-center { text-align: center; }
.text-start  { text-align: start; }
.text-end    { text-align: end; }
.text-balance { text-wrap: balance; }

.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-accent { color: var(--accent-600); }
.text-brand  { color: var(--brand-700); }

.text-xs { font-size: var(--step--1); }
.text-lg { font-size: var(--step-1); }
.text-xl { font-size: var(--step-2); }

.font-semibold { font-weight: var(--weight-semibold); }
.font-bold     { font-weight: var(--weight-bold); }

.uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}

.measure { max-inline-size: var(--width-text); }
.measure-narrow { max-inline-size: var(--width-narrow); }

/* --------------------------------------------------------------- spacing */

.mt-0  { margin-block-start: 0; }
.mt-s  { margin-block-start: var(--space-s); }
.mt-m  { margin-block-start: var(--space-m); }
.mt-l  { margin-block-start: var(--space-l); }
.mt-xl { margin-block-start: var(--space-xl); }
.mb-0  { margin-block-end: 0; }
.mb-m  { margin-block-end: var(--space-m); }
.mb-l  { margin-block-end: var(--space-l); }
.mx-auto { margin-inline: auto; }

/* --------------------------------------------------------------- display */

.hidden { display: none !important; }
.block  { display: block; }
.inline-flex { display: inline-flex; }

@media (max-width: 47.99rem) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 48rem) {
  .hide-desktop { display: none !important; }
}

/* ----------------------------------------------------------------- icons */

.icon {
  inline-size: 1em;
  block-size: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--filled {
  fill: currentColor;
  stroke: none;
}

/* Mirror directional glyphs in right-to-left layouts. */
[dir="rtl"] .icon--directional { transform: scaleX(-1); }

/* ---------------------------------------------------------------- aspect */

.aspect-square { aspect-ratio: 1; }
.aspect-video  { aspect-ratio: 16 / 9; }
.aspect-photo  { aspect-ratio: 4 / 3; }

.object-cover { object-fit: cover; inline-size: 100%; block-size: 100%; }

/* ---------------------------------------------------------------- scroll */

/* Horizontal scroller for card rows on narrow screens. */
.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16rem, 1fr);
  gap: var(--space-m);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block-end: var(--space-2xs);
  scrollbar-width: thin;
}

.scroller > * { scroll-snap-align: start; }

@media (min-width: 64rem) {
  .scroller {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
    overflow: visible;
  }
}

/* --------------------------------------------------------------- reveal */

/* Opt-in entrance animation, driven by an IntersectionObserver in main.js.
 * Content is visible from the start if JS never runs. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity var(--duration-slow) var(--ease-out),
      transform var(--duration-slow) var(--ease-out);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* --- css/parts/_print.css (base) --- */
/* Print styles. Course schedules and project pages do get printed and handed
 * out at the Beratungsstelle, so this is not a throwaway. */

@media print {
  :root {
    --surface: #fff;
    --surface-sunken: #fff;
    --surface-raised: #fff;
    --text: #000;
    --text-muted: #333;
    --border: #bbb;
  }

  .site-header,
  .site-footer__main,
  .mobile-menu,
  .search-dialog,
  .skip-link,
  .button,
  .newsletter-form,
  .social-links,
  .pagination {
    display: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.45;
  }

  .section { padding-block: 0.6cm; }

  :is(h1, h2, h3) {
    break-after: avoid;
    page-break-after: avoid;
  }

  :is(p, li, blockquote, figure, .card) {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Print the destination of links the reader cannot click. */
  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
    word-break: break-all;
  }

  .card { border: 1px solid #ccc; box-shadow: none; }

  img { max-inline-size: 12cm; }
}


/* The site's design layer — see the header comment in _flow.css. */
/* --- css/parts/_flow.css (base) --- */
/* Design variant "Flow".
 *
 * Built on what worked in Dossier — a numbered margin, a book measure, calm —
 * with the brand's own identity instead of a borrowed one. Three devices carry
 * it, and nothing else decorates:
 *
 *   the thread    a thin cyan line that runs down the margin and ties the
 *                 chapters together — one continuous flow through the page
 *   the water line  toned bands and the hero photograph end in a gentle wave,
 *                 the logo's curve at page scale
 *   the numerals  chapter numbers in Sora, the wordmark's geometry, in cyan
 *
 * Photography first; no illustration, no gradient washes, no pill buttons.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  --surface:        #ffffff;
  --surface-sunken: #f1f6fb;
  --surface-raised: #ffffff;
  --surface-accent: #e8f5fb;
  --surface-brand:  #1b4184;

  --text:        #12213a;
  --text-muted:  #46566d;
  --text-subtle: #7385a0;
  --text-link:   var(--brand-600);
  --text-link-hover: var(--brand-800);

  --border:        #d9e3ee;
  --border-strong: #b9c9da;
  --border-subtle: #e9f0f6;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --radius-xl: 18px;
  --radius-pill: 10px;              /* buttons are soft rectangles, not pills */

  --shadow-m: 0 8px 24px rgb(18 33 58 / 0.06);
  --shadow-l: 0 16px 40px rgb(18 33 58 / 0.10);

  --step-5: clamp(2.6rem, 1.9rem + 3.2vw, 4.4rem);
  --step-6: clamp(2.9rem, 1.7rem + 5vw, 5.6rem);
  --leading-tight: 1.05;
  --tracking-tight: -0.03em;
  --width-text: 44rem;

  /* The wave, as a mask for photographs and bands. */
  --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1000v930c-120 40-260 70-420 60S300 940 160 960 40 985 0 990z' fill='%23000'/%3E%3C/svg%3E");
  --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 40C140 10 280 0 440 12s300 40 400 22 120-20 160-30V1000H0z' fill='%23000'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0d1626; --surface-sunken: #12203a; --surface-raised: #12203a; --surface-accent: #10263f;
    --surface-brand: #1b4184;
    --text: #eaf1f9; --text-muted: #b5c3d6; --text-subtle: #7f92ad;
    --text-link: var(--brand-300); --text-link-hover: var(--brand-200);
    --border: #22345a; --border-strong: #35497a; --border-subtle: #182a48;
  }
}
:root[data-theme="dark"] {
  --surface: #0d1626; --surface-sunken: #12203a; --surface-raised: #12203a; --surface-accent: #10263f;
  --surface-brand: #1b4184;
  --text: #eaf1f9; --text-muted: #b5c3d6; --text-subtle: #7f92ad;
  --text-link: var(--brand-300); --text-link-hover: var(--brand-200);
  --border: #22345a; --border-strong: #35497a; --border-subtle: #182a48;
}

h1, h2, h3, h4, .card__title, .feature__title, .stat__value, .member__name, .impact-horizon__title, .timeline__title, .cta-band__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

/* ---------------------------------------------------------------- header */

.site-header {
  background-color: color-mix(in oklab, var(--surface) 92%, transparent);
  border-block-end: 1px solid var(--border-subtle);
}

.site-nav__link { font-weight: 500; }
.site-nav__item--active > .site-nav__link::after { background-color: var(--accent-500); }
.site-nav__submenu, .lang-switcher__menu { border-color: var(--border); box-shadow: var(--shadow-l); }

.button {
  --button-bg: var(--brand-700);
  --button-fg: #fff;
  --button-border: var(--brand-700);
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.button:hover { --button-bg: var(--brand-800); --button-border: var(--brand-800); }
.button--accent { --button-bg: var(--accent-500); --button-fg: #fff; --button-border: var(--accent-500); }
.button--accent:hover { --button-bg: var(--accent-600); --button-border: var(--accent-600); }
.button--secondary { --button-bg: transparent; --button-fg: var(--brand-700); --button-border: var(--border-strong); }
.button--secondary:hover { --button-bg: var(--surface-sunken); --button-border: var(--brand-500); }

/* ------------------------------------------------------------ the thread */

.page-main { counter-reset: fl-chapter; position: relative; }

.fl-section {
  position: relative;
  counter-increment: fl-chapter;
}

.fl-grid {
  display: grid;
  gap: var(--space-m) var(--space-2xl);
  align-items: start;
}

@media (min-width: 60rem) {
  .fl-grid { grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr); }
}

.fl-margin {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-inline-start: 1.25rem;
}

@media (min-width: 60rem) {
  .fl-margin { position: sticky; inset-block-start: 6rem; }
}

/* The line itself: one per chapter, they meet at the section boundaries so the
 * eye reads a single continuous thread down the page. */
.fl-margin::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: -0.25rem;
  inline-size: 2px;
  block-size: calc(100% + var(--section-gap) * 2);
  background: linear-gradient(to bottom, var(--accent-500), var(--brand-300) 60%, transparent);
  border-radius: 1px;
}

.fl-margin::after {
  content: "";
  position: absolute;
  inset-inline-start: -4px;
  inset-block-start: 0.35rem;
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  background-color: var(--accent-500);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-500) 18%, transparent);
}

.fl-numeral {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--accent-500);
  letter-spacing: -0.02em;
}

.fl-numeral::before { content: counter(fl-chapter, decimal-leading-zero); }

.fl-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.fl-title {
  font-size: var(--step-4);
  max-inline-size: 24ch;
  margin-block-end: var(--space-s);
  text-wrap: balance;
}

.fl-lead {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--text-muted);
  max-inline-size: var(--width-text);
  margin-block-end: var(--space-xl);
}

.fl-body > .fl-title:last-child, .fl-body > .fl-lead:last-child { margin-block-end: 0; }
.fl-section .section-header { display: none; }

/* Inside a brand band the thread turns white so it stays visible. */
.section--brand .fl-margin::before { background: linear-gradient(to bottom, #fff, color-mix(in oklab, #fff 40%, transparent) 60%, transparent); }
.section--brand .fl-margin::after { background-color: #fff; box-shadow: 0 0 0 4px color-mix(in oklab, #fff 22%, transparent); }
.section--brand .fl-numeral { color: var(--brand-200); }
.section--brand .fl-label { color: color-mix(in oklab, #fff 70%, transparent); }
.section--brand .fl-lead { color: color-mix(in oklab, #fff 82%, transparent); }

/* ------------------------------------------------------------ water line */

/* Toned bands begin with a gentle crest instead of a straight edge. */
.section--sunken, .section--brand, .section--inverse {
  position: relative;
  padding-block-start: calc(var(--section-gap) + 2.5rem);
  mask-image: var(--wave-top);
  -webkit-mask-image: var(--wave-top);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* ------------------------------------------------------------------ hero */

.fl-hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0;
}

.fl-hero__inner {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 60rem) {
  .fl-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-2xl);
  }
}

.fl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.fl-eyebrow::before {
  content: "";
  inline-size: 2.75rem;
  block-size: 2px;
  border-radius: 1px;
  background: linear-gradient(to right, var(--accent-500), var(--brand-300));
}

.fl-hero__title {
  font-size: var(--step-6);
  line-height: var(--leading-tight);
  margin-block: var(--space-m) var(--space-l);
  text-wrap: balance;
  max-inline-size: 16ch;
}

.fl-hero__lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-muted);
  max-inline-size: 34rem;
}

.fl-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-block-start: var(--space-l); }

.fl-hero__note {
  margin-block-start: var(--space-l);
  font-size: var(--step--1);
  color: var(--text-subtle);
}

/* The photograph ends in the water line. */
.fl-hero__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background-color: var(--surface-sunken);
  mask-image: var(--wave-bottom);
  -webkit-mask-image: var(--wave-bottom);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.fl-hero__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }

/* A cyan water line under the photograph, the logo's colour at rest. */
.fl-hero__media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 10px;
  background: linear-gradient(to right, var(--accent-500), var(--brand-500));
}

/* -------------------------------------------------------------- components */

.eyebrow { display: none; }

.card {
  border: 0;
  background: transparent;
  border-radius: 0;
}
.card--link:hover { transform: none; box-shadow: none; }
.card__media { border-radius: var(--radius-l); aspect-ratio: 4 / 3; }
.card__body { padding-inline: 0; padding-block: var(--space-s) 0; }
.card:not(:has(.card__media)) { border-block-start: 2px solid var(--accent-500); padding-block-start: var(--space-s); }
.card__title { font-size: var(--step-1); }
.card__meta { color: var(--brand-600); font-weight: 500; }

.feature { border: 0; background: transparent; padding-inline: 0; border-block-start: 2px solid var(--border); }
.feature__icon { background-color: var(--surface-accent); color: var(--brand-700); border-radius: var(--radius-m); }

.stats { gap: var(--space-l); grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
.stat { border: 0; background: transparent; padding-inline: 0; gap: var(--space-2xs); }
.stat::before { content: ""; display: block; inline-size: 2.5rem; block-size: 3px; border-radius: 2px; background: var(--accent-500); margin-block-end: var(--space-xs); }
.stat__value { font-size: var(--step-4); color: var(--brand-700); white-space: nowrap; }
.section--brand .stat::before { background: #fff; }
.section--brand .stat__value { color: #fff; }

.badge { border-radius: 6px; background: var(--surface-accent); border-color: transparent; color: var(--brand-700); }
.badge--active { background: var(--accent-50); color: var(--accent-700); }

.sdg-tile { border-radius: var(--radius-m); }
.sdg-badge { border-radius: 6px; }

.quote { padding-inline-start: var(--space-l); border-inline-start: 3px solid var(--accent-500); }
.quote__text { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); }
.quote__text::before, .quote__text::after { content: none; }

.media-text__media img, .figure img, .gallery img, .team-member__photo, .member__photo { border-radius: var(--radius-xl); }

.timeline::before { background: linear-gradient(to bottom, var(--accent-500), var(--brand-300)); }
.timeline__item::before { border-color: var(--accent-500); }
.timeline__date { color: var(--brand-600); }

.hero--washed { background: var(--surface); }

.site-footer { background: linear-gradient(180deg, #1b4184, #142f60); }

.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* --- css/parts/_flow-v2.css (base) --- */
/* Contrast-safe roles. --text-brand is brand blue as *text*: dark enough on
 * light surfaces, and swapped for a light blue in dark mode. --text-subtle is
 * lifted to 4.5:1 on white and on the sunken surface. Links: brand-700 clears
 * 4.5:1 on the sunken surface too; brand-600 did not. */
:root { --text-brand: var(--brand-700); --text-subtle: #56667a; --accent-ink: var(--brand-900); --text-link: var(--brand-700); --text-link-hover: var(--brand-900); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --text-brand: var(--brand-200); --text-subtle: var(--neutral-400); --text-link: var(--brand-200); --text-link-hover: var(--brand-100); } }
:root[data-theme="dark"] { --text-brand: var(--brand-200); --text-subtle: var(--neutral-400); --text-link: var(--brand-200); --text-link-hover: var(--brand-100); }

/* Flow v2 — the opening and the homepage's varied sections.
 *
 * Loaded after _flow.css. Adds: the assessment opening (the first three
 * seconds), the four doors for the four audiences, stations for the focus
 * areas, featured-plus-list layouts for projects and news, the agenda, the
 * quiet SDG strip, the photographic CTA, and the thread that fills as the
 * reader scrolls.
 */

/* ------------------------------------------------------- assessment hero */

.assess {
  position: relative;
  overflow: hidden;
  color: var(--text-on-brand);
  background: linear-gradient(160deg, var(--brand-950) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(5rem, 3rem + 6vw, 8rem);
  mask-image: var(--wave-bottom);
  -webkit-mask-image: var(--wave-bottom);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* The mark, very faint and very large: the brand is present in the first
 * frame without a logo pasted into a corner. */
.assess__mark {
  position: absolute;
  inset-block-start: -8%;
  inset-inline-end: -6%;
  inline-size: clamp(22rem, 46vw, 44rem);
  opacity: 0.09;
  pointer-events: none;
  filter: saturate(0.6) brightness(1.6);
}

.assess__mark img { inline-size: 100%; block-size: auto; background: none; }

.assess__inner {
  position: relative;
  display: grid;
  gap: var(--space-2xl);
}

@media (min-width: 64rem) {
  .assess__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}

.assess__title {
  font-size: var(--step-6);
  line-height: 1.02;
  color: var(--text-on-brand);
  margin-block: var(--space-m) var(--space-l);
  max-inline-size: 14ch;
  text-wrap: balance;
}

.assess__lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.82);
  max-inline-size: 30rem;
}

.assess__form { display: flex; flex-direction: column; gap: var(--space-l); }

.assess__group { border: 0; padding: 0; margin: 0; min-inline-size: 0; }

.assess__prompt {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  margin-block-end: var(--space-xs);
  color: var(--text-on-brand);
}

.assess__chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }

/* A chip is a radio input styled as a tap target. The input stays focusable
 * and announced; only its box is hidden. */
.chip { position: relative; }

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  cursor: pointer;
}

.chip > span {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.6rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-m);
  border: 1px solid rgb(255 255 255 / 0.28);
  background: rgb(255 255 255 / 0.06);
  color: var(--text-on-brand);
  font-size: var(--step-0);
  font-weight: 500;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.chip:hover > span { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.5); }
.chip input:focus-visible + span { outline: 3px solid var(--accent-300); outline-offset: 2px; }
.chip input:checked + span { background: var(--accent-500); border-color: var(--accent-500); transform: translateY(-1px); color: var(--accent-ink); font-weight: 600; }

.assess__result {
  padding: var(--space-m);
  border-radius: var(--radius-l);
  background: rgb(255 255 255 / 0.08);
  border-inline-start: 3px solid var(--accent-400);
}

.assess__result[hidden] { display: none; }

.assess__sentence {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--text-on-brand);
}

.assess__sentence em { color: var(--accent-300); font-style: normal; }

.assess__route { margin-block-start: var(--space-xs); color: rgb(255 255 255 / 0.85); }
.assess__route[hidden] { display: none; }
.assess__route a { color: var(--text-on-brand); font-weight: 600; }

.assess__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }

.assess__small { font-size: var(--step--1); color: rgb(255 255 255 / 0.72); }
.assess__small a { color: var(--text-on-brand); font-weight: 600; text-decoration: none; }
.assess__small a:hover { text-decoration: underline; }

.assess + .fl-section { padding-block-start: var(--section-gap); }

/* ----------------------------------------------------------------- doors */

/* Four audiences, four doors, one row. Each is a whole link. */
.doors {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-m);
  border-radius: var(--radius-l);
  background: var(--surface-sunken);
  border-block-start: 3px solid var(--brand-300);
  min-block-size: 11rem;
  transition: background-color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}

.door:nth-child(2) { border-block-start-color: var(--brand-500); }
.door:nth-child(3) { border-block-start-color: var(--text-brand); }
.door:nth-child(4) { border-block-start-color: var(--accent-500); }

.door:hover { background: var(--surface-accent); }

.door__who {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.door__title { font-size: var(--step-1); }
.door__title a { color: inherit; text-decoration: none; }
.door__title a::after { content: ""; position: absolute; inset: 0; }
/* The link is stretched over the whole card, so the focus ring belongs on the card. */
.door:has(.door__title a:focus-visible) { outline: 3px solid var(--accent-500); outline-offset: 2px; }
.door__title a:focus-visible { outline: none; }
.door__text { color: var(--text-muted); font-size: var(--step--1); }
.door__go { margin-block-start: auto; font-weight: 600; color: var(--text-brand); font-size: var(--step--1); }

/* -------------------------------------------------------------- stations */

.stations {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.station { position: relative; padding-block-start: var(--space-l); }

/* The line the stations sit on; a dot marks each stop. */
.station::before {
  content: "";
  position: absolute;
  inset-block-start: 0.55rem;
  inset-inline: 0;
  block-size: 2px;
  background: linear-gradient(to right, var(--brand-300), var(--accent-500));
}

.station::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 1.2rem;
  block-size: 1.2rem;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent-500);
}

.station__n {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-700);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
}

.station__title { font-size: var(--step-1); margin-block: var(--space-2xs) var(--space-xs); }
.station__text { color: var(--text-muted); }
.station__link { display: inline-block; margin-block-start: var(--space-xs); font-weight: 600; text-decoration: none; }

/* ----------------------------------------------------- featured + list */

.lead-item {
  display: grid;
  gap: var(--space-l);
  align-items: center;
  margin-block-end: var(--space-xl);
}

@media (min-width: 56rem) {
  .lead-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); }
}

.lead-item__media { display: block; border-radius: var(--radius-xl); overflow: hidden; }
.lead-item__media img,
.lead-item__media .image-placeholder { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.lead-item:hover .lead-item__media img { transform: scale(1.03); }
.lead-item__title { font-size: var(--step-3); margin-block: var(--space-xs) var(--space-s); }
.lead-item__title a { color: inherit; text-decoration: none; }
.lead-item__title a:hover { color: var(--text-brand); }
.lead-item__text { color: var(--text-muted); margin-block-end: var(--space-s); }

.row-list { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--border); }

.row-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-m);
  align-items: baseline;
  padding-block: var(--space-s);
  border-block-end: 1px solid var(--border);
}

@media (min-width: 48rem) {
  .row-item { grid-template-columns: 2.5rem minmax(0, 1fr) minmax(8rem, 12rem); }
}

.row-item__n { font-family: var(--font-display); font-weight: 700; color: var(--accent-700); font-size: var(--step--1); }
.row-item__title { font-size: var(--step-1); }
.row-item__title a { color: inherit; text-decoration: none; }
.row-item__title a:hover { color: var(--text-brand); }
.row-item__text { color: var(--text-muted); font-size: var(--step--1); margin-block-start: 0.2rem; }
.row-item__meta { font-size: var(--step--1); color: var(--text-subtle); }

@media (min-width: 48rem) { .row-item__meta { text-align: end; } }

/* ------------------------------------------------------------ front page */

.front { display: grid; gap: var(--space-xl); }

@media (min-width: 60rem) {
  .front { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-2xl); }
}

.front__media { display: block; border-radius: var(--radius-xl); overflow: hidden; margin-block-end: var(--space-s); }
.front__media img,
.front__media .image-placeholder { inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.front__title { font-size: var(--step-3); margin-block: var(--space-2xs) var(--space-xs); }
.front__title a, .front__item-title a { color: inherit; text-decoration: none; }
.front__title a:hover, .front__item-title a:hover { color: var(--text-brand); }
.front__text { color: var(--text-muted); }
.front__list { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--border); }
.front__item { padding-block: var(--space-s); border-block-end: 1px solid var(--border); }
.front__date { display: block; font-size: var(--step--1); color: var(--text-brand); font-weight: 600; }
.front__item-title { font-size: var(--step-1); margin-block: 0.2rem var(--space-3xs); }
.front__item-text { color: var(--text-muted); font-size: var(--step--1); }

/* ---------------------------------------------------------------- agenda */

.agenda { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--border); }

.agenda__item {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  gap: var(--space-m);
  align-items: start;
  padding-block: var(--space-m);
  border-block-end: 1px solid var(--border);
}

.agenda__date {
  display: grid;
  place-items: center;
  inline-size: 4.25rem;
  aspect-ratio: 1;
  border-radius: var(--radius-m);
  background: var(--surface-accent);
  color: var(--text-brand);
  line-height: 1;
}

.agenda__day { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); }
.agenda__month { font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.agenda__title { font-size: var(--step-1); }
.agenda__title a { color: inherit; text-decoration: none; }
.agenda__title a:hover { color: var(--text-brand); }
.agenda__text { color: var(--text-muted); font-size: var(--step--1); margin-block: 0.2rem var(--space-2xs); }
.agenda__meta { display: flex; flex-wrap: wrap; gap: 0.25rem var(--space-s); font-size: var(--step--1); color: var(--text-subtle); }

.agenda__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-brand);
}

.agenda__go:hover { background: var(--brand-700); color: var(--text-on-brand); border-color: var(--text-brand); }
.agenda__go .icon { inline-size: 1.1rem; block-size: 1.1rem; }

/* ------------------------------------------------------------- SDG strip */

.sdg-strip {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.sdg-stop {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  padding-block-start: var(--space-s);
  border-block-start: 3px solid var(--brand-200);
  transition: border-color var(--duration-base) var(--ease-out);
}

.sdg-stop:hover { border-block-start-color: var(--sdg-color); }

.sdg-stop__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  color: var(--text-brand);
  line-height: 1;
  transition: color var(--duration-base) var(--ease-out);
}

.sdg-stop:hover .sdg-stop__number { color: var(--sdg-color); }
.sdg-stop__title { font-weight: 600; font-size: var(--step--1); }
.sdg-stop__note { font-size: var(--step--1); color: var(--text-muted); }

/* ------------------------------------------------------------------- CTA */

.fl-cta {
  position: relative;
  overflow: hidden;
  color: var(--text-on-brand);
  min-block-size: clamp(20rem, 45vh, 30rem);
  display: grid;
  align-content: center;
  mask-image: var(--wave-top);
  -webkit-mask-image: var(--wave-top);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.fl-cta__media, .fl-cta__media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.fl-cta__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(14 37 87 / 0.92), rgb(32 80 160 / 0.7)); }
.fl-cta__content { position: relative; padding-block: var(--space-2xl); }
.fl-cta__title { font-size: var(--step-4); color: var(--text-on-brand); max-inline-size: 22ch; }
.fl-cta__text { margin-block: var(--space-s) var(--space-l); color: rgb(255 255 255 / 0.85); max-inline-size: 40rem; }

/* ------------------------------------------------------------ cover hero */

.fl-cover {
  position: relative;
  min-block-size: clamp(30rem, 78vh, 46rem);
  display: grid;
  align-content: end;
  color: var(--text-on-brand);
  overflow: hidden;
  mask-image: var(--wave-bottom);
  -webkit-mask-image: var(--wave-bottom);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.fl-cover__media, .fl-cover__media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.fl-cover__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgb(18 33 58 / 0.86) 0%, rgb(18 33 58 / 0.55) 45%, rgb(18 33 58 / 0.15) 100%); }
.fl-cover__content { position: relative; padding-block: var(--space-2xl) var(--space-xl); }
.fl-eyebrow--light { color: var(--accent-300); }
.fl-eyebrow--light::before { background: linear-gradient(to right, var(--accent-300), var(--neutral-0)); }
.fl-cover__title { font-size: var(--step-6); line-height: 1.02; color: var(--text-on-brand); max-inline-size: 16ch; margin-block: var(--space-m) var(--space-l); text-wrap: balance; }
.fl-cover__lead { font-size: var(--step-1); line-height: 1.5; color: rgb(255 255 255 / 0.85); max-inline-size: 34rem; }
.fl-cover__foot { position: relative; display: flex; justify-content: space-between; gap: var(--space-m); padding-block-end: 4rem; font-size: var(--step--1); color: rgb(255 255 255 / 0.7); }

/* --------------------------------------------------- the thread, filling */

/* As the reader scrolls, the thread beside each chapter fills with cyan — the
 * flow follows the reader. Scroll-driven animation only; browsers without it
 * keep the static gradient. */
@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fl-margin::before {
      background: linear-gradient(to bottom, var(--accent-500) 0 var(--fill), var(--border) var(--fill));
      animation: fl-fill linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
    @keyframes fl-fill { from { --fill: 0%; } to { --fill: 100%; } }
  }
}

/* ---------------------------------------------------------- needs wizard */

.wizard-hero {
  position: relative;
  overflow: hidden;
  color: var(--text-on-brand);
  background: linear-gradient(160deg, var(--brand-950) 0%, var(--brand-800) 60%, var(--brand-700) 100%);
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(5rem, 3rem + 6vw, 8rem);
}

/* The water line is drawn as an overlay in the page colour rather than as a
 * mask on the section: a mask over an animating canvas has to be recomputed
 * every frame and stalled slower machines. */
.wizard-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  block-size: clamp(3rem, 6vw, 5.5rem);
  background-color: var(--surface);
  mask-image: var(--wave-top); -webkit-mask-image: var(--wave-top);
  mask-size: 100% 100%; -webkit-mask-size: 100% 100%; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  pointer-events: none;
}

.wizard-hero__field { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }

.wizard-hero__inner { position: relative; display: grid; gap: var(--space-2xl); }
@media (min-width: 64rem) {
  .wizard-hero__inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr; align-items: start; row-gap: var(--space-xl); }
  .wizard-hero__head { grid-column: 1; grid-row: 1; }
  .wizard-hero__facts { grid-column: 1; grid-row: 2; align-self: start; }
  .wizard-hero .wizard { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 63.98rem) { .wizard-hero__inner { gap: var(--space-xl); } .wizard-hero__facts { order: 3; } }

.wizard-hero__title { font-size: var(--step-5); line-height: 1.05; color: var(--text-on-brand); margin-block: var(--space-m) var(--space-m); max-inline-size: 16ch; text-wrap: balance; }
.wizard-hero__lead { font-size: var(--step-1); line-height: 1.5; color: rgb(255 255 255 / 0.85); max-inline-size: 28rem; }

/* Trust row: facts, not adjectives. */
.wizard-hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; color: rgb(255 255 255 / 0.7); }
.wizard-hero__facts li { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.wizard-hero__facts li::before { content: ""; inline-size: 0.4rem; block-size: 0.4rem; border-radius: 50%; background: var(--accent-400); }

.wizard {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-l);
  padding: var(--space-l);
  border-radius: var(--radius-xl);
  /* Solid rather than blurred: a backdrop blur over an animating canvas forces
   * a full repaint every frame and stalls slower machines. */
  background: rgb(9 24 58 / 0.78);
  border: 1px solid rgb(255 255 255 / 0.12);
}

.wizard__progress { display: flex; flex-direction: column; gap: var(--space-2xs); font-size: var(--step--1); color: rgb(255 255 255 / 0.7); }
.wizard__bar { display: block; block-size: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.15); overflow: hidden; }
.wizard__bar-fill { display: block; block-size: 100%; background: var(--accent-500); transition: inline-size var(--duration-slow) var(--ease-out); }

.wizard__step { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.wizard__step[hidden] { display: none; }

.wizard__question { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.2; color: var(--text-on-brand); margin-block-end: var(--space-s); }
.wizard__n { display: block; font-size: var(--step--1); color: var(--accent-300); letter-spacing: 0.08em; margin-block-end: var(--space-3xs); }
.wizard__hint { color: rgb(255 255 255 / 0.72); margin-block: calc(-1 * var(--space-2xs)) var(--space-s); font-size: var(--step--1); }

/* Without JavaScript all steps show; give them room to breathe. */
.no-js .wizard__step + .wizard__step { margin-block-start: var(--space-m); padding-block-start: var(--space-m); border-block-start: 1px solid rgb(255 255 255 / 0.12); }

.wizard__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); }
.wizard__nav [hidden] { display: none; }

.wizard__summary { font-family: var(--font-display); font-weight: 600; color: var(--accent-300); font-size: var(--step-0); margin-block-end: var(--space-m); }

.wizard__group + .wizard__group { margin-block-start: var(--space-m); }
.wizard__group-title { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(255 255 255 / 0.65); margin-block-end: var(--space-xs); }
.wizard__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.wizard__offer { display: grid; gap: 0.15rem; padding: var(--space-s); border-radius: var(--radius-m); background: rgb(255 255 255 / 0.08); border-inline-start: 3px solid var(--accent-400); }
.wizard__offer-title { font-weight: 600; }
.wizard__offer-text { font-size: var(--step--1); color: rgb(255 255 255 / 0.8); }
.wizard__offer-link { font-size: var(--step--1); font-weight: 600; color: var(--text-on-brand); text-decoration: none; margin-block-start: 0.2rem; }
.wizard__offer-link:hover { text-decoration: underline; }

.wizard__contact { margin-block-start: var(--space-l); padding-block-start: var(--space-m); border-block-start: 1px solid rgb(255 255 255 / 0.15); display: grid; gap: var(--space-s); }
.wizard__contact-title { font-size: var(--step-1); color: var(--text-on-brand); }
.wizard__fields { display: grid; gap: var(--space-s); }
@media (min-width: 40rem) { .wizard__fields { grid-template-columns: 1fr 1fr; } }
.wizard .field__label { color: rgb(255 255 255 / 0.85); }
.wizard .input { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.28); color: var(--text-on-brand); }
.wizard .input::placeholder { color: rgb(255 255 255 / 0.5); }
.wizard .input:focus-visible { border-color: var(--accent-300); box-shadow: 0 0 0 3px rgb(98 205 232 / 0.3); }
.wizard__consent { color: rgb(255 255 255 / 0.8); }
.wizard__consent a { color: var(--text-on-brand); }

/* The door step: four large chips, then an exit panel for the doors that leave. */
.assess__chips--large { display: grid; gap: var(--space-xs); grid-template-columns: 1fr; }
@media (min-width: 30rem) { .assess__chips--large { grid-template-columns: 1fr 1fr; } }
.assess__chips--large .chip > span { display: flex; align-items: center; justify-content: center; text-align: center; min-block-size: 3.6rem; padding: var(--space-s) var(--space-m); font-size: var(--step-0); font-weight: 600; }
.wizard__exit { margin-block-start: var(--space-m); padding: var(--space-m); border-radius: var(--radius-l); background: rgb(255 255 255 / 0.08); border-inline-start: 3px solid var(--accent-400); display: grid; gap: var(--space-s); justify-items: start; }
.wizard__exit[hidden] { display: none; }
.wizard__exit-text { color: rgb(255 255 255 / 0.9); margin: 0; }
.no-js .wizard__exit { display: grid; }

/* ------------------------------------------------------------------ story */
.story { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 60rem) { .story { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-2xl); } }
.story__media { border-radius: var(--radius-xl); overflow: hidden; }
.story__media img, .story__media .image-placeholder { inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story__arc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); margin: 0 0 var(--space-l); padding-block-end: var(--space-m); border-block-end: 1px solid var(--border); }
.story__arc dt { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); margin-block-end: var(--space-3xs); }
.story__arc dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.25; }
.story__now dd { color: var(--text-brand); }
.story__text { font-size: var(--step-1); line-height: 1.5; }
.story__text p + p { margin-block-start: var(--space-s); }
.story__who { margin-block-start: var(--space-l); display: grid; gap: 0.1rem; }
.story__name { font-weight: 700; }
.story__role { color: var(--text-muted); font-size: var(--step--1); }
.story__link { display: inline-block; margin-block-start: var(--space-m); font-weight: 600; text-decoration: none; }
.story__link:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- latest */
.latest { display: grid; gap: var(--space-2xl); align-items: start; }
@media (min-width: 60rem) { .latest { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-3xl); } }
.latest__heading { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); margin-block-end: var(--space-m); padding-block-end: var(--space-xs); border-block-end: 1px solid var(--border); }
.latest .front__title { font-size: var(--step-2); }
.latest .front__list { margin-block-start: var(--space-m); border-block-start: 0; }
.latest .agenda { border-block-start: 0; }

/* Four stations in one row where there is room, so the path reads as a line. */
@media (min-width: 64rem) { .steps--four .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* -------------------------------------------------------------- campaigns */
.campaigns { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-l); }
@media (min-width: 52rem) { .campaigns { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); } }
.campaign { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.campaign__media img, .campaign__media .image-placeholder { inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.campaign__body { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-l); flex: 1; }
.campaign__title { font-size: var(--step-2); }
.campaign__text { color: var(--text-muted); }
.campaign__progress { margin-block-start: auto; display: grid; gap: var(--space-2xs); padding-block-start: var(--space-s); }
.campaign__bar { block-size: 0.6rem; border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--border); overflow: hidden; }
.campaign__fill { display: block; block-size: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-600), var(--accent-500)); transition: inline-size var(--duration-slow) var(--ease-out); }
.campaign__numbers { display: flex; justify-content: space-between; gap: var(--space-s); font-size: var(--step-0); margin: 0; }
.campaign__percent { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.campaign__deadline { margin: 0; font-size: var(--step--1); color: var(--text-subtle); }
.campaign__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); padding-block-start: var(--space-xs); }
.campaign__purpose { font-size: var(--step--1); color: var(--text-muted); }
.campaign--closed { opacity: 0.85; }
.campaign--closed .campaign__fill { background: var(--neutral-400); }

/* ------------------------------------------------------------------- give */
.give { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 52rem) { .give { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .give { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); } }
.give__col { display: grid; gap: var(--space-s); align-content: start; }
.give__col--regular { padding: var(--space-l); border-radius: var(--radius-xl); background: var(--surface-sunken); border: 1px solid var(--border); }
.give__heading { font-size: var(--step-2); margin-block-end: var(--space-2xs); }
.give__sub { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); margin-block-start: var(--space-s); }
.give__text { color: var(--text-muted); margin: 0; }
.give__col .button { justify-self: start; }
.give__impact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-s); }
.give__impact li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-s); align-items: start; }
.fact-list--tight { gap: var(--space-2xs); }
.campaign__transfer { font-size: var(--step--1); font-weight: 600; }
/* In three columns the label/value table is too narrow; stack it. */
.give .fact-list > div { display: grid; grid-template-columns: 1fr; gap: 0.15rem; }
.give .fact-list code { white-space: nowrap; }

/* ---------------------------------------------------------------- courses */
.courses { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.course { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-l); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--border); }
.course__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); }
.course__price { font-size: var(--step--1); font-weight: 700; color: var(--text-brand); }
.course__title { font-size: var(--step-2); line-height: 1.15; }
.course__text { color: var(--text-muted); }
.course__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs) var(--space-m); margin: var(--space-s) 0 0; padding-block: var(--space-s); border-block: 1px solid var(--border); }
.course__facts dt { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); }
.course__facts dd { margin: 0; font-size: var(--step--1); }
.course__foot { margin-block-start: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s); padding-block-start: var(--space-xs); }
.course__next { margin: 0; display: grid; gap: 0.1rem; font-weight: 600; }
.course__next-label { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); }
.course__more { inline-size: 100%; font-size: var(--step--1); font-weight: 600; text-decoration: none; }
.course__more:hover { text-decoration: underline; }

/* --------------------------------------------------- logos: text fallback */
.logo-wall__text { display: inline-block; padding: var(--space-2xs) var(--space-s); border: 1px solid var(--border-strong); border-radius: var(--radius-s); font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); letter-spacing: 0.01em; color: var(--text-muted); text-decoration: none; }
.logo-wall a.logo-wall__text:hover { color: var(--text-brand); border-color: var(--text-brand); }

/* -------------------------------------------------------------- downloads */
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.download { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-m); padding: var(--space-s) var(--space-m); border-radius: var(--radius-m); background: var(--surface-raised); border: 1px solid var(--border); }
.download__icon .icon { inline-size: 1.4rem; block-size: 1.4rem; color: var(--text-brand); }
.download__body { display: grid; gap: 0.1rem; min-inline-size: 0; }
.download__title { font-weight: 600; }
.download__text { font-size: var(--step--1); color: var(--text-muted); }
@media (max-width: 40rem) { .download { grid-template-columns: auto 1fr; } .download .button { grid-column: 2; justify-self: start; } }

/* ------------------------------------------------------------- allocation */
.allocation { display: grid; gap: var(--space-m); }
.allocation__bar { display: flex; block-size: 2.4rem; border-radius: var(--radius-pill); overflow: hidden; background: var(--surface-sunken); }
.allocation__seg { display: flex; align-items: center; justify-content: center; color: var(--text-on-brand); font-weight: 700; font-size: var(--step--1); min-inline-size: 0; }
.allocation__seg--1 { background: var(--brand-700); }
.allocation__seg--2 { background: var(--accent-500); }
.allocation__seg--3 { background: var(--brand-300); }
.allocation__seg--4 { background: var(--neutral-400); }
.allocation__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.allocation__item { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "swatch percent label" "swatch text text"; column-gap: var(--space-xs); align-items: baseline; }
.allocation__swatch { grid-area: swatch; inline-size: 0.9rem; block-size: 0.9rem; border-radius: var(--radius-xs); align-self: start; margin-block-start: 0.35rem; }
.allocation__percent { grid-area: percent; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.allocation__label { grid-area: label; font-weight: 600; }
.allocation__text { grid-area: text; font-size: var(--step--1); color: var(--text-muted); }
.allocation__note { margin: 0; font-size: var(--step--1); color: var(--text-subtle); }

/* --------------------------------------------------------------- channels */
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
.channel__link { display: grid; gap: 0.15rem; block-size: 100%; padding: var(--space-m); border-radius: var(--radius-l); background: var(--surface-raised); border: 1px solid var(--border); border-block-start: 3px solid var(--brand-600); text-decoration: none; color: inherit; transition: transform var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out); }
.channel__link:hover { transform: translateY(-2px); border-color: var(--text-brand); }
.channel--whatsapp .channel__link { border-block-start-color: #25d366; /* WhatsApp brand green, deliberately not a token */ }
.channel--email .channel__link { border-block-start-color: var(--accent-500); }
.channel--visit .channel__link { border-block-start-color: var(--brand-900); }
.channel__icon .icon { inline-size: 1.6rem; block-size: 1.6rem; color: var(--text-brand); margin-block-end: var(--space-2xs); }
.channel__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.channel__value { font-weight: 600; font-size: var(--step--1); color: var(--text-brand); overflow-wrap: anywhere; }
.channel__text { font-size: var(--step--1); color: var(--text-muted); }
.answer { display: flex; gap: var(--space-m); align-items: flex-start; margin-block-start: var(--space-xl); padding: var(--space-m) var(--space-l); border-radius: var(--radius-xl); background: var(--surface-sunken); }
.answer__photo, .answer__initials { flex: none; inline-size: 3.5rem; block-size: 3.5rem; border-radius: 50%; object-fit: cover; }
.answer__initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-300), var(--brand-600)); color: var(--text-on-brand); font-weight: 700; }
.answer__who { margin: 0 0 var(--space-3xs); }
.answer__text { margin: 0; color: var(--text-muted); }
.answer__langs { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.answer__langs li { padding: 0.15rem var(--space-xs); border-radius: var(--radius-pill); background: var(--surface-raised); border: 1px solid var(--border); font-size: var(--step--1); }

/* --------------------------------------------------- project card facts */
.card__facts { display: grid; gap: var(--space-2xs); margin: var(--space-s) 0 0; padding-block-start: var(--space-s); border-block-start: 1px solid var(--border); }
.card__facts > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-xs); font-size: var(--step--1); }
.card__facts dt { color: var(--text-subtle); font-weight: 600; }
.card__facts dd { margin: 0; color: var(--text-muted); }
.sdg-list--compact { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.sdg-list--compact .sdg-badge { font-size: var(--step--2); padding-block: 0.2rem; }
.sdg-badge__title { overflow-wrap: anywhere; }

/* --------------------------------------------------------- sample profile */
.profile-sample { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 60rem) { .profile-sample { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-2xl); } }
.profile { display: grid; gap: var(--space-m); padding: var(--space-l); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--border); box-shadow: var(--shadow-xl); }
.profile__head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-s); align-items: center; }
.profile__avatar { display: grid; place-items: center; inline-size: 3.5rem; block-size: 3.5rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand-300), var(--brand-700)); color: var(--text-on-brand); font-weight: 700; font-size: var(--step-0); }
.profile__headline { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; }
.profile__meta { margin: 0; font-size: var(--step--1); color: var(--text-muted); }
.profile__badge { align-self: start; }
.profile__badge .icon { inline-size: 0.9rem; block-size: 0.9rem; }
.profile__section { display: grid; gap: var(--space-2xs); padding-block-start: var(--space-s); border-block-start: 1px solid var(--border); }
.profile__section p { margin: 0; }
.profile__label { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); }
.profile__chips, .profile__skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.profile__chips li { padding: 0.2rem var(--space-xs); border-radius: var(--radius-pill); background: var(--surface-sunken); font-size: var(--step--1); }
.profile__skills li { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem var(--space-xs); border-radius: var(--radius-s); border: 1px solid var(--border); font-size: var(--step--1); color: var(--text-muted); }
.profile__skills li.is-verified { border-color: color-mix(in oklab, var(--accent-500) 50%, transparent); color: var(--text); }
.profile__skills .icon { inline-size: 0.9rem; block-size: 0.9rem; color: var(--accent-500); }
.profile__feedback { margin: 0; padding: var(--space-s) var(--space-m); border-inline-start: 3px solid var(--accent-500); background: var(--surface-sunken); border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: var(--radius-m); border-end-end-radius: var(--radius-m); }
.profile__feedback p { margin: 0; font-style: italic; }
.profile__feedback footer { margin-block-start: var(--space-2xs); font-size: var(--step--1); color: var(--text-muted); }
.profile__note { margin: 0; font-size: var(--step--1); color: var(--text-subtle); }
.profile-sample__points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m); }
.profile-sample__points p { margin: 0; color: var(--text-muted); }
.profile-sample__point-title { font-size: var(--step-1); margin-block-end: var(--space-3xs); }

/* ------------------------------------------------------ hero: page types */
.fl-hero--plain .fl-hero__plain { max-inline-size: 48rem; }
.fl-hero--plain .fl-hero__title { font-size: var(--step-5); max-inline-size: 22ch; }
.fl-hero--catalogue { padding-block-end: 0; }
.fl-hero--catalogue .fl-hero__title { font-size: var(--step-5); max-inline-size: 24ch; }
.catalogue-facts { list-style: none; margin: var(--space-l) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); font-weight: 600; color: var(--text-muted); }
.catalogue-facts li { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.catalogue-facts li::before { content: ""; inline-size: 0.45rem; block-size: 0.45rem; border-radius: 50%; background: var(--accent-500); }
.catalogue-anchors { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-block-start: var(--space-m); padding-block: var(--space-m); border-block-start: 1px solid var(--border); }
.catalogue-anchor { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-m); border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-weight: 600; text-decoration: none; color: inherit; }
.catalogue-anchor:hover { border-color: var(--text-brand); color: var(--text-brand); }
.catalogue-anchor__n { font-size: var(--step--1); color: var(--accent-700); font-weight: 700; }

.faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-s); align-self: center; }
.face { display: grid; gap: var(--space-2xs); text-align: center; }
.face img, .face__initials { inline-size: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.face__initials { display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-100), var(--brand-300)); color: var(--brand-800); font-weight: 700; font-size: var(--step-2); }
.face--placeholder .face__initials { background: var(--surface-sunken); border: 2px dashed var(--border-strong); color: var(--text-subtle); }
.face__name { font-size: var(--step--1); font-weight: 600; color: var(--text-muted); overflow-wrap: anywhere; }

.contact-card { display: grid; gap: var(--space-m); padding: var(--space-l); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--border); border-block-start: 4px solid var(--accent-500); align-self: center; }
.contact-card__who { display: flex; gap: var(--space-s); align-items: center; }
.contact-card__photo, .contact-card__initials { flex: none; inline-size: 4rem; block-size: 4rem; border-radius: 50%; object-fit: cover; }
.contact-card__initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-300), var(--brand-700)); color: var(--text-on-brand); font-weight: 700; }
.contact-card__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.contact-card__role { margin: 0; color: var(--text-muted); font-size: var(--step--1); }
.contact-card__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.contact-card__lines a, .contact-card__static { display: flex; align-items: center; gap: var(--space-s); text-decoration: none; color: inherit; font-weight: 600; }
.contact-card__lines a:hover { color: var(--text-brand); }
.contact-card__lines .icon { flex: none; inline-size: 1.2rem; block-size: 1.2rem; color: var(--text-brand); }
.contact-card__static { font-weight: 500; color: var(--text-muted); }
.contact-card__text { margin: 0; font-size: var(--step--1); color: var(--text-muted); }

/* ---------------------------------------------------------- a11y: colour */
.button--accent { --button-fg: var(--accent-ink); }
.button--accent:hover { --button-bg: var(--accent-400); --button-border: var(--accent-400); --button-fg: var(--accent-ink); }
.button--secondary { --button-fg: var(--text-brand); }
.fl-label { color: var(--text-subtle); }
.badge--accent { color: var(--accent-800); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge--accent { color: var(--accent-200); border-color: color-mix(in oklab, var(--accent-500) 40%, transparent); background: color-mix(in oklab, var(--accent-500) 16%, transparent); }
  :root:not([data-theme="light"]) .catalogue-anchor__n, :root:not([data-theme="light"]) .station__n, :root:not([data-theme="light"]) .row-item__n { color: var(--accent-300); }
  :root:not([data-theme="light"]) .fl-eyebrow, :root:not([data-theme="light"]) .site-nav__toggle { color: var(--text-brand); }
}
:root[data-theme="dark"] .badge--accent { color: var(--accent-200); border-color: color-mix(in oklab, var(--accent-500) 40%, transparent); background: color-mix(in oklab, var(--accent-500) 16%, transparent); }
:root[data-theme="dark"] .catalogue-anchor__n, :root[data-theme="dark"] .station__n, :root[data-theme="dark"] .row-item__n { color: var(--accent-300); }
:root[data-theme="dark"] .fl-eyebrow, :root[data-theme="dark"] .site-nav__toggle { color: var(--text-brand); }

/* --------------------------------------------------------------- promises */
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.promise { display: grid; grid-template-columns: auto 1fr; gap: var(--space-s); align-items: start; }
.promise__icon { display: grid; place-items: center; inline-size: 2rem; block-size: 2rem; border-radius: 50%; background: var(--accent-500); color: var(--accent-ink); }
.promise__icon .icon { inline-size: 1.1rem; block-size: 1.1rem; }
.promise__title { font-size: var(--step-1); line-height: 1.2; margin-block-end: var(--space-3xs); }
.promise__text { color: var(--text-muted); }
.promises__note { margin-block-start: var(--space-l); color: var(--text-muted); font-size: var(--step--1); }

/* ----------------------------------------------------------- agenda strip */
.agenda-strip { background: var(--surface-sunken); border-block-end: 1px solid var(--border); }
.agenda-strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-l); padding-block: var(--space-s); }
.agenda-strip__label { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); white-space: nowrap; }
.agenda-strip__label .icon { inline-size: 1rem; block-size: 1rem; }
.agenda-strip__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-l); flex: 1; }
.agenda-strip__item a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-xs); text-decoration: none; color: inherit; font-size: var(--step--1); }
.agenda-strip__item a:hover .agenda-strip__title { text-decoration: underline; }
.agenda-strip__item time { font-weight: 700; color: var(--text-brand); font-variant-numeric: tabular-nums; }
.agenda-strip__title { font-weight: 600; }
.agenda-strip__meta { color: var(--text-muted); }
.agenda-strip__all { font-size: var(--step--1); font-weight: 600; text-decoration: none; white-space: nowrap; }
.agenda-strip__all:hover { text-decoration: underline; }

/* ---------------------------------------------------- opening: photograph */
.wizard-hero__photo { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center 30%; }
.wizard-hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgb(11 31 77 / 0.94) 0%, rgb(27 65 132 / 0.86) 55%, rgb(32 80 160 / 0.72) 100%); }
.wizard-hero--photo .wizard-hero__field { opacity: 0.55; }
.chip--door > span { flex-direction: column; gap: 0.15rem; padding-block: var(--space-s); }
.chip--door .chip__who { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.allocation__seg-label { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card__meta time, :root:not([data-theme="light"]) .front__date, :root:not([data-theme="light"]) time { color: var(--text-brand); }
  :root:not([data-theme="light"]) button[data-tag] { --button-fg: var(--text-brand); color: var(--text-brand); }
  :root:not([data-theme="light"]) .site-nav__link[aria-current="page"] { color: var(--text); }
}
:root[data-theme="dark"] .card__meta time, :root[data-theme="dark"] .front__date, :root[data-theme="dark"] time { color: var(--text-brand); }
:root[data-theme="dark"] button[data-tag] { --button-fg: var(--text-brand); color: var(--text-brand); }
:root[data-theme="dark"] .site-nav__link[aria-current="page"] { color: var(--text); }
/* The audience word above a door sentence is a label, not a second chip. */
.chip--door .chip__who { display: block; }
/* SDG tiles keep the UN colour but deepened enough for white text to pass
 * 4.5:1 on every goal, including the reds and the magenta. */
.sdg-tile { background-color: color-mix(in oklab, var(--sdg-color) 74%, var(--brand-950)); }
.sdg-tile__title, .sdg-tile__text { color: var(--text-on-brand); }
.allocation__seg--1 .allocation__seg-label { color: var(--text-on-brand); }
.card__meta > span:not(.badge) { color: var(--text-brand); }

/* Brand blue as text goes through --text-brand everywhere, so dark mode can
 * swap it for a light blue. */
.impact-horizon__period, .member__role, .card__meta, .timeline__date { color: var(--text-brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .badge { color: var(--text-brand); border-color: var(--border-strong); } }
:root[data-theme="dark"] .card .badge { color: var(--text-brand); border-color: var(--border-strong); }

/* Home: doors only. A link styled as a chip; the whole card is four taps. */
.wizard--doors { gap: var(--space-m); }
.wizard--doors .wizard__question { margin-block-end: 0; }
.chip--link { display: block; text-decoration: none; color: inherit; }
.chip--link:hover > span { background: rgb(255 255 255 / 0.14); border-color: rgb(255 255 255 / 0.6); transform: translateY(-1px); }
.chip--link:focus-visible { outline: none; }
.chip--link:focus-visible > span { outline: 3px solid var(--accent-300); outline-offset: 2px; }
.chip--door.chip--link > span { transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.wizard__hint--after { margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge--active, :root:not([data-theme="light"]) .badge--completed { background: color-mix(in oklab, var(--success-500) 18%, transparent); color: var(--success-300); border-color: color-mix(in oklab, var(--success-500) 40%, transparent); } }
:root[data-theme="dark"] .badge--active, :root[data-theme="dark"] .badge--completed { background: color-mix(in oklab, var(--success-500) 18%, transparent); color: var(--success-300); border-color: color-mix(in oklab, var(--success-500) 40%, transparent); }

/* ------------------------------------------------------------------- RTL */
/* Gradients have no logical direction keyword, so the ones that run with the
 * reading direction are mirrored here. */
[dir="rtl"] .station::before { background: linear-gradient(to left, var(--brand-300), var(--accent-500)); }
[dir="rtl"] .fl-eyebrow--light::before { background: linear-gradient(to left, var(--accent-300), var(--neutral-0)); }
[dir="rtl"] .fl-cta__scrim { background: linear-gradient(270deg, rgb(14 37 87 / 0.92), rgb(32 80 160 / 0.7)); }
[dir="rtl"] .campaign__fill { background: linear-gradient(270deg, var(--brand-600), var(--accent-500)); }
[dir="rtl"] .wizard-hero__scrim { background: linear-gradient(260deg, rgb(11 31 77 / 0.94) 0%, rgb(27 65 132 / 0.86) 55%, rgb(32 80 160 / 0.72) 100%); }

/* ------------------------------------------------------------ org profile */
.org-profile { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 60rem) { .org-profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); } }
.org-profile__facts { margin: 0; display: grid; gap: var(--space-2xs); }
.org-profile__facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-s); padding-block: var(--space-xs); border-block-end: 1px solid var(--border); }
.org-profile__facts dt { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); align-self: center; }
.org-profile__facts dd { margin: 0; }
.org-profile__lists { display: grid; gap: var(--space-m); }
.org-profile__label { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); margin-block-end: var(--space-2xs); }
.org-profile__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.org-profile__chips li { padding: 0.25rem var(--space-xs); border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--border); font-size: var(--step--1); }
.org-profile__note { margin: 0; color: var(--text-muted); font-size: var(--step--1); }

/* ----------------------------------------------------------- person card */
.person-card { display: flex; gap: var(--space-m); align-items: flex-start; padding: var(--space-l); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--border); border-inline-start: 4px solid var(--accent-500); max-inline-size: 40rem; }
.person-card__photo, .person-card__initials { flex: none; inline-size: 5rem; block-size: 5rem; border-radius: 50%; object-fit: cover; }
.person-card__initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-300), var(--brand-700)); color: var(--text-on-brand); font-weight: 700; font-size: var(--step-1); }
.person-card__body { display: grid; gap: var(--space-2xs); min-inline-size: 0; }
.person-card__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.person-card__role { margin: 0; color: var(--text-brand); font-weight: 600; }
.person-card__text { margin: 0; color: var(--text-muted); }
.person-card__lines { list-style: none; margin: var(--space-2xs) 0 0; padding: 0; display: grid; gap: var(--space-2xs); }
.person-card__lines a { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; color: inherit; font-weight: 600; overflow-wrap: anywhere; }
.person-card__lines a:hover { color: var(--text-brand); }
.person-card__lines .icon { flex: none; inline-size: 1.1rem; block-size: 1.1rem; color: var(--brand-600); }
.person-card__meta { margin: 0; font-size: var(--step--1); color: var(--text-subtle); }

/* ------------------------------------------------------------------ tiers */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-l); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--border); }
.tier--highlight { border-color: var(--accent-500); box-shadow: var(--shadow-l); }
.tier__title { font-size: var(--step-1); }
.tier__amount { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.1; color: var(--text-brand); }
.tier__note { margin: 0; font-size: var(--step--1); color: var(--text-subtle); }
.tier__text { margin: 0; color: var(--text-muted); }
.tier__includes { list-style: none; margin: var(--space-s) 0 0; padding-block-start: var(--space-s); border-block-start: 1px solid var(--border); display: grid; gap: var(--space-2xs); }
.tier__includes li { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: var(--step--1); }
.tier__includes .icon { flex: none; inline-size: 1rem; block-size: 1rem; color: var(--accent-600); margin-block-start: 0.15rem; }
.tier__action { margin-block-start: auto; align-self: start; }
.tiers__note { margin-block-start: var(--space-l); color: var(--text-muted); font-size: var(--step--1); }

/* ------------------------------------------------------ project: results */
.project-results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.project-results li { display: flex; gap: var(--space-xs); align-items: flex-start; }
.project-results .icon { flex: none; inline-size: 1.1rem; block-size: 1.1rem; color: var(--accent-600); margin-block-start: 0.2rem; }
@media print { .person-card, .tier, .org-profile__facts > div { break-inside: avoid; } }

/* ------------------------------------------------------- warm accent in use */
.button--donate, .button--warm { --button-bg: var(--warm-500); --button-border: var(--warm-500); --button-fg: var(--brand-950); }
.button--donate:hover, .button--warm:hover { --button-bg: var(--warm-400); --button-border: var(--warm-400); --button-fg: var(--brand-950); }
.campaign__fill { background: linear-gradient(90deg, var(--warm-600), var(--warm-400)); }
.tier--highlight { border-color: var(--warm-500); }
.tier--highlight .tier__amount { color: var(--warm-700); }
.story__now dd { color: var(--warm-700); }
.promise__icon { background: var(--warm-100); color: var(--warm-700); }
.fl-cover__scrim { background: linear-gradient(to top, rgb(11 31 77 / 0.92) 0%, rgb(11 31 77 / 0.62) 45%, rgb(11 31 77 / 0.2) 100%); }
.fl-cover--home { min-block-size: clamp(34rem, 84vh, 50rem); }
.fl-cover--home .fl-cover__title { font-size: var(--step-5); max-inline-size: 22ch; }
.fl-cover--home .fl-cover__lead { max-inline-size: 38rem; font-size: var(--step-1); }
.fl-cover__note { color: rgb(255 255 255 / 0.8); font-weight: 600; letter-spacing: 0.02em; font-size: var(--step--1); margin-block-start: var(--space-m); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .story__now dd, :root:not([data-theme="light"]) .tier--highlight .tier__amount { color: var(--warm-400); } }
:root[data-theme="dark"] .story__now dd, :root[data-theme="dark"] .tier--highlight .tier__amount { color: var(--warm-400); }
/* Real marks: a little taller than text marks, still one calm grey row. */
.logo-wall img { block-size: clamp(2.2rem, 4.5vw, 3.4rem); max-inline-size: 13rem; }
.logo-wall--groups { display: grid; gap: var(--space-xl); }
.logo-wall__group-title { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); text-align: center; margin-block-end: var(--space-s); }

/* Buttons on the photographic cover: the secondary one must read on the scrim. */
.fl-cover .button--secondary { --button-fg: var(--text-on-brand); --button-border: rgb(255 255 255 / 0.65); --button-bg: transparent; }
.fl-cover .button--secondary:hover { --button-bg: rgb(255 255 255 / 0.12); --button-border: var(--text-on-brand); }
@media (min-width: 64rem) { .features-four .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature__title { text-wrap: balance; }

/* ---------------------------------------------------- programme records */
.course { position: relative; }
.course__title a { color: inherit; text-decoration: none; }
.course__title a::after { content: ""; position: absolute; inset: 0; }
.course__foot .button, .course__facts, .course__head { position: relative; z-index: 1; }
.course__fact--wide { grid-column: 1 / -1; }
.course:hover { border-color: var(--brand-300); box-shadow: var(--shadow-m); }

/* ------------------------------------------------------------------ finder */
.finder { display: grid; gap: var(--space-m); padding: var(--space-m) var(--space-l); border-radius: var(--radius-xl); background: var(--surface-sunken); border: 1px solid var(--border); margin-block-end: var(--space-xl); }
.finder__groups { display: grid; gap: var(--space-m); }
@media (min-width: 60rem) { .finder__groups { grid-template-columns: 2fr 1fr 1fr; } }
.finder__group { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; }
.finder__group legend { float: inline-start; inline-size: 100%; margin-block-end: var(--space-2xs); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); }
.finder__chip { position: relative; }
.finder__chip input { position: absolute; inset: 0; opacity: 0; inline-size: 100%; block-size: 100%; margin: 0; cursor: pointer; }
.finder__chip > span { display: inline-flex; align-items: center; min-block-size: 2.4rem; padding: 0.35rem 0.9rem; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface-raised); font-weight: 600; font-size: var(--step--1); transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.finder__chip:hover > span { border-color: var(--brand-600); }
.finder__chip input:focus-visible + span { outline: 3px solid var(--focus-ring, var(--accent-500)); outline-offset: 2px; }
.finder__chip input:checked + span { background: var(--brand-700); border-color: var(--brand-700); color: var(--text-on-brand); }
.finder__status { margin: 0; font-weight: 600; color: var(--text-muted); }
.finder__reset { justify-self: start; }
.finder__area { margin-block-start: var(--space-2xl); }
.finder__area[hidden] { display: none; }
.finder__area-title { display: flex; align-items: baseline; gap: var(--space-s); font-size: var(--step-3); margin-block-end: var(--space-m); }
.finder__area-n { font-size: var(--step-1); color: var(--accent-700); font-weight: 700; }
.finder__empty { margin-block-start: var(--space-xl); padding: var(--space-m); border-radius: var(--radius-m); background: var(--surface-sunken); }
.finder__empty[hidden] { display: none; }
[data-course][hidden] { display: none; }

/* -------------------------------------------------------- course page */
.contract { padding: var(--space-l); border-radius: var(--radius-xl); background: var(--surface-sunken); border: 1px solid var(--border); }
.contract__title { font-size: var(--step-1); margin-block-end: var(--space-s); }
.contract__list { margin: 0; display: grid; gap: 0; }
@media (min-width: 40rem) { .contract__list { grid-template-columns: 1fr 1fr; column-gap: var(--space-l); } }
.contract__list > div { display: grid; grid-template-columns: 8rem 1fr; gap: var(--space-s); padding-block: var(--space-xs); border-block-end: 1px solid var(--border); }
.contract__list dt { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); align-self: center; }
.contract__list dd { margin: 0; }
.requirements { padding: var(--space-l); border-radius: var(--radius-xl); border: 1px solid var(--border); border-inline-start: 4px solid var(--accent-500); }
.requirements__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.requirements__list li { display: flex; gap: var(--space-xs); align-items: flex-start; }
.requirements__list .icon { flex: none; inline-size: 1.1rem; block-size: 1.1rem; color: var(--accent-600); margin-block-start: 0.2rem; }
.requirements__not { margin: var(--space-s) 0 0; color: var(--text-muted); }
.course-next { display: grid; gap: var(--space-s); }
.course-next__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.course-next__list a { display: grid; gap: 0.1rem; padding: var(--space-s); border-radius: var(--radius-m); background: var(--surface-sunken); text-decoration: none; color: inherit; }
.course-next__list a:hover { background: var(--surface-accent); }
.course-next__list time { font-weight: 700; color: var(--text-brand); }
.course-next__meta { font-size: var(--step--1); color: var(--text-muted); }
.course-next__fallback { margin: 0; font-weight: 600; }

.finder__reset[hidden] { display: none; }

/* ------------------------------------------------ story: capability format */
.story__cap { display: grid; gap: var(--space-s); margin: 0 0 var(--space-l); }
@media (min-width: 40rem) { .story__cap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story__cap dt { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); margin-block-end: var(--space-3xs); }
.story__cap dd { margin: 0; font-weight: 600; line-height: 1.35; }
.story__cap-now dd { color: var(--warm-700); }
.story__original { margin-block-start: var(--space-m); font-family: var(--font-display); font-size: var(--step-1); color: var(--text-muted); }

/* ------------------------------------------- footer: membership and AZAV */
.accreditations { align-items: stretch; gap: var(--space-s); }
.accreditation-mark { padding: 0 !important; border: 0 !important; }
.accreditation-mark > a, .accreditation-mark { display: flex; align-items: center; gap: var(--space-s); text-decoration: none; color: inherit; }
.accreditation-mark > a { padding: var(--space-xs) var(--space-s); border-radius: var(--radius-m); border: 1px solid color-mix(in oklab, var(--neutral-0) 20%, transparent); }
.accreditation-mark > a:hover { border-color: color-mix(in oklab, var(--neutral-0) 50%, transparent); }
.accreditation-mark__logo { display: grid; place-items: center; inline-size: 7rem; block-size: 2.6rem; padding: 0.3rem 0.5rem; border-radius: var(--radius-s); background: var(--neutral-0); flex: none; }
.accreditation-mark__logo img { max-inline-size: 100%; max-block-size: 100%; object-fit: contain; }
.accreditation-mark__text { display: grid; gap: 0.1rem; font-size: var(--step--1); color: color-mix(in oklab, var(--neutral-0) 85%, transparent); }
.accreditation-mark__text span { font-size: var(--step--2); color: color-mix(in oklab, var(--neutral-0) 65%, transparent); }

.project-marks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-m); align-items: center; }
.project-marks img { block-size: 2.4rem; inline-size: auto; max-inline-size: 9rem; object-fit: contain; }
.project-marks__text { font-weight: 600; font-size: var(--step--1); color: var(--text-muted); }
.accreditation-mark:not(:has(> a)) { padding: var(--space-xs) var(--space-s) !important; border: 1px solid color-mix(in oklab, var(--neutral-0) 20%, transparent) !important; border-radius: var(--radius-m); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .story__cap-now dd { color: var(--warm-400); } }
:root[data-theme="dark"] .story__cap-now dd { color: var(--warm-400); }

/* ----------------------------------------------------------------- voices */
.voices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.voice { display: flex; flex-direction: column; gap: var(--space-m); padding: var(--space-l); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--border); }
.voice__quote { margin: 0; flex: 1; }
.voice__quote p { margin: 0; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35; text-wrap: pretty; }
.voice__quote p::before { content: "„"; color: var(--accent-500); }
.voice__quote p::after { content: "“"; color: var(--accent-500); }
.voice__foot { display: flex; gap: var(--space-s); align-items: center; padding-block-start: var(--space-s); border-block-start: 1px solid var(--border); }
.voice__logo { flex: none; display: grid; place-items: center; inline-size: 5.5rem; block-size: 2.4rem; }
.voice__logo img { max-inline-size: 100%; max-block-size: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.8; }
.voice__initials { flex: none; display: grid; place-items: center; inline-size: 2.6rem; block-size: 2.6rem; border-radius: 50%; background: var(--surface-sunken); border: 1px dashed var(--border-strong); font-weight: 700; font-size: var(--step--1); color: var(--text-subtle); }
.voice__who { display: grid; gap: 0.05rem; font-size: var(--step--1); color: var(--text-muted); min-inline-size: 0; }
.voice__who strong { color: var(--text); }
.voice__org a { color: inherit; }
.voices__note { margin-block-start: var(--space-m); font-size: var(--step--1); color: var(--text-subtle); }

/* ------------------------------------------------------- project cards */
.card--project .card__media { aspect-ratio: 16 / 10; border-radius: var(--radius-l); overflow: hidden; }
.card__tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-m); color: var(--text-on-brand); background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); }
.card__tile--sprache { background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); }
.card__tile--digital { background: linear-gradient(135deg, var(--accent-600), var(--brand-900)); }
.card__tile--beruf { background: linear-gradient(135deg, var(--warm-600), var(--brand-900)); }
.card__tile--gesellschaft { background: linear-gradient(135deg, var(--brand-800), var(--accent-800)); }
.card__tile::after { content: ""; position: absolute; inset-inline: -10%; inset-block-end: -60%; block-size: 100%; border-radius: 50%; background: rgb(255 255 255 / 0.08); }
.card__tile-area { position: relative; font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.card__tile-sdgs { position: relative; display: flex; gap: var(--space-2xs); }
.card__tile-sdgs span { display: grid; place-items: center; inline-size: 2.2rem; block-size: 2.2rem; border-radius: 50%; background: var(--sdg-color); font-weight: 700; font-size: var(--step--1); box-shadow: 0 2px 8px rgb(0 0 0 / 0.25); }
.card--project:not(:has(.card__media)) { border-block-start: 0; }
.project-facts { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-xl); }
.project-facts b { font-family: var(--font-display); font-size: var(--step-2); color: var(--text-brand); }
.project-facts span { display: block; font-size: var(--step--1); color: var(--text-muted); }

.fl-cover__field { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; opacity: 0.6; }
/* Long German compounds in the cover headline break at syllables, not mid-word. */
.fl-cover__title { hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 40rem) { .fl-cover--home .fl-cover__title { font-size: clamp(2rem, 9vw, 2.6rem); } }

