/* ==========================================================================
   Bright Angels Junior School — public site
   Benchmarked on focusuganda.org: Inter Tight, luminous blue photo covers,
   navy footer with a soft glow, gold as the accent. Colours come from the
   school crest: royal blue ring, navy lettering, gold sun, red ribbon.
   ========================================================================== */

:root {
  --blue-50: #EEF3FC;
  --blue-100: #DCE6F8;
  --blue-200: #B6CAF0;
  --blue-400: #4B78CF;
  --blue-500: #1D4FA8;   /* crest ring: buttons, links */
  --blue-600: #173F88;
  --navy-700: #0F326B;   /* headings */
  --navy-800: #0B2A5B;   /* footer, bands */
  --navy-900: #081E42;   /* body text */
  --gold-100: #FDF1CF;
  --gold-300: #F9CF5E;
  --gold-400: #F5B82E;   /* crest sun: accent */
  --gold-500: #DDA011;
  --red-500: #D7262E;    /* crest ribbon: small touches only */
  --green-500: #1FA855;

  --ink-50: #F5F7FB;
  --ink-100: #EBEFF6;
  --ink-200: #DCE2EC;
  --ink-300: #C3CCDA;
  --ink-500: #5B6B86;
  --ink-600: #44557A;

  --bg: #FFFFFF;
  --bg-tint: #F4F7FC;
  --text: var(--navy-900);
  --text-muted: var(--ink-600);
  --heading: var(--navy-700);
  --border: var(--ink-200);

  --font: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.14vw, 1.06rem);
  --step-1: clamp(1.12rem, 1.07rem + 0.26vw, 1.28rem);
  --step-2: clamp(1.32rem, 1.23rem + 0.44vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.42rem + 0.8vw, 2.1rem);
  --step-4: clamp(1.9rem, 1.6rem + 1.3vw, 2.7rem);
  --step-5: clamp(2.2rem, 1.7rem + 2.2vw, 3.6rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(8, 30, 66, .06), 0 2px 8px rgba(8, 30, 66, .05);
  --shadow-md: 0 8px 28px rgba(8, 30, 66, .10);
  --shadow-lg: 0 18px 50px rgba(8, 30, 66, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold-400); color: var(--navy-900); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 4px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --bg-c: var(--blue-500); --fg-c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .78em 1.4em; border-radius: var(--r-full); border: 1.5px solid transparent;
  background: var(--bg-c); color: var(--fg-c); font-weight: 600; font-size: var(--step--1);
  text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:hover { --bg-c: var(--blue-600); }
.btn--accent { --bg-c: var(--gold-400); --fg-c: var(--navy-900); }
.btn--accent:hover { --bg-c: var(--gold-300); }
.btn--accent::after {
  content: ""; position: absolute; inset-block: 0; left: -60%; width: 45%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); opacity: 0;
}
.btn--accent:hover::after { animation: sheen .8s var(--ease); }
@keyframes sheen { from { left: -60%; opacity: 1; } to { left: 120%; opacity: 1; } }
.btn--glass { --bg-c: rgba(255,255,255,.12); --fg-c: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.btn--glass:hover { --bg-c: rgba(255,255,255,.22); }
.btn--outline { --bg-c: transparent; --fg-c: var(--blue-500); border-color: var(--blue-200); }
.btn--ghost-light { --bg-c: transparent; --fg-c: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { --bg-c: rgba(255,255,255,.1); }
.btn--sm { padding: .6em 1.1em; }
.btn--lg { padding: .95em 1.7em; font-size: var(--step-0); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--blue-500); font-size: var(--step--1); }
.link-arrow .icon { transition: transform .2s var(--ease); }
a:hover > .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .8rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-500);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; border-radius: 2px; background: var(--gold-400); }
.eyebrow--center::after { content: ""; width: 1.75rem; height: 2px; border-radius: 2px; background: var(--gold-400); }
.chip { display: inline-block; padding: .28rem .7rem; border-radius: var(--r-full); background: var(--gold-400); color: var(--navy-900); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.chip--soft { background: var(--blue-50); color: var(--blue-600); }

/* ---- Top bar and header -------------------------------------------------- */
.topbar { background: var(--navy-800); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__contact { display: flex; gap: 1.4rem; }
.topbar__contact a { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; }
.topbar__contact a:hover { color: #fff; }
.topbar__contact .icon { color: var(--gold-400); }
.topbar__note { display: flex; align-items: center; gap: .6rem; margin: 0; }
.topbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(245,184,46,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(245,184,46,0); } }
.topbar__btn { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .75rem; border-radius: var(--r-full); background: var(--gold-400); color: var(--navy-900); font-weight: 700; text-decoration: none; font-size: .78rem; }
.topbar__btn:hover { background: var(--gold-300); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header__row { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__crest { width: 56px; height: 56px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong { color: var(--navy-800); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
.brand__text small { color: var(--red-500); font-size: .8rem; font-weight: 600; }
.nav__list { display: flex; align-items: center; gap: .1rem; }
.nav__link { display: inline-flex; align-items: center; gap: .25rem; padding: .6rem .75rem; border-radius: var(--r-sm); color: var(--navy-800); font-weight: 600; font-size: .94rem; text-decoration: none; white-space: nowrap; }
.nav__link:hover, .nav__link.is-active { color: var(--blue-500); background: var(--blue-50); }
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; padding: .5rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.site-header__actions { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--navy-800); align-items: center; justify-content: center; }
.menu-btn .icon { width: 22px; height: 22px; }

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8,30,66,.5); animation: fade .2s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; padding: 1rem 1.25rem 2rem; overflow-y: auto; display: flex; flex-direction: column; animation: slide .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer__head .menu-btn { display: inline-flex; }
.drawer__link { display: flex; justify-content: space-between; align-items: center; padding: .85rem .25rem; border-bottom: 1px solid var(--ink-100); color: var(--navy-800); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.drawer__foot { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .6rem; }
.drawer__call { display: flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 600; text-decoration: none; padding: .5rem; }

/* ---- Toasts -------------------------------------------------------------- */
.toasts { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 95; display: grid; gap: .5rem; width: min(560px, calc(100% - 32px)); }
.toast { padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--navy-800); color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; animation: toast 6s forwards; border-left: 5px solid var(--gold-400); }
.toast--error { border-left-color: var(--red-500); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-10px); } 6%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; visibility: hidden; } }

/* ---- Hero (home) --------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(34rem, 82vh, 50rem); display: grid; align-items: center; color: #fff; background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slides { z-index: -2; }
.hero__slide { opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(8,30,66,.88) 0%, rgba(11,42,91,.68) 42%, rgba(29,79,168,.18) 100%), linear-gradient(0deg, rgba(8,30,66,.45), transparent 40%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300) 50%, var(--red-500)); }
.hero__inner { padding-block: 5rem 6rem; max-width: var(--container); }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { color: #fff; font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.035em; max-width: 13ch; margin-bottom: .35em; text-shadow: 0 2px 30px rgba(8,30,66,.35); }
.hero .lead { font-size: var(--step-1); max-width: 40rem; color: rgba(255,255,255,.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border-radius: var(--r-full); border: 0; background: rgba(255,255,255,.45); transition: width .3s var(--ease), background-color .3s; }
.hero__dots button.is-active { width: 30px; background: var(--gold-400); }

/* ---- Page cover (inner pages) -------------------------------------------- */
.page-cover { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(21rem, 50vh, 32rem); padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); color: #fff; text-align: center; background: linear-gradient(135deg, var(--navy-800) 0%, var(--blue-500) 100%); }
.page-cover__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, var(--navy-800) 0%, var(--blue-500) 62%, #3D7AD8 100%); }
.page-cover__bg img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .56; }
.page-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 58% 62% at 50% 52%, rgba(8,30,66,.5) 0%, rgba(8,30,66,.16) 60%, rgba(8,30,66,0) 100%), linear-gradient(180deg, rgba(8,30,66,.12), rgba(8,30,66,0) 30%, rgba(8,30,66,.3)); }
.page-cover::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 1; background: linear-gradient(90deg, var(--gold-500), var(--gold-300) 50%, var(--gold-500)); }
.page-cover__inner { display: flex; flex-direction: column; align-items: center; max-width: 56rem; }
.page-cover h1 { color: #fff; font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.03em; text-shadow: 0 2px 24px rgba(8,30,66,.35); margin: .2em 0 .3em; }
.page-cover .lead { font-size: var(--step-1); color: rgba(255,255,255,.92); max-width: 44rem; margin: 0; }
.page-cover .eyebrow { color: var(--gold-300); margin: 1rem 0 0; }
.page-cover__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.page-cover--story h1 { font-size: var(--step-4); max-width: 24ch; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; font-size: .84rem; color: rgba(255,255,255,.78); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: var(--section); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy-800); color: rgba(255,255,255,.88); position: relative; overflow: hidden; }
.section--navy h2 { color: #fff; }
.section--navy .eyebrow { color: var(--gold-300); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--text-muted); font-size: var(--step-1); margin: 0; }
.section-head .prose p { font-size: var(--step-0); margin-bottom: .8em; }
.section-head .prose p:last-child { margin-bottom: 0; }
.section-head--center { text-align: center; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.section-head--row > div { max-width: 44rem; }
.prose { color: var(--text-muted); }
.prose p:last-child { margin-bottom: 0; }
.prose--lg { font-size: var(--step-1); color: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media { position: relative; }
.rounded-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.badge-year { position: absolute; left: -1rem; bottom: -1.5rem; display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--gold-400); color: var(--navy-900); box-shadow: var(--shadow-md); }
.badge-year strong { font-size: 2rem; line-height: 1; letter-spacing: -0.03em; }
.badge-year span { font-size: .78rem; font-weight: 600; line-height: 1.25; }

/* At a glance */
.glance { background: var(--navy-800); color: #fff; padding-block: clamp(2.75rem, 5vw, 4rem); position: relative; overflow: hidden; }
.glance::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 90% 0%, rgba(75,120,207,.45), transparent 60%), radial-gradient(40% 90% at 5% 100%, rgba(245,184,46,.16), transparent 60%); }
.glance .container { position: relative; }
.glance__title { color: #fff; font-size: var(--step-2); text-align: center; margin-bottom: 1.75rem; }
.glance__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.glance__grid li { text-align: center; padding: 1.25rem .5rem; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.glance__grid strong { display: block; font-size: var(--step-5); line-height: 1; color: var(--gold-400); letter-spacing: -0.03em; }
.glance__grid span { display: block; margin-top: .5rem; font-weight: 500; color: rgba(255,255,255,.82); }

/* Learning stage cards */
.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stage-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .25s var(--ease), box-shadow .25s; }
.stage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stage-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-100); }
.stage-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.stage-card:hover .stage-card__img img { transform: scale(1.06); }
.stage-card__img .chip { position: absolute; left: .85rem; top: .85rem; }
.stage-card__body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.stage-card__body p { color: var(--text-muted); font-size: .95rem; flex: 1; }

