/* ============================================================
   Jochebed Matriculation School — Homepage Styles
   ============================================================ */

:root {
  --navy: #123c8a;
  --navy-deep: #0c2a63;
  --navy-ink: #0a1f4a;
  --gold: #f6b40a;
  --gold-soft: #ffd35c;
  --red: #d52b1e;
  --paper: #f5f7fc;
  --paper-2: #eef2fb;
  --white: #ffffff;
  --ink: #16203a;
  --muted: #5b6480;
  --line: rgba(18, 60, 138, 0.12);
  --shadow-sm: 0 4px 16px rgba(12, 42, 99, 0.08);
  --shadow-md: 0 14px 40px rgba(12, 42, 99, 0.14);
  --shadow-lg: 0 30px 70px rgba(12, 42, 99, 0.22);
  --radius: 22px;
  --radius-lg: 30px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-height: 0px;
  --nav-height: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Body padding set entirely by JS — no CSS padding-top here */
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 560px at 12% -10%, rgba(18,60,138,.12), transparent 62%),
    radial-gradient(760px 500px at 94% 8%, rgba(246,180,10,.14), transparent 58%),
    linear-gradient(135deg, #f8fbff 0%, #edf3ff 46%, #fff8e8 100%);
  background-size: 140% 140%;
  animation: pageGradientDrift 18s ease-in-out infinite alternate;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  scroll-padding-top: calc(var(--topbar-height) + var(--nav-height) + 12px);
}
html.header-condensed {
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy-ink);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Lucide inline icons (sprite + <use>) — inherit color via currentColor */
.lucide-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.licon { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.16em; flex-shrink: 0; }
.tile .cap .ic { color: var(--gold-soft); display: inline-flex; }
.wrap { width: min(var(--maxw), 92%); margin-inline: auto; }

.section {
  padding: clamp(40px, 5vw, 72px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: rgba(245,247,252,.7);
  background-repeat: no-repeat;
  background-image:
    radial-gradient(720px 460px at 96% 4%, rgba(246,180,10,0.14), transparent 62%),
    radial-gradient(640px 460px at 2% 96%, rgba(18,60,138,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.44), rgba(238,242,251,.52));
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(18,60,138,0.05) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.section::after {
  content: "";
  position: absolute;
  width: clamp(280px, 34vw, 560px);
  height: clamp(280px, 34vw, 560px);
  right: clamp(-220px, -12vw, -90px);
  top: clamp(30px, 10vw, 130px);
  z-index: 0;
  border-radius: 42% 58% 48% 52%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,.65), transparent 26%),
    linear-gradient(145deg, rgba(246,180,10,.18), rgba(18,60,138,.12));
  filter: blur(.2px);
  opacity: .72;
  animation: blobFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.section > .wrap,
.section > .wave {
  position: relative;
  z-index: 1;
}

/* ---------- Section heading kit ---------- */
.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy-ink);
  background: var(--gold);
  min-height: 36px;
  padding: 0 46px;
  border: 0;
  border-radius: 0;
  box-shadow: 0 9px 18px rgba(246, 180, 10, 0.28);
  isolation: isolate;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  position: absolute;
  top: 0;
  width: 42px;
  height: 100%;
  background: #e6a000;
  z-index: -1;
}
.eyebrow::before {
  left: -30px;
  clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%, 22% 50%);
}
.eyebrow::after {
  right: -30px;
  clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%, 26% 50%);
  transform: scaleX(-1);
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 999px;
  position: relative;
  overflow: hidden;
  cursor: pointer; border: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, filter .3s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 32%, rgba(255,255,255,.5) 48%, transparent 64% 100%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { filter: saturate(1.08); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn > * {
  position: relative;
  z-index: 1;
}
.btn-gold { background: var(--gold); color: var(--navy-ink); box-shadow: 0 10px 26px rgba(246,180,10,.4); }
.btn-gold:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(246,180,10,.52); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(18,60,138,.32); }
.btn-navy:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(18,60,138,.44); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-4px) scale(1.02); }
.btn:focus-visible { outline: 3px solid rgba(18,60,138,0.2); outline-offset: 3px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 70;
  background: var(--navy-deep);
  color: rgba(255,255,255,.9);
  font-size: 0.98rem;
  /* No transition on transform so it hides instantly with no layout lag */
  transition: opacity .25s ease, visibility .25s ease;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 0; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 9px; }
.topbar a:hover { color: var(--gold-soft); }
.topbar .tb-left { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.topbar .tb-right { display: flex; align-items: center; gap: 24px; }
.topbar .tb-motto { color: var(--gold-soft); font-weight: 700; letter-spacing: .05em; font-size: 1.02rem; }
.tb-social { display: inline-flex; align-items: center; gap: 8px; }
.tb-social a {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.tb-social a:hover { background: var(--gold); color: var(--navy-ink); transform: translateY(-2px); }
.tb-social .licon { width: 16px; height: 16px; vertical-align: 0; }
.btn-topbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-ink) !important;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: .02em;
  padding: 9px 24px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(246,180,10,.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}
.btn-topbar:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(246,180,10,.5);
  filter: saturate(1.05);
  color: var(--navy-ink) !important;
}
.btn-topbar.btn-payment {
  background: #fff;
  color: var(--navy-ink) !important;
  box-shadow: 0 6px 16px rgba(255,255,255,.18);
}
.btn-topbar.btn-payment:hover {
  background: var(--gold-soft);
}
.topbar.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Use transform so it's out of layout flow visually but offsetHeight still works */
  transform: translateY(-100%);
}

