@font-face { font-family: "Source Serif 4"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/source-serif-4-700.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: italic; font-display: swap; src: url(../fonts/source-serif-4-600i.woff2) format("woff2"); }

:root {
  --navy: #002237; --night: #001829; --deep: #00121F;
  --gold: #FFD58A; --goldd: #8F5700; --crest: #258ECF; --sky: #8AC9F8;
  --paper: #F4F2ED; --white: #fff; --ink: #1C2430; --muted: #5A6371; --line: #D9D3C7;
  --on: #E7EDF3; --onm: #A9C1D6; --nline: rgba(255,255,255,.14);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.1,1);
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; line-height: 1.04; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; }
.kick { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--goldd); }
.kick::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.dark .kick, .hero .kick { color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #fff; }
.btn.line { border-color: rgba(255,255,255,.6); color: #fff; }
.btn.line:hover { background: #fff; color: var(--navy); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--crest); }
.arrow { width: 18px; height: 18px; transition: transform .3s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ---------- Logo intro ---------- */
#intro { display: none; }
.intro body { overflow: hidden; }
/* Intro timeline (seconds): border draws 0.1–1.9, shield 0.7–1.8, letters 1.4–3.0, stripes 1.45–3.1,
   star 2.45–3.45, name 2.3–3.8, "Islamabad Campus" 3.3–4.3, hold, curtain lifts at 5.2. */
.intro #intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--night); color: #fff; clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease); }
#intro.leave { clip-path: inset(0 0 100% 0); }
.in-box { display: grid; justify-items: center; gap: 22px; text-align: center; padding: 24px; transition: transform 1.3s var(--ease), opacity .8s; }
#intro.leave .in-box { transform: translateY(-60px); opacity: 0; }
.in-crest { width: clamp(150px, 30vw, 210px); height: auto; overflow: visible; }
.in-crest .c-shield { opacity: 0; transform: scale(.86); transform-box: fill-box; transform-origin: center; animation: shieldIn 1.1s var(--ease) .7s forwards; }
.in-crest .c-trim { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.8s var(--ease) .1s forwards; }
.in-crest .c-bar { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; animation: rise .9s var(--ease) forwards; animation-delay: calc(1.45s + var(--i) * .06s); }
.in-crest .c-letter { opacity: 0; transform: translateY(8px); animation: up .8s var(--ease) forwards; animation-delay: calc(1.4s + var(--i) * .2s); }
.in-crest .c-star { opacity: 0; transform: scale(0) rotate(-120deg); transform-box: fill-box; transform-origin: center; animation: star 1s cubic-bezier(.3,1.6,.5,1) 2.45s forwards; }
.in-glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(37,142,207,.28), transparent); opacity: 0; animation: fade 2.4s ease .8s forwards; pointer-events: none; }
.in-name { font-family: var(--serif); font-size: clamp(26px, 4.6vw, 44px); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.in-name .ch { display: inline-block; opacity: 0; transform: translateY(.6em); animation: up .8s var(--ease) forwards; animation-delay: calc(2.3s + var(--i) * .04s); }
.in-sub { font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); opacity: 0; animation: fade 1s ease 3.3s forwards; }
.in-skip { position: absolute; right: var(--gut); bottom: calc(var(--gut) + env(safe-area-inset-bottom)); background: none; border: 1px solid var(--nline); color: var(--onm); font: 600 13px var(--sans); letter-spacing: .08em; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.in-skip:hover { color: #fff; border-color: #fff; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shieldIn { to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: scaleY(1); } }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes star { to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.hd-in { display: flex; align-items: center; gap: 16px; height: 84px; transition: height .4s; }
.hd.scrolled { background: rgba(0,24,41,.94); box-shadow: 0 1px 0 var(--nline); }
@supports (backdrop-filter: blur(8px)) { .hd.scrolled { background: rgba(0,24,41,.78); backdrop-filter: blur(14px); } }
.hd.scrolled .hd-in { height: 68px; }
.menu-open .hd { background: transparent; box-shadow: none; backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.brand small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.hd .visit { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 4px; border-bottom: 1.5px solid transparent; }
.hd .visit:hover { border-color: var(--gold); }
.hd .btn { min-height: 42px; padding: 0 20px; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 6px 0 16px; background: none; border: 0; color: #fff; font: 700 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.burger { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); transition: border-color .3s, background .3s; }
.menu-btn:hover .burger { border-color: var(--gold); }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.menu-open .burger { background: var(--gold); border-color: var(--gold); }
.menu-open .burger i { background: var(--navy); top: 21px; }
.menu-open .burger i:first-child { transform: rotate(45deg); }
.menu-open .burger i:last-child { transform: rotate(-45deg); }
@media (max-width: 860px) { .hd .visit, .hd .btn { display: none; } .menu-btn .ml { display: none; } .brand b { font-size: 17px; } }

/* ---------- Overlay menu ---------- */
.menu { position: fixed; inset: 0; z-index: 50; background: var(--navy); color: #fff; overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s linear .8s; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu-open body { overflow: hidden; }
.menu-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 130px 0 60px; min-height: 100%; }
.menu-main { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu-main li { overflow: hidden; }
.menu-main a { display: flex; align-items: baseline; gap: 18px; padding: 6px 0; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 5.2vw, 64px); line-height: 1.12; letter-spacing: -.02em; transform: translateY(105%); transition: transform .8s var(--ease), color .3s; }
.menu-main a::before { counter-increment: m; content: "0" counter(m); font: 700 13px var(--sans); letter-spacing: .1em; color: var(--gold); }
.menu-main a:hover { color: var(--gold); }
.menu-open .menu-main a { transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.menu-side { align-self: end; display: grid; gap: 30px; color: var(--onm); opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease); }
.menu-open .menu-side { opacity: 1; transform: none; transition-delay: .65s; }
.menu-side h3 { font: 700 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.menu-side a { color: #fff; text-decoration: none; }
.menu-side a:hover { color: var(--gold); }
.menu-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu-side .btn { justify-self: start; }
@media (max-width: 860px) { .menu-grid { grid-template-columns: 1fr; padding-top: 110px; gap: 40px; } .menu-side { align-self: start; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.hero-media, .hero-media .slide, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
/* Slideshow: each photo fades in and slowly zooms out; a photo that has faded away resets its zoom unseen. */
.hero-media .slide { opacity: 0; transition: opacity 1.8s ease; }
.hero-media .slide.on { opacity: 1; }
.hero-media img { transform: scale(1.12); transition: transform 0s linear 1.8s; }
.ready .hero-media .slide.on img { transform: scale(1); transition: transform 9s cubic-bezier(.25,.6,.3,1); }
.slide-bars { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 6px; width: 132px; }
.slide-bars i { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.slide-bars i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.slide-bars i.done::after { transform: scaleX(1); }
.slide-bars i.on::after { transform: scaleX(1); transition: transform 6.5s linear; }
@media (prefers-reduced-motion: reduce) { .slide-bars { display: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,18,31,.55) 0%, rgba(0,18,31,.05) 30%, rgba(0,18,31,.35) 58%, rgba(0,18,31,.92) 100%), linear-gradient(90deg, rgba(0,18,31,.55), transparent 70%); }
.hero-in { position: relative; z-index: 2; padding: 0 0 clamp(56px, 10vh, 110px); width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero h1 { font-size: clamp(46px, 8.6vw, 124px); line-height: .96; margin: 18px 0 26px; }
.hero h1 .w { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .w > span { display: inline-block; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--gold); }
.hero p.lead { max-width: 560px; font-size: clamp(16px, 1.5vw, 19px); color: var(--on); }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.js .hero h1 .w > span { transform: translateY(108%); }
.ready .hero h1 .w > span { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(.15s + var(--i) * .13s); }
.js .hx { opacity: 0; transform: translateY(18px); }
.ready .hx { opacity: 1; transform: none; transition: opacity .9s ease, transform 1s var(--ease); transition-delay: calc(.7s + var(--i) * .12s); }
.scroll-cue { display: grid; justify-items: center; gap: 12px; color: var(--onm); font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; writing-mode: vertical-rl; }
.scroll-cue span { position: relative; width: 1.5px; height: 70px; background: rgba(255,255,255,.2); overflow: hidden; writing-mode: horizontal-tb; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--gold); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 700px) { .hero-in { grid-template-columns: 1fr; } .scroll-cue { display: none; } }

/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * .1s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js .rv-img img { transform: scale(1.15); transition: transform 1.6s var(--ease); }
.js .rv-img.in { clip-path: inset(0 0 0 0); }
.js .rv-img.in img { transform: scale(1); }

/* ---------- "I am a…" selector ---------- */
.ask { padding: clamp(70px, 10vw, 130px) 0; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; padding: 64px 0; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 8px 28px; border-left: 1px solid var(--nline); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-family: var(--serif); font-size: clamp(44px, 5.4vw, 72px); line-height: 1; color: var(--gold); letter-spacing: -.03em; }
.stats li > span { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--onm); }
@media (max-width: 760px) { .stats ul { grid-template-columns: 1fr 1fr; row-gap: 34px; } .stats li:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---------- About ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.sec h2 { font-size: clamp(36px, 5vw, 66px); margin: 18px 0 24px; color: var(--navy); }
.sec h2 em { font-style: italic; font-weight: 600; color: var(--crest); }
.about p { color: var(--muted); font-size: 18px; max-width: 560px; }
.about p + p { margin-top: 16px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.vm h3 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.vm p { font-size: 15.5px; }
.about-img { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img .tag { position: absolute; left: 0; bottom: 0; background: var(--gold); color: var(--navy); padding: 18px 22px; font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.15; }
.about-img .tag small { display: block; font: 700 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-img { aspect-ratio: 4 / 3; } .vm { grid-template-columns: 1fr; } }

/* ---------- Programmes ---------- */
.progs { background: #fff; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.sec-head p { max-width: 440px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; display: block; text-decoration: none; color: #fff; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--navy); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,18,31,.9)); transition: background .5s; }
.card:hover img { transform: scale(1.07); }
.card-tx { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px; }
.card-tx small { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card-tx h3 { font-size: clamp(28px, 3vw, 38px); margin: 8px 0 10px; }
.card-tx p { color: var(--on); font-size: 15.5px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.card:hover .card-tx p, .card:focus-visible .card-tx p { max-height: 120px; opacity: 1; }
.card-tx .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--gold); }
@media (hover: none) { .card-tx p { max-height: none; opacity: 1; } }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card { aspect-ratio: 4 / 3; } }

/* ---------- Life band ---------- */
.band { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,18,31,.86), rgba(0,18,31,.25)); }
.band .wrap { position: relative; z-index: 2; }
.band h2 { font-size: clamp(38px, 6vw, 84px); max-width: 860px; margin: 18px 0 26px; }
.band h2 em { font-style: italic; font-weight: 600; color: var(--gold); }
.band p { max-width: 520px; color: var(--on); font-size: 18px; margin-bottom: 30px; }

/* ---------- Journey + visit cards ---------- */
.dark { background: var(--night); color: #fff; }
.dark h2 { color: #fff; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { position: relative; border: 1px solid var(--nline); border-radius: 4px; padding: clamp(28px, 4vw, 52px); background: linear-gradient(160deg, rgba(37,142,207,.12), transparent 60%); overflow: hidden; }
.panel h3 { font-size: clamp(30px, 3.4vw, 44px); margin: 14px 0 16px; }
.panel > p { color: var(--onm); max-width: 470px; }
.steps { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--nline); }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--gold); line-height: 1; }
.steps b { display: block; color: #fff; }
.steps span { color: var(--onm); font-size: 15px; }
.hours { margin: 30px 0 34px; display: grid; gap: 0; }
.hours div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--nline); color: var(--onm); font-size: 15.5px; }
.hours div b { color: #fff; font-weight: 600; }
.panel .acts { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Enquiry band ---------- */
.enq { background: var(--gold); color: var(--navy); padding: clamp(48px, 7vw, 80px) 0; }
.enq .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.enq h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 700px; }
.enq .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.enq .btn.line { border-color: var(--navy); color: var(--navy); }
.enq .btn.line:hover { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.ft { background: var(--deep); color: var(--onm); padding: 80px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--nline); }
.ft .brand { margin-bottom: 20px; }
.ft h3 { font: 700 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft a { text-decoration: none; color: var(--on); }
.ft a:hover { color: var(--gold); }
.ft-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; font-size: 13.5px; }
.ft-bot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.replay { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } }

.preview-pill-unused { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70; background: rgba(0,18,31,.85); color: var(--gold); border: 1px solid rgba(255,213,138,.5); font: 700 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .hx, .js .hero h1 .w > span { opacity: 1; transform: none; }
  .js .rv-img { clip-path: none; }
}

/* =====================================================================
   Inner pages (Admissions, Book a Visit, Contact)
   ===================================================================== */

/* ---------- Page banner ---------- */
.ph { position: relative; min-height: 72vh; min-height: 72svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.ph-media { position: absolute; inset: 0; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.ready .ph-media img { transform: scale(1); transition: transform 8s cubic-bezier(.25,.6,.3,1); }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,18,31,.6) 0%, rgba(0,18,31,.2) 35%, rgba(0,18,31,.92) 100%), linear-gradient(90deg, rgba(0,18,31,.6), transparent 75%); }
.ph-in { position: relative; z-index: 2; width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; padding: 140px 0 clamp(48px, 8vh, 90px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 600; color: var(--onm); margin-bottom: 26px; }
.crumbs a { text-decoration: none; color: var(--on); }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { color: var(--gold); }
.ph h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; margin: 18px 0 22px; max-width: 980px; }
.ph h1 .w { display: block; overflow: hidden; padding-bottom: .06em; }
.ph h1 .w > span { display: inline-block; }
.ph h1 em { font-style: italic; font-weight: 600; color: var(--gold); }
.ph p.lead { max-width: 620px; font-size: clamp(16px, 1.5vw, 19px); color: var(--on); }
.js .ph h1 .w > span { transform: translateY(108%); }
.ready .ph h1 .w > span { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(.1s + var(--i) * .13s); }
/* Banner without a photo: navy with a large, faint crest outline */
.ph.plain { min-height: 62vh; min-height: 62svh; background: radial-gradient(120% 90% at 85% 10%, #063453 0%, var(--navy) 45%, var(--night) 100%); }
.ph.plain::after { display: none; }
.ph-mark { position: absolute; right: -6vw; top: 50%; width: min(56vw, 640px); height: auto; transform: translateY(-46%); opacity: .09; pointer-events: none; }
.ph-mark path { fill: none; stroke: #fff; stroke-width: 1.2; }
.js .ph-mark .draw { stroke-dasharray: 520; stroke-dashoffset: 520; }
.ready .ph-mark .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 3s var(--ease) .3s; }

/* ---------- Fact strip under the banner ---------- */
.facts { background: var(--navy); color: #fff; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 24px; border-left: 1px solid var(--nline); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold); line-height: 1.15; }
.facts span { display: block; font-size: 14px; color: var(--onm); margin-top: 4px; }
@media (max-width: 860px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li:nth-child(3) { border-left: 0; padding-left: 0; } .facts li { border-top: 1px solid var(--nline); } .facts li:nth-child(-n+2) { border-top: 0; } }

/* ---------- Two-column intro ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .big { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; color: var(--navy); letter-spacing: -.01em; }
.split .big em { color: var(--crest); font-style: italic; font-weight: 600; }
.split p + p { margin-top: 16px; }
.muted { color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Timeline (line grows as you scroll) ---------- */
.tl { position: relative; list-style: none; margin: 56px 0 0; padding: 0 0 0 76px; counter-reset: t; --p: 0; }
.tl::before, .tl::after { content: ""; position: absolute; left: 27px; top: 8px; width: 2px; }
.tl::before { bottom: 8px; background: var(--line); }
.tl::after { height: calc((100% - 16px) * var(--p)); background: var(--gold); }
.tl li { position: relative; padding: 0 0 54px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { counter-increment: t; content: "0" counter(t); position: absolute; left: -76px; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--muted); z-index: 1; transition: background .5s, border-color .5s, color .5s, transform .5s var(--ease); }
.tl li.on::before { background: var(--navy); border-color: var(--gold); color: var(--gold); transform: scale(1.06); }
.tl h3 { font-size: clamp(24px, 2.4vw, 32px); color: var(--navy); padding-top: 10px; }
.tl p { color: var(--muted); margin-top: 8px; max-width: 620px; }
.tl .note { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--goldd); }

/* ---------- Document checklist ---------- */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 26px 22px; display: grid; gap: 14px; align-content: start; transition: transform .5s var(--ease), box-shadow .5s, border-color .5s; }
.doc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -22px rgba(0,34,55,.45); border-color: var(--gold); }
.doc svg { width: 34px; height: 34px; color: var(--crest); }
.doc b { font-family: var(--serif); font-size: 20px; color: var(--navy); line-height: 1.2; }
.doc span { font-size: 14.5px; color: var(--muted); }
.doc .req { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--goldd); background: rgba(255,213,138,.35); padding: 4px 9px; border-radius: 999px; }
@media (max-width: 1000px) { .docs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .docs { grid-template-columns: 1fr; } }

/* ---------- Programme table ---------- */
.levels { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 16px; }
.levels th, .levels td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--nline); vertical-align: top; }
.levels thead th { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.levels tbody th { font-family: var(--serif); font-size: 22px; color: #fff; font-weight: 700; }
.levels td { color: var(--onm); }
.levels tbody tr { transition: background .3s; }
.levels tbody tr:hover { background: rgba(255,255,255,.04); }
@media (max-width: 700px) {
  .levels thead { display: none; }
  .levels tr { display: grid; padding: 16px 0; border-bottom: 1px solid var(--nline); }
  .levels th, .levels td { border: 0; padding: 4px 0; }
}

/* ---------- Forms ---------- */
.formwrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.formwrap aside h2 { margin-top: 16px; }
.next { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.next li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; color: var(--muted); }
.next svg { width: 26px; height: 26px; color: var(--crest); margin-top: 2px; }
.next b { color: var(--navy); display: block; }
.fcard { background: #fff; border-radius: 6px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 70px -40px rgba(0,34,55,.45); border-top: 4px solid var(--gold); }
.fcard h3 { font-size: clamp(26px, 2.6vw, 34px); color: var(--navy); }
.fcard h3 + p { color: var(--muted); margin: 8px 0 26px; }
.progs .fcard { border: 1px solid var(--line); border-top: 4px solid var(--gold); }
.progs .fld input, .progs .fld select, .progs .fld textarea { background: #F7F5F0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } }
.fld { position: relative; }
.fld input, .fld select, .fld textarea { width: 100%; font: 16px var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-bottom-color: var(--line); border-radius: 4px 4px 0 0; padding: 24px 14px 9px; transition: border-color .3s, background .3s; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.fld.sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--goldd); border-bottom: 2px solid var(--goldd); transform: translateY(-30%) rotate(45deg); pointer-events: none; }
.fld label { position: absolute; left: 15px; top: 17px; font-size: 16px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; background: #fff; border-color: var(--crest); }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { box-shadow: 0 0 0 3px rgba(37,142,207,.25); }
.fld input:focus + label, .fld input:not(:placeholder-shown) + label,
.fld textarea:focus + label, .fld textarea:not(:placeholder-shown) + label,
.fld.sel label, .fld.date label { transform: translateY(-10px) scale(.76); color: var(--goldd); font-weight: 700; }
.fld input:user-invalid { border-bottom-color: #B3261E; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ferr { margin-top: 18px; padding: 12px 14px; border-radius: 4px; background: #FCEDEC; color: #8C1D18; font-size: 15px; }
.fact { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.fact .btn { min-width: 200px; }
.fact .or { font-size: 14px; color: var(--muted); }
.btn.wa { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.wa:hover { border-color: #25D366; color: #0B6B34; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.fdone { text-align: center; padding: 20px 0 10px; }
.fdone:focus { outline: none; }
.tick { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.tick svg { width: 36px; height: 36px; color: var(--gold); }
.tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s var(--ease) .2s forwards; }
.fdone h3 { margin-bottom: 10px; }
.fdone p { color: var(--muted); max-width: 440px; margin: 0 auto; }
.fdone .ref { margin-top: 14px; font-weight: 700; color: var(--navy); }
.prev-note { margin-top: 16px; font-size: 13.5px; padding: 10px 12px; border-radius: 4px; background: rgba(255,213,138,.35); color: var(--goldd); }
@media (max-width: 900px) { .formwrap { grid-template-columns: 1fr; } }

/* ---------- Accordion (terms) ---------- */
.acc { margin-top: 36px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 1.8vw, 23px); color: var(--navy); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); transition: background .3s, border-color .3s, transform .5s var(--ease); }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15.5px; height: 1.5px; background: var(--navy); transition: transform .4s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i { background: var(--gold); border-color: var(--gold); transform: rotate(180deg); }
.acc details[open] summary i::after { transform: rotate(0); }
.acc summary:hover i { border-color: var(--gold); }
.acc .body { padding: 0 0 24px; color: var(--muted); max-width: 820px; }
.acc details[open] .body { animation: up .5s var(--ease); }

/* ---------- Image cards (visit page) ---------- */
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.exp { background: #fff; border-radius: 4px; overflow: hidden; }
.exp figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.exp img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.exp:hover img { transform: scale(1.06); }
.exp div { padding: 24px; }
.exp small { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--goldd); }
.exp h3 { font-size: 25px; color: var(--navy); margin: 6px 0 8px; }
.exp p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .expect { grid-template-columns: 1fr; } }

/* ---------- Contact cards ---------- */
.ccards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cc { position: relative; background: #fff; border-radius: 4px; padding: 30px 26px; overflow: hidden; }
.cc::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.cc:hover::before { transform: scaleX(1); }
.cc svg.ic { width: 32px; height: 32px; color: var(--crest); margin-bottom: 18px; }
.cc h3 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.cc p, .cc li { color: var(--muted); font-size: 15.5px; }
.cc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cc a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); }
.cc a:hover { color: var(--crest); }
@media (max-width: 1000px) { .ccards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ccards { grid-template-columns: 1fr; } }
.times { width: 100%; border-collapse: collapse; margin-top: 30px; }
.times th, .times td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
.times th { font-weight: 600; color: var(--navy); }
.times td { text-align: right; color: var(--muted); }
.mapbox { position: relative; margin-top: 40px; border-radius: 6px; overflow: hidden; background: var(--navy); color: #fff; min-height: 340px; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.mapbox p { color: var(--onm); max-width: 460px; margin: 10px auto 22px; }
.mapbox .acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Closing call-to-action ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(70px, 9vw, 120px) 0; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(34px, 4.8vw, 62px); margin: 16px auto 26px; max-width: 900px; }
.cta h2 em { color: var(--gold); font-style: italic; font-weight: 600; }
.cta .acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .kick { justify-content: center; color: var(--gold); }
.cta-mark { position: absolute; left: 50%; bottom: -30%; width: 520px; transform: translateX(-50%); opacity: .06; pointer-events: none; }
.cta-mark path { fill: none; stroke: #fff; stroke-width: 1.2; }

@media (prefers-reduced-motion: reduce) {
  .js .ph h1 .w > span { transform: none; }
  .js .ph-mark .draw { stroke-dashoffset: 0; }
}

/* =====================================================================
   Parents' Guide
   ===================================================================== */
.ph.plain.split-ph .ph-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.ph-cards { position: relative; height: 380px; }
.ph-cards figure { position: absolute; margin: 0; width: 58%; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); border: 4px solid rgba(255,255,255,.08); }
.ph-cards figure:first-child { left: 0; top: 30px; transform: rotate(-4deg); }
.ph-cards figure:last-child { right: 0; top: -20px; transform: rotate(3deg); }
.ph-cards img { width: 100%; height: 100%; object-fit: cover; }
.ph-cards figcaption { position: absolute; left: 0; bottom: 0; background: var(--gold); color: var(--navy); font: 700 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 8px 12px; }
.js .ph-cards figure { opacity: 0; translate: 0 40px; }
.ready .ph-cards figure { opacity: 1; translate: 0 0; transition: opacity 1s ease, translate 1.2s var(--ease); }
.ready .ph-cards figure:first-child { transition-delay: .5s; }
.ready .ph-cards figure:last-child { transition-delay: .75s; }
@media (max-width: 900px) { .ph.plain.split-ph .ph-in { grid-template-columns: 1fr; } .ph-cards { height: 300px; max-width: 420px; } }

/* Sticky section links */
.subnav { position: sticky; top: 68px; z-index: 40; background: rgba(244,242,237,.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .subnav { background: rgba(244,242,237,.8); backdrop-filter: blur(12px); } }
.subnav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 16px 14px; font-size: 14.5px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 2.5px solid transparent; transition: color .3s, border-color .3s; }
.subnav a:hover, .subnav a.on { color: var(--navy); border-bottom-color: var(--gold); }
[id] { scroll-margin-top: 140px; }

/* The school year, April to March */
.year { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.year li { display: grid; gap: 10px; }
.year span { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.year i { display: block; height: 54px; border-radius: 4px; background: var(--navy); transform-origin: left; }
.year i.h { background: var(--gold); }
.js .year i { transform: scaleX(0); }
.js .year.in i { transform: none; transition: transform .7s var(--ease); transition-delay: calc(var(--m) * .08s); }
.year-pins { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 14px; font-size: 13.5px; color: var(--navy); font-weight: 600; }
.year-pins b { display: block; position: relative; padding-top: 14px; line-height: 1.3; }
.year-pins b::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 10px; background: var(--goldd); }
.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; vertical-align: -2px; background: var(--navy); }
.legend span.h::before { background: var(--gold); }
@media (max-width: 760px) {
  .year, .year-pins { grid-template-columns: repeat(6, 1fr); }
  .year-pins { display: none; }
}

/* Holiday cards */
.hols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.hol { border-radius: 4px; padding: 30px 26px; background: #fff; border: 1px solid var(--line); }
.hol.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.hol small { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--goldd); }
.hol.navy small { color: var(--gold); }
.hol h3 { font-size: clamp(26px, 2.6vw, 34px); margin: 10px 0 10px; color: var(--navy); }
.hol.navy h3 { color: #fff; }
.hol p { color: var(--muted); font-size: 15.5px; }
.hol.navy p { color: var(--onm); }
@media (max-width: 900px) { .hols { grid-template-columns: 1fr; } }

/* Uniform */
.uni { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.ucard { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.ucard header { position: relative; padding: 30px 30px 26px; background: var(--navy); color: #fff; overflow: hidden; }
.ucard header::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255,213,138,.12); }
.ucard header small { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ucard header h3 { font-size: clamp(30px, 3vw, 40px); margin-top: 6px; }
.ucard .sw { display: flex; gap: 8px; margin-top: 18px; }
.ucard .sw i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.useason { padding: 26px 30px; border-top: 1px solid var(--line); }
.useason:first-of-type { border-top: 0; }
.useason h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--goldd); }
.useason h4 svg { width: 18px; height: 18px; }
.useason ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.useason li { position: relative; padding-left: 30px; color: var(--ink); }
.useason li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--navy)); box-shadow: 0 0 0 1px var(--line); }
.useason li small { display: block; color: var(--muted); font-size: 14px; }
.allkids { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 22px; padding: 24px 30px; border-radius: 6px; background: var(--gold); color: var(--navy); }
.allkids b { font-family: var(--serif); font-size: 22px; }
.allkids span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.allkids span i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--navy); }
@media (max-width: 900px) { .uni { grid-template-columns: 1fr; } }

/* Transport note */
.notice { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; padding: 30px; border-radius: 6px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); max-width: 860px; }
.notice svg { width: 48px; height: 48px; color: var(--crest); }
.notice h3 { font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.notice p { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .js .year i { transform: none; } .js .ph-cards figure { opacity: 1; translate: 0 0; } }

/* =====================================================================
   About, Fees, School Rules
   ===================================================================== */

/* Banner with one tall framed photo on the right */
.ph-tall { position: relative; justify-self: end; width: min(100%, 380px); aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.ph-tall img { width: 100%; height: 100%; object-fit: cover; }
.ph-tall figcaption { position: absolute; left: 0; bottom: 0; background: var(--gold); color: var(--navy); padding: 14px 18px; font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.2; }
.ph-tall figcaption small { display: block; font: 700 10.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 3px; }
.js .ph-tall { clip-path: inset(100% 0 0 0); }
.ready .ph-tall { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease) .35s; }
@media (max-width: 900px) { .ph-tall { justify-self: start; width: min(100%, 320px); aspect-ratio: 4 / 3; } }

/* Milestones */
.miles { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.miles::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.miles li { position: relative; padding: 40px 28px 0 0; }
.miles li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.miles b { display: block; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); color: var(--navy); line-height: 1.1; }
.miles span { display: block; margin-top: 8px; color: var(--muted); }
@media (max-width: 760px) { .miles { grid-template-columns: 1fr; gap: 28px; } .miles::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; } .miles li { padding: 0 0 0 40px; } }

/* Vision / mission / commitment */
.vmc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 46px; border-top: 1px solid var(--nline); }
.vmc article { padding: 34px 30px 10px 0; }
.vmc article + article { padding-left: 30px; border-left: 1px solid var(--nline); }
.vmc small { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--gold); line-height: 1; }
.vmc h3 { font-size: 26px; color: #fff; margin: 14px 0 10px; }
.vmc p { color: var(--onm); }
@media (max-width: 900px) { .vmc { grid-template-columns: 1fr; } .vmc article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--nline); } }
.promise { position: relative; margin: 70px 0 0; padding: 0 0 0 clamp(0px, 6vw, 90px); }
.promise::before { content: "\201C"; position: absolute; left: 0; top: -.32em; font-family: var(--serif); font-size: clamp(90px, 12vw, 170px); line-height: 1; color: var(--gold); opacity: .9; }
.promise p { font-family: var(--serif); font-weight: 600; font-style: italic; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.25; color: #fff; max-width: 980px; padding-top: clamp(50px, 6vw, 70px); }
.promise footer { margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
@media (min-width: 761px) { .promise p { padding-top: 0; } }

/* Six strengths */
.six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 46px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.six article { position: relative; background: #fff; padding: 34px 30px 36px; overflow: hidden; transition: background .5s; }
.six article::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.six article:hover { background: #FBFAF7; }
.six article:hover::after { transform: scaleX(1); }
.six small { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--goldd); letter-spacing: .05em; }
.six h3 { font-size: 24px; color: var(--navy); margin: 10px 0 10px; }
.six p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) { .six { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .six { grid-template-columns: 1fr; } }

/* Campus cards */
.camps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.camp { background: #fff; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.camp figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.camp img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.camp:hover img { transform: scale(1.06); }
.camp figure span { position: absolute; left: 16px; top: 16px; background: rgba(0,24,41,.86); color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
.camp div { padding: 26px 26px 30px; }
.camp h3 { font-size: 27px; color: var(--navy); margin-bottom: 10px; }
.camp p { color: var(--muted); font-size: 15.5px; }
.camp ul { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.camp li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); }
.camp li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--crest); border-bottom: 2px solid var(--crest); transform: rotate(-45deg); }
@media (max-width: 1000px) { .camps { grid-template-columns: 1fr; max-width: 620px; } }

/* ---------- Fees ---------- */
.fees-big { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 46px; }
.feecard { position: relative; overflow: hidden; border-radius: 6px; padding: clamp(28px, 4vw, 46px); background: var(--navy); color: #fff; }
.feecard::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(255,213,138,.08); }
.feecard small { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.feecard .amt { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 10px; font-family: var(--serif); font-weight: 700; line-height: 1; }
.feecard .amt i { font-style: normal; font-size: clamp(20px, 2vw, 26px); color: var(--onm); }
.feecard .amt b { font-size: clamp(54px, 7vw, 92px); letter-spacing: -.03em; color: #fff; }
.feecard .amt em { font-style: normal; font-size: 18px; color: var(--onm); font-family: var(--sans); font-weight: 600; }
.feecard p { color: var(--onm); }
.once { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.oncecard { border-radius: 6px; padding: 28px 30px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.oncecard b { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); color: var(--navy); line-height: 1; }
.oncecard span { color: var(--muted); }
.oncecard span strong { display: block; color: var(--navy); font-size: 18px; }
.plist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; max-width: 900px; }
.plist li { position: relative; padding-left: 28px; color: var(--muted); }
.plist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--gold); }
.dark .plist li { color: var(--onm); }
@media (max-width: 800px) { .fees-big, .once { grid-template-columns: 1fr; } }

.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.pay article { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding: 30px; border-radius: 6px; border: 1px solid var(--nline); background: linear-gradient(160deg, rgba(37,142,207,.14), transparent 65%); }
.pay svg { width: 52px; height: 52px; color: var(--gold); }
.pay h3 { font-size: 26px; color: #fff; margin-bottom: 6px; }
.pay p { color: var(--onm); }
@media (max-width: 800px) { .pay { grid-template-columns: 1fr; } }

/* The life of a fee bill */
.bill { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.bill::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--crest) 0 50%, var(--gold) 50% 75%, #C0392B 75%); }
.js .bill::before { transform: scaleX(0); transform-origin: left; }
.js .bill.in::before { transform: none; transition: transform 1.8s var(--ease) .2s; }
.bill li { position: relative; padding: 76px 24px 0 0; }
.bill li > i { position: absolute; left: 0; top: 6px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--crest); font-style: normal; font-family: var(--serif); font-weight: 700; color: var(--navy); }
.bill li:nth-child(3) > i { border-color: var(--gold); }
.bill li:nth-child(4) > i { border-color: #C0392B; }
.bill small { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--goldd); }
.bill h3 { font-size: 22px; color: var(--navy); margin: 6px 0 8px; }
.bill p { color: var(--muted); font-size: 15px; }
.js .bill li { opacity: 0; transform: translateY(16px); }
.js .bill.in li { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--ease); }
.js .bill.in li:nth-child(1) { transition-delay: .2s; } .js .bill.in li:nth-child(2) { transition-delay: .6s; }
.js .bill.in li:nth-child(3) { transition-delay: 1s; } .js .bill.in li:nth-child(4) { transition-delay: 1.4s; }
@media (max-width: 900px) {
  .bill { grid-template-columns: 1fr; gap: 30px; padding-left: 0; }
  .bill::before { left: 21px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: linear-gradient(180deg, var(--crest) 0 50%, var(--gold) 50% 75%, #C0392B 75%); }
  .js .bill::before { transform: scaleY(0); transform-origin: top; }
  .bill li { padding: 0 0 0 72px; }
}
.callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 30px; padding: 22px 26px; border-radius: 6px; background: rgba(255,213,138,.3); border-left: 5px solid var(--gold); color: var(--ink); max-width: 980px; }
.callout svg { width: 28px; height: 28px; color: var(--goldd); margin-top: 2px; }
.callout.red { background: #FBEDEB; border-left-color: #C0392B; }
.callout.red svg { color: #C0392B; }
.callout b { color: var(--navy); }
.callout p + p { margin-top: 8px; }

.acc .body ol, .acc .body ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.acc .body p + p { margin-top: 10px; }

.ask-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 46px; padding: 26px 30px; border-radius: 6px; background: var(--navy); color: #fff; }
.ask-band b { font-family: var(--serif); font-size: 24px; }
.ask-band span { color: var(--onm); }

/* ---------- School rules ---------- */
.rules { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: r; }
.rules li { position: relative; padding: 24px 24px 24px 74px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.rules li::before { counter-increment: r; content: counter(r); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 16px; }
.rules.one { grid-template-columns: 1fr; max-width: 900px; }
@media (max-width: 800px) { .rules { grid-template-columns: 1fr; } }
.meet { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 50px); align-items: center; margin-top: 36px; padding: clamp(28px, 4vw, 46px); border-radius: 6px; background: var(--navy); color: #fff; max-width: 980px; }
.meet .clock { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--gold); position: relative; }
.meet .clock::before, .meet .clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; background: #fff; transform-origin: 50% 0; border-radius: 2px; }
.meet .clock::before { height: 32px; transform: translate(-50%, 0) rotate(-150deg); }
.meet .clock::after { height: 44px; background: var(--gold); transform: translate(-50%, 0) rotate(180deg); }
.js .meet.in .clock::after { animation: tick 1.6s var(--ease) .3s both; }
@keyframes tick { from { transform: translate(-50%, 0) rotate(0deg); } to { transform: translate(-50%, 0) rotate(180deg); } }
.meet b { display: block; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); color: var(--gold); line-height: 1.1; }
.meet p { color: var(--onm); margin-top: 8px; }
@media (max-width: 600px) { .meet { grid-template-columns: 1fr; } .meet .clock { width: 90px; height: 90px; } }
.pen { width: 100%; border-collapse: collapse; margin-top: 36px; background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.pen th, .pen td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pen thead th { background: var(--navy); color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pen tbody tr:last-child td, .pen tbody tr:last-child th { border-bottom: 0; }
.pen tbody tr { transition: background .3s; }
.pen tbody tr:hover { background: #FBFAF7; }
.pen td:first-child { width: 60px; font-family: var(--serif); font-weight: 700; color: var(--goldd); }
.pen td:nth-child(2) { color: var(--navy); font-weight: 600; }
.pen td:nth-child(3) { color: var(--muted); }
@media (max-width: 760px) {
  .pen, .pen tbody, .pen tr, .pen td { display: block; width: 100%; }
  .pen thead { display: none; }
  .pen tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .pen td { padding: 2px 0; border: 0; }
  .pen td:first-child { width: auto; }
  .pen td:nth-child(3)::before { content: "Penalty: "; font-weight: 700; color: var(--goldd); }
}
@media (prefers-reduced-motion: reduce) { .js .bill::before, .js .bill li { transform: none; opacity: 1; } .js .ph-tall { clip-path: none; } }

/* =====================================================================
   Privacy / Terms, and the LSS Assistant chat
   ===================================================================== */

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(60px, 8vw, 100px); }
.lg-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.lg-toc { position: sticky; top: 100px; font-size: 14.5px; }
.lg-toc b { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--goldd); margin-bottom: 14px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); counter-reset: l; }
.lg-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .3s, border-color .3s; }
.lg-toc a:hover, .lg-toc a.on { color: var(--navy); border-left-color: var(--gold); }
.lg-toc .lg-other { display: inline-block; margin-top: 22px; padding: 0; border: 0; font-weight: 700; color: var(--crest); }
.lg-body { max-width: 760px; }
.lg-sec { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.lg-sec h2 { font-size: clamp(26px, 2.6vw, 34px); color: var(--navy); margin-bottom: 16px; }
.lg-sec p { color: var(--ink); line-height: 1.7; }
.lg-sec p + p, .lg-sec ul + p, .lg-sec p + ul { margin-top: 16px; }
.lg-sec .plist { max-width: none; }
.lg-sec .plist li { color: var(--ink); line-height: 1.65; }
.lg-sec a { color: var(--crest); }
#data-deletion { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 6px; padding: 30px; }
@media (max-width: 900px) { .lg-grid { grid-template-columns: 1fr; } .lg-toc { position: static; } }

/* ---------- Floating "Ask LSS" button ---------- */
.ask-fab { position: fixed; right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; display: inline-flex; align-items: center; gap: 0; height: 58px; padding: 0 7px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 18px 40px -14px rgba(0,18,31,.6), 0 0 0 1px rgba(255,255,255,.08) inset; cursor: pointer; font: 700 14.5px var(--sans); transition: gap .45s var(--ease), padding .45s var(--ease), transform .4s var(--ease), opacity .3s; }
.ask-fab .ask-ic { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; }
.ask-fab .ask-ic svg { width: 22px; height: 22px; }
.ask-fab .ask-ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: pulse 2.8s ease-out 6s 3; }
.ask-fab .ask-tx { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease); }
.ask-fab:hover, .ask-fab:focus-visible { gap: 12px; padding-right: 22px; }
.ask-fab:hover .ask-tx, .ask-fab:focus-visible .ask-tx { max-width: 160px; }
@media (min-width: 1100px) { .ask-fab { gap: 12px; padding-right: 22px; } .ask-fab .ask-tx { max-width: 160px; } }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
.chat-open .ask-fab, .menu-open .ask-fab, .intro .ask-fab { opacity: 0; transform: scale(.6); pointer-events: none; }

/* ---------- Chat window ---------- */
.chat { position: fixed; right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90; width: min(410px, calc(100vw - 36px)); height: min(640px, calc(100vh - 36px)); height: min(640px, calc(100dvh - 36px)); display: flex; flex-direction: column; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,18,31,.65), 0 0 0 1px rgba(0,34,55,.08); transform-origin: 100% 100%; opacity: 0; transform: translateY(20px) scale(.92); visibility: hidden; transition: opacity .35s ease, transform .5s var(--ease), visibility 0s linear .5s; }
.chat-open .chat { opacity: 1; transform: none; visibility: visible; transition: opacity .35s ease, transform .5s var(--ease), visibility 0s; }
@media (max-width: 560px) { .chat { right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; } .chat-open body { overflow: hidden; } }
.chat-hd { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--navy); color: #fff; }
.chat-hd > svg { width: 38px; height: 38px; flex: none; }
.chat-hd div:first-of-type { margin-right: auto; min-width: 0; }
.chat-hd b { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.chat-hd small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--onm); }
.chat-hd small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61,214,140,.2); }
.chat-lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.1); }
.chat-lang button { border: 0; background: none; color: var(--onm); font: 700 12.5px var(--sans); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.chat-lang button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.chat-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-x:hover { background: rgba(255,255,255,.18); }
.chat-x svg { width: 18px; height: 18px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.55; animation: msgIn .45s var(--ease); overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 4px; box-shadow: 0 1px 0 var(--line); }
.msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: var(--crest); }
.msg.user a { color: var(--gold); }
.msg[dir="rtl"] { font-size: 16.5px; line-height: 1.9; }
.msg.note { align-self: stretch; max-width: none; background: rgba(255,213,138,.35); color: var(--goldd); font-size: 13.5px; box-shadow: none; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 12px; }
.chat-chips:empty { display: none; }
.chat-chips button { border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 600 13.5px var(--sans); padding: 8px 13px; border-radius: 999px; cursor: pointer; transition: border-color .3s, background .3s; }
.chat-chips button:hover { border-color: var(--gold); background: #FFFBF2; }
.chat-in { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-in input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 16px; font: 16px var(--sans); color: var(--ink); background: var(--paper); }
.chat-in input:focus { outline: none; border-color: var(--crest); background: #fff; }
.chat-in button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease); }
.chat-in button:hover { transform: scale(1.06); }
.chat-in button[disabled] { opacity: .5; cursor: wait; transform: none; }
.chat-in button svg { width: 20px; height: 20px; }
.chat-note { margin: 0; padding: 0 16px 10px; background: #fff; font-size: 11.5px; color: var(--muted); text-align: center; }
.btn.askbtn { background: transparent; border-color: currentColor; }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } .ask-fab .ask-ic::after { animation: none; } }

