/* ==========================================================================
   King's Cross Academy — main stylesheet
   Brand: royal navy + crown gold on warm cream, from the crest. Fraunces (headings) + Plus Jakarta Sans (text).
   ========================================================================== */

:root {
	--navy-900: #0e1c47;
	--navy: #14265c;
	--royal: #2446a0;
	--royal-50: #eef2fb;
	--gold: #e5a632;
	--gold-600: #c98a17;
	--gold-100: #fbefd6;
	--cream: #fbf7ef;
	--sand: #f3ecdf;
	--ink: #172036;
	--muted: #5a6479;
	--line: #e4ddcf;
	--white: #fff;
	--wa: #1fa855;

	--serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 18px 40px -18px rgba(14, 28, 71, .28);
	--shadow-sm: 0 6px 18px -8px rgba(14, 28, 71, .22);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(64px, 9vw, 120px);
	--header-h: 84px;
	--ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; overflow-x: clip; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #dfe5f5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 14px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--navy .eyebrow, .on-dark .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #c4cde6; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: end; justify-content: space-between; }
.section-head--split > div { max-width: 700px; }
.accent { color: var(--gold-600); font-style: italic; }
.on-dark .accent, .section--navy .accent { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn { --bg: var(--navy); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 999px; background: var(--bg); color: var(--fg); border: 2px solid var(--bg); font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.2; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), translate .25s var(--ease); }
.btn .icon { transition: translate .25s var(--ease); }
.btn:hover { color: var(--fg); box-shadow: var(--shadow-sm); translate: 0 -1px; }
.btn:hover .icon { translate: 3px 0; }
.btn--primary:hover { --bg: var(--royal); }
.btn--gold { --bg: var(--gold); --fg: var(--navy-900); }
.btn--gold:hover { --bg: #f0b545; }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { --bg: var(--navy); --fg: #fff; }
.btn--light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.6); }
.btn--light:hover { --bg: #fff; --fg: var(--navy); border-color: #fff; }
.btn--wa { --bg: var(--wa); --fg: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--royal); }
.link-arrow .icon { transition: translate .25s var(--ease); }
.link-arrow:hover .icon { translate: 4px 0; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-900); color: #c8d1ea; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.topbar a { color: #e6ebf8; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--gold); }
.topbar .icon { color: var(--gold); width: 15px; height: 15px; }
.topbar__right { margin-left: auto; gap: 20px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(14,28,71,.35); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); width: min(1320px, 100% - 2 * var(--gutter)); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; white-space: nowrap; flex: none; }
.nav__list a, .btn { white-space: nowrap; }
.brand__logo { height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.28rem; color: var(--navy); letter-spacing: -.01em; }
.brand__tag { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-top: 4px; }
.nav__list { list-style: none; display: flex; gap: 4px; }
.nav__list a { display: block; padding: 10px 12px; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; border-radius: 8px; position: relative; }
.nav__list a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--navy); }
.nav__mobile-extra { display: none; }
.site-header__cta { min-height: 44px; padding: 10px 20px; font-size: .92rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); align-items: center; justify-content: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }

@media (max-width: 1180px) {
	.nav__list a { padding: 10px 9px; font-size: .9rem; }
	.site-header__inner { gap: 16px; }
}
@media (max-width: 1060px) {
	:root { --header-h: 72px; }
	.topbar__hours, .topbar__mail { display: none; }
	.nav-toggle { display: inline-flex; }
	.site-header__cta { display: none; }
	/* backdrop-filter would make the header the containing block of the fixed menu panel and clip it. */
	.site-header { backdrop-filter: none; background: var(--white); }
	.nav { position: fixed; inset: var(--nav-top, calc(var(--header-h) + 40px)) 0 0; background: var(--white); padding: 24px var(--gutter) 120px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { font-family: var(--serif); font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--navy); }
	.nav__list a::after { display: none; }
	.nav__list a[aria-current="page"] { color: var(--gold-600); }
	.nav__mobile-extra { display: grid; gap: 14px; margin-top: 28px; }
	.nav__mobile-extra p { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); }
	.nav__mobile-extra a { color: var(--navy); font-weight: 700; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
}
@media (max-width: 640px) {
	.topbar { display: none; }
	.brand__logo { height: 46px; }
	.brand__name { font-size: 1.08rem; }
	.brand__tag { font-size: .62rem; letter-spacing: .12em; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-900); isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(10,20,52,.92) 0%, rgba(14,28,71,.78) 38%, rgba(14,28,71,.25) 72%, rgba(14,28,71,.1) 100%), linear-gradient(0deg, rgba(10,20,52,.7), transparent 40%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; padding-block: clamp(64px, 10vw, 120px) clamp(140px, 16vw, 190px); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 14ch; margin-bottom: .35em; }
