/* =========================================================
   Oxford Magnet School — Oxford Blue + White, Gold accent,
   Orange reserved for admission CTAs only.
   ========================================================= */
:root {
  --navy-900: #061634;
  --navy-800: #0A2149;
  --navy: #0B2A5B;          /* Oxford Blue */
  --navy-600: #1A3F7A;
  --navy-100: #E6ECF6;
  --tint: #F4F7FC;
  --white: #FFFFFF;
  --gold: #C9A227;
  --gold-soft: #E9D48A;
  --gold-50: #FBF6E4;
  --orange: #C74E06;        /* burnt orange: 4.6:1 with white text */
  --orange-600: #A94104;
  --gold-text: #876A0E;     /* gold for small text on light backgrounds */
  --ink: #14213D;
  --muted: #5A6784;
  --line: #DDE4F0;
  --wa: #15803D;            /* WhatsApp green, darkened for readable white text */

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(11, 42, 91, .06);
  --shadow: 0 12px 32px -12px rgba(11, 42, 91, .22);
  --shadow-lg: 0 30px 60px -20px rgba(6, 22, 52, .35);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16.5px; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* side-slide reveal animations must never create sideways scrolling */
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(199, 78, 6, .7); }
.btn-orange:hover { background: var(--orange-600); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #116B33; }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; width: min(1380px, 100% - 40px); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 700; }
.brand-text small { font-size: .72rem; color: var(--gold-text); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a { padding: 8px 9px; font-size: .87rem; white-space: nowrap; font-weight: 600; color: var(--ink); border-radius: 8px; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); background: var(--navy-100); }
.nav-mobile-cta { display: none !important; }
.header-cta { padding: .7em 1.15em; font-size: .85rem; }
.header-call { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wa); color: #fff; margin-left: auto; flex: none; }
.header-call .ic { width: 22px; height: 22px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--navy); padding: 8px; }
.menu-toggle .ic { width: 28px; height: 28px; }

