/* ============================================================================
   STEPIN WOMEN FOUNDATION — DESIGN SYSTEM
   ----------------------------------------------------------------------------
   Layered on top of Bootstrap 5. Structure:
     01  Tokens            06  Navigation        11  Timeline / roadmap
     02  Base & typography 07  Hero              12  Gallery & lightbox
     03  Layout & section  08  Buttons           13  Forms
     04  Motion system     09  Cards             14  Footer
     05  Utilities         10  Stats & data      15  Print & reduced motion
   ========================================================================== */

/* ========================================================== 01 · TOKENS === */
:root {
  /* Brand — deep plum (dignity), teal (clinical trust), gold + clay (Ghanaian warmth) */
  --plum-900: #2B0E26;
  --plum-800: #3A1433;
  --plum-700: #4A1942;
  --plum-600: #5E2454;
  --plum-500: #7A3A6E;
  --plum-200: #D9BFD3;
  --plum-100: #F0E4EC;

  --teal-800: #08453F;
  --teal-700: #0E6B62;
  --teal-600: #12857A;
  --teal-200: #A9DDD6;
  --teal-100: #E2F3F1;

  --gold-600: #B87C22;
  --gold-500: #D99A3E;
  --gold-300: #EFC98A;
  --gold-100: #FBF0DD;

  --clay-700: #9C4429;
  --clay-600: #C05A3C;
  --clay-300: #E9B4A2;
  --clay-100: #FBEBE5;

  /* Neutrals — warm, never cold grey */
  --ink-900: #1A141C;
  --ink-700: #3D3440;
  --ink-500: #6B6270;
  --ink-400: #8A828F;
  --ink-300: #BEB7C2;
  --ink-200: #E2DCE4;
  --ink-100: #F0ECF1;

  --cream:   #FCF9F5;
  --cream-2: #F6F0E9;
  --white:   #FFFFFF;

  /* Semantic */
  --bg:            var(--cream);
  --bg-raised:     var(--white);
  --bg-sunken:     var(--cream-2);
  --text:          var(--ink-900);
  --text-muted:    var(--ink-500);
  --border:        var(--ink-200);
  --brand:         var(--plum-700);
  --brand-deep:    var(--plum-900);
  --accent:        var(--clay-600);
  --accent-soft:   var(--gold-500);
  --health:        var(--teal-700);

  /* Type */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-hero:  clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem);
  --fs-h1:    clamp(2.1rem, 1.4rem + 2.9vw, 3.75rem);
  --fs-h2:    clamp(1.65rem, 1.25rem + 1.7vw, 2.7rem);
  --fs-h3:    clamp(1.25rem, 1.08rem + 0.72vw, 1.7rem);
  --fs-h4:    clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  --fs-lead:  clamp(1.05rem, 0.98rem + 0.42vw, 1.3rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;

  /* Rhythm */
  --space-section: clamp(4rem, 2.2rem + 6.4vw, 8.5rem);
  --space-block:   clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --gutter:        clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
  --measure:       68ch;

  /* Surface */
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm:  0 1px 2px rgba(26, 20, 28, .05), 0 2px 8px rgba(26, 20, 28, .04);
  --shadow:     0 2px 6px rgba(26, 20, 28, .05), 0 12px 32px -8px rgba(26, 20, 28, .10);
  --shadow-lg:  0 4px 12px rgba(26, 20, 28, .06), 0 28px 64px -16px rgba(42, 14, 38, .22);
  --shadow-brand: 0 18px 46px -14px rgba(74, 25, 66, .38);

  /* Motion */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur-fast:  180ms;
  --dur:       320ms;
  --dur-slow:  620ms;

  --nav-h: 76px;
}

@media (max-width: 991.98px) { :root { --nav-h: 64px; } }

/* =============================================== 02 · BASE & TYPOGRAPHY === */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  /* Long words and URLs break rather than pushing the page wide. */
  overflow-wrap: break-word;
}

/* Guard against accidental horizontal scroll.
   `clip` rather than `hidden`: `hidden` turns the element into a scroll
   container, which breaks `position: sticky` on descendants (the cancer-page
   contents list and the founder profile card both rely on it). */
html { overflow-x: clip; }
@supports not (overflow-x: clip) { html { overflow-x: hidden; } }

/* Nothing embedded may exceed its container. Class-level rules that set an
   explicit height (card media, hero video) still win on specificity. */
img, svg, video, iframe, canvas, object, embed {
  max-width: 100%;
  height: auto;
}
iframe { border: 0; }

/* URLs and long identifiers break anywhere rather than overflowing. */
.s-break-any { overflow-wrap: anywhere; word-break: break-word; }

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--brand-deep);
  margin: 0 0 .6em;
  font-variation-settings: 'SOFT' 12, 'WONK' 0, 'opsz' 32;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.22; }
h4 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 600; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lead, .s-lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-700);
  font-weight: 400;
}

.s-measure  { max-width: var(--measure); }
.s-measure-narrow { max-width: 56ch; }
.s-measure.mx-auto, .s-measure-narrow.mx-auto { margin-inline: auto; }

a { color: var(--plum-700); text-decoration-color: var(--plum-200); text-underline-offset: .18em; }
a:hover { color: var(--clay-700); text-decoration-color: currentColor; }

strong, b { font-weight: 650; color: var(--ink-900); }
small { font-size: var(--fs-small); }

/* Eyebrow / kicker — a recurring signature of the Stepin layout language */
.s-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay-700);
  margin-bottom: 1rem;
}
.s-eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex: none;
}
.s-eyebrow--center::before { display: none; }
.s-eyebrow--light { color: var(--gold-300); }
.s-eyebrow--teal  { color: var(--teal-700); }