/* ============================================================
   NAV
   nav.style.top is set directly by JS — no CSS top here
   Only transition box-shadow and background, NOT top
   ============================================================ */
.nav {
  position: fixed;
  top: 0; /* JS overrides this immediately */
  left: 0;
  width: 100%;
  z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  /* ⚠️ No "top" in transition — top is controlled by JS instantly */
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.94); }
.nav .wrap { display: flex; align-items: center; padding: 12px 0; gap: 18px; }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 72px; height: 72px; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: var(--shadow-sm); padding: 4px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.06); box-shadow: var(--shadow-md); }
.brand .bt {
  display: block;
  font-family: "Plus Jakarta Sans";
  font-weight: 800;
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
  color: var(--navy-ink);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand .bs { font-size: 0.74rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.menu a {
  position: relative;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 0.92rem;
  color: var(--ink); padding: 10px 14px; border-radius: 10px; transition: color .2s, background .2s, transform .3s var(--ease);
}
.menu a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.menu a:hover { color: var(--navy); background: var(--paper-2); transform: translateY(-2px); }
.menu a.active { color: var(--navy); background: var(--paper-2); }
.menu a.active::after { transform: scaleX(1); }

/* ---- Nav dropdown ---- */
.menu-dd { position: relative; }
.menu-dd-btn {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 0.92rem;
  color: var(--ink); padding: 10px 14px; border: none; background: none; cursor: pointer;
  border-radius: 10px; display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s, background .2s;
}
.menu-dd-btn::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; transition: transform .3s var(--ease);
}
.menu-dd-btn:hover { color: var(--navy); background: var(--paper-2); }
.menu-dd.active-dd > .menu-dd-btn { color: var(--navy); }
.menu-dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 214px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 8px; display: grid; gap: 2px; z-index: 55;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu-dd:hover .menu-dd-panel, .menu-dd.open .menu-dd-panel { opacity: 1; visibility: visible; transform: none; }
.menu-dd:hover .menu-dd-btn::after, .menu-dd.open .menu-dd-btn::after { transform: rotate(225deg); margin-top: 2px; }
.menu-dd-panel a { padding: 10px 14px; border-radius: 9px; font-size: 0.9rem; font-weight: 600; color: var(--ink); white-space: nowrap; transition: background .2s, color .2s; }
.menu-dd-panel a:hover, .menu-dd-panel a.active { background: var(--paper-2); color: var(--navy); }
.menu a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta .btn { min-height: 64px; padding-inline: 30px; justify-content: center; text-align: center; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: var(--navy); color: #fff; border: none; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #fff; margin: 0 auto; position: relative; transition: .3s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ============================================================
   HERO — banner image
   ============================================================ */
.hero-banner { background: var(--navy-ink); line-height: 0; }
.hero-banner-link { display: block; }
.hero-banner img {
  width: 100%; height: auto; display: block;
  max-height: 78vh; object-fit: cover; object-position: center;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats { margin-top: clamp(20px, 3vw, 32px); position: relative; z-index: 10; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: var(--white); border-radius: var(--radius-lg); padding: 14px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.stats-grid:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat { text-align: center; padding: 22px 14px; border-radius: 18px; transition: background .3s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.stat:hover { background: var(--paper-2); transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(18,60,138,.08); }
.stat .num { font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: clamp(1.8rem,3vw,2.5rem); color: var(--navy); }
.stat .num.is-counting { font-variant-numeric: tabular-nums; }
.stat .num span { color: var(--gold); }
.stat .lbl { font-size: .86rem; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; isolation: isolate; }
.about-media.has-pointer-glow:hover {
  transform: none;
}
.about-media .frame { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3.2; }
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about-media .mini {
  position: absolute; z-index: 3; bottom: -28px; right: -18px; width: 46%; aspect-ratio: 4/3;
  border-radius: 22px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow-lg);
}
.about-media .mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about-media:hover .frame img { transform: scale(1.06); }
.about-media:hover .mini img { transform: scale(1.1); }
.about-media .estab {
  position: absolute; z-index: 4; top: -22px; left: -16px; background: var(--navy); color: #fff;
  border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-md); transform: rotate(-3deg);
}
.about-media .estab b { display: block; font-family: "Plus Jakarta Sans"; font-size: 1.4rem; line-height: 1; color: var(--gold-soft); }
.about-media .estab span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.about-copy h2 { font-size: clamp(1.8rem,3.6vw,2.7rem); margin: 16px 0 18px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.vm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.vm-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  transition: transform .4s var(--ease), box-shadow .4s, background .4s, border-color .4s, color .4s;
}
.vm-card:hover {
  transform: translateY(-7px);
  background: linear-gradient(145deg, var(--navy-ink), var(--navy));
  border-color: rgba(246,180,10,.75);
  box-shadow: 0 20px 46px rgba(10,31,74,.28), 0 0 0 1px rgba(246,180,10,.22);
}
.vm-card .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: var(--navy);
  color: var(--gold-soft);
  margin-bottom: 12px;
  transition: transform .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease);
}
.vm-card:hover .ico {
  transform: rotate(-8deg) scale(1.08);
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(246,180,10,.36);
}
.vm-card h4 { font-size: 1.05rem; margin-bottom: 6px; transition: color .35s; }
.vm-card p { font-size: .9rem; margin: 0; transition: color .35s; }
.vm-card:hover h4 { color: #fff; }
.vm-card:hover p { color: rgba(255,255,255,.84); }

/* ============================================================
   ACADEMICS
   ============================================================ */
.alt {
  background-color: var(--paper-2);
  background-image:
    radial-gradient(860px 520px at 10% -10%, rgba(18,60,138,0.18), transparent 60%),
    radial-gradient(760px 520px at 102% 110%, rgba(246,180,10,0.20), transparent 60%),
    linear-gradient(135deg, #eef4ff 0%, #f8fbff 52%, #fff7e6 100%);
  border-block: 1px solid rgba(18,60,138,0.08);
}

/* ============================================================
   PER-SECTION BACKGROUND IDENTITY
   Each major section gets a distinct (but on-brand) tint plus
   its own accent shape / pattern so no two read the same.
   ID selectors intentionally override .section / .alt bg.
   ============================================================ */

/* About — warm cream welcome · soft gold dot texture · gold corner glow */
#about {
  background-color: #fdf7ec;
  background-image:
    radial-gradient(700px 460px at 94% -8%, rgba(246,180,10,.20), transparent 60%),
    radial-gradient(560px 460px at -6% 110%, rgba(18,60,138,.08), transparent 60%),
    linear-gradient(180deg, #ffffff, #fdf3e1);
}
#about::before {
  background-image: radial-gradient(rgba(246,180,10,.11) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
}
#about::after {
  background: linear-gradient(150deg, rgba(246,180,10,.26), rgba(246,180,10,.06));
}

/* Academics — cool scholarly blue · graph-paper grid · blue blob (left) */
#academics {
  background-color: #e9f0ff;
  background-image:
    radial-gradient(720px 480px at 8% -10%, rgba(18,60,138,.18), transparent 60%),
    radial-gradient(640px 480px at 100% 112%, rgba(18,60,138,.10), transparent 60%),
    linear-gradient(180deg, #eef3ff, #e2ebff);
}
#academics::before {
  background-image:
    linear-gradient(rgba(18,60,138,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,60,138,.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
#academics::after {
  left: clamp(-200px,-10vw,-80px); right: auto;
  background: linear-gradient(150deg, rgba(18,60,138,.22), rgba(18,60,138,.05));
}

/* Facilities — clean airy white · faint dots · navy blob (bottom-left) */
#facilities {
  background-color: #ffffff;
  background-image:
    radial-gradient(640px 460px at 100% 0%, rgba(18,60,138,.08), transparent 58%),
    radial-gradient(620px 460px at 0% 100%, rgba(246,180,10,.10), transparent 58%),
    linear-gradient(180deg, #ffffff, #f3f6fd);
}
#facilities::after {
  left: clamp(-220px,-12vw,-90px); right: auto;
  top: auto; bottom: clamp(-130px,-7vw,-50px);
  background: linear-gradient(150deg, rgba(18,60,138,.16), rgba(18,60,138,.04));
}

/* Co-curricular / Activities — energetic amber · gold+red confetti dots */
#activities {
  background-color: #fff3da;
  background-image:
    radial-gradient(700px 480px at 6% -10%, rgba(246,180,10,.24), transparent 58%),
    radial-gradient(620px 480px at 102% 110%, rgba(213,43,30,.12), transparent 58%),
    linear-gradient(135deg, #fff6e3, #ffeccb);
}
#activities::before {
  background-image:
    radial-gradient(rgba(246,180,10,.18) 2px, transparent 2px),
    radial-gradient(rgba(213,43,30,.12) 2px, transparent 2px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}
#activities::after {
  background: linear-gradient(150deg, rgba(246,180,10,.26), rgba(213,43,30,.08));
}

/* School Houses — tri-tone spirit (saffron · white · green) · diagonal weave */
#houses {
  background-color: #f6f8fc;
  background-image:
    radial-gradient(560px 420px at 0% 0%, rgba(255,138,0,.14), transparent 55%),
    radial-gradient(560px 460px at 100% 100%, rgba(46,158,84,.14), transparent 55%),
    linear-gradient(110deg, rgba(255,138,0,.06), rgba(255,255,255,0) 46%, rgba(46,158,84,.07));
}
#houses::before {
  background-image: repeating-linear-gradient(135deg, rgba(18,60,138,.045) 0 2px, transparent 2px 20px);
  background-size: auto;
}
#houses::after { display: none; }

