/* =====================================================================
   Be Empowered Network — site stylesheet
   Palette derived from the Bee Network logo: raspberry, coral, amber.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Type scale (fluid) */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(2.75rem,  1rem    + 5.5vw,  6.25rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem;  --space-6: 1.5rem;   --space-8: 2rem;    --space-10: 2.5rem;
  --space-12: 3rem;    --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1240px;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Satoshi', 'Avenir Next', 'Helvetica Neue', sans-serif;

  /* Brand */
  --brand-raspberry: #d6255f;
  --brand-coral: #f07a5a;
  --brand-amber: #f5b93a;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --color-bg:              #fcf8f3;
  --color-surface:         #ffffff;
  --color-surface-2:       #f7efe7;
  --color-surface-offset:  #f2e6dc;
  --color-surface-dynamic: #e9d9cc;
  --color-border:          oklch(from #2a1a21 l c h / 0.12);
  --color-divider:         oklch(from #2a1a21 l c h / 0.08);

  --color-text:        #2a1a21;
  --color-text-muted:  #6f5f66;
  --color-text-faint:  #a5969c;
  --color-text-inverse:#fff7f0;

  --color-primary:        #c81f57;
  --color-primary-hover:  #a8184a;
  --color-primary-active: #85123a;
  --color-primary-soft:   #fbe4ec;

  --color-accent:      #e08a12;   /* amber, darkened for contrast on cream */
  --color-accent-soft: #fdefcf;
  --color-coral:       #e5673f;
  --color-coral-soft:  #fde5dc;

  --color-success: #3e7a3a;
  --color-error:   #b3261e;

  --shadow-sm: 0 1px 2px oklch(0.3 0.05 20 / 0.06), 0 1px 1px oklch(0.3 0.05 20 / 0.04);
  --shadow-md: 0 2px 4px oklch(0.3 0.05 20 / 0.06), 0 10px 28px oklch(0.3 0.05 20 / 0.08);
  --shadow-lg: 0 4px 8px oklch(0.3 0.05 20 / 0.08), 0 24px 56px oklch(0.3 0.05 20 / 0.14);
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-bg:              #1a1216;
  --color-surface:         #221820;
  --color-surface-2:       #2a1e27;
  --color-surface-offset:  #33252f;
  --color-surface-dynamic: #3e2d39;
  --color-border:          oklch(from #f3e9ec l c h / 0.14);
  --color-divider:         oklch(from #f3e9ec l c h / 0.08);

  --color-text:        #f3e9ec;
  --color-text-muted:  #bba9b1;
  --color-text-faint:  #7d6d75;
  --color-text-inverse:#2a1a21;

  --color-primary:        #f56b91;
  --color-primary-hover:  #f98aa8;
  --color-primary-active: #fba7bd;
  --color-primary-soft:   #3d1f2c;

  --color-accent:      #f7c55a;
  --color-accent-soft: #3b3020;
  --color-coral:       #f5926f;
  --color-coral-soft:  #3d2620;

  --color-success: #8bd08a;
  --color-error:   #ff8a80;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-bg:              #1a1216;
    --color-surface:         #221820;
    --color-surface-2:       #2a1e27;
    --color-surface-offset:  #33252f;
    --color-surface-dynamic: #3e2d39;
    --color-border:          oklch(from #f3e9ec l c h / 0.14);
    --color-divider:         oklch(from #f3e9ec l c h / 0.08);
    --color-text:        #f3e9ec;
    --color-text-muted:  #bba9b1;
    --color-text-faint:  #7d6d75;
    --color-text-inverse:#2a1a21;
    --color-primary:        #f56b91;
    --color-primary-hover:  #f98aa8;
    --color-primary-active: #fba7bd;
    --color-primary-soft:   #3d1f2c;
    --color-accent:      #f7c55a;
    --color-accent-soft: #3b3020;
    --color-coral:       #f5926f;
    --color-coral-soft:  #3d2620;
    --color-success: #8bd08a;
    --color-error:   #ff8a80;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  display: flex; flex-direction: column;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
img { background: transparent; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; font-weight: 500; }
p, li, figcaption { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

::selection { background: oklch(from var(--color-primary) l c h / 0.25); }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

a, button, [role="button"], input, textarea, select {
  transition: color var(--transition-interactive), background var(--transition-interactive),
              border-color var(--transition-interactive), box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

@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; }
}

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--color-primary); color: #fff; padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md); font-size: var(--text-sm); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); font-variation-settings: 'opsz' 144, 'SOFT' 60; letter-spacing: -0.015em; }
.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: var(--space-3);
}
.lede { font-size: var(--text-lg); line-height: 1.45; color: var(--color-text-muted); max-width: 52ch; font-weight: 400; }
.prose > * + * { margin-top: var(--space-4); }
.prose p { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-size: var(--text-xl); margin-top: var(--space-10); }
.prose h3 { font-size: var(--text-lg); font-weight: 700; margin-top: var(--space-8); }
.prose ul { padding-left: 1.2em; max-width: 68ch; }
.prose li + li { margin-top: var(--space-2); }
.muted { color: var(--color-text-muted); }
.em { font-style: italic; font-variation-settings: 'opsz' 144, 'SOFT' 100; color: var(--color-primary); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-4); }
.container--wide { max-width: var(--content-wide); }
.container--narrow { max-width: var(--content-narrow); }
@media (min-width: 768px) { .container { padding-inline: var(--space-8); } }

.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 5vw, var(--space-20)); }
.section--offset { background: var(--color-surface-2); }
.section-head { max-width: 60ch; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-head h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-variation-settings: 'opsz' 144, 'SOFT' 60; letter-spacing: -0.015em; }
.section-head p { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--text-base); max-width: 56ch; }

.grid-2 { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm); font-weight: 700; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-full); border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--primary:active { background: var(--color-primary-active); transform: translateY(1px); }
[data-theme="dark"] .btn--primary { color: var(--color-text-inverse); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: var(--color-text-inverse); } }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn--ghost:hover { border-color: var(--color-text); background: var(--color-surface); }
.btn--ghost:active { transform: translateY(1px); }
.btn--light { background: var(--color-text-inverse); color: #2a1a21; }
.btn--light:hover { background: #fff; }
.btn--link { padding-inline: 0; min-height: 0; color: var(--color-primary); font-weight: 700; }
.btn--link:hover { text-decoration: underline; }
.btn--link svg { transition: transform var(--transition-interactive); }
.btn--link:hover svg { transform: translateX(3px); }

/* ---------- Crisis bar ---------- */
.crisis-bar {
  background: var(--color-text); color: var(--color-text-inverse);
  font-size: var(--text-xs); padding: var(--space-2) 0;
}
.crisis-bar .container { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); align-items: center; justify-content: center; text-align: center; }
.crisis-bar strong { color: var(--color-accent); }
.crisis-bar a { color: inherit; font-weight: 700; }
[data-theme="dark"] .crisis-bar { background: var(--color-surface-2); color: var(--color-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crisis-bar { background: var(--color-surface-2); color: var(--color-text); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand img { width: 44px; height: 43px; }
.brand-name { white-space: nowrap; font-family: var(--font-display); font-size: 1.25rem; line-height: 1; font-weight: 600; letter-spacing: -0.01em; }
.brand-name small { display: block; white-space: nowrap; font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 3px; }

.nav { display: none; align-items: center; gap: var(--space-1); }
.nav a { font-size: var(--text-sm); font-weight: 500; white-space: nowrap; text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-full); color: var(--color-text-muted); }
.nav a:hover { color: var(--color-text); background: var(--color-surface-2); }
.nav a[aria-current="page"] { color: var(--color-text); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-actions .btn { display: none; min-height: 42px; padding-block: var(--space-2); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); color: var(--color-text); }
.icon-btn:hover { background: var(--color-surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

@media (min-width: 1140px) {
  .nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  .menu-btn { display: none; }
}
@media (min-width: 1140px) and (max-width: 1280px) { .nav a { padding-inline: var(--space-2); } }

/* Mobile menu */
.mobile-menu { display: none; border-top: 1px solid var(--color-divider); background: var(--color-bg); }
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu ul { padding: var(--space-4); display: grid; gap: var(--space-1); }
.mobile-menu a { display: block; padding: var(--space-3) var(--space-3); font-weight: 600; text-decoration: none; border-radius: var(--radius-md); font-size: var(--text-base); }
.mobile-menu a:hover { background: var(--color-surface-2); }
.mobile-menu a[aria-current="page"] { color: var(--color-primary); }
.mobile-menu .btn { margin: var(--space-2) var(--space-3) var(--space-1); width: calc(100% - var(--space-6)); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(var(--space-16), 8vw, var(--space-24)) clamp(var(--space-12), 6vw, var(--space-20)); }
.hero .container { display: grid; gap: var(--space-10); align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: var(--text-hero); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: 'opsz' 144, 'SOFT' 60; max-width: 14ch; }
.hero h1 .em { display: inline; }
.hero .lede { margin-top: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-10); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.hero-meta span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); margin-right: var(--space-2); vertical-align: middle; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 60px oklch(0.6 0.2 10 / 0.18)); animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-art figcaption { position: absolute; left: 50%; bottom: -4%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-display); font-style: italic; font-size: var(--text-sm); color: var(--color-text-muted); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-12); }
  .hero-art { width: min(100%, 520px); justify-self: end; }
}