/* Values */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.value-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1.1rem; background: var(--blue-50); color: var(--blue-500); }
.value-card__icon .icon { width: 26px; height: 26px; }
.value-card__icon--2 { background: #E8F6EE; color: var(--green-500); }
.value-card__icon--3 { background: #FDECEC; color: var(--red-500); }
.value-card__icon--4 { background: var(--gold-100); color: var(--gold-500); }
.motto { text-align: center; margin: 2.5rem auto 0; font-size: var(--step-2); font-weight: 600; color: var(--navy-700); letter-spacing: -0.01em; }
.motto span { display: block; font-size: .85rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; margin-top: .25rem; }

/* Vision / mission */
.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 4rem; }
.vm-card { padding: 1.75rem; border-radius: var(--r-lg); background: var(--blue-50); }
.vm-card p { margin: 0; font-size: var(--step-1); color: var(--navy-800); font-weight: 500; }
.vm-card--gold { background: var(--gold-100); }
.vm-card--navy { background: var(--navy-800); }
.vm-card--navy p { color: #fff; }
.vm-card--navy .eyebrow { color: var(--gold-300); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; position: relative; }
.timeline li { position: relative; padding: 1.5rem 1.25rem 1.25rem; border-radius: var(--r-md); background: var(--bg-tint); border-top: 4px solid var(--blue-500); }
.timeline li:nth-child(3n+2) { border-top-color: var(--gold-400); }
.timeline li:nth-child(3n) { border-top-color: var(--red-500); }
.timeline__year { display: block; font-size: var(--step-3); font-weight: 700; color: var(--blue-500); letter-spacing: -0.03em; line-height: 1; margin-bottom: .6rem; }
.timeline h3 { font-size: 1.02rem; margin-bottom: .3em; }
.timeline p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.person { text-align: center; background: #fff; border-radius: var(--r-lg); padding: 1.5rem 1.25rem; border: 1px solid var(--border); }
.person__photo { width: 140px; height: 140px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; background: var(--blue-100); display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--gold-400); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo span { font-size: 3rem; font-weight: 700; color: var(--blue-500); }
.person h3 { margin-bottom: .15em; }
.person__role { color: var(--blue-500); font-weight: 600; font-size: .92rem; margin-bottom: .6rem; }
.person__bio { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* Campus */
.space-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.space { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-100); }
.space img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.space:hover img { transform: scale(1.05); }
.space figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .85rem; color: #fff; font-weight: 600; background: linear-gradient(0deg, rgba(8,30,66,.85), transparent); }
.lists-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.list-card { background: #fff; border-radius: var(--r-lg); padding: 1.75rem; border: 1px solid var(--border); }
.list-card h3 { display: flex; align-items: center; gap: .6rem; }
.list-card h3 .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #E8F6EE; color: var(--green-500); }
.list-card--plan h3 .icon { background: var(--gold-100); color: var(--gold-500); }
.list-card li { padding: .55rem 0 .55rem 1.3rem; border-bottom: 1px dashed var(--ink-200); position: relative; color: var(--text-muted); }
.list-card li:last-child { border-bottom: 0; }
.list-card li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }
.list-card--plan li::before { background: var(--gold-400); }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.partner { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.partner__logo { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--navy-800); margin-bottom: 1rem; overflow: hidden; }
.partner__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.partner__logo span { color: var(--gold-400); font-size: 1.6rem; font-weight: 700; }
.partner h3 { margin: .6rem 0 .4rem; }
.partner h3 a { color: inherit; text-decoration: none; }
.partner p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.support-note { margin-top: 2rem; padding: 1.75rem 2rem; border-radius: var(--r-lg); background: var(--gold-100); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.support-note p { margin: 0; max-width: 46rem; color: var(--navy-800); font-weight: 500; }

/* Academics */
.stage { scroll-margin-top: 80px; }
.ticks { display: grid; gap: .8rem; margin: 1.25rem 0 1.75rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; }
.ticks .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--blue-500); color: #fff; margin-top: .1rem; }
.ticks strong { color: var(--navy-800); }
.ticks span { color: var(--text-muted); }
.day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); position: relative; }
.hours { margin: 0; display: grid; gap: .5rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border-radius: var(--r-sm); background: rgba(255,255,255,.07); }
.hours dt { font-weight: 600; color: #fff; }
.hours dd { margin: 0; color: var(--gold-300); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours__note { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; font-size: .92rem; }
.hours__note .icon { color: var(--gold-400); }
.club-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.club-list li { padding: .55rem 1rem; border-radius: var(--r-full); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 500; font-size: .92rem; }

/* Admissions */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { position: relative; padding: 1.75rem 1.5rem; border-radius: var(--r-lg); background: var(--bg-tint); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 2.9rem; right: -1.25rem; width: 1.25rem; height: 2px; background: var(--gold-400); }
.steps__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-500); color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--blue-100); }
.steps p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.apply { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.apply__aside p { color: var(--text-muted); }
.contact-mini { display: grid; gap: .8rem; margin-top: 1.5rem; }
.contact-mini li { display: flex; align-items: center; gap: .7rem; }
.contact-mini .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--blue-50); color: var(--blue-500); }
.contact-mini a { text-decoration: none; font-weight: 600; color: var(--navy-800); }
.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.form-card h2 { font-size: var(--step-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; margin-bottom: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy-800); }
.req { color: var(--red-500); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--ink-200); border-radius: var(--r-sm);
  font: inherit; font-size: 1rem; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.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--error input, .field--error select, .field--error textarea { border-color: var(--red-500); }
