/* ==========================================================================
   Bihar Vikas Vidyalaya — Cinematic Landing Page
   Palette: deep academic blue · royal blue · warm gold · soft white
   ========================================================================== */

:root {
  --blue: #12345c;
  --blue-deep: #0c2440;
  --blue-2: #245b91;
  --blue-soft: #eaf1f9;
  --gold: #d7a84b;
  --gold-soft: #f6edd6;
  --white: #ffffff;
  --alt: #f4f7fb;
  --ink: #1b2531;
  --slate: #647184;
  --border: #e2e8f1;

  --max: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px -4px rgba(18, 52, 92, 0.16);
  --shadow: 0 30px 60px -35px rgba(18, 52, 92, 0.5);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --navbar-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol, figure, blockquote { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  color: var(--blue);
  margin: 0;
  letter-spacing: -0.02em;
}
.h2 { font-size: clamp(1.9rem, 1.1rem + 2.7vw, 3.15rem); }
.h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.25; }
p { margin: 0 0 1.05rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 400;
  background: var(--blue); color: #fff; padding: 0.75rem 1.25rem; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared type helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin: 0 0 1rem;
  position: relative;
  padding-left: 2.25rem;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1.6rem; height: 2px;
  background: var(--gold); transform: translateY(-50%);
}
.eyebrow--light { color: #cddcf0; }

.section-sub { color: var(--slate); max-width: 56ch; margin: 0.9rem 0 0; }
.section-sub--light { color: #b9c9de; }
.center .section-sub { margin-inline: auto; }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head.center .eyebrow { padding-left: 0; }
.section-head.center .eyebrow::before { display: none; }
.req { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  padding: 0.95rem 1.7rem; border: 1.5px solid transparent; border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #22303f; box-shadow: 0 14px 30px -14px rgba(215, 168, 75, 0.9); }
.btn--gold:hover { background: #e6bb63; transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn--outline { border-color: rgba(18, 52, 92, 0.28); color: var(--blue); }
.btn--outline:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.84rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 0; padding: 0; font-family: var(--font-body);
  font-weight: 600; font-size: 0.9rem; color: var(--blue-2);
  border-bottom: 1.5px solid transparent; transition: gap 0.25s ease, border-color 0.25s ease;
}
.link-arrow:hover { gap: 0.8rem; border-bottom-color: var(--gold); }

/* ==========================================================================
   Cinematic Intro
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; text-align: center;
  color: #fff; background: var(--blue-deep);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__bg {
  position: absolute; inset: 0; opacity: 0.28;
  background: url("images/hero.jpg") center/cover no-repeat;
  animation: introZoom 6s var(--ease) forwards;
}
.intro__inner { position: relative; z-index: 1; padding: 2rem; }
.intro__logo { width: 78px; height: 78px; object-fit: contain; margin: 0 auto 1.4rem; animation: introFade 0.9s var(--ease) both; }
.intro__eyebrow { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.9rem; animation: introFade 0.9s 0.1s var(--ease) both; }
.intro__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.4rem); color: #fff; letter-spacing: -0.01em; animation: introFade 0.9s 0.2s var(--ease) both; }
.intro__line { display: block; width: 0; height: 1px; background: var(--gold); margin: 1.4rem auto; animation: introLine 1s 0.5s var(--ease) forwards; }
.intro__sub { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a9bed8; margin: 0; animation: introFade 0.9s 0.7s var(--ease) both; }
.intro__skip {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 2;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
  padding: 0.55rem 1.15rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  transition: background-color 0.25s ease;
}
.intro__skip:hover { background: rgba(255, 255, 255, 0.2); }

@keyframes introFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes introLine { to { width: 92px; } }
@keyframes introZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 150; }
.navbar {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled .navbar { box-shadow: 0 14px 34px -26px rgba(18, 52, 92, 0.7); border-bottom-color: var(--border); }
.header-inner { height: var(--navbar-h); display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; min-width: 0; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--blue); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__tag { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(0.2rem, 0.9vw, 0.9rem); }
.nav__link {
  position: relative; font-size: 0.84rem; font-weight: 500; color: var(--ink);
  padding: 0.4rem 0.2rem; white-space: nowrap; transition: color 0.25s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0.2rem; right: 0.2rem; bottom: 0.15rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--blue-2); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--border);
  background: #fff; border-radius: var(--radius);
  flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle__bar { width: 20px; height: 2px; background: var(--blue); }

/* ---------- Drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(12, 36, 64, 0.55); z-index: 200; opacity: 0; transition: opacity 0.3s ease; }
.drawer-scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(390px, 90vw);
  background: #fff; z-index: 210; padding: 1.5rem; transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  display: flex; flex-direction: column; gap: 1.25rem; overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.drawer__title { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--blue); }
.drawer__close { width: 42px; height: 42px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--blue); }
.drawer__close:hover { background: var(--alt); }
.drawer__list { display: flex; flex-direction: column; }
.drawer__list a { display: block; padding: 0.85rem 0; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--border); }
.drawer__list a:hover { color: var(--blue-2); }
.drawer__cta { width: 100%; }
.drawer__contact { margin-top: auto; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: var(--slate); padding-top: 1rem; border-top: 1px solid var(--border); }
.drawer__contact a:hover { color: var(--blue-2); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; display: grid; align-items: center;
  min-height: calc(100svh - var(--navbar-h)); overflow: hidden; background: var(--blue);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 12s var(--ease) forwards; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(9, 28, 52, 0.95) 0%, rgba(9, 28, 52, 0.78) 45%, rgba(9, 28, 52, 0.35) 100%),
              linear-gradient(0deg, rgba(9, 28, 52, 0.55), rgba(9, 28, 52, 0) 60%);
}
.hero__content { position: relative; z-index: 1; padding-block: clamp(4rem, 10vw, 7rem); color: #fff; }
.hero__eyebrow { color: #cddcf0; }
.hero__title {
  color: #fff; font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.4rem); line-height: 1.02;
  margin-bottom: 1.5rem; letter-spacing: -0.03em; max-width: 15ch;
}
.hero__line { display: block; }
.hero__line--accent { font-family: var(--font-serif); font-weight: 500; color: var(--gold); font-style: normal; }
.hero__lead { max-width: 52ch; color: #d3e0f0; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin-top: 2.6rem; color: #aec2db; font-size: 0.82rem; letter-spacing: 0.04em; }
.hero__meta li { position: relative; padding-left: 1.5rem; }
.hero__meta li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--gold); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 24px; height: 40px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 14px; z-index: 2; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrollDot 1.6s infinite; }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   Statement
   ========================================================================== */
.statement { padding: clamp(4rem, 8vw, 6.5rem) 0; background: #fff; }
.statement__inner { max-width: 960px; margin-inline: auto; text-align: center; }
.statement__eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.5rem; }
.statement__text {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.4rem, 0.9rem + 2.1vw, 2.4rem);
  line-height: 1.4; color: var(--blue); margin: 0; letter-spacing: -0.01em;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; scroll-margin-top: 100px; }
.section--alt { background: var(--alt); }
.section--deep { background: var(--blue); }
.section--deep .h2, .section--deep .h3 { color: #fff; }
.section--deep p { color: #c6d5e8; }
.section-head { max-width: 760px; margin-bottom: clamp(2.75rem, 5vw, 4rem); }

/* ==========================================================================
   Story blocks
   ========================================================================== */
.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-top: clamp(3rem, 7vw, 6rem); }
.story-block:first-of-type { margin-top: 0; }
.story-block__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.story-block__media img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.story-block:hover .story-block__media img { transform: scale(1.05); }
.story-block--reverse .story-block__media { order: 2; }
.story-block__no { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); font-weight: 600; letter-spacing: 0.1em; display: block; margin-bottom: 0.6rem; }
.story-block__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); color: var(--blue); margin-bottom: 1rem; letter-spacing: -0.01em; }
.story-block__body p { color: var(--slate); margin: 0; max-width: 46ch; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { padding: 2rem 1rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.stat__value { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.5rem + 3vw, 3.6rem); color: #fff; line-height: 1; letter-spacing: -0.03em; }
.stat__label { display: block; margin-top: 0.85rem; font-size: 0.85rem; color: #b9c9de; letter-spacing: 0.02em; }

/* ==========================================================================
   Academics
   ========================================================================== */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stage {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.25rem 1.6rem 1.8rem; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}
.stage::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--blue-2)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.stage:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.stage:hover::before { transform: scaleX(1); }
.stage__badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-2); background: var(--blue-soft); padding: 0.35rem 0.75rem; border-radius: 999px; margin-bottom: 1.15rem; }
.stage .h3 { margin-bottom: 0.25rem; }
.stage__range { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 0.9rem; }
.stage p:last-child { color: var(--slate); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Framework
   ========================================================================== */
.framework__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.fw { padding: 2.25rem 1.6rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); transition: transform 0.35s var(--ease), background-color 0.35s ease; }
.fw:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.09); }
.fw__letter { display: grid; place-items: center; width: 62px; height: 62px; border-radius: var(--radius); background: var(--gold); color: #22303f; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; margin-bottom: 1.35rem; }
.fw__title { color: #fff; margin-bottom: 0.5rem; }
.fw p { color: #bdcee3; font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Facilities
   ========================================================================== */
.facility-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.facility { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--blue); }
.facility--wide { grid-column: span 2; }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.facility__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; color: #fff;
  background: linear-gradient(0deg, rgba(9, 28, 52, 0.9) 0%, rgba(9, 28, 52, 0.35) 45%, rgba(9, 28, 52, 0) 75%);
  transition: background 0.4s ease;
}
.facility__overlay .h3 { color: #fff; margin-bottom: 0.3rem; }
.facility__overlay p { margin: 0; font-size: 0.85rem; color: #cddcf0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.4s ease, margin 0.4s ease; }
.facility:hover img, .facility:focus-within img { transform: scale(1.08); }
.facility:hover .facility__overlay p, .facility:focus-within .facility__overlay p { max-height: 4rem; opacity: 1; margin-top: 0.25rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s ease; }
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quote__mark { font-family: var(--font-serif); font-size: 3.5rem; line-height: 0.6; color: var(--gold); margin-bottom: 0.75rem; }
.quote blockquote { font-family: var(--font-serif); font-weight: 400; font-size: 1.1rem; line-height: 1.55; color: var(--ink); margin: 0 0 1.5rem; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; padding-top: 1rem; border-top: 1px solid var(--border); }
.quote__name { font-weight: 700; color: var(--blue); font-size: 0.95rem; }
.quote__role { font-size: 0.8rem; color: var(--slate); }

/* ==========================================================================
   Leadership
   ========================================================================== */
.leadership__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.25rem, 6vw, 5rem); align-items: center; }
.leadership__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.leadership__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.leadership__body .h2 { font-family: var(--font-serif); font-weight: 400; margin-bottom: 1.25rem; }
.leadership__body p { color: var(--slate); max-width: 56ch; }
.leadership__sign { margin-top: 1.5rem; padding-left: 1.25rem; border-left: 3px solid var(--gold); }
.leadership__name { display: block; font-family: var(--font-serif); font-size: 1.2rem; color: var(--blue); }
.leadership__role { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }

/* ==========================================================================
   Rules / Accordion
   ========================================================================== */
.rules__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.rules .section-head { margin-bottom: 0; }
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-head { margin: 0; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  text-align: left; background: none; border: 0; padding: 1.5rem 0;
  font-family: var(--font-display); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 700;
  color: var(--blue); transition: color 0.25s ease;
}
.acc-trigger:hover { color: var(--blue-2); }
.acc-icon { position: relative; flex: none; width: 20px; height: 20px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--blue-2); transition: transform 0.3s ease; }
.acc-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.acc-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); }
.acc-panel { overflow: hidden; }
.acc-panel p { margin: 0; padding: 0 0 1.6rem; color: var(--slate); max-width: 62ch; animation: panelIn 0.35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Masonry gallery
   ========================================================================== */
.masonry { columns: 4; column-gap: 1rem; }
.m-item { display: block; width: 100%; border: 0; padding: 0; margin: 0 0 1rem; break-inside: avoid; background: var(--blue); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.m-item img { width: 100%; transition: transform 1s var(--ease); }
.m-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 28, 52, 0.45), rgba(9, 28, 52, 0)); opacity: 0; transition: opacity 0.4s ease; }
.m-item:hover img, .m-item:focus-visible img { transform: scale(1.07); }
.m-item:hover::after, .m-item:focus-visible::after { opacity: 1; }

