/* =========================================================
   Nirmala High School, Dhanger – Kaleeth
   Visual identity derived from the school logo:
   maroon (heritage) · gold (achievement) · orange (light) · white (clarity)
   ========================================================= */

:root {
  /* Brand — from the logo */
  --maroon: #900000;
  --maroon-600: #A00000;
  --maroon-800: #800000;
  --maroon-900: #5E0707;
  --maroon-950: #360404;
  --gold: #F0B000;
  --gold-300: #F0C000;
  --gold-600: #E0A000;
  --gold-ink: #8A5A00;          /* gold that passes contrast on white */
  --orange: #F06000;
  --orange-400: #F08010;

  /* Neutrals */
  --white: #FFFFFF;
  --paper: #F5F5F5;
  --cream: #FBF8F3;             /* alternating warm section */
  --sand: #F3ECE2;
  --line: #EAE1D5;
  --ink: #171717;
  --ink-2: #222222;
  --muted: #5B5350;

  --grad-maroon: linear-gradient(135deg, #800000, #A00000);
  --grad-gold: linear-gradient(135deg, #D99A00, #F5C400);

  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(23 23 23 / .05), 0 2px 10px rgb(23 23 23 / .04);
  --shadow: 0 18px 40px -18px rgb(80 10 10 / .22), 0 2px 6px rgb(23 23 23 / .04);
  --shadow-lg: 0 34px 70px -24px rgb(80 10 10 / .32);

  --hh: 84px;                   /* header height */
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: #A00000;
}

/* header height incl. the menu row on smaller screens */
@media (max-width: 1199px) { :root { --hh: 114px; } }
@media (max-width: 991px) { :root { --hh: 72px; } }
@media (max-width: 767px) { :root { --hh: 64px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 12px); }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); font-weight: 500; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-600); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
blockquote { margin: 0; }
figure { margin: 0; }
address { font-style: normal; }
dialog { padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-300); color: var(--ink); }

/* ---------- Utilities ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--white); text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad-maroon);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--btn-bg); color: var(--white);
  font-weight: 600; font-size: .95rem; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .i { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); color: var(--white); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: 0 10px 24px -12px rgb(144 0 0 / .7); }
.btn--primary:hover { box-shadow: 0 16px 30px -12px rgb(144 0 0 / .75); }
.btn--gold { --btn-bg: var(--grad-gold); color: var(--ink); box-shadow: 0 10px 26px -12px rgb(224 160 0 / .8); }
.btn--gold:hover { color: var(--ink); box-shadow: 0 16px 34px -12px rgb(240 176 0 / .85); }
.btn--glass { --btn-bg: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { --btn-bg: rgb(255 255 255 / .18); border-color: var(--gold-300); }
.btn--outline { --btn-bg: transparent; color: var(--maroon); border-color: rgb(144 0 0 / .35); }
.btn--outline:hover { --btn-bg: var(--maroon); color: var(--white); border-color: var(--maroon); }
.btn--light { --btn-bg: var(--white); color: var(--maroon); box-shadow: var(--shadow-sm); }
.btn--light:hover { color: var(--maroon-600); }
.btn--sm { min-height: 42px; padding: .6em 1.1em; font-size: .88rem; }
.btn--lg { min-height: 54px; padding: .95em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; }
#history-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--cream); }
.section--maroon {
  color: rgb(255 255 255 / .86);
  background:
    radial-gradient(60% 80% at 85% 0%, rgb(240 176 0 / .16), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgb(240 96 0 / .12), transparent 60%),
    linear-gradient(160deg, var(--maroon-900), var(--maroon-800) 55%, var(--maroon-950));
  --focus: var(--gold-300);
  overflow: hidden;
}
.section--maroon::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M60 52c.4 4 3.6 7.6 8 8-4.4.4-7.6 4-8 8-.4-4-3.6-7.6-8-8 4.4-.4 7.6-4 8-8z' fill='%23F0C000' fill-opacity='.18'/%3E%3Ccircle cx='14' cy='18' r='1' fill='%23F0C000' fill-opacity='.25'/%3E%3Ccircle cx='100' cy='96' r='1' fill='%23F0C000' fill-opacity='.2'/%3E%3C/svg%3E");
}

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.section-head__lede { margin-top: 18px; font-size: 1.075rem; color: var(--muted); }
.section-head--light h2 { color: var(--white); }
.section-head--light .section-head__lede { color: rgb(255 255 255 / .75); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 14px;
  font-family: var(--ff-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow .i { width: .95em; height: .95em; color: var(--gold-600); }
.section-head:not(.section-head--left) .eyebrow::before,
.section-head:not(.section-head--left) .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.section-head--left .eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.section-head--light .eyebrow, .eyebrow--light { color: var(--gold-300); }

.lead { font-size: 1.15rem; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose { color: var(--muted); }

.note { margin-top: 24px; font-size: .9rem; color: var(--muted); }
.note--center { text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border-radius: 8px;
  background: var(--cream); border: 1px solid var(--line);
  font-size: .86rem; color: var(--ink-2); line-height: 1.4;
}
.chips--outline li { background: var(--white); }
.chips--light li { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .28); color: var(--white); }

/* ---------- Media (photos with graceful fallback) ---------- */
.media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: var(--ar, auto);
  background:
    radial-gradient(80% 80% at 70% 20%, rgb(240 192 0 / .22), transparent 60%),
    linear-gradient(135deg, var(--sand), #E8DCCB);
}
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media.is-empty > img { visibility: hidden; }
.media.is-empty::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font-family: var(--ff-display); font-size: 1.1rem; color: var(--maroon);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   1. Announcement bar
   ========================================================= */
/* Notice ticker (marquee) */
.ticker {
  display: flex; align-items: stretch; height: 42px;
  background: linear-gradient(90deg, #F5C400, var(--gold) 55%, #F5C400);
  color: var(--ink); font-size: .86rem; --focus: var(--maroon-800);
  border-bottom: 1px solid rgb(128 0 0 / .25);
}
.ticker__label {
  position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 22px 0 var(--gutter);
  background: var(--grad-maroon); color: var(--white);
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.ticker__label .i { width: 15px; height: 15px; color: var(--gold-300); animation: ring 4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(14deg); } 93% { transform: rotate(-12deg); } 97% { transform: rotate(6deg); } }
.ticker__viewport {
  flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 40px), transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker var(--ticker-dur, 60s) linear infinite; }
.ticker__list { display: flex; flex: none; }
.ticker__list li { display: flex; align-items: center; white-space: nowrap; padding-right: 28px; }
.ticker__list li::before {
  content: ""; width: 6px; height: 6px; margin-right: 28px; flex: none;
  background: var(--maroon); transform: rotate(45deg);
}
.ticker__list strong { color: var(--maroon-800); font-weight: 700; margin-right: 6px; }
.ticker__list a { color: var(--maroon-800); font-weight: 600; margin-left: 4px; }
.ticker__list a:hover { color: var(--maroon-950); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* pause while reading (hover / keyboard focus) or when paused by the button */
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__pause {
  flex: none; display: grid; place-items: center; width: 42px; margin-right: calc(var(--gutter) - 12px);
  border: 0; background: transparent; color: var(--maroon-800);
}
.ticker__pause:hover { color: var(--maroon-950); }
.ticker__pause .i { width: 12px; height: 12px; }
.ticker__icon-play, .ticker.is-paused .ticker__icon-pause { display: none; }
.ticker.is-paused .ticker__icon-play { display: block; }
@media (max-width: 600px) {
  .ticker { height: 38px; font-size: .8rem; }
  .ticker__label { padding-right: 18px; }
  .ticker__label span { display: none; }
}
/* Reduced motion: no scrolling; the notices become a swipeable strip */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; scrollbar-width: none; }
  .ticker__track .ticker__list[aria-hidden] { display: none; }
  .ticker__pause { display: none; }
}

/* =========================================================
   2. Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--hh);
  color: var(--white); --focus: var(--gold-300);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s;
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(30 4 4 / .55), transparent);
  transition: opacity .35s;
}
.site-header.is-solid {
  background: rgb(255 255 255 / .94); color: var(--maroon); --focus: var(--maroon-600);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgb(60 10 10 / .35);
}
.site-header.is-solid::after { opacity: 0; }
.header__inner { display: flex; align-items: center; gap: 20px; height: 100%; max-width: 1400px; }

.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; min-width: 0; }
.brand:hover { color: inherit; }
.brand__logo {
  width: 68px; height: auto; object-fit: contain;
  max-height: calc(var(--hh) - 14px); /* never taller than the header */
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / .25));
  transform-origin: left center;
  transition: width .3s var(--ease), transform .35s var(--ease), filter .35s;
}
/* fixed (scrolled) header: slightly smaller, crisp logo */
.is-solid .brand__logo { filter: none; transform: scale(.86); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand__place { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .82; white-space: nowrap; }
.is-solid .brand__place { color: var(--gold-ink); opacity: 1; }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; display: block; padding: 10px 11px;
  color: inherit; font-size: 1rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  opacity: .92; transition: opacity .2s, color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover { opacity: 1; color: inherit; }
.nav__link:hover::after { transform: scaleX(.5); }
.nav__link[aria-current] { opacity: 1; }
.nav__link[aria-current]::after { transform: scaleX(1); }
.is-solid .nav__link { color: var(--ink-2); }
.is-solid .nav__link:hover, .is-solid .nav__link[aria-current] { color: var(--maroon); }

.header__cta { flex: none; }
.site-header:not(.is-solid) .header__cta { --btn-bg: var(--grad-gold); color: var(--ink); box-shadow: none; }

/* Header menu:
   - 1200px and wider: one row beside the logo
   - 992–1199px: its own row under the logo
   - below 992px (phones, small tablets): hamburger toggle opening a panel */
.nav__extra, .nav-toggle { display: none; }
@media (min-width: 1200px) and (max-width: 1439px) {
  .header__inner { gap: 14px; }
  .nav__list { gap: 4px; }
  .nav__link { padding: 10px 9px; font-size: .95rem; }
  .nav__link::after { left: 9px; right: 9px; }
}
@media (min-width: 1200px) and (max-width: 1319px) {
  .header__inner { gap: 10px; padding-inline: 24px; }
  .brand { gap: 10px; }
  .brand__logo { width: 110px; }
  :root { --hh: 116px; } /* taller header so the 110px logo fits */
  .brand__name { font-size: 1.05rem; }
  .nav__list { gap: 2px; }
  .nav__link { padding: 10px 8px; font-size: .92rem; }
  .nav__link::after { left: 8px; right: 8px; }
  .header__cta { padding-inline: .9em; font-size: .82rem; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .site-header { height: auto; }
  .header__inner { flex-wrap: wrap; gap: 0 16px; height: auto; }
  .brand { height: 68px; }
  .nav { order: 3; flex: 1 1 100%; min-width: 0; margin-inline: calc(-1 * var(--gutter)); border-top: 1px solid rgb(255 255 255 / .18); }
  .is-solid .nav { border-top-color: var(--line); }
  .nav__list { justify-content: center; }
  .nav__list { gap: 6px; }
  .nav__link { padding: 13px 12px; font-size: 1rem; }
  .nav__link::after { left: 12px; right: 12px; bottom: 6px; }
}

/* ---- Mobile toggle menu ---- */
@media (max-width: 991px) {
  .header__inner { gap: 10px; }
  .nav-toggle {
    display: grid; place-items: center; flex: none; width: 46px; height: 46px; margin-right: -6px;
    border: 0; border-radius: 10px; background: transparent; color: inherit;
  }
  .nav-toggle:hover { background: rgb(255 255 255 / .1); }
  .is-solid .nav-toggle:hover { background: rgb(144 0 0 / .06); }
  .nav-toggle__bars { position: relative; width: 22px; height: 16px; }
  .nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
  .nav-toggle__bars span:nth-child(1) { top: 0; }
  .nav-toggle__bars span:nth-child(2) { top: 7px; }
  .nav-toggle__bars span:nth-child(3) { top: 14px; }
  .menu-open .nav-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .menu-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  /* the menu panel drops down under the header */
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--hh) - 40px); max-height: calc(100dvh - var(--hh) - 40px); overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) 24px;
    background: var(--white); color: var(--ink-2);
    border-top: 3px solid var(--gold);
    box-shadow: 0 24px 40px -16px rgb(40 4 4 / .35);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .site-header .nav__link {
    display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 4px;
    color: var(--ink-2); font-size: 1.02rem; opacity: 1;
  }
  .nav__link::after { display: none; }
  .site-header .nav__link:hover { color: var(--maroon); }
  .site-header .nav__link[aria-current] { color: var(--maroon); font-weight: 600; }
  .nav__link[aria-current]::before {
    content: ""; order: 2; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg);
  }
  .nav__extra { display: grid; gap: 14px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav__phones { display: flex; flex-wrap: wrap; gap: 6px 22px; }
  .nav__phones a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--maroon); font-weight: 500; text-decoration: none; }
  .nav__phones .i { color: var(--gold-600); }

  /* header turns solid while the menu is open */
  .site-header.menu-open { background: var(--white); color: var(--maroon); box-shadow: 0 1px 0 var(--line); }
  .site-header.menu-open::after { opacity: 0; }
  .menu-open .brand__place { color: var(--gold-ink); opacity: 1; }
  .menu-open .brand__logo { filter: none; }
  body.menu-lock { overflow: hidden; }
}
@media (max-width: 767px) {
  .header__cta { min-height: 38px; padding: .5em .9em; font-size: .8rem; }
  .brand__logo { width: 54px; }
  .brand__name { font-size: 1rem; }
  .brand__place { font-size: .64rem; }
}
@media (max-width: 480px) {
  .header__cta { display: none; }
}