.field__help { color: var(--text-muted); font-size: .82rem; }
.field__err { color: var(--red-500); font-size: .84rem; font-weight: 600; }
.form-error { padding: .85rem 1rem; border-radius: var(--r-sm); background: #FDECEC; color: #9B1C22; font-weight: 600; margin-bottom: 1.25rem; }
.form-note { margin: 1rem 0 0; font-size: .84rem; color: var(--text-muted); }
.closed-note { display: flex; gap: 1rem; align-items: center; padding: 1rem; }
.closed-note .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--gold-100); color: var(--gold-500); }
.closed-note p { margin: 0; font-weight: 600; color: var(--navy-800); }
.faq { display: grid; gap: .75rem; }
.faq__item { background: #fff; border-radius: var(--r-md); border: 1px solid var(--border); overflow: hidden; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.35rem; cursor: pointer; font-weight: 600; color: var(--navy-800); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--blue-50); color: var(--blue-500); transition: transform .25s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(45deg); background: var(--gold-400); color: var(--navy-900); }
.faq__a { padding: 0 1.35rem 1.2rem; color: var(--text-muted); }
.faq__a p:last-child { margin: 0; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-100); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__ph { display: grid; place-items: center; height: 100%; color: var(--gold-400); }
.news-card__ph .icon { width: 48px; height: 48px; }
.news-card__body { padding: 1.25rem 1.35rem 1.5rem; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--blue-500); }
.news-card__body > p:last-child { color: var(--text-muted); font-size: .94rem; margin: 0; }
.meta { display: flex; align-items: center; gap: .65rem; font-size: .82rem; color: var(--text-muted); margin-bottom: .7rem; }
.featured { display: grid; grid-template-columns: 1.2fr 1fr; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); margin-bottom: 3rem; }
.featured__img { display: block; min-height: 320px; background: var(--blue-100); }
.featured__img img { width: 100%; height: 100%; object-fit: cover; }
.featured__body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.featured h2 { font-size: var(--step-3); }
.featured h2 a { color: inherit; text-decoration: none; }
.featured__body > p { color: var(--text-muted); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters a, .filters button { padding: .55rem 1.1rem; border-radius: var(--r-full); border: 1px solid var(--border); background: #fff; color: var(--navy-800); font-weight: 600; font-size: .9rem; text-decoration: none; transition: .2s; }
.filters a:hover, .filters button:hover { border-color: var(--blue-500); }
.filters .is-active { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; color: var(--text-muted); }
.pager a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; text-decoration: none; }
.empty { text-align: center; color: var(--text-muted); padding: 3rem 0; }
.story { max-width: 820px; }
.story__img { margin-bottom: 2.5rem; aspect-ratio: 16 / 9; }
.story .link-arrow { margin-top: 2rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.gallery li[hidden] { display: none; }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--blue-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .85rem .7rem; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(0deg, rgba(8,30,66,.8), transparent); opacity: 0; transition: opacity .25s; }
.gallery a:hover .gallery__cap, .gallery a:focus-visible .gallery__cap { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 99; background: rgba(5,18,40,.94); display: grid; place-items: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--r-sm); }
.lightbox figcaption { color: #fff; margin-top: .75rem; font-weight: 500; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox button:hover { background: var(--gold-400); color: var(--navy-900); }
.lightbox .icon { width: 24px; height: 24px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Contact */
.reach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.reach { text-align: center; padding: 2rem 1.25rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.reach h2 { font-size: var(--step-1); margin: .4rem 0 .3rem; }
.reach a { font-weight: 600; text-decoration: none; color: var(--navy-800); overflow-wrap: anywhere; font-size: .97rem; }
.reach a:hover { color: var(--blue-500); }
.reach p { margin: 0; color: var(--text-muted); }
.reach__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--blue-50); color: var(--blue-500); }
.reach__icon .icon { width: 26px; height: 26px; }
.reach__icon--green { background: #E8F6EE; color: var(--green-500); }
.reach__icon--red { background: #FDECEC; color: var(--red-500); }
.reach__icon--gold { background: var(--gold-100); color: var(--gold-500); }
.contact-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: stretch; }
.map { display: flex; flex-direction: column; gap: .75rem; }
.map iframe { flex: 1; width: 100%; min-height: 380px; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

/* ---- CTA bands ----------------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 5.5rem); background: linear-gradient(120deg, var(--navy-800), var(--blue-500)); color: #fff; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .25; }
.cta-band__row, .cta-strip__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); font-size: var(--step-1); }
.cta-band .btn-row { margin: 0; }
.cta-strip { background: var(--blue-500); color: #fff; padding-block: 2.5rem; background-image: radial-gradient(60% 140% at 100% 0%, rgba(245,184,46,.28), transparent 60%); }
.cta-strip h2 { color: #fff; font-size: var(--step-3); margin-bottom: .2em; }
.cta-strip p { margin: 0; color: rgba(255,255,255,.88); }
.cta-strip .btn-row { margin: 0; }

/* ---- Newsletter + footer (after focusuganda.org) ------------------------- */
.newsletter { background: var(--gold-400); color: var(--navy-900); padding-block: 2.25rem; }
.newsletter__row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; flex-wrap: wrap; }
.newsletter h2 { font-size: var(--step-2); margin: 0 0 .2em; color: var(--navy-900); }
.newsletter p { margin: 0; font-weight: 500; }
.newsletter__form { display: flex; gap: .5rem; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter__form input[type=email] { flex: 1; min-width: 0; padding: .85rem 1.1rem; border-radius: var(--r-full); border: 0; font: inherit; }
.newsletter .btn--accent { --bg-c: var(--navy-800); --fg-c: #fff; }
.newsletter .btn--accent:hover { --bg-c: var(--navy-900); }

.site-footer { position: relative; overflow: hidden; background: var(--navy-900); color: rgba(255,255,255,.76); padding-top: clamp(3.5rem, 6vw, 5rem); font-size: .95rem; }
.site-footer__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 60% at 0% 0%, rgba(29,79,168,.55), transparent 70%), radial-gradient(35% 50% at 100% 100%, rgba(245,184,46,.14), transparent 70%); }
.site-footer .container { position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__logo { display: flex; align-items: center; gap: .85rem; text-decoration: none; margin-bottom: 1.25rem; }
.footer__logo img { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 3px; }
.footer__logo strong { display: block; color: #fff; font-size: 1.08rem; line-height: 1.2; }
.footer__logo small { color: var(--gold-300); font-weight: 500; }
.footer__brand p { max-width: 24rem; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: .2s; }
.social a:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-2px); }
.footer__title { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; position: relative; padding-bottom: .75rem; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold-400); }
.footer__list { display: grid; gap: .6rem; }
.footer__list a { color: rgba(255,255,255,.76); text-decoration: none; transition: color .2s, padding .2s; }
.footer__list a:hover { color: var(--gold-300); padding-left: 3px; }
.footer__list--contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__list--contact .icon { color: var(--gold-400); margin-top: .25rem; }
.footer__ctas { display: flex; gap: .5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.6); }
.footer__bottom a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer__bottom a:hover { color: var(--gold-300); }
.footer__legal { display: flex; gap: 1.25rem; }