/* ---------- Pillars (asymmetric 2+1) ---------- */
.pillars { display: grid; gap: var(--space-4); }
.pillar { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 3vw, var(--space-10)); display: flex; flex-direction: column; gap: var(--space-3); }
.pillar h3 { font-family: var(--font-display); font-size: var(--text-xl); font-variation-settings: 'opsz' 72, 'SOFT' 60; }
.pillar p { color: var(--color-text-muted); }
.pillar .num { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--color-accent); }
.pillar--feature { background: var(--color-text); color: var(--color-text-inverse); border-color: transparent; }
.pillar--feature h3 { color: var(--color-text-inverse); }
.pillar--feature p { color: oklch(from var(--color-text-inverse) l c h / 0.75); }
.pillar--feature .btn--link { color: var(--color-accent); margin-top: auto; }
[data-theme="dark"] .pillar--feature { background: var(--color-primary-soft); color: var(--color-text); }
[data-theme="dark"] .pillar--feature h3 { color: var(--color-text); }
[data-theme="dark"] .pillar--feature p { color: var(--color-text-muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pillar--feature { background: var(--color-primary-soft); color: var(--color-text); }
  :root:not([data-theme="light"]) .pillar--feature h3 { color: var(--color-text); }
  :root:not([data-theme="light"]) .pillar--feature p { color: var(--color-text-muted); }
}
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .pillar--feature { grid-row: span 2; }
}

