/* ==========================================================================
   OLGC v3 — design system & site styles
   Light, warm, educational. Tokens first; every component reads from them.
   WCAG AA verified: ink 12.8:1, muted 5.9:1, primary 8.0:1, link-teal 5.5:1,
   amber-pill text 8.0:1 — accent raw hues are decorative-only.
   ========================================================================== */

/* ---------- Fonts (self-hosted variable) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/sourcesans3-var.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* color: base */
  --c-base:        #FAFAF7;
  --c-surface:     #FFFFFF;
  --c-ink:         #23303E;
  --c-ink-soft:    #55636F;
  --c-line:        #E7E4DA;
  --c-line-soft:   #EFEDE5;

  /* color: brand */
  --c-primary:      #1E4E8C;
  --c-primary-deep: #163C6E;
  --c-primary-tint: #EAF1F9;

  /* color: accents — raw hue is decorative; -text passes AA on base/white */
  --c-teal:       #0E9594;  --c-teal-text:  #0A7273;  --c-teal-tint:  #E3F3F1;
  --c-amber:      #F4A81D;  --c-amber-text: #8A5F00;  --c-amber-tint: #FCF1DA;
  --c-amber-ink:  #2A2000;
  --c-coral:      #F26D5B;  --c-coral-text: #B23A2A;  --c-coral-tint: #FCE9E5;
  --c-sky:        #7FB8E6;  --c-sky-text:   #2E6FA3;  --c-sky-tint:   #EAF3FB;

  /* type — Fraunces display over Source Sans 3; 5-step scale */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-1: clamp(2.125rem, 1.35rem + 3.4vw, 3.375rem);
  --fs-2: clamp(1.625rem, 1.25rem + 1.7vw, 2.25rem);
  --fs-3: clamp(1.3125rem, 1.17rem + 0.6vw, 1.5rem);
  --fs-4: 1.125rem;
  --fs-5: 1rem;
  --fs-small: 0.875rem;

  /* space (4px base) */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4rem;  --sp-9: 6rem;

  /* radius / shadow / misc */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(35, 48, 62, 0.06), 0 1px 6px rgba(35, 48, 62, 0.05);
  --shadow-md: 0 2px 6px rgba(35, 48, 62, 0.07), 0 10px 28px rgba(35, 48, 62, 0.09);
  --shadow-lg: 0 4px 10px rgba(35, 48, 62, 0.08), 0 24px 56px rgba(35, 48, 62, 0.13);
  --measure: 70ch;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --dur: 220ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-5);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-base);
  overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--c-primary);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-1); }
h2 { font-size: var(--fs-2); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-4); font-family: var(--font-body); font-weight: 700; color: var(--c-ink); }
p, ul, ol { margin: 0 0 var(--sp-4); max-width: var(--measure); }
a { color: var(--c-teal-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection { background: var(--c-amber-tint); }
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--c-surface); color: var(--c-primary); font-weight: 700;
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); box-shadow: var(--shadow-md);
}
.skip-link:focus { top: var(--sp-4); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 56rem); margin-inline: auto; }

/* ---------- Multi-colour ribbon (school bookmark motif) ---------- */
.ribbon, .ribbon-top::before {
  display: block; height: 5px; border: 0; margin: 0;
  background: linear-gradient(90deg,
    var(--c-primary) 0 25%, var(--c-teal) 25% 50%,
    var(--c-amber) 50% 75%, var(--c-coral) 75% 100%);
}
.ribbon--short { width: 88px; border-radius: var(--r-pill); height: 5px; }
.ribbon-top { position: relative; }
.ribbon-top::before { content: ''; position: absolute; inset: 0 0 auto 0; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.band { background: var(--c-surface); }
.band--tint { background: var(--c-primary-tint); }
.band--warm { background: #FCF8EF; }
/* thin ruled-line notebook texture — very low contrast, decorative */
.band--ruled {
  background-image: repeating-linear-gradient(
    to bottom, transparent 0 34px, rgba(30, 78, 140, 0.055) 34px 35px);
}
.band--graph {
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 26px, rgba(30, 78, 140, 0.045) 26px 27px),
    repeating-linear-gradient(to right, transparent 0 26px, rgba(30, 78, 140, 0.045) 26px 27px);
}

.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-teal-text); margin-bottom: var(--sp-3);
}
.section-head p { color: var(--c-ink-soft); margin-inline: auto; }