/* ---------- Common section ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-tint { background: var(--tint); }
.section-navy { background: radial-gradient(1200px 500px at 80% -10%, #16407f 0%, transparent 60%), var(--navy); color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.eyebrow { color: var(--gold-text); }
.eyebrow.eyebrow-light { color: var(--gold-soft); }
.hero .eyebrow::before { display: none; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--navy); letter-spacing: -.01em; margin-bottom: 16px; }
.section-title.sm { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.section-title.light { color: #fff; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-sub.light { color: rgba(255,255,255,.78); }
.lead { font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.muted-light { color: rgba(255,255,255,.75); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(900px 600px at 85% 30%, #1d4c93 0%, transparent 60%), linear-gradient(160deg, #0B2A5B, #061634);
}
/* Campus photo sits under the blue overlay (::before) and dot pattern (::after). */
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(6,22,52,.96) 0%, rgba(11,42,91,.88) 48%, rgba(11,42,91,.55) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .08;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}
.hero .eyebrow { color: var(--gold-soft); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 8px 14px; border-radius: 999px; letter-spacing: .12em; }
.hero .eyebrow .pulse-dot { color: var(--orange); }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.02em; line-height: 1.04; margin: 10px 0 18px; }
.gold-text { background: linear-gradient(90deg, #F3DC8B, #C9A227 60%, #E9C766); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-years { font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin-bottom: 14px; color: rgba(255,255,255,.9); }
.hero-years strong { color: var(--gold-soft); }
.hero-pillars { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 30px; color: rgba(255,255,255,.8); font-weight: 600; font-size: .98rem; }
.hero-pillars span:not(:last-child)::after { content: "•"; margin: 0 12px; color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: rgba(255,255,255,.82); }
.hero-contact a, .hero-contact span { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.hero-contact a:hover { color: #fff; }
.hero-contact .ic { color: var(--gold-soft); }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-emblem { position: relative; width: min(340px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero-emblem::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.35), rgba(201,162,39,0) 68%);
  filter: blur(10px); animation: glow 5s ease-in-out infinite alternate;
}
@keyframes glow { from { transform: scale(.95); opacity: .7; } to { transform: scale(1.05); opacity: 1; } }
.hero-emblem img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.badge-30 {
  position: absolute; right: -6%; top: 6%; width: 112px; height: 112px; border-radius: 50%;
  background: linear-gradient(145deg, #F3DC8B, #C9A227); color: var(--navy-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 16px 32px -8px rgba(0,0,0,.5), inset 0 0 0 4px rgba(255,255,255,.35);
}
.badge-30 .num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.badge-30 .lbl { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; }
.programme-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.chip-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(8px); }
.chip-grade { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); font-weight: 800; margin-bottom: 4px; }
.chip-prog { font-weight: 600; font-size: .92rem; line-height: 1.35; }

.trust-strip { position: relative; z-index: 1; background: rgba(255,255,255,.06); border-top: 1px solid rgba(255,255,255,.12); }
.trust-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 18px 0; }
.trust-inner span { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.9); }
.trust-inner .ic { color: var(--gold); width: 1.3em; height: 1.3em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold-50); border-bottom: 1px solid #F0E4B8; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 26px 0; flex-wrap: wrap; }
.cta-band-kicker { margin: 0 0 2px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #A94104; }
.cta-band h2 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy p { color: var(--muted); }
.about-copy .lead { color: var(--navy); }
.promise { margin-top: 28px; padding: 20px 24px; border-left: 4px solid var(--gold); background: var(--gold-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.promise-label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.promise p { margin: 4px 0 0; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }
.stat:first-child p { color: rgba(255,255,255,.8); }
.stat:first-child .stat-num, .stat:first-child .stat-suffix { color: var(--gold-soft); }
.stat-num, .stat-suffix, .stat-text { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; color: var(--navy); line-height: 1; }
.stat-text { font-size: clamp(1.7rem, 3vw, 2.2rem); display: block; min-height: 1em; }
.stat p { margin: 10px 0 0; color: var(--muted); font-weight: 600; font-size: .92rem; line-height: 1.4; }

/* ---------- Feature cards ---------- */
.card-grid { display: grid; gap: 18px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon-wrap { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-100); color: var(--navy); margin-bottom: 18px; transition: background .3s, color .3s; }
.icon-wrap .ic { width: 26px; height: 26px; }
.feature-card:hover .icon-wrap { background: var(--navy); color: var(--gold-soft); }
.feature-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.feature-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Programmes ---------- */
.programmes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.programme { border-radius: 24px; padding: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.programme-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; border-color: transparent; }
.programme-grade { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--gold-50); color: #8A6D12; margin-bottom: 16px; }
.programme-dark .programme-grade { background: rgba(201,162,39,.18); color: var(--gold-soft); }
.programme h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.programme-dark h3 { color: #fff; }
.programme-top p { color: var(--muted); }
.programme-dark .programme-top p { color: rgba(255,255,255,.75); }
.programme-note { margin: auto 0 0; padding-top: 20px; border-top: 1px dashed var(--line); font-style: italic; color: var(--muted); font-size: .95rem; }
.programme-dark .programme-note { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.75); }
.tick-list { display: grid; gap: 10px; margin-bottom: 24px; }
.tick-list.cols-2 { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.tick-list li { position: relative; padding-left: 30px; font-weight: 600; font-size: .95rem; line-height: 1.45; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A5B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.programme-dark .tick-list li::before, .section-navy .tick-list li::before {
  background-color: rgba(201,162,39,.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E9D48A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Methodology ---------- */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.method { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 26px; transition: background .3s, transform .3s, border-color .3s; }
.method:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); border-color: rgba(201,162,39,.5); }
.method-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; }
.method h3 { font-size: 1.15rem; margin-bottom: 8px; }
.method p { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }

/* ---------- Skills ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.skill-panel { border-radius: 24px; padding: clamp(28px, 4vw, 44px); background: var(--tint); border: 1px solid var(--line); }
.skill-panel p { color: var(--muted); }
.skill-panel-gold { background: var(--gold-50); border-color: #F0E4B8; }
.pill-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill-cloud span { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy); transition: background .2s, color .2s, transform .2s; }
.pill-cloud span:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.skill-panel-gold .pill-cloud span { border-color: #EBDDA8; }

/* ---------- Leadership ---------- */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.leader { display: grid; grid-template-columns: 150px 1fr; gap: 28px; background: #fff; border-radius: 24px; padding: 32px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); align-items: start; }
.leader-photo { position: relative; width: 150px; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: linear-gradient(150deg, var(--navy), var(--navy-900)); display: grid; place-items: center; box-shadow: inset 0 0 0 3px var(--gold); }
.leader-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.leader-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--gold); z-index: 2; pointer-events: none; }
.initials { font-family: var(--serif); font-size: 2.8rem; color: var(--gold-soft); font-weight: 600; }
.leader h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.leader .role { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin: 6px 0 14px; }
.leader-body p:not(.role) { color: var(--muted); font-size: .96rem; }
.vision-quote { margin: 40px auto 0; max-width: 880px; text-align: center; padding: 40px clamp(20px, 5vw, 60px); background: var(--navy); color: #fff; border-radius: 24px; position: relative; }
.quote-ic { width: 40px; height: 40px; color: var(--gold); margin: 0 auto 10px; display: block; }
.vision-quote p { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; margin: 0 0 14px; font-weight: 500; }
.vision-quote cite { font-style: normal; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 800; }

/* ---------- Activities ---------- */
.activity-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.activity { --tone: var(--navy); position: relative; overflow: hidden; border-radius: var(--radius); padding: 28px 22px 26px; background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.activity::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tone); }
.activity:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.activity .ic { width: 40px; height: 40px; color: var(--tone); margin-bottom: 16px; stroke-width: 1.6; }
.activity h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.activity p { color: var(--muted); font-size: .9rem; margin: 0; }
.playgrounds { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.playgrounds-media { position: relative; min-height: 340px; background: linear-gradient(160deg, #1D6B4A 0%, #0E3D2A 100%); display: grid; place-items: center; overflow: hidden; }
.playgrounds-media::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 40px, transparent 40px 80px); }
.playgrounds-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-big { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; color: #fff; background: rgba(6,22,52,.55); backdrop-filter: blur(6px); padding: 16px 26px; border-radius: 20px; }
.playgrounds-media img + .pg-big { position: absolute; left: 20px; bottom: 20px; }
.pg-big span { font-family: var(--serif); font-size: 4.5rem; font-weight: 700; line-height: 1; color: var(--gold-soft); }
.pg-big small { font-weight: 700; font-size: 1rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .08em; }
.playgrounds-copy { padding: clamp(28px, 4vw, 48px); }
.playgrounds-copy p { color: var(--muted); }
.playgrounds-copy .tick-list { grid-template-columns: 1fr 1fr; margin: 0; }

/* ---------- Facilities ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.facility { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 700; color: var(--navy); transition: transform .25s, box-shadow .25s; }
.facility:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.facility .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--gold-50); color: #8A6D12; }

/* ---------- Values + VM ---------- */
.values-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.value { text-align: center; padding: 26px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .3s, box-shadow .3s; }
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value .ic { width: 36px; height: 36px; color: var(--gold); margin: 0 auto 12px; }
.value h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.value p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.5; }
.vm-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-top: 48px; }
.vm { padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--tint); border: 1px solid var(--line); }
.vm-vision { background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: center; }
.vm-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--gold); color: var(--navy-900); margin-bottom: 18px; }
.vm-icon .ic { width: 26px; height: 26px; }
.vm h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin-bottom: 14px; color: var(--navy); }
.vm-vision h3 { color: #fff; }
.vm-vision p { font-size: 1.15rem; color: rgba(255,255,255,.88); line-height: 1.6; margin: 0; }
.vm .tick-list { margin: 0; }
.vm .tick-list li { font-weight: 500; color: var(--ink); }

/* ---------- Student development ---------- */
.equation { --eqgap: 14px; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--eqgap); }
.eq-item { position: relative; display: grid; place-items: center; text-align: center; min-height: 76px; padding: 14px 12px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-weight: 700; line-height: 1.3; }
.eq-item:not(:first-child)::before { content: "+"; position: absolute; left: calc(var(--eqgap) / -2); top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-900); font-weight: 800; font-size: 1rem; z-index: 1; }
.eq-result { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 28px; }
.eq-equals { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.eq-result strong { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.2rem); padding: 18px 36px; border-radius: 999px; background: linear-gradient(90deg, #F3DC8B, #C9A227); color: var(--navy-900); text-align: center; box-shadow: 0 20px 40px -16px rgba(201,162,39,.7); }

/* ---------- PTM ---------- */
.ptm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.ptm-copy p { color: var(--muted); }
.triad { display: flex; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.triad span { padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: .92rem; }
.triad span:nth-child(3) { background: var(--gold); color: var(--navy-900); }
.triad i { width: 28px; height: 2px; background: var(--line); position: relative; }
.triad i::before, .triad i::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.triad i::before { left: -2px; } .triad i::after { right: -2px; }
.ptm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ptm-list li { display: flex; align-items: center; gap: 12px; padding: 18px; background: var(--tint); border-radius: var(--radius-sm); font-weight: 700; color: var(--navy); font-size: .95rem; line-height: 1.3; border: 1px solid var(--line); }
.ptm-list .ic { width: 38px; height: 38px; padding: 8px; background: #fff; border-radius: 10px; color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------- Gallery ---------- */
.gallery-note { margin: -4px 0 0; font-size: .82rem; color: var(--muted); font-style: italic; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.gallery-filters button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: .86rem; transition: all .2s; }
.gallery-filters button:hover { border-color: var(--navy); }
.gallery-filters button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.g-item { position: relative; overflow: hidden; border-radius: 16px; background: var(--navy); cursor: pointer; border: 0; padding: 0; text-align: left; color: #fff; animation: fadeIn .45s ease both; }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item.wide3 { grid-column: span 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,22,52,.85), transparent 55%); pointer-events: none; }
.g-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.g-caption small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); font-weight: 800; }
.g-caption strong { font-size: 1rem; font-weight: 700; }
.g-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ph, linear-gradient(150deg, #1A3F7A, #0B2A5B)); }
.g-placeholder .ic { width: 54px; height: 54px; color: rgba(255,255,255,.35); stroke-width: 1.4; }
.g-placeholder::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 18px 18px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,12,30,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 92vw; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox p { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.testimonial .ic { width: 30px; height: 30px; color: var(--gold); margin-bottom: 10px; }
.testimonial p { color: var(--ink); font-size: 1rem; }
.testimonial footer strong { display: block; color: var(--navy); }
.testimonial footer small { color: var(--muted); }

/* ---------- Admissions ---------- */
.admissions { background: radial-gradient(900px 500px at 0% 0%, #1A3F7A 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; }
.admissions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.admissions-copy > p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.adm-programmes { display: grid; gap: 12px; margin: 28px 0; }
.adm-programmes div { padding: 18px 22px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-left: 4px solid var(--gold); }
.adm-programmes span { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); }
.adm-programmes strong { font-size: 1.1rem; }
.adm-contact { display: flex; gap: 12px; flex-wrap: wrap; }
.adm-contact a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 700; transition: background .2s; }
.adm-contact a:hover { background: rgba(255,255,255,.2); }
.adm-contact .ic { color: var(--gold-soft); }

.enquiry-form, .modal-card { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.enquiry-form h3, .modal-card h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.form-sub { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .84rem; font-weight: 700; color: var(--navy); }
.field label span { color: var(--orange); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--tint); color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s; width: 100%; min-width: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(11,42,91,.1); }
.field .invalid { border-color: #D93A3A; background: #FFF6F6; }
.form-error { color: #C62828; font-weight: 600; font-size: .9rem; margin: 0 0 12px; min-height: 0; }
.form-error:empty { display: none; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.form-success { text-align: center; padding: 24px 0; }
.form-success .ic { width: 56px; height: 56px; color: var(--wa); margin: 0 auto 12px; }

/* ---------- Visit CTA ---------- */
.visit { background: var(--gold-50); }
.visit-inner { text-align: center; max-width: 820px; }
.visit .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.visit .section-sub { margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.contact-card { background: #fff; border-radius: 24px; padding: clamp(26px, 4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-brand { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.contact-brand img { width: 64px; height: 64px; object-fit: contain; }
.contact-brand strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.25rem; letter-spacing: .02em; }
.contact-brand small { color: var(--gold-text); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-list { margin: 0 0 26px; display: grid; gap: 18px; }
.contact-list dt { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list dt .ic { color: var(--gold); }
.contact-list dd { margin: 0; font-weight: 600; color: var(--navy); line-height: 1.55; }
.contact-list dd a { font-size: 1.15rem; font-weight: 800; display: inline-block; padding: 6px 0; }
.contact-list dd a:hover { color: var(--orange-600); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-wrap { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--navy-100); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; padding-bottom: 36px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; }
.footer-brand strong { font-family: var(--serif); color: #fff; font-size: 1.3rem; }
.footer-brand p { margin: 4px 0 0; font-size: .88rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.footer-links a { display: inline-block; padding: 9px 0; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-soft); }
.footer-contact p { margin: 0 0 8px; font-size: .92rem; }
.footer-contact a { color: #fff; font-weight: 700; display: inline-block; padding: 10px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* ---------- Floating & mobile bars ---------- */
.float-apply {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 800;
  box-shadow: 0 16px 34px -10px rgba(199,78,6,.7); transform: translateY(120px); opacity: 0; transition: transform .35s ease, opacity .35s, background .2s;
}
.float-apply { bottom: 96px; }
.float-apply.show { transform: none; opacity: 1; }
.float-call {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 16px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 800;
  box-shadow: 0 16px 34px -12px rgba(21,128,61,.75); transition: background .2s, transform .2s;
}
.float-call:hover { background: #116B33; transform: translateY(-2px); }
.float-call .ring { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); }
.float-call .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; opacity: 0; animation: pulse 2s ease-out infinite; }
.float-call .ic { width: 18px; height: 18px; }
.float-call small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.float-call b { display: block; font-size: 1rem; line-height: 1.2; }
.float-apply:hover { background: var(--orange-600); }
.float-apply .ic { width: 22px; height: 22px; }
.mobile-bar { display: none; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: 520px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
.modal::backdrop { background: rgba(4,12,30,.7); backdrop-filter: blur(4px); }
.modal-card { position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint); color: var(--navy); display: grid; place-items: center; }
.modal-close:hover { background: var(--navy-100); }
.modal .eyebrow::before { display: none; }

.swipe-hint { display: none; align-items: center; justify-content: center; gap: 6px; margin: -4px 0 10px; font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.section-navy .swipe-hint { color: rgba(255,255,255,.7); }
.swipe-hint .ic { width: 16px; height: 16px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* ---------- Motion ---------- */
/* thin gold scroll-progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 80; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), #F3DC8B); pointer-events: none; }
/* header gets slimmer once the page scrolls */
.site-header { transition: box-shadow .3s, border-color .3s, height .3s ease; }
.site-header.scrolled { height: 64px; }
.brand img { transition: width .3s ease, height .3s ease; }
.site-header.scrolled .brand img { width: 46px; height: 46px; }
/* slow cinematic zoom on the hero photo */
.hero-bg img { animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
/* hero copy slides in (transform only, so text is painted immediately) */
.hero-copy > * { animation: heroRise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; } .hero-copy > *:nth-child(6) { animation-delay: .4s; }
@keyframes heroRise { from { transform: translateY(26px); } to { transform: none; } }
.trust-inner span { transition: transform .25s ease, color .25s; }
.trust-inner span:hover { transform: translateY(-2px); color: #fff; }
/* light sweep across the orange CTAs */
.btn-orange { position: relative; overflow: hidden; isolation: isolate; }
.btn-orange::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; z-index: -1; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: left .7s ease; }
.btn-orange:hover::after { left: 130%; }
.btn .ic { transition: transform .25s ease; }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
/* modal + lightbox open animations */
.modal[open] .modal-card { animation: popIn .35s cubic-bezier(.2,.8,.2,1); }
.modal[open]::backdrop { animation: fadeBg .3s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeBg { from { opacity: 0; } to { opacity: 1; } }
.lightbox.open { animation: fadeBg .25s ease; }
.lightbox.open img { animation: popIn .35s cubic-bezier(.2,.8,.2,1); }
/* mobile menu links cascade in */
.main-nav.open a { animation: navIn .4s ease both; }
.main-nav.open a:nth-child(2) { animation-delay: .03s; } .main-nav.open a:nth-child(3) { animation-delay: .06s; } .main-nav.open a:nth-child(4) { animation-delay: .09s; }
.main-nav.open a:nth-child(5) { animation-delay: .12s; } .main-nav.open a:nth-child(6) { animation-delay: .15s; } .main-nav.open a:nth-child(7) { animation-delay: .18s; } .main-nav.open a:nth-child(8) { animation-delay: .21s; }
.main-nav.open a:nth-child(n+9) { animation-delay: .24s; }
@keyframes navIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
/* gallery filter switch */
.gallery-filters button { transition: background .25s, color .25s, border-color .25s, transform .2s; }
.gallery-filters button:active { transform: scale(.95); }
/* icons lift on card hover */
.feature-card .icon-wrap, .value .ic, .activity .ic { transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, color .3s; }
.feature-card:hover .icon-wrap { transform: translateY(-3px) rotate(-4deg); }
.value:hover .ic, .activity:hover .ic { transform: translateY(-3px) scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-zoom { transform: scale(.94); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
  .main-nav a { padding: 8px 7px; font-size: .84rem; }
  .brand-text small { display: none; }
}
@media (max-width: 1300px) {
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { backdrop-filter: none; background: #fff; }
  .header-cta { display: none; }
  .header-call { display: inline-flex; }
  .menu-toggle { display: block; margin-left: 4px; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 20px; overflow-y: auto; margin: 0;
    transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-mobile-cta { display: inline-flex !important; margin-top: 16px; border-radius: 999px !important; border: 0 !important; justify-content: center; color: #fff !important; }
}
@media (max-width: 1120px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .activity-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; flex-direction: row; justify-content: center; }
  .hero-emblem { width: 180px; }
  .badge-30 { width: 76px; height: 76px; right: -18%; top: 0; }
  .badge-30 .num { font-size: 1.7rem; } .badge-30 .lbl { font-size: .5rem; }
  .programme-chips { display: none; }
  .about-grid, .programmes, .split-2, .leaders, .ptm-grid, .admissions-grid, .contact-grid, .vm-grid, .playgrounds { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .equation { --eqgap: 22px; grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .equation .eq-item:nth-child(odd)::before { display: none; }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-item.wide3 { grid-column: span 2; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .playgrounds-media { min-height: 240px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 68px; }
  :root { --header-h: 66px; }
  .container { width: calc(100% - 32px); }
  .brand img { width: 46px; height: 46px; }
  .brand-text strong { font-size: 1.05rem; }
  .hero-grid { padding-top: 24px; gap: 22px; }
  .hero-emblem { width: 132px; }
  .badge-30 { width: 62px; height: 62px; right: -30%; }
  .badge-30 .num { font-size: 1.4rem; } .badge-30 .lbl { font-size: .42rem; }
  .hide-sm { display: none; }
  .hero h1 { margin-top: 4px; }
  .hero-pillars { margin-bottom: 22px; }
  .hero h1 { font-size: 2.35rem; }
  .hero-pillars { font-size: .9rem; }
  .hero-pillars span:not(:last-child)::after { margin: 0 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-contact span { display: none; }
  .trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust-inner span { font-size: .82rem; }
  .trust-inner span:last-child { grid-column: 1 / -1; }
  .cta-band-actions, .cta-band-actions .btn { width: 100%; }
  .grid-5, .activity-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-card { padding: 20px 16px; }
  .feature-card h3 { font-size: .95rem; }
  .feature-card p { font-size: .84rem; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .method-grid, .facility-grid, .ptm-list { grid-template-columns: 1fr; }
  .tick-list.cols-2, .playgrounds-copy .tick-list { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
  .leader-photo { width: 110px; }
  .stats { gap: 12px; }
  .stat { padding: 22px 18px; }
  .stat-text { font-size: 1.5rem; }
  .eq-item { font-size: .9rem; min-height: 64px; }
  .eq-result strong { padding: 14px 24px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .gallery-grid { grid-auto-rows: 150px; gap: 10px; }
  .g-item.wide { grid-column: span 2; }
  .contact-actions .btn { flex: 1 1 100%; }
  .map-wrap, .map-wrap iframe { min-height: 320px; }

  .float-apply, .float-call { display: none; }
  .scroll-progress { top: auto; bottom: calc(60px + env(safe-area-inset-bottom)); height: 2px; }
  .site-header.scrolled { height: var(--header-h); }
  /* long card lists become swipeable rows (next card peeks in) */
  .grid-5, .method-grid, .activity-grid, .values-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 4px 16px 14px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .grid-5::-webkit-scrollbar, .method-grid::-webkit-scrollbar, .activity-grid::-webkit-scrollbar, .values-grid::-webkit-scrollbar { display: none; }
  .grid-5 > *, .method-grid > *, .activity-grid > *, .values-grid > * { flex: 0 0 76%; scroll-snap-align: start; }
  .values-grid > * { flex-basis: 62%; }
  .swipe-hint { display: flex; }
  /* gallery filters: one swipeable row instead of five wrapped rows */
  .gallery-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-filters button { flex: none; }
  .triad { gap: 6px; }
  .triad span { padding: 8px 13px; font-size: .84rem; }
  .triad i { width: 16px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -10px rgba(11,42,91,.25);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 9px 4px; font-size: .75rem; font-weight: 800; color: var(--navy); }
  .mobile-bar .ic { width: 22px; height: 22px; }
  .mobile-bar .mb-wa { color: var(--wa); }
  .mobile-bar .mb-apply { background: var(--orange); color: #fff; }
}
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: .95rem; }
  .header-call { width: 40px; height: 40px; }
  .menu-toggle { padding: 6px; }
}
@media (max-width: 350px) {
  .header-call { display: none; }            /* the bottom bar already has Call */
  .btn-lg { padding: 1em 1.2em; white-space: normal; text-align: center; }
  .value h3 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