/* ---------- Story / timeline ---------- */
.story { display: grid; gap: var(--space-10); }
.story .prose p { color: var(--color-text-muted); }
.story .prose p:first-of-type { color: var(--color-text); font-size: var(--text-lg); line-height: 1.45; }
.timeline { list-style: none; display: grid; gap: 0; border-left: 1px solid var(--color-border); margin-left: var(--space-2); }
.timeline li { position: relative; padding: var(--space-4) 0 var(--space-4) var(--space-8); }
.timeline li::before { content: ''; position: absolute; left: -6px; top: calc(var(--space-4) + 0.55em); width: 11px; height: 11px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px var(--color-bg); }
.timeline .year { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--color-primary); display: block; }
.timeline strong { display: block; font-weight: 700; margin-top: var(--space-1); }
.timeline p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-1); max-width: 40ch; }
@media (min-width: 900px) { .story { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-16); align-items: start; } }

/* ---------- Programme rows (editorial list) ---------- */
.programme-list { list-style: none; border-top: 1px solid var(--color-border); }
.programme { display: grid; gap: var(--space-3); padding: clamp(var(--space-6), 3vw, var(--space-10)) 0; border-bottom: 1px solid var(--color-border); }
.programme .idx { font-family: var(--font-display); font-style: italic; color: var(--color-accent); font-size: var(--text-lg); }
.programme h3 { font-family: var(--font-display); font-size: var(--text-xl); font-variation-settings: 'opsz' 72, 'SOFT' 60; }
.programme p { color: var(--color-text-muted); max-width: 58ch; }
.programme .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.tag { font-size: var(--text-xs); font-weight: 600; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-text-muted); }
@media (min-width: 900px) {
  .programme { grid-template-columns: 4rem 1fr 1.4fr; gap: var(--space-8); align-items: start; }
  .programme .idx { padding-top: 0.35em; }
}