/* hand-drawn chalk underline under section titles */
.u-chalk { position: relative; display: inline-block; padding-bottom: 0.35em; }
.u-chalk::after {
  content: ''; position: absolute; left: 2%; bottom: 0.08em;
  width: 96%; height: 0.18em; background-color: var(--chalk, var(--c-amber));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 6C22 3 48 2.2 74 3.4c18 .8 32 1.4 44 1.1' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 6C22 3 48 2.2 74 3.4c18 .8 32 1.4 44 1.1' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.u-chalk--teal  { --chalk: var(--c-teal); }
.u-chalk--coral { --chalk: var(--c-coral); }
.u-chalk--sky   { --chalk: var(--c-sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 2.75rem; padding: 0.625rem 1.375rem;
  font-family: var(--font-body); font-size: var(--fs-5); font-weight: 700;
  border-radius: var(--r-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-deep); color: #fff; }
.btn--outline { background: var(--c-surface); color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary-tint); color: var(--c-primary-deep); }
.btn--amber { background: var(--c-amber); color: var(--c-amber-ink); }
.btn--amber:hover { background: #E99C0E; color: var(--c-amber-ink); }
.btn--sm { min-height: 2.25rem; padding: 0.375rem 1rem; font-size: var(--fs-small); }
.btn .icon { flex: none; }

/* ---------- Icon & chips ---------- */
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.22em; }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 3.5rem; height: 3.5rem; border-radius: var(--r-md);
  background: var(--tint, var(--c-primary-tint)); color: var(--hue-text, var(--c-primary));
}
.icon-chip .icon { width: 1.75rem; height: 1.75rem; }
.chip--primary { --tint: var(--c-primary-tint); --hue-text: var(--c-primary); }
.chip--teal    { --tint: var(--c-teal-tint);    --hue-text: var(--c-teal-text); }
.chip--amber   { --tint: var(--c-amber-tint);   --hue-text: var(--c-amber-text); }
.chip--coral   { --tint: var(--c-coral-tint);   --hue-text: var(--c-coral-text); }
.chip--sky     { --tint: var(--c-sky-tint);     --hue-text: var(--c-sky-text); }

.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--fs-small); font-weight: 700; line-height: 1;
  padding: 0.375rem 0.75rem; border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-primary);
  border: 1px solid var(--c-line); box-shadow: var(--shadow-sm);
}
.badge--count {
  background: var(--c-primary-tint); border: 0; box-shadow: none;
  color: var(--c-primary); padding: 0.2rem 0.55rem; font-size: 0.8125rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.card { display: block; text-decoration: none; color: inherit; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); border-color: var(--c-line-soft); }
.site-header__in {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand__name {
  font-family: var(--font-display); font-weight: 600; color: var(--c-primary);
  font-size: 1.0625rem; line-height: 1.15; letter-spacing: 0.01em;
}
.brand__sub { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink-soft); margin-top: 2px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.site-nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: 0.375rem 0.875rem; border-radius: var(--r-pill);
  color: var(--c-ink); font-weight: 600; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-nav__list a:hover { background: var(--c-primary-tint); color: var(--c-primary); }
.site-nav__list a[aria-current="page"] { background: var(--c-primary-tint); color: var(--c-primary); box-shadow: inset 0 -2px 0 var(--c-primary); }
.nav-cta { margin-left: var(--sp-2); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm);
  background: none; border: 1px solid var(--c-line); color: var(--c-primary);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
@media (max-width: 63.9375rem) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand__name { font-size: 0.9375rem; }
}

/* Mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 110; background: rgba(35, 48, 62, 0.32);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(20rem, 86vw); background: var(--c-surface);
  box-shadow: var(--shadow-lg); padding: var(--sp-5);
  transform: translateX(105%); transition: transform 280ms var(--ease);
  display: flex; flex-direction: column; gap: var(--sp-4); overflow-y: auto;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__close {
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm); border: 1px solid var(--c-line);
  background: none; color: var(--c-primary); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.drawer nav a {
  display: flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 0.875rem;
  border-radius: var(--r-sm); font-weight: 600; color: var(--c-ink); text-decoration: none;
}
.drawer nav a:hover { background: var(--c-primary-tint); color: var(--c-primary); }
.drawer nav a[aria-current="page"] { background: var(--c-primary-tint); color: var(--c-primary); }
.drawer .ribbon { border-radius: var(--r-pill); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--c-base); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* light gradient scrim — text side stays warm-white, photo stays visible */
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(96deg,
    rgba(250, 250, 247, 0.97) 0%, rgba(250, 250, 247, 0.92) 34%,
    rgba(250, 250, 247, 0.55) 58%, rgba(250, 250, 247, 0.08) 82%);
}
.hero__in {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; min-height: clamp(26rem, 66vh, 38rem);
  padding-block: var(--sp-8);
}
.hero h1 { max-width: 15ch; margin-bottom: var(--sp-4); }
.hero h1 em { font-style: italic; color: var(--c-teal-text); }
.hero__lede { font-size: var(--fs-4); color: var(--c-ink-soft); max-width: 44ch; margin-bottom: var(--sp-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero .badge { margin-bottom: var(--sp-4); }

@media (max-width: 47.9375rem) {
  .hero__media::after {
    background: linear-gradient(180deg,
      rgba(250, 250, 247, 0.97) 0%, rgba(250, 250, 247, 0.9) 55%,
      rgba(250, 250, 247, 0.55) 100%);
  }
}

/* Page hero (inner pages): light band, no dark overlay */
.page-hero { position: relative; background: var(--c-primary-tint); overflow: hidden; }
.page-hero--ruled { background-image: repeating-linear-gradient(to bottom, transparent 0 34px, rgba(30, 78, 140, 0.06) 34px 35px); }
.page-hero__in { padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem); }
.page-hero h1 { margin-bottom: var(--sp-2); }
.page-hero .crumbs { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); list-style: none; padding: 0; margin: 0 0 var(--sp-3); font-size: var(--fs-small); font-weight: 600; }
.crumbs li { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--c-ink-soft); }
.crumbs li + li::before { content: '/'; color: var(--c-line); font-weight: 400; }
/* padded tap area without visually changing the crumb row */
.crumbs a { display: inline-flex; align-items: center; min-height: 2.25rem; padding-block: 0.375rem; color: var(--c-teal-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ==========================================================================
   Home sections
   ========================================================================== */
/* Facilities — pastel icon-chip cards */
.facts-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.fact-card { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5); }
.fact-card h3 { font-family: var(--font-body); font-size: var(--fs-4); font-weight: 700; color: var(--c-ink); margin: 0 0 var(--sp-1); }
.fact-card p { font-size: var(--fs-small); color: var(--c-ink-soft); margin: 0; }

/* About preview — offset frame photo */
.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (min-width: 48rem) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.frame-photo { position: relative; margin: var(--sp-3); }
.frame-photo img { display: block; width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.frame-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  transform: translate(0.875rem, 0.875rem); border-radius: var(--r-lg);
  background: var(--frame, var(--c-amber-tint));
  border: 2px solid var(--frame-line, var(--c-amber));
}
.frame-photo--teal { --frame: var(--c-teal-tint); --frame-line: var(--c-teal); }
.frame-photo--sky { --frame: var(--c-sky-tint); --frame-line: var(--c-sky); }

/* Stats strip */
.stats { display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat h3 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); margin: var(--sp-2) 0 0;
  font-variant-numeric: tabular-nums; color: var(--c-primary);
}
.stat h3 .stat-suffix { color: var(--c-teal-text); }
.stat p { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--fs-small); color: var(--c-ink-soft); margin: var(--sp-1) auto 0; }
.stat .icon-chip { width: 3rem; height: 3rem; border-radius: 50%; }

/* Latest gallery strip + generic album cards */
.album-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.album-card { overflow: hidden; }
.album-card__media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--c-line-soft); }
.album-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 420ms var(--ease);
  background: linear-gradient(110deg, var(--c-line-soft) 40%, #f7f5ee 50%, var(--c-line-soft) 60%);
  background-size: 200% 100%;
}
.album-card__media img.is-loading { animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.album-card:hover .album-card__media img { transform: scale(1.045); }
.album-card__body { padding: var(--sp-4); display: grid; gap: var(--sp-1); }
.album-card__title { display: block; font-weight: 700; color: var(--c-ink); font-size: var(--fs-5); line-height: 1.35; }
.album-card:hover .album-card__title { color: var(--c-primary); }
.album-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); font-size: var(--fs-small); color: var(--c-ink-soft); align-items: center; }
.album-card__meta .icon { width: 1rem; height: 1rem; }
.album-card__media .play-tag {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Gallery page — two-pane
   ========================================================================== */
.gallery-layout { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 62rem) { .gallery-layout { grid-template-columns: 17.5rem minmax(0, 1fr); } }

.gside { position: sticky; top: calc(var(--header-h) + 1rem); }
.gside__search { position: relative; margin-bottom: var(--sp-4); }
.gside__search .icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); width: 1.125rem; height: 1.125rem; color: var(--c-ink-soft); pointer-events: none; }
.gside__search input {
  width: 100%; min-height: 2.75rem; padding: 0.5rem 0.875rem 0.5rem 2.625rem;
  font: inherit; color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-surface);
}
.gside__search input::placeholder { color: var(--c-ink-soft); opacity: 0.8; }