/* =========================================================
   3. Hero
   ========================================================= */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: max(620px, 92vh);
  margin-top: calc(-1 * var(--hh));
  padding: calc(var(--hh) + 48px) 0 140px;
  color: var(--white); overflow: hidden; --focus: var(--gold-300);
}
/* Background slider: extends above the hero so the parallax shift never shows a gap */
.hero__bg { position: absolute; inset: -14% 0 0; z-index: -3; background: var(--maroon-950); will-change: transform; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.4s ease-in-out;
}
.hero__slide.is-active { opacity: 1; animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }

.hero__controls {
  position: absolute; right: var(--gutter); bottom: 104px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.hero__controls[hidden] { display: none; }
#hero-cta[hidden], #hero-cta2[hidden] { display: none; }
/* per-slide hero text: quick fade while main.js swaps it */
.js .hero .hero__content.is-swapping .reveal { opacity: 0; transition: opacity .35s ease; transition-delay: 0s; }
.hero__pause {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .4); background: rgb(0 0 0 / .2); color: var(--white);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .25s, border-color .25s;
}
.hero__pause:hover { border-color: var(--gold-300); background: rgb(0 0 0 / .35); }
.hero__pause .i { width: 14px; height: 14px; }
.hero__icon-play, .hero__pause[aria-pressed="true"] .hero__icon-pause { display: none; }
.hero__pause[aria-pressed="true"] .hero__icon-play { display: block; }
.hero__dots { display: flex; gap: 4px; }
.hero__dots button {
  display: grid; place-items: center; width: 28px; height: 40px; padding: 0; border: 0; background: none;
}
.hero__dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgb(255 255 255 / .5);
  transition: width .35s var(--ease), background-color .35s;
}
.hero__dots button:hover::before { background: var(--white); }
.hero__dots button[aria-current="true"] { width: 44px; }
.hero__dots button[aria-current="true"]::before { width: 30px; background: var(--gold); }
@media (max-width: 767px) {
  .hero__controls { right: auto; left: var(--gutter); bottom: 92px; }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgb(40 2 2 / .88) 0%, rgb(80 4 4 / .7) 45%, rgb(80 4 4 / .3) 100%),
    linear-gradient(0deg, rgb(30 2 2 / .75) 0%, transparent 45%);
}
.hero__glow {
  position: absolute; z-index: -1; width: 60vmax; height: 60vmax; left: -18vmax; top: -10vmax;
  background: radial-gradient(circle, rgb(240 176 0 / .28), rgb(240 96 0 / .1) 35%, transparent 65%);
  filter: blur(10px);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity: .7; transform: scale(.95); } to { opacity: 1; transform: scale(1.05); } }

.hero__sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__sparks span {
  position: absolute; left: var(--x); bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-300); box-shadow: 0 0 10px 2px rgb(240 176 0 / .6);
  opacity: 0; animation: rise var(--t) linear var(--d) infinite;
}
@keyframes rise {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: .9; }
  70% { opacity: .5; }
  100% { opacity: 0; transform: translate(-30px, -70vh) scale(1); }
}

.hero__content { max-width: 1240px; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300);
}
.hero__eyebrow .line { width: 44px; height: 1px; background: var(--gold); }
.hero__title { color: var(--white); }
.hero__school {
  display: block; margin-bottom: 10px;
  font-family: var(--ff-body); font-size: clamp(1rem, .8rem + 1vw, 1.35rem); font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: rgb(255 255 255 / .9);
}
.hero__motto {
  display: block; max-width: 11ch;
  font-size: clamp(3.2rem, 1.6rem + 7vw, 7.25rem); font-weight: 500; line-height: .98; letter-spacing: -.02em;
}
.hero__motto em {
  font-style: italic; color: var(--gold-300);
  background: linear-gradient(120deg, #FFD65A, var(--gold) 50%, var(--orange-400)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lede { max-width: 560px; margin-top: 26px; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: rgb(255 255 255 / .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 100px; translate: -50% 0;
  display: grid; place-items: center; width: 44px; height: 44px;
}
.hero__scroll span { display: block; width: 24px; height: 38px; border: 1.5px solid rgb(255 255 255 / .6); border-radius: 14px; position: relative; }
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px;
  background: var(--gold-300); animation: scrollDot 2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 767px) {
  .hero { min-height: auto; padding: calc(var(--hh) + 56px) 0 160px; align-items: flex-end; }
  .hero__overlay { background: linear-gradient(180deg, rgb(40 2 2 / .55), rgb(60 4 4 / .78) 45%, rgb(30 2 2 / .92)); }
  .hero__school { letter-spacing: .2em; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
}

/* =========================================================
   4. Quick information strip
   ========================================================= */
.quick { position: relative; z-index: 2; margin-top: -76px; }
.quick__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}
.quick__item { position: relative; display: grid; gap: 4px; padding: 28px 28px 30px; }
.quick__item + .quick__item::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: var(--line); }
.quick__icon { width: 28px; height: 28px; margin-bottom: 8px; color: var(--gold-600); }
.quick__label { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.quick__value { font-family: var(--ff-display); font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); color: var(--maroon); line-height: 1.2; }
@media (max-width: 900px) {
  .quick__grid { grid-template-columns: repeat(2, 1fr); }
  .quick__item:nth-child(3)::before { display: none; }
  .quick__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 400px) { .quick__item { padding: 20px 16px; } }

/* =========================================================
   5. About
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__visual { position: relative; }
.media--frame { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.about__visual::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border: 1px solid var(--gold); border-radius: var(--r-lg);
}
.about__badge {
  position: absolute; right: -18px; bottom: 36px;
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border-radius: var(--r); background: var(--grad-maroon); color: var(--white); box-shadow: var(--shadow);
}
.about__badge-year { font-family: var(--ff-display); font-size: 2rem; color: var(--gold-300); line-height: 1; }
.about__badge-txt { font-size: .8rem; line-height: 1.35; opacity: .9; }
.about__copy .btn { margin-top: 32px; }
.about__copy .section-head { margin-bottom: 28px; }

.milestones {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(56px, 7vw, 96px); padding-top: 34px;
}
.milestones::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent); }
.milestones li { position: relative; display: grid; gap: 4px; }
.milestones li::before {
  content: ""; position: absolute; top: -40px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgb(240 176 0 / .15);
}
.milestones__k { font-family: var(--ff-display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); color: var(--maroon); line-height: 1.1; }
.milestones__v { font-size: .92rem; color: var(--muted); }
@media (max-width: 767px) { .milestones { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } .milestones li:nth-child(n+3)::before { display: none; } }

/* History (expandable) */
.history { overflow: hidden; }
.history__inner {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px);
  margin-top: 56px; padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--line);
}
.js .history.is-opening .history__inner { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.history__side { display: grid; gap: 22px; align-content: start; }
.history__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); color: var(--maroon); }
.history__side .media { border-radius: var(--r); }
.history__quote { padding-left: 18px; border-left: 3px solid var(--gold); font-family: var(--ff-display); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--ink); }

.vtimeline { position: relative; display: grid; gap: 30px; padding-left: 38px; }
.vtimeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--maroon), var(--maroon-600)); border-radius: 2px; }
.vtimeline__item { position: relative; }
.vtimeline__dot {
  position: absolute; left: -38px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad-gold); box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px rgb(144 0 0 / .25);
}
.vtimeline__year { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.vtimeline h4 { margin: 4px 0 6px; font-size: 1.25rem; color: var(--ink); }
.vtimeline p:not(.vtimeline__year) { color: var(--muted); font-size: .95rem; }

@media (max-width: 900px) {
  .about__grid, .history__inner { grid-template-columns: 1fr; }
  .about__visual { max-width: 520px; }
  .about__badge { right: 12px; }
  .about__visual::before { inset: 14px -10px -14px 14px; }
}

/* =========================================================
   6. Vision / Mission / Motto
   ========================================================= */
.vmm__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.motto-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 4vw, 56px);
  border-radius: var(--r-lg); color: var(--white);
  background:
    radial-gradient(60% 50% at 50% 30%, rgb(240 176 0 / .3), transparent 70%),
    linear-gradient(160deg, var(--maroon-600), var(--maroon-800) 55%, var(--maroon-950));
  box-shadow: var(--shadow-lg);
}
.motto-card__laurel { position: absolute; bottom: 24px; width: 72px; height: 144px; color: var(--gold); opacity: .28; z-index: -1; }
.motto-card__laurel--l { left: 18px; }
.motto-card__laurel--r { right: 18px; transform: scaleX(-1); }
.motto-card__flame {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 50%;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(240 192 0 / .45); color: var(--gold-300);
  box-shadow: 0 0 40px rgb(240 176 0 / .35);
}
.motto-card__flame .i { width: 30px; height: 30px; }
.motto-card__label { font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); }
.motto-card__title { margin: 12px 0 18px; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.2rem); color: var(--white); line-height: 1; }
.motto-card__title em { color: var(--gold-300); }
.motto-card__text { max-width: 34ch; color: rgb(255 255 255 / .82); }
.motto-card__stars { display: flex; gap: 10px; margin-top: 26px; color: var(--gold); }
.motto-card__stars .i { width: 14px; height: 14px; }
.motto-card__stars .i:nth-child(2) { width: 20px; height: 20px; margin-top: -6px; }

.vmm__stack { display: grid; gap: 24px; }
.vm-card {
  position: relative; padding: clamp(28px, 3.5vw, 40px);
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
}
.vm-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 12px; background: rgb(240 176 0 / .14); color: var(--maroon); }
.vm-card__icon .i { width: 24px; height: 24px; }
.vm-card h3 { font-size: 1.6rem; color: var(--maroon); margin-bottom: 10px; }
.vm-card p { color: var(--muted); }

.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.values li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--ff-display); font-size: 1.15rem; color: var(--ink);
  transition: border-color .25s, transform .25s var(--ease);
}
.values li:hover { border-color: var(--gold); transform: translateY(-2px); }
.values .i { color: var(--gold-600); }

