/* ==========================================================================
   The Sunshine Project — site styles
   Palette taken from the logo: sun gold, warm ink, cream, with a rose accent
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --sun: #F4B324;
  --sun-soft: #FCE3A2;
  --sun-wash: #FFF4D8;
  --gold-text: #8A5A00;      /* gold that passes contrast for small text */
  --rose: #C2255C;
  --rose-wash: #FCE8EF;
  --ink: #1F1A15;
  --ink-2: #4B443C;
  --ink-3: #6E665C;
  --cream: #FFFAF1;
  --paper: #FFFFFF;
  --line: #ECE2D0;
  --line-strong: #D9CBB2;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(31, 26, 21, .06), 0 2px 8px rgba(31, 26, 21, .05);
  --shadow: 0 2px 6px rgba(31, 26, 21, .05), 0 18px 40px -18px rgba(31, 26, 21, .22);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
em.accent { font-style: italic; color: var(--gold-text); }
::selection { background: var(--sun-soft); }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-paper { background: var(--paper); }
.bg-wash { background: var(--sun-wash); }
.bg-ink { background: var(--ink); color: #F5EFE6; }
.bg-ink h2, .bg-ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sun); border-radius: 2px; }
.bg-ink .eyebrow { color: var(--sun); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--sun); border-radius: 2px; }
.section-head .lead { font-size: 1.15rem; color: var(--ink-2); }
.bg-ink .section-head .lead { color: #D8CFC2; }
.split-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.split-head .section-head { margin-bottom: 0; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #E9A512; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3A322A; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.bg-ink .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.bg-ink .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--sun); padding-bottom: 2px;
  transition: gap .2s var(--ease), border-color .2s var(--ease);
}
.text-link:hover { gap: .65rem; border-color: var(--ink); }
.text-link .icon { width: 1em; height: 1em; }
.bg-ink .text-link { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 241, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(31,26,21,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 78px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex: none; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { font-family: var(--font-display); font-size: .78rem; color: var(--ink-2); letter-spacing: .02em; }
.brand-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--ink); letter-spacing: -.01em; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.primary-nav a {
  display: block; white-space: nowrap; padding: .55rem .7rem; font-size: .95rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none; border-radius: 8px; position: relative;
  transition: color .2s;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; background: var(--sun); border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: .5rem; }
.header-cta .btn { min-height: 44px; padding: .6rem 1.15rem; font-size: .95rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--paper); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: 78px 0 0 0; background: var(--cream);
    padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
    border-top: 1px solid var(--line);
  }
  .nav-open .primary-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { font-family: var(--font-display); font-size: 1.6rem; padding: .85rem 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
  .primary-nav a[aria-current="page"]::after { left: 0; right: auto; width: 32px; bottom: .5rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .header-cta .btn { display: none; }
  .brand img { width: 44px; }
  .brand-text strong { font-size: 1.15rem; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-text); }
.hero .lead { max-width: 540px; margin-bottom: 2rem; }
.hero-motto { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .92rem; color: var(--ink-3); }
.hero-motto span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-motto span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }

.hero-media { position: relative; min-height: 520px; }
.hero-media .photo-main {
  position: absolute; right: 0; top: 0; width: 82%; aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.hero-media .photo-sub {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1.05;
  border-radius: var(--radius); overflow: hidden; border: 6px solid var(--cream); box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; right: -6px; bottom: 9%; background: var(--paper); border-radius: var(--radius);
  padding: 1rem 1.25rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .9rem; max-width: 250px;
}
.hero-badge strong { font-variant-numeric: lining-nums; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--ink); }
.hero-badge span { font-size: .85rem; line-height: 1.35; color: var(--ink-2); }
.sun-rays { position: absolute; pointer-events: none; color: var(--sun); opacity: .35; }
.hero .sun-rays { width: 520px; right: -200px; top: -230px; opacity: .16; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 0; aspect-ratio: 1 / .95; max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .hero-badge { right: 0; bottom: 4%; padding: .8rem 1rem; }
  .hero-badge strong { font-variant-numeric: lining-nums; font-size: 1.7rem; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); max-width: 16ch; }
.page-hero .lead { max-width: 640px; }
.page-hero .sun-rays { width: 460px; right: -120px; top: -150px; opacity: .2; }
.breadcrumb { font-size: .88rem; color: var(--ink-3); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.stat { padding: 1.75rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat strong { font-variant-numeric: lining-nums; display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; line-height: 1; margin-bottom: .6rem; }
.stat strong sup { font-size: .5em; color: var(--gold-text); top: -.7em; margin-left: .05em; }
.stat span { color: var(--ink-2); font-size: .98rem; }
.bg-ink .stats { border-top-color: rgba(255,255,255,.2); }
.bg-ink .stat + .stat { border-left-color: rgba(255,255,255,.12); }
.bg-ink .stat strong { color: #fff; }
.bg-ink .stat strong sup { color: var(--sun); }
.bg-ink .stat span { color: #D2C8BA; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.75rem; }
  .bg-ink .stat:nth-child(n+3) { border-top-color: rgba(255,255,255,.12); }
}

/* ---------- Focus areas list ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.focus-item { padding: 2rem 1.75rem 2.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); transition: background-color .25s var(--ease); }
.focus-item:hover { background: var(--sun-wash); }
.focus-item .icon-wrap { width: 48px; height: 48px; border-radius: 50%; background: var(--sun-wash); color: var(--gold-text); display: grid; place-items: center; margin-bottom: 1.4rem; transition: background-color .25s; }
.focus-item:hover .icon-wrap { background: var(--sun); color: var(--ink); }
.focus-item .icon-wrap .icon { width: 22px; height: 22px; }
.focus-item h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.focus-item p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 900px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .focus-grid { grid-template-columns: 1fr; } }

/* ---------- Two-column feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 4 / 3.3; box-shadow: var(--shadow); }
.feature-media .caption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; background: rgba(31,26,21,.78); color: #fff; font-size: .85rem; padding: .6rem .9rem; border-radius: 10px; backdrop-filter: blur(6px); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-2); }
.checklist li .icon { color: var(--gold-text); margin-top: .2rem; width: 1.15em; height: 1.15em; }
.checklist.cols { grid-template-columns: 1fr 1fr; gap: .75rem 2rem; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
}
@media (max-width: 560px) { .checklist.cols { grid-template-columns: 1fr; } }

/* ---------- Programme rows ---------- */
.programme-list { border-top: 1px solid var(--line-strong); }
.programme {
  display: grid; grid-template-columns: 70px 1.1fr 1.6fr auto; gap: 1.5rem; align-items: start;
  padding: 1.9rem 0; border-bottom: 1px solid var(--line);
}
.programme .num { font-variant-numeric: lining-nums; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-3); padding-top: .35rem; }
.programme h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.programme p { color: var(--ink-2); margin: .3rem 0 0; }
.tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-active { background: #E4F3E7; color: #1D6B34; }
.tag-soon { background: var(--sun-wash); color: var(--gold-text); }
.tag-rose { background: var(--rose-wash); color: var(--rose); }
.tag-rose::before { display: none; }
@media (max-width: 820px) {
  .programme { grid-template-columns: 44px 1fr; gap: .4rem 1rem; }
  .programme .num { font-variant-numeric: lining-nums; grid-row: span 3; }
  .programme .tag { justify-self: start; margin-top: .7rem; }
}

/* Programme detail cards (programmes page) */
.prog-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.prog-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; }
.prog-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding: 0; overflow: hidden; }
.prog-card.featured .body { padding: clamp(1.6rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.prog-card.featured img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.prog-card .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.prog-card .icon-wrap { width: 52px; height: 52px; border-radius: 50%; background: var(--sun-wash); color: var(--gold-text); display: grid; place-items: center; }
.prog-card .icon-wrap .icon { width: 24px; height: 24px; }
.prog-card h3 { margin: 0; }
.prog-card p { color: var(--ink-2); margin: 0; }
.prog-card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: .3rem; }
.prog-card ul li::marker { color: var(--sun); }
@media (max-width: 860px) {
  .prog-cards { grid-template-columns: 1fr; }
  .prog-card.featured { grid-template-columns: 1fr; }
  .prog-card.featured img { min-height: 240px; aspect-ratio: 16/10; }
}

/* ---------- Quote / founder ---------- */
.founder { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.founder-photo { position: relative; width: 100%; max-width: 280px; }
.founder-photo img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.founder-photo::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1.5px dashed var(--sun); }
.founder blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.35; font-weight: 500; }
.founder blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--sun); margin-bottom: .6rem; }
.founder cite { display: block; margin-top: 1.5rem; font-style: normal; }
.founder cite strong { display: block; font-size: 1.05rem; }
.founder cite span { color: var(--ink-3); font-size: .95rem; }
.bg-ink .founder cite span { color: #C9BFB1; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder-photo { max-width: 200px; margin-left: 12px; } }

/* ---------- Involvement cards ---------- */
.involve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.involve-card {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem;
  border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.involve-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.involve-card .icon-wrap { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); }
.involve-card:nth-child(2) .icon-wrap { background: var(--ink); color: var(--sun); }
.involve-card:nth-child(3) .icon-wrap { background: var(--rose); color: #fff; }
.involve-card .icon-wrap .icon { width: 24px; height: 24px; }
.involve-card h3 { margin: 0; }
.involve-card p { color: var(--ink-2); margin: 0; flex: 1; }
.involve-card .more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; margin-top: .5rem; }
.involve-card .more .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.involve-card:hover .more .icon { transform: translateX(4px); }
.bg-ink .involve-card { background: #2A241E; border-color: #3A322A; color: #F5EFE6; }
.bg-ink .involve-card p { color: #CFC5B7; }
.bg-ink .involve-card:hover { border-color: #5A4E40; }
@media (max-width: 900px) { .involve-grid { grid-template-columns: 1fr; } }

/* ---------- Dialogues / events ---------- */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.event { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; align-items: start; }
.event img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: var(--radius); }
.event .meta { font-size: .88rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .6rem; }
.event .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.event .meta .icon { width: 1em; height: 1em; }
.event h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.event p { font-size: .95rem; color: var(--ink-2); }
.event .people { margin-top: .9rem; display: grid; gap: .35rem; font-size: .92rem; }
.event .people b { font-weight: 600; }
.event .people span { color: var(--ink-3); }
@media (max-width: 980px) { .event-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .event { grid-template-columns: 1fr; } .event img { aspect-ratio: 4/3; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: .9rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sun-wash); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: .75rem; bottom: .75rem; background: rgba(255,255,255,.94); color: var(--ink); font-size: .8rem; font-weight: 600; padding: .35rem .65rem; border-radius: 999px; }
.g-a { grid-column: span 7; grid-row: span 4; }
.g-b { grid-column: span 5; grid-row: span 2; }
.g-c { grid-column: span 5; grid-row: span 2; }
.g-d { grid-column: span 4; grid-row: span 3; }
.g-e { grid-column: span 4; grid-row: span 3; }
.g-f { grid-column: span 4; grid-row: span 3; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery .g-a { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--sun); color: var(--ink); padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { margin-bottom: .5rem; font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.cta-band p { font-size: 1.1rem; color: #3B3024; max-width: 560px; }
.cta-band .sun-rays { width: 380px; right: -90px; bottom: -190px; color: #fff; opacity: .35; }
.cta-band .btn-row { position: relative; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.value { padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.value:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.value h3 { font-size: 1.35rem; margin-bottom: .35rem; display: flex; align-items: baseline; gap: .7rem; }
.value h3 span { font-family: var(--font-body); font-size: .8rem; color: var(--gold-text); font-weight: 700; letter-spacing: .08em; }
.value p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 820px) {
  .values { grid-template-columns: 1fr 1fr; }
  .value:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .value:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } .value:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- Vision / mission cards ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.vm-card { border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 2.75rem); background: var(--paper); border: 1px solid var(--line); }
.vm-card.dark { background: var(--ink); color: #F5EFE6; border-color: var(--ink); }
.vm-card h3 { font-size: .85rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 1rem; }
.vm-card.dark h3 { color: var(--sun); }
.vm-card p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.4; margin: 0; }
@media (max-width: 760px) { .vm-grid { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.team-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.team-card .role { font-weight: 700; margin-bottom: .4rem; display: block; }
.team-card p { font-size: .93rem; color: var(--ink-2); margin: 0; }
.team-card .initial { width: 44px; height: 44px; border-radius: 50%; background: var(--sun-wash); color: var(--gold-text); display: grid; place-items: center; margin-bottom: 1rem; }
.team-card .initial .icon { width: 20px; height: 20px; }

/* ---------- Portfolios ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; counter-reset: pf; }
.portfolio { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.portfolio .n { font-variant-numeric: lining-nums; font-family: var(--font-display); color: var(--ink-3); width: 2rem; font-size: 1rem; flex: none; }
.portfolio .icon-wrap { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sun-wash); color: var(--gold-text); flex: none; }
.portfolio .icon-wrap .icon { width: 20px; height: 20px; }
.portfolio span.name { font-weight: 600; }
@media (max-width: 760px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.step::before { font-variant-numeric: lining-nums; counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--sun); line-height: 1; margin-bottom: 1rem; }
.step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.step p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Opportunity categories ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-strong); font-weight: 600; font-size: .98rem; }
.chip .icon { width: 1.1em; height: 1.1em; color: var(--gold-text); }

/* ---------- Stories ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.story { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.story:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.story img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.story .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.story h3 { font-size: 1.3rem; margin: 0; }
.story p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.story.lead-story { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.story.lead-story img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.story.lead-story .body { padding: clamp(1.75rem, 4vw, 3rem); justify-content: center; gap: 1rem; }
.story.lead-story h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-row button { min-height: 44px; padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); font-weight: 600; font-size: .92rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filter-row button:hover { border-color: var(--ink); }
.filter-row button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.story[hidden] { display: none; }
@media (max-width: 980px) { .story-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .story-grid { grid-template-columns: 1fr; }
  .story.lead-story { grid-template-columns: 1fr; }
  .story.lead-story img { min-height: 0; aspect-ratio: 4/3; }
}

/* ---------- Support / giving ---------- */
.give-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.give-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.give-card .top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.give-card .icon-wrap { width: 50px; height: 50px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; }
.give-card h3 { margin: 0; }
.detail-list { margin: 0; display: grid; gap: .1rem; }
.detail-list > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--ink-3); font-size: .93rem; }
.detail-list dd { margin: 0; font-weight: 600; text-align: right; display: flex; align-items: center; gap: .5rem; }
.detail-list dd.pending { color: var(--rose); font-weight: 600; font-style: italic; }
.copy-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--cream); display: inline-grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.copy-btn:hover { background: var(--sun-wash); }
.copy-btn .icon { width: 16px; height: 16px; }
.give-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.give-use { border-top: 3px solid var(--sun); padding-top: 1.25rem; }
.give-use h3 { font-size: 1.25rem; }
.give-use p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 820px) { .give-grid, .give-uses { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .75rem; }
.contact-list a { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background-color .2s; }
.contact-list a:hover { border-color: var(--sun); background: var(--sun-wash); }
.contact-list .icon-wrap { width: 44px; height: 44px; border-radius: 50%; background: var(--sun-wash); color: var(--gold-text); display: grid; place-items: center; flex: none; }
.contact-list small { display: block; color: var(--ink-3); font-size: .82rem; }
.contact-list strong { font-weight: 600; overflow-wrap: anywhere; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .4rem; }
.field label .req { color: var(--rose); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--cream);
  font-size: 1rem; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--sun-soft); }
.field .error { display: none; color: var(--rose); font-size: .86rem; margin-top: .35rem; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--rose); }
.field.invalid .error { display: block; }
.form-note { font-size: .88rem; color: var(--ink-3); margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; background: #E4F3E7; color: #1D6B34; font-weight: 500; display: none; }
.form-status.show { display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.subscribe { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 520px; }
.subscribe input { flex: 1 1 240px; min-height: 50px; padding: .8rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-size: 1rem; }
.subscribe input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D6CCBE; padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.5fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { width: 88px; margin-bottom: 1.1rem; }
.footer-brand .name { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: .6rem; display: block; }
.footer-brand p { max-width: 320px; }
.site-footer h4, .site-footer .footer-h { font-family: var(--font-body); font-weight: 700; line-height: 1.3; color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #D6CCBE; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--sun); }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact .icon { color: var(--sun); margin-top: .2rem; width: 1.1em; height: 1.1em; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .88rem; color: #A99E8F; }
.footer-bottom .tagline { color: var(--sun); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Reveal (subtle, once) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Small-screen refinements ---------- */
@media (max-width: 520px) {
  .hero-media { aspect-ratio: 4 / 3.6; }
  .hero-media .photo-sub { display: none; }
  .hero-media .photo-main { width: 100%; height: 100%; aspect-ratio: auto; }
  .hero-badge { left: .75rem; right: auto; bottom: .75rem; }
}
@media (max-width: 760px) {
  .gallery .g-f { grid-column: span 2 !important; }
  .focus-item { padding: 1.5rem 1.25rem; display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; }
  .focus-item .icon-wrap { margin-bottom: 0; grid-row: span 2; }
  .focus-item h3 { margin-bottom: .25rem; }
}
/* backdrop-filter would trap the fixed mobile menu inside the header, so drop it while open */
.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--cream); }
.primary-nav .nav-support { display: none; }
@media (max-width: 1100px) {
  .primary-nav .nav-support { display: block; margin-top: 1.5rem; }
  .primary-nav .nav-support a { font-family: var(--font-body); font-size: 1.05rem; border: 0; border-radius: 999px; padding: .8rem 1.4rem; display: flex; color: var(--ink); }
  .primary-nav .nav-support a::after { display: none; }
}

/* ==========================================================================
   Motion layer: gentle, purposeful, disabled for reduced-motion users
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes photoIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* Page-load sequence: hero text, then photos */
  .hero-grid > div:first-child > *,
  .page-hero .container > * { opacity: 0; animation: fadeUp .8s var(--ease) forwards; }
  .hero-grid > div:first-child > :nth-child(1), .page-hero .container > :nth-child(1) { animation-delay: .05s; }
  .hero-grid > div:first-child > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: .15s; }
  .hero-grid > div:first-child > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: .28s; }
  .hero-grid > div:first-child > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: .4s; }
  .hero-grid > div:first-child > :nth-child(5), .page-hero .container > :nth-child(5) { animation-delay: .52s; }
  .page-hero .container > .sun-rays { opacity: .2; animation: none; }

  .hero-media .photo-main { opacity: 0; animation: photoIn .8s var(--ease) .1s forwards; }
  .hero-media .photo-sub { opacity: 0; animation: photoIn .8s var(--ease) .3s forwards; }
  .hero-badge { opacity: 0; animation: fadeUp .7s var(--ease) .85s forwards, floatY 6s ease-in-out 1.6s infinite; }

  /* Sun rays turn very slowly, like the logo catching light */
  .sun-rays { animation: spinSlow 140s linear infinite; transform-origin: 50% 50%; }

  /* Eyebrow line draws in */
  .hero .eyebrow::before, .page-hero .eyebrow::before, .reveal.in .eyebrow::before, .reveal.in.eyebrow::before { transform-origin: left; animation: drawLine .7s var(--ease) .2s both; }

  /* Slow zoom on the main hero photo */
  .hero-media .photo-main img { animation: kenBurns 18s ease-in-out 1.2s infinite alternate; }
  @keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.06); } }
}