/* Emphasis inside display headings */
.s-underline {
  background-image: linear-gradient(transparent 62%, var(--gold-300) 62%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 900ms var(--ease-out);
  padding-inline: .04em;
}
.is-visible .s-underline, .s-underline.is-visible { background-size: 100% 100%; }

.s-ital { font-style: italic; font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 40; color: var(--plum-600); }

/* Skip link */
.s-skip {
  position: fixed; top: 0; left: 50%;
  transform: translate(-50%, -140%);
  z-index: 2000;
  background: var(--plum-800); color: #fff;
  padding: .85rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.s-skip:focus { transform: translate(-50%, 0); color: #fff; }

/* Focus — one consistent, highly visible ring everywhere */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.s-on-dark :focus-visible { outline-color: var(--gold-300); }

::selection { background: var(--gold-300); color: var(--plum-900); }

/* =========================================== 03 · LAYOUT & SECTIONING === */
.s-section { padding: var(--space-section) 0; position: relative; }
.s-section--tight { padding: var(--space-block) 0; }
.s-section--flush-top { padding-top: 0; }

.s-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.s-container--wide  { max-width: 1440px; }
.s-container--nar   { max-width: 900px; }

.s-bg-cream  { background: var(--cream); }
.s-bg-sunken { background: var(--bg-sunken); }
.s-bg-white  { background: var(--white); }
.s-bg-teal-100 { background: var(--teal-100); }
.s-bg-gold-100 { background: var(--gold-100); }

.s-bg-plum {
  background: var(--plum-900);
  background-image:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(122, 58, 110, .55), transparent 62%),
    radial-gradient(ellipse 60% 50% at 92% 100%, rgba(14, 107, 98, .40), transparent 60%);
  color: #F3EBF0;
}
.s-bg-plum h1, .s-bg-plum h2, .s-bg-plum h3, .s-bg-plum h4 { color: #fff; }
.s-bg-plum .lead, .s-bg-plum .s-lead, .s-bg-plum p { color: rgba(255,255,255,.80); }
.s-bg-plum a:not(.btn) { color: var(--gold-300); }

.s-bg-teal { background: var(--teal-800); color: #E6F4F2; }
.s-bg-teal h1, .s-bg-teal h2, .s-bg-teal h3 { color: #fff; }
.s-bg-teal p, .s-bg-teal .lead { color: rgba(255,255,255,.80); }

/* Section header block */
.s-head { max-width: 780px; margin-bottom: var(--space-block); }
.s-head--center { margin-inline: auto; text-align: center; }
.s-head p { color: var(--text-muted); font-size: var(--fs-lead); line-height: 1.6; }
.s-bg-plum .s-head p, .s-bg-teal .s-head p { color: rgba(255,255,255,.78); }

/* Decorative rule used between major blocks */
.s-rule { height: 1px; background: linear-gradient(90deg, var(--border), transparent); border: 0; margin: 0; }

/* Breadcrumbs */
.s-crumbs { font-size: var(--fs-micro); padding: 1rem 0 0; }
.s-crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.s-crumbs li { display: flex; align-items: center; gap: .4rem; color: var(--text-muted); }
.s-crumbs li + li::before { content: '/'; color: var(--ink-300); }
.s-crumbs a { color: var(--text-muted); text-decoration: none; }
.s-crumbs a:hover { color: var(--plum-700); text-decoration: underline; }
.s-crumbs [aria-current] { color: var(--ink-700); font-weight: 550; }

/* Page banner (inner pages) */
.s-banner {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3rem, 6vw, 5.5rem)) 0 clamp(3rem, 6vw, 5rem);
  background: var(--plum-900);
  background-image:
    radial-gradient(ellipse 68% 60% at 8% 0%, rgba(122, 58, 110, .62), transparent 60%),
    radial-gradient(ellipse 55% 50% at 96% 92%, rgba(14, 107, 98, .45), transparent 58%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.s-banner::after {
  /* soft kente-inspired warp of light, very subtle */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: repeating-linear-gradient(115deg, rgba(217,154,62,.055) 0 2px, transparent 2px 90px);
}
.s-banner h1 { color: #fff; margin-bottom: .35em; }
.s-banner .lead { color: rgba(255,255,255,.80); max-width: 62ch; }
.s-banner .s-crumbs li, .s-banner .s-crumbs a { color: rgba(255,255,255,.62); }
.s-banner .s-crumbs a:hover { color: var(--gold-300); }
.s-banner .s-crumbs [aria-current] { color: rgba(255,255,255,.9); }
.s-banner .s-crumbs li + li::before { color: rgba(255,255,255,.35); }

/* ==================================================== 04 · MOTION SYSTEM === */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-28px, 0, 0); }
[data-reveal="right"] { transform: translate3d(28px, 0, 0); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Staggered groups: children animate in sequence */
[data-reveal-group] > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
}
[data-reveal-group].is-visible > * { opacity: 1; transform: none; }

/* Image mask reveal */
.s-reveal-img { overflow: hidden; border-radius: var(--radius-lg); position: relative; }
.s-reveal-img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1200ms var(--ease-out); }
.s-reveal-img.is-visible img { transform: scale(1); }

/* Page-load fade */
body { animation: s-page-in 480ms var(--ease-out) both; }
@keyframes s-page-in { from { opacity: 0; } to { opacity: 1; } }

/* ====================================================== 05 · UTILITIES === */
.s-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .34rem .8rem;
  border-radius: 999px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--plum-100);
  color: var(--plum-700);
  border: 1px solid transparent;
  white-space: nowrap;
}
.s-chip--teal  { background: var(--teal-100); color: var(--teal-800); }
.s-chip--gold  { background: var(--gold-100); color: var(--gold-600); }
.s-chip--clay  { background: var(--clay-100); color: var(--clay-700); }
.s-chip--ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.s-chip--light { background: rgba(255,255,255,.12); color: #fff; }

.s-icon-badge {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--plum-100);
  color: var(--plum-700);
  font-size: 1.4rem;
  flex: none;
}
.s-icon-badge--teal { background: var(--teal-100); color: var(--teal-700); }
.s-icon-badge--gold { background: var(--gold-100); color: var(--gold-600); }
.s-icon-badge--clay { background: var(--clay-100); color: var(--clay-700); }
.s-icon-badge--lg   { width: 64px; height: 64px; font-size: 1.75rem; border-radius: 18px; }

/* Notice / callout blocks */
.s-note {
  display: flex; gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: var(--teal-100);
  border-left: 4px solid var(--teal-600);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--teal-800);
}
.s-note i, .s-note .s-note-ico { flex: none; font-size: 1.15rem; line-height: 1.4; color: var(--teal-700); }
.s-note--warn   { background: var(--gold-100);  border-left-color: var(--gold-500); color: #6B4712; }
.s-note--warn i { color: var(--gold-600); }
.s-note--act    { background: var(--clay-100);  border-left-color: var(--clay-600); color: #6E2E1A; }
.s-note--act i  { color: var(--clay-700); }
.s-note--plum   { background: var(--plum-100);  border-left-color: var(--plum-600); color: var(--plum-800); }
.s-note--plum i { color: var(--plum-700); }
.s-note strong { color: inherit; }
.s-note a { color: inherit; font-weight: 600; }

/* Medical disclaimer — deliberately consistent everywhere it appears */
.s-disclaimer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.35rem 1.5rem;
  font-size: var(--fs-small);
  color: var(--ink-700);
}
.s-disclaimer h2, .s-disclaimer h3, .s-disclaimer .s-disclaimer-t {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay-700);
  margin-bottom: .5rem;
}