/* Floating buttons */
.wa-float { position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: var(--green-500); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }
.to-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy-800); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-500); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1140px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1024px) {
  .stage-grid, .value-grid, .space-grid, .reach-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .topbar__contact a:nth-child(1) span { display: none; }
  .split, .apply, .contact-split, .day-grid, .lists-2, .featured { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .glance__grid { grid-template-columns: repeat(2, 1fr); }
  .badge-year { left: .75rem; }
  .featured__img { min-height: 220px; }
}
@media (max-width: 600px) {
  .topbar__contact { display: none; }
  .topbar__row { justify-content: center; }
  .topbar__note { font-size: .76rem; text-align: center; }
  .site-header__row { min-height: 68px; gap: .5rem; }
  .brand__crest { width: 46px; height: 46px; }
  .brand__text strong { font-size: .92rem; }
  .brand__text small { font-size: .72rem; }
  .site-header__actions .btn { display: none; }
  .hero { min-height: 32rem; }
  .hero__inner { padding-block: 3.5rem 5rem; }
  .stage-grid, .value-grid, .news-grid, .reach-grid, .steps, .form-grid { grid-template-columns: 1fr; }
  .space-grid { grid-template-columns: 1fr 1fr; }
  .page-cover { min-height: 0; padding-block: 3rem 3.25rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .newsletter__form { flex-direction: column; }
  .lightbox__nav { top: auto !important; bottom: 1rem; transform: none !important; }
}

/* Office hours line under the contact cards */
.hours-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; margin: 1.75rem 0 0; color: var(--text-muted); }
.hours-line .icon { color: var(--gold-500); }
.hours-line strong { color: var(--navy-800); margin-left: -.8rem; }
.hours-line span + span::before { content: "·"; margin-right: 1.25rem; color: var(--ink-300); }
