/* ==========================================================================
   Little Flower Group of Schools — shared design system
   One stylesheet, two themes: html[data-site="matric"] and [data-site="academy"]
   Mobile-first. No framework, no build step.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-body: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --display-weight: 560;
  --display-track: -0.02em;

  /* Matric (default): royal indigo from the logo, flower green, warm saffron light */
  --ink: #15133f;
  --ink-2: #3c3a63;
  --muted: #6b6987;
  --brand: #26239a;
  --brand-2: #3b37d0;
  --brand-ink: #ffffff;
  --accent: #f2a516;
  --accent-ink: #231a00;
  --leaf: #3aa548;
  --flower-core: #8a1a24;
  --bg: #fbf8f2;
  --surface: #ffffff;
  --tint: #f2eee4;
  --line: rgba(21, 19, 63, 0.12);
  --deep: #13114a;
  --deep-2: #1f1c74;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(21, 19, 63, .06), 0 12px 32px -12px rgba(21, 19, 63, .22);
  --shadow-lg: 0 30px 70px -30px rgba(21, 19, 63, .45);
  --wrap: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

[data-site="academy"] {
  --font-display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 700;
  --display-track: -0.035em;

  /* Academy: deep teal-navy with group saffron/orange */
  --ink: #0d2a33;
  --ink-2: #2f4a52;
  --muted: #5f7479;
  --brand: #0e6470;
  --brand-2: #138494;
  --accent: #f26b1d;
  --accent-ink: #ffffff;
  --leaf: #3aa548;
  --flower-core: #f26b1d;
  --bg: #f5f8f7;
  --surface: #ffffff;
  --tint: #e8f0ef;
  --line: rgba(13, 42, 51, 0.12);
  --deep: #082a31;
  --deep-2: #0d3d47;
  --radius: 8px;
  --radius-sm: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--ink-2);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: 72px; /* room for the mobile dock */
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { color: var(--ink); margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.i.flip { transform: scaleX(-1); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding: clamp(52px, 7vw, 92px) 0; position: relative; }
.section-tint { background: var(--tint); }
.section-ink { background: var(--deep); color: rgba(255, 255, 255, .82); overflow: hidden; }
.section-ink h2, .section-ink h3, .section-ink strong { color: #fff; }
.center-row { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); }
.display { font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 1; margin-bottom: .4em; }
.display .line { display: block; }
.display em, .h1 em, .h2 em, .h3 em { font-style: italic; color: var(--brand); }
[data-site="matric"] .display em, [data-site="matric"] .h1 em, [data-site="matric"] .h2 em { font-weight: 400; }
[data-site="academy"] .display em, [data-site="academy"] .h1 em, [data-site="academy"] .h2 em { font-style: normal; color: var(--accent); }
.h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: 1.04; }
.h2 { font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.08; }
.h3 { font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.25; }
.h4 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.h5 { font-size: 1.05rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 1.1em;
}
.eyebrow-flower { width: 18px; height: 18px; color: var(--leaf); }
.eyebrow-light { color: var(--accent); }
.section-ink .h2 em, .section-ink .h3 em { color: var(--accent); }

