/* =========================================================
   Our Lady's Higher Secondary School — site styles
   Palette drawn from the campus photo: fence teal, sunlit
   yellow walls, terracotta trim, leaf green — plus bright accents.
   ========================================================= */

:root {
  --ink: #102a3a;
  --teal: #0f8a7e;
  --teal-2: #14b8a6;
  --teal-deep: #0b4f4a;
  --sun: #ffb703;
  --sun-2: #ffd166;
  --coral: #f2542d;
  --berry: #e0357a;
  --violet: #7b4de0;
  --sky: #1f8fe5;
  --leaf: #4caf2e;

  --cream: #fff6e3;
  --paper: #fffcf6;
  --white: #ffffff;
  --text: #1b2b38;
  --muted: #5a6875;
  --line: rgba(16, 42, 58, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  --rainbow: linear-gradient(90deg, var(--teal-2), var(--sky), var(--violet), var(--berry), var(--coral), var(--sun));

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 26px 50px -28px rgba(16, 42, 58, 0.4);
  --gutter: clamp(16px, 4vw, 48px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
em { font-style: italic; }
::selection { background: var(--sun); color: var(--ink); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.dark { background: var(--ink); color: #e8f1f3; }
.muted { color: var(--muted); }
.dark .muted { color: #b3c6cc; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "opsz" 144;
}
.h2 em, .h3 em {
  font-weight: 500;
  background: linear-gradient(90deg, var(--coral), var(--berry));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 0 0 24px; letter-spacing: -0.01em; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 16px;
}
.kicker span {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--sans); font-style: normal; letter-spacing: 0; font-size: 0.72rem;
  color: #fff; background: linear-gradient(135deg, var(--coral), var(--berry));
}
.dark .kicker { color: var(--sun-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 99px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 700; margin: 0 0 22px;
}
.eyebrow--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255,183,3,.28); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,183,3,0); } }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head--split > p { max-width: 440px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 99px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 0.93rem; letter-spacing: 0.01em;
  transition: transform .5s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn svg { font-size: 1.1em; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--sun); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn--dark { --bg: var(--teal); }
.btn--dark:hover { color: var(--ink); }
.btn--gold { --bg: var(--sun); --fg: var(--ink); box-shadow: 0 14px 30px -14px rgba(255,183,3,.9); }
.btn--gold::after { background: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light::after { background: #fff; }
.btn--outline-light:hover { color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -1px); }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--rainbow); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px 0; transition: padding .4s var(--ease), transform .5s var(--ease); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1200px; width: calc(100% - 2 * var(--gutter));
  padding: 8px 10px 8px 16px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  box-shadow: 0 18px 40px -24px rgba(16,42,58,.45);
  transition: box-shadow .4s;
}
.nav.is-scrolled { padding: 10px 0; }
.nav.is-scrolled .nav__inner { box-shadow: 0 1px 0 var(--line), 0 20px 40px -22px rgba(16,42,58,.35); }
.nav.is-hidden { transform: translateY(-130%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__crest { width: 46px; height: 46px; color: var(--teal-deep); display: grid; place-items: center; }
.brand__crest svg { width: 100%; height: 100%; stroke: none; }
.brand__crest svg path[stroke] { fill: none; stroke: var(--sun); }
.brand__crest img { display: none; width: 100%; height: 100%; object-fit: contain; }
.brand__crest.has-logo img { display: block; }
.brand__crest.has-logo svg { display: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--teal-deep); }
.brand__text small { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--coral); font-weight: 800; }

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  position: relative; padding: 8px 14px; font-size: 0.9rem; font-weight: 600; border-radius: 99px;
  transition: background .3s, color .3s;
}
.nav__links a:hover { background: rgba(15,138,126,.1); color: var(--teal-deep); }
.nav__links a.is-active { background: var(--teal); color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.88rem; }
.nav__phone svg { color: var(--coral); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--teal); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
body.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 90; color: #fff;
  background: radial-gradient(circle at 90% 10%, rgba(224,53,122,.45), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255,183,3,.35), transparent 45%),
              var(--teal-deep);
  padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease); visibility: hidden;
}
body.menu-open .mmenu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mmenu nav { display: flex; flex-direction: column; }
.mmenu nav a {
  font-family: var(--serif); font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.3; display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line-light); padding: 6px 0;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease);
}
.mmenu nav a i { font-family: var(--sans); font-style: normal; font-size: 0.8rem; color: var(--sun); }
body.menu-open .mmenu nav a { opacity: 1; transform: none; }
body.menu-open .mmenu nav a:nth-child(2) { transition-delay: .05s; }
body.menu-open .mmenu nav a:nth-child(3) { transition-delay: .1s; }
body.menu-open .mmenu nav a:nth-child(4) { transition-delay: .15s; }
body.menu-open .mmenu nav a:nth-child(5) { transition-delay: .2s; }
body.menu-open .mmenu nav a:nth-child(6) { transition-delay: .25s; }
.mmenu__foot { color: #c5dcdc; font-size: 0.95rem; }
.mmenu__foot a { color: var(--sun); font-weight: 700; font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding: 130px 0 90px;
  display: flex; align-items: center; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #0d5c55 0%, var(--teal-deep) 45%, #12324a 100%);
}
.hero__blobs { position: absolute; inset: 0; pointer-events: none; }
.hero__blobs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero__blobs i:nth-child(1) { width: 420px; height: 420px; left: -140px; top: -120px; background: var(--sun); opacity: .35; }
.hero__blobs i:nth-child(2) { width: 360px; height: 360px; left: 22%; bottom: -160px; background: var(--berry); opacity: .45; }
.hero__blobs i:nth-child(3) { width: 260px; height: 260px; left: 30%; top: 18%; background: var(--sky); opacity: .3; }

/* Big campus photo on the right */
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 54%; margin: 0;
  padding: 0 0 14px 14px;
  border-radius: 0 0 0 220px;
  background: linear-gradient(180deg, var(--sun), var(--coral) 40%, var(--berry) 70%, var(--violet));
}
.hero__frame {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 0 0 0 206px; background: var(--teal-deep);
  clip-path: inset(0 0 0 100%); transition: clip-path 1.5s var(--ease) .15s;
}
.is-loaded .hero__frame { clip-path: inset(0 0 0 0); }
.hero__frame img {
  width: 100%; height: 112%; object-fit: cover; object-position: 38% 40%;
  transform: scale(1.2); transition: transform 2.2s var(--ease) .15s;
  filter: saturate(1.15) contrast(1.03);
}
.is-loaded .hero__frame img { transform: scale(1.05); }
.hero__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,79,74,.35), transparent 22%);
}
.hero__caption {
  position: absolute; right: 24px; bottom: 34px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 700;
  background: rgba(16,42,58,.6); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.hero__grid { position: relative; z-index: 1; }
.hero__copy { max-width: min(520px, 41vw); }

.hero__title {
  font-family: var(--serif); font-weight: 500; margin: 0 0 22px;
  font-size: clamp(2.3rem, 4.2vw, 3.7rem); line-height: 1.02; letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.hero__title .line:nth-child(4) > span { transition-delay: .24s; }
.is-loaded .hero__title .line > span { transform: none; }
.hero__title em { color: var(--sun); font-weight: 400; }
.hero__title .line:nth-child(4) em { color: #ff8fb8; }

.hero__lead { font-size: 1.05rem; max-width: 470px; color: #d3e7e5; margin: 0 0 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__meta { display: flex; gap: 8px; margin: 0; flex-wrap: wrap; }
.hero__meta > div { padding: 9px 14px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.hero__meta > div:nth-child(1) { border-top: 3px solid var(--sun); }
.hero__meta > div:nth-child(2) { border-top: 3px solid var(--berry); }
.hero__meta > div:nth-child(3) { border-top: 3px solid var(--teal-2); }
.hero__meta > div:nth-child(4) { border-top: 3px solid var(--violet); }
.hero__meta dt { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .14em; color: #a9cfcb; font-weight: 700; }
.hero__meta dd { margin: 2px 0 0; font-weight: 700; font-size: 0.9rem; }
.hero__meta a:hover { color: var(--sun); }

.badge-rotate {
  position: absolute; width: clamp(104px, 10vw, 136px); aspect-ratio: 1; left: -50px; top: 22%; z-index: 3;
  background: var(--sun); color: var(--ink); border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.18);
  opacity: 0; transform: scale(.6); transition: opacity .8s .9s, transform 1s var(--ease) .9s;
}
.is-loaded .badge-rotate { opacity: 1; transform: none; }
.badge-rotate svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; stroke: none; }
.badge-rotate text { fill: currentColor; font-family: var(--sans); font-size: 13.5px; font-weight: 800; letter-spacing: 2.4px; }
.badge-rotate__star { color: var(--berry); font-size: 1.7rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.glass {
  background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.45);
}
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; color: var(--ink);
  opacity: 0; transform: translateY(20px); transition: opacity .8s, transform 1s var(--ease);
}
.is-loaded .float-card { opacity: 1; transform: none; }
.float-card small { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.float-card strong { font-size: 0.9rem; }
.float-card--a { right: 32px; top: 120px; transition-delay: 1.1s; animation: bob 6s ease-in-out infinite 2s; }
.float-card--b { left: -34px; bottom: 16%; transition-delay: 1.25s; animation: bob 7s ease-in-out infinite 2.5s reverse; }
.float-card__icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--coral), var(--berry)); color: #fff; display: grid; place-items: center; font-size: 1.15rem; }
.float-card__num { height: 40px; padding: 0 10px; border-radius: 12px; background: linear-gradient(135deg, var(--teal-2), var(--sky)); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- Marquee ---------- */
.marquee { background: linear-gradient(90deg, var(--coral), var(--berry), var(--violet), var(--sky)); color: #fff; overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; align-items: center; gap: 30px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 400; font-style: italic; }
.marquee i { color: var(--sun-2); font-style: normal; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { background: radial-gradient(circle at 100% 0%, rgba(255,183,3,.14), transparent 40%), var(--paper); }
.statement {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.35; letter-spacing: -0.01em;
  margin: 0 0 clamp(48px, 7vw, 90px); max-width: 960px; color: var(--teal-deep);
}
.statement .w { opacity: 0.18; transition: opacity .25s; }
.statement .w.on { opacity: 1; }

.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__img {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--cream);
  box-shadow: 14px 14px 0 var(--sun), 28px 28px 0 rgba(15,138,126,.25);
}
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__text .h2 { margin-bottom: 20px; }
.about__text p { margin: 0 0 16px; font-size: 1rem; }
.about__text .link-arrow { margin-top: 8px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(56px, 8vw, 96px); }
.stat { padding: 22px 22px 20px; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); }
.stat:nth-child(1) { background: linear-gradient(135deg, var(--teal), var(--teal-2)); }
.stat:nth-child(2) { background: linear-gradient(135deg, var(--coral), #ff8a3d); }
.stat:nth-child(3) { background: linear-gradient(135deg, var(--berry), var(--violet)); }
.stat:nth-child(4) { background: linear-gradient(135deg, var(--sky), #4fc3f7); }
.stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 8px; font-size: 0.9rem; font-weight: 600; opacity: .92; }

/* ---------- Pillars ---------- */
.pillars { background: var(--cream); overflow: hidden; }
.pillars::before {
  content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,53,122,.14), transparent 65%);
}
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.pillar {
  --mx: 50%; --my: 50%; --c1: var(--teal); --c2: var(--teal-2);
  position: relative; padding: 26px 24px 28px; border-radius: var(--radius); min-height: 280px;
  background: linear-gradient(150deg, var(--c1), var(--c2)); color: #fff;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.pillar:nth-child(2) { --c1: #f59e0b; --c2: var(--sun-2); color: var(--ink); }
.pillar:nth-child(3) { --c1: var(--coral); --c2: var(--berry); }
.pillar:nth-child(4) { --c1: var(--violet); --c2: var(--sky); }
.pillar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255,255,255,.3), transparent 60%);
}
.pillar:hover { transform: translateY(-6px) rotate(-.5deg); }
.pillar:hover::before { opacity: 1; }
.pillar__no { font-family: var(--serif); font-style: italic; font-size: 0.95rem; opacity: .85; }
.pillar__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; margin: 22px 0 auto; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); }
.pillar h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.2; margin: 32px 0 8px; }
.pillar p { margin: 0; font-size: 0.93rem; opacity: .92; }

