/* ==========================================================================
   Bharat Mata H.S. School — design system
   Motif: the India map + tricolour + open book from the school crest.
   Palette keeps the original brand navy (#2B2D7D) and gold (#DFAA27).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --navy-900: #14163f;
  --navy-800: #1b1e5c;
  --navy:     #2b2d7d;
  --navy-400: #4a4da8;
  --navy-200: #b9bbe0;

  --gold:      #dfaa27;
  --gold-soft: #f5c95a;
  --gold-deep: #b4860f;

  --saffron: #ff9933;
  --tri-white: #ffffff;
  --green:   #138808;
  --chakra:  #1f4fa8;

  --cream:   #fbf7ed;
  --cream-2: #f4eedf;
  --ink:     #22233f;
  --muted:   #5d5f78;
  --line:    rgba(43, 45, 125, .14);

  --bg:      #ffffff;
  --surface: #ffffff;

  /* type */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  /* rhythm */
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(20, 22, 63, .07);
  --shadow:    0 14px 40px rgba(20, 22, 63, .12);
  --shadow-lg: 0 30px 70px rgba(20, 22, 63, .20);

  --gutter: clamp(18px, 4vw, 48px);
  --section-y: clamp(30px, 3.2vw, 50px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --nav-h: 94px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15.5px, .42vw + 14.4px, 17px);
  line-height: 1.75;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; border-style: none; }
a { color: var(--navy); text-decoration: none; transition: color .35s var(--ease-soft); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
table { border-collapse: collapse; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--navy-800);
  margin: 0 0 .6em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.5rem); }
h4 { font-size: clamp(1.02rem, 1.2vw, 1.15rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: min(1240px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.wrap--narrow { width: min(920px, 100% - var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy-900); color: #e8e9ff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.grid { display: grid; gap: clamp(18px, 2.2vw, 30px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- 4. Section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  border-radius: 2px;
}
.section--navy .eyebrow { color: var(--gold-soft); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--saffron));
  border-radius: 2px;
}

.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  color: var(--muted);
  max-width: 62ch;
}
.section--navy .lede { color: #b7bbe8; }

/* underline that draws itself when the heading scrolls in */
.uline { position: relative; display: inline; background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 .22em; transition: background-size 1.1s .25s var(--ease-out); }
.is-in .uline, .is-in.uline { background-size: 100% .22em; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .94rem;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), color .35s;
  box-shadow: 0 10px 26px rgba(43, 45, 125, .26);
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .45s var(--ease-out); }
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--gold), var(--saffron));
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
  z-index: -1;
}
.btn:hover, .btn:focus-visible {
  color: var(--navy-900);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(223, 170, 39, .42);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover svg { transform: translateX(5px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px transparent, 0 18px 38px rgba(223, 170, 39, .42); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--navy-800);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy-900); box-shadow: 0 10px 26px rgba(223,170,39,.35); }
.btn--gold::before { background: linear-gradient(120deg, var(--navy), var(--navy-400)); }
.btn--gold:hover { color: #fff; }

/* ---------- 6. Preloader ---------- */
#preloader {
  position: fixed; inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  transition: opacity .7s var(--ease-soft), visibility .7s;
}
#preloader .pre-inner { text-align: center; }
#preloader .pre-crest {
  position: relative;
  width: clamp(120px, 18vw, 168px);
  margin-inline: auto;
}
#preloader .pre-crest .crest {
  width: 100%;
  opacity: 0;
  transform: scale(.6) rotate(-12deg);
  animation: crestIn 1s .15s var(--ease-out) forwards;
}
/* gold ring drawn around the crest -- a circle, so nothing to get wrong */
#preloader .pre-ring {
  position: absolute;
  left: -12%; top: -12%;
  width: 124%; height: 124%;
  transform: rotate(-90deg);
  overflow: visible;
}
#preloader .pre-ring circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: ringDraw 1.6s .4s var(--ease-soft) forwards;
}
#preloader .pre-crest::after {
  content: '';
  position: absolute;
  left: -12%; top: -12%;
  width: 124%; height: 124%;
  border-radius: 50%;
  animation: crestPulse 1.6s 1.9s ease-out infinite;
}
@keyframes crestIn   { to { opacity: 1; transform: none; } }
@keyframes ringDraw  { to { stroke-dashoffset: 0; } }
@keyframes crestPulse {
  0%   { box-shadow: 0 0 0 0 rgba(223, 170, 39, .5); }
  100% { box-shadow: 0 0 0 26px rgba(223, 170, 39, 0); }
}