/* ---------- Announcement card (home page, from the admin panel) ---------- */
.ann-card { position: fixed; z-index: 75; left: calc(18px + env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 112px)); background: #fff; color: var(--ink); border-radius: 12px; padding: 16px 46px 16px 18px; border-left: 5px solid var(--gold); box-shadow: 0 30px 70px -25px rgba(0,18,31,.6), 0 0 0 1px rgba(0,34,55,.06); opacity: 0; transform: translateY(24px); visibility: hidden; transition: opacity .5s ease, transform .6s var(--ease), visibility 0s linear .6s; }
.ann-card.in { opacity: 1; transform: none; visibility: visible; transition: opacity .5s ease, transform .6s var(--ease), visibility 0s; }
.ann-card .kick { font-size: 11px; }
.ann-card b { display: block; margin: 6px 0 4px; font-family: var(--serif); font-size: 18px; line-height: 1.25; color: var(--navy); }
.ann-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-height: 7.6em; overflow-y: auto; white-space: pre-wrap; }
.ann-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--paper); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.ann-x:hover { background: var(--gold); }
.menu-open .ann-card, .chat-open .ann-card { visibility: hidden; opacity: 0; }

/* ---------- Home: "Find your way" (audience tabs + link cards) ---------- */
.ask { background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); }
.ask-head { text-align: center; }
.ask-head .kick { justify-content: center; }
.ask-head h2 { font-size: clamp(34px, 4.6vw, 60px); color: var(--navy); margin: 16px 0 30px; }
.ask-head h2 em { font-style: italic; font-weight: 600; color: var(--crest); }
.who-row { display: flex; justify-content: center; margin-bottom: 40px; }
.who { position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 16px 40px -26px rgba(0,34,55,.45); }
.who button { position: relative; z-index: 1; border: 0; background: none; padding: 12px 24px; border-radius: 999px; font: 700 15px var(--sans); color: var(--muted); cursor: pointer; transition: color .35s, background .35s; }
.who button:hover { color: var(--navy); }
.who button[aria-selected="true"] { background: var(--navy); color: #fff; }
.who.glide-on button[aria-selected="true"] { background: transparent; }
.who-glide { position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; border-radius: 999px; background: var(--navy); box-shadow: 0 8px 20px -8px rgba(0,34,55,.6); transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
.who:not(.glide-on) .who-glide { display: none; }
.way-set { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.js .way-set:not(.on) { display: none; }
.way { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 230px; padding: 26px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.way::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.way:hover, .way:focus-visible { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 50px -30px rgba(0,34,55,.55); }
.way:hover::before, .way:focus-visible::before { transform: scaleX(1); }
.way .wi { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: #E8F3FB; color: var(--crest); margin-bottom: 8px; transition: background .4s, color .4s; }
.way:hover .wi { background: var(--navy); color: var(--gold); }
.way .wi svg { width: 27px; height: 27px; }
.way b { font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--navy); }
.way .wd { flex: 1; color: var(--muted); font-size: 15px; line-height: 1.5; }
.way .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--goldd); }
.way .go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.way:hover .go svg { transform: translateX(5px); }
.way-set.on .way { animation: wayIn .65s var(--ease) both; animation-delay: calc(var(--n) * .07s); }
@keyframes wayIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .way-set { grid-template-columns: 1fr 1fr; } .way { min-height: 0; } }
@media (max-width: 640px) {
  .who { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; width: 100%; }
  .who button { border-radius: 14px; padding: 12px 10px; }
  .who-glide { border-radius: 14px; }
  .way-set { grid-template-columns: 1fr; gap: 12px; }
  .way { display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; column-gap: 14px; row-gap: 2px; padding: 16px; border-radius: 14px; }
  .way .wi { grid-row: 1 / span 2; width: 48px; height: 48px; margin: 0; }
  .way b { grid-column: 2; font-size: 19px; }
  .way .wd { grid-column: 2; font-size: 14px; }
  .way .go { grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 0; }
}
@media (prefers-reduced-motion: reduce) { .way-set.on .way { animation: none; } }
@media (max-width: 640px) {
  .ann-card { padding: 12px 42px 12px 14px; width: calc(100vw - 104px); }
  .ann-card b { font-size: 16px; margin: 4px 0 2px; }
  .ann-card p { font-size: 13.5px; max-height: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ann-x { top: 8px; right: 8px; width: 28px; height: 28px; }
}

/* =====================================================================
   Picture effects (20 Nov 2026): reveals, parallax, 3D tilt with light,
   light sweep on the building photos, floating photo cards, deeper hero.
   Transforms and opacity only; everything is off when less motion is asked for.
   ===================================================================== */

/* Curtain reveal: the frame opens and the photo settles into place */
.js [data-reveal] { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); transition-delay: calc(var(--d, 0) * .12s); }
.js [data-reveal="left"] { clip-path: inset(0 100% 0 0); }
.js [data-reveal] img { scale: 1.28; transition: scale 1.9s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * .12s), 0s; }
.js [data-reveal].revealed { clip-path: inset(0 0 0 0); }
.js [data-reveal].revealed img { scale: 1; }