/* Staggered reveal: JS sets --d per item */
.reveal { transition-delay: var(--d, 0s); }

/* Nav: underline grows on hover */
@media (min-width: 1101px) {
  .primary-nav a::before {
    content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; border-radius: 2px;
    background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .primary-nav a:hover::before { transform: scaleX(1); }
}

/* Header tightens slightly once scrolled */
.header-inner { transition: height .3s var(--ease); }
.site-header.scrolled .header-inner { height: 66px; }
.brand img { transition: width .3s var(--ease); }
.site-header.scrolled .brand img { width: 44px; }

/* Buttons: small lift */
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sun:hover { box-shadow: 0 10px 22px -10px rgba(214, 150, 10, .7); }
.btn-ink:hover { box-shadow: 0 10px 22px -12px rgba(31, 26, 21, .6); }

/* Cards: lift and image zoom on hover */
.prog-card, .event, .team-card, .step, .give-card, .vm-card, .portfolio {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.prog-card:hover, .event:hover, .team-card:hover, .step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.portfolio:hover { background: var(--sun-wash); }
.portfolio .icon-wrap { transition: background-color .25s, color .25s, transform .25s var(--ease); }
.portfolio:hover .icon-wrap { background: var(--sun); color: var(--ink); transform: rotate(-6deg); }
.focus-item .icon-wrap, .prog-card .icon-wrap, .involve-card .icon-wrap { transition: transform .35s var(--ease), background-color .25s, color .25s; }
.focus-item:hover .icon-wrap, .prog-card:hover .icon-wrap, .involve-card:hover .icon-wrap { transform: scale(1.08) rotate(-6deg); }

.feature-media, .story, .event, .prog-card.featured { overflow: hidden; }
.feature-media { border-radius: var(--radius-lg); }
.feature-media img, .story img, .event img, .prog-card.featured img { transition: transform .8s var(--ease); }
.feature-media:hover img, .story:hover img, .prog-card.featured:hover img { transform: scale(1.04); }
.event:hover img { transform: scale(1.03); }

.founder-photo::before { transition: transform 1.2s var(--ease); }
.founder:hover .founder-photo::before { transform: rotate(40deg); }

.chip { transition: transform .25s var(--ease), border-color .25s, background-color .25s; }
.chip:hover { transform: translateY(-2px); border-color: var(--sun); background: var(--sun-wash); }

.contact-list a { transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.contact-list a:hover { transform: translateX(4px); }

/* Soft glow behind the hero for depth */
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 179, 36, .18), rgba(244, 179, 36, 0));
  pointer-events: none;
}
.hero { isolation: isolate; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .prog-card:hover, .event:hover, .team-card:hover, .step:hover, .chip:hover, .contact-list a:hover { transform: none; }
}
.footer-bottom .credit { flex-basis: 100%; font-size: .82rem; color: #A99E8F; }
.footer-bottom .credit strong { color: #E9E1D5; font-weight: 600; }
/* Headlines slide in without fading, so they paint immediately (faster first view) */
@keyframes slideUp { from { transform: translateY(14px); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .page-hero h1 { opacity: 1; animation-name: slideUp; }
}

/* ---------- Content-managed additions ---------- */
.team-photo { display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin-bottom: 1rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .team-name { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: .2rem; }
.team-card .team-name + .role { font-weight: 500; color: var(--gold-text); font-size: .92rem; }

.story { position: relative; }
.story-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.story-link:focus-visible { outline-offset: -3px; }
.story .body a { position: relative; z-index: 3; }
.read-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; margin-top: auto; padding-top: .5rem; }
.read-more .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.story:hover .read-more .icon { transform: translateX(4px); }

.highlight .hl-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-wash); color: var(--gold-text); margin-bottom: 1rem; }
.steps.highlights .step::before { display: none; }

.article-figure { margin: 0 0 2.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.article-figure img { width: 100%; height: auto; }
.prose { font-size: 1.1rem; color: var(--ink-2); max-width: 68ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); margin-top: 2rem; }
.prose h3 { color: var(--ink); margin-top: 1.5rem; }
.prose a { color: var(--ink); text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--gold-text); }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--sun); font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.icon.flip { transform: rotate(180deg); }