/* Empty state — used wherever verified content does not exist yet */
.s-empty {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  border: 1px dashed var(--ink-300);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.s-empty .s-icon-badge { margin: 0 auto 1.15rem; }
.s-empty h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.s-empty p { color: var(--text-muted); max-width: 48ch; margin-inline: auto; }

/* Source / citation line */
.s-source {
  font-size: var(--fs-micro);
  color: var(--ink-400);
  line-height: 1.5;
}
.s-source a { color: var(--ink-500); }
.s-bg-plum .s-source, .s-bg-teal .s-source { color: rgba(255,255,255,.5); }
.s-bg-plum .s-source a, .s-bg-teal .s-source a { color: rgba(255,255,255,.68); }

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

/* ===================================================== 06 · NAVIGATION === */
.s-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1030;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(252, 249, 245, 0);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.s-nav.is-solid,
.s-nav.is-open,
body:not(.has-hero):not(.has-dark-header) .s-nav {
  background: rgba(252, 249, 245, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 8px 28px -20px rgba(26,20,28,.4);
}
.s-nav__inner {
  width: 100%; max-width: 1440px; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}

/* Brand */
.s-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }

/* The real logo. Square artwork with transparency, so no background plate —
   `contain` keeps any aspect ratio intact if the file is later replaced. */
.s-brand__logo {
  width: 40px; height: 40px; flex: none;
  object-fit: contain;
  transition: transform var(--dur) var(--ease);
}
.s-brand:hover .s-brand__logo { transform: rotate(-6deg) scale(1.05); }
.s-footer__brand .s-brand__logo { width: 44px; height: 44px; }

/* Kept for the fallback lettermark, still used if no logo file is configured. */
.s-brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--plum-700);
  display: grid; place-items: center;
  color: var(--gold-300);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.s-brand:hover .s-brand__mark { transform: rotate(-6deg) scale(1.05); }
.s-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.s-brand__name {
  font-family: var(--font-display); font-weight: 650; font-size: 1.06rem;
  color: var(--plum-900); letter-spacing: -.01em;
}
.s-brand__sub {
  font-size: .625rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--clay-700); font-weight: 600; margin-top: 2px;
}
.s-nav--on-dark:not(.is-solid):not(.is-open) .s-brand__name { color: #fff; }
.s-nav--on-dark:not(.is-solid):not(.is-open) .s-brand__sub  { color: var(--gold-300); }

/* Desktop menu */
.s-menu { display: none; align-items: center; gap: .1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1100px) { .s-menu { display: flex; } }
/* Logo stays hard left; the menu (and the actions after it) float to the right. */
.s-nav__inner > nav { margin-left: auto; }

.s-menu > li { position: relative; }
.s-menu__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .78rem;
  font-size: .935rem; font-weight: 520;
  color: var(--ink-700);
  text-decoration: none;
  border-radius: 9px;
  white-space: nowrap;
  background: none; border: 0; cursor: pointer;
  font-family: inherit;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.s-menu__link .s-caret { font-size: .62rem; opacity: .55; transition: transform var(--dur) var(--ease); }
.s-menu__link:hover, .s-menu__link[aria-expanded="true"] { color: var(--plum-700); background: var(--plum-100); }
.s-menu__link[aria-expanded="true"] .s-caret { transform: rotate(180deg); }
.s-menu > li.is-current > .s-menu__link { color: var(--plum-700); font-weight: 620; }
.s-menu > li.is-current > .s-menu__link::after {
  content: ''; position: absolute; left: .78rem; right: .78rem; bottom: .28rem;
  height: 2px; background: var(--clay-600); border-radius: 2px;
}
.s-nav--on-dark:not(.is-solid):not(.is-open) .s-menu__link { color: rgba(255,255,255,.86); }
.s-nav--on-dark:not(.is-solid):not(.is-open) .s-menu__link:hover,
.s-nav--on-dark:not(.is-solid):not(.is-open) .s-menu__link[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.14); }

/* Dropdown */
.s-drop {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 262px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  margin: 0; list-style: none;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.985);
  transform-origin: top left;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  max-height: min(72vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.s-drop.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.s-drop--right { left: auto; right: 0; transform-origin: top right; }
.s-drop--cols { min-width: 520px; columns: 2; column-gap: .25rem; }
@media (max-width: 1279.98px) { .s-drop--cols { min-width: 300px; columns: 1; } }

.s-drop a {
  display: block;
  padding: .58rem .8rem;
  border-radius: 9px;
  font-size: .9rem;
  color: var(--ink-700);
  text-decoration: none;
  break-inside: avoid;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}
.s-drop a:hover, .s-drop a:focus-visible { background: var(--plum-100); color: var(--plum-800); padding-left: 1.05rem; }
.s-drop a small { display: block; font-size: .76rem; color: var(--ink-400); margin-top: 1px; }
.s-drop a:hover small { color: var(--plum-600); }
.s-drop__label {
  padding: .7rem .8rem .35rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-400);
  break-inside: avoid;
}

/* Nav actions */
.s-nav__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (min-width: 1100px) { .s-nav__actions { margin-left: 0; } }

/* Hamburger */
.s-burger {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 11px; cursor: pointer; flex: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
@media (min-width: 1100px) { .s-burger { display: none; } }
.s-burger:hover { background: var(--plum-100); }
.s-burger__box { width: 19px; height: 13px; position: relative; }
.s-burger__box span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: var(--plum-800); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease), width var(--dur) var(--ease);
}
.s-burger__box span:nth-child(1) { top: 0; }
.s-burger__box span:nth-child(2) { top: 5.5px; width: 74%; }
.s-burger__box span:nth-child(3) { top: 11px; }
.s-burger[aria-expanded="true"] .s-burger__box span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.s-burger[aria-expanded="true"] .s-burger__box span:nth-child(2) { opacity: 0; width: 0; }
.s-burger[aria-expanded="true"] .s-burger__box span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.s-nav--on-dark:not(.is-solid):not(.is-open) .s-burger { border-color: rgba(255,255,255,.28); }
.s-nav--on-dark:not(.is-solid):not(.is-open) .s-burger__box span { background: #fff; }

/* Mobile drawer */
.s-drawer {
  position: fixed; inset: var(--nav-h) 0 0;
  z-index: 1029;
  background: var(--cream);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem var(--gutter) 6rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.s-drawer.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1100px) { .s-drawer { display: none; } }

.s-drawer__list { list-style: none; margin: 0; padding: 0; }
.s-drawer__item { border-bottom: 1px solid var(--border); }
.s-drawer__link,
.s-drawer__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%;
  padding: 1.05rem .25rem;
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 600;
  color: var(--plum-900);
  background: none; border: 0; text-align: left;
  text-decoration: none; cursor: pointer;
  min-height: 56px;               /* generous touch target */
}
.s-drawer__toggle .s-caret { font-size: .8rem; color: var(--clay-600); transition: transform var(--dur) var(--ease); }
.s-drawer__toggle[aria-expanded="true"] .s-caret { transform: rotate(180deg); }
.s-drawer__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur) var(--ease);
}
.s-drawer__panel ul { list-style: none; margin: 0; padding: 0 0 .9rem; }
.s-drawer__panel a {
  display: block;
  padding: .72rem .25rem .72rem 1rem;
  font-size: .96rem;
  color: var(--ink-700);
  text-decoration: none;
  border-left: 2px solid var(--ink-200);
  min-height: 44px;
}
.s-drawer__panel a:hover, .s-drawer__panel a:focus-visible { color: var(--plum-700); border-left-color: var(--clay-600); background: var(--plum-100); }
.s-drawer__cta { display: grid; gap: .7rem; margin-top: 1.75rem; }

body.s-nav-locked { overflow: hidden; }