.sec-head { margin-bottom: clamp(28px, 5vw, 48px); position: relative; }
.sec-head.is-center { text-align: center; }
.sec-head.is-center .lead { margin-inline: auto; }
.sec-head .lead { margin-top: .6em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px;
  padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--deep); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none; }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.link-arrow.light { color: var(--accent); }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--deep); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-note { margin: 0; display: flex; align-items: center; gap: .6em; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-note a { color: var(--accent); font-weight: 700; }
.topbar-links { display: none; gap: 22px; }
.topbar-links a { display: inline-flex; align-items: center; gap: .45em; opacity: .85; }
.topbar-links a:hover { opacity: 1; }
.topbar-sister { color: var(--accent) !important; font-weight: 700; opacity: 1 !important; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(58,165,72,.7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(58,165,72,0); } 100% { box-shadow: 0 0 0 0 rgba(58,165,72,0); } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.is-stuck { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { flex: none; margin-right: auto; }
.brand img { height: 42px; width: auto; }
.nav { display: none; }
.header-cta { display: none; }
.menu-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.menu-btn .i { width: 22px; height: 22px; }

/* Drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 30, .45); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute; inset: 0 0 0 auto; width: min(88vw, 400px); background: var(--bg); padding: 18px 22px 28px;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto;
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-nav li { opacity: 0; transform: translateX(20px); transition: .45s var(--ease); transition-delay: calc(var(--d) * 45ms + 120ms); }
.drawer.is-open .drawer-nav li { opacity: 1; transform: none; }
.drawer-nav a { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.7rem; letter-spacing: var(--display-track); }
.drawer-nav a span { font-family: var(--font-body); font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .1em; }
.drawer-nav a[aria-current] { color: var(--brand); }
.drawer-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 14px; }
.drawer-sister { display: inline-flex; align-items: center; gap: .4em; justify-content: center; font-weight: 700; text-decoration: none; }
body.menu-open { overflow: hidden; }

/* Mobile quick-action dock */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 22px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.35); border: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.dock.is-hidden { transform: translateY(140%); }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 16px; text-decoration: none; color: var(--ink); font-size: .7rem; font-weight: 700; }
.dock a .i { width: 22px; height: 22px; color: var(--brand); }
.dock a.dock-cta { background: var(--brand); color: #fff; }
.dock a.dock-cta .i { color: var(--accent); }

/* ---------- Hero: Matric ---------- */
.hero { position: relative; overflow: hidden; }
.hero-matric { padding: 36px 0 64px; background:
  radial-gradient(1200px 600px at 85% -10%, rgba(242,165,22,.18), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(58,165,72,.12), transparent 60%), var(--bg); }
.hero-light {
  position: absolute; width: 900px; height: 900px; right: -320px; top: -260px; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(242,165,22,.16) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 65%); mask: radial-gradient(circle, #000 0, transparent 65%);
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-grid { display: grid; gap: 44px; align-items: center; position: relative; }
.hero-eyebrow { margin-bottom: 1.4em; }
.hero-copy .lead { margin-bottom: 1.6em; }
.hero-badges { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px; margin-top: 28px; }
.hero-badges li { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-badges strong { color: var(--ink); font-size: .98rem; }
.hero-badges span { font-size: .74rem; color: var(--muted); }

.hero-art { position: relative; height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
.arch { position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--tint); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-1 { left: 14%; top: 0; width: 56%; height: 86%; border-radius: 999px 999px 26px 26px; z-index: 2; }
.arch-2 { right: 0; top: 18%; width: 34%; height: 50%; border-radius: 26px 26px 999px 999px; z-index: 3; border: 5px solid var(--bg); }
.arch-3 { left: 0; bottom: 0; width: 34%; height: 44%; border-radius: 999px; z-index: 3; border: 5px solid var(--bg); }
.arch-1 img { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.08) translateY(-2%); } }
.hero-flower { position: absolute; color: var(--leaf); z-index: 4; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }
.hero-flower.f1 { width: 54px; height: 54px; right: 8%; top: 2%; animation: float 6s ease-in-out infinite; }
.hero-flower.f2 { width: 34px; height: 34px; left: 6%; top: 20%; animation: float 7s ease-in-out infinite reverse; color: var(--accent); }
@keyframes float { 50% { transform: translateY(-12px) rotate(18deg); } }
.hero-sticker {
  position: absolute; right: 2%; bottom: 2%; z-index: 5; width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 0 16px 30px -12px rgba(242,165,22,.8); transform: rotate(-10deg);
}
.hero-sticker b { font-family: var(--font-display); font-size: 1.6rem; text-transform: none; letter-spacing: 0; font-style: italic; font-weight: 600; }

/* ---------- Hero: Academy ---------- */
.hero-academy { color: #fff; padding: 56px 0 84px; min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(8,42,49,.55) 0%, rgba(8,42,49,.78) 55%, rgba(8,42,49,.96) 100%); }
.hero-academy .hero-grid { z-index: 1; }
.hero-academy .display { color: #fff; }
.hero-academy .lead { color: rgba(255,255,255,.85); }
.chip-cbse { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: .82rem; font-weight: 600; margin-bottom: 1.4em; backdrop-filter: blur(8px); }
.chip-cbse span { background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 999px; font-weight: 800; letter-spacing: .08em; }
.hero-stack { position: relative; height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
.stack-card { position: absolute; border-radius: 22px; overflow: hidden; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card.s1 { width: 48%; height: 70%; left: 0; top: 4%; transform: rotate(-5deg); }
.stack-card.s2 { width: 44%; height: 62%; right: 2%; top: 0; transform: rotate(4deg); }
.stack-card.s3 { width: 40%; height: 52%; right: 10%; bottom: 0; transform: rotate(-3deg); z-index: 2; }
.glass-card { position: absolute; left: 0; bottom: 2%; z-index: 3; width: min(54%, 270px); padding: 16px 18px; border-radius: 18px; background: rgba(8,42,49,.72); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: .84rem; }
.glass-k { font-weight: 800; color: var(--accent); margin-bottom: .4em; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.glass-card li { padding-left: 18px; position: relative; margin: 4px 0; }
.glass-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--brand); color: #fff; padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); margin: -14px 0 0; position: relative; z-index: 2; }
[data-site="academy"] .marquee { background: var(--accent); transform: none; margin: 0; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: var(--display-weight); white-space: nowrap; letter-spacing: var(--display-track); }
[data-site="matric"] .marquee-track span:nth-of-type(odd) { font-style: italic; font-weight: 400; }
.marquee-track .i { width: 26px; height: 26px; color: var(--accent); --flower-core: var(--brand); }
[data-site="academy"] .marquee-track .i { color: #fff; --flower-core: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro & stats ---------- */
.intro-grid { display: grid; gap: 22px; margin-bottom: 52px; }
.intro-text p { font-size: 1.06rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; padding: 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--tint); }
.stat dd { margin: 0 0 4px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.9rem, 5vw, 2.8rem); color: var(--brand); line-height: 1; position: relative; z-index: 1; letter-spacing: var(--display-track); }
.stat dt { font-size: .86rem; color: var(--muted); position: relative; z-index: 1; }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 14px; }
.pillar { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-num { position: absolute; right: 18px; top: 10px; font-family: var(--font-display); font-size: 3.6rem; font-weight: 300; color: var(--tint); line-height: 1; }
.pillar-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand); color: #fff; margin-bottom: 18px; }
.pillar:nth-child(2) .pillar-icon { background: var(--leaf); }
.pillar:nth-child(3) .pillar-icon { background: var(--accent); color: var(--accent-ink); }
.pillar:nth-child(4) .pillar-icon { background: var(--deep-2); }
.pillar-icon .i { width: 26px; height: 26px; }
.pillar p { margin: 0; font-size: .95rem; }

/* ---------- Rails (horizontal scroll) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 340px); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 6px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 22px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: none; gap: 8px; position: absolute; right: 0; bottom: 6px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; transition: .25s; }
.rail-nav button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.stage-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.stage-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.stage-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.stage-card:hover .stage-media img { transform: scale(1.06); }
.stage-step { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .75rem; font-weight: 700; color: var(--ink); }
.stage-body { padding: 20px 22px 24px; }
.stage-body p:last-child { margin: 0; font-size: .95rem; }
.stage-grades { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); margin-bottom: .4em; }
[data-site="academy"] .stage-grades { color: var(--accent); }

/* ---------- Message ---------- */
.message { display: grid; gap: 36px; align-items: center; position: relative; }
.section-ink::before { content: ""; position: absolute; width: 700px; height: 700px; left: -250px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(242,165,22,.18), transparent 65%); pointer-events: none; }
[data-site="academy"] .section-ink::before { background: radial-gradient(circle, rgba(242,107,29,.2), transparent 65%); }
.message-photo { margin: 0; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; max-width: 420px; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
[data-site="academy"] .message-photo { border-radius: var(--radius); }
.message-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.message-quote { width: 44px; height: 44px; color: var(--accent); margin-bottom: 10px; }
.message-text { color: #fff; margin: 0 0 1.2em; font-weight: 400; }
[data-site="academy"] .message-text { font-weight: 500; }
.message-sign { display: flex; flex-direction: column; margin: 1.4em 0; }
.message-sign span { font-size: .9rem; color: rgba(255,255,255,.6); }

/* ---------- Life / chips ---------- */
.life-grid { display: grid; gap: 40px; align-items: center; }
.life-mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 420px; }
.life-mosaic .m { border-radius: var(--radius); overflow: hidden; }
.life-mosaic .m img { width: 100%; height: 100%; object-fit: cover; }
.life-mosaic .m1 { grid-row: span 2; border-radius: 200px 200px var(--radius) var(--radius); }
[data-site="academy"] .life-mosaic .m1 { border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chips li { display: inline-flex; align-items: center; gap: .5em; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink); transition: .25s var(--ease); }
.chips li .i { color: var(--brand); }
.chips li:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.chips li:hover .i { color: var(--accent); }
.chips-lg li { padding: 12px 18px; font-size: 1rem; }

/* ---------- News ---------- */
.news-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-media { aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--tint); }
.news-media { padding: 12px; }
.news-media img { width: 100%; height: 100%; object-fit: contain; }
.news-body { padding: 18px 20px 22px; }
.news-body p:last-child { margin: 0; font-size: .93rem; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: .6em; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--brand); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.news-grid { display: grid; gap: 16px; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 44px; align-items: center; }
.why-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-badge { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-size: .8rem; line-height: 1.25; color: var(--ink-2); }
.why-badge strong { font-family: var(--font-display); font-size: 2.4rem; color: var(--brand); line-height: 1; }
.why-list { counter-reset: w; display: grid; gap: 2px; }
.why-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.why-list span { font-family: var(--font-display); color: var(--brand); font-weight: 600; min-width: 28px; }

/* ---------- Events & gallery teaser ---------- */
.events-grid { display: grid; gap: 44px; }
.events { display: grid; gap: 10px; }
.event { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.event h3 { margin: 0 0 2px; }
.event p { margin: 0; font-size: .85rem; color: var(--muted); }
.event-date { flex: none; width: 70px; height: 70px; border-radius: 16px; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; font-size: .7rem; padding: 4px; }
.event-date b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.gallery-teaser { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 110px; gap: 8px; }
.gt { border-radius: 16px; overflow: hidden; display: block; }
.gt img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gt:hover img { transform: scale(1.08); }
.gt1 { grid-row: span 2; grid-column: span 2; }
.gt-more { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .5em; border-radius: 16px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; height: 54px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(64px, 10vw, 110px); }
.section-tint + .cta-band, .section + .cta-band { padding-top: clamp(40px, 6vw, 70px); }
.cta-inner { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 8vw, 90px) 24px; border-radius: calc(var(--radius) + 8px); background: linear-gradient(135deg, var(--brand), var(--deep)); color: rgba(255,255,255,.85); }
.cta-inner .h2 { color: #fff; max-width: 18ch; margin-inline: auto; position: relative; }
.cta-inner .lead { color: rgba(255,255,255,.78); margin: 0 auto 1.6em; position: relative; }
.cta-inner .btn-row { justify-content: center; position: relative; }
.cta-rays { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.06) 0 5deg, transparent 5deg 15deg); animation: spin 120s linear infinite; }
.cta-emblem { width: 84px; height: auto; margin: 0 auto 18px; position: relative; background: #fff; border-radius: 22px; padding: 8px; box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 80px 20px rgba(242,165,22,.35); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--deep); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: .94rem; }
.footer-glow { position: absolute; width: 800px; height: 800px; right: -300px; top: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(242,165,22,.16), transparent 60%); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-cta { text-align: center; padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; }
.footer-motto { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.8rem, 6vw, 3.6rem); color: #fff; line-height: 1.05; margin-bottom: .3em; letter-spacing: var(--display-track); }
[data-site="matric"] .footer-motto { font-style: italic; font-weight: 400; }
.footer-ref { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.footer-grid { display: grid; gap: 32px; position: relative; }
.footer-logo { background: #fff; border-radius: 16px; padding: 12px 16px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 46px; width: auto; }
.footer-h { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-list { display: grid; gap: 8px; }
.footer-list small { color: rgba(255,255,255,.45); margin-left: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; position: relative; }
.footer-bottom p { margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; padding: 64px 0 96px; overflow: hidden; background: var(--deep); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--deep) 10%, rgba(0,0,0,0) 90%); }
.page-hero-inner { position: relative; }
.page-hero .h1 { color: #fff; max-width: 16ch; }
.page-hero .h1 em { color: var(--accent); }
.page-hero .lead { color: rgba(255,255,255,.82); }
.crumbs { display: flex; gap: 8px; font-size: .8rem; margin-bottom: 18px; color: rgba(255,255,255,.7); }
.crumbs a { color: #fff; text-decoration: none; }
.page-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 50px; fill: var(--bg); }

/* ---------- About ---------- */
.patron { display: grid; gap: 18px; }
.patron-card { position: relative; padding: clamp(28px, 5vw, 52px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.patron-flower { position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; color: var(--leaf); opacity: .14; }
.patron-prayer { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--brand); margin: 1.2em 0 0; }
.identity { display: grid; gap: 18px; }
.id-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.id-card img { width: 72px; margin-bottom: 14px; }
.id-card p:last-child { margin: 0; }
.id-motto { background: var(--brand); color: rgba(255,255,255,.85); border: 0; }
.id-motto .h3 { color: #fff; font-style: italic; }
.id-k, .mv-k { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.mv { display: grid; gap: 18px; }
.mv-card { padding: clamp(28px, 5vw, 48px); border-radius: var(--radius); background: var(--tint); }
.mv-card .h3 { color: var(--ink); margin: .5em 0 0; font-weight: 400; }
[data-site="academy"] .mv-card .h3 { font-weight: 500; }
.mv-alt { background: var(--deep); }
.mv-alt .h3 { color: #fff; }

/* ---------- Academics ---------- */
.facts { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.facts div { background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.facts span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.facts strong { color: var(--ink); font-size: 1.05rem; }
.timeline { display: grid; gap: 22px; }
.tl-item { display: grid; gap: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tl-media { aspect-ratio: 16 / 10; overflow: hidden; }
.tl-media img { width: 100%; height: 100%; object-fit: cover; }
.tl-body { padding: 24px; position: relative; }
.tl-num { position: absolute; right: 20px; top: 12px; font-family: var(--font-display); font-size: 3rem; color: var(--tint); font-weight: 300; line-height: 1; }
.tl-body p:last-child { margin: 0; }
.features { display: grid; gap: 14px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--brand); margin-bottom: 14px; }
.feature-icon .i { width: 24px; height: 24px; }
.feature p { margin: 0; font-size: .93rem; }
.facility { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.facility:hover img { transform: scale(1.06); }
.facility figcaption { position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-weight: 700; font-size: .88rem; }

/* ---------- Campus life ---------- */
.two-col { display: grid; gap: 44px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); }
.pill-alt li { background: var(--brand); color: #fff; border-color: var(--brand); }
.house { display: grid; gap: 18px; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: var(--tint); }
.house p:last-child { margin: 0; font-size: 1.05rem; }

/* ---------- Gallery ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.filters button { flex: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: .9rem; transition: .2s; }
.filters button[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.masonry { columns: 2; column-gap: 10px; }
.tile { display: block; position: relative; margin-bottom: 10px; border-radius: 16px; overflow: hidden; break-inside: avoid; }
.tile img { width: 100%; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile-cap { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; color: #fff; font-size: .82rem; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transform: translateY(8px); transition: .3s; }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.tile.is-out { display: none; }
.event-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.event-card { border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.event-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.event-card-body { padding: 12px 14px 16px; }
.event-card-body h3 { margin: 0; font-size: .95rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 6, 20, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-weight: 600; }
.lb-close, .lb-nav { position: fixed; z-index: 2; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; }
.lb-next { right: 12px; top: 50%; }

/* ---------- Admissions ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; }
.step p { margin: 0; font-size: .94rem; }
.doc-list { display: grid; gap: 10px; margin-bottom: 18px; }
.doc-list li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.doc-list .i { color: var(--leaf); grid-row: span 2; width: 22px; height: 22px; }
.doc-list small { color: var(--muted); font-weight: 500; }
.note { font-size: .9rem; color: var(--muted); }
.office-card { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 18px; border-radius: var(--radius-sm); background: var(--deep); color: rgba(255,255,255,.8); }
.office-card .i { width: 28px; height: 28px; color: var(--accent); }
.office-card strong { display: block; color: #fff; }
.enquire { display: grid; gap: 36px; }
.contact-list { display: grid; gap: 12px; margin: 22px 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .i { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--tint); color: var(--brand); }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 700; text-decoration: none; }
.map-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; }
.map-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.map-pin { position: absolute; left: 14px; bottom: 14px; display: inline-flex; gap: .5em; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); }
.form { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); align-self: start; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; gap: 0 14px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.err { color: #c0262d; font-size: .82rem; margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-ok { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #e9f7ec; color: #1d5b29; margin-bottom: 18px; }
.form-ok .i { width: 24px; height: 24px; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-art, .hero-stack { animation: rise 1.1s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .pillars, .features, .news-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 3; }
  .event-cards { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .hero-art { height: 500px; }
}

@media (min-width: 860px) {
  :root { --gutter: 32px; --header-h: 78px; }
  .topbar-links { display: flex; }
  .intro-grid, .two-col, .enquire, .events-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .life-grid, .why-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; }
  .life-mosaic { height: 520px; }
  .message { grid-template-columns: .85fr 1.15fr; gap: 72px; }
  .patron { grid-template-columns: 1.2fr 1fr; }
  .mv { grid-template-columns: 1fr 1fr; }
  .tl-item { grid-template-columns: 1fr 1fr; }
  .tl-item:nth-child(even) .tl-media { order: 2; }
  .tl-media { aspect-ratio: auto; min-height: 300px; }
  .tl-body { padding: 44px; align-self: center; }
  .house { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 48px; }
  .rail-nav { display: flex; }
  .sec-head:has(.rail-nav) { padding-right: 120px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; }
  .gallery-teaser { grid-auto-rows: 140px; }
  .page-hero { padding: 96px 0 130px; }
}

@media (min-width: 1080px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .menu-btn { display: none; }
  .nav { display: block; }
  .nav ul { display: flex; gap: 4px; }
  .nav a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; transition: .2s; }
  .nav a:hover { background: var(--tint); }
  .nav a[aria-current] { color: var(--brand); background: var(--tint); }
  .header-cta { display: inline-flex; min-height: 44px; }
  .brand img { height: 50px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .hero-matric { padding: 64px 0 110px; }
  .hero-art { height: 600px; }
  .hero-stack { height: 520px; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .features-4 { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .masonry { columns: 4; column-gap: 14px; }
  .tile { margin-bottom: 14px; }
  .event-cards { grid-template-columns: repeat(5, 1fr); }
  .rail { grid-auto-columns: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ==========================================================================
   v4: plain, editorial, school-prospectus look.
   No icon chips, ghost numbers, glows, pills, two-tone headings or tickers.
   Matric = serif, cream, indigo, rounded photos, floating header.
   Academy = sans, cool white, teal, square edges, ruled lines.
   ========================================================================== */

/* ---- Global calm-down ---- */
.btn { box-shadow: none !important; }
.btn:hover { transform: none; }
.btn .i { width: 16px; height: 16px; }
.display em, .h1 em, .h2 em, .h3 em, .section-ink .h2 em, .section-ink .h3 em, .page-hero .h1 em { color: inherit; }
[data-site="academy"] .display em, [data-site="academy"] .h1 em, [data-site="academy"] .h2 em, [data-site="academy"] .h3 em { font-style: normal; color: inherit; }
.eyebrow { font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brand); margin-bottom: .7em; }
.pulse, .marquee, .footer-glow, .cta-rays, .patron-flower, .page-hero-wave, .message-quote { display: none !important; }
.eyebrow-light, .section-ink .eyebrow { color: var(--accent); }
.section-ink::before { display: none; }
.lead { color: var(--muted); }

/* Stats: an open ruled row, not boxes */
.stats { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(32px, 5vw, 56px); }
.stat { background: none; border: 0; border-radius: 0; padding: 22px 16px 22px 0; }
.stat::after { display: none; }
.stat dd { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.5rem); }
@media (max-width: 859px) { .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Pillars & features: text columns under a rule */
.pillars, .features { gap: 28px; }
.pillar, .feature { background: none; border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 18px 0 0; overflow: visible; }
.pillar:hover, .feature:hover { transform: none; box-shadow: none; }
.pillar-num, .pillar-icon, .feature-icon { display: none; }
.pillar .h4, .feature .h5 { margin-bottom: .5em; }
.pillar p, .feature p { color: var(--muted); }

/* Stage cards: photo + text, no box */
.stage-card { background: none; border: 0; border-radius: 0; overflow: visible; }
.stage-media { border-radius: var(--radius); }
.stage-card:hover .stage-media img, .facility:hover img, .gt:hover img { transform: none; }
.stage-step { display: none; }
.stage-body { padding: 16px 0 0; }
.stage-grades { color: var(--muted); letter-spacing: .04em; font-weight: 700; }

/* News, events, ids: plain bordered */
.news-card { border-radius: var(--radius); }
.news-card:hover { transform: none; box-shadow: none; }
.news-media { background: var(--tint); }
.event { border-radius: var(--radius); }
.event-date { border-radius: var(--radius); }
.why-badge { box-shadow: none; border: 1px solid var(--line); border-radius: var(--radius); }
.chips li { border-radius: var(--radius); background: none; }
.chips li .i { display: none; }
.chips li:hover { background: none; color: var(--ink); border-color: var(--ink); transform: none; }
.facility figcaption { position: static; padding: 10px 0 0; background: none; border-radius: 0; }
.facility { aspect-ratio: auto; overflow: visible; border-radius: 0; }
.facility img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.tl-num { display: none; }
.patron-card, .id-card, .tl-item { border-radius: var(--radius); }
.message-photo { border-radius: var(--radius); box-shadow: none; }
.gt, .gt-more, .life-mosaic .m, .why-media, .mv-card { border-radius: var(--radius); }
.doc-list li { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
.pill-list li { border-radius: var(--radius); }
.office-card { border-radius: var(--radius); }

/* CTA band: plain block */
.cta-inner { background: var(--deep); border-radius: var(--radius); }
.cta-emblem { box-shadow: none; border-radius: 10px; }

/* ---- Hero (both sites): one photo slider, one headline, one button ---- */
.slides { position: absolute; inset: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-leaving { z-index: 0; opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1); }
.hero { position: relative; overflow: hidden; color: #fff; background: var(--deep); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-inner { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-copy { max-width: 600px; }
.hero .display { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; margin-bottom: .35em; }
.hero .lead { color: rgba(255,255,255,.88); font-size: clamp(1rem, 2vw, 1.15rem); margin-bottom: 1.5em; }
.hero .btn-row { align-items: center; gap: 22px; }
.hero-link { display: inline-flex; align-items: center; gap: .4em; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.hero-link:hover { border-color: #fff; }
.hero-link .i { width: 16px; height: 16px; }
.hero-dots { display: flex; gap: 8px; flex: none; }
.hero-dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: background .3s, width .3s; }
.hero-dots button[aria-current="true"] { background: #fff; width: 44px; }
.hero-dots button::before { content: ""; display: block; height: 24px; margin-top: -10px; }

/* Matric: photo fills, soft dark fade bottom-left, floating header */
.header-matric { top: 10px; margin: 10px auto 0; width: min(100% - 20px, calc(var(--wrap) + 48px)); border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 24px -14px rgba(19,17,74,.4); }
.header-matric .header-inner { width: auto; padding: 0 12px 0 16px; }
.header-matric.is-stuck { box-shadow: 0 8px 28px -14px rgba(19,17,74,.5); }
.hero-matric { margin-top: calc(-1 * (var(--header-h) + 10px)); min-height: 600px; padding: calc(var(--header-h) + 40px) 0 36px; }
.hero-matric::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(14,12,48,.82) 0%, rgba(14,12,48,.35) 45%, rgba(14,12,48,.1) 75%); }
.hero-matric .btn-accent { border-radius: 999px; }
[data-site="matric"] .btn { border-radius: 999px; }
[data-site="matric"] .sec-head.is-center .eyebrow { display: block; }
[data-site="matric"] .page-hero { margin-top: calc(-1 * (var(--header-h) + 10px)); padding: calc(var(--header-h) + 48px) 0 56px; }
[data-site="matric"] .page-hero-media img { opacity: .4; }

/* Academy: photo fills, copy sits in a solid white panel */
.header-academy { background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero-academy { min-height: 0; }
.hero-academy .slides { position: relative; inset: auto; height: 62vw; min-height: 260px; max-height: 360px; }
.hero-academy .hero-inner { flex-direction: column; align-items: stretch; width: 100%; margin: 0; }
.hero-academy .hero-copy { background: #fff; color: var(--ink); padding: 28px var(--gutter) 32px; max-width: none; border-top: 4px solid var(--accent); }
.hero-academy .display { color: var(--ink); }
.hero-academy .lead { color: var(--muted); }
.hero-academy .hero-link { color: var(--brand); border-color: var(--line); }
.hero-academy .hero-dots { position: absolute; top: -26px; right: var(--gutter); }
[data-site="academy"] .btn, [data-site="academy"] .menu-btn, [data-site="academy"] .dock, [data-site="academy"] .dock a { border-radius: 2px; }
[data-site="academy"] .dock a.dock-cta { background: var(--accent); }
[data-site="academy"] .dock a.dock-cta .i { color: #fff; }
[data-site="academy"] .sec-head.is-center { text-align: left; }
[data-site="academy"] .sec-head.is-center .lead { margin-inline: 0; }
[data-site="academy"] .pillar, [data-site="academy"] .feature { border-top-color: var(--brand); }
[data-site="academy"] .cta-inner { text-align: left; }
[data-site="academy"] .cta-inner .h2, [data-site="academy"] .cta-inner .lead { margin-inline: 0; }
[data-site="academy"] .cta-inner .btn-row { justify-content: flex-start; }
[data-site="academy"] .cta-emblem { margin-left: 0; }
[data-site="academy"] .footer { border-top: 3px solid var(--accent); }
[data-site="academy"] .topbar { background: var(--brand); }
[data-site="academy"] .topbar-note a, [data-site="academy"] .topbar-sister { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }

/* Academy inner pages: text panel beside the photo */
.page-hero-split { display: grid; padding: 0; background: var(--deep); }
.page-hero-split .page-hero-text { padding: 40px var(--gutter) 36px; }
.page-hero-split .page-hero-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.page-hero-split .page-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Reveals: short, quiet slide */
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="left"].is-in, [data-reveal="right"].is-in { transform: none; }
.no-js [data-reveal="left"], .no-js [data-reveal="right"] { transform: none; }

@media (min-width: 860px) {
  .header-matric { top: 14px; margin-top: 14px; width: min(100% - 48px, calc(var(--wrap) + 48px)); }
  .hero-matric { margin-top: calc(-1 * (var(--header-h) + 14px)); min-height: min(86svh, 760px); padding-bottom: 56px; }
  [data-site="matric"] .page-hero { margin-top: calc(-1 * (var(--header-h) + 14px)); padding: calc(var(--header-h) + 72px) 0 72px; }
  .hero-academy { display: block; min-height: min(80svh, 680px); }
  .hero-academy .slides { position: absolute; inset: 0; height: auto; max-height: none; }
  .hero-academy .hero-inner { position: absolute; left: 0; right: 0; bottom: 0; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; flex-direction: row; align-items: flex-end; }
  .hero-academy .hero-copy { max-width: 560px; padding: 36px 40px 40px; }
  .hero-academy .hero-dots { position: static; margin-bottom: 28px; }
  .page-hero-split { grid-template-columns: 1fr 1fr; min-height: 340px; }
  .page-hero-split .page-hero-text { padding: 64px 48px 56px max(var(--gutter), calc((100vw - var(--wrap)) / 2)); align-self: center; }
  .page-hero-split .page-hero-img { aspect-ratio: auto; }
}
@media (min-width: 1080px) {
  [data-site="academy"] .nav a { border-radius: 0; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; font-weight: 700; padding: 10px 12px; }
  [data-site="academy"] .nav a:hover, [data-site="academy"] .nav a[aria-current] { background: none; color: var(--brand); box-shadow: inset 0 -2px 0 var(--accent); }
  .header-academy .nav { margin-right: auto; margin-left: 24px; }
}
@media (prefers-reduced-motion: reduce) { .slide img { transform: none !important; transition: none; } }
.hero .display { font-size: clamp(2rem, 5vw, 3.4rem); }
.hero-academy .display { font-size: clamp(1.9rem, 4vw, 2.9rem); }
[data-site="academy"] .rail-nav button { border-radius: 2px; }
.hero-academy .slides { width: 100%; }
@media (max-width: 859px) {
  .hero-matric .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-matric .hero-dots { align-self: flex-start; }
  .hero .display { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
@media (max-width: 859px) { .hero-academy { justify-content: flex-start; } }
.step { background: none; border: 0; border-top: 2px solid var(--ink); border-radius: 0; box-shadow: none; padding: 18px 0 0; }
.step-num { background: none; color: var(--brand); width: auto; height: auto; border-radius: 0; font-family: var(--font-display); font-size: 1.6rem; box-shadow: none; display: block; margin-bottom: 6px; }
[data-site="academy"] .step { border-top-color: var(--brand); }
@media (min-width: 860px) {
  .timeline .tl-item { grid-template-columns: 5fr 7fr; align-items: center; }
  .timeline .tl-item:nth-child(even) .tl-media { order: 0; }
  .timeline .tl-media { aspect-ratio: 16 / 11; height: 100%; }
  .timeline .tl-body { padding: 32px 40px; }
}

/* ==========================================================================
   v5: character without clutter.
   Push-slide hero photos (no cross-fade ghosting), quick-link bar,
   pillars beside a photo, underlined accent words.
   ========================================================================== */
.slide, .slide.is-leaving { opacity: 1; transform: translateX(100%); visibility: hidden; transition: none; }
.slide.is-active { transform: none; visibility: visible; z-index: 2; transition: transform 1s cubic-bezier(.65,0,.25,1); }
.slide.is-leaving { transform: translateX(-35%); visibility: visible; z-index: 1; transition: transform 1s cubic-bezier(.65,0,.25,1); }
.slide img, .slide.is-active img { transform: none; transition: none; }
.slide::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 1s; pointer-events: none; }
.slide.is-leaving::after { opacity: .35; }

/* Accent words: a hand-set underline, same ink colour */
.display em, .h2 em { font-style: italic; background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 100% .12em; background-position: 0 92%; padding-bottom: .02em; }
[data-site="academy"] .display em, [data-site="academy"] .h2 em { font-style: normal; background-size: 100% .14em; background-position: 0 96%; }
.hero-kicker { font-size: .88rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1em; display: flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.hero-matric .hero-kicker { color: rgba(255,255,255,.9); }
.hero-matric { padding-bottom: 96px; }

/* Academy hero: copy left, framed photo right with an offset accent block */
.hero-split { background: var(--surface); padding: 32px 0 56px; overflow: hidden; }
.hs-grid { display: grid; gap: 36px; align-items: center; }
.hs-copy .display { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.05; color: var(--ink); margin-bottom: .4em; }
.hs-copy .lead { margin-bottom: 1.6em; }
.hs-copy .hero-kicker { color: var(--brand); }
.hero-split .btn-row { align-items: center; gap: 22px; }
.hero-split .hero-link { color: var(--brand); border-color: var(--line); }
.hs-media { position: relative; order: -1; }
.hs-media::before { content: ""; position: absolute; right: -14px; bottom: -14px; width: 55%; height: 60%; background: var(--accent); }
.hs-media::after { content: ""; position: absolute; left: -14px; top: -14px; width: 90px; height: 90px; background-image: radial-gradient(var(--brand) 1.6px, transparent 1.6px); background-size: 12px 12px; opacity: .5; }
.hs-frame { position: relative; z-index: 1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--deep); }
.hs-media .hero-dots { position: absolute; z-index: 2; left: 18px; bottom: 16px; }

/* Quick links */
.quick { position: relative; z-index: 5; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; }
.quick a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 40px 18px 18px; text-decoration: none; color: var(--ink); transition: background .25s, color .25s; }
.quick a span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.quick a strong { font-size: .98rem; }
.quick a .i { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--brand); transition: transform .25s; }
.quick a:hover .i { transform: translateX(4px); }
.quick-matric { margin-top: -56px; }
.quick-matric .quick-grid { background: #fff; border-radius: 16px; box-shadow: 0 18px 40px -24px rgba(19,17,74,.45); overflow: hidden; }
.quick-matric a + a { border-left: 1px solid var(--line); }
.quick-matric a:nth-child(3) { border-left: 0; }
.quick-matric a:nth-child(n+3) { border-top: 1px solid var(--line); }
.quick-matric a:hover { background: var(--tint); }
.quick-academy { background: var(--deep); }
.quick-academy a { color: #fff; border-top: 1px solid rgba(255,255,255,.12); }
.quick-academy a span { color: rgba(255,255,255,.6); }
.quick-academy a .i { color: var(--accent); }
.quick-academy a:hover { background: var(--accent); }
.quick-academy a:hover span, .quick-academy a:hover .i { color: #fff; }
.quick-academy a:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }

/* Pillars beside a photo */
.pillars-split { display: grid; gap: 36px; }
.pillars-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.pillars-photo img { width: 100%; height: 100%; object-fit: cover; }
[data-site="matric"] .pillars-photo { border-radius: 120px 16px 16px 16px; }
[data-site="academy"] .pillars-photo { border-radius: 0; box-shadow: 14px 14px 0 var(--accent); }
.pillars-split .pillars { grid-template-columns: 1fr; align-content: center; }
.pillar { border-top: 1px solid var(--line); padding-top: 20px; }
.pillar-no { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
[data-site="matric"] .pillar-no { color: var(--brand); font-style: italic; font-size: 1.15rem; }

/* Stats: coloured numbers */
.stat dd { color: var(--brand); }

@media (min-width: 600px) {
  .pillars-split .pillars { grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 36px; }
}
@media (min-width: 860px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .quick a { padding: 24px 48px 24px 26px; }
  .quick-matric a:nth-child(3) { border-left: 1px solid var(--line); }
  .quick-matric a:nth-child(n+3) { border-top: 0; }
  .quick-academy a { border-top: 0; border-left: 1px solid rgba(255,255,255,.12); }
  .quick-academy a:last-child { border-right: 1px solid rgba(255,255,255,.12); }
  .hero-matric { padding-bottom: 120px; }
  .quick-matric { margin-top: -64px; }
  .hero-split { padding: 56px 0 80px; }
  .hs-grid { grid-template-columns: 5fr 6fr; gap: 64px; }
  .hs-media { order: 0; }
  .hs-media::before { right: -24px; bottom: -24px; }
  .hs-media::after { left: -28px; top: -28px; width: 120px; height: 120px; }
  .hs-frame { aspect-ratio: 5 / 4; }
  .pillars-split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .slide.is-active, .slide.is-leaving { transition: none; } }
@media (max-width: 599px) {
  .quick-grid { grid-template-columns: 1fr; }
  .quick a { padding: 13px 40px 13px 18px; flex-direction: row; align-items: baseline; gap: 10px; }
  .quick a span { min-width: 0; }
  .quick-matric a + a, .quick-matric a:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .quick-academy a:nth-child(even) { border-left: 0; }
}
@media (max-width: 599px) { .quick a span { display: none; } }

/* ==========================================================================
   v6: two different home pages from the mood board.
   ========================================================================== */
:root { --peri: #8f97d8; --sun: #f6b73c; --rose: #ec9ab3; --sage: #5f8f63; --forest: #1f4a3a; }
[data-site="academy"] { --forest: #0c3a3a; --mint: #e9f3ef; }

/* ---- Headers: Matric solid bar, Academy floating pill ---- */
.header-matric { position: sticky; top: 0; margin: 0; width: auto; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; background: rgba(255,255,255,.96); }
.header-matric .header-inner { width: min(100% - 2 * var(--gutter), var(--wrap)); padding: 0; }
.header-matric.is-stuck { box-shadow: 0 6px 20px -16px rgba(19,17,74,.5); }
[data-site="matric"] .page-hero { margin-top: 0 !important; padding: 56px 0 64px !important; }
.header-academy { position: sticky; top: 10px; margin: 10px auto 0; width: min(100% - 20px, calc(var(--wrap) + 40px)); border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 10px 30px -20px rgba(0,0,0,.45); }
.header-academy .header-inner { width: auto; padding: 0 8px 0 18px; }
.header-academy .header-cta, [data-site="academy"] .menu-btn { border-radius: 999px; }
[data-site="academy"] .btn { border-radius: 999px; }
@media (min-width: 1080px) { [data-site="academy"] .nav a { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; border-radius: 999px; padding: 8px 14px; box-shadow: none !important; }
  [data-site="academy"] .nav a[aria-current] { background: var(--mint); color: var(--forest); } }

/* ---- Shared ornaments: flowers as labels and bullets ---- */
.flower-label, .dot-label { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--brand); margin: 0 0 .8em; }
.flower-label .i, .dot-label .i { width: 18px; height: 18px; color: var(--leaf); flex: none; }
.flower-label.light { color: var(--sun); }
.dot-label { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); }
.dot-label .i { width: 14px; height: 14px; color: var(--accent); --flower-core: #fff; }
.dot-label.center { justify-content: center; }
.flower-list { display: grid; gap: 14px; margin: 1.4em 0 1.8em; }
.flower-list li { display: flex; gap: 12px; align-items: flex-start; }
.flower-list .i { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--leaf); }
.flower-list strong { display: block; }
.flower-list span { display: block; font-size: .93rem; opacity: .8; }
.flower-list.compact { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
[data-site="academy"] .flower-list .i { color: var(--accent); --flower-core: #fff; }
em.it { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; background: none; padding: 0; color: inherit; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--forest); }

/* ================= MATRIC HOME ================= */
.hm-hero { position: relative; background: var(--bg); overflow: hidden; }
.hm-hero-media { position: relative; height: 58svh; min-height: 330px; max-height: 520px; }
.hm-hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; z-index: 3; background: linear-gradient(0deg, var(--bg), rgba(251,248,242,0)); pointer-events: none; }
.hm-hero-copy { position: relative; z-index: 4; margin-top: -56px; padding-bottom: 36px; }
.hm-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 8vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .35em; max-width: 14ch; }
.scribble { position: relative; white-space: nowrap; color: var(--brand); }
.scribble svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--sun); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hm-lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.4em; }
.hm-actions, .ha-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
[data-site="matric"] .btn-accent { background: var(--sun); color: #2a1d00; }
.hm-hero .hero-link { color: var(--ink); border-color: var(--line); }
.hm-hero .hero-dots { margin-top: 26px; }
.hm-hero .hero-dots button { background: rgba(21,19,63,.2); }
.hm-hero .hero-dots button[aria-current="true"] { background: var(--brand); }

.hm-center { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 5vw, 48px); }
.hm-center .lead { margin-inline: auto; }
.hm-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc { display: grid; gap: 10px; align-content: start; }
.mt { margin: 0; position: relative; border-radius: 22px; overflow: hidden; }
.mt-photo { aspect-ratio: 4 / 5; }
.mt-photo.h-tall { aspect-ratio: 3 / 4.4; }
.mt-photo img { width: 100%; height: 100%; object-fit: cover; }
.mt-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; color: #fff; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.2; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); }
.mt:not(.mt-photo) { padding: 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 150px; color: #fff; }
.mt b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; }
.mt span { font-size: .85rem; line-height: 1.35; opacity: .9; }
.mt a { color: inherit; font-weight: 700; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; }
.mt a .i { width: 14px; height: 14px; }
.serif-i { font-style: italic; }
.tone-leaf { background: var(--sage); } .tone-peri { background: var(--peri); } .tone-sun { background: var(--sun); color: #2a1d00 !important; }
.tone-rose { background: var(--rose); color: #3a0d1c !important; } .tone-ink { background: var(--brand); }
.h-mid { min-height: 200px !important; }
@media (max-width: 859px) { .mc { display: contents; } .mt, .mt-photo.h-tall, .mt-photo { aspect-ratio: 4 / 4.6; min-height: 0 !important; } .mc:nth-child(5) .mt-photo { display: none; } .mt:not(.mt-photo) { padding: 14px; } .mt span { font-size: .8rem; } }

.hm-band { background: var(--forest); color: rgba(255,255,255,.85); padding: clamp(56px, 8vw, 96px) 0; overflow: hidden; }
.hm-band .h2 { color: #fff; }
.hm-band .flower-list .i { color: var(--sun); --flower-core: var(--forest); }
.hm-band .flower-list strong { color: #fff; }
.hm-band-grid { display: grid; gap: 44px; align-items: center; }
.hm-collage { position: relative; padding: 20px 20px 30px 10px; }
.hm-collage figure { position: relative; z-index: 2; margin: 0; border-radius: 160px 160px 24px 24px; overflow: hidden; aspect-ratio: 4 / 4.2; max-width: 440px; }
.hm-collage img { width: 100%; height: 100%; object-fit: cover; }
.blob { position: absolute; z-index: 1; }
.blob-sun { width: 62%; aspect-ratio: 2 / 1; left: -4%; bottom: 0; border-radius: 300px 300px 0 0; background: var(--sun); }
.blob-rose { width: 72px; height: 72px; right: 6%; top: 6%; border-radius: 18px; border: 6px solid var(--rose); transform: rotate(14deg); }
.loop { position: absolute; z-index: 3; width: 170px; right: 0; bottom: 8px; fill: none; stroke: var(--peri); stroke-width: 4; stroke-linecap: round; }

.hm-split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 40px; margin-bottom: clamp(24px, 4vw, 40px); position: relative; }
.hm-split-head .h2 { margin: 0; max-width: 16ch; }
.hm-split-head p { margin: 0; max-width: 36ch; color: var(--muted); }
.hm-split-head .rail-nav { position: static; display: flex; }
.hm-programs { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
.hm-programs::-webkit-scrollbar { display: none; }
.prog { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 20px; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; }
.prog-grades { font-size: .8rem; font-weight: 700; opacity: .85; }
.prog-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; margin-top: 4px; max-width: 10ch; position: relative; z-index: 2; }
.prog figure { margin: auto -20px -20px 30%; border-radius: 120px 0 0 0; overflow: hidden; aspect-ratio: 5 / 4; transition: transform .5s var(--ease); }
.prog img { width: 100%; height: 100%; object-fit: cover; }
.prog:hover figure { transform: translate(-6px, -6px); }

.hm-message-grid { display: grid; gap: 28px; align-items: center; }
.hm-portrait { margin: 0; width: min(240px, 60%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: 0 0 0 2px var(--sun); }
.hm-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hm-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 1.9rem); line-height: 1.3; color: var(--ink); margin: 0 0 1em; }
.hm-message .message-sign span { color: var(--muted); }

/* ================= ACADEMY HOME ================= */
.ha-hero { padding: 0 10px; margin-top: calc(-1 * (var(--header-h) + 10px)); }
.ha-card { position: relative; border-radius: 26px; overflow: hidden; min-height: 560px; height: 88svh; max-height: 760px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--forest); color: #fff; }
.ha-card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, rgba(6,32,32,.88) 0%, rgba(6,32,32,.45) 34%, rgba(6,32,32,0) 58%), linear-gradient(180deg, rgba(6,32,32,.35), transparent 22%); }
.ha-copy { position: relative; z-index: 4; padding: 0 20px 64px; max-width: 640px; }
.ha-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ha-tags li { font-size: .74rem; font-weight: 600; padding: 4px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; }
.ha-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 7.5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 .35em; color: #fff; }
.ha-title em.it { font-weight: 400; letter-spacing: -0.01em; }
.ha-lead { color: rgba(255,255,255,.85); margin: 0 0 1.3em; }
.ha-card .hero-link { color: #fff; border-color: rgba(255,255,255,.5); }
.ha-card .hero-dots { position: absolute; z-index: 4; left: 20px; bottom: 26px; }
.ha-float { display: none; }

.ha-about-grid { display: grid; gap: 28px; }
.ha-about-img { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 360px; }
.ha-about-img img { width: 100%; height: 100%; object-fit: cover; }
.ha-big { font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.4; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.hero-link.dark { color: var(--ink); border-color: var(--line); }

.ha-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 40px; margin-bottom: clamp(22px, 4vw, 36px); }
.ha-head .h2 { margin: 0; max-width: 15ch; }
.ha-head .rail-nav { position: static; display: flex; }
.ha-side { margin: 0; max-width: 32ch; color: var(--muted); text-align: right; }
.ha-rail { padding-top: 0; }
.ha-stage { position: relative; flex: 0 0 78%; scroll-snap-align: start; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; }
.ha-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ha-stage:hover > img { transform: scale(1.04); }
.ha-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,32,32,.92) 8%, rgba(6,32,32,.2) 55%, transparent 75%); }
.ha-stage-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px; }
.ha-pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.ha-stage h3 { color: #fff; font-size: 1.3rem; margin: 8px 0 4px; }
.ha-stage p { font-size: .88rem; color: rgba(255,255,255,.8); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ha-more { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .84rem; font-weight: 700; text-decoration: none; }
.ha-more .i { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--ink); color: #fff; }

.ha-steps-sec { background: var(--mint); }
.ha-steps { display: grid; gap: 12px; }
.ha-step { background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; overflow: hidden; }
.ha-step-k { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ha-step h3 { font-size: 1.2rem; margin: 6px 0; color: var(--ink); }
.ha-step p { font-size: .92rem; color: var(--muted); margin: 0; }
.ha-step figure { margin: 18px -22px -22px; aspect-ratio: 16 / 9; }
.ha-step figure img { width: 100%; height: 100%; object-fit: cover; }
.ha-step.is-dark { background: var(--forest); }
.ha-step.is-dark h3 { color: #fff; } .ha-step.is-dark p, .ha-step.is-dark .ha-step-k { color: rgba(255,255,255,.75); }
.ha-step.is-dark .btn { margin-top: 18px; align-self: flex-start; }

.ha-wall-sec { overflow: hidden; padding-top: 0; }
.ha-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 8px; align-items: start; -webkit-mask: linear-gradient(180deg, transparent 0, #000 25%, #000 75%, transparent); mask: linear-gradient(180deg, transparent 0, #000 25%, #000 75%, transparent); }
.ha-wall .w { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; }
.ha-wall .w img { width: 100%; height: 100%; object-fit: cover; }
.ha-wall .w:nth-child(even) { margin-top: 34px; }
.ha-wall .w:nth-child(n+5) { display: none; }
.ha-wall-copy { text-align: center; max-width: 560px; margin-top: 10px; }
.ha-wall-copy .h2 { margin: 0 0 .3em; }
.ha-wall-copy p { color: var(--muted); }

@media (min-width: 600px) {
  .hm-programs { grid-auto-columns: 46%; }
  .ha-stage { flex-basis: 46%; }
  .ha-steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .header-academy { top: 14px; margin-top: 14px; width: min(100% - 48px, calc(var(--wrap) + 40px)); }
  /* Matric hero: copy left on soft fade, photo right */
  .hm-hero { min-height: min(80svh, 680px); display: flex; align-items: center; }
  .hm-hero-media { position: absolute; inset: 0 0 0 30%; height: auto; max-height: none; }
  .hm-hero-media::after { inset: 0; height: auto; background: linear-gradient(90deg, var(--bg) 0%, rgba(251,248,242,.85) 18%, rgba(251,248,242,0) 50%); }
  .hm-hero-copy { margin-top: 0; padding: 64px 0; }
  .hm-hero-copy > * { max-width: 520px; }
  .hm-mosaic { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .mc-down { margin-top: 56px; } .mc-down2 { margin-top: 112px; }
  .hm-band-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .hm-programs { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding: 0; }
  .prog { grid-column: span 2; min-height: 300px; }
  .prog:nth-child(1), .prog:nth-child(2) { grid-column: span 3; }
  .hm-message-grid { grid-template-columns: 280px 1fr; gap: 56px; }
  .hm-portrait { width: 100%; }
  /* Academy */
  .ha-hero { padding: 0 14px; margin-top: calc(-1 * (var(--header-h) + 14px)); }
  .ha-card { border-radius: 32px; }
  .ha-copy { padding: 0 max(40px, calc((100vw - var(--wrap)) / 2)) 84px; max-width: none; }
  .ha-copy > * { max-width: 600px; }
  .ha-card .hero-dots { left: max(40px, calc((100vw - var(--wrap)) / 2)); bottom: 40px; }
  .ha-float { display: flex; align-items: center; gap: 16px; position: absolute; z-index: 4; right: max(40px, calc((100vw - var(--wrap)) / 2)); bottom: 40px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); }
  .ha-float b { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
  .ha-float span { font-size: .78rem; opacity: .85; }
  .ha-faces { display: flex; }
  .ha-faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px; }
  .ha-about-grid { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
  .ha-stage { flex-basis: 30%; }
  .ha-steps { grid-template-columns: repeat(3, 1fr); }
  .ha-step:first-child { grid-row: span 2; }
  .ha-step.is-dark { grid-column: span 2; }
  .ha-wall { grid-template-columns: repeat(8, 1fr); gap: 12px; padding: 0 14px; }
  .ha-wall .w:nth-child(n+5) { display: block; }
  .ha-wall .w:nth-child(3n) { margin-top: 70px; }
}
@media (max-width: 599px) { .ha-side { text-align: left; } .flower-list.compact { grid-template-columns: 1fr; } }

.ha-card .slide img { object-position: var(--pos); }
@media (max-width: 859px) { .ha-card { height: 80svh; min-height: 520px; } }
.prog figure { aspect-ratio: 16 / 10; } @media (min-width: 860px) { .prog { min-height: 0; } .prog figure { margin-left: 42%; aspect-ratio: 16 / 11; } }
[data-site="academy"] .rail-nav button { border-radius: 50%; } [data-site="academy"] .cta-inner { border-radius: 24px; } [data-site="academy"] .news-card, [data-site="academy"] .page-hero-split { border-radius: 18px; } .ha-wall .w:nth-child(8) { display: none; } @media (min-width: 860px) { .ha-wall { grid-template-columns: repeat(7, 1fr); } .ha-step:first-child figure { aspect-ratio: auto; flex: 1; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow-flower { display: inline-block !important; width: 18px; height: 18px; color: var(--leaf); }
[data-site="academy"] .eyebrow::before { display: none; }
[data-site="academy"] .eyebrow-flower { width: 14px; height: 14px; color: var(--accent); --flower-core: #fff; }
[data-site="academy"] .page-hero-split { margin: 10px 10px 0; border-radius: 26px; overflow: hidden; }
@media (min-width: 860px) { [data-site="academy"] .page-hero-split { margin: 14px 14px 0; } }

/* ==========================================================================
   v7: phone polish, activities, steady side-scrolling.
   ========================================================================== */
/* Side-scrolling rows: no vertical drift, no rubber-banding, no pinch inside */
.rail, .hm-programs { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
html, body { overflow-x: clip; }
body { overscroll-behavior-x: none; }

/* Activity chips get their minimal line icons back */
.chips li .i { display: inline-block !important; width: 18px; height: 18px; color: var(--brand); flex: none; }
[data-site="academy"] .chips li .i { color: var(--accent); }
.chips li { gap: .55em; }

/* Posters in news cards: whole poster, a little more room on phones */
.news-media { aspect-ratio: 4 / 4.6; padding: 10px; }

/* Matric hero on phones: shorter photo so title and button sit above the fold */
@media (max-width: 859px) {
  .hm-hero-media { height: 44svh; min-height: 250px; }
  .hm-hero-copy { margin-top: -40px; padding-bottom: 28px; }
  .hm-title { font-size: clamp(1.8rem, 7.4vw, 2.3rem); }
  .hm-lead { margin-bottom: 1em; }
}

/* Academy hero on phones: a montage of faces above the text, nothing on top of the photos */
.ha-montage { display: none; }
@media (max-width: 859px) {
  .ha-card { height: auto; min-height: 0; max-height: none; justify-content: flex-start; padding-top: calc(var(--header-h) + 22px); }
  .ha-card .slides, .ha-card::after, .ha-card .hero-dots { display: none; }
  .ha-montage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 10px; height: 300px; flex: none; position: relative; z-index: 4; }
  .ha-montage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 18px; }
  .ha-montage img:first-child { grid-row: span 2; object-position: 50% 30%; }
  .ha-montage img:nth-child(2) { object-position: 50% 25%; }
  .ha-montage img:nth-child(3) { object-position: 50% 35%; }
  .ha-copy { padding: 22px 20px 26px; }
  .ha-tags { display: none; }
  .ha-title { font-size: clamp(1.75rem, 7.2vw, 2.2rem); }
}

/* ---- Activities: shared marquee mechanics ---- */
.drift { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.drift-track { display: flex; gap: 12px; width: max-content; animation: drift 48s linear infinite; padding: 6px 0; }
.drift-rev .drift-track { animation-direction: reverse; animation-duration: 56s; }
.drift:hover .drift-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .drift-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .drift-track [aria-hidden="true"] { display: none; } }

/* Matric: two drifting rows of soft pills with tone-coloured icon dots */
.hm-acts .drift + .drift { margin-top: 10px; }
.act-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); white-space: nowrap; }
.act-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; flex: none; }
.act-ic .i { width: 20px; height: 20px; }
.hm-acts .center-row { margin-top: 24px; }

/* Academy: deep band with a single moving strip of icon tiles and photo cards */
.ha-acts { background: var(--forest); color: rgba(255,255,255,.8); overflow: hidden; }
.ha-acts .h2 { color: #fff; }
.dot-label.light { color: #9fd3c6; }
.act-tile { display: flex; flex-direction: column; justify-content: space-between; width: 150px; height: 170px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; flex: none; }
.act-tile .act-ic { width: 44px; height: 44px; background: var(--accent); }
.act-tile strong { font-size: 1rem; line-height: 1.2; }
.act-photo { position: relative; width: 150px; height: 170px; border-radius: 20px; overflow: hidden; flex: none; }
.act-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.act-photo span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .78rem; font-weight: 700; }
@media (min-width: 860px) { .act-tile, .act-photo { width: 180px; height: 200px; } }

/* ==========================================================================
   v8: final pre-review polish.
   ========================================================================== */
/* Club and sport pills carry a minimal line icon */
.pill-list li { display: inline-flex; align-items: center; gap: 8px; }
.pill-list li .i { width: 18px; height: 18px; flex: none; color: var(--brand); }
[data-site="academy"] .pill-list li .i { color: var(--accent); }
.pill-alt li .i, [data-site="academy"] .pill-alt li .i { color: inherit; opacity: .9; }

/* Learning spaces: photo, then the full name and a short line below it */
.facility { display: flex; flex-direction: column; }
.facility img { height: auto; }
.facility figcaption { display: grid; gap: 3px; padding-top: 12px; }
.facility figcaption strong { font-size: 1.02rem; color: var(--ink); }
.facility figcaption span { font-weight: 400; font-size: .86rem; line-height: 1.45; color: var(--muted); }

/* Matric mosaic on phones: an uneven, hand-placed arrangement instead of a strict grid */
@media (max-width: 859px) {
  .hm-mosaic { grid-auto-rows: 50px; gap: 10px; }
  .hm-mosaic .mt, .hm-mosaic .mt-photo, .hm-mosaic .mt-photo.h-tall { aspect-ratio: auto !important; height: 100%; }
  .hm-mosaic .mc:nth-child(1) .mt-photo { grid-column: 1; grid-row: 1 / span 4; }
  .hm-mosaic .mc:nth-child(1) .tone-leaf { grid-column: 2; grid-row: 1 / span 3; }
  .hm-mosaic .mc:nth-child(2) .mt { grid-column: 2; grid-row: 4 / span 4; }
  .hm-mosaic .mc:nth-child(3) .mt { grid-column: 1; grid-row: 5 / span 3; }
  .hm-mosaic .mc:nth-child(4) .mt { grid-column: 1 / -1; grid-row: 8 / span 4; }
  .hm-mosaic .mc:nth-child(4) .mt-photo img { object-position: 50% 35%; }
  .hm-mosaic .mc:nth-child(5) .tone-ink { grid-column: 2; grid-row: 12 / span 3; }
  .hm-mosaic .mc:nth-child(5) .mt-photo { display: block; grid-column: 1; grid-row: 12 / span 3; }
}

/* Academy hero on phones: open, edge-to-edge, with shaped photo tiles that change in turn */
.ha-sticker { display: none; }
@media (max-width: 859px) {
  .ha-hero { padding: 0; }
  .ha-card { border-radius: 0 0 36px 36px; padding-top: calc(var(--header-h) + 28px); }
  .ha-montage { grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px; height: min(94vw, 370px); }
  .mtile { position: relative; overflow: hidden; min-height: 0; background: rgba(255,255,255,.06); animation: mrise .9s var(--ease) both; }
  .mtile-1 { grid-row: 1 / span 2; border-radius: 220px 220px 26px 26px; }
  .mtile-2 { border-radius: 50%; aspect-ratio: 1; align-self: end; width: 100%; height: auto; animation-delay: .15s; }
  .mtile-3 { border-radius: 26px 26px 90px 26px; animation-delay: .3s; }
  .ha-montage .mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 0; clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1), transform 6s ease-out; }
  .ha-montage .mtile img.is-on { clip-path: inset(0); transform: scale(1); z-index: 2; }
  .ha-montage .mtile img.was { clip-path: inset(0); transform: scale(1); z-index: 1; }
  .ha-sticker { display: grid; place-items: center; position: absolute; z-index: 5; left: calc(16px + 54.5% - 24px); top: calc(50% - 24px); width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; border: 4px solid var(--forest); animation: spin 16s linear infinite; }
  .ha-sticker .i { width: 22px; height: 22px; }
  .ha-copy { animation: mrise .9s .35s var(--ease) both; }
}
@keyframes mrise { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mtile, .ha-copy, .ha-sticker { animation: none !important; } }

/* v9: landscape group photos in the activities strip get a wider card */
.act-photo.is-wide { width: 250px; }
@media (min-width: 860px) { .act-photo.is-wide { width: 300px; } }
.act-photo img { object-position: 50% 40%; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }

/* ==========================================================================
   v10: sticky header, rail arrows + drag, news filters, legal pages, post page.
   ========================================================================== */
/* Rails: grab cursor with a mouse, arrows under rails that had none */
@media (hover: hover) and (pointer: fine) { .rail, .hm-programs { cursor: grab; } }
.rail.is-dragging, .hm-programs.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.rail.is-dragging *, .hm-programs.is-dragging * { pointer-events: none; }
.rail:focus-visible, .hm-programs:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.rail-ctrl { display: flex; justify-content: flex-end; margin-top: -6px; }
.rail-ctrl .rail-nav { position: static; display: flex; }
.rail-nav button:disabled { opacity: .35; cursor: default; pointer-events: none; }
.rail-nav[hidden] { display: none !important; }
@media (max-width: 859px) { .rail-ctrl .rail-nav button { width: 42px; height: 42px; } }
/* Filter chips for news, achievements and events */
.filters button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.news-card.is-out, .event-card.is-out { display: none; }
.news-card.is-link, .event-card.is-link { position: relative; }
.news-link { color: inherit; text-decoration: none; }
.news-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-link:focus-visible { outline: none; }
.news-card.is-link:has(.news-link:focus-visible), .event-card.is-link:has(.news-link:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.news-more { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--brand); }
.news-more .i { width: 1em; height: 1em; transition: transform .25s; }
.news-card.is-link:hover .news-more .i { transform: translateX(4px); }
.news-body { display: flex; flex-direction: column; flex: 1; }
/* Footer legal links */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* Consent checkbox on forms */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 16px; font-size: .86rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.form-note a { color: inherit; }

/* Breadcrumbs on light pages */
.crumbs-dark { color: var(--ink-2); }
.crumbs-dark a { color: var(--brand); }

/* News detail */
.post { padding: 32px 0 56px; }
.post-head, .post-media, .post-body, .post-comments { max-width: 800px; }
.post-head .news-meta { margin: 18px 0 10px; }
.post-title { margin-bottom: .4em; }
.post-media { margin-top: 22px; margin-bottom: 0; }
.post-media img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); background: var(--tint); }
.post-body { margin-top: 28px; font-size: 1.06rem; }
.post-comments { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-comments h2 small { font-weight: 500; color: var(--ink-2); font-size: .8em; }
.comment-list { display: grid; gap: 12px; margin-bottom: 26px; }
.comment { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--tint); }
.comment p { margin: 0; }
.comment-meta { margin-bottom: 6px !important; font-size: .88rem; }
.comment-meta time { color: var(--ink-2); margin-left: 6px; }
.comment-form { margin-top: 18px; }

/* Legal pages */
.legal { padding: 32px 0 64px; }
.legal-head, .legal-body { max-width: 820px; }
.legal-head h1 { margin: 16px 0 6px; }
.legal-updated { font-size: .88rem; color: var(--ink-2); margin-bottom: 12px; }
.legal-draft { display: inline-block; padding: 8px 12px; border-radius: 10px; background: #fff6dc; border: 1px solid #f0dc9c; color: #6b5310; font-size: .86rem; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.legal-tabs a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: none; }
.legal-tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.legal-body { margin-top: 26px; }
.legal-body h2 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.legal-body ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal-body li { margin-bottom: .35em; }
.legal-card { font-style: normal; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--tint); line-height: 1.7; margin-bottom: 1em; }
.legal-form { margin: 26px 0 10px; }
@media (min-width: 860px) { .post, .legal { padding-top: 56px; } }

/* ==========================================================================
   v12: Parents menu and parent information pages.
   Written in each site's own voice: hairline rules, the display font for
   headings and dates, the theme palette only. No icon tiles or pastel fills.
   ========================================================================== */
/* Desktop dropdown */
.nav-more { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px 10px 14px; border-radius: 999px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: .94rem; cursor: pointer; white-space: nowrap; }
.nav-dd-btn .i { width: 15px; height: 15px; transition: transform .2s; }
.nav-dd-btn:hover, .nav-more.is-open .nav-dd-btn { background: var(--tint); }
.nav-dd-btn[aria-current] { color: var(--brand); }
.nav-more.is-open .nav-dd-btn .i { transform: rotate(180deg); }
.nav-dd { position: absolute; right: -40px; top: calc(100% + 12px); width: min(700px, 92vw); display: none; grid-template-columns: repeat(3, 1fr); gap: 0 28px; padding: 24px 28px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 70; }
.nav-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-more.is-open .nav-dd { display: grid; }
.nav .nav-dd a { display: block; padding: 6px 0; border-radius: 0; font-weight: 500; font-size: .93rem; color: var(--ink-2); background: none; box-shadow: none; text-transform: none; letter-spacing: 0; }
.nav .nav-dd a:hover, .nav .nav-dd a[aria-current] { color: var(--brand); background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.nav-dd-h { margin: 0 0 6px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.02rem; color: var(--ink); }
.nav .nav-dd .nav-dd-all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--brand); font-weight: 700; }
.nav-dd-all .i { width: 16px; height: 16px; }
.nav a { white-space: nowrap; }
@media (min-width: 860px) and (max-width: 1180px) {
  .nav a, .nav-dd-btn { padding-left: 10px; padding-right: 10px; font-size: .88rem; }
  .nav ul { gap: 0; }
}
@media (min-width: 1080px) and (max-width: 1279px) {
  .nav > ul > li:first-child { display: none; } /* the logo already links home */
  .header-academy .nav { margin-left: 8px; }
  .header-academy .nav a, .header-academy .nav-dd-btn { padding-left: 8px; padding-right: 8px; font-size: .86rem; }
  .header-academy .header-cta { padding-left: 16px; padding-right: 16px; }
}

/* Drawer: a plain two-column list of parent pages */
.drawer-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.drawer-quick a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.3; }

/* ---------- Standard inner-page hero: one frame for every photo ---------- */
.page-hero-media img { object-position: center 40%; }
[data-site="matric"] .page-hero { display: flex; align-items: flex-end; min-height: 280px; }
[data-site="matric"] .page-hero.is-plain { min-height: 0; background: var(--deep); }
.page-hero-split .page-hero-img img { position: absolute; inset: 0; object-position: center 40%; }
.page-hero-split.is-plain { grid-template-columns: 1fr !important; }
@media (min-width: 860px) {
  [data-site="matric"] .page-hero { min-height: 380px; }
  .page-hero-split { min-height: 400px; }
  .page-hero-split.is-plain { height: auto; min-height: 260px; }
  .page-hero-split .page-hero-text { overflow: hidden; }
}

/* ---------- Page switcher: a quiet row of text links ---------- */
.info-switch { position: sticky; top: var(--header-h); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
[data-site="academy"] .info-switch { top: calc(var(--header-h) + 10px); }
.info-switch-list { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.info-switch-list::-webkit-scrollbar { display: none; }
.info-switch-list a { display: block; white-space: nowrap; padding: 14px 0 12px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.info-switch-list a:hover { color: var(--ink); }
.info-switch-list a[aria-current] { color: var(--ink); border-bottom-color: var(--brand); }
[data-site="academy"] .info-switch-list a { text-transform: uppercase; letter-spacing: .07em; font-size: .76rem; font-weight: 700; }
[data-site="academy"] .info-switch-list a[aria-current] { border-bottom-color: var(--accent); }

/* ---------- Shared building blocks ---------- */
.info-lead { max-width: 720px; margin-bottom: 32px; }
.info-h { margin: 40px 0 14px; }
.info-page .info-h:first-child { margin-top: 0; }
.info-two { display: grid; gap: 32px; margin-top: 8px; }
.info-two .info-h { margin-top: 0; }
.info-list { display: grid; gap: 10px; margin: 0 0 1.2em; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; }
.info-list .i { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--leaf); }
[data-site="academy"] .info-list .i { color: var(--accent); --flower-core: #fff; }
.tbc { color: var(--muted); font-style: italic; }
.info-box { margin: 18px 0; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--tint); }
.info-box p { margin: 8px 0 0; }
.info-box p:first-child { margin-top: 0; }
.info-box h2 { margin-top: 0; }
.info-notice { max-width: 760px; margin: 0 0 28px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--tint); color: var(--ink-2); font-size: .94rem; }
.info-note { display: flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--ink-2); }
.info-note .i { width: 18px; height: 18px; color: var(--brand); flex: none; }
.muted-note { color: var(--muted); font-size: .94rem; }
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv > div { display: grid; gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: .86rem; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; margin-bottom: 18px; }
.info-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.info-table th, .info-table td { padding: 12px 14px 12px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table thead th { font-size: .82rem; color: var(--muted); font-weight: 600; border-bottom-color: var(--ink); }
.info-table tbody th { color: var(--ink); white-space: nowrap; }
.info-table tr.is-out { display: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-sm .i { width: 16px; height: 16px; }

/* Help strip: same look as the site's closing call to action */
.info-help { padding: 0 0 clamp(48px, 7vw, 80px); }
.info-help-inner { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--deep); color: rgba(255,255,255,.8); }
.info-help-inner h2 { color: #fff; margin-bottom: 6px; }
.info-help-inner p { margin: 0; }
.info-help-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.info-help .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- Parents hub ---------- */
.finder { margin-bottom: 36px; max-width: 760px; }
.finder-box { display: flex; align-items: center; gap: 10px; padding: 0 4px; border-bottom: 2px solid var(--ink); }
.finder-box:focus-within { border-bottom-color: var(--brand); }
.finder-box .i { width: 20px; height: 20px; color: var(--muted); flex: none; }
.finder-box input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--ink); outline: none; padding: 14px 0; }
.finder-empty { margin: 12px 0 0; color: var(--muted); }
.hub-group { margin-top: 36px; }
.hub-h { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 1.4rem; color: var(--ink); margin: 0 0 6px; }
.hub-grid { display: grid; column-gap: 40px; }
.hub-card { display: block; padding: 16px 0 18px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.hub-t { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.hub-t .i { width: 16px; height: 16px; color: var(--brand); transition: transform .2s; }
.hub-card:hover .hub-t { color: var(--brand); }
.hub-card:hover .hub-t .i { transform: translateX(3px); }
.hub-d { display: block; margin-top: 2px; font-size: .9rem; line-height: 1.45; }
.hub-card[hidden], .faq[hidden] { display: none; }
.hub-split { display: grid; gap: 40px; }
.hub-split-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hub-split-head h2 { margin: 0; }
.hub-split-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.hub-split-head a .i { width: 16px; height: 16px; }

/* ---------- Calendar ---------- */
/* Types use the theme: holidays in the flower colour, tests in the brand colour, events in leaf green. */
.cal-holiday { --ev: var(--flower-core); }
.cal-exam { --ev: var(--brand); }
.cal-event { --ev: #2d7a39; }
.cal-ptm, .cal-term { --ev: var(--ink-2); }
.cal-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.cal-tools .filters { margin: 0; padding: 0; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-layout { display: grid; gap: 36px; align-items: start; }
.cal-months { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.cal-nav { display: none; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav span { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 1.25rem; color: var(--ink); }
.cal-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.cal-nav button:hover { border-color: var(--ink); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-nav .i { width: 16px; height: 16px; }
.js .cal-nav { display: flex; }
.js .cal-month { display: none; }
.js .cal-month.is-shown { display: block; }
.js .cal-mh { display: none; }
.cal-month + .cal-month { margin-top: 22px; }
.cal-mh { font-size: 1.1rem; margin: 0 0 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-dn { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); padding-bottom: 8px; }
.cal-d { position: relative; display: grid; place-items: center; height: 42px; font-size: .92rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-d.is-blank { visibility: hidden; }
.cal-d.has-ev { color: var(--ev); }
.cal-d.has-ev b { font-weight: 800; }
.cal-d i { position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--ev); }
.cal-d.is-today b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i, .cal-what small i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ev); }
.cal-lh { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 1.15rem; color: var(--ink); margin: 30px 0 4px; }
.cal-lh:first-child { margin-top: 0; }
.cal-row { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cal-row.is-out { display: none; }
.cal-date { flex: none; width: 44px; font-size: .76rem; color: var(--muted); line-height: 1.1; }
.cal-date b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; color: var(--ink); letter-spacing: var(--display-track); }
.cal-what { display: grid; gap: 2px; }
.cal-what strong { color: var(--ink); font-weight: 700; }
.cal-what small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; }
.cal-what span { font-size: .9rem; }

/* Timings */
.week { display: grid; gap: 0; border-top: 1px solid var(--line); }
.week li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.week-when { font-weight: 700; color: var(--ink); }
.week p { margin: 0; }

/* Uniform */
.uni-grid { display: grid; gap: 28px; }
.uni-card { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; }
.uni-media { aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; background: var(--tint); }
.uni-media img { width: 100%; height: 100%; object-fit: cover; }
.uni-ph { display: grid; place-items: center; height: 100%; color: var(--muted); opacity: .6; }
.uni-ph .i { width: 34px; height: 34px; }
.uni-body h2 { margin: 2px 0 10px; }

/* Rules */
.rule-grid { display: grid; gap: 8px 40px; }
.rule-card { padding: 22px 0 6px; border-top: 1px solid var(--line); }
.rule-card h2 { margin: 0 0 14px; }

/* Transport */
.info-call { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.info-call .i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--brand); color: #fff; }
.info-call small { display: block; font-size: .8rem; color: var(--muted); }
.info-call strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.4rem; }

/* Books */
.stage-mini { display: grid; gap: 0 28px; border-top: 1px solid var(--line); }
.stage-mini-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.stage-mini-card span { font-size: .82rem; color: var(--muted); }
.stage-mini-card strong { display: block; color: var(--ink); margin: 1px 0 3px; }
.stage-mini-card p { margin: 0; font-size: .9rem; }

/* Staff */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px 28px; }
.staff-card { display: flex; gap: 14px; align-items: center; }
.staff-photo { flex: none; width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: var(--tint); display: grid; place-items: center; font-weight: 700; color: var(--ink-2); font-size: 1.2rem; }
[data-site="academy"] .staff-photo { border-radius: var(--radius-sm); }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.staff-card strong { display: block; color: var(--ink); }
.staff-card span, .staff-card small { display: block; font-size: .88rem; }
.staff-card small { color: var(--muted); }

/* Documents */
.doc-list { display: grid; border-top: 1px solid var(--line); }
.doc-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.doc-row.is-out { display: none; }
.doc-row:hover strong { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.doc-ic { flex: none; color: var(--muted); }
.doc-ic .i { width: 24px; height: 24px; }
.doc-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.doc-t strong { color: var(--ink); }
.doc-t small { color: var(--muted); }
.doc-t span { font-size: .88rem; }
.doc-go { flex: none; width: 20px; height: 20px; color: var(--brand); }

/* FAQ */
.faq-list { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 0 18px; max-width: 720px; }

/* Careers */
.job-list { display: grid; border-top: 1px solid var(--line); margin-bottom: 18px; }
.job { padding: 18px 0; border-bottom: 1px solid var(--line); }
.job h2 { margin-top: 0; }

@media (min-width: 700px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .uni-grid, .rule-grid, .stage-mini { grid-template-columns: repeat(2, 1fr); }
  .uni-card { grid-template-columns: 140px 1fr; }
  .kv > div { grid-template-columns: 240px 1fr; align-items: baseline; gap: 16px; }
}
@media (min-width: 1000px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .rule-grid { grid-template-columns: repeat(3, 1fr); }
  .stage-mini { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .info-two { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hub-split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .cal-layout { grid-template-columns: minmax(320px, 380px) 1fr; gap: 56px; }
  .cal-months { position: sticky; top: calc(var(--header-h) + 80px); }
  .info-help-inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* Print: the calendar and info pages print cleanly */
@media print {
  .topbar, .header, .drawer, .dock, .footer, .info-switch, .info-help, .page-hero, .cal-tools, .cal-months, .skip { display: none !important; }
  body { background: #fff; padding: 0; }
  .section { padding: 0; }
  .cal-row { break-inside: avoid; }
  .cal-row.is-out { display: flex; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