.acc { display: grid; gap: var(--sp-2); }
.acc-group { background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--r-md); overflow: hidden; }
.acc-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  width: 100%; min-height: 2.75rem; padding: 0.625rem 0.875rem;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--c-primary); text-align: left;
}
.acc-head:hover { background: var(--c-primary-tint); }
.acc-head .icon { transition: transform var(--dur) var(--ease); flex: none; color: var(--c-ink-soft); }
.acc-head[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-list { list-style: none; margin: 0; padding: 0 var(--sp-2) var(--sp-2); display: grid; gap: 2px; }

/* year rows cycle accent colours via --yr */
.acc-year .acc-head { font-weight: 600; color: var(--c-ink); border-left: 4px solid transparent; border-radius: var(--r-sm); min-height: 2.5rem; }
.acc-year .acc-head:hover { background: var(--c-base); }
.acc-year.is-active > .acc-head { border-left-color: var(--yr, var(--c-amber)); background: var(--c-base); font-weight: 700; }
.acc-sub { list-style: none; margin: 0; padding: 0 0 var(--sp-2) 1.125rem; display: grid; gap: 2px; }
.acc-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  min-height: 2.5rem; padding: 0.375rem 0.625rem; border-radius: var(--r-sm);
  color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  border-left: 3px solid transparent;
}
.acc-link:hover { background: var(--c-primary-tint); color: var(--c-primary); }
.acc-link[aria-current="page"] { background: var(--c-primary-tint); color: var(--c-primary); border-left-color: var(--yr, var(--c-primary)); }
.acc-link .badge--count { flex: none; }

/* right pane */
.gmain { min-width: 0; }
.gmain__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.gmain__head h1, .gmain__head h2 { margin: 0; }
.gmain__count { color: var(--c-ink-soft); font-weight: 600; font-size: var(--fs-small); }

/* photo grid inside one album — 2 up on phones, 3 up from tablet on */
.photo-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); } }
.photo-grid a {
  display: block; position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--r-md); background: var(--c-line-soft);
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 420ms var(--ease); }
.photo-grid a:hover img { transform: scale(1.05); }
.photo-grid a:focus-visible { outline-offset: 3px; }

/* empty state */
.empty {
  display: grid; justify-items: center; gap: var(--sp-3); text-align: center;
  padding: var(--sp-8) var(--sp-4); border: 2px dashed var(--c-line); border-radius: var(--r-lg);
  background: var(--c-surface);
}
.empty .icon-chip { width: 4rem; height: 4rem; border-radius: 50%; }
.empty p { color: var(--c-ink-soft); margin: 0; }

/* mobile: sidebar becomes an offcanvas sheet behind a "Browse Albums" button */
.gside-toggle { display: none; }
@media (max-width: 61.9375rem) {
  .gside-toggle {
    display: inline-flex; position: sticky; top: calc(var(--header-h) + 0.75rem); z-index: 60;
    margin-bottom: var(--sp-4);
  }
  .gside {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 120;
    width: min(20rem, 86vw); background: var(--c-surface);
    box-shadow: var(--shadow-lg); padding: var(--sp-5); overflow-y: auto;
    transform: translateX(-105%); transition: transform 280ms var(--ease);
  }
  body.gside-open .gside { transform: none; }
  body.gside-open { overflow: hidden; }
  body.gside-open .drawer-scrim { opacity: 1; pointer-events: auto; }
}