/* Parallax: the photo moves a little slower than the page (the script sets "translate") */
img[data-parallax] { scale: 1.2; will-change: translate; }
.js [data-reveal] img[data-parallax] { scale: 1.45; }
.js [data-reveal].revealed img[data-parallax] { scale: 1.2; }
.ph-media img[data-parallax] { scale: 1.14; }
.band img[data-parallax] { scale: 1.04; }

/* 3D tilt with a soft light that follows the pointer (desktop only; the script adds the light) */
[data-tilt] { transform-style: preserve-3d; }
.tilt-light { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 30%), rgba(255,255,255,.32), rgba(255,255,255,0) 55%); mix-blend-mode: soft-light; }
[data-tilt]:hover .tilt-light { opacity: 1; }
.card .card-tx, .about-img .tag, .ph-tall figcaption { z-index: 2; }

/* A sweep of light across the building photos: once when they appear, again on hover */
.sweep::after { content: ""; position: absolute; inset: 0 -60%; z-index: 1; pointer-events: none; translate: -100% 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.22) 48%, rgba(255,255,255,.06) 54%, transparent 62%); }
.ready .ph-media.sweep::after, .ready .ph-tall.sweep::after, .revealed.sweep::after { animation: sweepIn 2.6s cubic-bezier(.45,.05,.25,1) 1.3s 1 both; }
.about-img.sweep:hover::after, .ph-tall.sweep:hover::after { animation: sweepAgain 1.7s cubic-bezier(.45,.05,.25,1) 1 both; }
@keyframes sweepIn { from { translate: -100% 0; } to { translate: 100% 0; } }
@keyframes sweepAgain { from { translate: -100% 0; } to { translate: 100% 0; } }