/* =========================================================== 07 · HERO === */
.s-hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--plum-900);
  color: #fff;
}
.s-hero__media { position: absolute; inset: 0; z-index: -2; }
.s-hero__media img, .s-hero__media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.s-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(28,10,25,.92) 0%, rgba(43,14,38,.80) 38%, rgba(43,14,38,.42) 72%, rgba(43,14,38,.30) 100%),
    linear-gradient(0deg, rgba(28,10,25,.72) 0%, transparent 45%);
}
@media (max-width: 767.98px) {
  .s-hero__scrim { background: linear-gradient(180deg, rgba(28,10,25,.80) 0%, rgba(43,14,38,.86) 55%, rgba(28,10,25,.94) 100%); }
}
.s-hero h1 {
  font-size: var(--fs-hero);
  color: #fff;
  letter-spacing: -.028em;
  line-height: 1.02;
  max-width: 17ch;
  margin-bottom: .45em;
  text-wrap: balance;
}
.s-hero__sub { font-size: var(--fs-lead); color: rgba(255,255,255,.84); max-width: 56ch; margin-bottom: 2rem; }
.s-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 575.98px) { .s-hero__actions .btn { width: 100%; } }

.s-hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem .45rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 550; letter-spacing: .01em;
  color: rgba(255,255,255,.92);
  margin-bottom: 1.5rem;
}
.s-hero__badge .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-500); color: var(--plum-900);
  display: grid; place-items: center; font-size: .7rem; flex: none;
}

/* Hero foot strip — model pathway teaser */
.s-hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(28,10,25,.42);
  backdrop-filter: blur(10px);
  padding: .95rem 0;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: rgba(255,255,255,.68);
}
.s-hero__foot ul { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; margin: 0; padding: 0; justify-content: center; }
.s-hero__foot li { display: flex; align-items: center; gap: 1.4rem; }
.s-hero__foot li:not(:last-child)::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500); opacity: .8; }
@media (max-width: 991.98px) { .s-hero__foot { display: none; } }

/* ======================================================== 08 · BUTTONS === */
.btn {
  --btn-bg: var(--plum-700);
  --btn-fg: #fff;
  --btn-bd: var(--plum-700);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.6rem;
  min-height: 50px;
  max-width: 100%;              /* never exceed the container */
  max-height: 50px;             /* fixed single-line pill height */
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; letter-spacing: .005em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;          /* stay on one line so the height cap never clips */
  overflow-wrap: anywhere;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.btn i, .btn svg { font-size: 1.05em; flex: none; }
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-brand); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

/* Arrow micro-interaction */
.btn .s-arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .s-arrow { transform: translateX(4px); }

.btn-s-primary   { --btn-bg: var(--plum-700); --btn-bd: var(--plum-700); --btn-fg: #fff; }
.btn-s-primary:hover { --btn-bg: var(--plum-800); --btn-bd: var(--plum-800); }

.btn-s-accent    { --btn-bg: var(--clay-600); --btn-bd: var(--clay-600); --btn-fg: #fff; }
.btn-s-accent:hover { --btn-bg: var(--clay-700); --btn-bd: var(--clay-700); }

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

.btn-s-teal      { --btn-bg: var(--teal-700); --btn-bd: var(--teal-700); --btn-fg: #fff; }
.btn-s-teal:hover { --btn-bg: var(--teal-800); --btn-bd: var(--teal-800); }

.btn-s-outline   { --btn-bg: transparent; --btn-bd: var(--plum-700); --btn-fg: var(--plum-700); }
.btn-s-outline:hover { --btn-bg: var(--plum-700); --btn-fg: #fff; }

.btn-s-ghost-light { --btn-bg: rgba(255,255,255,.10); --btn-bd: rgba(255,255,255,.42); --btn-fg: #fff; backdrop-filter: blur(8px); }
.btn-s-ghost-light:hover { --btn-bg: #fff; --btn-bd: #fff; --btn-fg: var(--plum-900); }

.btn-s-wa        { --btn-bg: #25D366; --btn-bd: #25D366; --btn-fg: #06301A; }
.btn-s-wa:hover  { --btn-bg: #1DB954; --btn-bd: #1DB954; --btn-fg: #06301A; }

.btn-sm  { padding: .58rem 1.15rem; min-height: 42px; max-height: 42px; font-size: .875rem; }
.btn-lg  { padding: 1rem 2rem; min-height: 58px; max-height: 58px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* Full-width buttons may carry a longer label than the line can hold, so let
   these wrap onto two lines and lift the height cap — the label is never clipped. */
.btn-block,
.s-hero__actions .btn,
.s-empty .btn,
.s-note .btn {
  white-space: normal;
  max-height: none;
}

/* Below md there is not enough width to hold a long label on one line. Keeping
   `nowrap` there would push the label past the button and `overflow: hidden`
   would cut it off, so on small screens every button wraps and grows instead.
   The fixed-height pill is a desktop refinement only. */
@media (max-width: 767.98px) {
  .btn { white-space: normal; max-height: none; }
}

/* Text link with arrow — used as tertiary CTA throughout */
.s-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 620; font-size: .95rem;
  color: var(--plum-700);
  text-decoration: none;
}
.s-link i { transition: transform var(--dur) var(--ease); }
.s-link:hover { color: var(--clay-700); }
.s-link:hover i { transform: translateX(4px); }
.s-link--light { color: var(--gold-300); }
.s-link--light:hover { color: #fff; }

/* ========================================================== 09 · CARDS === */
.s-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.s-card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--plum-200); }
.s-card__body { padding: clamp(1.35rem, 2.6vw, 1.9rem); display: flex; flex-direction: column; flex: 1; gap: .75rem; }
.s-card__body > h3 { margin-bottom: 0; }
.s-card__body > p  { margin-bottom: 0; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.62; }
.s-card__foot { margin-top: auto; padding-top: .35rem; }

.s-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-100); }
.s-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 800ms var(--ease-out); }
.s-card--hover:hover .s-card__media img { transform: scale(1.06); }
.s-card__media--tall { aspect-ratio: 4 / 5; }

/* Stretched link makes the whole card clickable while keeping one real <a> */
.s-stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.s-card .s-stretch:focus-visible { outline: none; }
.s-card:has(.s-stretch:focus-visible) { outline: 3px solid var(--gold-500); outline-offset: 3px; }

/* Programme card — signature treatment */
.s-prog {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2.15rem);
  height: 100%;
  display: flex; flex-direction: column; gap: .9rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.s-prog::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent-bar, var(--plum-600));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.s-prog:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.s-prog:hover::before, .s-prog.is-visible::before { transform: scaleX(1); }
.s-prog__num {
  font-family: var(--font-display);
  font-size: 3.2rem; font-weight: 600; line-height: 1;
  color: var(--ink-100);
  position: absolute; top: 1.1rem; right: 1.4rem;
  pointer-events: none;
  transition: color var(--dur) var(--ease);
}
.s-prog:hover .s-prog__num { color: var(--gold-100); }
.s-prog h3 { margin-bottom: 0; }
.s-prog h3 span { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-700); margin-bottom: .35rem; }
.s-prog p { color: var(--text-muted); font-size: var(--fs-small); margin-bottom: 0; }
.s-prog ul { margin: 0; padding-left: 1.05rem; font-size: var(--fs-small); color: var(--text-muted); display: grid; gap: .3rem; }

/* Feature/list row */
.s-feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.s-feature h4 { margin-bottom: .3rem; }
.s-feature p  { color: var(--text-muted); font-size: var(--fs-small); margin: 0; }

/* Tick list */
.s-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.s-ticks li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-small); line-height: 1.55; }
.s-ticks li::before {
  content: '\F26E';                       /* bi-check-lg */
  font-family: 'bootstrap-icons';
  color: var(--teal-600);
  font-size: 1rem; line-height: 1.35; flex: none;
}
.s-ticks--gold li::before { color: var(--gold-600); }
.s-ticks--light li::before { color: var(--gold-300); }
.s-bg-plum .s-ticks li, .s-bg-teal .s-ticks li { color: rgba(255,255,255,.82); }