.objectives {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-top: 40px; padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px);
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line);
}
.objectives__intro { color: var(--muted); font-size: .95rem; }
.objectives__list { display: grid; gap: 12px; }
.objectives__list li { display: flex; gap: 16px; align-items: baseline; font-family: var(--ff-display); font-size: 1.15rem; color: var(--ink); }
.objectives__list span { font-family: var(--ff-body); font-size: .78rem; font-weight: 600; color: var(--gold-ink); letter-spacing: .1em; }
@media (max-width: 900px) { .vmm__grid, .objectives { grid-template-columns: 1fr; } }

/* =========================================================
   7. Academics
   ========================================================= */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stage {
  display: flex; flex-direction: column; gap: 24px; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.stage:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgb(240 176 0 / .6); }
.stage__head { display: flex; align-items: flex-start; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.stage__num { font-family: var(--ff-display); font-size: 2.4rem; line-height: 1; color: var(--gold-600); }
.stage__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stage h3 { font-size: 1.6rem; color: var(--maroon); margin-top: 4px; }

.acad-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.acad-extra__card { padding: 28px 32px; border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--line); }
.acad-extra__card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.3rem; color: var(--maroon); }
.acad-extra__card h3 .i { color: var(--gold-600); }
.acad-extra__card p { color: var(--muted); font-size: .95rem; }

.board {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  margin-top: 24px; padding: 26px 32px; border-radius: var(--r-lg);
  background: var(--grad-maroon); color: var(--white); --focus: var(--gold-300);
}
.board__main { display: flex; align-items: center; gap: 18px; }
.board__icon { width: 44px; height: 44px; color: var(--gold-300); }
.board__title { font-family: var(--ff-display); font-size: 1.35rem; }
.board__sub { font-size: .9rem; opacity: .8; }
.board__ids { display: flex; gap: 12px; margin: 0; flex-wrap: wrap; }
.board__ids div { padding: 10px 18px; border-radius: 10px; background: rgb(255 255 255 / .1); border: 1px solid rgb(240 192 0 / .35); }
.board__ids dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.board__ids dd { margin: 0; font-weight: 600; color: var(--gold-300); letter-spacing: .04em; }
@media (max-width: 1000px) { .stages { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }
@media (max-width: 767px) { .acad-extra { grid-template-columns: 1fr; } .stage, .acad-extra__card, .board { padding: 24px; } }

/* =========================================================
   8. Achievements
   ========================================================= */
.achieve__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
  padding: 36px 32px; border-radius: var(--r-lg);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(240 192 0 / .25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), border-color .35s;
}
.stat:hover { transform: translateY(-4px); border-color: rgb(240 192 0 / .6); }
.stat__num {
  font-family: var(--ff-display); font-size: clamp(3.4rem, 2.4rem + 3vw, 5rem); line-height: 1;
  background: linear-gradient(120deg, #FFE08A, var(--gold) 55%, var(--orange-400)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__num small { font-size: .45em; margin-left: 2px; }
.stat__label { margin-top: 14px; font-size: 1.05rem; color: var(--white); }
.stat__who { margin-top: 6px; font-size: .86rem; color: rgb(255 255 255 / .65); }

.awards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.award { border-radius: var(--r-lg); overflow: hidden; background: rgb(0 0 0 / .18); border: 1px solid rgb(255 255 255 / .1); }
.award figcaption { display: grid; gap: 4px; padding: 18px 22px 22px; font-size: .9rem; color: rgb(255 255 255 / .75); }
.award figcaption b { font-family: var(--ff-display); font-weight: 500; font-size: 1.2rem; color: var(--gold-300); }
.award .media img { transition: transform .6s var(--ease); }
.award:hover .media img { transform: scale(1.05); }
@media (max-width: 900px) { .achieve__grid, .awards { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) { .achieve__grid { grid-template-columns: repeat(3, 1fr); } .stat { padding: 24px 20px; } }

/* =========================================================
   9. Results
   ========================================================= */
.tabs__list {
  display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 40px; padding: 6px;
  border-radius: 14px; background: var(--cream); border: 1px solid var(--line); overflow-x: auto;
}
.tabs__list [role="tab"] {
  flex: none; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: .92rem;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.tabs__list [role="tab"]:hover { color: var(--maroon); }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--white); color: var(--maroon); box-shadow: var(--shadow-sm), inset 0 -2px 0 var(--gold); }
.tabs__panel { animation: fadeUp .45s var(--ease); }
.tabs__panel:focus-visible { outline-offset: 8px; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.podium li {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 30px 20px 26px; text-align: center;
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.podium li:first-child { background: linear-gradient(180deg, #FFF8E6, var(--white)); border-color: rgb(240 176 0 / .6); box-shadow: var(--shadow); }
.podium__pos {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 6px;
  font-family: var(--ff-display); font-size: 1.25rem; color: var(--ink); background: var(--grad-gold);
  box-shadow: 0 0 0 5px rgb(240 176 0 / .15);
}
.podium li:nth-child(2) .podium__pos { background: linear-gradient(135deg, #CFCFCF, #F2F2F2); box-shadow: 0 0 0 5px rgb(0 0 0 / .05); }
.podium li:nth-child(3) .podium__pos { background: linear-gradient(135deg, #C9844C, #EDB98A); box-shadow: 0 0 0 5px rgb(201 132 76 / .12); }
.podium__name { font-family: var(--ff-display); font-size: 1.3rem; color: var(--ink); }
.podium__pct { font-size: 1.6rem; font-weight: 600; color: var(--maroon); letter-spacing: -.01em; }

.rank-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; counter-reset: rank 3; }
.rank-list li {
  counter-increment: rank; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.rank-list li::before { content: counter(rank, decimal-leading-zero); width: 28px; font-size: .78rem; font-weight: 600; color: var(--gold-ink); }
.rank-list span { flex: 1; color: var(--ink-2); }
.rank-list b { font-weight: 600; color: var(--maroon); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .podium { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .podium::-webkit-scrollbar { display: none; }
  .podium li { flex: 0 0 72%; scroll-snap-align: center; }
  .rank-list { grid-template-columns: 1fr; }
  .tabs__list { width: auto; margin-inline: calc(-1 * var(--gutter) + 8px); }
}

/* =========================================================
   10. Admissions
   ========================================================= */
.admissions__intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 56px); }
.admissions__intro .section-head { margin-bottom: 0; max-width: 780px; }
.admissions__emblem { width: 140px; flex: none; filter: drop-shadow(0 16px 24px rgb(128 0 0 / .18)); }
@media (max-width: 767px) { .admissions__emblem { display: none; } }

.adm-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.adm-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.adm-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 1.35rem; color: var(--maroon); }
.adm-card h3 .i { color: var(--gold-600); }
.adm-card__foot { margin-top: 14px; font-size: .85rem; color: var(--muted); }

.steps { position: relative; display: grid; gap: 26px; }
.steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: repeating-linear-gradient(var(--gold) 0 6px, transparent 6px 12px); }
.steps__item { position: relative; display: flex; gap: 20px; }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--grad-maroon); color: var(--white); font-family: var(--ff-display); font-size: 1.2rem; box-shadow: 0 0 0 6px var(--white); }
.steps__when { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.steps h4 { margin: 2px 0 4px; font-size: 1.2rem; }
.steps p:not(.steps__when) { color: var(--muted); font-size: .95rem; }

.ages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ages li { display: grid; gap: 2px; padding: 16px 18px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.ages span { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ages b { font-family: var(--ff-display); font-weight: 500; font-size: 1.45rem; color: var(--maroon); }

.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.docs > div { padding: 14px 16px; border-radius: 12px; background: var(--cream); border-left: 3px solid var(--gold); }
.docs__label { font-weight: 600; color: var(--maroon); }
.docs__basis { font-size: .88rem; color: var(--muted); }
.docs__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.docs__list li { position: relative; padding-left: 22px; font-size: .93rem; }
.docs__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.docs__list small { color: var(--muted); }

.adm-card--cta {
  position: relative; overflow: hidden; color: rgb(255 255 255 / .85); border: 0; --focus: var(--gold-300);
  background: radial-gradient(70% 60% at 100% 0%, rgb(240 176 0 / .25), transparent 60%), linear-gradient(160deg, var(--maroon-600), var(--maroon-900));
}
.adm-card--cta h3 { color: var(--white); font-size: 1.7rem; margin-bottom: 10px; }
.adm-card__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 8px; }
.adm-card--cta .btn { margin-top: 24px; }
.adm-card__contact { display: grid; gap: 6px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .15); }
.adm-card__contact p { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.adm-card__contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--white); font-size: 1.1rem; font-weight: 500; text-decoration: none; }
.adm-card__contact a:hover { color: var(--gold-300); }
.adm-card__contact .i { color: var(--gold-300); }
@media (max-width: 1000px) { .adm-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .docs, .docs__list { grid-template-columns: 1fr; } }

/* =========================================================
   11. Campus life
   ========================================================= */
.campus__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }
.campus__item--xl { grid-column: span 2; grid-row: span 2; }
.campus__item--tall { grid-row: span 2; }
.campus__item--wide { grid-column: span 2; }
.tile { height: 100%; border-radius: var(--r); cursor: default; }
.tile img { transition: transform .7s var(--ease); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgb(40 2 2 / .78), rgb(40 2 2 / .05) 55%);
  transition: background-color .4s;
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--gold); transition: box-shadow .35s var(--ease);
}
.tile.is-empty::after { content: attr(data-label); box-shadow: none; }
.tile__cap {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-size: 1.25rem; color: var(--white);
}
.tile__cap .i { color: var(--gold-300); }
.tile__explore {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
  background: rgb(255 255 255 / .92); color: var(--maroon); font-size: .78rem; font-weight: 600;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease);
}
.tile__explore .i { width: 14px; height: 14px; }
.tile:hover img { transform: scale(1.07); }
.tile:hover::before { background-color: rgb(128 0 0 / .28); }
.tile:hover::after { box-shadow: inset 0 0 0 3px var(--gold); }
.tile:hover .tile__explore { opacity: 1; transform: none; }
@media (min-width: 1001px) {
  .campus__grid { grid-template-areas: "b b c s" "b b l k" "p p l ba" "pk pk t t"; }
  .campus__item:nth-child(1) { grid-area: b; }
  .campus__item:nth-child(2) { grid-area: c; }
  .campus__item:nth-child(3) { grid-area: s; }
  .campus__item:nth-child(4) { grid-area: l; }
  .campus__item:nth-child(5) { grid-area: k; }
  .campus__item:nth-child(6) { grid-area: p; }
  .campus__item:nth-child(7) { grid-area: ba; }
  .campus__item:nth-child(8) { grid-area: pk; }
  .campus__item:nth-child(9) { grid-area: t; }
}
@media (max-width: 1000px) { .campus__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 560px) {
  .campus__grid { grid-auto-rows: 170px; gap: 10px; }
  .tile__cap { left: 12px; right: 12px; bottom: 12px; font-size: 1rem; }
  .tile__cap .i { display: none; }
}

/* =========================================================
   12. Beyond the classroom
   ========================================================= */
.act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.act-card { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--maroon-950); isolation: isolate; box-shadow: var(--shadow-sm); }
.act-card .media { height: 100%; min-height: 400px; }
.act-card .media img { transition: transform .8s var(--ease), opacity .4s; }
.act-card::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(0deg, rgb(36 2 2 / .92) 8%, rgb(36 2 2 / .15) 60%, transparent); }
.act-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; color: var(--white); }
.act-card__icon { width: 30px; height: 30px; color: var(--gold-300); margin-bottom: 10px; }
.act-card h3 { color: var(--white); font-size: 1.45rem; }
.act-card__list {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s;
}
.act-card__list li { padding: 4px 10px; border-radius: 6px; background: rgb(255 255 255 / .14); border: 1px solid rgb(240 192 0 / .3); font-size: .8rem; }
.act-card:hover .media img, .act-card:focus-visible .media img { transform: scale(1.08); }
.act-card:hover .act-card__list, .act-card:focus-within .act-card__list { max-height: 200px; opacity: 1; }
.act-card:focus-visible { outline-offset: 4px; }
@media (hover: none) { .act-card__list { max-height: none; opacity: 1; } }
@media (max-width: 1100px) { .act-grid { grid-template-columns: repeat(2, 1fr); } .act-card .media { min-height: 340px; } }
@media (max-width: 560px) {
  .act-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .act-grid::-webkit-scrollbar { display: none; }
  .act-card { flex: 0 0 80%; scroll-snap-align: center; }
  .act-card__list { max-height: none; opacity: 1; }
}