/* ==========================================================================
   Admissions
   ========================================================================== */
.admissions__grid { display: grid; grid-template-columns: 1fr 0.95fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.urgency { display: inline-flex; align-items: center; gap: 0.55rem; background: rgba(215, 168, 75, 0.15); border: 1px solid rgba(215, 168, 75, 0.45); color: var(--gold); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius: 999px; margin-bottom: 1.5rem; }
.urgency__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(215, 168, 75, 0.55); } 50% { box-shadow: 0 0 0 6px rgba(215, 168, 75, 0); } }
.admissions__intro .h2 { color: #fff; margin-bottom: 1rem; }
.admissions__intro > p { color: #c6d5e8; max-width: 46ch; }
.admissions__list { display: grid; gap: 0.7rem; margin: 1.5rem 0 2rem; }
.admissions__list li { position: relative; padding-left: 1.7rem; color: #e2ebf6; font-size: 0.95rem; }
.admissions__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.admissions__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.enquiry { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.5rem); box-shadow: var(--shadow); color: var(--ink); }
.enquiry__title { margin-bottom: 0.25rem; }
.enquiry__hint { font-size: 0.8rem; color: var(--slate); margin-bottom: 1.5rem; }
.form { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field__opt { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.92rem; color: var(--ink); padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--alt);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); background: #fff; box-shadow: 0 0 0 4px rgba(36, 91, 145, 0.12); }
.field.is-invalid input, .field.is-invalid select { border-color: #c0392b; background: #fdf4f3; }
.field__error { margin: 0; font-size: 0.78rem; color: #c0392b; }
.form__privacy { font-size: 0.74rem; color: var(--slate); margin: 0; line-height: 1.55; }
.form__privacy a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 2px; }
.form-success .h3 { margin-bottom: 0.6rem; }
.form-success p { color: var(--slate); font-size: 0.92rem; }
.form-success__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__label { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-2); font-weight: 700; margin-bottom: 0.35rem; }
.contact__item p { margin: 0; }
.contact__item a { color: var(--ink); transition: color 0.2s ease; }
.contact__item a:hover { color: var(--blue-2); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: auto; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; border: 1px solid var(--border); background: #fff; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--blue-deep); color: #c4d2e6; padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.brand--footer { margin-bottom: 1.25rem; }
.brand--footer .brand__name { color: #fff; }
.footer-col--brand p { font-size: 0.9rem; color: #9fb4d0; max-width: 44ch; }
.footer-col__title { font-family: var(--font-display); color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a { font-size: 0.9rem; color: #c4d2e6; transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact { font-style: normal; font-size: 0.9rem; line-height: 1.9; color: #c4d2e6; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-top: 2rem; font-size: 0.8rem; color: #8ba3c4; }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Floating actions
   ========================================================================== */
.fab {
  position: fixed; z-index: 180; display: inline-flex; align-items: center; gap: 0.6rem;
  border-radius: 999px; font-weight: 600; font-size: 0.88rem;
  box-shadow: 0 16px 34px -14px rgba(9, 28, 52, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.fab:hover { transform: translateY(-3px); }
.fab--whatsapp { right: 1.5rem; bottom: 1.5rem; width: 58px; height: 58px; justify-content: center; background: #25d366; color: #fff; }
.fab--whatsapp .fab__label { display: none; }
.fab--whatsapp svg { width: 30px; height: 30px; }
.fab--apply { display: none; }

/* ==========================================================================
   Admission modal
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 1.25rem; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(9, 28, 52, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; z-index: 1; width: min(480px, 100%); background: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--shadow); text-align: center;
  transform: translateY(18px) scale(0.97); transition: transform 0.45s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 0.9rem; right: 0.9rem; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); background: #fff; border-radius: 50%; color: var(--blue); transition: background-color 0.25s ease; }
.modal__close:hover { background: var(--alt); }
.modal__badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-2); background: var(--blue-soft); padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: 1.1rem; }
.modal__title { margin-bottom: 0.75rem; }
.modal__text { color: var(--slate); font-size: 0.94rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(9, 22, 40, 0.95); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox__inner { position: relative; z-index: 1; width: min(1000px, 92vw); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.lightbox__figure { position: relative; margin: 0; max-width: 100%; transform: scale(0.96); transition: transform 0.4s var(--ease); }
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__figure img { max-width: 100%; max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); opacity: 0; transition: opacity 0.4s ease; }
.lightbox__figure img.is-loaded { opacity: 1; }
.lightbox__spinner { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--gold); border-radius: 50%; animation: lbSpin 0.8s linear infinite; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.lightbox__figure.is-loading .lightbox__spinner { opacity: 1; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
.lightbox__close { position: absolute; top: -3.25rem; right: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: transparent; color: #fff; transition: background-color 0.25s ease; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__nav { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: rgba(18, 52, 92, 0.6); color: #fff; transition: background-color 0.25s ease, transform 0.25s ease; }
.lightbox__nav:hover { background: var(--gold); color: #22303f; transform: scale(1.06); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header-inner { gap: 1rem; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }

  .story-block { grid-template-columns: 1fr; gap: 1.75rem; }
  .story-block--reverse .story-block__media { order: 0; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .framework__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .rules__inner, .leadership__inner { grid-template-columns: 1fr; }
  .leadership__media { max-width: 420px; }
  .admissions__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__map { min-height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: span 2; }
  .masonry { columns: 3; }
}

@media (max-width: 860px) {
  .facility-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .facility--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .section { scroll-margin-top: 82px; }
  .hero { min-height: auto; }
  .hero__overlay { background: linear-gradient(0deg, rgba(9, 28, 52, 0.95) 12%, rgba(9, 28, 52, 0.66) 62%, rgba(9, 28, 52, 0.5) 100%); }
  .hero__content { padding-block: clamp(3.5rem, 14vw, 5rem); }
  .hero__title { max-width: none; }
  .hero__scroll { display: none; }
  .masonry { columns: 2; }

  .fab--apply { display: inline-flex; left: 1rem; bottom: 1.5rem; right: auto; padding: 0.95rem 1.4rem; background: var(--gold); color: #22303f; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand__tag { display: none; }
  .brand__name { font-size: 0.95rem; }
  .brand__logo { width: 40px; height: 40px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__meta { gap: 0.5rem 1.25rem; }

  .stats__grid, .stages, .framework__grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .facility--wide { grid-column: auto; }
  .quote blockquote { font-size: 1.02rem; }

  .admissions__actions { flex-direction: column; align-items: stretch; }
  .admissions__actions .btn { width: 100%; }
  .contact__actions .btn { flex: 1; }
  .contact__map, .contact__map iframe { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col--brand { grid-column: auto; }

  .lightbox { padding: 1rem; }
  .lightbox__inner { width: 100%; gap: 0; }
  .lightbox__figure img { max-height: 64vh; }
  .lightbox__close { position: fixed; top: 0.9rem; right: 0.9rem; }
  .lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 0.6rem; }
  .lightbox__nav--next { right: 0.6rem; }

  .modal__actions { flex-direction: column; }
  .modal__actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .statement__text { font-size: 1.32rem; }
  .masonry { columns: 1; }
  .section { padding: 3.5rem 0; }
  .enquiry { padding: 1.4rem; }
  .footer-bottom { flex-direction: column; }
  .intro__skip { top: 1rem; right: 1rem; }
}

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