/* ================================================ 10 · STATS & DATA VIZ === */
.s-stat {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  height: 100%;
  display: flex; flex-direction: column; gap: .55rem;
}
.s-stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.5rem + 3.1vw, 3.9rem);
  font-weight: 600; line-height: 1;
  color: var(--plum-700);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.s-stat__num small { font-size: .48em; font-weight: 600; margin-left: .1em; letter-spacing: 0; }
.s-stat__label { font-weight: 620; font-size: var(--fs-body); color: var(--ink-900); line-height: 1.35; }
.s-stat__desc  { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; margin: 0; }
.s-stat__src   { margin-top: auto; padding-top: .6rem; font-size: var(--fs-micro); color: var(--ink-400); border-top: 1px solid var(--ink-100); }
.s-stat__src a { color: var(--ink-500); }

.s-stat--dark { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.14); }
.s-stat--dark .s-stat__num { color: var(--gold-500); }
.s-stat--dark .s-stat__label { color: #fff; }
.s-stat--dark .s-stat__desc { color: rgba(255,255,255,.72); }
.s-stat--dark .s-stat__src { color: rgba(255,255,255,.5); border-top-color: rgba(255,255,255,.14); }
.s-stat--dark .s-stat__src a { color: rgba(255,255,255,.7); }

.s-stat--teal .s-stat__num { color: var(--teal-700); }
.s-stat--clay .s-stat__num { color: var(--clay-600); }
.s-stat--gold .s-stat__num { color: var(--gold-600); }

/* ============================================ 11 · PATHWAY / TIMELINE === */
/* The Stepin Model: Educate → … → Scale */
.s-pathway { position: relative; display: grid; gap: .55rem; }
@media (min-width: 768px) {
  .s-pathway { grid-template-columns: repeat(3, 1fr); gap: .9rem; }
}
@media (min-width: 1200px) { .s-pathway { grid-template-columns: repeat(3, 1fr); } }

.s-step {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  width: 100%; text-align: left;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.s-step:hover, .s-step[aria-expanded="true"] {
  background: rgba(255,255,255,.13);
  border-color: var(--gold-500);
  transform: translateY(-2px);
}
.s-step__n {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--gold-500); color: var(--plum-900);
  font-weight: 700; font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.s-step__t {
  font-family: var(--font-display); font-weight: 620;
  font-size: 1.06rem; letter-spacing: -.01em; color: #fff;
  display: block; line-height: 1.15;
}
.s-step__d { font-size: .8rem; color: rgba(255,255,255,.66); display: block; margin-top: 2px; line-height: 1.35; }

/* Vertical connector on mobile */
.s-pathway__panel {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  padding: clamp(1.35rem, 3vw, 2rem);
  margin-top: .4rem;
}
.s-pathway__panel h3 { color: #fff; margin-bottom: .5rem; }
.s-pathway__panel p  { color: rgba(255,255,255,.78); margin-bottom: 0; }

/* Roadmap — year tabs + panels */
.s-years { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.s-year {
  padding: .7rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-display); font-weight: 620; font-size: 1rem;
  color: var(--ink-700); cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  min-height: 46px;
}
.s-year:hover { border-color: var(--plum-500); color: var(--plum-700); }
.s-year[aria-selected="true"] { background: var(--plum-700); border-color: var(--plum-700); color: #fff; box-shadow: var(--shadow-brand); }
.s-year small { display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }

/* Vertical timeline */
.s-timeline { position: relative; padding-left: 2.25rem; }
.s-timeline::before {
  content: ''; position: absolute; left: 9px; top: .5rem; bottom: .5rem;
  width: 2px; background: var(--ink-200); border-radius: 2px;
}
.s-timeline__fill {
  position: absolute; left: 9px; top: .5rem; width: 2px;
  background: linear-gradient(180deg, var(--clay-600), var(--gold-500));
  border-radius: 2px; height: 0;
  transition: height 1400ms var(--ease-out);
}
.s-tl-item { position: relative; padding-bottom: 2.25rem; }
.s-tl-item:last-child { padding-bottom: 0; }
.s-tl-item::before {
  content: ''; position: absolute; left: -2.25rem; top: .4rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--plum-500);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.s-tl-item.is-visible::before { background: var(--gold-500); border-color: var(--clay-600); transform: scale(1.1); }
.s-tl-item h4 { margin-bottom: .25rem; }
.s-tl-item .s-tl-date { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-700); display: block; margin-bottom: .4rem; }
.s-tl-item p { color: var(--text-muted); font-size: var(--fs-small); margin-bottom: 0; }

/* Month accordion (2027 programme calendar) */
.s-month {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: .6rem;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.s-month:hover { border-color: var(--plum-200); }
.s-month.is-open { border-color: var(--plum-500); box-shadow: var(--shadow); }
.s-month__btn {
  width: 100%;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 1.25rem;
  background: none; border: 0; cursor: pointer;
  text-align: left; font-family: inherit;
  min-height: 62px;
}
.s-month__when {
  font-size: .7rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--clay-700); flex: none; width: 108px;
}
.s-month__what { font-family: var(--font-display); font-size: 1.1rem; font-weight: 620; color: var(--plum-900); flex: 1; line-height: 1.2; }
.s-month__ico { color: var(--plum-500); font-size: 1.1rem; transition: transform var(--dur) var(--ease); flex: none; }
.s-month.is-open .s-month__ico { transform: rotate(180deg); }
.s-month__panel { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.s-month__inner { padding: 0 1.25rem 1.4rem; }
@media (max-width: 575.98px) {
  .s-month__btn { flex-wrap: wrap; gap: .35rem 1rem; }
  .s-month__when { width: auto; }
  .s-month__what { flex-basis: 100%; }
}

/* ======================================== 12 · GALLERY, FILTERS, MEDIA === */
.s-filters {
  display: flex; flex-wrap: wrap; gap: .45rem;
  padding-bottom: .25rem;
}
.s-filter {
  padding: .5rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: .875rem; font-weight: 550;
  color: var(--ink-700); cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
  transition: all var(--dur-fast) var(--ease);
}
.s-filter:hover { border-color: var(--plum-500); color: var(--plum-700); }
.s-filter[aria-pressed="true"] { background: var(--plum-700); border-color: var(--plum-700); color: #fff; }

.s-grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.s-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.s-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.s-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* Photo strip — "Memories From the Journey" */
.s-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.s-strip > * { scroll-snap-align: start; }
.s-strip::-webkit-scrollbar { height: 6px; }
.s-strip::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 3px; }
.s-strip__item {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius);
  overflow: hidden; background: var(--ink-100); border: 0; padding: 0; cursor: pointer;
}
.s-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.s-strip__item:hover img { transform: scale(1.07); }
.s-strip__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem .9rem .85rem;
  background: linear-gradient(transparent, rgba(28,10,25,.88));
  color: #fff; font-size: .8rem; line-height: 1.35; text-align: left;
}

/* Lightbox */
.s-lightbox {
  position: fixed; inset: 0; z-index: 1080;
  background: rgba(20, 8, 18, .96);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.s-lightbox.is-open { display: flex; animation: s-page-in 260ms var(--ease-out) both; }
.s-lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.s-lightbox img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: var(--radius); }
.s-lightbox figcaption { color: rgba(255,255,255,.8); font-size: var(--fs-small); margin-top: 1rem; line-height: 1.55; }
.s-lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 1.25rem; cursor: pointer;
  display: grid; place-items: center;
}
.s-lightbox__btn:hover { background: rgba(255,255,255,.25); }
.s-lightbox__prev { left: clamp(.5rem, 2vw, 2rem); }
.s-lightbox__next { right: clamp(.5rem, 2vw, 2rem); }
.s-lightbox__close { top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); transform: none; position: absolute; }