/* =========================================================
   13. Houses
   ========================================================= */
.house-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.house {
  --hc: #B3261E; --hc-soft: rgb(179 38 30 / .1);
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--hc);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.house--blue { --hc: #1F4E9A; --hc-soft: rgb(31 78 154 / .1); }
.house--green { --hc: #2E7D4F; --hc-soft: rgb(46 125 79 / .1); }
.house--yellow { --hc: #C99500; --hc-soft: rgb(224 160 0 / .14); }
.house:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.house__photo img { transition: transform .6s var(--ease); }
.house:hover .house__photo img { transform: scale(1.06); }
.house__body { position: relative; padding: 0 24px 26px; }
.house__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 14px; border-radius: 50%;
  background: var(--white); color: var(--hc); border: 2px solid var(--hc); box-shadow: 0 8px 18px -8px rgb(0 0 0 / .3);
  position: relative; z-index: 1; transition: transform .4s var(--ease);
}
.house:hover .house__icon { transform: rotate(-8deg) scale(1.06); }
.house__icon .i { width: 26px; height: 26px; }
.house__name { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--hc); }
.house__motto { margin: 2px 0 10px; font-size: 1.9rem; color: var(--ink); }
.house__body > p:last-child { font-size: .93rem; color: var(--muted); }
@media (max-width: 1000px) { .house-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .house-grid { grid-template-columns: 1fr; } }

/* =========================================================
   14. Eco + Peace clubs
   ========================================================= */
.clubs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.club { overflow: hidden; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.club__body { padding: clamp(24px, 3vw, 36px); }
.club__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.club h3 { margin: 8px 0 10px; font-size: 1.8rem; }
.club__body > p:not(.club__kicker) { color: var(--muted); }
.club__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 22px; }
.club__list li { display: flex; align-items: center; gap: 10px; font-size: .93rem; }
.club__list .i { width: 30px; height: 30px; padding: 6px; border-radius: 8px; }
/* Eco club — the only place green/earth accents appear */
.club--eco { border-top: 4px solid #2E7D4F; }
.club--eco .club__kicker { color: #2E6B3F; }
.club--eco h3 { color: #24543A; }
.club--eco .club__list .i { color: #2E6B3F; background: rgb(46 125 79 / .1); }
.club--peace { border-top: 4px solid var(--gold); }
.club--peace .club__kicker { color: var(--gold-ink); }
.club--peace h3 { color: var(--maroon); }
.club--peace .club__list .i { color: var(--maroon); background: rgb(240 176 0 / .14); }
@media (max-width: 900px) { .clubs__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .club__list { grid-template-columns: 1fr; } }

/* =========================================================
   15. Culture & community (bento)
   ========================================================= */
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 20px; }
.bento__item { position: relative; overflow: hidden; border-radius: var(--r-lg); isolation: isolate; background: var(--maroon-950); }
.bento__item--lg { grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__item .media { position: absolute; inset: 0; }
.bento__item .media img { transition: transform .8s var(--ease); }
.bento__item:hover .media img { transform: scale(1.06); }
.bento__item::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(0deg, rgb(36 2 2 / .95), rgb(36 2 2 / .72) 45%, rgb(36 2 2 / .15) 80%); }
.bento__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.5vw, 30px); color: rgb(255 255 255 / .85); }
.bento__kicker { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.bento__cap h3 { margin: 6px 0 6px; font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); color: var(--white); }
.bento__cap p { font-size: .92rem; max-width: 46ch; }
.bento__cap .chips { margin-top: 12px; }
.bento__item--wide .media { left: auto; width: 45%; }
.bento__item--wide .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--maroon-950), transparent 40%); }
.bento__item--wide::after { background: linear-gradient(90deg, var(--maroon-900) 50%, transparent 80%); }
.bento__item--wide .bento__cap { right: 45%; top: 0; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 280px 280px; }
  .bento__item--lg { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 320px; }
  .bento__item--lg, .bento__item--wide { grid-column: auto; }
  .bento__item--wide .media { width: 100%; }
  .bento__item--wide .bento__cap { right: 0; top: auto; }
  .bento__item--wide::after { background: linear-gradient(0deg, rgb(36 2 2 / .94), rgb(36 2 2 / .2) 65%); }
}

/* =========================================================
   16. Alumni
   ========================================================= */