.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.opp-card { display: flex; flex-direction: column; gap: .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.opp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.opp-card[hidden] { display: none; }
.opp-cat { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.opp-cat .icon { width: 1.1em; height: 1.1em; }
.opp-card h3 { margin: 0; font-size: 1.3rem; }
.opp-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; color: var(--ink-3); }
.opp-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.opp-meta .icon { width: 1em; height: 1em; }
.opp-body { color: var(--ink-2); font-size: .96rem; flex: 1; }
.opp-card .btn { align-self: flex-start; }
.event .meta .tag { padding: .2rem .55rem; }

/* ---------- Menu that collapses automatically when extra pages make it too wide ---------- */
.btn { white-space: nowrap; }
html.nav-compact .nav-toggle { display: inline-flex; }
html.nav-compact .primary-nav {
  position: fixed; inset: 78px 0 0 0; background: var(--cream);
  padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  border-top: 1px solid var(--line);
}
html.nav-compact .nav-open .primary-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
html.nav-compact .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
html.nav-compact .primary-nav a { font-family: var(--font-display); font-size: 1.6rem; padding: .85rem 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
html.nav-compact .primary-nav a::before { display: none; }
html.nav-compact .primary-nav a[aria-current="page"]::after { left: 0; right: auto; width: 32px; bottom: .5rem; }
html.nav-compact .primary-nav .nav-support { display: block; margin-top: 1.5rem; }
html.nav-compact .primary-nav .nav-support a { font-family: var(--font-body); font-size: 1.05rem; border: 0; border-radius: 999px; padding: .8rem 1.4rem; display: flex; }
html.nav-compact .primary-nav .nav-support a::after { display: none; }
html.nav-compact body.nav-open { overflow: hidden; }

/* ---------- Programme status, schedule and video ---------- */
.tag-done { background: #ECE7DF; color: var(--ink-2); }
.tag-date { background: var(--rose-wash); color: var(--rose); }
.tag[hidden], .js-upcoming[hidden] { display: none !important; }
.mt-1 { margin-top: 1rem; }
.event-icon { display: grid; place-items: center; width: 100%; aspect-ratio: 4/5; border-radius: var(--radius); background: var(--sun-wash); color: var(--gold-text); }
.event-icon .icon { width: 40px; height: 40px; }
.event-prog { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .35rem; }
.event .text-link { font-size: .92rem; display: inline-flex; }
.prog-next { display: flex; align-items: flex-start; gap: .6rem; padding: .8rem 1rem; border-radius: 12px; background: var(--rose-wash); color: var(--ink); text-decoration: none; font-size: .93rem; transition: background-color .2s; }
.prog-next:hover { background: #F9D9E4; }
.prog-next .icon { color: var(--rose); margin-top: .15rem; }
.prog-photos { display: flex; gap: .5rem; flex-wrap: wrap; }
.prog-photos .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--sun-wash); display: grid; place-items: center; font-weight: 700; color: var(--gold-text); }
.prog-photos .thumb img { width: 100%; height: 100%; object-fit: cover; }
.empty-note { font-size: 1.1rem; color: var(--ink-2); padding: 1.5rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper); }
.sub-head { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 3rem 0 1.5rem; }

.video-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.video-card { margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.video-card video { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; background: #000; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.video-card figcaption { font-size: .93rem; color: #D2C8BA; line-height: 1.5; }
.video-card figcaption strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: .2rem; }
.story-video { max-width: 380px; margin: 0 0 2rem; }
.story-video video { aspect-ratio: 9 / 15; }
@media (max-width: 900px) { .video-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .video-grid { grid-template-columns: 1fr; } .video-card video { aspect-ratio: 9 / 14; } }

.activity-top { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.activity-top.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.activity-top .article-figure { margin: 0; }
.activity-top .detail-list dd { text-align: right; }
@media (max-width: 700px) { .activity-top.has-image { grid-template-columns: 1fr; } }
.give-grid.single { grid-template-columns: minmax(0, 560px); }