#preloader .pre-name {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: #fff;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: 0;
  animation: preUp .8s 1.5s var(--ease-out) forwards;
}
#preloader .pre-bar {
  width: 190px; height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}
#preloader .pre-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--saffron), #fff, var(--green));
  animation: preBar 2.1s var(--ease-soft) forwards;
}
@keyframes preBar { to { width: 100%; } }
@keyframes preUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

body.loaded #preloader { opacity: 0; visibility: hidden; }

/* ---------- 7. Scroll progress + cursor + back-to-top ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  z-index: 1200;
  background: linear-gradient(90deg, var(--saffron) 0%, #fff 50%, var(--green) 100%);
  box-shadow: 0 0 12px rgba(255, 153, 51, .7);
  transition: width .1s linear;
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  z-index: 1500;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; margin: -3.5px 0 0 -3.5px; }
.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(255, 255, 255, .85);
  transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s;
}
body.cursor-ready .cursor-dot, body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(255, 255, 255, .12);
}
body.cursor-hover .cursor-dot { opacity: 0; }

#to-top {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  width: 54px; height: 54px;
  z-index: 1100;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.8);
  transition: all .5s var(--ease-out);
}
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-4px); }
#to-top svg { width: 19px; height: 19px; position: relative; z-index: 1; }
#to-top .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
#to-top .ring circle { fill: none; stroke-width: 2.5; }
#to-top .ring .bg { stroke: rgba(255, 255, 255, .2); }
#to-top .ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
#to-top:hover .ring .fg { stroke: var(--navy); }

/* ---------- 8. Page transition curtain ---------- */
#curtain {
  position: fixed; inset: 0;
  z-index: 1900;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
#curtain span {
  background: var(--navy-900);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease-out);
}
#curtain.out span { transform: scaleY(1); transform-origin: bottom; }
#curtain.out span:nth-child(2) { transition-delay: .07s; }
#curtain.out span:nth-child(3) { transition-delay: .14s; }
#curtain.out span:nth-child(4) { transition-delay: .21s; }
#curtain.out span:nth-child(5) { transition-delay: .28s; }

