/* =========================================================
   William Knibb Alumni International — design system
   Colours come from the school crest (purple) and the
   existing site accent (green #70aa58).
   ========================================================= */
:root {
  --purple-950: #1a0a20;
  --purple-900: #261031;
  --purple-800: #361745;
  --purple-700: #4a1f5c;
  --purple: #5c276d; /* sampled from the crest */
  --purple-500: #7b3d90;
  --purple-100: #efe6f2;
  --purple-50: #f8f4f9;
  --green: #70aa58;
  --green-600: #5a9142;
  --green-700: #467233;
  --green-100: #e6f2df;
  --gold: #e9c46a;
  --ink: #1d1626;
  --text: #3d3647;
  --muted: #6c6577;
  --line: #e6e1ec;
  --bg: #ffffff;
  --bg-soft: var(--purple-50);

  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(34, 17, 53, .06);
  --shadow: 0 12px 32px -12px rgba(34, 17, 53, .18);
  --shadow-lg: 0 30px 60px -20px rgba(34, 17, 53, .35);
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
/* Keep each image's own proportions when CSS changes only its width
   (the width/height attributes otherwise pin the height and stretch it). */
img { height: auto; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .page-hero :focus-visible, .section--dark :focus-visible, .site-footer :focus-visible, .topbar :focus-visible, .nav.is-open :focus-visible, .cta-band :focus-visible, .newsletter :focus-visible { outline-color: #fff; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--purple-900); color: #d9cfe6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.section--dark .lead { color: #cbbfdb; }
.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: 16px; top: -60px; z-index: 100; background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .9rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-700); font-weight: 500; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--green); }