/* ---------- Quote band ---------- */
.quote-band { background: var(--color-primary); color: #fff; padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.quote-band blockquote { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; font-variation-settings: 'opsz' 144, 'SOFT' 80; max-width: 24ch; }
.quote-band cite { display: block; margin-top: var(--space-6); font-family: var(--font-body); font-style: normal; font-size: var(--text-sm); opacity: 0.85; }
[data-theme="dark"] .quote-band { color: var(--color-text-inverse); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quote-band { color: var(--color-text-inverse); } }

/* ---------- Help pathway ---------- */
.pathway { display: grid; gap: var(--space-4); counter-reset: step; }
.step { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-style: italic; color: var(--color-accent); font-size: var(--text-lg); display: block; margin-bottom: var(--space-3); }
.step h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); }
.step a { color: var(--color-primary); font-weight: 600; }
@media (min-width: 720px) { .pathway { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pathway { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Helplines ---------- */
.helplines { display: grid; gap: var(--space-4); }
.helpline { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.helpline--urgent { background: var(--color-accent-soft); border-color: transparent; }
.helpline .who { font-weight: 700; }
.helpline .what { font-size: var(--text-sm); color: var(--color-text-muted); }
.helpline .num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; letter-spacing: 0.01em; text-decoration: none; color: var(--color-text); margin-top: var(--space-2); }
.helpline .num:hover { color: var(--color-primary); }
@media (min-width: 720px) { .helplines { grid-template-columns: repeat(2, 1fr); } .helpline--urgent { grid-column: span 2; } }

/* ---------- Signs list ---------- */
.signs { display: grid; gap: var(--space-2) var(--space-8); padding-left: 1.2em; }
.signs li { color: var(--color-text-muted); }
.signs li::marker { color: var(--color-primary); }
@media (min-width: 720px) { .signs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Trustees ---------- */
.trustees { list-style: none; display: grid; gap: var(--space-2); }
.trustee { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.trustee .initials { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #fff; background: var(--color-primary); }
.trustee:nth-child(2n) .initials { background: var(--color-coral); }
.trustee:nth-child(3n) .initials { background: var(--color-accent); color: #2a1a21; }
.trustee strong { display: block; }
.trustee span { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (min-width: 720px) { .trustees { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Get involved ---------- */
.involve { display: grid; gap: var(--space-4); }
.involve-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 3vw, var(--space-8)); display: flex; flex-direction: column; gap: var(--space-3); }
.involve-card h3 { font-family: var(--font-display); font-size: var(--text-xl); font-variation-settings: 'opsz' 72, 'SOFT' 60; }
.involve-card p { color: var(--color-text-muted); }
.involve-card .btn { align-self: flex-start; margin-top: auto; }
.involve-card--wide { background: var(--color-accent-soft); border-color: transparent; }
@media (min-width: 900px) { .involve { grid-template-columns: repeat(2, 1fr); } .involve-card--wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-8); } .involve-card--wide .btn { margin-top: 0; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: var(--space-3) var(--space-4); min-height: 48px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 16px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.2); }
.field .hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.form-note { font-size: var(--text-xs); color: var(--color-text-muted); }
.form-status { display: none; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); }
.form-status[data-state="ok"] { display: block; background: var(--color-accent-soft); }
.form-status[data-state="err"] { display: block; background: var(--color-coral-soft); color: var(--color-error); }
@media (min-width: 720px) { .form--2col { grid-template-columns: 1fr 1fr; } .form--2col .field--full, .form--2col .form-note, .form--2col .form-status, .form--2col .btn { grid-column: span 2; } .form--2col .btn { justify-self: start; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-10); }
.contact-list { list-style: none; display: grid; gap: var(--space-5); }
.contact-list strong { display: block; font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-1); }
.contact-list a { color: var(--color-text); font-weight: 500; }
.contact-list a:hover { color: var(--color-primary); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-16); } }

/* ---------- Page header (interior) ---------- */
.page-head { padding-block: clamp(var(--space-16), 8vw, var(--space-24)) clamp(var(--space-10), 4vw, var(--space-16)); }
.page-head h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; font-variation-settings: 'opsz' 144, 'SOFT' 60; max-width: 16ch; }
.page-head .lede { margin-top: var(--space-5); }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.cta-card { position: relative; overflow: hidden; background: var(--color-text); color: var(--color-text-inverse); border-radius: var(--radius-xl); padding: clamp(var(--space-8), 5vw, var(--space-16)); display: grid; gap: var(--space-8); align-items: center; }
.cta-card h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; letter-spacing: -0.015em; font-variation-settings: 'opsz' 144, 'SOFT' 60; max-width: 18ch; }
.cta-card p { color: oklch(from var(--color-text-inverse) l c h / 0.75); margin-top: var(--space-3); max-width: 46ch; }
.cta-card .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-card img { position: absolute; right: -6%; bottom: -30%; width: 42%; opacity: 0.18; pointer-events: none; }
[data-theme="dark"] .cta-card { background: var(--color-surface-2); color: var(--color-text); }
[data-theme="dark"] .cta-card p { color: var(--color-text-muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-card { background: var(--color-surface-2); color: var(--color-text); } :root:not([data-theme="light"]) .cta-card p { color: var(--color-text-muted); } }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1.3fr auto; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--color-divider); background: var(--color-surface-2); padding-block: clamp(var(--space-12), 5vw, var(--space-20)) var(--space-8); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--space-10); }
.footer-brand p { color: var(--color-text-muted); margin-top: var(--space-4); max-width: 34ch; }
.footer-col h4 { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; display: grid; gap: var(--space-2); }
.footer-col a { text-decoration: none; color: var(--color-text); }
.footer-col a:hover { color: var(--color-primary); text-decoration: underline; }
.footer-bottom { margin-top: clamp(var(--space-10), 4vw, var(--space-16)); padding-top: var(--space-6); border-top: 1px solid var(--color-divider); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-muted); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms cubic-bezier(0.16,1,0.3,1), transform 600ms cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =====================================================================
   Account, Events, Chat companion
   ===================================================================== */

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: var(--space-1); padding: var(--space-1); background: var(--color-surface-2); border-radius: var(--radius-full); margin-bottom: var(--space-8); }
.tabs [role="tab"] { min-height: 44px; padding: var(--space-2) var(--space-5); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.tabs [role="tab"]:hover { color: var(--color-text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }
[role="tabpanel"][hidden] { display: none; }

.auth-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.auth-card h2 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-2); }
.auth-card > p { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--color-primary); }
.check span small { display: block; color: var(--color-text-muted); }
fieldset.field { border: 0; }
fieldset.field legend { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.field-error { font-size: var(--text-xs); color: var(--color-error); display: none; }
.field[data-invalid="true"] .field-error { display: block; }
.field[data-invalid="true"] input { border-color: var(--color-error); }
.switch-tab { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-4); }
.switch-tab button { color: var(--color-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }

/* Signed-in dashboard */
.dash { display: grid; gap: var(--space-4); }
.dash-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 3vw, var(--space-8)); }
.dash-card h2 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-2); }
.dash-card > p { color: var(--color-text-muted); font-size: var(--text-sm); }
.dash-card .form { margin-top: var(--space-5); }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-8); }
.dash-head h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; letter-spacing: -0.02em; }
.dash-head p { color: var(--color-text-muted); }
.pref-list { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.rsvp-list { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.rsvp-list li { display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); }
.rsvp-list li span { color: var(--color-text-muted); }
@media (min-width: 900px) { .dash { grid-template-columns: 1.2fr 0.8fr; } }

/* ---------- Events ---------- */
.event-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.chip { min-height: 40px; padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); border: 1px solid var(--color-border); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); background: transparent; }
.chip:hover { color: var(--color-text); border-color: var(--color-text); }
.chip[aria-pressed="true"] { background: var(--color-text); color: var(--color-text-inverse); border-color: var(--color-text); }
.event-list { list-style: none; display: grid; gap: var(--space-4); }
.event { display: grid; gap: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-5), 3vw, var(--space-8)); }
.event-date { display: flex; flex-direction: column; line-height: 1; width: 4.5rem; flex: none; }
.event-date .d { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.02em; }
.event-date .m { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-primary); margin-top: var(--space-1); }
.event-date .y { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); }
.event-body h3 { font-family: var(--font-display); font-size: var(--text-xl); font-variation-settings: 'opsz' 72, 'SOFT' 60; margin-bottom: var(--space-2); }
.event-body p { color: var(--color-text-muted); max-width: 60ch; }
.event-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.event-meta svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 4px; }
.event-actions { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.event-actions .going { font-size: var(--text-xs); color: var(--color-success); font-weight: 700; }
.event--past { opacity: 0.7; }
.empty-state { text-align: center; padding: var(--space-16) var(--space-6); color: var(--color-text-muted); }
.empty-state h3 { color: var(--color-text); font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-2); }
@media (min-width: 800px) { .event { grid-template-columns: auto 1fr auto; align-items: start; } .event-actions { align-items: flex-end; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: var(--space-6); transform: translate(-50%, 20px); opacity: 0; background: var(--color-text); color: var(--color-text-inverse); padding: var(--space-3) var(--space-5); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; box-shadow: var(--shadow-lg); z-index: 90; pointer-events: none; transition: opacity 240ms, transform 240ms; }
.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Chat companion ---------- */
.chat-launch {
  position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 80;
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 52px; padding: var(--space-3) var(--space-5) var(--space-3) var(--space-3);
  background: var(--color-primary); color: #fff; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 700; box-shadow: var(--shadow-lg);
}
.chat-launch img { width: 30px; height: 29px; }
.chat-launch:hover { background: var(--color-primary-hover); }
.chat-launch:active { transform: translateY(1px); }
.chat-launch[data-hidden="true"] { display: none; }
[data-theme="dark"] .chat-launch { color: var(--color-text-inverse); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chat-launch { color: var(--color-text-inverse); } }

.chat {
  position: fixed; z-index: 85; inset: 0;
  display: none; flex-direction: column;
  background: var(--color-bg); box-shadow: var(--shadow-lg);
}
.chat[data-open="true"] { display: flex; }
@media (min-width: 600px) {
  .chat { inset: auto var(--space-4) var(--space-4) auto; width: min(420px, calc(100vw - 2rem)); height: min(680px, calc(100dvh - 2rem)); border-radius: var(--radius-xl); border: 1px solid var(--color-border); overflow: hidden; }
}
.chat-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-divider); background: var(--color-surface); }
.chat-head img { width: 36px; height: 35px; }
.chat-head strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.1; }
.chat-head small { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }
.chat-head .icon-btn { margin-left: auto; }
.chat-notice { font-size: var(--text-xs); color: var(--color-text-muted); padding: var(--space-2) var(--space-4); background: var(--color-surface-2); border-bottom: 1px solid var(--color-divider); }
.chat-notice a { color: var(--color-primary); font-weight: 700; }
.chat-log { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); scroll-behavior: smooth; }
.msg { max-width: 88%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); font-size: var(--text-sm); line-height: 1.5; animation: msg-in 260ms cubic-bezier(0.16,1,0.3,1) both; }
.msg p + p { margin-top: var(--space-2); }
.msg ul, .msg ol { padding-left: 1.2em; margin-top: var(--space-2); }
.msg li + li { margin-top: var(--space-1); }
.msg--bot { align-self: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-bottom-left-radius: var(--radius-sm); }
.msg--user { align-self: flex-end; background: var(--color-primary); color: #fff; border-bottom-right-radius: var(--radius-sm); }
[data-theme="dark"] .msg--user { color: var(--color-text-inverse); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg--user { color: var(--color-text-inverse); } }
.msg--crisis { background: var(--color-accent-soft); border-color: transparent; }
.msg--crisis a { font-weight: 700; color: var(--color-text); }
.msg .num-big { display: block; font-family: var(--font-display); font-size: var(--text-xl); margin: var(--space-2) 0; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: var(--space-3) var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-text-faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.3; } 40% { opacity: 1; } }