/* ---------- Lightbox (light theme scrim) ---------- */
.lb {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(250, 250, 247, 0.97);
  display: flex; align-items: center; justify-content: center;
}
.lb[hidden] { display: none; }
.lb__stage { position: relative; width: min(100% - 1rem, 74rem); height: 100%; display: flex; align-items: center; justify-content: center; }
.lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: grid; justify-items: center; gap: var(--sp-3); padding: 4.5rem 0.5rem; }
.lb__fig img {
  max-width: min(100%, 64rem); max-height: calc(100vh - 11rem);
  width: auto; height: auto; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); background: var(--c-line-soft);
}
.lb__cap { font-size: var(--fs-small); color: var(--c-ink-soft); text-align: center; max-width: 60ch; min-height: 1.25rem; }
.lb__btn {
  position: absolute; z-index: 2;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--c-surface); color: var(--c-primary);
  border: 1px solid var(--c-line); box-shadow: var(--shadow-md); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lb__btn:hover { background: var(--c-primary-tint); transform: scale(1.06); }
.lb__btn .icon { width: 1.375rem; height: 1.375rem; }
.lb__close { top: 1rem; right: 0.5rem; }
.lb__prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb__prev:hover, .lb__next:hover { transform: translateY(-50%) scale(1.06); }
.lb__count {
  position: absolute; top: 1.6rem; left: 50%; transform: translateX(-50%);
  font-size: var(--fs-small); font-weight: 700; color: var(--c-ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
/* Timeline (About) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--sp-6); }
.timeline::before {
  content: ''; position: absolute; left: 1.375rem; top: 0.5rem; bottom: 0.5rem;
  width: 3px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--c-primary), var(--c-teal), var(--c-amber), var(--c-coral));
}
.timeline li { position: relative; padding-left: 4.25rem; max-width: var(--measure); }
.tl-dot {
  position: absolute; left: 0; top: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 3px solid var(--dot, var(--c-primary)); background: var(--c-surface);
  color: var(--dot-text, var(--c-primary));
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.tl-dot .icon { width: 1.25rem; height: 1.25rem; }
.timeline .tl-year { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3); color: var(--c-primary); display: block; margin-bottom: var(--sp-1); }
.timeline p { color: var(--c-ink-soft); margin: 0; }

/* Staff */
.staff-section { margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.staff-section > .staff-section__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
/* polaroid-style member cards: inset photo, name, designation pill */
.staff-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 36rem) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62rem) { .staff-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }
@media (min-width: 75rem) { .staff-grid { grid-template-columns: repeat(5, 1fr); } }
.staff-card { text-align: center; padding: var(--sp-3); margin: 0; display: flex; flex-direction: column; }
.staff-card img {
  display: block; width: 100%; aspect-ratio: 7 / 9; object-fit: cover;
  border-radius: var(--r-md); background: var(--c-line-soft);
}
/* name hugs the photo, pill sits on the baseline — keeps a row tidy when
   some names wrap to two lines and others don't */
.staff-card figcaption {
  flex: 1; padding: var(--sp-3) var(--sp-1) var(--sp-2);
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: var(--sp-2);
}
.staff-card .s-name { display: block; font-weight: 700; color: var(--c-ink); font-size: 1.0625rem; line-height: 1.3; }
.staff-card .s-role {
  display: inline-block; font-size: 0.8125rem; font-weight: 700; line-height: 1;
  padding: 0.375rem 0.75rem; border-radius: var(--r-pill);
  background: var(--sec-tint, var(--c-teal-tint)); color: var(--sec-text, var(--c-teal-text));
}
.staff-group { margin: var(--sp-5) 0 0; }
.staff-group img { display: block; width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.staff-group figcaption { text-align: center; font-size: var(--fs-small); color: var(--c-ink-soft); padding-top: var(--sp-2); }

/* Contact */
.contact-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.info-card { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-3); }
.info-card strong { display: block; font-size: var(--fs-small); letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-ink-soft); margin-bottom: 2px; }
.info-card a { display: inline-flex; align-items: center; min-height: 2.25rem; font-weight: 600; }
.info-card p { margin: 0; }

.form-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 36rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .form-field--full { grid-column: 1 / -1; } }
.form-field label { display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: var(--sp-1); color: var(--c-ink); }
.form-field input, .form-field textarea {
  width: 100%; min-height: 2.75rem; padding: 0.625rem 0.875rem;
  font: inherit; color: var(--c-ink); background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline-offset: 0; border-color: var(--c-primary); }