.alumni__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.alumni__head .section-head { margin-bottom: 0; }
.carousel-ctrl { display: flex; gap: 10px; flex: none; }
.icon-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(144 0 0 / .3); background: var(--white); color: var(--maroon);
  transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
}
.icon-btn:hover:not(:disabled) { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn--dark { background: rgb(255 255 255 / .1); color: var(--white); border-color: rgb(255 255 255 / .3); }
.icon-btn--dark:hover:not(:disabled) { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.alumni__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 6px 2px 24px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.alumni__track:focus-visible { outline-offset: 6px; }
.alum {
  display: flex; flex-direction: column; gap: 18px; padding: 30px; scroll-snap-align: start;
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.alum:hover { border-color: rgb(240 176 0 / .7); box-shadow: var(--shadow); transform: translateY(-4px); }
.alum__head { display: flex; align-items: center; gap: 16px; }
.alum__mono {
  display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: var(--grad-maroon); color: var(--gold-300); font-family: var(--ff-display); font-size: 1.15rem; letter-spacing: .04em;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--gold);
}
.alum h3 { font-size: 1.3rem; }
.alum__role { font-size: .88rem; font-weight: 600; color: var(--maroon); }
.alum blockquote { flex: 1; position: relative; padding-top: 14px; border-top: 1px solid var(--line); }
.alum blockquote p { font-size: .95rem; color: var(--muted); font-style: italic; }
.alum__batch { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
@media (max-width: 1000px) { .alumni__track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 767px) {
  .carousel-ctrl { display: none; }
  .alumni__track { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow: visible; padding: 0; }
  .alum { padding: 24px; }
}

/* =========================================================
   17. Gallery
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filter {
  min-height: 42px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font-size: .88rem; font-weight: 500;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--gold); color: var(--maroon); }
.filter[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
@media (max-width: 600px) {
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
}

.masonry { columns: 4 240px; column-gap: 16px; }
.masonry__item { break-inside: avoid; margin-bottom: 16px; animation: fadeUp .45s var(--ease); }
.masonry__item[hidden] { display: none; }
.g-item { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: none; cursor: zoom-in; }
.g-item .media img { transition: transform .6s var(--ease); }
.g-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgb(128 0 0 / 0); box-shadow: inset 0 0 0 0 var(--gold); transition: background-color .35s, box-shadow .35s; pointer-events: none; }
.g-item__zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgb(255 255 255 / .92); color: var(--maroon); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease);
}
.g-item__zoom .i { width: 16px; height: 16px; }
.g-item:hover .media img, .g-item:focus-visible .media img { transform: scale(1.06); }
.g-item:hover::after, .g-item:focus-visible::after { background: rgb(128 0 0 / .2); box-shadow: inset 0 0 0 3px var(--gold); }
.g-item:hover .g-item__zoom, .g-item:focus-visible .g-item__zoom { opacity: 1; transform: none; }
.gallery__empty { text-align: center; color: var(--muted); }
@media (max-width: 600px) { .masonry { columns: 2; column-gap: 10px; } .masonry__item { margin-bottom: 10px; } }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0;
  background: rgb(18 4 4 / .96); color: var(--white); --focus: var(--gold-300);
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 8px; padding: 24px; }
.lightbox::backdrop { background: rgb(0 0 0 / .6); }
.lightbox__fig { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lightbox__stage { display: grid; place-items: center; width: 100%; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: var(--r-sm); box-shadow: 0 30px 80px rgb(0 0 0 / .5); animation: fadeUp .35s var(--ease); }
.lightbox__cap { font-family: var(--ff-display); font-size: 1.15rem; color: rgb(255 255 255 / .9); text-align: center; }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
@media (max-width: 600px) {
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 64px 12px 20px; }
  .lightbox__fig { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; justify-self: end; margin-right: 8px; }
  .lightbox__nav--next { grid-row: 2; justify-self: start; margin-left: 8px; }
}

/* =========================================================
   Video gallery
   ========================================================= */
.videos {
  color: rgb(255 255 255 / .8); --focus: var(--gold-300);
  background:
    radial-gradient(50% 60% at 100% 0%, rgb(240 176 0 / .12), transparent 60%),
    radial-gradient(45% 55% at 0% 100%, rgb(144 0 0 / .35), transparent 60%),
    var(--ink);
}
.videos__head { margin-bottom: clamp(32px, 4vw, 48px); }
.videos__head .section-head { margin-bottom: 0; }
.videos__grid { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: repeat(3, auto); gap: 20px; }
.video--featured { grid-row: span 3; }

.video { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.video__play {
  position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden;
  border-radius: var(--r-lg); background: #000; cursor: pointer; text-align: left;
}
.video__play .media { aspect-ratio: 16 / 9; }
.video--featured .video__play { flex: 1; }
.video--featured .video__play .media { height: 100%; min-height: 100%; }
.video__play .media img { transition: transform .7s var(--ease), opacity .4s; }
.video__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(20 2 2 / .55), rgb(20 2 2 / .1) 60%); transition: background-color .35s; pointer-events: none; }
.video__btn {
  position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad-gold); color: var(--maroon-900);
  box-shadow: 0 0 0 8px rgb(240 176 0 / .22), 0 14px 30px -8px rgb(0 0 0 / .6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.video__btn .i { width: 24px; height: 24px; margin-left: 3px; }
.video--featured .video__btn { width: 88px; height: 88px; }
.video--featured .video__btn .i { width: 32px; height: 32px; }
.video__play:hover .media img, .video__play:focus-visible .media img { transform: scale(1.05); }
.video__play:hover .video__btn, .video__play:focus-visible .video__btn { transform: scale(1.08); box-shadow: 0 0 0 12px rgb(240 176 0 / .25), 0 14px 30px -8px rgb(0 0 0 / .6); }
.video__soon {
  position: absolute; left: 14px; top: 14px; z-index: 1; display: none;
  padding: 4px 10px; border-radius: 6px; background: rgb(0 0 0 / .55); color: var(--gold-300);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.video.is-pending .video__soon { display: block; }
.video.is-pending .video__play { cursor: default; }
.video.is-pending .video__btn { opacity: .75; }
.video.is-pending .video__play:hover .video__btn { transform: none; }
.video__cat { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.video__title { margin-top: 4px; font-size: 1.2rem; color: var(--white); }
.video--featured .video__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }

/* Side videos: thumbnail + text side by side on desktop */
@media (min-width: 1001px) {
  .video:not(.video--featured) { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 18px; }
  .video:not(.video--featured) .video__btn { width: 48px; height: 48px; box-shadow: 0 0 0 6px rgb(240 176 0 / .22); }
  .video:not(.video--featured) .video__btn .i { width: 18px; height: 18px; }
  .video:not(.video--featured) .video__soon { left: 8px; top: 8px; font-size: .62rem; padding: 3px 7px; }
}
@media (max-width: 1000px) {
  .videos__grid { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto; }
  .video--featured { grid-column: 1 / -1; grid-row: auto; }
  .video--featured .video__play .media { aspect-ratio: 16 / 9; height: auto; }
}
@media (max-width: 680px) {
  .videos__grid { display: flex; flex-direction: column; }
  .video:not(.video--featured) { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 14px; }
  .video:not(.video--featured) .video__btn { width: 40px; height: 40px; box-shadow: 0 0 0 5px rgb(240 176 0 / .22); }
  .video:not(.video--featured) .video__btn .i { width: 16px; height: 16px; }
  .video:not(.video--featured) .video__play { border-radius: var(--r); }
  .video:not(.video--featured) .video__soon { display: none !important; }
  .video.is-pending:not(.video--featured) .video__cat::after { content: " · Coming soon"; color: rgb(255 255 255 / .6); }
  .video__title { font-size: 1.05rem; }
}

/* Video player dialog */
.video-modal[open] { display: grid; grid-template-columns: 1fr; place-items: center; padding: 64px 24px 24px; }
.video-modal__fig { display: grid; gap: 14px; width: min(1100px, 100%); }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: calc(100vh - 140px); border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.video-modal__frame iframe, .video-modal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   18. News
   ========================================================= */
.news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.news__head .section-head { margin-bottom: 0; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card .media img { transition: transform .7s var(--ease); }
.news-card:hover .media img { transform: scale(1.05); }
.news-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 26px 26px; }
.news-card__meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); }
.news-card__meta .cat { padding: 3px 10px; border-radius: 6px; background: rgb(240 176 0 / .16); color: var(--gold-ink); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { font-size: 1.35rem; }
.news-card p:not(.news-card__meta) { color: var(--muted); font-size: .94rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.link-arrow .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
@media (max-width: 1000px) { .news__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .news__grid { grid-template-columns: 1fr; } .news__head { flex-direction: column; align-items: flex-start; } }

/* =========================================================
   19. Parents
   ========================================================= */
.parents__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.parents__visual { position: sticky; top: calc(var(--hh) + 24px); display: grid; gap: 24px; }
.parents__quote { padding: 22px 24px; border-radius: var(--r); background: var(--cream); border-left: 3px solid var(--gold); font-family: var(--ff-display); font-style: italic; font-size: 1.12rem; line-height: 1.5; color: var(--ink); }
.partner-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.partner-list li { display: flex; gap: 14px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); transition: border-color .3s, transform .3s var(--ease); }
.partner-list li:hover { border-color: var(--gold); transform: translateY(-3px); }
.partner-list li:last-child { grid-column: 1 / -1; }
.partner-list .i { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: rgb(240 176 0 / .14); color: var(--maroon); }
.partner-list h3 { font-family: var(--ff-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.partner-list p { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .parents__grid { grid-template-columns: 1fr; } .parents__visual { position: static; max-width: 560px; } }
@media (max-width: 560px) { .partner-list { grid-template-columns: 1fr; } }

/* =========================================================
   20. Online fee / Parent portal
   ========================================================= */
.fee { padding-bottom: var(--section-y); }
.fee__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px); border-radius: 28px;
  background: radial-gradient(60% 70% at 0% 0%, rgb(240 176 0 / .14), transparent 60%), var(--ink);
  color: rgb(255 255 255 / .8); --focus: var(--gold-300);
}
.fee__card::before { content: ""; position: absolute; right: -80px; bottom: -80px; z-index: -1; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgb(240 176 0 / .2); box-shadow: 0 0 0 40px rgb(240 176 0 / .03), 0 0 0 80px rgb(240 176 0 / .02); }
.fee__copy h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); color: var(--white); }
.fee__copy em { color: var(--gold-300); font-style: normal; }
.fee__copy .btn { margin-top: 28px; }
.fee__ext { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .82rem; color: rgb(255 255 255 / .6); }
.fee__ext .i { width: 14px; height: 14px; }
.fee__side { display: grid; gap: 24px; align-content: start; }
.quarters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quarters li { display: grid; gap: 2px; padding: 18px 20px; border-radius: var(--r); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); transition: border-color .3s; }
.quarters li:hover { border-color: rgb(240 176 0 / .5); }
.quarters__q { font-family: var(--ff-display); font-size: 1.4rem; color: var(--gold-300); }
.quarters__m { font-size: .9rem; color: var(--white); }
.quarters__m small { display: block; font-size: .78rem; color: rgb(255 255 255 / .6); }
.fee__rules { display: grid; gap: 8px; font-size: .9rem; }
.fee__rules li { position: relative; padding-left: 20px; }
.fee__rules li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.fee__rules strong { color: var(--white); font-weight: 600; }
.fee__rules a { color: var(--gold-300); }
@media (max-width: 900px) { .fee__card { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .quarters { grid-template-columns: 1fr; } }

/* =========================================================
   21. Contact
   ========================================================= */
.contact { background: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact__info { display: grid; gap: 24px; }
.contact__card, .form { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact__school { font-family: var(--ff-display); font-size: 1.7rem; color: var(--maroon); line-height: 1.2; }
.contact__place { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.contact__list { display: grid; gap: 16px; margin: 24px 0; }
.contact__list li { display: flex; gap: 14px; }
.contact__list .i { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: rgb(240 176 0 / .14); color: var(--maroon); }
.contact__list a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.contact__list a:hover { color: var(--maroon); text-decoration: underline; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.map { position: relative; overflow: hidden; min-height: 260px; border-radius: var(--r-lg); background: linear-gradient(135deg, #F4EBDD, #EADFCC); color: var(--maroon); border: 1px solid var(--line); }
.map__art { position: absolute; inset: 0; color: var(--gold-600); }
.map__art svg { width: 100%; height: 100%; }
.map__pin { position: absolute; left: 50%; top: 42%; translate: -50% -50%; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad-maroon); color: var(--white); box-shadow: 0 0 0 10px rgb(144 0 0 / .12), 0 0 0 22px rgb(144 0 0 / .06); }
.map__pin .i { width: 26px; height: 26px; }
.map__label { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: rgb(255 255 255 / .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.map__label b { color: var(--maroon); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.form h3 { font-size: 1.6rem; color: var(--maroon); }
.form__hint { margin: 6px 0 24px; font-size: .88rem; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field label span { color: var(--maroon-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #D9CFC2; background: var(--white); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgb(240 176 0 / .35); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__err { font-size: .82rem; color: #B3261E; }
.form__status { margin-top: 12px; font-size: .9rem; color: var(--maroon); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; gap: 0; } .contact__actions .btn { flex: 1 1 auto; } }

/* =========================================================
   22. Footer
   ========================================================= */
.footer { position: relative; padding: clamp(56px, 7vw, 88px) 0 28px; background: var(--ink); color: rgb(255 255 255 / .7); font-size: .92rem; --focus: var(--gold-300); }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-300) 50%, var(--gold) 80%, transparent); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); }
.footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.footer__brand img { width: 96px; flex: none; }
.footer__name { font-family: var(--ff-display); font-size: 1.4rem; color: var(--white); }
.footer__place { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.footer__motto { margin-top: 12px; font-family: var(--ff-display); font-style: italic; font-size: 1.1rem; color: var(--gold-300); }
.footer__about { margin-top: 10px; font-size: .86rem; }
.footer h2 { margin-bottom: 16px; font-family: var(--ff-body); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--white); }
.footer__col ul { display: grid; gap: 8px; }
.footer a { color: rgb(255 255 255 / .75); text-decoration: none; }
.footer a:hover { color: var(--gold-300); }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact .i { margin-top: 4px; color: var(--gold-300); width: 16px; height: 16px; }
.social { display: flex !important; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .18); transition: background-color .25s, border-color .25s, color .25s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.social .i { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .84rem; }
.footer__top-link { display: inline-flex; align-items: center; gap: 6px; }
.footer__top-link .i { width: 14px; height: 14px; }
@media (max-width: 1000px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } .footer__brand img { width: 72px; } }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__sparks, .hero__glow { display: none; }
  .hero__bg { transform: none !important; }
  .hero__slide.is-active { animation: none; transform: none; }
}

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(360px, 52vh, 520px);
  margin-top: calc(-1 * var(--hh));
  padding: calc(var(--hh) + 56px) 0 clamp(48px, 6vw, 80px);
  color: var(--white); --focus: var(--gold-300);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--maroon-950); }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 12s ease-out forwards; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 0% 100%, rgb(240 176 0 / .22), transparent 60%),
    linear-gradient(90deg, rgb(40 2 2 / .9), rgb(80 4 4 / .65) 55%, rgb(80 4 4 / .35)),
    linear-gradient(0deg, rgb(30 2 2 / .6), transparent 50%);
}
.page-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); color: var(--white); max-width: 16ch; }
.page-hero__lede { max-width: 620px; margin-top: 16px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgb(255 255 255 / .85); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 18px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; color: var(--gold-300); }
.breadcrumb li + li::before { content: ""; width: 5px; height: 5px; background: rgb(255 255 255 / .6); transform: rotate(45deg); }
.breadcrumb a { color: rgb(255 255 255 / .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* Long-form editorial text */
.longform { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.longform + .longform { margin-top: clamp(56px, 7vw, 96px); }
.longform--flip > :first-child { order: 2; }
.longform__media { position: sticky; top: calc(var(--hh) + 24px); }
.longform__media .media { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.longform h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: 18px; }
.longform h3 { font-size: 1.4rem; color: var(--maroon); margin: 28px 0 10px; }
.longform .prose p { font-size: 1.02rem; }
.pull-quote { margin-top: 28px; padding: 24px 28px; border-radius: var(--r); background: var(--cream); border-left: 3px solid var(--gold); font-family: var(--ff-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
@media (max-width: 900px) {
  .longform { grid-template-columns: 1fr; }
  .longform--flip > :first-child { order: 0; }
  .longform__media { position: static; }
}

/* Timeline section (about page) */
.timeline-wrap { max-width: 820px; margin: 0 auto; }
.timeline-wrap .vtimeline__dot { box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px rgb(144 0 0 / .25); }
.timeline-wrap .vtimeline { gap: 40px; }
.timeline-wrap .vtimeline h4 { font-size: 1.45rem; }

/* Rule / information lists */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.section--alt .info-card { background: var(--white); }
.info-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.35rem; color: var(--maroon); }
.info-card h3 .i { color: var(--gold-600); }
.info-card > p { color: var(--muted); margin-bottom: 14px; }
.info-card--wide { grid-column: 1 / -1; }
.rules { display: grid; gap: 12px; counter-reset: rule; }
.rules li { position: relative; padding-left: 40px; color: var(--ink-2); font-size: .96rem; counter-increment: rule; }
.rules li::before {
  content: counter(rule); position: absolute; left: 0; top: 1px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgb(240 176 0 / .16); color: var(--maroon); font-size: .78rem; font-weight: 700;
}
.rules--dots li::before { content: ""; top: .6em; left: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.rules--cols { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rules--cols { grid-template-columns: 1fr; } }

/* Prayer / quote card */
.prayer {
  position: relative; max-width: 820px; margin: 0 auto; padding: clamp(32px, 5vw, 56px); text-align: center;
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.prayer__label { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.prayer blockquote { margin-top: 14px; font-family: var(--ff-display); font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.6; color: var(--ink); }
.prayer .i { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--gold-600); }

/* Facility cards (campus page) */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facility { overflow: hidden; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.facility:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.facility .media { aspect-ratio: 4 / 3; }
.facility .media img { transition: transform .7s var(--ease); }
.facility:hover .media img { transform: scale(1.06); }
.facility__body { padding: 22px 24px 26px; }
.facility__body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; color: var(--maroon); margin-bottom: 8px; }
.facility__body h3 .i { color: var(--gold-600); }
.facility__body p { color: var(--muted); font-size: .94rem; }
@media (max-width: 1000px) { .facility-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .facility-grid { grid-template-columns: 1fr; } }

/* Alumni grid (alumni page) */
.alumni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .alumni-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .alumni-grid { grid-template-columns: 1fr; } }

/* Numbered how-to steps (fee payment) */
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: how; }
.howto li { position: relative; padding: 52px 20px 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); counter-increment: how; }
.howto li::before { content: counter(how); position: absolute; left: 20px; top: 16px; font-family: var(--ff-display); font-size: 1.6rem; line-height: 1; color: var(--gold-600); }
@media (max-width: 1000px) { .howto { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .howto { grid-template-columns: 1fr; } }

/* Call-to-action band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: rgb(255 255 255 / .85); --focus: var(--gold-300);
  background: radial-gradient(60% 80% at 100% 0%, rgb(240 176 0 / .25), transparent 60%), linear-gradient(135deg, var(--maroon-600), var(--maroon-900));
}
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
.cta-band p { margin-top: 8px; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-section { padding-bottom: var(--section-y); }

/* Section "more" link (home page teasers) */
.more-link { display: flex; justify-content: center; margin-top: 40px; }
.section--maroon .more-link .btn--outline { color: var(--white); border-color: rgb(255 255 255 / .45); }
.section--maroon .more-link .btn--outline:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .page-hero__bg img { animation: none; } }

.more-link--start { justify-content: flex-start; margin-top: 0; }

/* =========================================================
   Motion layer: entrances, scroll effects and micro-interactions.
   All of it is disabled under prefers-reduced-motion (bottom).
   ========================================================= */

/* Smooth cross-fade between pages (Chromium browsers) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vtOut .25s ease both; }
  ::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
}
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* Header and ticker slide in on load */
.ticker { animation: slideDown .6s var(--ease) both; }
.site-header { animation: slideDown .7s .1s var(--ease) both; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

/* Scroll progress bar + back-to-top (injected by main.js) */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--orange-400));
  transform-origin: 0 50%; transform: scaleX(0);
}
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: var(--white); color: var(--maroon); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s, background-color .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--maroon); color: var(--white); }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 2.5; }
.to-top .ring .track { stroke: rgb(240 176 0 / .2); }
.to-top .ring .bar { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; }
.to-top .i { width: 18px; height: 18px; transform: rotate(-90deg); }
@media (max-width: 600px) { .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; } }