/* ---------- Academics ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  --accent: var(--teal);
  border-radius: var(--radius); padding: 24px; background: var(--white); border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile--feature {
  grid-column: span 2; grid-row: span 2; color: #fff; border: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,183,3,.45), transparent 40%),
    radial-gradient(circle at 10% 100%, rgba(224,53,122,.45), transparent 45%),
    linear-gradient(140deg, var(--teal-deep), var(--sky));
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 32px;
}
.tile--feature .tile__top { position: absolute; top: 28px; left: 32px; }
.tile--feature h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.015em; position: relative; }
.tile--feature h3 em { color: var(--sun); }
.tile--feature p { color: #dbeef2; margin: 0; max-width: 360px; position: relative; }
.tile__deco {
  position: absolute; right: -16px; top: 10px; font-family: var(--serif); font-weight: 700; font-size: 9rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.25); letter-spacing: -0.04em; pointer-events: none;
}
.chip { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
.chip--light { background: var(--sun); border-color: transparent; color: var(--ink); }

.group { display: flex; flex-direction: column; min-height: 190px; border-top: 5px solid var(--accent); }
.bento .group:nth-child(2) { --accent: var(--teal); }
.bento .group:nth-child(3) { --accent: var(--sky); }
.bento .group:nth-child(4) { --accent: var(--coral); }
.bento .group:nth-child(5) { --accent: var(--berry); }
.group__tag { align-self: flex-start; font-size: 0.7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 10px; border-radius: 8px; }
.group__tag--alt { color: #fff; }
.group h4 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; margin: 14px 0 12px; }
.pills { list-style: none; padding: 0; margin: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff); }
.group__for { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.tile--sslc { grid-column: span 4; display: grid; grid-template-columns: auto 1fr 2fr; align-items: center; gap: 24px; background: linear-gradient(110deg, #fff4d6, #ffe3ec 60%, #e3f2ff); border: 0; }
.tile--sslc h4 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 0; color: var(--teal-deep); }
.tile--sslc p { margin: 0; color: var(--muted); }

.facilities { margin-top: clamp(56px, 8vw, 96px); }
.facilities__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facility { --accent: var(--teal); padding: 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 9%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); }
.facility:nth-child(2) { --accent: var(--violet); }
.facility:nth-child(3) { --accent: var(--coral); }
.facility:nth-child(4) { --accent: var(--leaf); }
.facility span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 800; }
.facility h4 { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin: 14px 0 4px; }
.facility p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Campus gallery ---------- */
.campus { background: linear-gradient(180deg, #e8f7f4, #fff4e0); padding-bottom: clamp(70px, 9vw, 110px); }
.gallery-nav { display: flex; gap: 10px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 1.15rem; transition: background .3s, color .3s, transform .4s var(--ease); box-shadow: var(--shadow); }
.round-btn + .round-btn { background: var(--coral); }
.round-btn:hover { background: var(--sun); color: var(--ink); transform: scale(1.06); }
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 30px;
  scrollbar-width: none; cursor: grab; align-items: flex-end;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gallery.is-dragging * { pointer-events: none; user-select: none; }
.card-photo {
  --accent: var(--sun);
  flex: 0 0 auto; width: clamp(230px, 24vw, 310px); aspect-ratio: 4 / 4.4; margin: 0; border-radius: var(--radius);
  overflow: hidden; position: relative; scroll-snap-align: start; background: var(--teal-deep);
  border-bottom: 6px solid var(--accent); box-shadow: var(--shadow);
}
.card-photo:nth-child(4n+2) { --accent: var(--berry); }
.card-photo:nth-child(4n+3) { --accent: var(--teal-2); }
.card-photo:nth-child(4n+4) { --accent: var(--violet); }
.card-photo--tall { aspect-ratio: 4 / 5.4; }
.card-photo img, .card-photo .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-photo:hover img, .card-photo:hover .ph { transform: scale(1.06); }
.card-photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 56px 20px 18px; color: #fff; font-family: var(--serif); font-size: 1.15rem;
  background: linear-gradient(transparent, rgba(16,42,58,.85));
}
.card-photo figcaption span { display: inline-block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--accent); padding: 2px 8px; border-radius: 6px; font-weight: 800; margin-bottom: 6px; }
.card-photo:nth-child(4n+2) figcaption span, .card-photo:nth-child(4n+4) figcaption span { color: #fff; }

/* ---------- Placeholder for photos not yet added ---------- */
.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 20px; color: rgba(255,255,255,.8);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,183,3,.45), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(224,53,122,.45), transparent 55%),
    linear-gradient(140deg, var(--teal-deep), var(--sky));
  position: relative;
}
.ph::before {
  content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(255,255,255,.35); border-radius: calc(var(--radius) - 8px);
}
.arch .ph::before { border-radius: 999px 999px 20px 20px; }
.ph svg { font-size: 1.9rem; stroke-width: 1.4; color: var(--sun-2); }
.ph b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: #fff; }
.ph small { font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; }
.card-photo .ph { padding-bottom: 90px; }