/* ---------- 9. Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #c9cbf0;
  font-size: .8rem;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  min-height: 42px;
  padding-block: 6px;
}
.topbar-list { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.topbar a, .topbar span.tb { display: inline-flex; align-items: center; gap: 7px; color: #c9cbf0; }
.topbar a:hover { color: var(--gold-soft); }
.topbar svg { width: 14px; height: 14px; flex: none; color: var(--gold); }
.topbar .tri-dot { display: inline-flex; gap: 4px; }
.topbar .tri-dot i { width: 6px; height: 6px; border-radius: 50%; display: block; animation: triPulse 2.4s infinite; }
.topbar .tri-dot i:nth-child(1) { background: var(--saffron); }
.topbar .tri-dot i:nth-child(2) { background: #fff; animation-delay: .25s; }
.topbar .tri-dot i:nth-child(3) { background: var(--green); animation-delay: .5s; }
@keyframes triPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .55; } }

/* ---------- 10. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s, background .4s, padding .4s;
}
.nav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), #fff 45%, var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.nav.stuck { box-shadow: 0 10px 34px rgba(20, 22, 63, .12); background: rgba(255, 255, 255, .96); }
.nav.stuck::after { transform: scaleX(1); }

.nav .wrap, .topbar .wrap { width: min(1460px, 100% - 40px); }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--nav-h);
  transition: min-height .4s var(--ease-soft);
}
.nav.stuck .wrap { min-height: 74px; }

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: height .4s var(--ease-soft), transform .6s var(--ease-out);
}
.nav.stuck .brand-logo { height: 54px; }
.brand:hover .brand-logo { transform: scale(1.03); }

.nav-links { display: flex; align-items: center; gap: clamp(2px, .8vw, 8px); list-style: none; }
.nav-links a {
  position: relative;
  display: block;
  white-space: nowrap;
  padding: 10px 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 10px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--green));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--navy); }

.nav-cta { flex: none; }

/* hamburger */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: #2b2d7d;
  background: var(--navy);
  transition: background .4s;
}
.burger i {
  display: block;
  width: 20px; height: 2px;
  margin: 2.5px auto;
  background: #fff;
  border-radius: 2px;
  transition: transform .45s var(--ease-out), opacity .3s, width .45s var(--ease-out);
}
.burger i:nth-child(2) { width: 14px; }
body.menu-open .burger { background: var(--gold); }
body.menu-open .burger i { background: var(--navy-900); }
body.menu-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 20px; }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-900);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 46px) 46px);
  transition: clip-path .75s var(--ease-out);
  visibility: hidden;
}
body.menu-open .drawer { clip-path: circle(150% at calc(100% - 46px) 46px); visibility: visible; }
.drawer-links { list-style: none; }
.drawer-links li { overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.drawer-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 2px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6.5vw, 2.1rem);
  color: #fff;
  transform: translateY(105%);
  transition: transform .7s var(--ease-out), color .3s;
}
.drawer-links a em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .12em;
}
body.menu-open .drawer-links a { transform: none; }
body.menu-open .drawer-links li:nth-child(1) a { transition-delay: .18s; }
body.menu-open .drawer-links li:nth-child(2) a { transition-delay: .24s; }
body.menu-open .drawer-links li:nth-child(3) a { transition-delay: .30s; }
body.menu-open .drawer-links li:nth-child(4) a { transition-delay: .36s; }
body.menu-open .drawer-links li:nth-child(5) a { transition-delay: .42s; }
body.menu-open .drawer-links li:nth-child(6) a { transition-delay: .48s; }
body.menu-open .drawer-links li:nth-child(7) a { transition-delay: .54s; }
body.menu-open .drawer-links li:nth-child(8) a { transition-delay: .60s; }
.drawer-links a:hover { color: var(--gold); }
.drawer-foot { margin-top: 34px; color: #a9ace0; font-size: .9rem; opacity: 0; transition: opacity .5s .6s; }
body.menu-open .drawer-foot { opacity: 1; }
.drawer-foot a { color: var(--gold-soft); }
.drawer-map {
  position: absolute;
  right: -60px; bottom: -40px;
  width: min(60vw, 380px);
  opacity: .07;
  pointer-events: none;
  animation: floatY 9s ease-in-out infinite;
}

/* ---------- 11. Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 80vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.14);
  transition: opacity 1.5s var(--ease-soft);
}
.hero-slide.on {
  opacity: 1;
  animation: kenBurns 9s linear forwards;
}
@keyframes kenBurns { from { transform: scale(1.14); } to { transform: scale(1); } }

.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(14, 16, 48, .72) 0%, rgba(14, 16, 48, .44) 34%, rgba(14, 16, 48, .10) 62%, rgba(14, 16, 48, 0) 100%),
    linear-gradient(to top, rgba(14, 16, 48, .55) 0%, rgba(14, 16, 48, 0) 34%);
}
#hero-canvas { position: absolute; inset: 0; z-index: 2; opacity: .28; }


.hero-inner { position: relative; z-index: 3; padding-block: clamp(36px, 5.5vh, 68px); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px 6px 8px;
  border-radius: 100px;
  background: rgba(14, 16, 48, .42);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-badge .tri-flag {
  width: 30px; height: 20px;
  display: block;
  border-radius: 3px;
  flex: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 6px rgba(8, 9, 28, .55), 0 6px 30px rgba(8, 9, 28, .75);
  font-size: clamp(1.75rem, 4.1vw, 3.25rem);
  line-height: 1.06;
  margin-bottom: 16px;
  max-width: 19ch;
}
.hero h1 .accent, .hero h1 .accent .w > span, h2 .accent {
  background: linear-gradient(100deg, var(--gold-soft), var(--saffron) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero p.hero-sub {
  color: #e2e4fb;
  text-shadow: 0 1px 4px rgba(8, 9, 28, .7), 0 4px 18px rgba(8, 9, 28, .85);
  font-size: clamp(.94rem, 1.05vw, 1.05rem);
  max-width: 52ch;
  margin-bottom: 26px;
}
.hero .typed-line {
  display: block;
  min-height: 1.6em;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: .01em;
}
.typed-caret {
  display: inline-block;
  width: 2px;
  background: var(--gold);
  margin-left: 3px;
  animation: caret .9s steps(2) infinite;
  vertical-align: -3px;
  height: 1.05em;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* per-word reveal */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-words .w > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform .95s var(--ease-out);
}
.reveal-words.is-in .w > span { transform: none; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.6vw, 38px);
  margin-top: clamp(18px, 2.4vw, 28px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .17);
}
.hero-meta div b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(8, 9, 28, .8);
}
.hero-meta div span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #dcdef5; text-shadow: 0 1px 4px rgba(8, 9, 28, .9); }

