/* ==========================================================
   WE Nepal — Women Engineers of Nepal
   Calm, photo-first NGO design: generous whitespace, soft tiles,
   serif headings, very few lines. Brand colours are editable in the admin.
   ========================================================== */
:root {
  --navy-700: #1f3a6e;   /* logo navy (editable) */
  --blue-500: #2c5597;   /* logo blue (editable) */
  --accent: #f2a93b;     /* call-to-action (editable) */
  --navy-800: color-mix(in srgb, var(--navy-700) 88%, #000);
  --navy-900: color-mix(in srgb, var(--navy-700) 62%, #000);
  --blue-100: color-mix(in srgb, var(--blue-500) 10%, #fff);
  --blue-50:  color-mix(in srgb, var(--blue-500) 5%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, #fff);

  --ink: #18202f;
  --body: #3b4456;
  --muted: #6a7385;
  --line: #ebe8e1;
  --paper: #ffffff;
  --paper-alt: #f7f5f0;      /* warm off-white sections */
  --tile-soft: #f7f5f0;      /* tiles on white sections (white on off-white sections) */

  /* Helvetica Neue (built into Apple devices); Inter is the closest free fallback. */
  --sans: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --serif: var(--sans); /* headings use the same family, at medium weight */
  --np: "Noto Sans Devanagari", var(--sans);

  --container: 1200px;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .04), 0 6px 20px rgba(20, 30, 50, .06);
  --shadow-lg: 0 18px 48px rgba(20, 30, 50, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1, h2 { font-weight: 500; letter-spacing: -.03em; line-height: 1.06; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
.np { font-family: var(--np); }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.ic { width: 24px; height: 24px; flex: none; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--alt { background: var(--paper-alt); --tile-soft: #fff; }
.section--flush { padding-top: 0; }

.sec-head { margin-bottom: 48px; }
.sec-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sec-num { font-size: clamp(2.6rem, 4.6vw, 3.8rem); font-weight: 500; line-height: .9; letter-spacing: -.05em; color: color-mix(in srgb, var(--navy-700) 28%, transparent); font-variant-numeric: tabular-nums; }
.sec-line { display: block; height: 2px; width: 0; border-radius: 2px; background: var(--accent); transition: width 1.1s cubic-bezier(.2, .7, .2, 1) .2s; }
.reveal.in .sec-line { width: 56px; }
.sec-label { font-size: .95rem; font-weight: 600; color: var(--navy-700); margin: 0; }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.sec-head-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
.sec-head-row h2 { margin: 0; max-width: 16em; }
.sec-intro { margin: 0; font-size: 1.08rem; color: var(--muted); max-width: 38em; }
.sec-head.solo .sec-head-row { grid-template-columns: 1fr; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 10px;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); color: #1a1405; }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); color: #1a1405; }
.btn--blue { background: var(--navy-700); color: #fff; }
.btn--blue:hover { background: var(--navy-900); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy-700); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .6; pointer-events: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-700); text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover { color: var(--blue-500); }
.text-link:hover svg { transform: translateX(4px); }
.center-cta { margin-top: 40px; }

/* ---------- Announcement ---------- */
.announce { display: flex; align-items: center; justify-content: center; background: var(--navy-700); color: #e8edf6; font-size: .9rem; padding: 9px 48px; position: relative; text-align: center; }
.announce p { margin: 0; }
.announce a { color: #fff; font-weight: 700; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }
.announce-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; display: grid; place-items: center; border-radius: 6px; }
.announce-close:hover { background: rgba(255, 255, 255, .12); }
.announce-close svg { width: 16px; height: 16px; }
.announce.hidden { display: none; }

/* Optional contact bar (off by default) */
.utility { background: var(--paper-alt); color: var(--muted); font-size: .84rem; }
.utility .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility a { color: var(--body); text-decoration: none; }
.utility-contacts, .utility-social { display: flex; gap: 20px; align-items: center; }
.utility-contacts span { display: inline-flex; align-items: center; gap: 7px; }
.utility svg { width: 15px; height: 15px; }

/* ---------- Header & navigation ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); transition: box-shadow .2s; }
.header.scrolled { box-shadow: 0 4px 24px rgba(20, 30, 50, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.28rem; font-weight: 700; color: var(--ink); }
.brand-text span { font-size: .78rem; color: var(--muted); }

.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; display: flex; align-items: center; }
.nav-links > li > a {
  position: relative; display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s;
}
.nav-links > li > a:hover { background: var(--paper-alt); color: var(--ink); }
.nav-links > li > a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); }
.has-sub > a { padding-right: 4px !important; }
.sub-toggle { display: grid; place-items: center; width: 26px; height: 32px; margin-left: -2px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; font: inherit; }
.sub-toggle:hover { color: var(--ink); background: var(--paper-alt); }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: -8px; min-width: 240px; z-index: 60;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20, 30, 50, .05);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
.sub a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-size: .94rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.sub a:hover { background: var(--paper-alt); color: var(--navy-700); }
.nav-cta { padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nav-toggle svg { width: 28px; height: 28px; }
@media (min-width: 1201px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub-toggle svg, .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero.no-photo { background: linear-gradient(180deg, var(--paper-alt), #fff); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 72px; align-items: center; padding: 96px 0; }
.hero-grid.single { grid-template-columns: minmax(0, 780px); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; margin-bottom: 22px; max-width: 15em; }
.hero-lead { font-size: 1.2rem; max-width: 34em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero-panel { background: #fff; border-radius: var(--r-lg); padding: 28px 30px 30px; box-shadow: var(--shadow); }
.panel-label { display: inline-block; font-size: .8rem; font-weight: 700; color: #7a4d00; background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin: 0 0 14px; }
.panel-date { font-weight: 700; color: var(--blue-500); margin: 0 0 6px; }
.panel-title { font-size: 1.4rem; margin: 0 0 8px; }
.panel-meta { font-size: .95rem; color: var(--muted); margin: 0 0 18px; }
.hero.has-photo { background: var(--navy-800); color: #fff; min-height: min(80vh, 720px); display: flex; align-items: flex-end; }
.hero.has-photo .hero-grid { width: min(var(--container), 100% - 40px); margin-inline: auto; padding: 140px 0 80px; align-items: end; }
.hero.has-photo h1 { color: #fff; }
.hero.has-photo .hero-lead { color: #e7ecf5; }
.hero.has-photo .hero-copy .text-link { color: #fff; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 36, .78) 0%, rgba(10, 18, 36, .42) 55%, rgba(10, 18, 36, .12) 100%), linear-gradient(0deg, rgba(10, 18, 36, .55), transparent 50%); }

/* ---------- Key numbers ---------- */
.numbers { padding: 64px 0; }
.numbers-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.numbers-head h2 { font-size: 1.4rem; margin: 0; }
.numbers-head p { margin: 0; font-size: .92rem; color: var(--muted); max-width: 46ch; }
.numbers-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 16px; margin: 0; }
.numbers-grid > div { background: var(--tile-soft); border-radius: var(--r); padding: 26px 24px; }
.numbers-grid dt { font-family: var(--serif); font-size: clamp(2.3rem, 3.6vw, 3rem); font-weight: 600; color: var(--navy-700); line-height: 1; margin-bottom: 12px; }
.numbers-grid dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .98rem; }
.numbers-grid small { display: block; margin-top: 6px; font-weight: 400; font-size: .82rem; color: var(--muted); }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.about-layout.with-photo { grid-template-columns: 1fr 1fr; }
.about-text { display: grid; gap: 36px; }
.about-layout:not(.with-photo) .about-text { grid-template-columns: 1fr 1fr; gap: 16px; }
.about-layout:not(.with-photo) .statement { background: var(--tile-soft); border-radius: var(--r-lg); padding: 32px; }
.statement h3 { font-family: var(--sans); font-size: .9rem; font-weight: 700; color: var(--blue-500); margin-bottom: 12px; }
.statement .say { font-family: var(--serif); font-size: 1.42rem; line-height: 1.45; color: var(--ink); margin-bottom: 14px; }
.statement .np { color: var(--muted); font-size: .98rem; line-height: 1.8; margin: 0; }
.values { margin-top: 72px; }
.values > h3 { font-size: 1.5rem; margin-bottom: 24px; }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.values-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 22px; background: var(--tile-soft); border-radius: var(--r); }
.values-list .ic { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--blue-100); color: var(--blue-500); }
.values-list h4 { margin-bottom: 4px; }
.values-list p { margin: 0; font-size: .95rem; }

/* ---------- Figures (why / goals) ---------- */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.figure { background: var(--tile-soft); border-radius: var(--r); padding: 26px 26px 28px; }
.figure-num { display: block; font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--navy-700); line-height: 1.05; margin-bottom: 10px; }
.figure h4, .figure .what { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.figure p { font-size: .95rem; margin: 0 0 6px; }
.figure small { display: block; font-size: .82rem; color: var(--muted); }
.figure .tag { display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 700; color: var(--blue-500); background: var(--blue-100); padding: 3px 10px; border-radius: 999px; }
.bar { height: 6px; background: color-mix(in srgb, var(--blue-500) 12%, #fff); border-radius: 999px; margin-top: 16px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--blue-500); border-radius: 999px; transition: width 1.2s ease; }
.bar.accent span { background: var(--accent); }
.discipline { display: grid; gap: 10px; margin-top: 16px; }
.discipline div { display: grid; grid-template-columns: 130px 1fr 42px; align-items: center; gap: 12px; font-size: .9rem; }
.discipline .bar { margin: 0; }
.discipline b { text-align: right; color: var(--ink); }

/* ---------- Barriers ---------- */
.stages { display: grid; gap: 12px; }
.stage-row { display: grid; grid-template-columns: 1fr 1.6fr 1.4fr; gap: 32px; padding: 22px 26px; background: var(--tile-soft); border-radius: var(--r); }
.stage-row.head { background: none; padding: 0 26px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.stage-name { display: flex; gap: 14px; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.stage-name .num { font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--blue-500); padding-top: 5px; }
.stage-row p { margin: 0; font-size: .96rem; }
.stage-response { color: var(--ink); }
.stage-row .mobile-label { display: none; }

/* ---------- Pillars ---------- */
.pillar-list { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 16px; }
.pillar { background: var(--tile-soft); border-radius: var(--r); padding: 26px 22px; }
.pillar .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-100); color: var(--blue-500); margin-bottom: 18px; }
.pillar h3 { margin-bottom: 2px; }
.pillar-tag { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.pillar p { font-size: .94rem; }
.pillar ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--ink); }
.pillar li { display: flex; gap: 8px; align-items: baseline; }
.pillar li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.foundation { margin-top: 28px; font-size: .95rem; color: var(--muted); }

/* ---------- Programmes ---------- */
.programmes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prog { display: flex; flex-direction: column; background: var(--tile-soft); border-radius: var(--r-lg); padding: 26px; overflow: hidden; }
.prog-label { align-self: flex-start; font-size: .85rem; font-weight: 600; color: var(--blue-500); margin-bottom: 10px; }
.prog--featured .prog-label { color: #9a5d00; }
.prog h3 { font-size: 1.4rem; }
.prog > p { font-size: .97rem; }
.prog dl { margin: auto 0 0; padding-top: 10px; font-size: .9rem; display: grid; gap: 8px; }
.prog dl div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; }
.prog dt { font-weight: 700; color: var(--ink); }
.prog dd { margin: 0; }
.prog .text-link { margin-top: 18px; align-self: flex-start; }

/* ---------- Activities (tabs) ---------- */
.activities .act-title { font-size: 1.6rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 20px; }
.tab { background: var(--tile-soft); border: 0; padding: 10px 18px; border-radius: 999px; font: 600 .95rem var(--sans); color: var(--body); cursor: pointer; transition: background-color .15s, color .15s; }
.tab:hover { color: var(--ink); background: var(--blue-100); }
.tab[aria-selected="true"] { background: var(--navy-700); color: #fff; }
.tab-panel { display: none; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tab-panel.active { display: grid; }
.activity { padding: 20px 22px; background: var(--tile-soft); border-radius: var(--r); }
.activity h4 { margin-bottom: 4px; }
.activity p { margin: 0; font-size: .95rem; }

/* ---------- Photo stories ---------- */
.stories { display: grid; gap: 72px; }
.story { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.story.reverse .story-img { order: 2; }
.story.no-photo { grid-template-columns: 1fr; background: var(--tile-soft); border-radius: var(--r-lg); padding: 36px 40px; }
.stories:has(.no-photo) { gap: 16px; }
.story-kicker { font-size: .9rem; font-weight: 600; color: var(--blue-500); margin-bottom: 10px; }
.story h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.story-text { max-width: 44em; }
.story-text p { font-size: 1.04rem; }

/* ---------- Events ---------- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.event-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: var(--tile-soft); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .2s; }
.event-card:hover { color: inherit; box-shadow: var(--shadow); }
.event-card:hover h3 { color: var(--navy-700); }
.event-media { position: relative; aspect-ratio: 3 / 2; background: var(--navy-700); overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-date-block { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 28px; color: #fff; }
.event-date-block .d { font-family: var(--serif); font-size: 4rem; font-weight: 600; line-height: 1; }
.event-date-block .m { font-size: 1rem; font-weight: 600; color: #c9d4ea; }
.event-status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.event-media .event-status { position: absolute; top: 14px; left: 14px; }
.event-status.up { background: var(--accent); color: #1a1405; }
.event-status.past { background: #fff; color: var(--ink); }
.event-text { padding: 22px 24px 26px; }
.event-when { font-size: .88rem; font-weight: 700; color: var(--blue-500); margin-bottom: 6px; }
.event-card h3 { font-size: 1.3rem; margin-bottom: 8px; transition: color .15s; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; color: var(--muted); margin-bottom: 8px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 14px; height: 14px; }
.event-card p { font-size: .95rem; margin: 0; }
.events-grid.single { grid-template-columns: 1fr; }
.events-grid.single .event-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; }
.events-grid.single .event-media { aspect-ratio: auto; min-height: 280px; }
.events-grid.single .event-text { padding: 36px 40px; align-self: center; }
.events-grid.single h3 { font-size: 1.7rem; }
.empty-note { color: var(--muted); padding: 28px; background: var(--tile-soft); border-radius: var(--r); margin: 0; }

/* ---------- Photo grid + lightbox ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--line); border-radius: var(--r); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo:hover img { transform: scale(1.03); }
.photo-cap { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; color: #fff; font-size: .8rem; background: linear-gradient(transparent, rgba(10, 18, 36, .75)); opacity: 0; transition: opacity .2s; }
.photo:hover .photo-cap, .photo:focus .photo-cap { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 22, .95); display: grid; place-items: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: var(--r-sm); }
.lightbox figcaption { color: #dfe6f2; font-size: .95rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lightbox button svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ---------- Ladder, roadmap, calendar ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 16px; }
.rung { background: var(--tile-soft); border-radius: var(--r); padding: 24px 22px; }
.step { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy-700); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.step-word { font-size: .8rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.rung h3 { font-size: 1.18rem; }
.rung p { font-size: .94rem; }
.gives { font-size: .9rem; color: var(--ink); background: var(--blue-50); border-radius: 8px; padding: 10px 12px; margin: 0; }
.openings { margin-top: 32px; font-size: .95rem; }
.openings strong { margin-right: 6px; }

.roadmap { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 16px; }
.phase { background: var(--tile-soft); border-radius: var(--r); padding: 24px 22px; }
.phase.now { box-shadow: inset 0 0 0 2px var(--accent); }
.phase-num { font-size: .82rem; font-weight: 700; color: var(--muted); }
.phase h3 { margin: 4px 0 2px; }
.now-tag { font-family: var(--sans); font-size: .72rem; font-weight: 700; background: var(--accent); color: #1a1405; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.phase .when { font-size: .9rem; color: var(--blue-500); font-weight: 600; margin-bottom: 12px; }
.phase ul { margin: 0 0 14px; padding-left: 18px; font-size: .94rem; }
.phase .gate { font-size: .88rem; color: var(--muted); margin: 0; }

.summit { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; background: var(--navy-700); color: #dfe6f2; padding: 34px 40px; border-radius: var(--r-lg); margin-bottom: 32px; }
.summit h2 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.summit p { margin: 0; }
.summit strong { color: inherit; }
.summit-date { font-family: var(--serif); text-align: center; color: #fff; padding-right: 32px; }
.summit-date .d { font-size: 3.4rem; font-weight: 600; line-height: 1; }
.summit-date .m { font-family: var(--sans); font-size: .85rem; color: #c9d4ea; margin-top: 6px; }
.calendar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.month { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 18px 20px; background: var(--tile-soft); border-radius: var(--r); }
.month-badge { font-family: var(--serif); color: var(--navy-700); line-height: 1.1; }
.month-badge .m { font-family: var(--sans); font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.month-badge .d { font-size: 1.7rem; font-weight: 600; }
.month h4 { margin-bottom: 2px; font-size: 1.05rem; }
.month p { margin: 0; font-size: .92rem; }
.month--star { box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- Team & testimonials ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.member-card .portrait { aspect-ratio: 4 / 5; background: var(--tile-soft); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; display: grid; place-items: center; }
.member-card .portrait img { width: 100%; height: 100%; object-fit: cover; }
.member-card .portrait span { font-family: var(--serif); font-size: 2.6rem; color: var(--muted); }
.member-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.member-card .role { font-size: .9rem; color: var(--blue-500); font-weight: 600; margin-bottom: 8px; }
.member-card p { font-size: .92rem; }
.member-link { display: inline-flex; color: var(--muted); }
.member-link svg { width: 18px; height: 18px; }

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote { margin: 0; padding: 32px; background: var(--tile-soft); border-radius: var(--r-lg); }
.quote blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: block; color: var(--muted); }

/* ---------- Membership, partners, supporters, commitments ---------- */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.list-item { padding: 26px; background: var(--tile-soft); border-radius: var(--r); }
.list-item .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-100); color: var(--blue-500); margin-bottom: 16px; }
.list-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.list-item p { font-size: .95rem; margin-bottom: 8px; }
.list-item ul { margin: 10px 0 0; padding-left: 18px; font-size: .93rem; color: var(--ink); }
.list-item li { margin-bottom: 4px; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--paper-alt); padding: 3px 10px; border-radius: 999px; }
.badge.yes { color: #17663b; background: #e6f4ec; }
.callout { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 30px 34px; background: var(--accent-soft); border-radius: var(--r-lg); }
.callout h3 { margin-bottom: 4px; }
.callout p { margin: 0; }
.note { margin-top: 28px; font-size: .98rem; color: var(--muted); max-width: 60em; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.logo-tile { height: 116px; display: grid; place-items: center; padding: 22px; background: var(--tile-soft); border-radius: var(--r); }
.logo-tile img { max-height: 60px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- Forms (join / contact) ---------- */
.join-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.join-info h2 .np { display: block; font-size: .7em; color: var(--blue-500); margin-top: 6px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.contact-list .ic { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--blue-100); color: var(--blue-500); }
.contact-list small { display: block; font-size: .8rem; color: var(--muted); }
.contact-list a, .contact-list .plain { color: var(--ink); font-weight: 600; text-decoration: none; }
.form { background: #fff; padding: 32px; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form h3 { margin-bottom: 4px; }
.form-fields > p { color: var(--muted); font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; padding: 12px 14px; border: 1px solid #d8dbe2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.field textarea { min-height: 120px; resize: vertical; }
.field .invalid { border-color: #c53030; }
.opt { font-weight: 400; color: var(--muted); }
.form .btn { margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.form-error { color: #c53030; font-size: .9rem; margin: 12px 0 0; }
.form-error:empty { display: none; }
.form-success { display: none; padding: 20px 0; }
.form-success.show { display: block; }
.form-success .icon { width: 48px; height: 48px; border-radius: 50%; background: #e6f4ec; color: #17663b; display: grid; place-items: center; margin-bottom: 14px; }
.form-success .icon svg { width: 24px; height: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.contact-grid.no-form { grid-template-columns: 1fr; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact-card { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px; background: var(--tile-soft); border-radius: var(--r); color: inherit; text-decoration: none; min-width: 0; transition: box-shadow .2s; }
a.contact-card:hover { box-shadow: var(--shadow); color: inherit; }
.contact-card .ic { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--blue-100); color: var(--blue-500); }
.contact-card small { display: block; font-size: .82rem; color: var(--muted); }
.contact-card strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
.contact-card span { display: block; font-size: .86rem; color: var(--muted); margin-top: 2px; }
.contact-block { margin-top: 12px; padding: 24px; background: var(--tile-soft); border-radius: var(--r); }
.contact-block h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.contact-block h3 .ic { width: 20px; height: 20px; color: var(--blue-500); }
.dept-list, .hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dept-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: .95rem; }
.dept-list strong { font-weight: 600; }
.hours li { font-size: .95rem; }
.contact-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.map-wrap { margin-top: 40px; line-height: 0; border-radius: var(--r-lg); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: inherit; transition: background-color .15s; }
.socials a:hover { background: rgba(255, 255, 255, .2); }
.socials svg { width: 17px; height: 17px; }
.socials--light { color: var(--navy-700); }
.socials--light a { background: var(--blue-100); }
.socials--light a:hover { background: var(--navy-700); color: #fff; }

/* ---------- Inner page header ---------- */
.page-head { background: linear-gradient(180deg, var(--paper-alt), #fff); padding: 56px 0 48px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.page-head .kicker { font-size: .95rem; font-weight: 600; color: var(--blue-500); margin-bottom: 12px; }
.page-head h1 { margin-bottom: 14px; max-width: 18em; }
.page-head p.intro { font-size: 1.15rem; max-width: 42em; margin: 0; }
.event-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.event-facts span { display: inline-flex; align-items: center; gap: 8px; background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink); font-size: .92rem; box-shadow: var(--shadow); }
.event-facts svg { width: 16px; height: 16px; color: var(--blue-500); }

.page-toc { position: sticky; top: 78px; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.page-toc .container { display: flex; align-items: center; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.page-toc .container::-webkit-scrollbar { display: none; }
.page-toc span { font-size: .82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.page-toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.page-toc a { display: block; padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.page-toc a:hover { background: var(--paper-alt); }
.page-toc a.active { background: var(--navy-700); color: #fff; }

.subhead { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.subhead h2 { margin: 0; font-size: 1.6rem; }
.count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--blue-100); color: var(--navy-700); font-family: var(--sans); font-size: .85rem; font-weight: 700; }
.event-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.lead { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; color: var(--ink); }
.prose { font-size: 1.06rem; max-width: 42em; }
.photos-title { display: flex; align-items: center; gap: 10px; margin-top: 48px; font-size: 1.6rem; }
.event-aside { position: sticky; top: 110px; background: var(--paper-alt); border-radius: var(--r-lg); padding: 26px; }
.event-aside h3 { font-size: 1.2rem; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-weight: 600; color: var(--ink); }
.facts svg { width: 18px; height: 18px; color: var(--blue-500); margin-top: 3px; }
.facts small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.event-aside .btn { width: 100%; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; color: var(--navy-700); text-decoration: none; }
.back-link svg { width: 18px; height: 18px; }

.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.album-card { color: inherit; text-decoration: none; }
.album-card:hover h3 { color: var(--navy-700); }
.album-cover { position: relative; aspect-ratio: 4 / 3; background: var(--paper-alt); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover .album-cover img { transform: scale(1.03); }
.album-count { position: absolute; right: 12px; bottom: 12px; background: rgba(10, 18, 36, .72); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.album-count svg { width: 14px; height: 14px; }
.album-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.album-card span.date { font-size: .88rem; color: var(--muted); }

/* ---------- Join band (home page) ---------- */
.join-band { padding: clamp(56px, 7vw, 88px) 0; }
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 64px; background: var(--navy-700); color: #dfe6f2; border-radius: var(--r-lg); padding: 44px 48px; }
.band h2 { color: #fff; margin-bottom: 8px; }
.band p { margin: 0; max-width: 40em; font-size: 1.05rem; }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.band .text-link { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #b9c5dc; padding: 72px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(var(--cols, 3), 1fr); gap: 48px; margin-bottom: 48px; }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: #b9c5dc; }
.footer strong { color: inherit; }
.footer h4 { font-family: var(--sans); color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #d6deed; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .tagline { font-family: var(--np); color: #fff; }
.footer .socials { color: #fff; margin-top: 20px; }
.footer .footer-contact { margin-top: 18px; gap: 8px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; flex: none; opacity: .8; }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; border: 0; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; border-radius: 50%; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }


/* ---------- Photos everywhere ---------- */
/* Section photo beside the heading */
.sec-head.with-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sec-head-text h2 { margin: 0 0 16px; }
.sec-head-photo-only { margin-bottom: 40px; }
.act-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-bottom: 8px; }
/* Photo at the top of a tile (pillars, membership, partners, ladder, activities) */

/* Admin-only "add a photo" boxes (visitors never see these) */
.img-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 200px; padding: 24px; border: 2px dashed color-mix(in srgb, var(--blue-500) 40%, #fff); border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, var(--blue-50), var(--blue-50) 12px, #fff 12px, #fff 24px);
  color: var(--navy-700); text-decoration: none; transition: border-color .15s, background-color .15s;
}
.img-slot:hover { border-color: var(--blue-500); color: var(--navy-700); }
.img-slot .ic { width: 34px; height: 34px; color: var(--blue-500); }
.img-slot strong { font-size: .98rem; color: var(--navy-700); }
.img-slot small { font-size: .78rem; color: var(--muted); }
.img-slot.sec-photo { aspect-ratio: 4 / 3; }
.img-slot.hero-media { aspect-ratio: 5 / 4; min-height: 340px; box-shadow: none; background: repeating-linear-gradient(135deg, var(--blue-50), var(--blue-50) 12px, #fff 12px, #fff 24px); }
.img-slot.prog-img { min-height: 140px; margin: -26px -26px 22px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.img-slot.photo-figure { aspect-ratio: 4 / 5; }
.img-slot.story-img { aspect-ratio: 4 / 3; }
.img-slot.join-photo { margin-top: 28px; min-height: 160px; }

/* Split hero: headline left, photo slideshow right */
.hero.split { background: linear-gradient(180deg, var(--paper-alt), #fff); }
.hero.split .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 72px 0 80px; }
.hero.split h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.hero-next { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 8px 16px 8px 8px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-size: .92rem; max-width: 100%; }
.hero-next .panel-label { margin: 0; white-space: nowrap; }
.hero-next span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-next strong { color: var(--blue-500); }
.hero-next svg { width: 16px; height: 16px; flex: none; color: var(--navy-700); }
.hero-next:hover { color: var(--ink); box-shadow: var(--shadow-lg); }

/* Join band with a photo */
.band.with-photo { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; }

/* ---------- Pop-up notice ---------- */
.popup { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(10, 18, 36, .55); animation: popup-fade .25s ease; }
.popup[hidden] { display: none; }
.popup-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(10, 18, 36, .35); animation: popup-rise .3s ease; }
.popup-card.with-photo { width: min(780px, 100%); display: grid; grid-template-columns: 1fr 1.1fr; }
.popup-body { padding: 40px 36px 34px; }
.popup-body h2 { font-size: 1.7rem; margin-bottom: 12px; padding-right: 24px; }
.popup-body p { font-size: 1.02rem; }
.popup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.popup-later { background: none; border: 0; padding: 6px 0; font: 600 .95rem var(--sans); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.popup-later:hover { color: var(--ink); }
.popup-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.popup-close:hover { background: #fff; }
.popup-close svg { width: 18px; height: 18px; }
body.popup-open { overflow: hidden; }
@keyframes popup-fade { from { opacity: 0; } }
@keyframes popup-rise { from { opacity: 0; transform: translateY(12px); } }


/* ---------- Scroll progress line ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 210; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); opacity: .85; transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Photos & slideshows ---------- */
.media { margin: 0; position: relative; }
.media-frame { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: var(--ar, 4 / 3); background: var(--paper-alt); }
.media-frame .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.media-frame .slide.active { opacity: 1; }
.sl-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, background-color .2s; }
.slider:hover .sl-btn, .slider:focus-within .sl-btn { opacity: 1; }
.sl-btn:hover { background: #fff; }
.sl-btn svg { width: 18px; height: 18px; }
.sl-prev { left: 12px; }
.sl-next { right: 12px; }
.sl-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.sl-dots button { width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .3s, background-color .3s; }
.sl-dots button.active { width: 22px; background: #fff; }
.sl-count { position: absolute; top: 12px; right: 12px; z-index: 3; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(10, 18, 36, .5); padding: 3px 9px; border-radius: 999px; }
.sl-caps { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.sl-caps span { display: none; }
.sl-caps span.active { display: block; }
@media (hover: none) { .sl-btn { opacity: 1; width: 36px; height: 36px; } }

/* Where slideshows appear */
.sec-photo { --ar: 4 / 3; }
.sec-head-photo-only .media-frame { --ar: 21 / 9; }
.photo-figure { --ar: 4 / 5; }
.story-img { --ar: 4 / 3; }
.join-photo { --ar: 4 / 3; margin-top: 28px; }
.page-banner { --ar: 21 / 8; margin-top: 8px; }
.event-slider { --ar: 16 / 9; margin-bottom: 32px; }
.tile-media { --ar: 16 / 10; margin-bottom: 16px; }
.tile-media .media-frame { border-radius: 10px; }
.tile-media .sl-btn { width: 30px; height: 30px; }
.tile-media .sl-btn svg { width: 14px; height: 14px; }
.tile-media .sl-caps { display: none; }
.tile-media .sl-count, .prog-img .sl-count, .band-img .sl-count, .popup-img .sl-count { display: none; }
.prog-img { --ar: 3 / 2; margin: -26px -26px 22px; }
.prog-img .media-frame { border-radius: 0; }
.prog-img .sl-caps { display: none; }
.band-img { width: 220px; --ar: 4 / 3; }
.band-img .media-frame { border-radius: var(--r); }
.band-img .sl-caps { display: none; }
.popup-img { height: 100%; }
.popup-img .media-frame { height: 100%; aspect-ratio: auto; min-height: 260px; border-radius: 0; }
.popup-img .sl-caps { display: none; }
.hero-media { --ar: 5 / 4; }
.hero-media .media-frame { box-shadow: var(--shadow); }
/* Full-width hero: the slideshow fills the section behind the text */
.hero-bg { position: absolute; inset: 0; }
.hero-bg .media-frame { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; background: var(--navy-800); }
.hero-bg .sl-caps { position: absolute; left: 20px; bottom: 14px; z-index: 3; margin: 0; color: rgba(255, 255, 255, .8); font-size: .78rem; }
.hero-bg .sl-count { top: auto; bottom: 14px; right: 20px; }
.hero-shade { z-index: 1; }

/* ---------- Photo credits page ---------- */
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.credit { margin: 0; background: var(--paper-alt); border-radius: var(--r); overflow: hidden; }
.credit img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.credit figcaption { padding: 14px 16px 16px; display: grid; gap: 4px; font-size: .88rem; }
.credit strong { font-size: .95rem; }
.credit span { color: var(--muted); }

/* ---------- Minimal motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  /* backdrop-filter would trap the fixed-position drawer inside the header, so use a solid header here */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; z-index: 55;
    padding: 92px 20px 28px; box-shadow: -10px 0 40px rgba(10, 18, 36, .15); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 16px; transform: translateX(100%); transition: transform .3s ease;
  }
  .nav-menu.open { transform: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(10, 18, 36, .35); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links > li { flex-wrap: wrap; }
  .nav-links > li > a { flex: 1; padding: 13px 14px; font-size: 1.02rem; }
  .nav-links > li > a.active { background: var(--paper-alt); }
  .nav-links > li > a.active::after { display: none; }
  .sub-toggle { width: 44px; height: 44px; }
  .sub { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 12px; min-width: 0; background: transparent; }
  .sub::before { display: none; }
  .has-sub.open > .sub { display: block; }
  .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
  .nav-cta { margin-top: 8px; }
  .pillar-list { grid-template-columns: repeat(3, 1fr); }
  .ladder { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero.split .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }
  .sec-head.with-photo, .act-head { grid-template-columns: 1fr; gap: 24px; }
  .band.with-photo { grid-template-columns: 1fr; }
  .band-img { width: 100%; }
  .popup-card.with-photo { grid-template-columns: 1fr; }
  .popup-img .media-frame { min-height: 0; aspect-ratio: 16 / 9; }
  .sec-head-row, .about-layout.with-photo, .join-grid, .contact-grid, .story, .event-layout { grid-template-columns: 1fr; gap: 24px; }
  .story.reverse .story-img { order: 0; }
  .programmes, .events-grid, .album-grid, .figures, .values-list, .list-grid, .calendar { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .stage-row { grid-template-columns: 1fr; gap: 8px; }
  .stage-row.head { display: none; }
  .stage-row .mobile-label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: 6px; }
  .summit { grid-template-columns: 1fr; }
  .summit-date { text-align: left; padding-right: 0; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event-aside { position: static; }
  .events-grid.single .event-card { grid-template-columns: 1fr; }
  .events-grid.single .event-media { min-height: 0; aspect-ratio: 3 / 2; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .band { padding: 36px 32px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand img { width: 42px; height: 42px; }
  .brand-text span { display: none; }
  .nav { min-height: 66px; }
  .page-toc { top: 66px; }
  .hero-grid { padding: 48px 0 56px; }
  .hero.has-photo .hero-grid { padding: 110px 0 56px; }
  .hero-actions .btn { width: 100%; }
  .hero-caption { display: none !important; }
  .about-layout:not(.with-photo) .about-text, .programmes, .events-grid, .album-grid, .figures, .values-list, .list-grid,
  .calendar, .pillar-list, .ladder, .roadmap, .contact-cards, .contact-duo, .tab-panel { grid-template-columns: 1fr; }
  .about-layout:not(.with-photo) .statement { padding: 24px; }
  /* Home page summary on phones: pillar names in two columns; full text lives on "What we do" */
  .pillar-list.compact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pillar-list.compact .pillar { padding: 18px 16px; }
  .pillar-list.compact .pillar > p:not(.pillar-tag) { display: none; }
  .pillar-list.compact .pillar-tag { margin: 0; }
  .pillar-list.compact .ic { margin-bottom: 10px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .story.no-photo { padding: 26px 24px; }
  .band { padding: 30px 24px; }
  .band-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .lb-prev, .lb-next { display: none; }
  .map-wrap iframe { height: 300px; }
  .hero-bg .sl-caps { display: none; }
  /* Compact section headings on phones */
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 28px; }
  .sec-meta { margin-bottom: 12px; gap: 12px; }
  .sec-num { font-size: 2.2rem; }
  .sec-head h2 { font-size: 1.85rem; }
  .popup-body { padding: 30px 24px 26px; }
  .popup-actions .btn { width: 100%; }
  .hero-next { border-radius: var(--r); align-items: flex-start; }
  .hero-next span:nth-child(2) { white-space: normal; }
}