/* Buttons */
.btn {
  --btn-bg: var(--green-700); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; cursor: pointer; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(70, 114, 51, .6); color: var(--btn-fg); background: #3a602a; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--purple { --btn-bg: var(--purple); }
.btn--purple:hover { background: var(--purple-700); box-shadow: 0 12px 24px -10px rgba(88, 40, 127, .6); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--purple); border-color: var(--purple); }
.btn--ghost:hover { background: var(--purple); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--purple-900); }
.btn--light:hover { background: var(--green-100); --btn-fg: var(--purple-900); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: #fff; --btn-fg: var(--purple-900); border-color: #fff; box-shadow: none; }
.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn--block { width: 100%; }
.link-arrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------------- Top bar + header ---------------- */
.topbar { background: var(--purple-950); color: #bfb3cf; font-size: .875rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; }
.topbar a { color: #e3d9ef; text-decoration: none; }
.topbar a:hover { color: var(--green); }
.topbar__motto { font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.topbar__links { display: flex; gap: 20px; align-items: center; }
@media (max-width: 720px) { .topbar__links { display: none; } .topbar .container { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
/* Frosted background lives on a pseudo-element: a backdrop-filter on the
   header itself would trap the fixed mobile drawer inside the header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand__crest { width: 52px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(88,40,127,.25)); transition: transform .4s var(--ease); }
.brand:hover .brand__crest { transform: rotate(-4deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; text-transform: uppercase; letter-spacing: .02em; color: var(--purple-800); }
.brand__sub { font-family: var(--font-display); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--green-700); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
  color: var(--ink); position: relative; transition: color .2s, background .2s;
}
.nav__list a:hover { color: var(--purple); background: var(--purple-50); }
.nav__list a[aria-current="page"] { color: var(--purple); }
.nav__list a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--green); border-radius: 2px; }
.nav .btn { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 10px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--purple-900); margin: 6px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-backdrop { display: none; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; position: relative; z-index: 70; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 60;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: var(--purple-900); padding: 96px 28px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .4s var(--ease), visibility 0s .4s; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .4s var(--ease); }
  .nav__list { flex-direction: column; }
  .nav__list a { color: #fff; font-size: 1.25rem; padding: 14px 6px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__list a:hover, .nav__list a[aria-current="page"] { background: none; color: var(--green); }
  .nav__list a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 8px 0 0; }
  .nav-toggle[aria-expanded="true"] span { background: #fff; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(23,11,36,.5); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}
@media (max-width: 520px) {
  .brand__name { font-size: 1rem; }
  .brand__sub { letter-spacing: .12em; font-size: .66rem; }
  .brand__crest { width: 42px; height: 52px; }
  .site-header .container { min-height: 72px; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(112,170,88,.22), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(111,58,160,.55), transparent 60%),
    linear-gradient(135deg, var(--purple-950) 0%, var(--purple-800) 55%, var(--purple) 100%);
  padding: clamp(64px, 9vw, 120px) 0 clamp(120px, 14vw, 180px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { color: #d8cde6; font-size: 1.22rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__proof { display: flex; align-items: center; gap: 16px; margin-top: 40px; color: #cbbfdb; font-size: .95rem; }
.flags { display: flex; flex: none; }
.flags span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: rgba(255,255,255,.14); border: 2px solid var(--purple-800); margin-left: -10px; }
.flags span:first-child { margin-left: 0; }

.hero__crest { position: relative; display: grid; place-items: center; }
.hero__crest-ring {
  position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.18); animation: spin 60s linear infinite;
}
.hero__crest-ring::before, .hero__crest-ring::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--green); top: 12%; left: 12%; box-shadow: 0 0 0 6px rgba(112,170,88,.25); }
.hero__crest-ring::after { top: auto; left: auto; bottom: 10%; right: 14%; width: 10px; height: 10px; background: var(--gold); box-shadow: 0 0 0 5px rgba(233,196,106,.25); }
.hero__crest-glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(112,170,88,.45), transparent 65%); filter: blur(20px); }
.hero__crest img { position: relative; width: min(360px, 78%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
.hero__badge {
  position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: .9rem; line-height: 1.3; z-index: 2;
}
.hero__badge strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--purple); }
.hero__badge .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); flex: none; }
.hero__badge .ico svg { width: 22px; height: 22px; }
.hero__badge--a { left: -4%; bottom: 12%; animation: float 8s ease-in-out infinite reverse; }
.hero__badge--b { right: -2%; top: 8%; animation: float 9s ease-in-out infinite; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; color: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero .lead { margin-inline: auto; }
  .hero__actions, .hero__proof { justify-content: center; }
  .hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
  .hero__crest { order: -1; width: 220px; margin: 0 auto; }
  .hero__crest img { width: 100%; }
  .hero__badge { display: none; }
  .hero__proof { flex-direction: column; gap: 10px; }
}

/* Page hero for inner pages */
.page-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(800px 400px at 80% 0%, rgba(112,170,88,.25), transparent 60%), linear-gradient(135deg, var(--purple-950), var(--purple));
  padding: clamp(64px, 9vw, 110px) 0 clamp(72px, 9vw, 110px);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); }
.page-hero p { color: #d8cde6; max-width: 60ch; margin-inline: auto; font-size: 1.15rem; }
.page-hero__crest { position: absolute; right: -40px; top: 50%; transform: translateY(-50%) rotate(8deg); width: 320px; opacity: .08; pointer-events: none; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0 0 18px; font-size: .9rem; font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.4); }
.breadcrumb li[aria-current] { color: #d8cde6; }

/* ---------------- Marquee ---------------- */
.marquee-wrap { overflow: hidden; padding: 10px 0; margin-top: -40px; position: relative; z-index: 2; }
.marquee { background: var(--green-700); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -20px; box-shadow: var(--shadow); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee__track span::after { content: "✦"; color: var(--gold); font-size: 1.1rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Grids & cards ---------------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--purple-50); color: var(--purple); transition: background .3s, color .3s, transform .3s var(--ease);
}
.icon-badge svg { width: 30px; height: 30px; }
.card:hover .icon-badge { background: var(--purple); color: #fff; transform: rotate(-6deg); }
.card--green .icon-badge { background: var(--green-100); color: var(--green-700); }
.card--green:hover .icon-badge { background: var(--green-700); color: #fff; }
.card__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-size: 3rem; color: var(--purple-100); line-height: 1; font-weight: 700; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checklist li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--dark .checklist li { color: #fff; }

/* Feature visual */
.visual-wrap { position: relative; isolation: isolate; margin: 0 22px 22px 0; }
.visual-wrap::before { content: ""; position: absolute; inset: 28px -22px -22px 28px; border: 2px solid var(--green); border-radius: var(--radius-lg); z-index: -1; }
.visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--purple-700), var(--purple-950));
  box-shadow: var(--shadow-lg);
}
.visual img.photo { width: 100%; height: 100%; object-fit: cover; }
.visual--crest { display: grid; place-items: center; }
.visual--crest img { position: relative; width: 58%; margin-top: -18%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
.visual--crest::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(112,170,88,.35), transparent 60%); }
.visual__tag {
  position: absolute; left: 20px; bottom: 20px; right: 20px; background: rgba(255,255,255,.96); border-radius: 16px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
}
.visual__tag strong { font-family: var(--font-display); font-size: 2rem; color: var(--purple); line-height: 1; }
.visual__tag span { font-size: .92rem; color: var(--muted); line-height: 1.35; }

/* Era timeline (1961 → present) */
.eras { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.era {
  border-radius: var(--radius-lg); padding: 40px; color: #fff; position: relative; overflow: hidden; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, var(--purple-700), var(--purple-950));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.era:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.era--green { background: linear-gradient(160deg, var(--green-700), #263f1b); }
.era__years { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1; margin-bottom: 14px; font-weight: 600; color: #fff; }
.era__years small { display: block; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8; font-weight: 400; margin-bottom: 10px; }
.era p { color: rgba(255,255,255,.85); margin-bottom: 22px; max-width: 44ch; }
.era .btn { align-self: flex-start; }
.era__mark { position: absolute; top: -20px; right: -10px; font-family: var(--font-display); font-size: 9rem; font-weight: 700; color: rgba(255,255,255,.07); line-height: 1; pointer-events: none; }
@media (max-width: 760px) { .eras { grid-template-columns: 1fr; } .era { padding: 32px 26px; } }

/* Stats / counters */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 16px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); color: #fff; line-height: 1; font-weight: 600; }
.stat__num .plus { color: var(--green); }
.stat__label { margin-top: 10px; font-size: .95rem; color: #c6b9d6; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Fund cards with progress */
.cause { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cause:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cause__media { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; overflow: hidden; }
.cause__media svg { position: relative; z-index: 1; width: 64px; height: 64px; transition: transform .5s var(--ease); }
.cause:hover .cause__media svg { transform: scale(1.12) rotate(-4deg); }
.cause__media--1 { background: linear-gradient(135deg, var(--purple), var(--purple-900)); }
.cause__media--2 { background: linear-gradient(135deg, var(--green-700), #263f1b); }
.cause__media--3 { background: linear-gradient(135deg, var(--purple-500), var(--green-700)); }
.cause__media--4 { background: linear-gradient(135deg, #7a5212, var(--purple-800)); }
.cause__media::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 18px 18px; }
.cause__tag { position: absolute; top: 16px; left: 16px; z-index: 1; background: #fff; color: var(--purple); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; padding: 6px 12px; border-radius: 999px; }
.cause__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.cause__body h3 { font-size: 1.35rem; }
.cause__body p { color: var(--muted); font-size: .98rem; }
.cause__body .btn { margin-top: auto; align-self: flex-start; }
.progress { margin: 6px 0 22px; }
.progress__bar { height: 10px; border-radius: 999px; background: var(--purple-100); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--green-700)); transition: width 1.6s var(--ease); position: relative; overflow: hidden; }
.progress__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 2.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progress__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.progress__meta strong { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.progress__pct { font-family: var(--font-display); color: var(--green-700); font-weight: 600; }

/* Regions */
.regions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.region { text-align: center; padding: 28px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.region:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.region__flag { font-size: 2.6rem; line-height: 1; margin-bottom: 12px; }
.region h3 { font-size: 1.15rem; margin: 0 0 4px; }
.region p { font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .regions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .regions { grid-template-columns: repeat(2, 1fr); } }

/* Gallery / photo story */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: linear-gradient(160deg, var(--purple-700), var(--purple-950)); display: grid; place-items: center; color: rgba(255,255,255,.75); text-align: center; padding: 16px; font-size: .92rem; }
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(2) { background: linear-gradient(160deg, var(--green-700), #263f1b); }
.gallery__item:nth-child(4) { grid-column: span 2; background: linear-gradient(160deg, var(--purple-500), var(--purple-800)); }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption { position: relative; }
.gallery__item svg { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .6; }
.gallery__item--crest img { position: relative; inset: auto; width: 46%; height: auto; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0,0,0,.4)); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px);
  background: radial-gradient(600px 300px at 100% 0%, rgba(112,170,88,.35), transparent 60%), linear-gradient(135deg, var(--purple-800), var(--purple));
  color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #ddd2ea; margin: 0; max-width: 56ch; }
.cta-band__crest { position: absolute; right: 32%; top: -30px; width: 200px; opacity: .08; transform: rotate(-12deg); pointer-events: none; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band__actions { justify-content: center; } .cta-band p { margin-inline: auto; } }

/* Events */
.empty-state { text-align: center; padding: 48px 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty-state svg { width: 48px; height: 48px; color: var(--purple-500); margin: 0 auto 14px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 52ch; margin: 0 auto 20px; }

/* Quote */
.quote { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; color: #fff; font-weight: 400; max-width: 32ch; margin: 0 auto 20px; }
.quote-mark { font-family: Georgia, serif; font-size: 6rem; line-height: .5; color: var(--green); display: block; height: 44px; }

/* Newsletter */
.newsletter { background: var(--green-700); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.newsletter h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.newsletter p { margin: 0; color: rgba(255,255,255,.9); }
.newsletter::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); pointer-events: none; }
.inline-form { display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 999px; position: relative; z-index: 1; }
.inline-form input { flex: 1; min-width: 0; border: 0; padding: 12px 18px; font: inherit; border-radius: 999px; color: var(--ink); background: transparent; }
.inline-form input:focus { outline: none; }
.inline-form:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.inline-form .btn { --btn-bg: var(--purple); }
.inline-form .btn:hover { background: var(--purple-700); }
.form-note { font-size: .92rem; margin-top: 10px; min-height: 1.4em; position: relative; z-index: 1; }
@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; text-align: center; } }
@media (max-width: 460px) { .inline-form { flex-direction: column; border-radius: 20px; } }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(111,58,160,.15); }
.input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .88rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Contact info list */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon-badge { width: 52px; height: 52px; margin: 0; border-radius: 14px; flex: none; }
.info-list .icon-badge svg { width: 24px; height: 24px; }
.info-list strong { display: block; font-family: var(--font-display); color: var(--ink); font-weight: 500; font-size: 1.1rem; }
.info-list span { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--green-700); transition: transform .3s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; margin: 0; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--purple-950); color: #b7aac8; padding-top: 88px; position: relative; overflow: hidden; }
.site-footer a { color: #d9cfe6; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 64px; position: relative; }
.footer-brand img { width: 110px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; font-size: .98rem; }
.footer-motto { font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-size: .85rem; }
.site-footer h4 { color: #fff; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--green); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a::before { content: "›"; margin-right: 8px; color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; position: relative; }
.footer-watermark { position: absolute; right: -60px; bottom: -40px; width: 400px; opacity: .04; pointer-events: none; }
.site-footer .inline-form { margin-top: 6px; }
.site-footer .inline-form input { padding: 10px 14px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-700); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* Cookie notice */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 45; max-width: 380px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px 22px; font-size: .93rem; border: 1px solid var(--line);
}
.cookie[hidden] { display: none; }
.cookie p { margin-bottom: 14px; }
.cookie__actions { display: flex; gap: 10px; }
@media (max-width: 520px) { .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* Reveal on scroll (only hidden when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* Utility */
.mt-lg { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.center .actions { justify-content: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: .85rem; font-weight: 600; }
.prose { max-width: 70ch; }
.prose h3 { margin-top: 1.6em; }
.progress__demo { margin-top: 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Photos from the original site ---------------- */
.photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero .photo-bg { opacity: .2; mix-blend-mode: luminosity; }
.page-hero .photo-bg { opacity: .25; mix-blend-mode: luminosity; }

.era .photo-bg { opacity: .55; transition: transform .8s var(--ease), opacity .4s; }
.era:hover .photo-bg { transform: scale(1.05); opacity: .7; }
.era::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,10,32,.95) 15%, rgba(26,10,32,.35)); z-index: 1; }
.era--green::before { background: linear-gradient(to top, rgba(28,48,20,.95) 15%, rgba(28,48,20,.35)); }
.era > :not(.photo-bg) { position: relative; z-index: 2; }
.era .era__mark { position: absolute; z-index: 2; }

.cause__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cause:hover .cause__media img { transform: scale(1.06); }
.cause__media--photo::after { background: linear-gradient(to top, rgba(26,10,32,.5), transparent 55%); }

.visual__crest { position: absolute; top: 18px; left: 18px; width: 58px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }

.gallery__item--photo { padding: 0; }
.gallery__item--photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(26,10,32,.78); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: .85rem; }
.gallery__item--sepia img { filter: sepia(.25); }
.gallery__item:nth-child(5) { grid-column: 1 / -1; }
.designer-credit { color: var(--green) !important; font-weight: 600; }
.designer-credit[href]:hover { text-decoration: underline; }

/* ---------- Membership band (home) ---------- */
.member-band { background: linear-gradient(135deg, var(--purple-800), var(--purple)); color: #fff; padding: 28px 0; }
.member-band__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.member-band__icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--green); }
.member-band__icon svg { width: 28px; height: 28px; }
.member-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 4px; }
.member-band p { color: #ddd2ea; margin: 0; }
.member-band strong { color: #fff; }
.member-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.member-band :focus-visible { outline-color: #fff; }
@media (max-width: 900px) { .member-band__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } .member-band__actions { justify-content: center; } }

/* ---------- Membership page ---------- */
.member-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member-steps li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.member-steps h3 { margin: 0 0 6px; }
.member-steps p { margin: 0; color: var(--muted); }
.member-steps__num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
@media (max-width: 820px) { .member-steps { grid-template-columns: 1fr; } }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.tick-list svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--green-100); color: var(--green-700); margin-top: 2px; }
.dues-card { background: #fff; border: 2px solid var(--purple-100); border-left: 6px solid var(--purple); border-radius: var(--radius); padding: 26px; }
.dues-card h3 { margin: 0 0 4px; }
.dues-card__amount { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--purple); margin: 0 0 6px; }
.dues-card p { color: var(--muted); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.field legend { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 10px; padding: 0; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 460px) { .check-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-bottom: 14px; font-size: .97rem; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--purple); margin: 3px 0 0; flex: none; }

/* ---------- Knibb legends (home) ---------- */
.legends { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr; gap: 20px; align-items: stretch; }
.legend-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--purple-900); min-height: 420px; box-shadow: var(--shadow); }
.legend-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.legend-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; color: #fff; font-size: .93rem; line-height: 1.45; background: linear-gradient(to top, rgba(26,10,32,.92), rgba(26,10,32,.6) 60%, transparent); }
.legend-photo figcaption strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.legend-photo__credit { display: block; margin-top: 6px; font-size: .74rem; color: rgba(255,255,255,.7); }
.legend-photo__credit a { color: inherit; text-decoration: underline; }
.legend-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm); }
.legend-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend-facts li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; color: var(--text); font-size: .95rem; }
.legend-facts strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--purple); }
.legend-card__cta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.legend-card__cta h3 { margin: 0 0 6px; }
.legend-card__cta p { color: var(--muted); margin: 0 0 14px; }
.legends__more { text-align: center; margin: 28px 0 0; color: var(--muted); }
@media (max-width: 1000px) { .legends { grid-template-columns: 1fr 1fr; } .legend-card { grid-column: 1 / -1; } }
@media (max-width: 620px) { .legends { grid-template-columns: 1fr; } .legend-photo { min-height: 380px; } }

/* Dark section with a purple-tinted photo behind it (home "legacy in numbers") */
.section--photo { position: relative; overflow: hidden; isolation: isolate; }
.section--photo .photo-bg { z-index: -1; opacity: .22; mix-blend-mode: luminosity; }
.section--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, transparent 30%, var(--purple-900) 95%); pointer-events: none; }