/* slide controls */
.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%; translate: -50% 0;
  bottom: 28px;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 34px; height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .32);
  overflow: hidden;
  position: relative;
  transition: width .5s var(--ease-out);
}
.hero-dots button.on { width: 62px; background: rgba(255, 255, 255, .28); }
.hero-dots button.on::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform-origin: left;
  animation: dotFill 6s linear forwards;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.scroll-cue {
  position: absolute;
  z-index: 4;
  left: var(--gutter);
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #cdd0f2;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.scroll-cue i {
  width: 22px; height: 34px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  position: relative;
  flex: none;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  left: 50%; translate: -50% 0;
  top: 6px;
  width: 3px; height: 7px;
  border-radius: 3px;
  background: var(--gold);
  animation: wheel 1.7s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- 12. Ribbon marquee ---------- */
.ribbon {
  background: linear-gradient(95deg, var(--saffron), var(--gold) 38%, #fff 50%, var(--gold) 62%, var(--green));
  padding: 13px 0;
  overflow: hidden;
  border-block: 1px solid rgba(20, 22, 63, .1);
}
.ribbon-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-inline: 20px;
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.6vw, 1.25rem);
  font-weight: 600;
  color: var(--navy-900);
  white-space: nowrap;
}
.ribbon-track span::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--navy-800);
  flex: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 13. Cards / features ---------- */
.card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
  transform-style: preserve-3d;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--saffron), var(--gold), var(--green));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s;
}
.card:hover { transform: translateY(-9px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card-ico {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(43, 45, 125, .1), rgba(223, 170, 39, .18));
  color: var(--navy);
  margin-bottom: 18px;
  transition: transform .6s var(--ease-out), background .5s, color .5s;
}
.card-ico svg { width: 28px; height: 28px; }
.card:hover .card-ico { transform: rotate(-9deg) scale(1.1); background: var(--navy); color: var(--gold); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-no {
  position: absolute;
  right: 18px; top: 10px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--navy);
  opacity: .06;
  line-height: 1;
  transition: opacity .5s, transform .6s var(--ease-out);
}
.card:hover .card-no { opacity: .13; transform: scale(1.14) rotate(5deg); }

/* ---------- 14. Split media block ---------- */
.split { display: grid; gap: clamp(24px, 2.8vw, 44px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .split--flip .split-media { order: 2; }
  .split-media { display: flex; flex-direction: column; }
  .split-media .frame { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }
  .split > :not(.split-media) { align-self: center; }
}

.split-media { position: relative; }
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.frame:hover img { transform: scale(1.07); }
.frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 22, 63, .5), transparent 55%);
  pointer-events: none;
}
/* gold outline that draws in */
.frame-deco {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s .3s var(--ease-out);
}
.is-in .frame-deco { clip-path: inset(0 0 0 0); }

.float-badge {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 13px;
  animation: floatY 5.5s ease-in-out infinite;
}
.float-badge svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.float-badge b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-800); line-height: 1; }
.float-badge span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.float-badge--br { right: -10px; bottom: -22px; }
.float-badge--tl { left: -14px; top: -20px; animation-delay: -2.4s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

.tick-list { list-style: none; display: grid; gap: 13px; margin: 24px 0 0; }
.tick-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--muted); }
.tick-list li svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 3px; }
.section--navy .tick-list li { color: #c3c6ee; }

/* ---------- 15. Counters ---------- */
.stats { position: relative; overflow: hidden; }
.stats-map {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: min(80vw, 560px);
  opacity: .05;
  pointer-events: none;
}
.stat { text-align: center; position: relative; padding: 14px 10px; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.03em;
}
.stat span { display: block; margin-top: 10px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #b7bbe8; font-weight: 600; }
.stat + .stat::before {
  content: '';
  position: absolute; left: 0; top: 18%;
  height: 64%; width: 1px;
  background: rgba(255, 255, 255, .16);
}
@media (max-width: 719px) { .stat + .stat::before { display: none; } }

/* ---------- 16. Gallery marquee (home) ---------- */
.gal-marquee { overflow: hidden; display: grid; gap: 16px; padding-block: 6px; }
.gal-row { display: flex; gap: 16px; width: max-content; }
.gal-row--a { animation: marquee 48s linear infinite; }
.gal-row--b { animation: marquee 58s linear infinite reverse; }
.gal-marquee:hover .gal-row { animation-play-state: paused; }
.gal-row figure {
  width: clamp(190px, 25vw, 310px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.gal-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .6s; filter: saturate(.92); }
.gal-row figure:hover img { transform: scale(1.09); filter: saturate(1.15); }
.gal-row figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 22, 63, .55), transparent 50%);
  opacity: 0;
  transition: opacity .5s;
}
.gal-row figure:hover::after { opacity: 1; }