/* Campus Life / Gallery — deeper blue showcase to set off photos */
#gallery {
  background-color: #e6edfa;
  background-image:
    radial-gradient(780px 520px at 12% -10%, rgba(18,60,138,.20), transparent 58%),
    radial-gradient(680px 520px at 100% 112%, rgba(18,60,138,.12), transparent 58%),
    linear-gradient(180deg, #eaf0fb, #dce6f7);
}
#gallery::after {
  background: linear-gradient(150deg, rgba(18,60,138,.20), rgba(18,60,138,.05));
}

.wave { position: absolute; left: 0; width: 100%; height: clamp(34px,4vw,58px); z-index: 1; pointer-events: none; display: block; }
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; }
.ach .wrap { position: relative; z-index: 2; }

.has-crest { overflow: hidden; }
.has-crest::after {
  content: "";
  position: absolute;
  right: clamp(-80px,-4vw,-40px);
  bottom: -50px;
  width: clamp(240px,30vw,400px);
  height: clamp(240px,30vw,400px);
  background: url("assets/images/crest-mark.png") center / contain no-repeat;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}
.has-crest .wrap { position: relative; z-index: 1; }

.acad-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.acad-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s, filter .45s; isolation: isolate;
}
.acad-card:hover { transform: translateY(-14px) scale(1.018); box-shadow: 0 34px 80px rgba(12,42,99,.26); filter: saturate(1.08); }
.acad-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .85s var(--ease), filter .85s var(--ease); }
.acad-card:hover img { transform: scale(1.1); filter: saturate(1.08); }
.acad-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(10,31,74,0) 30%,rgba(10,31,74,.55) 60%,rgba(10,31,74,.94) 100%); }
.acad-card .body { padding: 26px; transition: transform .45s var(--ease); }
.acad-card:hover .body { transform: translateY(-6px); }
.acad-card .tag { display: inline-block; background: var(--gold); color: var(--navy-ink); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; font-family: "Plus Jakarta Sans"; }
.acad-card h3 { color: #fff; font-size: 1.45rem; margin-bottom: 8px; }
.acad-card p { font-size: .92rem; color: rgba(255,255,255,.86); margin-bottom: 14px; }
.acad-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.acad-card ul li { font-size: .76rem; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }

/* ============================================================
   FACILITIES
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(190px, 15vw, 260px);
  gap: 22px;
  max-width: 1440px;
  margin-inline: auto;
}
.tile { position: relative; border-radius: 24px; overflow: hidden; color: #fff; box-shadow: var(--shadow-sm); isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s, filter .45s; }
.tile:hover { transform: translateY(-12px) scale(1.018); box-shadow: 0 34px 80px rgba(12,42,99,.26); filter: saturate(1.08); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .85s var(--ease), filter .85s var(--ease); }
.tile:hover img { transform: scale(1.11); filter: saturate(1.08); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(10,31,74,.05) 35%,rgba(10,31,74,.82) 100%); }
.tile .cap { position: absolute; left: 0; bottom: 0; padding: 24px 28px; transition: transform .45s var(--ease); }
.tile:hover .cap { transform: translateY(-5px); }
.tile .cap .ic { font-size: 1.1rem; }
.tile .cap h4 { color: #fff; font-size: clamp(1.12rem, 1.35vw, 1.42rem); margin-top: 4px; }
.tile .cap p { font-size: clamp(.82rem, .9vw, .96rem); color: rgba(255,255,255,.85); line-height: 1.4; }
.tile.big { grid-column: 1 / span 3; grid-row: 1 / span 2; }
.tile.wide { grid-column: 1 / span 2; }
.tile.tall { grid-row: span 2; }
#facilities .tile:nth-child(2) { grid-column: 4 / span 3; grid-row: 1; }
#facilities .tile:nth-child(3) { grid-column: 4 / span 1; grid-row: 2; }
#facilities .tile:nth-child(4) { grid-column: 5 / span 2; grid-row: 2; }
#facilities .tile:nth-child(5) { grid-column: 1 / span 2; grid-row: 3; }
#facilities .tile:nth-child(6) { grid-column: 3 / span 2; grid-row: 3; }
#facilities .tile:nth-child(7) { grid-column: 5 / span 2; grid-row: 3; }
.tile.solid { color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.tile.solid::after { display: none; }
.tile.solid img { display: none; }
.tile.navy { background: linear-gradient(140deg,var(--navy),var(--navy-deep)); }
.tile.gold { background: linear-gradient(140deg,var(--gold),#e09a00); color: var(--navy-ink); }
.tile.red  { background: linear-gradient(140deg,var(--red),#a81d12); }
.tile.solid .big-ic { font-size: 1.8rem; }
.tile.solid h4 { color: inherit; font-size: 1.15rem; }
.tile.solid p { font-size: .82rem; opacity: .9; }
.tile.gold h4 { color: var(--navy-ink); }
.tile.image-card { display: flex; align-items: flex-end; padding: 24px 28px; background-color: var(--navy-deep); background-position: center; background-size: cover; transition: transform .45s var(--ease), box-shadow .45s, background-size .85s var(--ease); }
.tile.image-card:hover { background-size: 112%; }
.tile.image-card::after { z-index: 0; background: linear-gradient(180deg,rgba(10,31,74,.08) 24%,rgba(10,31,74,.86) 100%); }
.tile.image-card .big-ic { display: none; }
.tile.image-card > div:not(.big-ic) { position: relative; z-index: 1; }
.tile.image-card h4 { color: #fff; font-size: clamp(1.12rem, 1.35vw, 1.42rem); }
.tile.image-card p { color: rgba(255,255,255,.88); font-size: clamp(.82rem, .9vw, .96rem); line-height: 1.4; }
.water-card     { background-image: url("https://images.unsplash.com/photo-1548839140-29a749e1cf4d?auto=format&fit=crop&w=900&q=80"); }

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.ach {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
  background: linear-gradient(160deg,var(--navy-ink),var(--navy-deep));
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* No decorative divider shapes on the dark Achievements panel —
   clean edges, and this also suppresses the global .section::before/::after
   decorations (same pseudo-elements) that looked wrong on the dark background. */
.ach::before,
.ach::after {
  content: none;
  display: none;
}
.ach .section-head {
  margin-inline: auto;
  text-align: center;
}
.ach .section-head h2 { color: #fff; }
.ach .section-head p { color: rgba(255,255,255,.78); margin-inline: auto; }
.ach-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
.ach-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 380px; }
.ach-hero img { width: 100%; height: 100%; object-fit: cover; }
.ach-hero .ov { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(10,31,74,.92)); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.ach-hero .ov h3 { color: #fff; font-size: 1.6rem; }
.ach-hero .ov p { color: rgba(255,255,255,.85); font-size: .92rem; }
.ach-side { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.ach-mini { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.ach-mini img { width: 100%; height: 100%; object-fit: cover; min-height: 178px; }
.ach-mini .ov { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 40%,rgba(10,31,74,.9)); display: flex; align-items: flex-end; padding: 18px; }
.ach-mini .ov h4 { color: #fff; font-size: 1.05rem; }
.ach-mini .ov span { font-size: .78rem; color: var(--gold-soft); font-weight: 700; }

/* ============================================================
   ACTIVITIES
   ============================================================ */
.act-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.act { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/3.4; color: #fff; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s; }
.act:hover { transform: translateY(-12px) scale(1.018); box-shadow: 0 34px 80px rgba(12,42,99,.25); }
.act img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease), filter .85s var(--ease); }
.act:hover img { transform: scale(1.11); filter: saturate(1.08); }
.act .gl { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(10,31,74,0) 40%,rgba(10,31,74,.9)); }
.act .cap { position: absolute; bottom: 0; padding: 18px; transition: transform .45s var(--ease); }
.act:hover .cap { transform: translateY(-6px); }
.act .cap b { font-family: "Plus Jakarta Sans"; font-size: 1.05rem; display: block; }
.act .cap span { font-size: .8rem; color: rgba(255,255,255,.82); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; justify-content: center; }
.chips span { background: #fff; border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--navy); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s; }
.chips span:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: var(--navy); color: #fff; }

/* ============================================================
   HOUSES
   ============================================================ */
.house-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.house { border-radius: var(--radius); padding: 30px; color: #fff; position: relative; overflow: hidden; min-height: 230px; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s, filter .45s; }
.house:hover { transform: translateY(-12px) scale(1.018); box-shadow: 0 34px 80px rgba(12,42,99,.28); filter: saturate(1.1); }
.house .orb { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.18); top: -40px; right: -30px; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.house:hover .orb { transform: scale(1.25) translate(-10px, 8px); opacity: .78; }
.house h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.house p { font-size: .9rem; color: rgba(255,255,255,.9); position: relative; }
.house .badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.house.saffron { background: linear-gradient(150deg,#ff8a00,#e85d04); }
.house.white   { background: linear-gradient(150deg,#5a6b8c,#3a4866); }
.house.green   { background: linear-gradient(150deg,#2e9e54,#15803d); }

/* ============================================================
   GALLERY
   ============================================================ */
.gal-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 180px; gap: 14px; }
.gal { border-radius: 18px; overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s; }
.gal:hover { transform: translateY(-6px) scale(1.012); box-shadow: var(--shadow-lg); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease), filter .85s var(--ease); }
.gal:hover img { transform: scale(1.12); filter: saturate(1.08); }
.gal::after { display: none; }
.gal.s2c { grid-column: span 2; }
.gal.s2r { grid-row: span 2; }

#gallery {
  padding-block: clamp(40px, 5vw, 72px);
}
#gallery .wrap {
  width: min(1120px, 92%);
}
#gallery .section-head {
  max-width: 760px;
  margin-bottom: 36px;
}
#gallery .section-head h2 {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(2.15rem, 3.4vw, 3.25rem);
  line-height: 1.04;
}
#gallery .section-head p {
  max-width: 640px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.7;
}
#gallery .eyebrow {
  margin-bottom: 2px;
}
.gallery-carousel {
  position: relative;
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 0 70px 54px;
}
.gallery-window {
  overflow: hidden;
  border-radius: 28px;
  padding: 4px;
}
#gallery .gal-grid {
  width: 100%;
  display: flex;
  gap: 22px;
  align-items: stretch;
  transition: transform .65s var(--ease);
  will-change: transform;
}
#gallery .gal,
#gallery .gal:nth-child(n) {
  flex: 0 0 calc((100% - 44px) / 3);
  min-height: clamp(300px, 30vw, 420px);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(12,42,99,.15);
}
#gallery .gal img {
  object-position: center;
}
.gallery-nav {
  position: absolute;
  top: calc(50% - 28px);
  z-index: 5;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--navy-deep));
  box-shadow: 0 16px 34px rgba(12,42,99,.24);
  cursor: pointer;
  font-size: 2.1rem;
  line-height: 1;
  transition: transform .35s var(--ease), box-shadow .35s, opacity .35s, background .35s;
}
.gallery-nav:hover {
  transform: translateY(-3px) scale(1.06);
  background: linear-gradient(145deg, var(--gold), #e7a200);
  color: var(--navy-ink);
  box-shadow: 0 20px 42px rgba(246,180,10,.34);
}
.gallery-nav:disabled {
  opacity: .38;
  cursor: not-allowed;
  transform: none;
}
.gallery-prev { left: 0; }
.gallery-next { right: 0; }
.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.gallery-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(18,60,138,.22);
  cursor: pointer;
  transition: width .35s var(--ease), background .35s, transform .35s;
}
.gallery-dots button:hover {
  transform: translateY(-2px);
  background: rgba(18,60,138,.55);
}
.gallery-dots button.active {
  width: 30px;
  background: var(--gold);
}

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,18,40,.92); display: none; place-items: center; padding: 4vw; backdrop-filter: blur(6px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 16px; box-shadow: var(--shadow-lg); }
.lightbox .x { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* ============================================================
   MESSAGES
   ============================================================ */
.msg-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.msg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; position: relative; overflow: hidden; }
.msg-card:hover { transform: translateY(-12px) scale(1.014); box-shadow: 0 30px 70px rgba(12,42,99,.2); border-color: rgba(246,180,10,.48); }
.msg-card .quote { font-family: "Plus Jakarta Sans"; font-size: 3rem; color: var(--gold); line-height: .6; height: 26px; }
.msg-card p { color: var(--muted); font-size: .92rem; margin: 14px 0 22px; }
.msg-card .who { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.msg-card .who .av { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(140deg,var(--navy),var(--navy-deep)); color: var(--gold-soft); display: grid; place-items: center; font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 1.1rem; }
.msg-card .who b { display: block; color: var(--navy-ink); font-size: .98rem; }
.msg-card .who span { font-size: .8rem; color: var(--muted); }

/* ============================================================
   HOME LEADERSHIP SHOWCASE
   ============================================================ */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.leader-home-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.leader-home-card:hover {
  transform: translateY(-12px) scale(1.014);
  box-shadow: 0 30px 70px rgba(12,42,99,.2);
  border-color: rgba(246,180,10,.48);
}
.leader-home-card .photo {
  position: relative;
  margin-bottom: 24px;
}
.leader-home-card .photo-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy-ink), var(--navy-deep));
  box-shadow: 0 16px 38px rgba(12,42,99,.16);
}
.leader-home-card .photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,74,0) 58%, rgba(10,31,74,.45) 100%);
  pointer-events: none;
}
.leader-home-card .photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 3.2;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .8s var(--ease);
}
.leader-home-card:hover .photo-frame img { transform: scale(1.06); }
.leader-home-card .badge {
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-ink);
  border: 2px solid var(--gold);
  box-shadow: 0 8px 22px rgba(12,42,99,.16);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: .78rem;
  white-space: nowrap;
}
.leader-home-card .badge .licon { color: var(--gold); width: 15px; height: 15px; }
.leader-home-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  margin: 14px 0 18px;
  flex: 1 1 auto;
}
.leader-home-card .who {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.leader-home-card .who b { display: block; color: var(--navy-ink); font-size: .98rem; }
.leader-home-card .who span { font-size: .8rem; color: var(--muted); }
.leader-home-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: .88rem;
  color: var(--navy);
  transition: color .25s, gap .25s;
}
.leader-home-card:hover .more { color: var(--gold); gap: 10px; }

