/* Kevin & Susie Larson Academy: public site
   Palette taken from the school crest. */
:root {
    --blue: #0B3AA8;       /* Crest Blue */
    --blue-500: #1A56DB;
    --blue-800: #082C82;
    --navy: #0A1B4A;       /* Ink Navy */
    --gold: #F7C331;       /* Star Gold */
    --gold-300: #FFD95A;
    --gold-700: #E0A80C;
    --paper: #F2F6FF;
    --sky: #A9C4FF;
    --muted: #56628A;
    --line: #E3E9F6;

    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --h: 164px;            /* header height (shrinks when stuck) */
    --gutter: clamp(16px, 3vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--navy); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.menu-open { overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--navy); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ================================================================ Top bar */
.topbar { position: relative; overflow: hidden; color: #fff; font-size: 13.5px; font-weight: 500; background: linear-gradient(90deg, var(--blue-800), var(--blue) 45%, var(--blue-500)); }
.topbar-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }
.topbar-list { display: flex; align-items: center; }
.topbar-list li { display: flex; align-items: center; }
.topbar-list li + li { margin-left: 22px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .35); }
.topbar-list li, .topbar-list a { gap: 10px; }
.topbar-list a { display: inline-flex; align-items: center; }
.topbar-list a:hover { color: var(--gold-300); }
.topbar-list .icon { width: 17px; height: 17px; color: var(--gold); }
.topbar-right { display: flex; align-items: center; gap: 26px; }
.tagline { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .01em; }
.tagline i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); transition: transform .2s var(--ease), background .2s; }
.topbar-social a:hover { background: var(--gold); transform: translateY(-2px); }
.topbar-social .icon { width: 15px; height: 15px; }
.topbar-right { position: relative; }
.topbar-swoosh { position: absolute; top: 50%; right: calc(100% + 6px); width: 150px; height: 44px; transform: translateY(-50%); pointer-events: none; }
.topbar-swoosh path { fill: var(--gold); }

/* ========================================================== Main header */
.site-header { position: sticky; top: 0; z-index: 50; isolation: isolate; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s; }
.site-header.is-stuck { --h: 74px; box-shadow: 0 14px 34px -22px rgba(10, 27, 74, .5); }

/* School photo behind the right side, fading softly into the white.
   --pos is the focus point chosen in the admin, so faces stay in view. */
.hdr-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hdr-bg::before {
    /* starts right after the slogan (--photo-left is measured by site.js); capped so faces keep a good crop */
    content: ''; position: absolute; top: 0; bottom: 0; right: 0; left: max(var(--photo-left, 44%), calc(100% - 1100px));
    background: radial-gradient(60% 90% at 70% 40%, rgba(26, 86, 219, .16), transparent 70%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .7) 12%, #000 24%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .7) 12%, #000 24%);
    transition: opacity .35s;
}
.hdr-bg.has-photo::before { background: var(--photo) var(--pos, 50% 50%) / cover no-repeat; }
/* light veil along the top edge so the photo blends into the top bar */
.hdr-bg.has-photo::after { content: ''; position: absolute; top: 0; right: 0; left: max(var(--photo-left, 44%), calc(100% - 1100px)); height: 26px; background: linear-gradient(180deg, rgba(10, 27, 74, .18), transparent); }
.is-stuck .hdr-bg::before { opacity: .14; }
.is-stuck .hdr-bg::after { opacity: 0; }

.hdr-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; width: 100%; height: 34px; pointer-events: none; transition: opacity .3s; }
.w-blue { fill: var(--blue); }
.w-gold { fill: none; stroke: var(--gold); stroke-width: 6; }
.w-gold-r { fill: var(--gold); }
.is-stuck .hdr-wave { opacity: 0; }

.header-in { display: flex; align-items: center; gap: 20px; height: var(--h); max-width: 1720px; transition: height .35s var(--ease); }

/* Brand */
.brand { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.crest { width: auto; height: calc(var(--h) - 16px); max-height: 150px; filter: drop-shadow(0 10px 16px rgba(10, 27, 74, .25)); transition: height .35s var(--ease); }
.wordmark { display: flex; flex-direction: column; padding-left: 18px; border-left: 2px solid var(--blue); line-height: 1.05; transition: padding .3s; }
.wm-1 { font-size: 23px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: font-size .35s var(--ease); }
.wm-2 { font-size: 42px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; line-height: 1; transition: font-size .35s var(--ease); }
.wm-motto { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 13px; font-style: italic; font-weight: 500; white-space: nowrap; transition: opacity .25s, margin .3s; }
.wm-motto::before, .wm-motto::after { content: ''; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.wm-motto i { color: var(--gold-700); font-style: normal; }
/* Motto lockup (used when the logo already contains the school name) */
.tagmark { display: flex; flex-direction: column; padding-left: 20px; border-left: 2px solid var(--blue); line-height: 1.05; }
.tm-1 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: font-size .35s var(--ease); }
.tm-2 { font-size: 30px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; white-space: nowrap; transition: font-size .35s var(--ease); }
.tm-list { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; white-space: nowrap; }
.tm-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tm-stars { display: flex; gap: 6px; margin-top: 7px; }
.tm-stars .icon { width: 14px; height: 14px; fill: var(--gold); stroke: none; }
.tm-stars .icon:nth-child(2) { width: 18px; height: 18px; margin-top: -2px; }
.is-stuck .tagmark { padding-left: 14px; }
.is-stuck .tm-1 { font-size: 13px; }
.is-stuck .tm-2 { font-size: 19px; }
.is-stuck .tm-stars { display: none; }

.is-stuck .crest { height: 66px; }
.is-stuck .wordmark { padding-left: 16px; }
.is-stuck .wm-1 { font-size: 15px; }
.is-stuck .wm-2 { font-size: 24px; }
.is-stuck .wm-motto { display: none; }

/* Right column: glass menu + actions, sitting low inside the header */
.header-right { display: flex; align-items: center; gap: 14px; margin-left: auto; align-self: flex-end; margin-bottom: 26px; transition: margin .35s var(--ease); }
.is-stuck .header-right { align-self: center; margin-bottom: 0; }

/* Frosted glass: the photo shows softly through the menu */
.menu {
    display: flex; align-items: stretch; padding: 4px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
    -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 18px 40px -18px rgba(10, 27, 74, .45), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.menu-item { position: relative; display: flex; align-items: center; }
.menu-item + .menu-item::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: rgba(10, 27, 74, .14); }
.menu-link { position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 5px; height: 42px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: left; white-space: nowrap; transition: background .2s, color .2s; }
.menu-link .icon { width: 15px; height: 15px; color: var(--blue); transition: color .2s; }
.menu-link { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.menu-link:hover, .menu-link[aria-expanded="true"] { background: rgba(255, 255, 255, .7); color: var(--blue); }
/* Active page: a solid white chip on the glass bar, icon in a blue circle, short gold underline */
.menu-link.is-active {
    z-index: 1; margin: 0 2px; padding: 0 12px 0 4px; color: var(--blue); font-weight: 700; text-shadow: none;
    background: #fff; border-radius: 12px; box-shadow: 0 8px 18px -10px rgba(10, 27, 74, .55), 0 0 0 1px rgba(11, 58, 168, .12);
}
.menu-link.is-active .icon:not(.caret) { width: 28px; height: 28px; padding: 6px; border-radius: 50%; color: #fff; background: linear-gradient(180deg, var(--blue-500), var(--blue)); box-shadow: 0 6px 12px -6px rgba(11, 58, 168, .8); }
.menu-link.is-active span { position: relative; }
.menu-link.is-active span::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 22px; height: 3px; border-radius: 3px; background: var(--gold); }
.menu-item:has(.is-active) + .menu-item::before, .menu-item:has(.is-active)::before { display: none; }
.is-stuck .menu { background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px var(--line); }

.caret { width: 14px !important; height: 14px !important; color: var(--navy) !important; transition: transform .3s var(--ease) !important; }
.menu-link[aria-expanded="true"] .caret { transform: rotate(180deg); }

.sub {
    position: absolute; top: calc(100% + 14px); left: 50%; z-index: 5; min-width: 270px; padding: 8px;
    background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; box-shadow: 0 26px 50px -22px rgba(10, 27, 74, .45);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .3s var(--ease), visibility .2s;
}
.sub::before { content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .8); border-width: 1px 0 0 1px; transform: translateX(-50%) rotate(45deg); }
.sub::after { content: ''; position: absolute; inset: -18px 0 auto; height: 18px; } /* hover bridge */
.has-sub.is-open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; transition: background .2s; }
.sub strong { font-size: 14.5px; font-weight: 600; }
.sub small { font-size: 12.5px; color: var(--muted); }
.sub a:hover, .sub a:focus-visible { background: var(--paper); }
.sub a:hover strong { color: var(--blue); }

/* Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.call-btn {
    width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: var(--blue);
    border: 2px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
    box-shadow: 0 10px 22px -12px rgba(10, 27, 74, .6); transition: transform .2s var(--ease);
}
.call-btn .icon { width: 22px; height: 22px; }
.call-btn:hover { transform: translateY(-2px) rotate(-8deg); }
.visit-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 14px 0 18px; border-radius: 999px; white-space: nowrap;
    background: linear-gradient(180deg, var(--gold-300), var(--gold) 55%, var(--gold-700)); color: var(--navy); font-size: 14.5px; font-weight: 700;
    box-shadow: 0 12px 22px -12px rgba(224, 168, 12, .95), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .2s var(--ease), filter .2s;
}
.visit-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.visit-btn:active { transform: translateY(1px); }
.visit-btn .star { width: 19px; height: 19px; fill: var(--navy); stroke: none; transition: transform .5s var(--ease); }
.visit-btn:hover .star { transform: rotate(72deg) scale(1.1); }
.visit-btn .chev { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.visit-btn:hover .chev { transform: translateX(3px); }
.burger { display: none; width: 52px; height: 52px; border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #fff; background: linear-gradient(180deg, var(--blue-500), var(--blue)); box-shadow: 0 10px 20px -10px rgba(11, 58, 168, .8); }
.burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; }
.burger span:nth-child(2) { width: 14px; margin-left: 6px; }
.is-stuck .call-btn, .is-stuck .visit-btn { height: 48px; }
.is-stuck .call-btn { width: 48px; }

/* ============================================================ Phone menu */
.pmenu {
    position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    padding: 14px var(--gutter) 24px; color: #fff;
    background: radial-gradient(500px 360px at 100% 0%, var(--blue-500), transparent 70%), linear-gradient(180deg, var(--blue), var(--navy) 70%);
    clip-path: circle(0 at calc(100% - 46px) 46px); transition: clip-path .55s var(--ease);
}
.pmenu.is-open { clip-path: circle(150% at calc(100% - 46px) 46px); }
.pmenu-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pmenu-stars .icon { position: absolute; fill: var(--gold); stroke: none; opacity: .1; }
.pmenu-stars .icon:nth-child(1) { width: 220px; height: 220px; right: -60px; top: 24%; transform: rotate(14deg); }
.pmenu-stars .icon:nth-child(2) { width: 90px; height: 90px; left: -20px; top: 60%; transform: rotate(-18deg); }
.pmenu-stars .icon:nth-child(3) { width: 46px; height: 46px; right: 30%; bottom: 8%; transform: rotate(8deg); opacity: .16; }
.pmenu > * { position: relative; }
.pmenu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.pmenu-brand { display: flex; align-items: center; gap: 10px; }
.pmenu-brand img { width: 48px; height: 48px; object-fit: contain; }
.pmenu-brand span { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.15; }
.pmenu-brand b { font-size: 21px; font-weight: 800; color: #fff; }
.pmenu-close { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); }
.pmenu-close:hover { background: #fff; color: var(--navy); }

.pmenu-nav { margin: 16px 0 24px; }
.pmenu-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .1); opacity: 0; transform: translateY(14px); }
.pmenu.is-open .pmenu-nav > ul > li { animation: pmIn .5s var(--ease) forwards; animation-delay: calc(.12s + var(--i) * .045s); }
.pm-link { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 0; text-align: left; font-size: clamp(19px, 5.4vw, 23px); font-weight: 600; }
.pm-ic { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--gold); }
.pm-ic .icon { width: 19px; height: 19px; }
.pm-link.is-active { color: var(--gold); }
.pm-link.is-active .pm-ic { background: var(--gold); color: var(--navy); }
.pm-link:hover { color: var(--gold-300); }
.pm-plus { width: 22px; height: 22px; margin-left: auto; color: var(--gold); transition: transform .3s var(--ease); }
.pm-link[aria-expanded="true"] .pm-plus { transform: rotate(45deg); }
.pm-sub { padding: 0 0 12px 54px; }
.pm-sub a { display: flex; flex-direction: column; padding: 7px 0; font-size: 16px; font-weight: 500; color: var(--sky); }
.pm-sub a:hover { color: #fff; }
.pm-sub small { font-size: 12.5px; font-weight: 400; color: rgba(255, 255, 255, .55); }

.pmenu-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.visit-btn-lg { justify-content: center; }
.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.reach a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s; }
.reach a:hover { background: rgba(255, 255, 255, .16); }
.reach .icon { width: 22px; height: 22px; color: var(--gold); }
.pmenu-hours { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--sky); }
.pmenu-hours .icon { width: 15px; height: 15px; }
.pmenu-social { display: flex; justify-content: center; gap: 8px; }
.pmenu-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); }
.pmenu-social a:hover { background: var(--gold); }
.pmenu-social .icon { width: 17px; height: 17px; }
@keyframes pmIn { to { opacity: 1; transform: none; } }