/* ---------- 17. Filterable gallery grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filters button {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: .87rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: all .4s var(--ease-out);
}
.filters button:hover { color: var(--navy); transform: translateY(-2px); }
.filters button.on { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 8px 20px rgba(43, 45, 125, .3); }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.gal-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  cursor: pointer;
  opacity: 0;
  transform: scale(.92) translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), box-shadow .5s;
}
.gal-item.in { opacity: 1; transform: none; }
.gal-item.hide { display: none; }
.gal-item:nth-child(3n) { aspect-ratio: 1 / 1.22; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gal-item:hover { box-shadow: var(--shadow); }
.gal-item:hover img { transform: scale(1.1); }
.gal-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 15px;
  background: linear-gradient(to top, rgba(20, 22, 63, .9), transparent);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: capitalize;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.gal-item:hover figcaption { transform: none; }
.gal-item .zoom-ico {
  position: absolute;
  right: 12px; top: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  opacity: 0;
  transform: scale(.5) rotate(-40deg);
  transition: all .5s var(--ease-out);
}
.gal-item .zoom-ico svg { width: 17px; height: 17px; }
.gal-item:hover .zoom-ico { opacity: 1; transform: none; }

/* lightbox */
#lightbox {
  position: fixed; inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 50px);
  background: rgba(10, 11, 32, .94);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s, visibility .45s;
}
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(.9);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .5s;
}
#lightbox.open img { transform: none; opacity: 1; }
#lightbox .lb-cap { margin-top: 16px; color: #cfd2f4; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; }
#lightbox .lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background .35s, transform .35s;
}
#lightbox .lb-btn:hover { background: var(--gold); color: var(--navy-900); transform: scale(1.1); }
#lightbox .lb-btn svg { width: 20px; height: 20px; }
#lb-close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
#lb-prev { left: clamp(10px, 2.4vw, 28px); top: 50%; translate: 0 -50%; }
#lb-next { right: clamp(10px, 2.4vw, 28px); top: 50%; translate: 0 -50%; }