.chat-chips { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); padding: 0 var(--space-4) var(--space-3); }
.chat-chips:empty { display: none; }
.chat-chips .chip { min-height: 36px; padding-block: var(--space-1); font-size: var(--text-xs); background: var(--color-surface); }
.chat-chips .chip:hover { background: var(--color-primary-soft); border-color: var(--color-primary); color: var(--color-text); }

.chat-form { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-divider); background: var(--color-surface); }
.chat-form input { flex: 1; min-height: 44px; padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-bg); font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.2); }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); color: #fff; display: grid; place-items: center; flex: none; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-form button:disabled { opacity: 0.5; cursor: not-allowed; }
[data-theme="dark"] .chat-form button { color: var(--color-text-inverse); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chat-form button { color: var(--color-text-inverse); } }

/* Scale input inside chat */
.scale { display: grid; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3); }
.scale output { font-family: var(--font-display); font-size: var(--text-lg); }
.scale input[type="range"] { width: 100%; accent-color: var(--color-primary); }
.scale .btn { justify-self: start; min-height: 40px; }

/* Breathing widget */
.breath { align-self: center; display: grid; place-items: center; gap: var(--space-3); padding: var(--space-4) 0; }
.breath-ring { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--color-accent) 0%, var(--color-coral) 55%, var(--color-primary) 100%); opacity: 0.9; transform: scale(0.6); transition: transform 4s ease-in-out; }
.breath-ring[data-phase="in"] { transform: scale(1); }
.breath-ring[data-phase="hold"] { transform: scale(1); }
.breath-ring[data-phase="out"] { transform: scale(0.6); }
.breath-ring[data-phase="hold2"] { transform: scale(0.6); }
.breath-label { font-family: var(--font-display); font-size: var(--text-lg); }
.breath-count { font-size: var(--text-xs); color: var(--color-text-muted); }
@media (prefers-reduced-motion: reduce) { .breath-ring { transition: none; } }