/* ===================================================== Placeholder content */
.placeholder { min-height: 140vh; padding: 70px 0; background: #fff; }
.placeholder-box { display: grid; place-items: center; min-height: 60vh; border: 2px dashed rgba(10, 27, 74, .16); border-radius: 28px; text-align: center; color: var(--muted); padding: 24px; }
.placeholder-box strong { display: block; font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }

/* ============================================================= Responsive */
@media (hover: hover) and (min-width: 1171px) {
    .has-sub:hover .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
/* Desktop widths: drop extras in steps so everything always fits on one row */
@media (max-width: 1620px) {
    .wm-motto::before, .wm-motto::after { display: none; }
    .tb-hours { display: none !important; }
}
/* Laptops: tighten in steps so the menu (with icons) always fits on one row, on the right */
@media (max-width: 1600px) and (min-width: 1171px) {
    .header-in { gap: 16px; }
    .header-right { gap: 12px; }
    .tm-1 { font-size: 17px; }
    .tm-2 { font-size: 25px; }
    .crest { max-height: 140px; }
}
@media (max-width: 1500px) and (min-width: 1171px) {
    :root { --gutter: 20px; }
    .brand { gap: 12px; }
    .tagmark { padding-left: 12px; }
    .tm-1 { font-size: 14px; }
    .tm-2 { font-size: 20px; }
    .tm-stars .icon { width: 11px; height: 11px; }
    .tm-stars .icon:nth-child(2) { width: 14px; height: 14px; }
    .crest { max-height: 130px; }
    .menu-link { padding: 0 7px; }
    .caret { display: none; }
    .header-right { gap: 10px; }
}
@media (max-width: 1340px) and (min-width: 1171px) {
    .menu-link { padding: 0 6px; gap: 4px; }
}
@media (max-width: 1300px) and (min-width: 1171px) {
    :root { --gutter: 14px; }
    .header-in { gap: 10px; }
    .brand { gap: 8px; }
    .crest { max-height: 104px; }
    .tagmark { padding-left: 9px; }
    .tm-1 { font-size: 12px; }
    .tm-2 { font-size: 16px; }
    .tm-stars { display: none; }
    .menu-link { padding: 0 5px; gap: 4px; font-size: 12px; }
    .menu-link.is-active { padding: 0 9px 0 4px; }
    .header-right, .header-actions { gap: 8px; }
    .call-btn { width: 46px; height: 46px; }
}
@media (max-width: 1300px) {
    .wm-1 { font-size: 20px; }
    .wm-2 { font-size: 37px; }
}

/* ---- Tablet & phone: menu links live in the ☰ menu; the header shows crest, slogan and buttons ---- */
.m-photo { display: none; }
@media (max-width: 1170px) {
    :root { --h: 124px; }
    .nav { display: none; }
    .burger { display: flex; }
    .header-right { align-self: flex-end; margin-bottom: 14px; }
    .hdr-bg::before, .hdr-bg.has-photo::after { left: max(var(--photo-left, 44%), 40%); }
    .wm-1 { font-size: 22px; }
    .wm-2 { font-size: 40px; }
    .wm-motto::before, .wm-motto::after { display: block; }
}
@media (max-width: 860px) {
    :root { --h: 108px; }
    .site-header.is-stuck { --h: 66px; }
    .tagline, .tb-email { display: none !important; }
    .topbar-swoosh { width: 110px; }
    .brand { gap: 14px; }
    .crest { height: 92px; }
    .wordmark { padding-left: 14px; }
    .wm-1 { font-size: 16px; }
    .wm-2 { font-size: 29px; }
    .wm-motto { font-size: 11.5px; margin-top: 6px; gap: 5px; }
    .wm-motto::before, .wm-motto::after { width: 16px; }
    .hdr-wave { height: 22px; }
    .is-stuck .crest { height: 48px; }
    .tagmark { padding-left: 14px; }
    .tm-1 { font-size: 14px; }
    .tm-2 { font-size: 21px; }
    .tm-list { font-size: 14px; gap: 7px; }
    .tm-stars { margin-top: 6px; }
    .tm-stars .icon { width: 11px; height: 11px; }
    .tm-stars .icon:nth-child(2) { width: 14px; height: 14px; }
    .call-btn, .burger { width: 46px; height: 46px; }
}
/* ---- Phone: the photo becomes a rounded picture under the crest ---- */
@media (max-width: 640px) {
    .header-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "photo photo"; column-gap: 10px; height: auto; }
    .brand { grid-area: brand; min-height: 96px; }
    .header-right { grid-area: actions; align-self: center; margin: 0; gap: 8px; }
    .header-actions { gap: 8px; }
    .hdr-bg.has-photo::before, .hdr-bg.has-photo::after { display: none; }
    .m-photo {
        display: block; grid-area: photo; aspect-ratio: 2.4 / 1; border-radius: 22px; margin: 2px 4px 20px;
        background: var(--photo) var(--pos, 50% 50%) / cover no-repeat;
        box-shadow: 0 14px 30px -18px rgba(10, 27, 74, .6), 0 0 0 3px #fff, 0 0 0 5px var(--gold);
    }
    .header-actions .visit-btn { display: none; }
    .wm-motto { display: none; }
    .topbar { font-size: 12.5px; }
    .topbar-in { min-height: 38px; }
    .is-stuck .m-photo { display: none; }
    .is-stuck .brand { min-height: 0; }
}
@media (max-width: 420px) {
    .crest { height: 74px; }
    .brand { gap: 10px; min-height: 86px; }
    .wordmark { padding-left: 10px; border-left-width: 1.5px; }
    .wm-1 { font-size: 13px; }
    .wm-2 { font-size: 23px; }
    .tagmark { padding-left: 10px; border-left-width: 1.5px; }
    .tm-1 { font-size: 12.5px; }
    .tm-2 { font-size: 19px; }
    .topbar-social a { width: 26px; height: 26px; }
    .is-stuck .crest { height: 42px; }
    .call-btn, .burger { width: 42px; height: 42px; }
}
@media (max-width: 380px) {
    .call-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* =================================================================== Hero
   "Class pinboard": graph paper, pinned index cards (levels), taped Polaroids (photos),
   a sticky note and pencil doodles. Fits one screen. Previous design: /backup/hero-v3-slideshow. */
.hero {
    --hand: 'Caveat', 'Segoe Print', cursive;
    --tb: 44px;
    --grid: rgba(26, 86, 219, .075);
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column;
    height: max(560px, calc(100svh - var(--tb)));
    padding: 0 0 34px;
    background-color: #F8FAFF;
    background-image:
        radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(26, 86, 219, .06) 100%),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: auto, 26px 26px, 26px 26px;
}
.doodles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.doodles * { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .16; }
.doodles .dd-star { stroke: var(--gold-700); opacity: .55; }
.doodles text { stroke: none; fill: var(--blue); font: 700 34px var(--hand); opacity: .2; }
/* yellow sun (rays turn very slowly) and handwritten 1 2 3 in the bottom-right corner */
.sun { position: absolute; z-index: -1; top: 4px; right: clamp(10px, 2vw, 34px); width: clamp(64px, 6vw, 92px); height: auto; overflow: visible; pointer-events: none; }
.sun-disc { fill: var(--gold); stroke: var(--gold-700); stroke-width: 2.5; }
.sun-rays { transform-origin: 50px 50px; animation: sunspin 40s linear infinite; }
.sun-rays path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; }
.sun-smile { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
@keyframes sunspin { to { transform: rotate(360deg); } }
.doodle-123 { position: absolute; z-index: -1; right: clamp(16px, 3vw, 48px); bottom: 30px; transform: rotate(6deg); font: 700 clamp(28px, 2.6vw, 38px)/1 var(--hand); letter-spacing: .08em; color: var(--blue); opacity: .2; pointer-events: none; }

.hero-in {
    position: relative; flex: 1; display: grid; align-content: center;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    grid-template-areas: "copy board" "cards board";
    column-gap: clamp(28px, 4vw, 80px); row-gap: clamp(18px, 3.4vh, 34px);
    padding-top: clamp(8px, 2vh, 22px);
}

/* ---------- Copy ---------- */
.hero-copy { grid-area: copy; align-self: end; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--blue); background: #fff; box-shadow: 0 0 0 1px rgba(26, 86, 219, .14); }
.hero-badge .icon { width: 17px; height: 17px; }
.hero-title { margin: clamp(10px, 1.8vh, 16px) 0 clamp(8px, 1.4vh, 12px); font-size: clamp(28px, min(3vw, 5.4vh), 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.hero-title > span { display: block; }
.ht-2 { color: var(--blue); }
.ht-2 em { position: relative; display: inline-block; font-family: var(--hand); font-style: normal; font-weight: 700; font-size: 1.36em; line-height: .7; letter-spacing: 0; color: var(--navy); }
.ht-2 em::after { content: ""; position: absolute; left: 2%; right: -2%; bottom: -3px; height: 8px; border-radius: 8px; background: var(--gold); transform: rotate(-1.5deg); z-index: -1; }
.hero-text { max-width: 30em; font-size: 14.5px; line-height: 1.65; color: #3A4670; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(14px, 2.4vh, 22px); }
.h-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .2s var(--ease), background .2s; }
.h-btn .icon { width: 17px; height: 17px; }
.h-btn .chev { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.h-btn:hover { transform: translateY(-2px); }
.h-btn:hover .chev { transform: translateX(3px); }
.h-btn-gold { color: var(--navy); background: var(--gold); box-shadow: 0 10px 20px -12px rgba(224, 168, 12, .9); }
.h-btn-gold:hover { background: #FFCF45; }
.h-btn-line { color: var(--blue); background: #fff; border: 1.5px solid var(--blue); }

/* ---------- Pinned index cards (one per level) ---------- */
.cards { grid-area: cards; align-self: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 22px 18px; padding-top: 8px; }
.cards > li { min-width: 0; }
.icard a {
    position: relative; display: block; padding: 16px 16px 12px 46px; border-radius: 3px; color: var(--navy);
    background-color: #fff;
    background-image:
        linear-gradient(90deg, transparent 32px, rgba(229, 72, 77, .5) 32px, rgba(229, 72, 77, .5) 33.5px, transparent 33.5px),
        repeating-linear-gradient(180deg, transparent 0 23px, rgba(26, 86, 219, .14) 23px 24px);
    background-position: 0 0, 0 40px;
    box-shadow: 0 16px 26px -18px rgba(10, 27, 74, .55), 0 1px 2px rgba(10, 27, 74, .12);
    transform: rotate(var(--tilt, -1.5deg)); transition: transform .3s var(--ease), box-shadow .3s;
}
.icard a:hover, .icard a:focus-visible { transform: rotate(0) translateY(-4px); box-shadow: 0 24px 34px -20px rgba(10, 27, 74, .6), 0 1px 2px rgba(10, 27, 74, .12); }
.icard-pin { position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .85), transparent 40%), var(--pin); box-shadow: 0 3px 4px rgba(10, 27, 74, .35); }
.icard-head { display: flex; align-items: center; gap: 8px; }
.icard-head b { font-size: 16px; font-weight: 700; }
.icard-head small { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: color-mix(in srgb, var(--pin) 22%, #fff); }
.icard-tag { display: block; margin-top: 3px; font: 700 19px/24px var(--hand); color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard-text { display: -webkit-box; margin-top: 0; font-size: 12.5px; line-height: 24px; color: #4A5578; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.icard-more { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--blue); line-height: 24px; }
.icard-more .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.icard a:hover .icard-more .icon { transform: translateX(3px); }

/* ---------- Pinboard: Polaroids + sticky note ---------- */
.board { grid-area: board; position: relative; min-height: 380px; align-self: stretch; margin: 6px 0 30px; }
.polaroid {
    position: absolute; display: block; width: 50%; padding: 10px 10px 0; border: 0; border-radius: 3px; text-align: center; cursor: pointer;
    background: #fff; color: var(--navy); font: inherit;
    box-shadow: 0 22px 34px -20px rgba(10, 27, 74, .6), 0 2px 5px rgba(10, 27, 74, .1);
    transform: rotate(var(--r)); transition: transform .35s var(--ease), box-shadow .35s;
    animation: drop .8s var(--ease) calc(.25s + var(--i, 0) * .16s) backwards;
}
.polaroid:hover, .polaroid:focus-visible { transform: rotate(0) scale(1.03); box-shadow: 0 30px 44px -22px rgba(10, 27, 74, .65), 0 2px 5px rgba(10, 27, 74, .1); }
.polaroid.is-front { z-index: 6 !important; }
@keyframes drop { from { opacity: 0; transform: translateY(-36px) rotate(calc(var(--r) - 10deg)) scale(1.06); } }
.pol-img { display: block; aspect-ratio: 4 / 3; background: #DCE7FB center / cover no-repeat; }
.pol-cap { display: block; padding: 6px 4px 10px; font: 700 clamp(18px, 1.5vw, 23px)/1.1 var(--hand); color: var(--navy); }
.polaroid:not(:has(.pol-cap)) { padding-bottom: 26px; }
.tape { position: absolute; top: -11px; left: 50%; width: 84px; height: 24px; transform: translateX(-50%) rotate(-4deg); background: rgba(247, 195, 49, .72); clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 2% 96%, 0 70%, 4% 45%, 0 20%); }
.pol-2 .tape, .pol-4 .tape { background: rgba(141, 184, 255, .75); transform: translateX(-50%) rotate(5deg); }
.pol-1 { --r: -4deg; left: 4%; top: 12%; width: 54%; z-index: 3; }
.pol-2 { --r: 5deg; right: 0; top: 0; width: 40%; z-index: 2; }
.pol-3 { --r: 3deg; right: 4%; bottom: 0; width: 38%; z-index: 4; }
.pol-4 { --r: -7deg; left: 24%; bottom: -4%; width: 30%; z-index: 1; }
.polaroid.is-empty { cursor: default; }
/* Desktop/laptop: Polaroid sizes follow BOTH the board width and its height (--bh, measured by site.js),
   so they never pile up on short screens. A Polaroid is about 0.75 × width + 54px tall. */
@media (min-width: 821px) {
    .pol-1 { width: min(54%, calc((var(--bh, 600px) * .86 - 54px) / .75)); }
    .pol-2 { width: min(40%, calc((var(--bh, 600px) * .58 - 54px) / .75)); }
    .pol-3 { width: min(38%, calc((var(--bh, 600px) * .58 - 54px) / .75)); }
    .pol-4 { width: min(30%, calc((var(--bh, 600px) * .50 - 54px) / .75)); }
}
/* 4 photos: scattered two-by-two so every Polaroid shows (desktop/laptop) */
@media (min-width: 821px) {
    /* two rows of two, each row at most ~43% of the board height, so nothing overlaps */
    .board[data-count="4"] .polaroid { width: min(48%, calc((var(--bh, 600px) * .53 - 54px) / .75)); }
    .board[data-count="4"] .pol-1 { --r: -3deg; left: 0; top: 0; z-index: 4; }
    .board[data-count="4"] .pol-2 { --r: 3deg; left: auto; right: 0; top: 0; z-index: 4; }
    .board[data-count="4"] .pol-3 { --r: 2deg; left: auto; right: 2%; bottom: 0; top: auto; z-index: 2; }
    .board[data-count="4"] .pol-4 { --r: -2deg; left: 6%; bottom: 0; top: auto; z-index: 2; display: block; }
    .board[data-count="4"] .sticky { left: 38%; top: 1%; width: clamp(120px, 11vw, 150px); }
}
/* big screens: let the board (and its Polaroids) grow into the space */
@media (min-width: 1500px) and (min-height: 860px) {
    .board { min-height: 560px; }
    .board[data-count="4"] .polaroid { width: min(50%, calc((var(--bh, 600px) * .53 - 54px) / .75)); }
}

.sticky {
    position: absolute; left: -2%; top: 2%; z-index: 5; width: clamp(130px, 13vw, 170px); padding: 18px 14px 16px; margin: 0;
    font: 700 clamp(19px, 1.55vw, 24px)/1.05 var(--hand); color: var(--navy); text-align: center;
    background: linear-gradient(180deg, #FFE27A, #FFD54A); transform: rotate(-7deg);
    box-shadow: 0 16px 22px -14px rgba(10, 27, 74, .55); animation: drop .8s var(--ease) .1s backwards; --r: -7deg;
}
.sticky::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), transparent 40%), #E5484D; box-shadow: 0 2px 3px rgba(10, 27, 74, .35); }
.board-plane { position: absolute; left: 2%; bottom: 4%; width: 120px; height: 56px; overflow: visible; transform: rotate(-8deg); }
.board-plane path { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.board-plane .trail { stroke-dasharray: 4 6; opacity: .45; }

/* ---------- Torn paper edge ---------- */
.hero-tear { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 26px; pointer-events: none; }
.hero-tear path { fill: #fff; filter: drop-shadow(0 -2px 2px rgba(10, 27, 74, .08)); }

/* Homepage: the pinboard runs up behind the (transparent) header on desktop/laptop */
@media (min-width: 821px) {
    .has-hero .hdr-bg, .has-hero .hdr-wave { display: none; }
    .has-hero .site-header:not(.is-stuck) { background: transparent; box-shadow: none; }
    .has-hero .hero { margin-top: calc(var(--h) * -1); padding-top: var(--h); }
    .has-hero .sun { top: calc(var(--h) - 26px); }
}
/* Short laptop screens: everything still fits */
@media (min-width: 821px) and (max-height: 820px) {
    :root { --h: 132px; }
    .hero-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .icard-text { -webkit-line-clamp: 1; }
}
@media (min-width: 821px) and (max-height: 700px) {
    .hero-text, .board-plane { display: none; }
}
@media (min-width: 1500px) {
    .hero-in { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
    .hero-in { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
    .hero-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .icard-text { -webkit-line-clamp: 1; }
    .pol-4 { display: none; }
}
/* Tablet & phone: message, a swipe row of Polaroids, then the index cards */
@media (max-width: 820px) {
    .hero { --tb: 38px; height: auto; padding: 22px 0 44px; }
    .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "board" "cards"; row-gap: 22px; }
    .board { display: flex; gap: 18px; min-height: 0; margin: 0 calc(var(--gutter) * -1); padding: 18px var(--gutter) 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
    .board::-webkit-scrollbar { display: none; }
    .polaroid { position: relative; inset: auto; flex: 0 0 min(64%, 300px); width: auto; scroll-snap-align: start; }
    .pol-4 { display: block; }
    .sticky { position: relative; inset: auto; flex: 0 0 140px; align-self: center; }
    .board-plane, .doodle-123 { display: none; }
    .cards { gap: 22px 14px; }
}
@media (max-width: 480px) {
    .hero-ctas .h-btn { flex: 1 1 0; justify-content: center; padding: 0 10px; font-size: 13px; }
    .hero-ctas .h-btn .chev { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .polaroid, .sticky, .sun-rays { animation: none; }
}

/* Pinboard string (drawn by site.js): yarn from pin to pin, sagging slightly */
.strings { position: absolute; inset: 0; z-index: 7; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.strings .str { fill: none; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 2px 1.5px rgba(10, 27, 74, .28)); transition: stroke-dashoffset 1.8s cubic-bezier(.45, .05, .25, 1); }
.strings .str-red { stroke: #E5484D; }
.strings .str-blue { stroke: #1A56DB; }
.strings .knot { stroke: none; }
.strings .knot.str-red { fill: #C93A3F; }
.strings .knot.str-blue { fill: #0B3AA8; }
@media (max-width: 820px) { .strings { display: none; } }

/* ================================================================= About us
   "The blue classroom board": flat crest-blue band with a torn top edge, white paper cards, taped Polaroids,
   gold handwriting. Kept to about two screens: story + photos, then mission/values beside the head's message. */
.about { --hand: 'Caveat', 'Segoe Print', cursive; --board: #0A2F8F; position: relative; color: #fff; padding: clamp(30px, 4vw, 54px) 0 clamp(36px, 4.5vw, 60px);
    background-color: var(--board);
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 26px 26px; }
.about::before, .stats::before { content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%230A2F8F' d='M0 40 V14 L40 18 L76 9 L118 16 L160 7 L204 15 L246 10 L290 19 L334 8 L380 15 L420 9 L466 18 L508 11 L552 17 L596 6 L640 14 L684 9 L730 18 L772 10 L816 16 L860 7 L904 15 L948 10 L992 19 L1036 9 L1080 16 L1124 8 L1168 17 L1210 10 L1256 15 L1300 7 L1344 16 L1390 10 L1440 15 V40 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.ab-kicker { display: inline-block; font: 700 clamp(25px, 2vw, 30px)/1 var(--hand); color: var(--gold); }
.ab-kicker::after { content: ""; display: block; height: 3px; margin-top: 4px; border-radius: 3px; background: currentColor; transform: rotate(-1deg); opacity: .8; }

/* row 1: headline + story | collage */
.ab-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4.5vw, 72px); align-items: center; }
.ab-title { margin: 10px 0 14px; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.ab-title em { font: 700 1.18em/1 var(--hand); letter-spacing: 0; color: var(--gold); }
.ab-text { margin-bottom: 22px; max-width: 60ch; font-size: 15.5px; line-height: 1.7; color: #D5E1FF; }
.ab-text p + p { margin-top: 10px; }

.ab-photos { position: relative; width: 100%; max-width: 420px; margin-inline: auto; padding: 8px 0 16% 0; }
.ab-star { position: absolute; top: -16px; left: 6%; z-index: 3; width: 48px; height: 48px; fill: var(--gold); stroke: var(--gold-700); stroke-width: 1; transform: rotate(-12deg); }
.ab-pol { position: relative; margin: 0; padding: 9px 9px 0; background: #fff; color: var(--navy); border-radius: 3px; box-shadow: 0 24px 34px -20px rgba(0, 0, 0, .65); transition: transform .35s var(--ease); }
.ab-pol .pol-img { aspect-ratio: 9 / 10; }
.ab-pol .pol-cap { font-size: clamp(17px, 1.4vw, 21px); padding: 4px 4px 8px; }
.ab-pol-1 { width: 72%; margin-left: auto; transform: rotate(3.5deg); }
.ab-pol-2 { position: absolute; left: 0; bottom: 0; width: 58%; transform: rotate(-5deg); }
.ab-pol-2 .pol-img { aspect-ratio: 4 / 3; }
.ab-pol-2 .tape { background: rgba(141, 184, 255, .8); transform: translateX(-50%) rotate(5deg); }
.ab-pol:hover { transform: rotate(0) scale(1.03); z-index: 4; }
.ab-photos:not(.has-two) { padding-bottom: 0; }
.ab-photos:not(.has-two) .ab-pol-1 { width: 86%; }
.ab-pol.is-empty .pol-img { background: var(--paper); }

/* row 2: mission, vision, value tags | head teacher */
.ab-lower { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(26px, 3.4vw, 52px); align-items: start; margin-top: clamp(34px, 4vw, 54px); }
.ab-lower.is-one { grid-template-columns: minmax(0, 860px); justify-content: center; }
.ab-sub { margin: 0 0 22px; font: 700 clamp(28px, 2.6vw, 38px)/1 var(--hand); color: #fff; }
.ab-sub span { padding: 0 8px 0 0; background: linear-gradient(transparent 64%, rgba(247, 195, 49, .85) 64% 88%, transparent 88%); }

.ab-mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ab-mv.is-one { grid-template-columns: 1fr; }
.ab-card { position: relative; padding: 18px 20px 18px; border-radius: 4px; color: var(--navy); box-shadow: 0 18px 26px -18px rgba(0, 0, 0, .65); }
.ab-card::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #E5484D; box-shadow: 0 3px 4px rgba(0, 0, 0, .4); }
.ab-card-mission { background: #fff repeating-linear-gradient(transparent 0 27px, rgba(26, 86, 219, .13) 27px 28px); transform: rotate(-1deg); }
.ab-card-vision { background: var(--gold); transform: rotate(1.2deg); margin-top: 10px; }
.ab-card-vision::before { background: var(--blue-500); }
.ab-card h3 { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; font: 700 clamp(26px, 2.1vw, 32px)/1 var(--hand); color: var(--blue); }
.ab-card-vision h3 { color: var(--navy); }
.ab-card h3 .icon { width: 20px; height: 20px; }
.ab-card p { font-size: 14.5px; line-height: 28px; font-weight: 500; }
.ab-card-vision p { line-height: 1.65; }

/* core values: hanging luggage tags (hole + string, they swing a little on hover) */
.ab-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; margin-top: 26px; }
.ab-tags li { position: relative; padding: 26px 12px 12px; min-height: 96px; color: var(--navy); background: #fff; transform-origin: 50% 0; transform: rotate(var(--sw)); transition: transform .5s var(--ease);
    clip-path: polygon(12% 0, 88% 0, 100% 14%, 100% 100%, 0 100%, 0 14%); }
.ab-tags li.tag-1 { background: var(--gold); }
.ab-tags li.tag-2 { background: #BFD4FF; }
.ab-tags li::before { content: ""; position: absolute; top: 8px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--board); box-shadow: inset 0 0 0 2px rgba(10, 27, 74, .25); }
.ab-tags li::after { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 9px; margin-left: -1px; background: rgba(10, 27, 74, .35); }
.ab-tags li:hover { transform: rotate(0); }
.ab-tags b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.ab-tags span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: #34406B; }

/* head teacher: white card, portrait pinned to its corner, quote in a ruled "letter" */
.ab-head { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 18px; align-items: center; padding: 18px 22px 20px; margin-top: 26px; background: #fff; color: var(--navy); border-radius: 4px; box-shadow: 0 24px 34px -22px rgba(0, 0, 0, .7); }
.ab-head::before { content: "\201C"; position: absolute; top: 4px; right: 18px; font: 800 96px/1 Georgia, serif; color: var(--gold); opacity: .55; pointer-events: none; }
.ab-head-photo { position: relative; z-index: 1; margin: -44px 0 0; padding: 7px 7px 0; background: #fff; border-radius: 3px; transform: rotate(-4deg); box-shadow: 0 14px 22px -12px rgba(10, 27, 74, .6), 0 0 0 1px var(--line); }
.ab-head-photo .pol-img { aspect-ratio: 4 / 5; }
.ab-head-photo .pol-img.is-blank { display: grid; place-items: center; background: var(--paper); color: var(--sky); }
.ab-head-photo .pol-img.is-blank .icon { width: 40px; height: 40px; }
.ab-head-photo::after { content: ""; display: block; height: 22px; }
.ab-head .ab-kicker { color: var(--blue-500); font-size: 24px; }
.ab-head .ab-kicker::after { background: var(--gold); opacity: 1; }
.ab-sign { display: flex; flex-direction: column; margin-top: 6px; font: 700 clamp(26px, 2.1vw, 30px)/1 var(--hand); color: var(--navy); }
.ab-sign span { margin-top: 2px; font: 600 12.5px/1.3 var(--font); color: var(--muted); }
.ab-head blockquote { grid-column: 1 / -1; margin: 16px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--gold); font-size: 14.5px; line-height: 1.7; color: #2A3560; }
.ab-more { grid-column: 1 / -1; margin-top: 8px; font-size: 14px; }
.ab-more summary { cursor: pointer; font-weight: 600; color: var(--blue-500); }
.ab-more summary:hover { text-decoration: underline; }
.ab-more div { margin-top: 8px; padding-left: 19px; line-height: 1.7; color: #2A3560; max-height: 40vh; overflow: auto; }

@media (max-width: 960px) {
    .ab-top, .ab-lower { grid-template-columns: 1fr; }
    .ab-photos { max-width: 380px; }
    .ab-head { margin-top: 40px; }
}
@media (max-width: 560px) {
    .ab-mv { grid-template-columns: 1fr; }
    .ab-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .ab-tags li { transition: none; } }

/* ====================================================== Shared section heads */
.sec { --hand: 'Caveat', 'Segoe Print', cursive; --grid: rgba(26, 86, 219, .07); position: relative; padding: clamp(44px, 5.5vw, 84px) 0; }
.sec-head { max-width: 720px; margin: 0 auto clamp(26px, 3.5vw, 46px); text-align: center; }
.sec-head.is-left { margin-left: 0; text-align: left; }
.sec-kicker { display: inline-block; font: 700 clamp(25px, 2vw, 30px)/1 var(--hand); color: var(--blue-500); }
.sec-kicker::after { content: ""; display: block; height: 3px; margin-top: 4px; border-radius: 3px; background: var(--gold); transform: rotate(-1deg); }
.sec-title { margin: 10px 0 10px; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.07; font-weight: 800; letter-spacing: -.03em; color: var(--navy); text-wrap: balance; }
.sec-title em { font: 700 1.18em/1 var(--hand); letter-spacing: 0; color: var(--blue-500); }
.sec-intro { font-size: 16px; color: var(--muted); }

/* ================================================================ Programs
   "File box": folder tabs over one card at a time (fits a single screen). */
.programs { padding-block: clamp(22px, 3vw, 40px); background-color: #F8FAFF; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 26px 26px; }
.programs .sec-head { margin-bottom: clamp(14px, 2vw, 22px); }
.programs .sec-title { margin: 4px 0; font-size: clamp(26px, 2.8vw, 38px); }
.programs .sec-intro { font-size: 15px; }
@media (max-height: 820px) and (min-width: 900px) { .programs .sec-intro { display: none; } }
.pgt { max-width: 1060px; margin-inline: auto; }
.pgt-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 14px; }
.pgt-tab { position: relative; display: flex; align-items: center; gap: 9px; min-width: 150px; padding: 10px 20px 11px 12px; border: 2px solid color-mix(in srgb, var(--pin) 55%, #fff); border-bottom: 0; border-radius: 14px 14px 0 0; background: color-mix(in srgb, var(--pin) 22%, #fff); color: var(--navy); transform: translateY(6px); transition: transform .25s var(--ease), background .2s; }
.pgt-tab:hover { transform: translateY(2px); }
.pgt-tab.is-on { z-index: 2; transform: none; padding-block: 13px 13px; background: #fff; border-color: var(--pin); box-shadow: 0 -8px 14px -10px rgba(10, 27, 74, .35); }
.pgt-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 5px; background: #fff; }
.pgt-tab i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pin); font: 700 19px/1 var(--hand); font-style: normal; }
.pgt-tab b { font-size: 16px; font-weight: 800; }
.pgt-tab small { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 11.5px; font-weight: 600; }
.pgt-card { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; border: 2px solid var(--pin); border-radius: 0 14px 14px 14px; background: #fff; box-shadow: 0 24px 34px -24px rgba(10, 27, 74, .55); }
.pgt-stage { display: grid; align-content: center; justify-items: center; gap: 12px; padding: clamp(16px, 2vw, 26px); background-color: color-mix(in srgb, var(--pin) 16%, #fff); background-image: linear-gradient(rgba(10, 27, 74, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 27, 74, .05) 1px, transparent 1px); background-size: 22px 22px; }
.pgt-main { position: relative; width: min(100%, 46vh, 420px); margin: 8px 0 0; padding: 8px 8px 0; background: #fff; border-radius: 3px; transform: rotate(-2.5deg); box-shadow: 0 20px 28px -16px rgba(10, 27, 74, .6); }
.pgt-main .pol-img { aspect-ratio: 4 / 3; margin-bottom: 8px; transition: background-image .2s; }
.pgt-main .pol-img.is-blank { display: grid; place-items: center; background: var(--paper); color: var(--sky); }
.pgt-main .pol-img.is-blank .icon { width: 44px; height: 44px; }
.pgt-main .tape { top: -10px; width: 74px; height: 20px; }
.pgt-thumbs { display: flex; gap: 10px; }
.pgt-thumb { width: 62px; height: 46px; border: 3px solid #fff; border-radius: 3px; background: center / cover no-repeat #DCE7FB; box-shadow: 0 8px 12px -6px rgba(10, 27, 74, .55); transition: transform .2s var(--ease), box-shadow .2s; }
.pgt-thumb:nth-child(odd) { transform: rotate(-3deg); } .pgt-thumb:nth-child(even) { transform: rotate(3deg); }
.pgt-thumb:hover { transform: rotate(0) translateY(-3px); }
.pgt-thumb.is-on { box-shadow: 0 0 0 3px var(--pin), 0 8px 12px -6px rgba(10, 27, 74, .55); transform: rotate(0); }
.pgt-body { align-self: center; padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.8vw, 38px); }
.pg-age { display: inline-block; padding: 1px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--pin); color: var(--navy); }
.pgt-body h3 { margin: 6px 0 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; color: var(--navy); }
.pg-tag { font: 700 clamp(25px, 2.1vw, 31px)/1.05 var(--hand); color: var(--blue-500); }
.pg-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #3A4670; }
.pgt-points { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; margin: 14px 0 16px; }
.pgt-points li { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--pin) 14%, #fff); font-size: 12.5px; line-height: 1.25; font-weight: 500; }
.pgt-points .icon { flex: 0 0 14px; width: 14px; height: 14px; stroke-width: 3; color: color-mix(in srgb, var(--pin) 65%, #0A1B4A); }
@media (max-width: 800px) {
    .pgt-card { grid-template-columns: 1fr; }
    .pgt-main { width: min(100%, 360px); }
    .pgt-tab { flex: 1 1 130px; min-width: 0; }
    .pgt-tab small { display: none; }
}

/* =============================================================== Admissions
   Warm "enrolment ticket" paper with scalloped ticket edges. */
.adm { background: #FFF2C4; padding-block: clamp(56px, 6vw, 92px); }
.adm::before, .adm::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; pointer-events: none; }
.adm::before { top: 0; background: radial-gradient(circle at 12px 0, #0A2F8F 8px, transparent 9px) 0 0 / 24px 14px repeat-x; }
.adm::after { bottom: 0; background: radial-gradient(circle at 12px 100%, #0A1B4A 8px, transparent 9px) 0 0 / 24px 14px repeat-x; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(26px, 4vw, 60px); align-items: start; }
.adm .sec-head { max-width: 560px; margin-bottom: 30px; }
.adm .sec-title em { color: var(--blue); }
.adm-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; counter-reset: s; }
.adm-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 18px 18px; background: #fff; border-radius: 4px; box-shadow: 0 16px 24px -16px rgba(10, 27, 74, .5); transform: rotate(var(--r)); transition: transform .3s var(--ease); }
.adm-steps li:hover { transform: rotate(0) translateY(-3px); }
.adm-n { position: absolute; top: -14px; left: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 6px 10px -4px rgba(10, 27, 74, .5); }
.adm-steps b { font-size: 17px; font-weight: 700; color: var(--navy); }
.adm-steps li span:not(.adm-n) { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.adm-list { position: relative; padding: 20px 20px 14px 52px; background: #fff repeating-linear-gradient(transparent 0 33px, rgba(26, 86, 219, .14) 33px 34px); border-radius: 4px; box-shadow: 0 18px 28px -18px rgba(10, 27, 74, .5); transform: rotate(.8deg); }
.adm-list::before { content: ""; position: absolute; top: 0; bottom: 0; left: 36px; width: 1.5px; background: rgba(229, 72, 77, .5); }
.adm-list h3 { margin: 0 0 4px; font: 700 clamp(28px, 2.3vw, 34px)/34px var(--hand); color: var(--blue); }
.adm-list ul li { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 14.5px; font-weight: 500; color: var(--navy); }
.adm-list .icon { width: 18px; height: 18px; color: #1FA37A; stroke-width: 3; }
.adm-dates { display: grid; gap: 10px; margin-top: 22px; }
.adm-dates div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 28px 10px 16px; background: var(--navy); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); }
.adm-dates dt { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.adm-dates dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; }
.adm-visit { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 36px; margin-top: clamp(34px, 4vw, 52px); padding: clamp(22px, 3vw, 36px) clamp(22px, 3.4vw, 44px); border-radius: 8px; color: #fff; background-color: var(--navy); background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 26px 26px; box-shadow: 0 26px 36px -24px rgba(10, 27, 74, .8); }
.adm-visit::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(247, 195, 49, .5); border-radius: 5px; pointer-events: none; }
.adm-visit h3 { margin: 0; font: 700 clamp(30px, 2.8vw, 42px)/1.05 var(--hand); color: var(--gold); }
.adm-visit p { margin-top: 4px; max-width: 52ch; font-size: 15px; color: #D5E1FF; }
.adm-where { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px !important; font-size: 13.5px !important; }
.adm-where span { display: inline-flex; align-items: center; gap: 6px; }
.adm-where .icon { width: 15px; height: 15px; color: var(--gold); }
.adm-visit-btns { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.h-btn-wa { color: var(--navy); background: #3DDC84; }
.h-btn-wa:hover { background: #5BE89A; }
.h-btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.h-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ================================================================== Gallery
   Navy photo wall: white-framed photos in a mixed-size grid + pop-up viewer. */
.gal { --grid: rgba(255, 255, 255, .045); background-color: #0A1B4A; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 26px 26px; color: #fff; }
.gal .sec-kicker { color: var(--gold); }
.gal .sec-title { color: #fff; }
.gal .sec-title em { color: var(--gold); }
.gal .sec-intro { color: #C3D4FF; }
.gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 13vw, 190px); grid-auto-flow: dense; gap: 18px; }
.gal-item { position: relative; display: block; width: 100%; height: 100%; padding: 7px; overflow: hidden; background: #fff; border-radius: 3px; cursor: zoom-in; box-shadow: 0 18px 26px -16px rgba(0, 0, 0, .7); transition: transform .35s var(--ease), box-shadow .35s; }
.gal-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.gal-item:nth-child(7n+5) { grid-column: span 2; }
.gal-item:nth-child(odd) { transform: rotate(-.8deg); }
.gal-item:nth-child(even) { transform: rotate(.9deg); }
.gal-item:hover, .gal-item:focus-visible { transform: rotate(0) scale(1.025); z-index: 2; }
.gal-img { position: absolute; inset: 7px; background-size: cover; background-position: center; transition: transform .7s var(--ease); }
.gal-item:hover .gal-img { transform: scale(1.06); }
.gal-cap { position: absolute; left: 7px; right: 7px; bottom: 7px; padding: 5px 10px 7px; background: #fff; color: var(--navy); font: 700 21px/1.1 var(--hand); text-align: left; transform: translateY(101%); transition: transform .35s var(--ease); }
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { transform: none; }
@media (hover: none) { .gal-cap { transform: none; } }
.lb { padding: 0; border: 0; background: transparent; color: #fff; max-width: none; max-height: none; }
.lb[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100vw; height: 100dvh; padding: 18px; }
.lb::backdrop { background: rgba(4, 10, 32, .93); }
.lb figure { margin: 0; text-align: center; }
.lb img { max-width: 100%; max-height: 78vh; margin: 0 auto; border: 8px solid #fff; border-radius: 3px; box-shadow: 0 30px 60px -20px #000; }
.lb figcaption { margin-top: 12px; font: 700 clamp(24px, 2.4vw, 32px)/1.1 var(--hand); color: var(--gold); min-height: 1em; }
.lb-x, .lb-nav { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); transition: transform .2s var(--ease), background .2s; }
.lb-x:hover, .lb-nav:hover { background: var(--gold); transform: scale(1.08); }
.lb-x { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lb-prev .icon { transform: rotate(180deg); }
.lb-nav[hidden] { display: none; }

/* ============================================================ News & events
   Notice board: events as tear-off calendar pages, news as paper cards. */
.nws { background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 26px 26px; }
.nws-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(26px, 3.4vw, 50px); align-items: start; }
.nws-grid.is-one { grid-template-columns: minmax(0, 1fr); }
.nws-sub { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font: 700 clamp(28px, 2.3vw, 34px)/1 var(--hand); color: var(--navy); }
.nws-sub .icon { width: 22px; height: 22px; color: var(--blue-500); }
.ev { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; background: #fff; border-radius: 4px; box-shadow: 0 14px 22px -16px rgba(10, 27, 74, .55); transform: rotate(var(--r)); transition: transform .3s var(--ease); }
.ev:hover { transform: rotate(0) translateX(3px); }
.ev-leaf { flex: 0 0 62px; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 10px -6px rgba(10, 27, 74, .5); }
.ev-leaf b { display: block; padding: 3px 0; background: #E5484D; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ev-leaf span { display: block; padding: 3px 0 5px; font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--navy); }
.ev-body h4 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.ev-body a:hover, .nw h3 a:hover, .nw h4 a:hover { color: var(--blue-500); }
.ev-place { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--blue-500); }
.ev-place .icon { width: 14px; height: 14px; }
.ev-body p:not(.ev-place) { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.nws-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nw { overflow: hidden; display: flex; flex-direction: column; background: #fff; border-radius: 4px; box-shadow: 0 18px 28px -20px rgba(10, 27, 74, .55); transition: transform .3s var(--ease); }
.nw:hover { transform: translateY(-4px); }
.nw-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.nw-ph { aspect-ratio: 16 / 10; background: center / cover no-repeat #DCE7FB; }
.nw-lead .nw-ph { aspect-ratio: auto; min-height: 250px; }
.nw-ph.is-blank { display: grid; place-items: center; color: rgba(10, 27, 74, .45); }
.nw-ph.is-blank .icon { width: 54px; height: 54px; }
.nw-ph.c0 { background-color: var(--gold-300); } .nw-ph.c1 { background-color: #BFD4FF; } .nw-ph.c2 { background-color: #BDEBD7; }
.nw-body { padding: 16px 18px 18px; }
.nw-date { font: 700 22px/1 var(--hand); color: var(--blue-500); }
.nw h3, .nw h4 { margin: 4px 0 6px; font-weight: 800; line-height: 1.2; color: var(--navy); }
.nw h3 { font-size: clamp(22px, 2vw, 28px); }
.nw h4 { font-size: 17px; }
.nw-body p:not(.nw-date) { font-size: 14px; line-height: 1.55; color: var(--muted); }
.nw-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--blue); }
.nw-more .chev { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nw-more:hover .chev { transform: translateX(4px); }

@media (max-width: 1100px) {
    .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .adm-grid, .nws-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nw-lead { grid-template-columns: 1fr; }
    .nw-lead .nw-ph { min-height: 0; aspect-ratio: 16 / 10; }
    .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .adm-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nws-cards { grid-template-columns: 1fr; }
    .lb[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
    .lb-nav { position: absolute; bottom: 18px; } .lb-prev { left: 18px; } .lb-next { right: 18px; }
}

/* ================================================================ Page header
   Banner of the inner pages (Gallery, Album, Administration). */
.page-hero, .stats, .ftr { --hand: 'Caveat', 'Segoe Print', cursive; }
.page-hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0 clamp(30px, 4vw, 54px); border-bottom: 1px solid var(--line); background-color: #F8FAFF; background-image: linear-gradient(rgba(26, 86, 219, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 86, 219, .07) 1px, transparent 1px); background-size: 26px 26px; }
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--blue-500); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { font-weight: 600; color: var(--navy); }
.ph-title { margin: 12px 0 8px; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: var(--navy); text-wrap: balance; }
.ph-title em { font: 700 1.18em/1 var(--hand); letter-spacing: 0; color: var(--blue-500); }
.ph-intro { max-width: 62ch; font-size: 16px; color: var(--muted); }
.ph-doodle { position: absolute; right: 4%; top: 18%; width: clamp(180px, 24vw, 360px); overflow: visible; pointer-events: none; }
.ph-doodle path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.ph-doodle .d1 { stroke: var(--navy); opacity: .16; }
.ph-doodle .d2 { stroke: var(--gold-700); opacity: .7; }
.empty-note { padding: 40px 0; text-align: center; color: var(--muted); }

/* ================================================================== Stats
   Pennant flags hanging from a rope on the blue board. */
.stats { --board: #0A2F8F; position: relative; color: #fff; padding: clamp(40px, 5vw, 62px) 0 clamp(52px, 6vw, 78px); background-color: var(--board);
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 26px 26px; }
.stats-kicker { margin-bottom: 26px; text-align: center; font: 700 clamp(30px, 2.8vw, 40px)/1 var(--hand); color: var(--gold); }
.flags { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; max-width: 1000px; margin: 0 auto; padding-top: 24px; }
.flags::before { content: ""; position: absolute; left: -3%; right: -3%; top: 10px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .75); box-shadow: 0 4px 5px rgba(0, 0, 0, .25); }
.flag { position: relative; display: flex; justify-content: center; transform-origin: 50% 0; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .3)); animation: sway 5.5s ease-in-out var(--d) infinite alternate; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.flag-peg { position: absolute; z-index: 2; top: -10px; left: 50%; width: 14px; height: 22px; margin-left: -7px; border-radius: 3px; background: #E7B22A; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.flag-in { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; max-width: 200px; padding: 34px 12px 56px; color: var(--navy); background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%); }
.f1 .flag-in { background: #fff; } .f2 .flag-in { background: #A9C4FF; } .f3 .flag-in { background: #FF8F80; }
.flag-in .icon { width: 26px; height: 26px; color: var(--blue); }
.flag-in b { font-size: clamp(34px, 3.8vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.flag-in small { font: 700 23px/1 var(--hand); }

/* ======================================================== Testimonials
   Parent notes: tilted taped paper in three colours. */
.tst { background: #fff; }
.tst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 34px 26px; align-items: start; }
.note { position: relative; margin: 0; padding: 34px 24px 22px; border-radius: 3px; transform: rotate(var(--r)); box-shadow: 0 20px 28px -20px rgba(10, 27, 74, .55); transition: transform .3s var(--ease); }
.note.is-in:hover, .note:hover { transform: rotate(0) translateY(-4px); }
.note.n0 { background: #FFF3C8; } .note.n1 { background: #E4EDFF; } .note.n2 { background: #fff; border: 1px solid var(--line); }
.note .tape { top: -11px; }
.note.n1 .tape { background: rgba(141, 184, 255, .8); transform: translateX(-50%) rotate(5deg); }
.note::before { content: "\201C"; position: absolute; top: 14px; right: 18px; font: 800 80px/1 Georgia, serif; color: var(--gold-700); opacity: .35; pointer-events: none; }
.note blockquote { margin: 0 0 18px; font-size: 15.5px; line-height: 1.7; font-weight: 500; color: var(--navy); }
.note figcaption { display: flex; align-items: center; gap: 12px; }
.note-av { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: var(--blue) center / cover no-repeat; color: #fff; font-weight: 800; border: 3px solid #fff; box-shadow: 0 4px 8px -3px rgba(10, 27, 74, .5); }
.note figcaption b { display: block; font: 700 24px/1 var(--hand); color: var(--blue); }
.note figcaption small { display: block; font-size: 12.5px; color: var(--muted); }

/* ================================================================== Footer */
.ftr { position: relative; margin-top: 26px; padding: clamp(46px, 5vw, 70px) 0 18px; color: #CFDCFF; background-color: #071548;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 26px 26px; }
.ftr::before { content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23071548' d='M0 40 V14 L40 18 L76 9 L118 16 L160 7 L204 15 L246 10 L290 19 L334 8 L380 15 L420 9 L466 18 L508 11 L552 17 L596 6 L640 14 L684 9 L730 18 L772 10 L816 16 L860 7 L904 15 L948 10 L992 19 L1036 9 L1080 16 L1124 8 L1168 17 L1210 10 L1256 15 L1300 7 L1344 16 L1390 10 L1440 15 V40 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.ftr-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-bottom: 30px; border-bottom: 2px dashed rgba(255, 255, 255, .2); }
.ftr-hand { font: 700 clamp(40px, 4.4vw, 62px)/1 var(--hand); color: var(--gold); }
.ftr-lead { max-width: 56ch; margin: 8px 0 18px; font-size: 15px; line-height: 1.65; }
.ftr-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.ftr-stats li { padding: 10px 18px; text-align: center; border: 1.5px dashed rgba(255, 255, 255, .35); border-radius: 6px; background: rgba(255, 255, 255, .06); }
.ftr-stats b { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; color: var(--gold); }
.ftr-stats span { font-size: 12.5px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr .8fr .9fr 1.5fr; gap: 30px; padding: 32px 0 26px; }
.ftr h3 { margin: 0 0 12px; font: 700 26px/1 var(--hand); color: #fff; }
.ftr li + li { margin-top: 8px; }
.ftr a:hover { color: var(--gold); }
.ftr-brand a { display: inline-block; padding: 10px 14px; margin-bottom: 14px; background: #fff; border-radius: 4px; transform: rotate(-2deg); box-shadow: 0 16px 24px -14px #000; }
.ftr-brand a:hover { color: inherit; }
.ftr-brand img { width: 150px; height: auto; }
.ftr-brand p { max-width: 30ch; font-size: 14px; }
.ftr-social { display: flex; gap: 8px; margin-top: 14px; }
.ftr-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--blue); transition: transform .2s var(--ease), background .2s; }
.ftr-social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.ftr-social .icon { width: 16px; height: 16px; }
.ftr-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.ftr-contact .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--gold); }
.ftr-map { height: 210px; overflow: hidden; margin-bottom: 24px; border: 4px solid #fff; border-radius: 4px; transform: rotate(-.4deg); box-shadow: 0 18px 28px -18px #000; }
.ftr-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }
.ftr-top-link { display: inline-flex; align-items: center; gap: 4px; }
.ftr-top-link .up { width: 15px; height: 15px; transform: rotate(180deg); }

/* ========================================================= Albums + wall */
.gal-sub { margin: clamp(36px, 4vw, 54px) 0 24px; text-align: center; font: 700 clamp(28px, 2.6vw, 38px)/1 var(--hand); color: #fff; }
.gal-sub span { padding: 0 10px; background: linear-gradient(transparent 64%, rgba(247, 195, 49, .75) 64% 88%, transparent 88%); }
.gal-more { margin-top: 34px; text-align: center; }
.alb-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 34px 26px; padding-top: 6px; }
.alb { display: block; color: #fff; }
.alb-stack { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 14px; }
.alb-back { position: absolute; inset: 0; background: #fff; border-radius: 3px; box-shadow: 0 10px 16px -8px rgba(0, 0, 0, .55); transition: transform .35s var(--ease); }
.alb-back.b1 { transform: rotate(-5deg); } .alb-back.b2 { transform: rotate(4deg); }
.alb-cover { position: absolute; inset: 0; border: 7px solid #fff; border-radius: 3px; background: #DCE7FB center / cover no-repeat; box-shadow: 0 16px 24px -14px rgba(0, 0, 0, .7); transition: transform .35s var(--ease); }
.alb-cover .tape { top: -13px; width: 70px; height: 20px; }
.alb:hover .b1 { transform: rotate(-9deg) translateX(-8px); }
.alb:hover .b2 { transform: rotate(8deg) translateX(8px); }
.alb:hover .alb-cover { transform: translateY(-5px); }
.alb-info b { display: block; font: 700 27px/1.05 var(--hand); }
.alb-info small { font-size: 12.5px; color: #C3D4FF; }
.alb-sec { background: #fff; }
.alb-sec .alb { color: var(--navy); }
.alb-sec .alb-info small { color: var(--muted); }
.alb-sec .alb-back { box-shadow: 0 10px 16px -8px rgba(10, 27, 74, .4); border: 1px solid var(--line); }
.alb-h { margin: 0 0 26px; font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.alb-h em { font: 700 1.18em/1 var(--hand); letter-spacing: 0; color: var(--blue-500); }
.alb-view { background-color: #F8FAFF; background-image: linear-gradient(rgba(26, 86, 219, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 86, 219, .06) 1px, transparent 1px); background-size: 26px 26px; }
.masonry { column-count: 4; column-gap: 16px; }
.mas-item { position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 6px; overflow: hidden; break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 14px 22px -16px rgba(10, 27, 74, .55); cursor: zoom-in; transition: transform .3s var(--ease), box-shadow .3s; }
.mas-item:hover { transform: translateY(-4px); box-shadow: 0 22px 30px -16px rgba(10, 27, 74, .6); }
.mas-item img { width: 100%; height: auto; border-radius: 1px; }
.mas-cap { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 5px 10px 7px; background: #fff; font: 700 20px/1.1 var(--hand); color: var(--navy); text-align: left; transform: translateY(101%); transition: transform .3s var(--ease); }
.mas-item:hover .mas-cap, .mas-item:focus-visible .mas-cap { transform: none; }
@media (hover: none) { .mas-cap { transform: none; } }
.alb-view .gal-more { margin-top: 20px; }

/* ================================================================ Administration */
.lead { background: #fff; padding-bottom: 0; }
.lead-card { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 6px; background-color: #F8FAFF; background-image: linear-gradient(rgba(26, 86, 219, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 86, 219, .06) 1px, transparent 1px); background-size: 26px 26px; }
.lead-photo { position: relative; margin: 0; padding: 10px 10px 0; background: #fff; border-radius: 3px; transform: rotate(-3deg); box-shadow: 0 24px 34px -20px rgba(10, 27, 74, .6); }
.lead-photo .pol-img { aspect-ratio: 4 / 5; }
.lead-photo .pol-img.is-blank { display: grid; place-items: center; background: var(--paper); color: var(--sky); }
.lead-photo .pol-img.is-blank .icon { width: 56px; height: 56px; }
.lead-name { margin: 6px 0 12px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; color: var(--navy); }
.lead-body blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--gold); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.8; color: #2A3560; }
.team { background: #fff; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 38px 26px; padding-top: 14px; }
.badge-card { --bc: var(--gold); position: relative; padding: 38px 18px 22px; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 9px solid var(--bc); border-radius: 14px; box-shadow: 0 22px 30px -22px rgba(10, 27, 74, .55); transform: rotate(var(--r)); transition: transform .3s var(--ease); }
.badge-card:hover { transform: rotate(0) translateY(-5px); }
.badge-card.b1 { --bc: var(--blue-500); } .badge-card.b2 { --bc: #34C38F; } .badge-card.b3 { --bc: #FF7A6B; }
.badge-hole { position: absolute; top: 12px; left: 50%; width: 54px; height: 11px; margin-left: -27px; border-radius: 8px; background: #E6ECF9; box-shadow: inset 0 2px 3px rgba(10, 27, 74, .25); }
.badge-photo { display: grid; place-items: center; width: 124px; height: 124px; margin: 8px auto 14px; border: 4px solid var(--bc); border-radius: 50%; background: var(--paper) center / cover no-repeat; color: var(--sky); }
.badge-photo .icon { width: 44px; height: 44px; }
.badge-card h3 { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 800; color: var(--navy); }
.badge-role { display: inline-block; margin-top: 6px; padding: 2px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: color-mix(in srgb, var(--bc) 22%, #fff); color: var(--navy); }
.badge-bio { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

@media (max-width: 1100px) { .masonry { column-count: 3; } }
@media (max-width: 900px) {
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .lead-card { grid-template-columns: 1fr; }
    .lead-photo { max-width: 240px; margin-inline: auto; }
}
@media (max-width: 720px) { .masonry { column-count: 2; column-gap: 12px; } }
@media (max-width: 560px) { .ftr-grid { grid-template-columns: 1fr; } .masonry { column-count: 1; } .flags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .flag { animation: none; } }

/* ===================================================== Rich menu dropdowns */
.sub.is-rich { min-width: 340px; }
.sub a.has-thumb { flex-direction: row; align-items: center; gap: 12px; }
.sub-txt { display: flex; flex-direction: column; min-width: 0; }
.sub.is-rich strong { max-width: 230px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sub-thumb { flex: 0 0 58px; display: grid; place-items: center; width: 58px; height: 44px; border-radius: 8px; background: var(--paper) center / cover no-repeat; color: var(--sky); box-shadow: 0 6px 10px -6px rgba(10, 27, 74, .5); transition: transform .25s var(--ease); }
.sub-thumb .icon { width: 20px; height: 20px; }
.sub a.has-thumb:hover .sub-thumb, .sub a.has-thumb:focus-visible .sub-thumb { transform: scale(1.08) rotate(-3deg); }

/* ========================================================== Forms + Contact */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: block; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld span { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fld input, .fld select, .fld textarea { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid #D5DEF2; border-radius: 8px; background: #fff; font: inherit; font-size: 14.5px; color: var(--navy); transition: border-color .2s, box-shadow .2s; }
.fld textarea { height: auto; padding: 10px 12px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(247, 195, 49, .55); }
.fgrid + .h-btn { margin-top: 16px; }
.form-note { margin-bottom: 14px; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.form-note.is-ok { background: #DDF5EA; color: #0F6B47; }
.form-note.is-err { background: #FFE3DE; color: #A32B1F; }
.adm-visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(22px, 3.4vw, 48px); align-items: center; }
.adm-visit-left { position: relative; display: grid; gap: 22px; }
.adm-form { position: relative; padding: clamp(18px, 2.2vw, 26px); border-radius: 6px; color: var(--navy); background: #fff; box-shadow: 0 22px 30px -18px rgba(0, 0, 0, .7); transform: rotate(.5deg); }
.adm-form h4 { margin: 0 0 12px; font: 700 clamp(26px, 2.2vw, 32px)/1 var(--hand); color: var(--blue); }
.contact { background: #fff; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 4vw, 60px); align-items: start; }
.ct-notes { display: grid; gap: 16px; }
.ct-notes li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 3px; transform: rotate(var(--r)); box-shadow: 0 14px 22px -16px rgba(10, 27, 74, .55); transition: transform .3s var(--ease); }
.ct-notes li:hover { transform: rotate(0) translateX(4px); }
.ct-notes .nt0 { background: #FFF3C8; } .ct-notes .nt1 { background: #E4EDFF; } .ct-notes .nt2 { background: #DDF5EA; } .ct-notes .nt3 { background: #FFE3DE; }
.ct-notes .icon { flex: 0 0 40px; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 4px 8px -4px rgba(10, 27, 74, .5); }
.ct-notes small { display: block; font: 700 22px/1 var(--hand); color: var(--blue); }
.ct-notes a, .ct-notes b { font-size: 15px; font-weight: 600; word-break: break-word; }
.ct-notes a:hover { color: var(--blue-500); }
.ct-letter { position: relative; isolation: isolate; padding: 34px clamp(18px, 3vw, 34px) 28px; background: #fff; border-radius: 3px; box-shadow: 0 24px 34px -22px rgba(10, 27, 74, .6); }
.ct-letter::before { content: ""; position: absolute; z-index: -1; inset: -9px; border-radius: 5px; background: repeating-linear-gradient(135deg, #E5484D 0 14px, #fff 14px 22px, #1A56DB 22px 36px, #fff 36px 44px); }
.ct-letter h3 { margin: 0 0 14px; font: 700 clamp(30px, 2.6vw, 38px)/1 var(--hand); color: var(--blue); }
.ct-stamp { position: absolute; top: 16px; right: 18px; display: grid; place-items: center; width: 54px; height: 62px; border: 2px dashed var(--gold-700); background: #FFF8DA; color: var(--gold-700); transform: rotate(5deg); }
.ct-stamp .icon { width: 28px; height: 28px; fill: var(--gold); }
@media (max-width: 960px) { .adm-visit, .ct-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }

/* Contact letter, calmer: plain notebook paper with a tape strip (no striped border or stamp) */
.ct-letter { isolation: auto; padding: 38px clamp(20px, 3vw, 38px) 28px; border: 1px solid var(--line); transform: rotate(-.4deg); box-shadow: 0 26px 34px -24px rgba(10, 27, 74, .5); }
.ct-letter::before { inset: auto; top: -12px; left: 50%; right: auto; bottom: auto; z-index: 1; width: 96px; height: 24px; margin-left: -48px; border-radius: 0; background: rgba(247, 195, 49, .75); transform: rotate(-3deg);
    clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 2% 96%, 0 70%, 4% 45%, 0 20%); }
.ct-stamp { display: none; }
.ct-letter h3 { margin-bottom: 8px; }
.ct-letter .fgrid { gap: 14px 22px; }
.ct-letter .fld span { margin-bottom: 0; font: 700 21px/1.1 var(--hand); color: var(--blue); }
.ct-letter .fld input, .ct-letter .fld textarea { height: 40px; padding: 4px 2px; border: 0; border-bottom: 2px dashed #C3D1F0; border-radius: 0; background: transparent; box-shadow: none; font-size: 15px; }
.ct-letter .fld textarea { height: auto; padding: 0 2px; line-height: 32px; border-bottom: 0; background: repeating-linear-gradient(transparent 0 31px, rgba(26, 86, 219, .16) 31px 32px); }
.ct-letter .fld input:focus, .ct-letter .fld textarea:focus { border-color: var(--blue-500); border-bottom-style: solid; background-color: rgba(247, 195, 49, .14); box-shadow: none; }
.ct-letter .fld textarea:focus { background-image: repeating-linear-gradient(transparent 0 31px, rgba(26, 86, 219, .16) 31px 32px); }
.ct-letter .fld input::placeholder { color: #9AA6C8; }

/* About: head teacher's word on the left, mission & core values on the right */
.ab-lower { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ab-lower.is-one { grid-template-columns: minmax(0, 860px); }
.ab-lower .ab-head { order: -1; }

/* Programs: auto-switch progress bar (fills along the open tab, then the next level opens) */
.pgt-bar { position: absolute; left: 12px; right: 12px; bottom: 5px; display: none; height: 3px; border-radius: 3px; background: var(--pin); transform: scaleX(0); transform-origin: left; }
.pgt.is-auto .pgt-tab.is-on .pgt-bar { display: block; animation: pgbar 7s linear forwards; }
.pgt.is-paused .pgt-bar { animation-play-state: paused; }
@keyframes pgbar { to { transform: scaleX(1); } }
.pgt-card:not([hidden]) { animation: pgin .45s var(--ease); }
@keyframes pgin { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .pgt-card:not([hidden]) { animation: none; } }