/* ========================================================== 13 · FORMS === */
.s-field { margin-bottom: 1.1rem; }
.s-field label {
  display: block; font-size: var(--fs-small); font-weight: 600;
  color: var(--ink-900); margin-bottom: .42rem;
}
.s-field .s-req { color: var(--clay-600); }
.s-field .s-hint { display: block; font-size: var(--fs-micro); color: var(--text-muted); font-weight: 400; margin-top: .2rem; }
.s-input, .s-select, .s-textarea {
  width: 100%;
  padding: .82rem 1rem;
  min-height: 50px;
  font-family: inherit; font-size: 1rem;   /* 16px min: prevents iOS zoom-on-focus */
  color: var(--ink-900);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.s-input:focus, .s-select:focus, .s-textarea:focus {
  outline: none;
  border-color: var(--plum-500);
  box-shadow: 0 0 0 4px var(--plum-100);
}
.s-input:focus-visible, .s-select:focus-visible, .s-textarea:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.s-textarea { min-height: 120px; resize: vertical; }
.s-input[aria-invalid="true"], .s-textarea[aria-invalid="true"] { border-color: var(--clay-600); }
.s-error { display: block; font-size: var(--fs-micro); color: var(--clay-700); margin-top: .3rem; font-weight: 550; }

/* Amount picker (donations) */
.s-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: .5rem; }
.s-amount {
  padding: .85rem .5rem; min-height: 54px;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--white); cursor: pointer;
  font-weight: 650; font-size: 1rem; color: var(--ink-700);
  font-variant-numeric: tabular-nums;
  transition: all var(--dur-fast) var(--ease);
}
.s-amount:hover { border-color: var(--plum-500); }
.s-amount[aria-pressed="true"] { background: var(--plum-700); border-color: var(--plum-700); color: #fff; }
/* The same control is also used as a <label> wrapping a radio (donation
   frequency), where the checked state comes from the input rather than ARIA. */
.s-amount:has(input:checked) { background: var(--plum-700); border-color: var(--plum-700); color: #fff; }
.s-amount:has(input:focus-visible) { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* Search */
.s-search { position: relative; }
.s-search .s-input { padding-left: 3rem; min-height: 58px; font-size: 1.05rem; border-radius: 999px; }
.s-search__ico { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--ink-400); font-size: 1.15rem; pointer-events: none; }
.s-search__clear {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink-100);
  color: var(--ink-500); cursor: pointer; display: none; place-items: center;
}
.s-search__clear.is-shown { display: grid; }

/* ========================================================= 14 · FOOTER === */
.s-footer {
  background: var(--plum-900);
  color: rgba(255,255,255,.72);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 0;
  font-size: var(--fs-small);
}
.s-footer h2, .s-footer h3 { color: #fff; }
.s-footer__grid {
  display: grid; gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 640px)  { .s-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .s-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.s-footer__col h3 {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: 1.1rem;
}
.s-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.s-footer__col a { color: rgba(255,255,255,.72); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.s-footer__col a:hover { color: var(--gold-300); text-decoration: underline; }
.s-footer__brand .s-brand__name { color: #fff; font-size: 1.2rem; }
.s-footer__brand .s-brand__sub  { color: var(--gold-300); }
.s-footer__blurb { margin: 1.25rem 0 1.5rem; max-width: 40ch; color: rgba(255,255,255,.66); line-height: 1.6; }
.s-footer__social { display: flex; gap: .55rem; }
.s-footer__social a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.05rem;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.s-footer__social a:hover { background: var(--gold-500); color: var(--plum-900); transform: translateY(-2px); }
.s-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.6rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: var(--fs-micro);
  color: rgba(255,255,255,.55);
}
.s-footer__bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.s-footer__bottom a { color: rgba(255,255,255,.62); text-decoration: none; }
.s-footer__bottom a:hover { color: var(--gold-300); text-decoration: underline; }
.s-footer__disclaimer {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.5rem 0;
  font-size: var(--fs-micro);
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  max-width: 92ch;
}

/* --------------------------------------------- Floating WhatsApp button --- */
.s-wa {
  position: fixed;
  right: clamp(.85rem, 2.5vw, 1.75rem);
  bottom: clamp(.85rem, 2.5vw, 1.75rem);
  z-index: 1040;
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem .7rem;
  border-radius: 999px;
  background: #25D366;
  color: #06301A;
  text-decoration: none;
  font-weight: 650; font-size: .92rem;
  box-shadow: 0 10px 34px -8px rgba(37, 211, 102, .6), 0 2px 8px rgba(0,0,0,.14);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.s-wa__ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.28);
  display: grid; place-items: center; font-size: 1.4rem; flex: none;
}
.s-wa__label { padding-right: .65rem; white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width var(--dur-slow) var(--ease), opacity var(--dur) var(--ease); }
.s-wa:hover, .s-wa:focus-visible { color: #06301A; transform: translateY(-3px); }
.s-wa:hover .s-wa__label, .s-wa:focus-visible .s-wa__label, .s-wa.is-expanded .s-wa__label { max-width: 220px; opacity: 1; }
@media (max-width: 575.98px) {
  .s-wa__label { display: none; }
  .s-wa { padding: .55rem; }
}
/* Gentle attention pulse, once, after the visitor settles */
@keyframes s-wa-pulse { 0%,100% { box-shadow: 0 10px 34px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.45); } 50% { box-shadow: 0 10px 34px -8px rgba(37,211,102,.6), 0 0 0 14px rgba(37,211,102,0); } }
.s-wa.is-pulsing { animation: s-wa-pulse 2.2s var(--ease) 2; }

/* Back to top */
.s-top {
  position: fixed; right: clamp(.85rem, 2.5vw, 1.75rem);
  bottom: calc(clamp(.85rem, 2.5vw, 1.75rem) + 68px);
  z-index: 1039;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  color: var(--plum-700); font-size: 1.05rem; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.s-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.s-top:hover { background: var(--plum-700); color: #fff; border-color: var(--plum-700); }

/* --------------------------------------------------- Article typography --- */
.s-article { font-size: 1.075rem; line-height: 1.75; color: var(--ink-700); }
.s-article > * { max-width: var(--measure); }
.s-article h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem);
  margin-top: 2.6em; margin-bottom: .55em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.s-article h2:first-child { margin-top: 0; }
.s-article h3 { font-size: var(--fs-h3); margin-top: 1.9em; margin-bottom: .5em; }
.s-article ul, .s-article ol { padding-left: 1.3rem; margin-bottom: 1.3em; display: grid; gap: .5rem; }
.s-article li::marker { color: var(--clay-600); }
.s-article a { font-weight: 550; }
.s-article figure { margin: 2.2rem 0; max-width: 100%; }
.s-article figure img { width: 100%; border-radius: var(--radius); display: block; }
.s-article figcaption { font-size: var(--fs-micro); color: var(--text-muted); margin-top: .7rem; line-height: 1.55; }
.s-article blockquote {
  margin: 2rem 0; padding: 1.25rem 0 1.25rem 1.6rem;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45;
  color: var(--plum-800); font-style: italic;
}
.s-article table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); margin-bottom: 1.5em; }
.s-article th, .s-article td { padding: .75rem .9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.s-article th { font-weight: 650; color: var(--ink-900); background: var(--bg-sunken); }
.s-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* On-page contents (cancer pages) */
.s-toc {
  position: sticky; top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); padding: 1.25rem;
  max-height: calc(100vh - var(--nav-h) - 60px);
  overflow-y: auto;
}
.s-toc h2 {
  font-family: var(--font-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400);
  margin: 0 0 .85rem;
}
.s-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: .12rem; }
.s-toc a {
  display: block; padding: .42rem .6rem;
  font-size: .855rem; line-height: 1.4;
  color: var(--ink-700); text-decoration: none; border-radius: 7px;
  border-left: 2px solid transparent;
}
.s-toc a:hover { background: var(--plum-100); color: var(--plum-800); }
.s-toc a.is-active { background: var(--plum-100); color: var(--plum-800); font-weight: 620; border-left-color: var(--clay-600); }
@media (max-width: 991.98px) { .s-toc { position: static; max-height: none; } }

/* Accordion (FAQ) */
.s-acc { border-bottom: 1px solid var(--border); }
.s-acc__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  padding: 1.25rem .25rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 620; line-height: 1.35;
  color: var(--plum-900);
  min-height: 60px;
}
.s-acc__btn:hover { color: var(--clay-700); }
.s-acc__ico { flex: none; color: var(--clay-600); font-size: 1.1rem; margin-top: .1rem; transition: transform var(--dur) var(--ease); }
.s-acc.is-open .s-acc__ico { transform: rotate(45deg); }
.s-acc__panel { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.s-acc__inner { padding: 0 .25rem 1.4rem; color: var(--ink-700); font-size: var(--fs-small); line-height: 1.7; max-width: var(--measure); }

/* ================================================== 15 · FOUNDER PAGE === */
/* An editorial, portfolio-style treatment used only on about/founder.html. */

.s-fhero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 5rem);
  background: var(--plum-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.s-fhero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image:
    radial-gradient(ellipse 60% 55% at 78% 12%, rgba(122, 58, 110, .70), transparent 62%),
    radial-gradient(ellipse 55% 55% at 10% 92%, rgba(14, 107, 98, .55), transparent 60%);
}
/* Slow, barely-there drift. Disabled entirely under reduced motion. */
.s-fhero::after {
  content: ''; position: absolute; inset: -20%; z-index: -1; opacity: .40;
  background-image: repeating-linear-gradient(118deg, rgba(217,154,62,.075) 0 2px, transparent 2px 84px);
  animation: s-fdrift 46s linear infinite alternate;
}
@keyframes s-fdrift { from { transform: translate3d(-2%, 0, 0); } to { transform: translate3d(2%, 1%, 0); } }