/* Reveal variants */
.js .reveal--left { transform: translateX(-44px); }
.js .reveal--right { transform: translateX(44px); }
.js .reveal--zoom { transform: scale(.92); }
.js .reveal--sm { transform: translateY(14px); transition-duration: .5s; }
.js .reveal.is-in { transform: none; }

/* Photos unveil with a soft clip wipe */
.js .reveal .media, .js .reveal.media { clip-path: inset(10% 8% 10% 8% round 18px); transition: clip-path 1.1s var(--ease); }
.js .reveal.is-in .media, .js .reveal.is-in.media { clip-path: inset(0 0 0 0 round 0); }
.js .reveal.is-done .media, .js .reveal.is-done.media { clip-path: none; }

/* Section heading ornaments draw in */
.js .section-head.reveal .eyebrow::before, .js .section-head.reveal .eyebrow::after { transition: width .8s .35s var(--ease); }
.js .section-head.reveal:not(.is-in) .eyebrow::before, .js .section-head.reveal:not(.is-in) .eyebrow::after { width: 0; }
.js .reveal .eyebrow .i { transition: transform .8s .2s var(--ease); }
.js .reveal:not(.is-in) .eyebrow .i { transform: rotate(-180deg) scale(0); }

/* Hero: motto shimmer, staggered entrance */
.hero__motto em, .motto-card__title em { background-size: 200% auto; animation: shimmer 6s linear infinite; }
.motto-card__title em { background-image: linear-gradient(120deg, #FFD65A, var(--gold) 40%, #FFF1B8 50%, var(--gold) 60%, var(--orange-400)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__motto em { background-image: linear-gradient(120deg, #FFD65A, var(--gold) 40%, #FFF1B8 50%, var(--gold) 60%, var(--orange-400)); }
@keyframes shimmer { to { background-position: -200% center; } }
.hero__eyebrow .line { transform-origin: left; animation: growX 1s .5s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } }

/* Page banners: gentle entrance */
.page-hero .breadcrumb, .page-hero h1, .page-hero__lede { animation: riseIn .8s var(--ease) both; }
.page-hero h1 { animation-delay: .12s; }
.page-hero__lede { animation-delay: .24s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } }
.page-hero__bg { will-change: transform; }

/* Timelines draw as they scroll into view */
.js .reveal .vtimeline::before, .js .reveal.vtimeline::before { transform-origin: top; transform: scaleY(0); transition: transform 1.6s .2s var(--ease); }
.js .reveal.is-in .vtimeline::before { transform: none; }
.js .reveal .vtimeline__dot { scale: 0; transition: scale .5s var(--ease); }
.js .reveal.is-in .vtimeline__dot { scale: 1; }
.js .reveal.is-in .vtimeline__item:nth-child(2) .vtimeline__dot { transition-delay: .35s; }
.js .reveal.is-in .vtimeline__item:nth-child(3) .vtimeline__dot { transition-delay: .65s; }
.js .reveal.is-in .vtimeline__item:nth-child(4) .vtimeline__dot { transition-delay: .95s; }
.js .reveal.is-in .vtimeline__item:nth-child(5) .vtimeline__dot { transition-delay: 1.25s; }
.js .milestones.reveal::before { transform-origin: left; transform: scaleX(0); transition: transform 1.4s .2s var(--ease); }
.js .milestones.reveal.is-in::before { transform: none; }
.js .milestones.reveal li::before { scale: 0; transition: scale .5s var(--ease); }
.js .milestones.reveal.is-in li::before { scale: 1; }
.js .milestones.reveal.is-in li:nth-child(2)::before { transition-delay: .4s; }
.js .milestones.reveal.is-in li:nth-child(3)::before { transition-delay: .75s; }
.js .milestones.reveal.is-in li:nth-child(4)::before { transition-delay: 1.1s; }
.milestones li::before { animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(240 176 0 / .45); } 70%, 100% { box-shadow: 0 0 0 12px rgb(240 176 0 / 0); } }

/* Result bars / podium */
.js .reveal .podium li { transition: transform .6s var(--ease), opacity .6s; }
.podium li:first-child .podium__pos { animation: pulse 2.6s ease-out infinite; }

/* Buttons: light sweep on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn--gold::after, .btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .45), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn--gold:hover::after, .btn--primary:hover::after { left: 120%; }

/* Motto card: flickering flame, swaying laurels */
.motto-card__flame .i { animation: flicker 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.08, 1.12) rotate(-3deg); } 60% { transform: scale(.96, 1.04) rotate(2deg); } }
.motto-card__flame { animation: glowPulse 3.2s ease-in-out infinite; }
@keyframes glowPulse { 50% { box-shadow: 0 0 60px rgb(240 176 0 / .55); } }
.motto-card__laurel--l { animation: sway 6s ease-in-out infinite; transform-origin: bottom right; }
.motto-card__laurel--r { animation: swayR 6s ease-in-out infinite; transform-origin: bottom left; }
@keyframes sway { 50% { transform: rotate(-4deg); } }
@keyframes swayR { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) rotate(-4deg); } }
.motto-card__stars .i { animation: twinkle 2.4s ease-in-out infinite; }
.motto-card__stars .i:nth-child(2) { animation-delay: .4s; }
.motto-card__stars .i:nth-child(3) { animation-delay: .8s; }
@keyframes twinkle { 50% { opacity: .45; transform: scale(.85); } }

/* Drifting star pattern in maroon sections */
.section--maroon::before { animation: drift 80s linear infinite; }
@keyframes drift { to { background-position: 240px 480px; } }

/* Icons nudge on hover */
.quick__item .quick__icon, .vm-card__icon, .partner-list .i, .contact__list .i, .club__list .i { transition: transform .4s var(--ease); }
.quick__item:hover .quick__icon { transform: translateY(-4px) rotate(-6deg); }
.vm-card:hover .vm-card__icon { transform: rotate(-8deg) scale(1.08); }
.partner-list li:hover .i, .club__list li:hover .i { transform: scale(1.12) rotate(-6deg); }
.values li:hover .i { animation: bounce .6s var(--ease); }
@keyframes bounce { 40% { transform: translateY(-5px); } }
.quick__item { transition: background-color .3s; }
.quick__item:hover { background: rgb(240 176 0 / .05); }

/* Hover lift for cards that had none */
.vm-card, .info-card, .adm-card:not(.adm-card--cta), .acad-extra__card { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.vm-card:hover, .info-card:hover, .adm-card:not(.adm-card--cta):hover, .acad-extra__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.chips li { transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.chips li:hover { transform: translateY(-2px); border-color: var(--gold); }

/* 3D tilt (desktop, set by main.js) */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Links: animated underline */
.link-arrow { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.footer__col a { background: linear-gradient(var(--gold-300), var(--gold-300)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .3s; }
.footer__col a:hover { background-size: 100% 1px; }

/* Ticker label bell already rings; add shine on NOTICES label */
.ticker__label { overflow: hidden; }
.ticker__label::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 40%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .35), transparent); transform: skewX(-20deg);
  animation: labelShine 5s ease-in-out infinite;
}
@keyframes labelShine { 0%, 70% { left: -50%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal .media, .js .reveal.media { clip-path: none !important; }
  .js .reveal .vtimeline::before, .js .milestones.reveal::before { transform: none !important; }
  .js .reveal .vtimeline__dot, .js .milestones.reveal li::before { scale: 1 !important; }
  .js .reveal:not(.is-in) .eyebrow .i { transform: none; }
  .js .section-head.reveal:not(.is-in) .eyebrow::before, .js .section-head.reveal:not(.is-in) .eyebrow::after { width: 28px; }
  .ticker, .site-header, .page-hero .breadcrumb, .page-hero h1, .page-hero__lede { animation: none; }
  .scroll-progress { display: none; }
}

.page-hero__bg { inset: -14% 0 0; }

/* =========================================================
   Our Principals (about page)
   ========================================================= */
.principal-current {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: clamp(24px, 4vw, 48px);
  max-width: 820px; margin: 0 auto clamp(48px, 6vw, 72px); padding: clamp(24px, 3.5vw, 36px);
  border-radius: 28px; color: rgb(255 255 255 / .85); --focus: var(--gold-300);
  background: radial-gradient(60% 80% at 100% 0%, rgb(240 176 0 / .25), transparent 60%), linear-gradient(135deg, var(--maroon-600), var(--maroon-900));
  box-shadow: var(--shadow-lg);
}
.principal-current::after { content: ""; position: absolute; right: -60px; bottom: -60px; z-index: -1; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgb(240 176 0 / .25); box-shadow: 0 0 0 30px rgb(240 176 0 / .05); }
.principal-current__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 4px rgb(240 176 0 / .6), 0 18px 40px -12px rgb(0 0 0 / .5);
  background: radial-gradient(70% 60% at 50% 30%, rgb(240 176 0 / .35), transparent 70%), linear-gradient(160deg, var(--maroon-800), var(--maroon-950));
}
.principal-current__photo img { width: 100%; height: 100%; object-fit: cover; }
.principal__mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 4rem; color: var(--gold-300); letter-spacing: .04em;
}
.principal-current__label { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.principal__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgb(240 176 0 / .6); animation: pulse 2.4s ease-out infinite; }
.principal-current h3 { margin: 10px 0 6px; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); color: var(--white); }
.principal-current .principal__years { font-size: 1.05rem; color: var(--gold-300); }
.principal-current__note { margin-top: 14px; max-width: 42ch; }