/* Make room for the launcher on small screens */
@media (max-width: 599px) { .site-footer { padding-bottom: calc(var(--space-8) + 64px); } }

/* ---------- Directory ---------- */
.dir-controls { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.dir-controls .field input, .dir-controls .field select { min-height: 48px; }
.dir-count { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.dir-list { list-style: none; display: grid; gap: var(--space-4); }
.dir-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-5), 3vw, var(--space-8)); display: grid; gap: var(--space-2); }
.dir-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; font-size: var(--text-sm); color: var(--color-text-muted); }
.dir-item h3 { font-family: var(--font-display); font-size: var(--text-xl); font-variation-settings: 'opsz' 72, 'SOFT' 60; }
.dir-item p { color: var(--color-text-muted); max-width: 64ch; }
.dir-note { font-size: var(--text-sm); }
.dir-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-2); }
.dir-actions .btn--ghost { min-height: 42px; padding-block: var(--space-2); }
@media (min-width: 720px) { .dir-controls { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 900px) { .dir-list { grid-template-columns: repeat(2, 1fr); } .dir-item--wide { grid-column: span 2; } }

/* ---------- Past events / highlights ---------- */
.highlights { display: grid; gap: var(--space-4); }
.highlight { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 3vw, var(--space-8)); display: flex; flex-direction: column; gap: var(--space-2); }
.highlight .when { font-family: var(--font-display); font-style: italic; color: var(--color-accent); font-size: var(--text-lg); }
.highlight h3 { font-family: var(--font-display); font-size: var(--text-xl); font-variation-settings: 'opsz' 72, 'SOFT' 60; }
.highlight p { color: var(--color-text-muted); }
.highlight--feature { background: var(--color-primary-soft); border-color: transparent; }
@media (min-width: 900px) { .highlights { grid-template-columns: repeat(3, 1fr); } .highlight--feature { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-8); align-items: start; } .highlight--feature h3 { font-size: var(--text-2xl); } }

/* ---------- Founder ---------- */
.founder { display: grid; gap: var(--space-8); }
.founder-card { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-8); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); align-items: flex-start; }
.founder-card strong { font-family: var(--font-display); font-size: var(--text-xl); margin-top: var(--space-4); }
.founder-card span { font-size: var(--text-sm); }
.founder-initials { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--brand-amber), var(--brand-coral) 55%, var(--brand-raspberry)); }
.founder-quote { margin-top: var(--space-8); padding-left: var(--space-5); border-left: 2px solid var(--color-primary); }
.founder-quote p { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); line-height: 1.35; color: var(--color-text); max-width: 30ch; font-variation-settings: 'opsz' 72, 'SOFT' 80; }
.founder-quote cite { display: block; margin-top: var(--space-3); font-style: normal; font-size: var(--text-xs); color: var(--color-text-muted); }
@media (min-width: 900px) { .founder { grid-template-columns: 300px 1fr; gap: var(--space-16); align-items: start; } .founder-card { position: sticky; top: calc(72px + var(--space-6)); } }

/* Founder photo: tight head-and-shoulders crop, brand-warm tone, hides initials when present */
.founder-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: calc(var(--radius-xl) - var(--space-4)); filter: contrast(1.06) saturate(0.92) brightness(1.02); box-shadow: var(--shadow-md); }
.founder-photo + .founder-initials { display: none; }
.founder-card:has(.founder-photo) { padding: var(--space-4) var(--space-4) var(--space-6); }
.founder-card:has(.founder-photo) strong, .founder-card:has(.founder-photo) span { padding-inline: var(--space-2); }