.s-fhero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 992px) { .s-fhero__grid { grid-template-columns: 5fr 7fr; } }

.s-fhero__portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--plum-700), var(--teal-800));
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.s-fhero__portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Muted editorial treatment; restored on hover so the real photo reads true. */
  filter: grayscale(38%) contrast(1.04);
  transition: filter var(--dur-slow) var(--ease);
}
.s-fhero__portrait:hover img { filter: none; }
.s-fhero__initials {
  font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 600; color: var(--gold-300); line-height: 1;
}

.s-fhero h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem);
  color: #fff; letter-spacing: -.03em; line-height: 1.03;
  margin-bottom: .3em; text-wrap: balance;
}
.s-fhero__role {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  font-size: 1.02rem; font-weight: 550; color: var(--gold-300);
  margin-bottom: 1.25rem;
}
.s-fhero__role span { display: flex; align-items: center; gap: .5rem; }
.s-fhero__role span:not(:last-child)::after {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.35); margin-left: 1.25rem;
}
.s-fhero__pos {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); line-height: 1.4;
  color: rgba(255,255,255,.90);
  padding-left: 1.15rem; border-left: 3px solid var(--gold-500);
  margin-bottom: 1.75rem; max-width: 46ch;
}
.s-fhero__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
@media (max-width: 575.98px) { .s-fhero__actions .btn { width: 100%; } }