.principals__subhead { margin-bottom: 28px; text-align: center; font-size: 1.5rem; color: var(--maroon); }
.principal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.principal figure { display: grid; gap: 14px; }
.principal__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.principal__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s; filter: saturate(.92); }
.principal__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(60 4 4 / .35), transparent 40%); pointer-events: none; }
.principal__num {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-gold); color: var(--maroon-900); font-family: var(--ff-display); font-size: 1rem;
  box-shadow: 0 4px 12px rgb(0 0 0 / .25);
}
.principal:hover .principal__photo { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.principal:hover .principal__photo img { transform: scale(1.05); filter: saturate(1.05); }
.principal figcaption { display: grid; gap: 2px; text-align: center; }
.principal__name { font-family: var(--ff-display); font-size: 1.25rem; color: var(--ink); }
.principal__years { font-size: .88rem; font-weight: 600; letter-spacing: .06em; color: var(--maroon); }
.principal__tag { justify-self: center; margin-top: 6px; padding: 3px 10px; border-radius: 6px; background: rgb(240 176 0 / .16); color: var(--gold-ink); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 1000px) { .principal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .principal-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .principal__name { font-size: 1.05rem; }
  .principal-current { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .principal-current__photo { width: 200px; }
  .principal-current__note { margin-inline: auto; }
}

/* =========================================================
   Menu dropdown (About > About the School / Our Principals)
   ========================================================= */
.nav__item.has-sub { position: relative; display: flex; align-items: center; }
.nav__item.has-sub > .nav__link { padding-right: 2px; }
.nav__item.has-sub > .nav__link::after { right: 2px; }
.nav__subtoggle {
  display: grid; place-items: center; width: 22px; height: 30px; margin-right: 4px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: inherit; opacity: .85;
}
.nav__subtoggle .i { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.has-sub:hover .nav__subtoggle .i, .has-sub.is-open .nav__subtoggle .i { transform: rotate(180deg); }
.nav__sub {
  position: absolute; left: 0; top: 100%; z-index: 20; min-width: 230px;
  padding: 10px 0 0; /* invisible bridge so the menu stays open while the mouse moves down */
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.nav__sub::before {
  content: ""; position: absolute; inset: 10px 0 0; z-index: -1;
  background: var(--white); border-radius: 14px; border-top: 3px solid var(--gold);
  box-shadow: 0 24px 48px -16px rgb(40 4 4 / .35), 0 0 0 1px var(--line);
}
.has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub, .has-sub.is-open > .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__sub li { position: relative; }
.nav__sub li:first-child { padding-top: 8px; }
.nav__sub li:last-child { padding-bottom: 8px; }
.nav__sublink {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  color: var(--ink-2); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .2s, background-color .2s, padding-left .25s var(--ease);
}
.nav__sublink::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--gold); transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.nav__sublink:hover, .nav__sublink[aria-current] { color: var(--maroon); background: rgb(240 176 0 / .08); padding-left: 24px; }
.nav__sublink:hover::before, .nav__sublink[aria-current]::before { transform: rotate(45deg) scale(1); }

/* Phone / small-tablet menu: About opens as an accordion */
@media (max-width: 991px) {
  .nav__item.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav__item.has-sub > .nav__link { padding-right: 4px; }
  .nav__subtoggle {
    display: grid; width: 44px; height: 44px; margin: 0 -8px 0 0; border-radius: 10px;
    color: var(--maroon); opacity: 1;
  }
  .nav__subtoggle:hover { background: rgb(240 176 0 / .12); }
  .nav__subtoggle .i { width: 20px; height: 20px; }
  .has-sub:hover .nav__subtoggle .i { transform: none; }
  .has-sub.is-open .nav__subtoggle .i { transform: rotate(180deg); }
  .nav__sub {
    grid-column: 1 / -1; display: none; position: static; min-width: 0;
    margin: 0 0 12px; padding: 6px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line);
    opacity: 1; visibility: inherit; /* follow the menu panel: hidden when the menu is closed */ transform: none; transition: none;
  }
  .has-sub.is-open > .nav__sub { display: block; animation: fadeUp .3s var(--ease); }
  .nav__sub::before { display: none; }
  .nav__list .nav__sub li + li { border-top: 0; }
  .nav__sub li:first-child, .nav__sub li:last-child { padding: 0; }
  .nav__sublink { min-height: 44px; padding: 10px 14px; border-radius: 8px; font-size: .98rem; color: var(--ink-2); }
  .nav__sublink::before { transform: rotate(45deg) scale(1); background: rgb(240 176 0 / .55); }
  .nav__sublink:hover, .nav__sublink[aria-current] { padding-left: 14px; background: var(--white); color: var(--maroon); }
  .nav__sublink[aria-current] { font-weight: 600; }
  .nav__sublink[aria-current]::before { background: var(--gold); }
}

/* =========================================================
   Our Staff page
   ========================================================= */
.staff-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 40px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: var(--shadow-sm); }
.staff-stats li { display: grid; gap: 2px; padding: 22px 26px; text-align: center; }
.staff-stats li + li { border-left: 1px solid var(--line); }
.staff-stats b { font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); color: var(--maroon); line-height: 1.1; }
.staff-stats span { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.staff-group + .staff-group { margin-top: clamp(56px, 7vw, 88px); }
.staff-group[hidden] { display: none; }
.staff-group .section-head { margin-bottom: 28px; }
.staff-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 20px; }
.staff { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.staff:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgb(240 176 0 / .7); }
.staff__photo { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(70% 60% at 50% 30%, rgb(240 176 0 / .3), transparent 70%), linear-gradient(160deg, var(--maroon-800), var(--maroon-950)); }
.staff__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.staff:hover .staff__photo img { transform: scale(1.05); }
.staff__mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ff-display); font-size: 3rem; color: var(--gold-300); letter-spacing: .04em; }
.staff__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 16px 16px; text-align: center; }
.staff__name { font-size: 1.08rem; line-height: 1.25; }
.staff__role { justify-self: center; align-self: center; padding: 2px 10px; border-radius: 6px; background: rgb(240 176 0 / .16); color: var(--gold-ink); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.staff__qual { font-size: .84rem; line-height: 1.45; color: var(--ink-2); }
.staff__since { margin-top: auto; padding-top: 6px; font-size: .78rem; color: var(--muted); }
@media (max-width: 1200px) { .staff-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } .staff-stats { grid-template-columns: repeat(2, 1fr); } .staff-stats li:nth-child(3) { border-left: 0; } .staff-stats li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .staff__body { padding: 12px 10px 14px; } .staff__name { font-size: .98rem; } .staff__qual { font-size: .78rem; } }

/* =========================================================
   Student Life page
   ========================================================= */
.story--feature {
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start;
  padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.story--feature + .story--feature { margin-top: 32px; }
.story--flip { grid-template-columns: 1fr 260px; }
.story--flip .story__side { order: 2; }
.story__side { position: sticky; top: calc(var(--hh) + 24px); text-align: center; }
.story__photo { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold), var(--shadow); }
.story__photo img, .story__avatar img { width: 100%; height: 100%; object-fit: cover; }
.story__name { margin-top: 18px; font-family: var(--ff-display); font-size: 1.35rem; color: var(--ink); }
.story__meta { margin-top: 2px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--maroon); }
.story__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.story--feature h3 { margin: 8px 0 18px; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: var(--maroon); }
.story__pull { position: relative; margin-bottom: 20px; padding: 18px 22px 18px 56px; border-radius: var(--r); background: var(--cream); border-left: 3px solid var(--gold); font-family: var(--ff-display); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.story__pull::before { content: "\201C"; position: absolute; left: 16px; top: 4px; font-size: 3.4rem; line-height: 1; color: var(--gold); font-style: normal; }
.story__text p { font-size: 1rem; }
.story__more { margin-top: 1em; }
.story__more > summary {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  padding: 8px 16px; border-radius: 10px; border: 1px solid rgb(144 0 0 / .3); color: var(--maroon); font-weight: 600; font-size: .9rem;
  transition: background-color .25s, color .25s;
}
.story__more > summary::-webkit-details-marker { display: none; }
.story__more > summary:hover { background: var(--maroon); color: var(--white); }
.story__more > summary .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.story__more[open] > summary .i { transform: rotate(180deg); }
.story__close, .story__more[open] .story__open { display: none; }
.story__more[open] .story__close { display: inline; }
.story__more[open] > summary { margin-bottom: 1em; }
.story__more[open] > :not(summary) { animation: fadeUp .45s var(--ease); }
.story__more > p + p, .story__more .prose p + p { margin-top: 1em; }
.story__more > p { color: var(--muted); }

.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.moments li { padding: 26px 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.moments li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.moments .i { width: 44px; height: 44px; padding: 10px; margin-bottom: 14px; border-radius: 12px; background: rgb(240 176 0 / .16); color: var(--maroon); }
.moments h3 { font-size: 1.2rem; margin-bottom: 6px; }
.moments p { font-size: .92rem; color: var(--muted); }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.story--card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); transition: box-shadow .35s var(--ease); }
.story--card:hover { box-shadow: var(--shadow); }
.story__head { display: flex; align-items: center; gap: 14px; }
.story__avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--gold); }
.story__head .story__name { margin-top: 0; font-size: 1.2rem; }
.story--card h3 { font-size: 1.25rem; color: var(--maroon); }
.story--card .story__pull { margin-bottom: 0; font-size: 1.02rem; padding: 14px 16px 14px 44px; }
.story--card .story__pull::before { left: 12px; font-size: 2.6rem; }
.story--card .story__more { margin-top: 0; }
.story--card .prose { font-size: .94rem; }

@media (max-width: 1000px) { .moments { grid-template-columns: 1fr 1fr; } .story-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; } }
@media (max-width: 780px) {
  .story--feature, .story--flip { grid-template-columns: 1fr; }
  .story--flip .story__side { order: 0; }
  .story__side { position: static; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 0 18px; text-align: left; }
  .story__photo { grid-row: span 2; }
  .story__name { margin-top: 0; align-self: end; }
  .story__meta { align-self: start; }
}
@media (max-width: 520px) { .moments { grid-template-columns: 1fr; } }

/* even line breaks in headings (no lone last words) */
h1, h2, h3 { text-wrap: balance; }

/* ---- Voices From Class VII (testimonial cards) ---- */
.voice-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.voice {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
  background: var(--white); color: var(--ink-2);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.voice:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -30px rgb(0 0 0 / .65); }
.voice__photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; }
.voice__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .8s var(--ease); }
.voice:hover .voice__photo img { transform: scale(1.05); }
.voice__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(0deg, rgb(255 255 255 / .9), transparent); pointer-events: none; }
.voice__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 30px 28px; }
.voice__mark {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -30px; border-radius: 50%;
  background: var(--grad-gold); color: var(--maroon-900); font-family: var(--ff-display); font-size: 2.6rem; line-height: 1; padding-top: 16px;
  box-shadow: 0 0 0 6px var(--white), 0 10px 20px -8px rgb(0 0 0 / .35);
}
.voice__quote { flex: 1; margin: 18px 0 24px; font-family: var(--ff-display); font-style: italic; font-size: 1.22rem; line-height: 1.55; color: var(--ink); }
.voice__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.voice__name { font-family: var(--ff-display); font-size: 1.2rem; color: var(--maroon); line-height: 1.2; }
.voice__meta { margin-top: 2px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.voice__read {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgb(144 0 0 / .25); background: transparent; color: var(--maroon); font-size: .86rem; font-weight: 600;
  transition: background-color .25s, color .25s, border-color .25s;
}
.voice__read .i { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.voice__read:hover { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.voice__read:hover .i { transform: translateX(3px); }
.voices .section-head--light .section-head__lede { max-width: 620px; margin-inline: auto; }
@media (max-width: 1000px) { .voice-grid { grid-template-columns: 1fr 1fr; } .voice:last-child { grid-column: 1 / -1; max-width: 560px; justify-self: center; } }
@media (max-width: 640px) { .voice-grid { grid-template-columns: 1fr; } .voice:last-child { max-width: none; } .voice__body { padding: 0 22px 22px; } .voice__quote { font-size: 1.1rem; } }

/* Story pop-up */
.story-modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: var(--white); color: var(--ink-2); box-shadow: 0 40px 100px rgb(0 0 0 / .45); --focus: var(--maroon-600); }
.story-modal[open] { display: flex; flex-direction: column; animation: fadeUp .4s var(--ease); }
.story-modal::backdrop { background: rgb(30 4 4 / .7); backdrop-filter: blur(4px); }
.story-modal__close { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .15); color: var(--white); }
.story-modal__close:hover { background: var(--gold); color: var(--ink); }
.story-modal__head { display: flex; align-items: center; gap: 20px; padding: 28px 32px; background: radial-gradient(60% 90% at 100% 0%, rgb(240 176 0 / .25), transparent 60%), linear-gradient(135deg, var(--maroon-600), var(--maroon-900)); color: var(--white); }
.story-modal__photo { width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--gold); }
.story-modal__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.story-modal__name { font-family: var(--ff-display); font-size: 1.6rem; line-height: 1.2; }
.story-modal__meta { margin-top: 4px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); }
.story-modal__body { overflow-y: auto; padding: 28px 32px 34px; }
.story-modal__body p { color: var(--ink-2); font-size: 1.02rem; }
.story-modal__body p + p { margin-top: 1em; }
.story-modal__body .voice__kicker { margin-bottom: 16px; font-family: var(--ff-display); font-size: 1.45rem; color: var(--maroon); }
@media (max-width: 520px) { .story-modal__head { padding: 22px; } .story-modal__body { padding: 22px; } .story-modal__name { font-size: 1.3rem; } }