@media (max-width: 900px) {
  .leaders-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

/* ============================================================
   ADMISSIONS CTA
   ============================================================ */
.cta { position: relative; color: #fff; isolation: isolate; border-radius: 0; }
.cta-inner {
  position: relative;
  min-height: clamp(340px, 30vw, 430px);
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 70px rgba(12,42,99,.18);
  transition: transform .55s var(--ease), box-shadow .55s;
}
.cta-inner:hover { transform: translateY(-6px); box-shadow: 0 34px 86px rgba(12,42,99,.26); }
.cta-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease), filter 1s var(--ease); }
.cta-inner:hover img { transform: scale(1.06); filter: saturate(1.08); }
.cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 360px at 82% 46%, rgba(246,180,10,.2), transparent 64%),
    linear-gradient(100deg, rgba(10,31,74,.98) 0%, rgba(12,42,99,.88) 45%, rgba(12,42,99,.66) 100%);
}
.cta-inner .pad {
  min-height: inherit;
  padding: clamp(34px,5vw,58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}
.cta-inner .pad > div:first-child { max-width: 680px; }
.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.85rem,3.35vw,3.2rem);
  line-height: 1.05;
  margin: 18px 0 14px;
  text-wrap: balance;
}
.cta-inner p { color: rgba(255,255,255,.88); max-width: 600px; margin: 0; font-size: clamp(.96rem,1.15vw,1.08rem); line-height: 1.68; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 340px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 18px 46px rgba(10,31,74,.22);
}
.cta-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 56px;
  font-size: .94rem;
  white-space: nowrap;
}
.cta-call-label {
  color: rgba(255,255,255,.78);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-ink); color: rgba(255,255,255,.82); padding-top: 80px; position: relative; overflow: hidden; }