/* ------------------------------------------------- verification badges --- */
.s-verify {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .26rem .68rem;
  border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap; vertical-align: middle;
  border: 1px solid transparent;
}
.s-verify i { font-size: .85em; }
.s-verify--verified  { background: var(--teal-100); color: var(--teal-800); border-color: var(--teal-200); }
.s-verify--to-verify { background: var(--gold-100); color: #7A5310;         border-color: var(--gold-300); }
.s-verify--archived  { background: var(--plum-100); color: var(--plum-800); border-color: var(--plum-200); }
.s-on-dark .s-verify--verified  { background: rgba(169,221,214,.18); color: #C8EDE7; border-color: rgba(169,221,214,.35); }
.s-on-dark .s-verify--to-verify { background: rgba(239,201,138,.18); color: var(--gold-300); border-color: rgba(239,201,138,.38); }
.s-on-dark .s-verify--archived  { background: rgba(255,255,255,.12); color: #E6D6E2; border-color: rgba(255,255,255,.22); }

/* Key to the badges, shown once near the top of the page */
.s-verify-key {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white);
  font-size: var(--fs-small); color: var(--text-muted);
}
.s-verify-key > div { display: flex; align-items: center; gap: .6rem; }

/* --------------------------------------------------- founder timeline --- */
/* Vertical on mobile (reuses .s-timeline); horizontal rail on desktop. */
@media (min-width: 992px) {
  .s-ftimeline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 1fr);
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 3.25rem 0 1.5rem;
    position: relative;
    scrollbar-width: thin;
  }
  .s-ftimeline::before {
    content: ''; position: absolute; top: 2.55rem; left: 0; right: 0;
    height: 2px; background: var(--ink-200); border-radius: 2px;
  }
  .s-ftimeline__item { scroll-snap-align: start; position: relative; padding-top: 0; }
  .s-ftimeline__item::before {
    content: ''; position: absolute; top: -1.1rem; left: 0;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--white); border: 3px solid var(--plum-500);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .s-ftimeline__item.is-visible::before { background: var(--gold-500); border-color: var(--clay-600); }
}
@media (max-width: 991.98px) {
  .s-ftimeline { position: relative; padding-left: 2.25rem; display: block; }
  .s-ftimeline::before {
    content: ''; position: absolute; left: 9px; top: .5rem; bottom: .5rem;
    width: 2px; background: var(--ink-200); border-radius: 2px;
  }
  .s-ftimeline__item { position: relative; padding-bottom: 2rem; }
  .s-ftimeline__item::before {
    content: ''; position: absolute; left: -2.25rem; top: .3rem;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--white); border: 3px solid var(--plum-500);
  }
  .s-ftimeline__item.is-visible::before { background: var(--gold-500); border-color: var(--clay-600); }
}
.s-ftimeline__when {
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--clay-700);
  display: block; margin-bottom: .35rem;
}
.s-ftimeline__item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.s-ftimeline__item p  { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: .5rem; }

/* ------------------------------------------------------- pull quote ----- */
.s-pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 1.35vw, 2.05rem);
  line-height: 1.32; font-style: italic;
  color: var(--plum-800);
  max-width: 24ch;
  margin: 0;
  padding-left: 1.4rem;
  border-left: 4px solid var(--gold-500);
}
.s-on-dark .s-pullquote { color: #fff; }
.s-pullquote cite {
  display: block; margin-top: 1rem;
  font-family: var(--font-body); font-style: normal;
  font-size: var(--fs-small); font-weight: 600; color: var(--clay-700);
}
.s-on-dark .s-pullquote cite { color: var(--gold-300); }

/* -------------------------------------------------- sticky profile card - */
.s-fprofile { position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 991.98px) { .s-fprofile { position: static; } }

/* --------------------------------------------------------- research card - */
.s-paper {
  border: 1px solid var(--border); border-left: 4px solid var(--teal-600);
  border-radius: var(--radius); background: var(--white);
  padding: clamp(1.35rem, 3vw, 2rem);
}
.s-paper h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.32; margin-bottom: .6rem; }
.s-paper__meta {
  font-size: var(--fs-small); color: var(--text-muted);
  display: grid; gap: .3rem; margin-bottom: 1rem;
}
.s-paper__meta strong { color: var(--ink-900); font-weight: 600; }
.s-paper__abstract {
  font-size: var(--fs-small); line-height: 1.7; color: var(--ink-700);
  padding: 1rem 1.15rem; background: var(--bg-sunken);
  border-radius: var(--radius-sm); margin-bottom: 1.15rem;
}
.s-paper__ids {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-micro);
}
.s-paper__ids span {
  padding: .28rem .6rem; border-radius: 6px;
  background: var(--ink-100); color: var(--ink-700);
}

/* =================================================== 16 · PARTNER LOGOS === */
/* A fluid "logo wall": tiles size themselves to the space and wrap freely, so
   it reads well from a 320px phone up to a wide desktop with no breakpoints. */
.s-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(.75rem, 2vw, 1.25rem);
  align-items: stretch;
}
.s-logo {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.1rem, 3vw, 1.9rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 116px;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.s-logo img {
  width: 100%; height: auto;
  max-height: 62px;
  object-fit: contain;
}
a.s-logo:hover, a.s-logo:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--plum-200);
}
/* On dark sections the tiles keep a light ground so any logo stays legible. */
.s-on-dark .s-logo { background: #fff; border-color: rgba(255,255,255,.14); }

/* Optional caption strip under a logo (used in the detailed cards) */
.s-logo--framed { flex-direction: column; gap: .9rem; }
.s-logo--framed .s-logo__cap {
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted); text-align: center;
}

/* ============================================== 17 · SMALL-SCREEN FIXES === */
/* A flex item will not shrink below its content's intrinsic minimum unless it
   is told it may. These are the containers where that caused overflow. */
.s-note > div,
.s-feature > div,
.s-card__body > div,
.s-stat > div,
.s-acc__btn > span,
.s-month__btn > span { min-width: 0; }

/* Anything holding an identifier, address or URL breaks rather than pushes. */
.s-footer__col a,
.s-source a,
.s-paper__ids span,
.s-toc a,
address { overflow-wrap: anywhere; }
.s-note s-note--warn p{color:#6b4712 !important;}

/* Long headings should never force a horizontal scrollbar. */
h1, h2, h3, .s-fhero h1, .s-hero h1 { overflow-wrap: break-word; }

@media (max-width: 575.98px) {
  /* Drop the bullet separators in the founder hero role line; the flex gap
     already spaces the items once they stack. */
  .s-fhero__role { flex-direction: column; align-items: flex-start; gap: .45rem; }
  .s-fhero__role span:not(:last-child)::after { display: none; }

  /* Icon + heading rows sit better stacked at this width. */
  .s-card__body[style*="flex-direction:row"] { flex-direction: column !important; }

  /* Reclaim horizontal space in dense components. */
  .s-stat { padding: 1.15rem; }
  .s-paper { padding: 1.15rem; }
  .s-verify-key { padding: .9rem 1rem; }

  /* Buttons stack full width rather than squeezing side by side. */
  .s-empty .btn, .s-note .btn { width: 100%; }

  /* The floating WhatsApp button and back-to-top must not overlap content. */
  .s-top { bottom: calc(clamp(.85rem, 2.5vw, 1.75rem) + 60px); }
}

/* Two-up card grids collapse to one column earlier than `auto-fit` alone would,
   because a 320px viewport leaves ~280px of usable width. */
@media (max-width: 400px) {
  .s-grid--2, .s-grid--3, .s-grid--4 { grid-template-columns: 1fr; }
  .s-amounts { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================ 18 · PRINT & MOTION PREFS === */
@media print {
  .s-nav, .s-drawer, .s-wa, .s-top, .s-hero__media, .s-hero__foot, .s-filters { display: none !important; }
  body { background: #fff; color: #000; }
  .s-banner { background: #fff !important; color: #000; padding-top: 1rem; }
  .s-banner h1, .s-banner .lead { color: #000; }
  a::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
}

/* Honour the visitor's motion preference — required by the brief */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .s-reveal-img img { transform: none !important; }
  .s-underline { background-size: 100% 100% !important; }
  .s-timeline__fill { transition: none !important; }
}