.voice__photo { aspect-ratio: 1 / 1; }
.voice__photo img { object-position: 50% 0; }
.story-modal__photo img { object-position: 50% 10%; }

/* Phone menu safety: when the menu panel is closed, nothing inside it may be visible or tappable,
   whatever state the About accordion is in (open, hovered or focused). */
@media (max-width: 991px) {
  .nav__item.has-sub:hover > .nav__sub,
  .nav__item.has-sub:focus-within > .nav__sub,
  .nav__item.has-sub.is-open > .nav__sub { visibility: inherit; opacity: 1; transform: none; }
  .site-header:not(.menu-open) .nav { pointer-events: none; }
  .site-header.menu-open .nav { pointer-events: auto; }
}

/* =========================================================
   Footer (redesign)
   ========================================================= */
.footer { padding: clamp(56px, 6vw, 80px) 0 0; font-size: .92rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr .85fr .85fr 1.2fr; gap: clamp(28px, 4vw, 64px); padding-bottom: 44px; }
.footer__brand { display: block; }
.footer__logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.footer__logo img { width: 72px; flex: none; }
.footer__logo > span { display: grid; gap: 4px; }
.footer .footer__name { font-family: var(--ff-display); font-size: 1.45rem; line-height: 1.15; color: var(--white); white-space: nowrap; }
.footer .footer__place { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); }
.footer .footer__motto { margin-top: 18px; font-size: 1.1rem; }
.footer .footer__about { max-width: 38ch; margin-top: 8px; font-size: .88rem; line-height: 1.65; color: rgb(255 255 255 / .6); }
.footer .social { margin-top: 20px; }
.footer h2 { position: relative; margin-bottom: 20px; padding-bottom: 12px; font-size: .74rem; letter-spacing: .18em; }
.footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
.footer__col ul { gap: 10px; }
.footer__col a { color: rgb(255 255 255 / .72); }
.footer__contact { gap: 14px !important; }
.footer__contact li { align-items: flex-start; line-height: 1.55; }
.footer__contact .i { flex: none; width: 34px; height: 34px; margin-top: 0; padding: 8px; border-radius: 10px; background: rgb(240 176 0 / .12); color: var(--gold-300); }
.footer__cta { margin-top: 22px; }

.footer__facts {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px;
  padding: 22px 0; border-top: 1px solid rgb(255 255 255 / .1);
}
.footer__facts li { display: grid; gap: 2px; font-size: .9rem; color: var(--white); }
.footer__facts span { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .45); }
.footer__facts a { color: var(--gold-300); text-decoration: none; }
.footer__facts a:hover { text-decoration: underline; }
.footer .footer__bottom { justify-content: center; margin-top: 0; padding: 20px 0 24px; text-align: center; font-size: .82rem; color: rgb(255 255 255 / .55); }
.footer__bottom a { color: var(--gold-300); }

@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 40px; align-items: start; }
  .footer__brand .footer__logo { grid-row: span 3; }
  .footer .footer__motto { margin-top: 0; }
  .footer__facts { justify-content: flex-start; gap: 16px 36px; }
}
@media (max-width: 700px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__brand { display: block; }
  .footer__top > .footer__col:last-child { grid-column: 1 / -1; }
  .footer__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .footer__facts li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 380px) { .footer .footer__name { font-size: 1.25rem; white-space: normal; } }

.footer__col a.btn { background: var(--btn-bg); background-size: auto; color: var(--ink); }
.footer__col a.btn:hover { color: var(--ink); }

/* Video gallery page: more videos grid */
.video-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.video-more .video[hidden] { display: none; }
.video-more .video__meta { padding: 0 4px; }
.video-more .video__title { color: var(--ink); font-size: 1.15rem; }
.video-more .video__cat { color: var(--gold-ink); }
@media (max-width: 1000px) { .video-more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .video-more { grid-template-columns: 1fr; } }

.video-more .video:not(.video--featured) { display: flex; flex-direction: column; gap: 14px; }
.video-more .video__play .media { aspect-ratio: 16 / 10; }
.video-more .video:not(.video--featured) .video__btn { width: 58px; height: 58px; box-shadow: 0 0 0 7px rgb(240 176 0 / .22), 0 14px 30px -8px rgb(0 0 0 / .6); }
.video-more .video:not(.video--featured) .video__btn .i { width: 22px; height: 22px; }
.video-more .video:not(.video--featured) .video__soon { display: none; left: 14px; top: 14px; font-size: .72rem; padding: 4px 10px; }
.video-more .video.is-pending .video__soon { display: block !important; }
.video-more .video:not(.video--featured) .video__play { border-radius: var(--r-lg); }
.video-more .video.is-pending:not(.video--featured) .video__cat::after { content: none; }

.video-more .video:not(.video--featured) { align-items: stretch; }
.video-more .video__meta { padding: 0 2px; text-align: left; }

/* Video Gallery page: featured videos shown as an even grid */
.videos-page .videos__grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; gap: 28px 22px; }
.videos-page .video--featured { grid-row: auto; }
.videos-page .video, .videos-page .video:not(.video--featured) { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.videos-page .video__play, .videos-page .video--featured .video__play { flex: none; border-radius: var(--r-lg); }
.videos-page .video__play .media, .videos-page .video--featured .video__play .media { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
.videos-page .video__btn, .videos-page .video--featured .video__btn,
.videos-page .video:not(.video--featured) .video__btn { width: 60px; height: 60px; box-shadow: 0 0 0 8px rgb(240 176 0 / .22), 0 14px 30px -8px rgb(0 0 0 / .6); }
.videos-page .video__btn .i, .videos-page .video:not(.video--featured) .video__btn .i { width: 22px; height: 22px; }
.videos-page .video__soon, .videos-page .video:not(.video--featured) .video__soon { left: 14px; top: 14px; font-size: .72rem; padding: 4px 10px; }
.videos-page .video.is-pending .video__soon { display: block !important; }
.videos-page .video.is-pending .video__cat::after { content: none !important; }
.videos-page .video__meta { text-align: left; }
.videos-page .video__title, .videos-page .video--featured .video__title { font-size: 1.15rem; }
@media (max-width: 1000px) { .videos-page .videos__grid { grid-template-columns: 1fr 1fr; } .videos-page .video--featured { grid-column: auto; } }
@media (max-width: 600px) { .videos-page .videos__grid { display: grid; grid-template-columns: 1fr; } }

/* =========================================================
   New wide logo (emblem + school name) — sized by height
   ========================================================= */
:root { --hh: 100px; }
.site-header .brand__logo { width: auto; height: 82px; max-height: calc(var(--hh) - 12px); }
.site-header .brand { height: auto; }
@media (min-width: 1200px) and (max-width: 1319px) {
  :root { --hh: 96px; }
  .site-header .brand__logo { width: auto; height: 76px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  :root { --hh: 132px; }
  .site-header .brand { height: 82px; }
  .site-header .brand__logo { height: 70px; }
}
@media (max-width: 991px) {
  :root { --hh: 80px; }
  .site-header .brand__logo { width: auto; height: 64px; }
}
@media (max-width: 767px) {
  :root { --hh: 72px; }
  .site-header .brand__logo { width: auto; height: 58px; }
}

/* white badge keeps the logo's navy/red lettering readable over the hero photo */
.site-header .brand__logo {
  box-sizing: border-box; height: 86px; padding: 6px 14px; border-radius: 16px;
  background: #fff; box-shadow: 0 10px 28px -12px rgb(0 0 0 / .45); filter: none;
}
.site-header.is-solid .brand__logo { box-shadow: none; transform: none; }
@media (min-width: 1200px) and (max-width: 1319px) { .site-header .brand__logo { height: 80px; padding: 5px 12px; } }
@media (min-width: 992px) and (max-width: 1199px) { .site-header .brand__logo { height: 74px; } }
@media (max-width: 991px) { .site-header .brand__logo { height: 66px; padding: 5px 10px; border-radius: 12px; } }
@media (max-width: 767px) { .site-header .brand__logo { height: 60px; padding: 4px 9px; } }

/* Logo: white-text version over the hero photo, original colours on the white header */
.site-header .brand__logo { padding: 0; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 2px 8px rgb(0 0 0 / .35)); }
.site-header .brand__logo--dark { display: none; }
.site-header.is-solid .brand__logo--light, .site-header.menu-open .brand__logo--light { display: none; }
.site-header.is-solid .brand__logo--dark, .site-header.menu-open .brand__logo--dark { display: block; filter: none; }
.site-header .brand__logo { height: 80px; }
@media (min-width: 1200px) and (max-width: 1319px) { .site-header .brand__logo { height: 74px; } }
@media (min-width: 992px) and (max-width: 1199px) { .site-header .brand__logo { height: 68px; } }
@media (max-width: 991px) { .site-header .brand__logo { height: 60px; } }
@media (max-width: 767px) { .site-header .brand__logo { height: 54px; } }

/* Larger logo */
:root { --hh: 118px; }
.site-header .brand__logo { height: 100px; max-height: none; }
@media (min-width: 1200px) and (max-width: 1319px) { :root { --hh: 130px; } .site-header .brand__logo { height: 115px; } }
@media (min-width: 992px) and (max-width: 1199px) { :root { --hh: 146px; } .site-header .brand { height: 96px; } .site-header .brand__logo { height: 82px; } }
@media (max-width: 991px) { :root { --hh: 88px; } .site-header .brand__logo { height: 72px; } }
@media (max-width: 767px) { :root { --hh: 80px; } .site-header .brand__logo { height: 64px; } }

/* =========================================================
   Header height: tighter at the top, slim once scrolled
   ========================================================= */
:root { --hh: 108px; }
@media (min-width: 1200px) and (max-width: 1319px) { :root { --hh: 122px; } }
@media (max-width: 991px) { :root { --hh: 80px; } }
@media (max-width: 767px) { :root { --hh: 72px; } }

.site-header { transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s, height .35s var(--ease), margin .35s var(--ease); }
.site-header .brand__logo { transition: height .35s var(--ease); }

/* Scrolled (white) header becomes a slim bar. margin-bottom keeps the page from jumping. */
@media (min-width: 1200px) {
  .site-header.is-solid { height: 80px; margin-bottom: calc(var(--hh) - 80px); }
  .site-header.is-solid .brand__logo { height: 64px; }
}
@media (max-width: 991px) {
  .site-header.is-solid:not(.menu-open) { height: 64px; margin-bottom: calc(var(--hh) - 64px); }
  .site-header.is-solid:not(.menu-open) .brand__logo { height: 52px; }
}
@media (max-width: 767px) { .site-header .brand__logo { height: 60px; } }