/* =====================================================================
   Home page — NGO template structure (hero photo, action cards, stats,
   about, programme cards, events, stories, donate band)
   ===================================================================== */
.photo-hero { position: relative; isolation: isolate; color: #fff; min-height: min(78vh, 720px); display: flex; align-items: center; padding-block: clamp(var(--space-20), 10vw, var(--space-32)) clamp(var(--space-24), 12vw, 11rem); overflow: hidden; }
.photo-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('assets/photos/lagos.jpg') center 40% / cover no-repeat, #2a1a21; filter: saturate(0.4) contrast(1.05); transform: scale(1.03); }
.photo-hero[data-photo="hero"]::before { background-image: url('assets/photos/hero.jpg'), url('assets/photos/lagos.jpg'); }
.photo-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, oklch(0.22 0.06 350 / 0.94) 0%, oklch(0.25 0.08 350 / 0.82) 45%, oklch(0.3 0.1 20 / 0.55) 100%); }
.photo-hero .eyebrow { color: var(--brand-amber); }
.photo-hero h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; font-variation-settings: 'opsz' 144, 'SOFT' 60; max-width: 16ch; }
.photo-hero .lede { color: oklch(1 0 0 / 0.82); margin-top: var(--space-5); max-width: 50ch; }
.photo-hero .hero-actions { margin-top: var(--space-8); }
.photo-hero .btn--ghost { color: #fff; border-color: oklch(1 0 0 / 0.5); }
.photo-hero .btn--ghost:hover { background: oklch(1 0 0 / 0.1); border-color: #fff; }
.btn--amber { background: var(--brand-amber); color: #2a1a21; }
.btn--amber:hover { background: #f7c55a; }
.btn--amber:active { transform: translateY(1px); }
.photo-hero .hero-credit { position: absolute; right: var(--space-4); bottom: var(--space-3); font-size: 0.6875rem; color: oklch(1 0 0 / 0.45); }
.photo-hero .hero-credit a { color: inherit; }

/* Action cards overlapping the hero */
.action-cards { position: relative; z-index: 2; margin-top: -4.5rem; display: grid; gap: var(--space-4); }
.action-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: var(--space-2); }
.action-card svg { width: 32px; height: 32px; color: var(--color-primary); margin-bottom: var(--space-2); }
.action-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
.action-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.action-card .btn--link { margin-top: auto; font-size: var(--text-sm); }
.action-card--accent { background: var(--color-text); color: var(--color-text-inverse); border-color: transparent; }
.action-card--accent svg { color: var(--brand-amber); }
.action-card--accent p { color: oklch(from var(--color-text-inverse) l c h / 0.75); }
.action-card--accent .btn--link { color: var(--brand-amber); }
[data-theme="dark"] .action-card--accent { background: var(--color-primary); color: #fff; }
[data-theme="dark"] .action-card--accent p { color: oklch(1 0 0 / 0.8); }
[data-theme="dark"] .action-card--accent .btn--link { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .action-card--accent { background: var(--color-primary); color: #fff; } :root:not([data-theme="light"]) .action-card--accent p { color: oklch(1 0 0 / 0.8); } :root:not([data-theme="light"]) .action-card--accent .btn--link { color: #fff; } }
@media (min-width: 800px) { .action-cards { grid-template-columns: repeat(3, 1fr); margin-top: -5.5rem; } }

/* Stats band */
.stats { display: grid; gap: var(--space-4); }
.stat { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.stat .n { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--color-primary); }
.stat .n small { font-size: 0.5em; }
.stat .l { font-weight: 700; margin-top: var(--space-2); }
.stat .s { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats-intro { display: grid; gap: var(--space-8); margin-bottom: var(--space-10); }
.stats-intro blockquote { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); line-height: 1.4; padding-left: var(--space-5); border-left: 2px solid var(--brand-amber); color: var(--color-text); max-width: 34ch; font-variation-settings: 'opsz' 72, 'SOFT' 80; }
.stats-intro blockquote cite { display: block; margin-top: var(--space-3); font-family: var(--font-body); font-style: normal; font-size: var(--text-xs); color: var(--color-text-muted); }
@media (min-width: 900px) { .stats-intro { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }

/* About split */
.about-split { display: grid; gap: var(--space-10); align-items: center; }
.about-media { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--brand-amber), var(--brand-coral) 55%, var(--brand-raspberry)); display: grid; place-items: center; }
.about-media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-media img.mark { width: 55%; filter: drop-shadow(0 20px 40px oklch(0.3 0.1 20 / 0.35)); }
.about-media .badge { position: absolute; left: var(--space-5); bottom: var(--space-5); background: var(--color-surface); color: var(--color-text); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); box-shadow: var(--shadow-md); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.about-points { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.about-points li { display: flex; gap: var(--space-3); align-items: flex-start; }
.about-points svg { width: 22px; height: 22px; flex: none; color: var(--color-primary); margin-top: 2px; }
.about-points strong { display: block; }
.about-points span { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (min-width: 900px) { .about-split { grid-template-columns: 1fr 1.1fr; gap: var(--space-16); } }

/* Programme cards */
.prog-cards { display: grid; gap: var(--space-4); }
.prog-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); transition: box-shadow var(--transition-interactive), transform var(--transition-interactive); }
.prog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.prog-card svg { width: 28px; height: 28px; color: var(--brand-coral); margin-bottom: var(--space-1); }
.prog-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
.prog-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.prog-card a { margin-top: auto; font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); text-decoration: none; }
.prog-card a:hover { text-decoration: underline; }
@media (min-width: 640px) { .prog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .prog-cards { grid-template-columns: repeat(3, 1fr); } }

/* Compact event cards (home) */
.event-cards { list-style: none; display: grid; gap: var(--space-4); }
.event-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; }
.event-card .event-date { width: 3.75rem; }
.event-card .event-date .d { font-size: var(--text-xl); }
.event-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; margin: var(--space-1) 0; }
.event-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.event-card .event-meta { margin: 0 0 var(--space-1); font-size: var(--text-xs); }
.event-card a { font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); text-decoration: none; display: inline-block; margin-top: var(--space-3); }
.event-card a:hover { text-decoration: underline; }
@media (min-width: 900px) { .event-cards { grid-template-columns: repeat(3, 1fr); } }

/* Stories */
.stories { display: grid; gap: var(--space-4); }
.story-card { display: grid; gap: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.story-thumb { aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface-offset)); position: relative; display: grid; place-items: center; }
.story-thumb img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-thumb .when { font-family: var(--font-display); font-style: italic; font-size: var(--text-xl); color: var(--color-primary); }
.story-card--feature .story-thumb { background: linear-gradient(160deg, var(--brand-amber), var(--brand-coral) 60%, var(--brand-raspberry)); }
.story-card--feature .story-thumb .when { color: #fff; }
.story-body { padding: 0 var(--space-6) var(--space-6); }
.story-body .tag { margin-bottom: var(--space-3); display: inline-block; }
.story-body h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
.story-body p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
.story-body a { font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); text-decoration: none; display: inline-block; margin-top: var(--space-3); }
.story-body a:hover { text-decoration: underline; }
@media (min-width: 720px) { .stories { grid-template-columns: repeat(2, 1fr); } .story-card--feature { grid-column: span 2; grid-template-columns: 1.2fr 1fr; } .story-card--feature .story-thumb { aspect-ratio: auto; min-height: 280px; } .story-card--feature .story-body { padding: var(--space-8) var(--space-8) var(--space-8) 0; align-self: center; } }
@media (min-width: 1024px) { .stories { grid-template-columns: repeat(3, 1fr); } .story-card--feature { grid-column: span 3; } }