.footer .wrap { position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.2fr; gap: 48px; padding-bottom: 40px; align-items: start; }
.foot-about { max-width: 420px; }
.foot-brand { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.foot-brand img { width: 66px; height: 66px; background: #fff; border-radius: 14px; padding: 5px; }
.foot-brand b { font-family: "Plus Jakarta Sans"; font-size: 1.32rem; color: #fff; line-height: 1.12; }
.foot-brand span { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.footer p { font-size: 1.02rem; line-height: 1.7; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.foot-apply { font-size: .98rem; padding: 13px 26px; }
.foot-payment { font-size: .98rem; padding: 13px 26px; background: #fff; color: var(--navy-ink) !important; }
.foot-payment:hover { background: var(--gold-soft); }
.foot-social { display: flex; gap: 12px; margin-top: 22px; }
.foot-social a {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  transition: background .25s, color .25s, transform .3s var(--ease), border-color .25s;
}
.foot-social a:hover { background: var(--gold); color: var(--navy-ink); border-color: var(--gold); transform: translateY(-3px); }
.foot-social .licon { width: 20px; height: 20px; vertical-align: 0; }
.footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 999px; background: var(--gold); }
.footer ul { list-style: none; display: grid; gap: 13px; }
.footer ul a { font-size: 1.02rem; color: rgba(255,255,255,.78); transition: color .25s, transform .3s var(--ease); display: inline-block; }
.footer ul a:hover { color: var(--gold-soft); transform: translateX(5px); }
.foot-contact li { display: flex; gap: 12px; font-size: 1rem; margin-bottom: 10px; align-items: flex-start; line-height: 1.55; }
.foot-contact .ic { color: var(--gold-soft); font-size: 1.15rem; flex-shrink: 0; }
.phone-stack { align-items: flex-start; }
.phone-links { display: block; line-height: 1.6; }
.phone-links a { white-space: nowrap; }
.foot-contact a { color: rgba(255,255,255,.82); transition: color .25s; }
.foot-contact a:hover { color: var(--gold-soft); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .95rem; }
.foot-motto { color: var(--gold-soft); font-weight: 700; letter-spacing: .05em; }

/* ============================================================
   INTERACTIVE MOTION LAYER
   ============================================================ */
.has-pointer-glow {
  position: relative;
}
.has-pointer-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255,255,255,.26), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
  z-index: 3;
}
.has-pointer-glow:hover::before {
  opacity: 1;
}
.msg-card.has-pointer-glow::before,
.vm-card.has-pointer-glow::before,
.stat.has-pointer-glow::before {
  background: radial-gradient(380px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(246,180,10,.2), transparent 42%);
}

.acad-card::before,
.tile::before,
.act::before,
.house::before,
.msg-card::before,
.vm-card::before,
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0 34%, rgba(255,255,255,.26) 48%, transparent 62% 100%);
  opacity: 0;
  transform: translateX(-120%);
  transition: transform .9s var(--ease), opacity .35s;
  pointer-events: none;
  z-index: 2;
}
.acad-card:hover::before,
.tile:hover::before,
.act:hover::before,
.house:hover::before,
.msg-card:hover::before,
.vm-card:hover::before,
.cta-inner:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.acad-card,
.tile,
.act,
.house,
.msg-card,
.vm-card,
.stat,
.gal {
  transform-style: preserve-3d;
}
.acad-card:hover .body,
.tile:hover .cap,
.act:hover .cap,
.house:hover h3,
.msg-card:hover .who,
.vm-card:hover h4 {
  transform: translateY(-7px);
}

.section-head h2 {
  color: var(--navy-ink);
  background: linear-gradient(90deg, var(--navy-ink), var(--navy), var(--navy-ink));
  background-size: 220% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: headingSheen 8s ease-in-out infinite alternate;
}
.ach .section-head h2,
.footer h4 {
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

@keyframes pageGradientDrift {
  0% { background-position: 0% 35%; }
  100% { background-position: 100% 65%; }
}

@keyframes blobFloat {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); border-radius: 42% 58% 48% 52%; }
  100% { transform: translate3d(-34px, 28px, 0) rotate(12deg) scale(1.08); border-radius: 58% 42% 56% 44%; }
}