/* ---------- 18. Timeline ---------- */
.timeline { position: relative; padding-left: 42px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 6px;
  width: 2px; height: 100%;
  background: linear-gradient(var(--saffron), var(--gold), var(--green));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--ease-out);
}
.timeline.is-in::before { transform: scaleY(1); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -37px; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(223, 170, 39, .16);
  transition: transform .5s var(--ease-out), background .4s;
}
.tl-item:hover::before { background: var(--gold); transform: scale(1.25); }
.tl-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.tl-item p { color: var(--muted); margin: 0; }
.section--navy .tl-item p { color: #c0c3ec; }
.section--navy .tl-item::before { background: var(--navy-900); }

/* ---------- 19. Accordion ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 600;
  color: var(--navy-800);
  transition: color .35s;
}
.acc-head:hover { color: var(--gold-deep); }
.acc-head .sign {
  width: 36px; height: 36px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  position: relative;
  transition: background .4s, transform .5s var(--ease-out);
}
.acc-head .sign::before, .acc-head .sign::after {
  content: '';
  position: absolute;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .45s var(--ease-out), background .4s;
}
.acc-head .sign::before { width: 14px; height: 2px; }
.acc-head .sign::after { width: 2px; height: 14px; }
.acc-item.open .acc-head .sign { background: var(--navy); transform: rotate(180deg); }
.acc-item.open .acc-head .sign::before, .acc-item.open .acc-head .sign::after { background: #fff; }
.acc-item.open .acc-head .sign::after { transform: scaleY(0); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body .inner { padding: 0 4px 24px; color: var(--muted); }
.acc-body .inner ul { padding-left: 20px; }
.acc-body .inner li { margin-bottom: 9px; }

/* ---------- 20. Page header (inner pages) ---------- */
.phead {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 64vh;
  padding-block: clamp(34px, 4.4vw, 62px);
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
}
/* The photograph is shown at full strength — only a scrim on the text side
   keeps the heading readable, the same treatment the home hero uses. */
.phead-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 32%;
  opacity: 1;
  z-index: -2;
  transform: scale(1.08);
  animation: kenBurns 14s ease-out forwards;
}
.phead::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(14, 16, 48, .78) 0%, rgba(14, 16, 48, .5) 34%, rgba(14, 16, 48, .14) 64%, rgba(14, 16, 48, 0) 100%),
    linear-gradient(to top, rgba(14, 16, 48, .62) 0%, rgba(14, 16, 48, 0) 46%);
}
.phead h1 {
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(8, 9, 28, .55), 0 6px 30px rgba(8, 9, 28, .75);
}
.phead .lede {
  color: #e2e4fb;
  text-shadow: 0 1px 4px rgba(8, 9, 28, .7), 0 4px 18px rgba(8, 9, 28, .85);
}
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: .84rem; color: #dcdef5; list-style: none; text-shadow: 0 1px 6px rgba(8, 9, 28, .85); }
.crumb a { color: var(--gold-soft); }
.crumb a:hover { color: #fff; }
.crumb li:not(:last-child)::after { content: '/'; margin-left: 9px; opacity: .5; }

/* ---------- 21. Prose (inner page copy) ---------- */
.prose { color: var(--muted); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: none; display: grid; gap: 12px; margin: 0 0 1.3em; }
.prose ul li { position: relative; padding-left: 32px; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 16px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--green));
}
/* tick lists bring their own icon — don't add the prose dash on top of it */
.prose .tick-list li { padding-left: 0; }
.prose .tick-list li::before { content: none; }

.prose strong, .prose b { color: var(--navy-800); }
.prose a { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid rgba(180, 134, 15, .35); }
.prose a:hover { color: var(--navy); }

.info-card {
  border-radius: var(--radius-lg);
  background: var(--cream);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
}

/* contact rows */
.con-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.con-row:last-child { border-bottom: 0; }
.con-row .ico {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
  transition: transform .5s var(--ease-out);
}
.con-row:hover .ico { transform: rotate(-10deg) scale(1.08); }
.con-row .ico svg { width: 21px; height: 21px; }
.con-row b { display: block; color: var(--navy-800); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 3px; }
.con-row p { margin: 0; color: var(--muted); }