.hero h1 .accent { color: var(--gold); }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #d7def2; max-width: 52ch; margin-bottom: 32px; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; margin-bottom: 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px); }
.hero__badge b { background: var(--gold); color: var(--navy-900); padding: 3px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .06em; }
.hero__video { justify-self: end; width: min(270px, 100%); aspect-ratio: 9 / 14; position: relative; border-radius: 22px; overflow: hidden; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); background: #000; padding: 0; color: #fff; text-align: left; transition: translate .4s var(--ease); }
.hero__video:hover { translate: 0 -4px; }
.hero__video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero__video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,20,52,.85), transparent 55%); }
.hero__video-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: 2; width: 68px; height: 68px; border-radius: 50%; background: var(--gold); color: var(--navy-900); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(229,166,50,.25); animation: pulse 2.4s var(--ease) infinite; }
.hero__video-play .icon { width: 26px; height: 26px; margin-left: 4px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(229,166,50,0); } }
.hero__video-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; font-size: .85rem; line-height: 1.35; }
.hero__video-text strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 2px; }
.hero__dots { position: absolute; left: 50%; bottom: 130px; translate: -50% 0; display: flex; gap: 8px; z-index: 2; }
.hero__dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.5); padding: 0; transition: width .3s var(--ease), background .3s; }
.hero__dots button.is-active { width: 28px; background: var(--gold); }