/* ---------- Leadership messages ---------- */
.message {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,183,3,.22), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(224,53,122,.3), transparent 45%),
    linear-gradient(135deg, #2a1b5e, #173a63);
}
.arch { margin: 0; overflow: hidden; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); position: relative; background: var(--teal-deep); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--portrait { aspect-ratio: 3 / 4; max-width: 380px; width: 100%; box-shadow: 0 0 0 8px rgba(255,183,3,.9), 0 0 0 16px rgba(224,53,122,.5); }
.quote {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.35; letter-spacing: -0.01em;
  margin: 0 0 32px; color: #fff; position: relative;
}
.quote em { color: var(--sun-2); }
.signature { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 3px solid var(--sun); }
.signature strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: #fff; }
.signature span { color: #c3c8e6; font-size: 0.9rem; }

/* ---------- Admissions ---------- */
.admissions { background: radial-gradient(circle at 0% 100%, rgba(15,138,126,.12), transparent 40%), var(--paper); }
.steps { list-style: none; margin: 0 0 clamp(44px, 6vw, 70px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { --accent: var(--teal); padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.step:nth-child(2) { --accent: var(--sun); }
.step:nth-child(3) { --accent: var(--coral); }
.step:nth-child(4) { --accent: var(--violet); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::after { content: ""; position: absolute; top: 48px; right: -17px; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); }
.step:last-child::after { display: none; }
.step__no { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.85rem; box-shadow: 0 8px 18px -8px var(--accent); }
.step:nth-child(2) .step__no { color: var(--ink); }
.step h4 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 20px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(120deg, var(--coral), var(--berry) 45%, var(--violet));
  padding: clamp(30px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  box-shadow: 0 30px 60px -30px rgba(224,53,122,.7);
}
.cta-band__glow { position: absolute; width: 460px; height: 460px; right: -120px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,102,.6), transparent 65%); pointer-events: none; }
.cta-band h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.015em; }
.cta-band h3 em { color: var(--sun-2); }
.cta-band p { margin: 0; color: #ffe6ef; }
.cta-band .eyebrow { margin-bottom: 16px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* ---------- News ---------- */
.news { background: linear-gradient(180deg, #fff4e0, #fde8f0); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { --accent: var(--teal); background: #fff; border-radius: var(--radius); overflow: hidden; border-top: 5px solid var(--accent); box-shadow: 0 16px 36px -26px rgba(16,42,58,.5); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.news-card:nth-child(2) { --accent: var(--berry); }
.news-card:nth-child(3) { --accent: var(--sun); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__img img, .news-card__img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__img .ph::before { border-radius: 12px; }
.news-card__body { padding: 20px 22px 24px; }
.news-card time { display: inline-block; font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ink); background: color-mix(in srgb, var(--accent) 22%, #fff); padding: 3px 10px; border-radius: 99px; }
.news-card h4 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin: 12px 0 6px; }
.news-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(circle at 100% 0%, rgba(31,143,229,.12), transparent 40%), var(--paper); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact__info { display: grid; gap: 14px; }
.info-card { --accent: var(--teal); display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); }
.info-card:nth-child(2) { --accent: var(--coral); }
.info-card:nth-child(3) { --accent: var(--violet); }
.info-card__icon { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.2rem; }
.info-card small { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; margin-bottom: 4px; }
.info-card address { font-style: normal; font-weight: 600; margin-bottom: 12px; }
.info-card p { margin: 0; font-weight: 600; }
.big-link { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; color: var(--coral); transition: color .3s; }
.big-link:hover { color: var(--berry); }
.map { border-radius: var(--radius); overflow: hidden; height: 250px; border: 3px solid #fff; box-shadow: var(--shadow); background: var(--cream); }
.map iframe { width: 100%; height: 100%; border: 0; }

.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow); position: sticky; top: 100px; overflow: hidden; }
.form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--rainbow); }
.form h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--teal-deep); }
.form > .muted { margin: 0 0 24px; }
.field { position: relative; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #f4faf9;
  border: 1px solid var(--line); border-radius: 14px; padding: 24px 16px 10px; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6875' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); pointer-events: none; transition: transform .3s var(--ease), font-size .3s, color .3s; transform-origin: 0 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(15,138,126,.14); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label { transform: translateY(-10px) scale(.78); color: var(--teal); font-weight: 700; }
.field.is-invalid input, .field.is-invalid select { border-color: #d63a2f; }
.form .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(60px, 8vw, 100px) 0 28px; overflow: hidden; position: relative; background: linear-gradient(160deg, var(--teal-deep), #12324a); }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--rainbow); }
.footer__top { display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; padding-bottom: 44px; border-bottom: 1px solid var(--line-light); }
.footer__motto { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15; margin: 0 0 22px; color: #fff; max-width: 420px; letter-spacing: -0.015em; }
.footer__motto em { color: var(--sun); }
.footer__cols { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; }
.footer__cols h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--sun); margin: 0 0 14px; }
.footer__cols > div:nth-child(2) h5 { color: #ff8fb8; }
.footer__cols > div:nth-child(3) h5 { color: #6ee7d8; }
.footer__cols a, .footer__cols p { display: block; color: #cfe2e2; margin: 0 0 8px; transition: color .3s; }
.footer__cols a:hover { color: #fff; }
.footer__word {
  font-family: var(--serif); font-weight: 400; font-style: italic; text-align: center; white-space: nowrap;
  font-size: clamp(3rem, 12vw, 10rem); line-height: 1.05; letter-spacing: -0.04em; margin: 36px 0 18px;
  background: linear-gradient(90deg, rgba(255,183,3,.55), rgba(224,53,122,.5), rgba(20,184,166,.5));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: #9fbcbf; }
.to-top:hover { color: var(--sun); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; translate: -50% 0; max-width: calc(100% - 32px);
  background: var(--teal-deep); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow); font-size: 0.93rem;
  border-left: 5px solid var(--sun);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease);
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--d, 0s) + .2s); }
.hero .reveal:not(.in) { opacity: 0; }
.is-loaded .hero .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { min-height: 240px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--feature { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .tile--sslc { grid-column: span 2; grid-template-columns: 1fr; gap: 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .stats, .facilities__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; padding: 0 0 64px; min-height: 0; }
  .hero__photo { position: relative; width: 100%; height: 62vh; min-height: 360px; max-height: 560px; padding: 0 0 12px 0; border-radius: 0 0 0 90px; margin-bottom: 44px; }
  .hero__frame { border-radius: 0 0 0 80px; clip-path: inset(0 0 100% 0); }
  .is-loaded .hero__frame { clip-path: inset(0 0 0 0); }
  .hero__frame::after { background: linear-gradient(180deg, rgba(16,42,58,.25), transparent 30%); }
  .hero__copy { max-width: 560px; }
  .badge-rotate { left: auto; right: 18px; top: auto; bottom: -40px; width: 104px; }
  .float-card--a { right: auto; left: var(--gutter); top: auto; bottom: 64px; }
  .float-card--b { display: none; }
  .hero__caption { right: auto; left: var(--gutter); bottom: 26px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__img { margin-right: 28px; }
  .news__grid { grid-template-columns: 1fr; max-width: 560px; }
  .form { position: static; }
}

@media (max-width: 640px) {
  .nav { padding: 10px 0; }
  .nav__inner { width: calc(100% - 20px); padding: 6px 6px 6px 12px; }
  .nav__phone span, .nav__actions .btn { display: none; }
  .nav__phone { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); justify-content: center; font-size: 1.05rem; }
  .brand__text strong { font-size: 1rem; }
  .brand__text small { font-size: 0.56rem; }
  .hero__photo { height: 54vh; min-height: 320px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__meta > div { flex: 1 1 auto; }
  .float-card--a { display: none; }
  .pillars__grid, .bento, .steps { grid-template-columns: 1fr; }
  .tile--feature, .tile--sslc { grid-column: auto; }
  .tile__deco { font-size: 6.5rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .stats, .facilities__list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .statement .w { opacity: 1; }
}

.mail-link { display: block; margin-top: 4px; font-weight: 700; color: var(--teal); word-break: break-all; }
.mail-link:hover { color: var(--berry); }
.mmenu__foot a + br + a { font-size: 0.95rem; color: #fff; }

/* ---------- Photo gallery (event albums) ---------- */
.albums { background: radial-gradient(circle at 0% 0%, rgba(123,77,224,.12), transparent 40%), radial-gradient(circle at 100% 100%, rgba(255,183,3,.16), transparent 45%), var(--paper); }
.albums__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.album {
  --accent: var(--teal);
  position: relative; display: block; padding: 0; border: 0; text-align: left; color: #fff; font: inherit;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--teal-deep);
  box-shadow: 0 18px 36px -24px rgba(16,42,58,.6);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.album:nth-child(5n+2) { --accent: var(--coral); }
.album:nth-child(5n+3) { --accent: var(--violet); }
.album:nth-child(5n+4) { --accent: var(--sun); }
.album:nth-child(5n+5) { --accent: var(--berry); }
.album--lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.album:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -24px rgba(16,42,58,.7); }
.album__img, .album__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.album__img img { object-fit: cover; transition: transform 1.2s var(--ease); }
.album:hover .album__img img { transform: scale(1.07); }
.album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,30,44,.88)); pointer-events: none; }
.album::before { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--accent); z-index: 2; }
.album__count {
  position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 0.7rem; font-weight: 800; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.9); color: var(--ink);
}
.album__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.album__body time { font-size: 0.68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.album:nth-child(5n+2) .album__body time { color: #ff9a7a; }
.album:nth-child(5n+3) .album__body time { color: #c3a8ff; }
.album:nth-child(5n+5) .album__body time { color: #ff9cc4; }
.album:nth-child(5n+1) .album__body time { color: #6ee7d8; }
.album__body strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.album--lead .album__body { padding: 24px 26px 28px; }
.album--lead .album__body strong { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.albums__grid:not(.is-open) .album--more { display: none; }
.albums__more { display: flex; justify-content: center; margin-top: 32px; }

.news-card .link-arrow { margin-top: 14px; background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0 0 2px; font-size: 0.88rem; cursor: pointer; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: grid; grid-template-rows: auto 1fr; padding: 16px clamp(12px, 5vw, 80px) 24px;
  background: radial-gradient(circle at 10% 0%, rgba(15,138,126,.35), transparent 45%), radial-gradient(circle at 100% 100%, rgba(224,53,122,.3), transparent 45%), rgba(8,20,30,.96);
  color: #fff; opacity: 0; transition: opacity .35s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; }
.lightbox__title { margin: 0; display: flex; flex-direction: column; }
.lightbox__title strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.lightbox__title span { font-size: 0.8rem; color: var(--sun-2); font-weight: 700; letter-spacing: .06em; }
.lightbox__close { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.8rem; line-height: 1; flex: none; }
.lightbox__close:hover { background: var(--coral); }
.lightbox__stage { margin: 0; min-height: 0; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px -30px #000; }
.lightbox__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--sun); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 10px 30px -10px #000;
}
.lightbox__nav--prev { left: clamp(8px, 2vw, 20px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 20px); background: var(--coral); color: #fff; }
.lightbox__nav:hover { transform: scale(1.08); }
body.lb-open { overflow: hidden; }

@media (max-width: 1100px) {
  .albums__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .albums__grid { grid-template-columns: repeat(2, 1fr); }
  .album--lead { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .lightbox__nav { top: auto; bottom: 20px; translate: none; }
}
@media (max-width: 640px) {
  .albums__grid { gap: 10px; }
  .album { aspect-ratio: 4 / 4.4; }
  .album__body { padding: 10px 12px 14px; }
  .album__body strong { font-size: 0.9rem; }
  .album__body time { font-size: 0.6rem; }
  .album__count { top: 8px; right: 8px; font-size: 0.62rem; padding: 3px 8px; }
}

/* ---------- Leadership messages (Correspondent + Principal) ---------- */
.leader {
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.leader + .leader { margin-top: 24px; }
.leader--alt { grid-template-columns: 1fr minmax(220px, 320px); }
.leader--alt .leader__photo { order: 2; }
.leader__photo {
  margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--teal-deep);
  box-shadow: 0 0 0 6px var(--sun), 0 0 0 12px rgba(224,53,122,.6), 0 30px 60px -30px #000;
}
.leader--alt .leader__photo { box-shadow: 0 0 0 6px var(--teal-2), 0 0 0 12px rgba(123,77,224,.6), 0 30px 60px -30px #000; }
.leader__photo img, .leader__photo .ph { width: 100%; height: 100%; object-fit: cover; }
.leader__photo .ph::before { border-radius: 999px 999px 16px 16px; }
.leader__role {
  display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 99px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--sun); color: var(--ink);
}
.leader--alt .leader__role { background: var(--teal-2); }
.leader .quote { margin-bottom: 24px; }
.leader--alt .signature { border-left-color: var(--teal-2); }
.message .section-head .h2 { color: #fff; }
.message .h2 em { background: linear-gradient(90deg, var(--sun), #ff8fb8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Photos on pillar cards & academics tile ---------- */
.pillar__photo { margin: -26px -24px 0; height: 150px; overflow: hidden; position: relative; }
.pillar__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--c1)); }
.pillar__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pillar:hover .pillar__photo img { transform: scale(1.06); }
.pillar__photo + .pillar__no { position: absolute; top: 12px; left: 16px; z-index: 1; color: #fff; background: rgba(0,0,0,.35); padding: 2px 10px; border-radius: 99px; opacity: 1; }
.pillar__photo ~ .pillar__icon { margin-top: -26px; position: relative; z-index: 1; background: var(--c1); border-color: rgba(255,255,255,.6); }
.pillar__photo ~ h3 { margin-top: 18px; }
.tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; mix-blend-mode: luminosity; }
.tile--feature > *:not(.tile__bg) { position: relative; }
.tile--feature .tile__top { position: absolute; }
.tile--feature .tile__deco { position: absolute; }

/* ---------- Sports meet highlight band ---------- */
.highlight { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; padding: 80px 0; color: #fff; }
.highlight__bg { position: absolute; inset: -10% 0 auto; width: 100%; height: 120%; object-fit: cover; }
.highlight::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(123,77,224,.92) 0%, rgba(224,53,122,.75) 38%, rgba(242,84,45,.15) 70%, transparent);
}
.highlight__inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.highlight__card { max-width: 480px; }
.highlight h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.015em; }
.highlight h2 em { color: var(--sun); }
.highlight p { margin: 0 0 24px; color: #ffe9f1; }
.highlight__thumbs { display: flex; gap: 12px; }
.highlight__thumbs img { width: 130px; height: 150px; object-fit: cover; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); }
.highlight__thumbs img:nth-child(1) { rotate: -5deg; }
.highlight__thumbs img:nth-child(2) { rotate: 3deg; translate: 0 -18px; }
.highlight__thumbs img:nth-child(3) { rotate: -2deg; }

/* ---------- Footer logo ---------- */
.footer__logo { width: 96px; height: 96px; border-radius: 50%; background: #fff; padding: 4px; margin-bottom: 18px; box-shadow: 0 0 0 4px var(--sun); }

@media (max-width: 900px) {
  .leader, .leader--alt { grid-template-columns: 1fr; text-align: left; }
  .leader__photo, .leader--alt .leader__photo { order: 0; max-width: 280px; width: 100%; margin: 0 auto; }
  .highlight__thumbs { display: none; }
  .highlight::before { background: linear-gradient(180deg, rgba(123,77,224,.55), rgba(224,53,122,.88) 65%); }
  .highlight { min-height: 480px; align-items: flex-end; }
}

/* Long leader message: heading, readable paragraphs, expandable rest */
.leader { align-items: start; }
.leader__photo { position: sticky; top: 110px; }
.leader__photo img { object-position: 50% 60%; }
.leader__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; margin: 0 0 16px; color: #fff; }
.leader__title em { color: var(--sun); }
.leader__text p { margin: 0 0 14px; color: #dfe3f5; font-size: 1rem; line-height: 1.75; }
.leader__text strong { color: #fff; }
.leader__more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 16px;
  padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: 0.88rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; transition: background .3s;
}
.leader__more summary::-webkit-details-marker { display: none; }
.leader__more summary::after { content: "+"; font-size: 1.1rem; line-height: 1; color: var(--sun); }
.leader__more[open] summary::after { content: "–"; }
.leader__more summary:hover { background: rgba(255,255,255,.2); }
.leader__more .more-close, .leader__more[open] .more-open { display: none; }
.leader__more[open] .more-close { display: inline; }
.leader__key { font-family: var(--serif); font-style: italic; font-size: 1.2rem !important; color: var(--sun-2) !important; margin: 6px 0 20px !important; }
.signature__note { font-style: italic; color: #c3c8e6; }
@media (max-width: 900px) { .leader__photo { position: static; } }

/* ---------- Find Us: jump target + highlighted menu link ---------- */
#location { scroll-margin-top: 92px; }
#location .map { height: 220px; }
.section[id] { scroll-margin-top: 70px; }
.nav__links a.nav__find { display: inline-flex; align-items: center; gap: 6px; }
.nav__links a.nav__find::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
a.float-card { cursor: pointer; }
a.float-card:hover { box-shadow: 0 0 0 3px var(--sun), 0 20px 40px -18px rgba(0,0,0,.45); }
a.float-card:hover .float-card__icon { transform: scale(1.08); }
.float-card__icon { transition: transform .3s var(--ease); }
/* brief glow on the address + map when reached via Find Us */
#location:target .info-card:first-child, #location:target .map { animation: findGlow 2.2s var(--ease) 1; }
@keyframes findGlow { 0%, 60% { box-shadow: 0 0 0 4px var(--sun), var(--shadow); } 100% { box-shadow: var(--shadow); } }
.nav__links a, .nav__phone { white-space: nowrap; }
@media (max-width: 1360px) and (min-width: 1181px) {
  .nav__links a { padding: 8px 10px; font-size: 0.86rem; }
  .nav__phone span { display: none; }
  .nav__phone { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); justify-content: center; font-size: 1rem; }
}
@media (max-width: 1240px) { .nav__md-long { display: none; } }
@media (max-width: 1260px) and (min-width: 1181px) {
  .brand__text small { display: none; }
  .nav__links a { padding: 8px 8px; }
}

/* =========================================================
   Mandatory Disclosure page
   ========================================================= */
.md-hero {
  position: relative; overflow: hidden; color: #fff; padding: 150px 0 70px;
  background: linear-gradient(140deg, var(--violet), var(--berry) 55%, var(--coral));
}
.md-hero__inner { position: relative; z-index: 1; }
.md-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.02em; }
.md-hero h1 em { color: var(--sun); }
.md-hero__lead { max-width: 620px; margin: 0 0 30px; color: #ffe9f1; font-size: 1.05rem; }
.md-jumps { display: flex; flex-wrap: wrap; gap: 10px; }
.md-jump {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-weight: 700; font-size: 0.88rem;
  transition: background .3s, transform .3s var(--ease);
}
.md-jump b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c, var(--teal)); color: #fff; font-size: 0.8rem; }
.md-jump:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }
.md-jump--teal, .md-block--teal { --c: var(--teal); }
.md-jump--coral, .md-block--coral { --c: var(--coral); }
.md-jump--violet, .md-block--violet { --c: var(--violet); }
.md-jump--sun, .md-block--sun { --c: #e69a00; }
.md-jump--sky, .md-block--sky { --c: var(--sky); }

.md-body { background: radial-gradient(circle at 100% 0%, rgba(255,183,3,.12), transparent 40%), var(--paper); padding-top: clamp(40px, 6vw, 72px); }
.md-block {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px;
  border: 1px solid var(--line); border-top: 6px solid var(--c); box-shadow: 0 18px 40px -30px rgba(16,42,58,.5);
  scroll-margin-top: 100px;
}
.md-block__head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; background: color-mix(in srgb, var(--c) 8%, #fff); }
.md-block__letter { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--c); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; flex: none; }
.md-block__head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--teal-deep); }

.md-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.md-table thead th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.md-table tbody th, .md-table td { text-align: left; vertical-align: top; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.md-table tbody tr:last-child > * { border-bottom: 0; }
.md-table tbody tr:nth-child(even) { background: #fcfaf5; }
.md-table tbody th { font-weight: 600; width: 55%; }
.md-table .md-no { width: 64px; color: var(--c); font-weight: 800; }
.md-table td a { color: var(--teal); font-weight: 700; }
.md-tbu, .md-doc {
  display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px;
}
.md-tbu { background: #fff4d6; color: #8a5a00; }
.md-doc { background: color-mix(in srgb, var(--teal) 14%, #fff); color: var(--teal-deep) !important; }
.md-doc--pending { background: #f1eefb; color: #5b3fb0 !important; }
.md-note { margin: 34px 0 0; padding: 18px 22px; border-radius: var(--radius); background: #fff; border-left: 5px solid var(--sun); color: var(--muted); }
.md-note a { color: var(--coral); font-weight: 700; }

@media (max-width: 700px) {
  .md-hero { padding: 120px 0 50px; }
  .md-table thead { display: none; }
  .md-table, .md-table tbody, .md-table tr, .md-table th, .md-table td { display: block; width: 100%; }
  .md-table tbody tr { position: relative; padding: 14px 18px 14px 58px; border-bottom: 1px solid var(--line); }
  .md-table tbody th, .md-table td { padding: 0; border: 0; }
  .md-table tbody th { width: 100%; margin-bottom: 6px; }
  .md-table .md-no { position: absolute; left: 18px; top: 14px; width: auto; }
  .md-block__head { padding: 16px 18px; }
}
.brand__text strong, .brand__text small { white-space: nowrap; }
@media (max-width: 1499px) and (min-width: 1181px) {
  .nav__phone span { display: none; }
  .nav__phone { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); justify-content: center; font-size: 1rem; }
}
.nav__inner { max-width: 1440px; }
@media (max-width: 1580px) and (min-width: 1181px) { .nav__links a { padding: 8px 11px; } }
@media (max-width: 1300px) and (min-width: 1181px) { .nav__links a { padding: 8px 7px; font-size: 0.84rem; } .nav__links { gap: 0; } }

/* =========================================================
   Full-size banner: the whole entrance photo, text over it
   ========================================================= */
.hero {
  min-height: 0; aspect-ratio: 3 / 2; padding: 0; align-items: flex-end;
  background: var(--teal-deep);
}
.hero__blobs { display: none; }
.hero__photo { position: absolute; inset: 0; width: auto; margin: 0; padding: 0; border-radius: 0; background: none; }
.hero__frame { border-radius: 0; clip-path: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.is-loaded .hero__frame { clip-path: none; opacity: 1; }
.hero__frame img, .is-loaded .hero__frame img { height: 100%; transform: none; object-position: 50% 50%; filter: saturate(1.12) contrast(1.03); }
.hero__frame::after {
  background:
    linear-gradient(0deg, rgba(6,34,38,.94) 0%, rgba(6,34,38,.72) 26%, rgba(6,34,38,.18) 50%, transparent 62%),
    linear-gradient(90deg, rgba(6,34,38,.5), transparent 50%),
    linear-gradient(180deg, rgba(6,34,38,.45), transparent 18%);
}
.hero__caption { display: none; }
.hero__grid { width: 100%; padding-top: 130px; padding-bottom: clamp(36px, 5vw, 72px); }
.hero__copy { max-width: 860px; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: center; }
.hero__copy > .eyebrow, .hero__copy > .hero__title, .hero__copy > .hero__lead { grid-column: 1 / -1; justify-self: start; }
.hero__title { font-size: clamp(2.2rem, 4.2vw, 3.8rem); margin-bottom: 16px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__title .line { display: inline-block; margin-right: .24em; }
.hero__lead { max-width: 620px; color: #e6f2f0; margin-bottom: 26px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero__cta { margin-bottom: 0; }
.hero__meta > div { background: rgba(6,34,38,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge-rotate { left: auto; right: clamp(24px, 5vw, 80px); top: 38%; }
.float-card--a { right: clamp(24px, 3vw, 48px); top: 120px; left: auto; bottom: auto; }
.float-card--b { right: clamp(24px, 3vw, 48px); left: auto; bottom: clamp(30px, 5vw, 70px); }

@media (max-width: 1100px) {
  .hero__copy { grid-template-columns: 1fr; }
  .hero__cta { margin-bottom: 20px; }
  .float-card--b { display: none; }
}
@media (max-width: 900px) {
  .hero { aspect-ratio: auto; min-height: 100vh; min-height: 100svh; padding: 0; flex-direction: row; align-items: flex-end; }
  .hero__photo { position: absolute; inset: 0; width: auto; height: auto; min-height: 0; max-height: none; margin: 0; padding: 0; border-radius: 0; }
  .hero__frame { border-radius: 0; clip-path: none; }
  .is-loaded .hero__frame { clip-path: none; }
  .hero__frame img { object-position: 44% 50%; }
  .hero__frame::after { background: linear-gradient(0deg, rgba(6,34,38,.96) 0%, rgba(6,34,38,.82) 42%, rgba(6,34,38,.2) 66%, rgba(6,34,38,.35) 100%); }
  .badge-rotate { right: 16px; top: 92px; bottom: auto; width: 92px; }
  .float-card--a { display: none; }
  .hero__grid { padding-top: 40vh; padding-bottom: 40px; }
}

/* ---------- About: dropdown in the top menu ---------- */
.nav__drop { position: relative; display: flex; }
.nav__drop-toggle { display: inline-flex !important; align-items: center; gap: 4px; }
.nav__drop-toggle svg { font-size: .85em; transition: transform .3s var(--ease); }
.nav__drop:hover .nav__drop-toggle svg, .nav__drop:focus-within .nav__drop-toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: -10px; min-width: 270px; z-index: 5;
  display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px; background: #fff;
  border-top: 4px solid var(--sun); box-shadow: 0 24px 50px -20px rgba(16,42,58,.45);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__links .nav__menu a { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; border-radius: 12px; white-space: normal; font-size: 0.9rem; }
.nav__links .nav__menu a small { color: var(--muted); font-size: 0.74rem; font-weight: 500; }
.nav__links .nav__menu a:hover, .nav__links .nav__menu a:focus-visible { background: rgba(15,138,126,.1); color: var(--teal-deep); }
.nav__links .nav__menu a.is-active { background: rgba(15,138,126,.12); color: var(--teal-deep); }
.nav__drop:has(.nav__menu a.is-active) .nav__drop-toggle { background: var(--teal); color: #fff; }

/* mobile menu: About sub-links, and room for all items */
.mmenu { overflow-y: auto; }
.mmenu nav a { font-size: clamp(1.35rem, 5.6vw, 2rem); }
.mmenu__sub { display: flex; flex-direction: column; padding: 4px 0 10px 34px; border-bottom: 1px solid var(--line-light); }
.mmenu nav .mmenu__sub a { font-family: var(--sans); font-size: 0.98rem; border: 0; padding: 5px 0; color: #cfe6e4; }
.mmenu nav .mmenu__sub a::before { content: "›"; color: var(--sun); margin-right: 8px; }

/* ---------- Learning spaces with photos ---------- */
.facilities__list { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.facility { margin: 0; padding: 0; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff); border-bottom: 5px solid var(--accent); box-shadow: 0 16px 36px -26px rgba(16,42,58,.5); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.facility:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.facility:nth-child(4) { --accent: var(--sky); }
.facility:nth-child(5) { --accent: var(--berry); }
.facility:nth-child(6) { --accent: var(--leaf); }
.facility__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-deep); }
.facility__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.facility:hover .facility__img img { transform: scale(1.06); }
.facility figcaption { position: relative; padding: 26px 20px 20px; }
.facility figcaption span { position: absolute; top: -18px; left: 18px; border: 3px solid #fff; width: 38px; height: 38px; }
.facility h4 { margin-top: 2px; }

/* ---------- About: panorama strip ---------- */
.about__pano { position: relative; margin: clamp(48px, 7vw, 80px) 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 2400 / 823; background: var(--teal-deep); box-shadow: var(--shadow); }
.about__pano img { width: 100%; height: 100%; object-fit: cover; }
.about__pano figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 99px; font-size: 0.8rem; font-weight: 700; color: #fff; background: rgba(16,42,58,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.about__pano + .stats { margin-top: 28px; }

/* ---------- Admissions band: campus photo behind the gradient ---------- */
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; mix-blend-mode: luminosity; pointer-events: none; }
.cta-band > div:not(.cta-band__glow) { position: relative; }

@media (max-width: 1180px) { .facilities__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .facilities__list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .facility figcaption { padding: 22px 12px 14px; }
  .facility h4 { font-size: 0.98rem; }
  .facility p { font-size: 0.82rem; }
  .about__pano { aspect-ratio: 16 / 9; }
}
/* Phones/tablets: photo on top (school sign kept clear), text overlaps only its lower edge */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; aspect-ratio: auto; }
  .hero__photo { position: absolute; top: 0; left: 0; right: 0; bottom: auto; height: min(118vw, 640px); }
  .hero__frame img { object-position: 44% 50%; }
  .hero__frame::after { background: linear-gradient(0deg, var(--teal-deep) 0%, rgba(11,79,74,.75) 22%, rgba(11,79,74,0) 48%), linear-gradient(180deg, rgba(6,34,38,.4), transparent 22%); }
  .hero__grid { position: relative; padding-top: calc(min(118vw, 640px) - 150px); padding-bottom: 48px; }
  .badge-rotate { top: auto; bottom: auto; top: calc(min(118vw, 640px) - 250px); right: 14px; width: 88px; }
}

/* Menu ends with "Find Us": no empty action area on desktop, balanced edge spacing */
@media (min-width: 1181px) {
  .nav__actions { display: none; }
  .nav__inner { padding-right: 8px; }
}

/* ---------- Footer: logo block + four even columns ---------- */
.footer__top { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3.4fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__motto { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 20px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.footer__cols > div:nth-child(4) h5 { color: #c3a8ff; }
.footer__cols a, .footer__cols p { overflow-wrap: anywhere; line-height: 1.55; }
.footer__cols p + p { margin-top: 12px; }

@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
  .footer__logo, .footer__motto { margin: 0; }
  .footer__brand .btn { margin-left: auto; }
}
@media (max-width: 760px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .footer__brand .btn { margin-left: 0; }
}
@media (max-width: 380px) {
  .footer__cols { grid-template-columns: 1fr; }
}
.footer__cols a[href^="mailto"] { overflow-wrap: normal; }
@media (max-width: 760px) { .footer__cols a[href^="mailto"] { font-size: 0.88rem; } }

/* ---------- Principal: big, wide photo on top, message below ---------- */
.leader--feature { grid-template-columns: 1fr; gap: 28px; }
.leader__photo--wide {
  position: relative; top: auto; aspect-ratio: 16 / 9; border-radius: 26px; max-width: none; width: 100%;
  box-shadow: 0 0 0 6px var(--teal-2), 0 0 0 12px rgba(123,77,224,.55), 0 30px 60px -30px #000;
}
.leader__photo--wide img { object-position: 50% 40%; }
.leader__photo--wide figcaption {
  position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 20px; border-radius: 16px; background: rgba(11,79,74,.82); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-left: 4px solid var(--sun);
}
.leader__photo--wide figcaption strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.leader__photo--wide figcaption span { font-size: 0.8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-2); }
.leader--feature .leader__role { background: var(--teal-2); }
.leader--feature .signature { border-left-color: var(--teal-2); }
.leader__place { margin: -8px 0 18px; font-size: 0.8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fd9d1; }
.leader--feature .leader__body { max-width: 860px; }
@media (max-width: 900px) {
  .leader__photo--wide { max-width: none; }
  .leader__photo--wide figcaption { left: 12px; bottom: 12px; padding: 8px 14px; }
  .leader__photo--wide figcaption strong { font-size: 1rem; }
}
@media (max-width: 640px) {
  .leader__photo--wide { aspect-ratio: 4 / 3.4; }
  .leader__photo--wide img { object-position: 50% 45%; }
  .leader__photo--wide figcaption { left: 0; right: 0; bottom: 0; border-radius: 0; border-left: 0; border-top: 3px solid var(--sun); flex-direction: row; align-items: baseline; justify-content: center; gap: 10px; padding: 8px 12px; }
}

/* ---------- About: heritage text beside the photo + milestones ---------- */
.about__grid { align-items: start; }
.about__img { position: sticky; top: 110px; }
.about__text p { line-height: 1.75; }
.milestones { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.milestones::before { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 4px; border-radius: 4px; background: var(--rainbow); opacity: .5; }
.milestones li { --c: var(--teal); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.milestones li:nth-child(2) { --c: var(--coral); }
.milestones li:nth-child(3) { --c: var(--violet); }
.milestones b {
  display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 14px; border-radius: 99px;
  background: var(--c); color: #fff; font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  box-shadow: 0 0 0 6px var(--paper), 0 14px 30px -14px var(--c);
}
.milestones span { max-width: 240px; font-weight: 600; font-size: 0.95rem; color: var(--teal-deep); }
@media (max-width: 900px) {
  .about__img { position: static; }
}
@media (max-width: 640px) {
  .milestones { grid-template-columns: 1fr; gap: 14px; }
  .milestones::before { left: 28px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; background: linear-gradient(var(--teal), var(--coral), var(--violet)); }
  .milestones li { flex-direction: row; text-align: left; gap: 14px; }
  .milestones b { min-width: 58px; font-size: 1rem; }
}

/* ---------- YouTube: nav button, gallery band, contact card, footer ---------- */
.i-play { fill: currentColor; stroke: none; }
.btn:hover .i-play { transform: none; }
.yt-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #e62117; color: #fff; font-size: 1.3rem; transition: transform .4s var(--ease), background .3s;
  box-shadow: 0 10px 22px -12px rgba(230,33,23,.9);
}
.yt-btn svg { fill: currentColor; stroke: none; }
.yt-btn .yt-play { fill: #e62117; transition: fill .3s; }
.yt-btn:hover { transform: scale(1.08); background: var(--ink); }
.yt-btn:hover .yt-play { fill: var(--ink); }
@media (min-width: 1181px) {
  .nav__actions { display: flex; }
  .nav__inner { padding-right: 14px; }
  .yt-btn { width: 40px; height: 40px; font-size: 1.15rem; }
}
@media (max-width: 1300px) and (min-width: 1181px) {
  .nav__actions { display: none; }
  .nav__inner { padding-right: 8px; }
}
.mmenu__yt { display: inline-block; margin-top: 10px; font-size: 1rem !important; }

.highlight__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.yt-band {
  position: relative; overflow: hidden; margin-top: clamp(48px, 7vw, 80px); padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
  background: radial-gradient(circle at 0% 0%, rgba(255,183,3,.28), transparent 45%), linear-gradient(135deg, #b3120c, #e62117 45%, var(--berry));
  box-shadow: 0 30px 60px -34px rgba(179,18,12,.8);
}
.yt-band h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.015em; }
.yt-band h3 em { color: var(--sun-2); }
.yt-band p { margin: 0 0 22px; color: #ffe4e1; }
.yt-band .eyebrow { margin-bottom: 14px; }
.yt-band__player { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 5px rgba(255,255,255,.22), 0 24px 50px -24px #000; }
.yt-band__player iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) {
  .yt-band { grid-template-columns: 1fr; }
  .yt-band .btn { white-space: normal; }
}

.info-card--yt { --accent: #e62117; }
.info-card--yt .info-card__icon svg { fill: currentColor; stroke: none; }
.info-card--yt .info-card__icon .yt-play { fill: #e62117; }
.info-card--yt a { font-weight: 700; color: #c4190f; }
.footer__yt { display: inline-flex !important; align-items: center; gap: 8px; }
.footer__yt svg { fill: #ff4d42; stroke: none; font-size: 1.2em; }
.footer__yt svg .yt-play { fill: #fff; }

/* ---------- Gallery: school-year tabs ---------- */
.year-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 24px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -24px rgba(16,42,58,.5); }
.year-tab { border: 0; background: none; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--muted); padding: 10px 20px; border-radius: 99px; cursor: pointer; transition: background .3s, color .3s; }
.year-tab b { font-weight: 800; color: var(--teal-deep); margin-left: 4px; }
.year-tab:hover { background: rgba(15,138,126,.1); }
.year-tab[aria-pressed="true"] { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #e6fffb; }
.year-tab[aria-pressed="true"] b { color: #fff; }
.album[hidden], .albums__more[hidden] { display: none; }
@media (max-width: 640px) {
  .year-tabs { display: flex; border-radius: 22px; }
  .year-tab { flex: 1; padding: 10px 12px; font-size: 0.84rem; }
}

/* ---------- News: six cards (two rows of three) ---------- */
.news-card:nth-child(3n+1) { --accent: var(--teal); }
.news-card:nth-child(3n+2) { --accent: var(--berry); }
.news-card:nth-child(3n) { --accent: var(--sun); }
.news-card:nth-child(n+4) { --accent: var(--violet); }
.news-card:nth-child(5) { --accent: var(--coral); }
.news-card:nth-child(6) { --accent: var(--sky); }
@media (max-width: 900px) and (min-width: 641px) {
  .news__grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
}
.yt-poster { position: relative; display: block; color: #fff; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.yt-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55)); }
.yt-poster:hover img { transform: scale(1.04); }
.yt-poster__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; width: 78px; height: 54px; border-radius: 16px; background: #e62117; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 14px 30px -10px rgba(0,0,0,.7); transition: transform .4s var(--ease); }
.yt-poster__play svg { fill: #fff; stroke: none; }
.yt-poster:hover .yt-poster__play { transform: scale(1.1); }
.yt-poster__label { position: absolute; left: 18px; bottom: 14px; z-index: 2; font-weight: 700; font-size: 0.95rem; }

/* Video gallery */
.vgal { margin-top: clamp(40px, 6vw, 72px); }
.vgal__head { max-width: 720px; margin-bottom: 28px; }
.vgal__head h3 { margin: 8px 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.vgal__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.vgal__item { margin: 0; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 40px -24px rgba(0,0,0,.5); }
.vgal__item { aspect-ratio: 16 / 9; }
.vgal__item video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 700px) { .vgal__grid { grid-template-columns: 1fr; } }
.vgal__wide { display: block; margin-bottom: 20px; }