.form-note { font-size: var(--fs-small); color: var(--c-ink-soft); }
.alert { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); margin-bottom: var(--sp-5); font-weight: 600; border: 1px solid; max-width: none; }
.alert--ok { background: var(--c-teal-tint); color: var(--c-teal-text); border-color: var(--c-teal); }
.alert--err { background: var(--c-coral-tint); color: var(--c-coral-text); border-color: var(--c-coral); }

.map-embed { border: 0; width: 100%; height: var(--map-h, 24rem); display: block; filter: saturate(0.9); }
.map-card { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--c-line-soft); }

/* click-to-load map placeholder — keeps ~2 MB of Google JS off first paint */
.map-facade {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: var(--sp-2); width: 100%; height: var(--map-h, 24rem);
  padding: var(--sp-4); border: 0; cursor: pointer; overflow: hidden;
  background: var(--c-teal-tint); color: var(--c-ink); text-align: center; font: inherit;
  transition: background-color var(--dur) var(--ease);
}
.map-facade:hover { background: #D8ECE9; }
.map-facade__grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 22px, rgba(30, 78, 140, 0.08) 22px 23px),
    repeating-linear-gradient(to right, transparent 0 22px, rgba(30, 78, 140, 0.08) 22px 23px);
}
.map-facade__pin { position: relative; color: var(--c-coral-text); }
.map-facade__pin .icon { width: 2.25rem; height: 2.25rem; }
.map-facade__label { position: relative; font-size: var(--fs-small); color: var(--c-ink-soft); line-height: 1.4; }
.map-facade__label strong { display: block; color: var(--c-ink); font-size: var(--fs-5); }
.map-facade__cta {
  position: relative; display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-small); font-weight: 700; color: var(--c-primary);
  background: var(--c-surface); border-radius: var(--r-pill);
  padding: 0.5rem 0.9rem; box-shadow: var(--shadow-sm); min-height: 2.25rem;
}
.map-facade__cta .icon { width: 1rem; height: 1rem; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* compact variant in the footer column */
.footer-map .map-facade { --map-h: 10rem; gap: var(--sp-1); }
.footer-map .map-facade__label strong { font-size: var(--fs-small); }
.footer-map .map-facade__label { font-size: 0.75rem; }
.footer-map .map-facade__pin .icon { width: 1.5rem; height: 1.5rem; }

/* video facade (About) */
.yt-facade { position: relative; display: block; aspect-ratio: 16 / 9; border: 0; padding: 0; width: 100%; cursor: pointer; border-radius: var(--r-lg); overflow: hidden; background: var(--c-line-soft); box-shadow: var(--shadow-md); }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-facade .play-tag { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 4rem; height: 4rem; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--c-primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform var(--dur) var(--ease); }
.yt-facade:hover .play-tag { transform: translate(-50%, -50%) scale(1.08); }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line-soft); }
.site-footer__grid { display: grid; gap: var(--sp-6); padding-block: var(--sp-7); }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr; } }
.site-footer h2 { font-size: var(--fs-4); color: var(--c-ink); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
/* links get a >=44px tap target on touch screens without inflating the visual rhythm */
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--c-ink-soft); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--c-primary); text-decoration: underline; }
.site-footer p { color: var(--c-ink-soft); font-size: var(--fs-small); }
.footer-contact a { min-height: 2.25rem; }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; }
.footer-brand span { font-family: var(--font-display); color: var(--c-primary); font-weight: 600; line-height: 1.2; }
.footer-contact li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--c-ink-soft); font-size: var(--fs-small); }
.footer-contact .icon { flex: none; margin-top: 2px; color: var(--c-teal-text); }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--c-coral-tint); color: var(--c-coral-text);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.social-btn:hover { transform: translateY(-2px); background: var(--c-coral); color: #fff; }
.footer-map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-line-soft); margin-top: var(--sp-3); }
.footer-map iframe { display: block; width: 100%; height: 10rem; border: 0; filter: saturate(0.85); }
.site-footer__bottom { border-top: 1px solid var(--c-line-soft); padding-block: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; justify-content: space-between; font-size: var(--fs-small); color: var(--c-ink-soft); }

/* ==========================================================================
   Motion
   ========================================================================== */
/* gated behind html.js so content stays visible without JavaScript */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 70ms; }
.reveal-d2 { transition-delay: 140ms; }
.reveal-d3 { transition-delay: 210ms; }
.reveal-d4 { transition-delay: 280ms; }
.reveal-d5 { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* small helpers */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.flow > * + * { margin-top: var(--sp-4); }