/* Pathway cards overlapping the hero */
.pathways { position: relative; z-index: 3; margin-top: clamp(-120px, -10vw, -80px); }
.pathways__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pathway { display: flex; flex-direction: column; gap: 10px; padding: 30px 26px; color: #fff; text-decoration: none; background: var(--navy); min-height: 230px; position: relative; transition: background .3s var(--ease); }
.pathway:nth-child(2) { background: var(--royal); }
.pathway:nth-child(3) { background: #1b3a8c; }
.pathway:nth-child(4) { background: var(--gold); color: var(--navy-900); }
.pathway:hover { background: var(--navy-900); color: #fff; }
.pathway:nth-child(4):hover { background: #f0b545; color: var(--navy-900); }
.pathway__ages { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.pathway h3 { color: inherit; font-size: 1.45rem; margin: 0; }
.pathway p { font-size: .92rem; opacity: .85; margin: 0; }
.pathway .link-arrow { color: inherit; margin-top: auto; font-size: .9rem; }
.pathway:hover .link-arrow .icon { translate: 4px 0; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: #fff; padding: 26px 22px; }
.fact__num { font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; color: var(--navy); line-height: 1; }
.fact__label { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }

@media (max-width: 960px) {
	.hero__inner { grid-template-columns: 1fr; padding-bottom: 150px; }
	.hero__video { justify-self: start; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; }
	.hero__video img { object-position: 50% 30%; }
	.pathways__grid { grid-template-columns: repeat(2, 1fr); }
	.facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.hero { min-height: 0; }
	.hero__dots { bottom: 104px; }
	.pathways__grid { grid-template-columns: 1fr; }
	.pathway { min-height: 0; padding: 24px 22px; }
}

/* ---------- Split layout (image + text) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.frame { position: relative; border-radius: var(--radius); }
.frame img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3.2; box-shadow: var(--shadow); position: relative; z-index: 1; }
.frame::before { content: ''; position: absolute; inset: 22px -18px -18px 22px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0; }
.frame--left::before { inset: 22px 22px -18px -18px; }
.collage { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: auto auto; gap: 16px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.collage img:first-child { grid-row: span 2; aspect-ratio: 3 / 4; border-radius: var(--radius); }
.collage img:not(:first-child) { aspect-ratio: 4 / 3.3; }
.stamp { position: absolute; z-index: 2; right: -12px; bottom: 28px; background: #fff; border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; max-width: 250px; }
.stamp__num { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--gold-600); line-height: 1; }
.stamp p { margin: 0; font-size: .85rem; line-height: 1.35; color: var(--muted); }
.checklist { list-style: none; display: grid; gap: 10px; margin: 0 0 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: #fff; background: var(--gold); border-radius: 50%; padding: 4px; width: 22px; height: 22px; margin-top: 3px; stroke-width: 3; }
@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 0; }
	.stamp { right: 8px; }
}

/* ---------- Value cards ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: translate .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.value:hover { translate: 0 -4px; box-shadow: var(--shadow); border-color: transparent; }
.value__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--royal-50); color: var(--royal); margin-bottom: 18px; }
.value__icon .icon { width: 26px; height: 26px; }
.value:nth-child(even) .value__icon { background: var(--gold-100); color: var(--gold-600); }
.value h3 { font-size: 1.25rem; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; }
.section--navy .value { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section--navy .value h3 { color: #fff; }
.section--navy .value p { color: #c4cde6; }
.section--navy .value__icon { background: rgba(229,166,50,.16); color: var(--gold); }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Video reels ---------- */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 22px; margin-inline: -4px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.reel { scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; border: 0; padding: 0; background: #000; color: #fff; text-align: left; box-shadow: var(--shadow-sm); }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease), opacity .3s; }
.reel:hover img { scale: 1.05; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,16,42,.92) 5%, rgba(8,16,42,.1) 50%, transparent); }
.reel__play { position: absolute; z-index: 2; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; transition: background .3s, color .3s; }
.reel__play .icon { width: 18px; height: 18px; margin-left: 3px; }
.reel:hover .reel__play { background: var(--gold); color: var(--navy-900); }
.reel__text { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; font-size: .82rem; }
.reel__text strong { display: block; font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; margin-bottom: 6px; }
.reel__text span { color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }
.reels-nav { display: flex; gap: 10px; }
.reels-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; display: grid; place-items: center; transition: background .25s, color .25s; }
.reels-nav button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.reels-nav button:first-child .icon { rotate: 180deg; }
@media (max-width: 1000px) { .reels { grid-auto-columns: 42%; } }
@media (max-width: 560px) { .reels { grid-auto-columns: 70%; } }

/* ---------- What is IGCSE ---------- */
.igcse-box { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); border-radius: calc(var(--radius) + 8px); overflow: hidden; color: #d8dff2; }
.igcse-box__text { padding: clamp(32px, 5vw, 64px); }
.igcse-box h2 { color: #fff; }
.igcse-box__img { position: relative; min-height: 320px; }
.igcse-box__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 28px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: .85rem; font-weight: 600; color: #fff; }
.chips--light li { background: var(--royal-50); border-color: transparent; color: var(--navy); }
@media (max-width: 860px) { .igcse-box { grid-template-columns: 1fr; } .igcse-box__img { order: -1; min-height: 240px; } }

/* ---------- Photo mosaic (home activities) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.mosaic__item { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 0; padding: 0; background: var(--sand); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.mosaic__item:hover img { scale: 1.06; }
.mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic__item:nth-child(6) { grid-column: span 2; }
.mosaic__label { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--navy); font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s var(--ease); }
.mosaic__item:hover .mosaic__label, .mosaic__item:focus-visible .mosaic__label { opacity: 1; translate: 0 0; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .mosaic__item:nth-child(6) { grid-column: auto; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.quote { scroll-snap-align: start; background: #fff; border-radius: var(--radius); padding: 32px 28px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; margin: 0; }
.quote__mark { font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--gold); height: 30px; }
.quote blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--navy); font-weight: 500; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--royal-50); color: var(--royal); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.quote figcaption b { display: block; color: var(--ink); }
.quote figcaption span { color: var(--muted); }
@media (max-width: 900px) { .quotes { grid-auto-columns: 70%; } }
@media (max-width: 560px) { .quotes { grid-auto-columns: 88%; } }

/* ---------- News cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: translate .3s var(--ease), box-shadow .3s var(--ease); position: relative; }
.card:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.card:hover .card__media img { scale: 1.05; }
.card__badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--navy-900); font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.card__badge .icon { width: 12px; height: 12px; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: .78rem; font-weight: 600; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card__meta a, .card__topic { color: var(--gold-600); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card p { color: var(--muted); font-size: .94rem; margin: 0 0 16px; }
.card .link-arrow { margin-top: auto; font-size: .9rem; }
.card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.card--feature .card__media { aspect-ratio: auto; min-height: 340px; }
.card--feature .card__body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.card--feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } .card--feature { grid-template-columns: 1fr; } .card--feature .card__media { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; padding: clamp(40px, 6vw, 72px); background: var(--navy); color: #d8dff2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 100% 0%, rgba(229,166,50,.35), transparent 45%), radial-gradient(circle at 0% 100%, rgba(36,70,160,.8), transparent 50%); }
.cta-band__crest { position: absolute; right: -40px; bottom: -60px; width: 320px; opacity: .07; z-index: -1; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #c9d2ea; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Visit / map ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.visit__info { padding: clamp(28px, 4vw, 48px); }
.visit__map { min-height: 380px; background: var(--sand); }
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 380px; }
.info-list { list-style: none; display: grid; gap: 18px; margin: 0 0 28px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--royal-50); color: var(--royal); }
.info-list b { display: block; color: var(--navy); font-size: .95rem; }
.info-list span, .info-list a { color: var(--muted); font-size: .95rem; }
.info-list a { text-decoration: none; }
.info-list a:hover { color: var(--royal); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.page-hero__img { position: absolute; inset: 0; z-index: -2; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(10,20,52,.92), rgba(14,28,71,.7) 55%, rgba(14,28,71,.35)); }
.page-hero__inner { padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 100px); max-width: 780px; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero p { color: #d5dcf0; font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 60ch; margin: 0; }
.page-hero .btn-row { margin-top: 28px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; margin-bottom: 18px; color: #aab5d6; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { color: #e6ebf8; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* In-page section nav (Programmes) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav a { display: block; white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--navy); text-decoration: none; background: var(--cream); }
.subnav a:hover, .subnav a.is-active { background: var(--navy); color: #fff; }

/* ---------- Programmes ---------- */
.programme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 70px); }
.programme:last-child { border-bottom: 0; }
.programme:nth-child(even) .programme__media { order: 2; }
.programme__media { position: sticky; top: calc(var(--header-h) + 90px); }
.programme__tag { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-100); color: var(--gold-600); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.programme__tag .icon { width: 16px; height: 16px; }
.programme h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.programme__lead { font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; margin: 24px 0 0; }
.subject-grid li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--cream); border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.subject-grid .icon { color: var(--gold-600); width: 18px; height: 18px; stroke-width: 2.6; }
@media (max-width: 860px) { .programme { grid-template-columns: 1fr; } .programme:nth-child(even) .programme__media { order: 0; } .programme__media { position: static; } .subject-grid { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.compare tbody th { color: var(--navy); width: 26%; background: var(--cream); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- Pillars / about ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pillar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pillar__body { padding: 26px; }
.pillar__num { font-family: var(--serif); color: var(--gold-600); font-weight: 700; font-size: .95rem; }
.pillar p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .pillar { display: grid; grid-template-columns: 40% 1fr; } .pillar img { height: 100%; aspect-ratio: auto; } }
@media (max-width: 560px) { .pillar { grid-template-columns: 1fr; } }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vm__card { border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.vm__card--navy { background: var(--navy); color: #d7def2; border: 0; }
.vm__card--navy h3 { color: #fff; }
.vm__card h3 { font-size: 1.7rem; display: flex; align-items: center; gap: 12px; }
.vm__card h3 .icon { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--gold); color: var(--navy-900); }
.vm__words { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; }
.vm__words li { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; padding: 6px 14px; border-radius: 999px; background: rgba(229,166,50,.16); color: var(--gold); }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }

.principals { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.letter { background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); position: relative; }
.letter::before { content: '“'; position: absolute; top: 12px; right: 28px; font-family: var(--serif); font-size: 8rem; line-height: 1; color: var(--gold-100); }
.letter p:not(.eyebrow) { font-family: var(--serif); font-size: 1.1rem; line-height: 1.7; color: var(--ink); }
.letter__sign { font-family: var(--sans) !important; font-size: .95rem !important; color: var(--muted) !important; margin: 24px 0 0; }
.letter__sign b { color: var(--navy); display: block; font-size: 1.05rem; }
.principal-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .principals { grid-template-columns: 1fr; } }

/* ---------- Steps (admissions) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; position: relative; }
.steps::before { content: ''; position: absolute; top: 36px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; position: relative; box-shadow: 0 0 0 8px var(--cream); }
.step__icon .icon { width: 28px; height: 28px; }
.step__icon::after { counter-increment: step; content: counter(step); position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { display: grid; grid-template-columns: 72px 1fr; gap: 18px; text-align: left; } .step__icon { margin: 0; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--navy); position: relative; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c98a17' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq__answer { padding: 0 24px 22px; color: var(--muted); }
.faq__answer p:last-child { margin: 0; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form__field { display: grid; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-size: .85rem; font-weight: 700; color: var(--navy); }
.form label small { font-weight: 500; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); transition: border-color .2s, background .2s, box-shadow .2s; }
.form textarea { min-height: 130px; resize: vertical; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314265c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--royal); background: #fff; box-shadow: 0 0 0 4px rgba(36,70,160,.12); }
.form__check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); font-weight: 500 !important; }
.form__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form__hp { position: absolute !important; left: -9999px !important; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__actions .btn { min-width: 200px; }
.form__actions .btn[disabled] { opacity: .6; pointer-events: none; }
.form__legal { grid-column: 1 / -1; font-size: .75rem; color: var(--muted); margin: 0; }
.form__legal a { color: inherit; }
.notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: 12px; font-weight: 600; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.notice--success { background: #e8f6ee; color: #125c34; }
.notice--error { background: #fdecec; color: #8b1d1d; }
.grecaptcha-badge { visibility: hidden; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Activities page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: .9rem; padding: 10px 18px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters button span { opacity: .6; font-weight: 600; margin-left: 4px; }
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.album { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: translate .3s var(--ease), box-shadow .3s var(--ease); }
.album:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.album__open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.album__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.album__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.album:hover .album__media img { scale: 1.05; }
.album__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; background: rgba(14,28,71,.85); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.album__count .icon { width: 14px; height: 14px; }
.album__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.album__strip img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.album__body { padding: 20px 22px 22px; }
.album__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.album__type { color: var(--gold-600); text-transform: uppercase; letter-spacing: .08em; }
.album__date { color: var(--muted); }
.album h3 { font-size: 1.25rem; margin: 0 0 6px; }
.album p { color: var(--muted); font-size: .92rem; margin: 0; }
.album.is-hidden { display: none; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); background: var(--cream); border-radius: var(--radius); }
@media (max-width: 960px) { .albums { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .albums { grid-template-columns: 1fr; } }

.enrich { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; list-style: none; }
.enrich li { background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 20px 12px; text-align: center; font-weight: 700; color: var(--navy); font-size: .9rem; display: grid; justify-items: center; gap: 10px; }
.enrich .icon { width: 30px; height: 30px; color: var(--gold-600); }
@media (max-width: 900px) { .enrich { grid-template-columns: repeat(3, 1fr); } }

/* ---------- News index & single ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; list-style: none; }
.topics a { display: block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--navy); text-decoration: none; background: #fff; }
.topics a:hover, .topics a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; color: var(--navy); }
.pagination .current, .pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.article-hero { background: var(--cream); padding-block: clamp(48px, 7vw, 88px) 0; }
.article-hero .crumbs { color: var(--muted); }
.article-hero .crumbs a { color: var(--royal); }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 32px; }
.article-meta a { color: var(--gold-600); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: -80px; position: relative; z-index: 1; box-shadow: var(--shadow); }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article-body { padding-top: 120px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { background: var(--navy); color: #d7def2; border-radius: var(--radius); padding: 28px 24px; }
.aside-card h2 { color: #fff; font-size: 1.35rem; }
.aside-card p { font-size: .92rem; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-card--light { background: var(--cream); color: var(--ink); }
.aside-card--light h2 { color: var(--navy); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* Prose (post content from the block editor) */
.prose { font-size: 1.08rem; line-height: 1.8; }
.prose > * { margin-block: 0 1.2em; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold-600); }
.prose blockquote { margin-inline: 0; padding: 18px 24px; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 0 12px 12px 0; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.prose blockquote p:last-child { margin: 0; }
.prose blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--muted); margin-top: 8px; }
.prose img { border-radius: var(--radius-sm); }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--navy); color: #fff; }
.prose .wp-block-video { margin-inline: auto; max-width: 380px; }
.prose .wp-block-video video { border-radius: var(--radius); background: #000; aspect-ratio: 9 / 16; width: 100%; box-shadow: var(--shadow); }
.prose .wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; }
.prose .wp-block-column { flex: 1 1 240px; }
.prose .wp-block-column .wp-block-video { max-width: none; }
.prose .kc-callout { background: var(--royal-50); border-radius: var(--radius-sm); padding: 22px 26px; }
.prose .kc-callout > :last-child { margin-bottom: 0; }
.prose a { font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.notfound__code { font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; color: var(--gold); line-height: 1; margin: 0; }
.notfound .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b8c3e0; font-size: .94rem; padding-top: clamp(56px, 7vw, 88px); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.3fr; gap: 40px; }
.site-footer__brand img { height: 96px; width: auto; margin-bottom: 18px; }
.site-footer__areas { font-size: .85rem; color: #8f9cc4; }
.site-footer__title { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #e3e8f6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__contact p { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.site-footer__contact .icon { color: var(--gold); margin-top: 4px; width: 17px; height: 17px; }
.site-footer__social { gap: 10px !important; margin-top: 18px; }
.site-footer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s, color .2s; }
.site-footer__social a:hover { background: var(--gold); color: var(--navy-900); }
.site-footer__social .icon { margin: 0 !important; color: inherit !important; width: 18px !important; height: 18px !important; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-block: 22px 26px; font-size: .82rem; color: #8f9cc4; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 72px; } }

/* ---------- Quick-contact rail (desktop) / action bar (phones) ---------- */
.rail { position: fixed; right: 0; top: 50%; translate: 0 -50%; z-index: 90; display: grid; gap: 4px; }
.rail__item { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 14px 0 0 14px; color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; background: var(--navy); translate: calc(100% - 52px) 0; transition: translate .35s var(--ease), background .2s; box-shadow: var(--shadow-sm); }
.rail__item .icon { width: 20px; height: 20px; }
.rail__item:hover, .rail__item:focus-visible { translate: 0 0; color: #fff; }
.rail__item--enquire { background: var(--gold); color: var(--navy-900); }
.rail__item--enquire:hover { color: var(--navy-900); }
.rail__item--wa { background: var(--wa); }
@media (max-width: 560px) {
	.rail { top: auto; bottom: 0; left: 0; right: 0; translate: none; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; box-shadow: 0 -6px 20px -8px rgba(14,28,71,.35); padding-bottom: env(safe-area-inset-bottom); background: var(--navy); }
	.rail__item { translate: none; border-radius: 0; justify-content: center; height: 58px; padding: 0 8px; font-size: .82rem; box-shadow: none; }
	.rail__item--call { order: 3; }
}

/* ---------- Video modal & lightbox ---------- */
.video-modal, .lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.video-modal__backdrop, .lightbox__backdrop { position: absolute; inset: 0; background: rgba(6,12,30,.88); backdrop-filter: blur(4px); }
.video-modal__dialog { position: relative; width: min(420px, 100%); max-height: calc(100vh - 40px); }
.video-modal__video { width: 100%; max-height: calc(100vh - 110px); aspect-ratio: 9 / 16; border-radius: var(--radius); background: #000; object-fit: contain; }
.video-modal__caption { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 600; }
.video-modal__close, .lightbox__close { position: absolute; top: -8px; right: -8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.lightbox__dialog { position: relative; width: min(1100px, 100%); display: flex; align-items: center; gap: 12px; }
.lightbox__figure { margin: 0; flex: 1; text-align: center; }
.lightbox__img { max-height: calc(100vh - 140px); width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox__caption { color: #d7def2; margin-top: 12px; font-size: .9rem; }
.lightbox__close { top: -52px; right: 0; }
.lightbox__nav { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lightbox__nav:hover { background: var(--gold); color: var(--navy-900); }
.lightbox__nav--prev .icon { rotate: 180deg; }
@media (max-width: 600px) { .lightbox__nav { position: absolute; bottom: -64px; } .lightbox__nav--prev { left: 30%; } .lightbox__nav--next { right: 30%; } }
.no-scroll { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
	.js [data-reveal] { opacity: 1; translate: none; }
	.hero__slide img { transform: none; }
}