/* Home hero: each slide zooms from a different point; the photo layer can drift with the pointer */
.hero-media { scale: 1.06; }
.hero-media .slide { transition: opacity 1.8s ease, translate 1.1s cubic-bezier(.2,.7,.2,1); }
.hero-media .slide:nth-child(2) img { transform-origin: 72% 35%; }
.hero-media .slide:nth-child(3) img { transform-origin: 25% 65%; }

/* Photo cards that hover gently in the air (Parents' Guide) and straighten up under the pointer */
.ready [data-float] figure:first-child { animation: floatA 7s ease-in-out 2.1s infinite; }
.ready [data-float] figure:last-child { animation: floatB 8.5s ease-in-out 2.3s infinite; }
@keyframes floatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes floatB { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }
[data-float] figure { transition: transform .7s var(--ease), box-shadow .7s ease; }
[data-float] figure:hover { transform: rotate(0deg) scale(1.04); z-index: 2; box-shadow: 0 50px 90px -40px rgba(0,0,0,.85); }

/* Softer hover zoom on the image cards, with a little more light */
.exp img, .camp img { transition: transform 1.2s var(--ease), filter .6s ease, scale 1.9s var(--ease); }
.exp:hover img, .camp:hover img { filter: brightness(1.06) saturate(1.06); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { clip-path: none; }
  .js [data-reveal] img, img[data-parallax], .hero-media { scale: 1 !important; translate: none !important; }
  .sweep::after { display: none; }
  .ready [data-float] figure { animation: none; }
}