@keyframes headingSheen {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 9px 18px rgba(246,180,10,.24); }
  50% { box-shadow: 0 12px 26px rgba(246,180,10,.38); }
}
.eyebrow { animation: softPulse 4s ease-in-out infinite; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(38px) scale(.975);
  filter: blur(8px);
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.stats.reveal { transform: translateY(22px) scale(.995); }
.nav.reveal, .nav.reveal.in,
.hero-banner.reveal, .hero-banner.reveal.in { transform: none; opacity: 1; filter: none; }
.footer.reveal { transform: translateY(40px); }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cluster { height: 360px; max-width: 520px; }
  .acad-grid, .msg-grid, .house-grid { grid-template-columns: 1fr 1fr; }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 230px;
    max-width: 900px;
  }
  .tile.big,
  .tile.wide,
  #facilities .tile:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  #facilities .tile.big { grid-column: span 2; grid-row: span 2; }
  #facilities .tile:nth-child(4) { grid-column: span 2; }
  #facilities .tile.wide { grid-column: span 2; }
  .act-grid { grid-template-columns: repeat(2,1fr); }
  .ach-grid { grid-template-columns: 1fr; }
  #gallery .gal,
  #gallery .gal:nth-child(n) {
    flex-basis: calc((100% - 22px) / 2);
    min-height: 340px;
  }
  .cta-inner .pad { grid-template-columns: 1fr; }
  .cta-actions { justify-self: start; max-width: 430px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  /* Tighten nav so the full school name fits alongside the menu */
  .menu { gap: 2px; }
  .menu a { padding: 9px 9px; font-size: 0.86rem; }
  .brand .bt { font-size: 1rem; }
}
@media (max-width: 900px) {
  .menu { display: none; }
  .nav-toggle { display: block; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand .bt { white-space: normal; font-size: .96rem; line-height: 1.14; }
  .nav .wrap { gap: 12px; }
  .nav-cta { display: none; }
  .menu.open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 4%;
    width: 92%;
    max-height: calc(100vh - var(--topbar-height) - var(--nav-height) - 24px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
  }
  .menu.open a { padding: 12px 14px; }
  .menu-dd { width: 100%; }
  .menu-dd-btn { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1rem; }
  .menu-dd-panel {
    position: static;
    display: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 4px 14px;
  }
  .menu-dd.open .menu-dd-panel { display: grid; }
  .menu-dd:hover .menu-dd-panel { display: none; }
  .menu-dd.open:hover .menu-dd-panel { display: grid; }
}
@media (max-width: 760px) {
  .menu { display: none; }
  .nav-toggle { display: block; }
  /* Keep the topbar compact on phones */
  .topbar { font-size: .82rem; }
  .topbar .wrap { padding: 8px 0; gap: 10px; }
  .topbar .tb-left { gap: 14px; }
  .topbar .tb-right { gap: 12px; }
  .topbar .tb-motto { display: none; }
  .topbar .tb-social { display: none; } /* social shown in footer on mobile */
  .topbar .tb-left > span { display: none; } /* hide long address (shown in footer) */
  .topbar .btn-topbar { padding: 6px 14px; font-size: .8rem; }
  /* Let the long name wrap so the hamburger stays visible on phones */
  .brand { flex-shrink: 1; min-width: 0; }
  .brand .bt { white-space: normal; font-size: .82rem; line-height: 1.14; }
  .menu.open { display: flex; position: absolute; top: 76px; left: 4%; width: 92%; flex-direction: column; background: #fff; padding: 14px; border-radius: 18px; box-shadow: var(--shadow-lg); align-items: stretch; }
  .menu.open a { padding: 12px 14px; }
  .menu-dd { width: 100%; }
  .menu-dd-btn { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1rem; }
  .menu-dd-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 4px 14px; display: none; min-width: 0; }
  .menu-dd.open .menu-dd-panel { display: grid; }
  .eyebrow {
    max-width: calc(100% - 52px);
    min-height: 34px;
    padding: 0 24px;
    font-size: .66rem;
    letter-spacing: .1em;
    text-align: center;
  }
  .eyebrow::before,
  .eyebrow::after {
    width: 32px;
  }
  .eyebrow::before { left: -22px; }
  .eyebrow::after { right: -22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media {
    max-width: 460px;
    width: 100%;
    display: grid;
    gap: 14px;
    padding-top: 12px;
  }
  .about-media .estab,
  .about-media .mini {
    position: static;
    width: 100%;
    transform: none;
    border-radius: 18px;
  }
  .about-media .estab {
    order: 0;
    padding: 12px 16px;
  }
  .about-media .estab b {
    font-size: 1.15rem;
  }
  .about-media .estab span {
    font-size: .68rem;
  }
  .about-media .frame {
    order: 1;
    aspect-ratio: 4 / 3.2;
  }
  .about-media .mini {
    order: 2;
    aspect-ratio: 16 / 9;
    border-width: 4px;
  }
  .acad-grid, .msg-grid, .house-grid, .vm-row { grid-template-columns: 1fr; }
  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    gap: 14px;
  }
  .act-grid { grid-template-columns: 1fr; }
  .tile.big,
  .tile.wide,
  #facilities .tile:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }
  .gal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 12px;
  }
  .gal.s2c,
  .gal.s2r {
    grid-column: auto;
    grid-row: auto;
  }
  .gal {
    border-radius: 16px;
  }
  #gallery .wrap { width: min(94%, 520px); }
  #gallery .section-head { margin-bottom: 28px; }
  #gallery .section-head h2 { font-size: clamp(1.9rem, 10vw, 2.55rem); }
  #gallery .section-head p { font-size: .94rem; }
  .gallery-carousel {
    padding: 0 0 46px;
    width: 100%;
  }
  .gallery-window {
    border-radius: 24px;
    overflow: visible;
    padding: 0;
  }
  #gallery .gal-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
    gap: 14px;
  }
  .gal.s2c,
  .gal.s2r {
    grid-column: auto;
    grid-row: auto;
  }
  .gal {
    border-radius: 16px;
  }
  #gallery .gal,
  #gallery .gal:nth-child(n) {
    min-height: 240px;
    aspect-ratio: auto;
  }
  .gallery-nav {
    display: none;
  }
  .gallery-dots { bottom: 8px; }
  .cta-inner {
    min-height: auto;
    border-radius: 28px;
  }
  .cta-inner .pad {
    padding: 38px 24px;
  }
  .cta-inner h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }
  .cta-actions {
    padding: 16px;
    max-width: none;
  }
  .cta-actions .btn {
    min-height: 58px;
    font-size: .92rem;
  }
  .topbar .tb-left { gap: 14px; font-size: .76rem; }
  .hero-stat-chip { display: none; }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 34px;
  }
  .footer {
    padding-top: 78px;
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 26px;
  }
  .foot-contact li {
    font-size: .94rem;
  }
}