/* Donate band */
.donate-band { position: relative; isolation: isolate; color: #fff; padding-block: clamp(var(--space-20), 10vw, var(--space-32)); overflow: hidden; }
.donate-band::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('assets/photos/lagos.jpg') center 60% / cover no-repeat, #2a1a21; filter: saturate(0.3) blur(2px); transform: scale(1.05); }
.donate-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, oklch(0.42 0.2 10 / 0.95), oklch(0.5 0.18 25 / 0.85)); }
.donate-band h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; letter-spacing: -0.015em; max-width: 20ch; font-variation-settings: 'opsz' 144, 'SOFT' 60; }
.donate-band p { color: oklch(1 0 0 / 0.85); margin-top: var(--space-4); max-width: 52ch; }
.donate-band .container { display: grid; gap: var(--space-8); align-items: center; }
.donate-band .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.donate-band .btn--ghost { color: #fff; border-color: oklch(1 0 0 / 0.5); }
.donate-band .btn--ghost:hover { background: oklch(1 0 0 / 0.1); border-color: #fff; }
@media (min-width: 900px) { .donate-band .container { grid-template-columns: 1.4fr auto; } }

/* Section header row with link on the right */
.section-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-4); margin-bottom: clamp(var(--space-8), 4vw, var(--space-12)); }
.section-row .section-head { margin-bottom: 0; }

/* Dark footer (template style) */
.site-footer--dark { background: #1f1219; color: #e9dce2; border-top: 0; }
.site-footer--dark .brand-name, .site-footer--dark .footer-col a { color: #fff; }
.site-footer--dark .brand-name small, .site-footer--dark .footer-brand p, .site-footer--dark .footer-col h4, .site-footer--dark .footer-bottom { color: oklch(0.8 0.02 350 / 0.75); }
.site-footer--dark .footer-bottom { border-top-color: oklch(1 0 0 / 0.1); }
.site-footer--dark .footer-col a:hover { color: var(--brand-amber); }
.social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid oklch(1 0 0 / 0.2); color: #fff; }
.social a:hover { background: var(--brand-amber); color: #2a1a21; border-color: var(--brand-amber); }
.social svg { width: 18px; height: 18px; }

/* ---- Trustee photos ---- */
.trustee { align-items: flex-start; }
.trustee-photo { flex: none; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: 50% 35%; box-shadow: var(--shadow-md); filter: contrast(1.05) saturate(0.95); }
.trustee-photo + .initials { display: none; }
.trustee span + span { display: block; margin-top: 2px; }