/* table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.table-wrap table { width: 100%; min-width: 540px; font-size: .92rem; }
.table-wrap th, .table-wrap td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--navy); color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.table-wrap tbody tr { transition: background .35s; }
.table-wrap tbody tr:hover { background: var(--cream); }
.table-wrap td ul { margin: 0; padding-left: 18px; }
.table-wrap td p { margin: 0; }

/* ---------- 22. CTA ---------- */
.cta {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 42px);
  background: linear-gradient(120deg, var(--navy-800), var(--navy) 55%, var(--navy-400));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  right: -110px; top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 170, 39, .34), transparent 68%);
  animation: floatY 8s ease-in-out infinite;
}
.cta h2 { color: #fff; }
.cta p { color: #ccceef; }
.cta-map { position: absolute; right: 4%; bottom: -46px; width: clamp(150px, 20vw, 240px); opacity: .14; z-index: -1; }

/* ---------- 23. Footer ---------- */
.foot { background: var(--navy-900); color: #a9ace0; padding-top: clamp(32px, 3.4vw, 46px); position: relative; overflow: hidden; }
.foot-tri { height: 4px; background: linear-gradient(90deg, var(--saffron) 33%, #fff 33% 66%, var(--green) 66%); }
.foot-grid { display: grid; gap: clamp(24px, 3vw, 38px); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot h4 { color: #fff; font-size: .82rem; letter-spacing: .17em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 18px; }
.foot-links { list-style: none; display: grid; gap: 11px; }
.foot-links a { color: #a9ace0; font-size: .93rem; display: inline-flex; align-items: center; gap: 8px; }
.foot-links a::before {
  content: '';
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .4s var(--ease-out);
}
.foot-links a:hover { color: #fff; }
.foot-links a:hover::before { width: 14px; }
.foot-brand img {
  max-width: 260px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.foot p { font-size: .93rem; }
.foot p a { color: var(--gold-soft); }
.foot p a:hover { color: #fff; }
.foot-social { display: flex; gap: 11px; margin-top: 20px; }
.foot-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: all .45s var(--ease-out);
}
.foot-social a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-4px) rotate(-8deg); }
.foot-social svg { width: 18px; height: 18px; }
.foot-map {
  position: absolute;
  left: 50%; translate: -50% 0;
  bottom: -70px;
  width: min(70vw, 460px);
  opacity: .045;
  pointer-events: none;
}
.foot-bottom {
  margin-top: clamp(26px, 3.2vw, 40px);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}
.foot-bottom a { color: var(--gold-soft); }

/* ---------- 24. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), clip-path 1.1s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(46px); }
[data-reveal="down"]  { transform: translateY(-40px); }
[data-reveal="left"]  { transform: translateX(-52px); }
[data-reveal="right"] { transform: translateX(52px); }
[data-reveal="zoom"]  { transform: scale(.88); }
[data-reveal="flip"]  { transform: perspective(900px) rotateX(-22deg); transform-origin: top; }
[data-reveal="clip"]  { clip-path: inset(0 0 100% 0); transform: none; }
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ---------- 25. Misc ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 2100;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.err-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 14rem);
  line-height: .85;
  background: linear-gradient(120deg, var(--navy), var(--gold) 60%, var(--saffron));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 26. Responsive ---------- */
@media (max-width: 1320px) {
  .nav-cta { display: none; }
}
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}
@media (min-width: 1141px) {
  .drawer { display: none; }
}
@media (max-width: 720px) {
  :root { --nav-h: 76px; }
  .brand-logo { height: 52px; }
  .nav.stuck .brand-logo { height: 44px; }
  .topbar { font-size: .74rem; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar-list { justify-content: center; gap: 6px 14px; }
  .topbar a, .topbar span.tb { overflow-wrap: anywhere; }
  .hero { min-height: 80vh; }
  .phead { min-height: 48vh; }
  .float-badge--br { right: 6px; bottom: -16px; padding: 12px 15px; }
  .float-badge--tl { left: 4px; top: -14px; padding: 12px 15px; }
  .frame-deco { inset: 12px -12px -12px 12px; }
  .scroll-cue { display: none; }
  .timeline { padding-left: 34px; }
  .tl-item::before { left: -31px; }
}

/* ---------- 27. Motion / contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal-words .w > span { transform: none !important; }
  .hero-slide.on { opacity: 1; }
  .cursor-dot, .cursor-ring { display: none; }
}

@media print {
  .nav, .topbar, .drawer, #to-top, #preloader, #curtain, .hero-dots, .scroll-cue, .ribbon { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 480px) {
  .topbar-list li.tb-email { display: none; }
  .brand-logo { height: 46px; }
  .nav.stuck .brand-logo { height: 40px; }
}

/* ---------- 28. School crest (cut from images/header.png) ---------- */
/* header.png is 800x221; the round crest sits at x=19..225, y=7..213, a 207px
   square. The box is square and the image is offset so that square fills it:
   height 221/207, left -19/207, top -7/207.                                   */
/* :where() keeps this at zero specificity, so the watermark classes
   (.hero-map, .stats-map, .foot-map ...) can still position it absolutely no
   matter where they sit in this file. Relative or absolute, either one gives
   the <img> below the containing block it needs.                           */
:where(.crest) {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}
.crest img {
  position: absolute;
  max-width: none;
  width: auto;
  height: 106.76%;
  left: -9.18%;
  top: -3.38%;
}
/* On dark grounds the ring lettering (drawn on transparency) vanishes, so give
   the crest its white disc back, with the art inset to 90% as a thin rim.     */
.crest--plate {
  background: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}
.crest--plate img {
  height: 96.08%;
  left: -3.26%;
  top: 1.96%;
}

/* centred emblem above the crest motto on Vision & Mission */
.vm-crest {
  width: clamp(92px, 11vw, 128px);
  margin: 0 auto 24px;
  animation: floatY 7s ease-in-out infinite;
}
