/* ===================================================================
   TBD International Academy — Home page
   Loaded by index.html only, after public-blog.css. public-blog.css
   stays on this page for the admission popup (.adm-*) and its buttons;
   everything here is prefixed `hp-` so the two never collide, and the
   base overrides are scoped to body.hp.

   Light and open: white and a soft crest-blue tint alternate section by
   section, navy carries the type, red is kept for actions, gold appears
   only as small highlights.
   =================================================================== */

/* Base reset. public-blog.css loads without blocking first paint (it is only
   needed for the admission popup), so the homepage cannot lean on its reset.
   :where() keeps these at zero specificity, so the popup's own rules still win. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:where(body.hp, body.hp *, body.hp *::before, body.hp *::after) { box-sizing: border-box; margin: 0; padding: 0; }
:where(body.hp) img { display: block; max-width: 100%; height: auto; }
:where(body.hp) a { color: inherit; text-decoration: none; }
:where(body.hp) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(body.hp) ul, :where(body.hp) ol { list-style: none; }

body.hp {
    -webkit-tap-highlight-color: transparent;
    overflow-x: clip;
    --hp-navy: #1E2A5A;
    --hp-navy-700: #2A3A78;
    --hp-navy-900: #121A3B;
    --hp-red: #E23C3C;
    --hp-red-600: #C92F2F;
    --hp-red-50: #FDEEEE;
    --hp-gold: #F2B33D;
    --hp-gold-ink: #B97A08;
    --hp-gold-50: #FEF6E4;
    --hp-blue-50: #F3F6FD;
    --hp-blue-100: #E6ECFA;
    --hp-green: #1FA855;
    --hp-green-600: #178A45;
    --hp-green-50: #E7F6ED;

    --hp-white: #FFFFFF;
    --hp-ink: #101834;
    --hp-body: #4A5475;
    --hp-muted: #6E7799;
    --hp-line: #E4E8F3;

    --hp-font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --hp-gutter: clamp(20px, 5vw, 48px);
    --hp-section: clamp(72px, 12vw, 160px);
    --hp-max: 1240px;
    --hp-r-sm: 12px;
    --hp-r: 20px;
    --hp-r-lg: 32px;
    --hp-shadow-sm: 0 1px 2px rgba(18, 26, 59, 0.05), 0 2px 8px rgba(18, 26, 59, 0.04);
    --hp-shadow: 0 2px 4px rgba(18, 26, 59, 0.04), 0 16px 40px -12px rgba(18, 26, 59, 0.14);
    --hp-shadow-lg: 0 4px 8px rgba(18, 26, 59, 0.04), 0 40px 80px -24px rgba(18, 26, 59, 0.24);
    --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hp-nav: 88px;

    background: var(--hp-white);
    color: var(--hp-body);
    font-family: var(--hp-font);
    font-size: 17px;
    line-height: 1.7;
}

body.hp h1,
body.hp h2,
body.hp h3,
body.hp h4 {
    font-family: var(--hp-font);
    color: var(--hp-ink);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

body.hp [id] { scroll-margin-top: 96px; }
body.hp :focus-visible { outline: 3px solid var(--hp-gold); outline-offset: 3px; border-radius: 8px; }
body.hp ::selection { background: rgba(226, 60, 60, 0.18); }

.hp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hp-i { width: 22px; height: 22px; flex: none; display: inline-block; }

.hp-skip {
    position: absolute; left: 16px; top: -100px; z-index: 200;
    background: var(--hp-navy); color: var(--hp-white); padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.hp-skip:focus { top: 16px; }

.hp-wrap { max-width: var(--hp-max); margin-inline: auto; padding-inline: var(--hp-gutter); }
.hp-section { padding-block: var(--hp-section); }
.hp-tint { background: var(--hp-blue-50); }

.hp-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hp-red-600);
}
.hp-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hp-h2 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
.hp-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75; max-width: 60ch; }
.hp-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 7vw, 88px); }
.hp-head-center { text-align: center; justify-items: center; margin-inline: auto; max-width: 760px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.hp-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
    font-family: var(--hp-font); font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer; white-space: nowrap;
    transition: transform .35s var(--hp-ease), box-shadow .35s var(--hp-ease), background .25s, border-color .25s, color .25s;
}
.hp-btn .hp-i { width: 18px; height: 18px; transition: transform .35s var(--hp-ease); }
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn:hover .hp-arrow { transform: translateX(4px); }
.hp-btn-red { background: var(--hp-red); color: var(--hp-white); box-shadow: 0 10px 24px -10px rgba(226, 60, 60, 0.7); }
.hp-btn-red:hover { background: var(--hp-red-600); color: var(--hp-white); box-shadow: 0 16px 32px -12px rgba(226, 60, 60, 0.75); }
.hp-btn-outline { border-color: var(--hp-line); color: var(--hp-navy); background: var(--hp-white); }
.hp-btn-outline:hover { border-color: var(--hp-navy); color: var(--hp-navy); }
.hp-btn-navy { background: var(--hp-navy); color: var(--hp-white); }
.hp-btn-navy:hover { background: var(--hp-navy-700); color: var(--hp-white); }
.hp-btn-white { background: var(--hp-white); color: var(--hp-navy); }
.hp-btn-white:hover { color: var(--hp-navy); }
.hp-btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--hp-white); }
.hp-btn-ghost:hover { border-color: var(--hp-white); background: rgba(255, 255, 255, 0.08); color: var(--hp-white); }
.hp-btn-green { background: var(--hp-green); color: var(--hp-white); }
.hp-btn-green:hover { background: var(--hp-green-600); color: var(--hp-white); }
.hp-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--hp-navy); }
.hp-link .hp-i { width: 18px; height: 18px; transition: transform .35s var(--hp-ease); }
.hp-link:hover .hp-i { transform: translateX(4px); }

/* ── Navigation ──────────────────────────────────────────────────── */
/* The blur sits on a pseudo-element: backdrop-filter on the bar itself
   would make the bar the containing block for the fixed menu sheet.
   The bar keeps one height while scrolling. It is sticky, so a height
   change moves everything below it, and the browser's scroll anchoring
   then pulls the page back across the threshold, round and round. */
.hp-nav {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.hp-nav::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.hp-nav.is-scrolled { border-color: var(--hp-line); box-shadow: 0 8px 30px -18px rgba(18, 26, 59, 0.25); }
.hp-nav-bar { display: flex; align-items: center; gap: 28px; height: var(--hp-nav); }
.hp-brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.hp-brand img { width: 40px; height: auto; }
.hp-brand b { display: block; color: var(--hp-ink); font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.hp-brand small { display: block; color: var(--hp-muted); font-size: 0.76rem; font-weight: 500; line-height: 1.4; }
.hp-menu { display: flex; gap: 4px; list-style: none; }
.hp-menu a { position: relative; display: block; padding: 10px 14px; font-weight: 600; font-size: 0.96rem; color: var(--hp-body); }
.hp-menu a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--hp-red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--hp-ease);
}
.hp-menu a:hover, .hp-menu a[aria-current="page"] { color: var(--hp-ink); }
.hp-menu a:hover::after, .hp-menu a[aria-current="page"]::after { transform: scaleX(1); }
.hp-nav-cta { display: flex; align-items: center; gap: 12px; }
.hp-nav-cta .hp-btn { min-height: 48px; padding: 0 22px; font-size: 0.95rem; }
.hp-burger {
    display: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--hp-line);
    background: var(--hp-white); color: var(--hp-ink); place-items: center;
}
/* The menu sheet is fixed to the screen from the bottom edge of the bar
   (js/home.js measures it into --hp-drawer-top) down to the bottom, so it
   is in view however far the page was scrolled when it opened. */
.hp-drawer {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--hp-drawer-top, 64px);
    overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
    background: var(--hp-white); border-top: 1px solid var(--hp-line);
    padding: 8px var(--hp-gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    animation: hp-sheet .4s var(--hp-ease) both;
}
@keyframes hp-sheet { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.hp-drawer-links li { opacity: 0; animation: hp-up .5s var(--hp-ease) forwards; }
.hp-drawer-links li:nth-child(2) { animation-delay: 40ms; }
.hp-drawer-links li:nth-child(3) { animation-delay: 80ms; }
.hp-drawer-links li:nth-child(4) { animation-delay: 120ms; }
.hp-drawer-links li:nth-child(5) { animation-delay: 160ms; }
.hp-drawer-links a {
    display: flex; justify-content: space-between; align-items: center; min-height: 60px;
    border-bottom: 1px solid var(--hp-line); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--hp-ink);
}
.hp-drawer-links a .hp-i { width: 20px; height: 20px; color: var(--hp-muted); }
.hp-drawer-links a[aria-current="page"] { color: var(--hp-red-600); }
.hp-drawer-actions { display: grid; gap: 12px; margin-top: 28px; }
.hp-drawer-actions .hp-btn { width: 100%; }
.hp-drawer-meta { display: grid; gap: 4px; margin-top: 28px; padding: 18px 20px; border-radius: var(--hp-r); background: var(--hp-blue-50); font-size: 0.95rem; }
.hp-drawer-meta a { display: flex; gap: 12px; align-items: center; min-height: 44px; color: var(--hp-ink); font-weight: 600; }
.hp-drawer-meta .hp-i { width: 20px; height: 20px; color: var(--hp-navy); }
/* Page lock for the menu and the photo viewer. Only <html> is locked:
   hiding overflow on <body> as well turns <body> into the scroll container,
   and the sticky bar then sticks to the top of the document instead of the
   screen, taking the open menu off-screen with it. Overflow alone does not
   stop a touch drag on every phone, so drags that start on the bar are
   refused too, and the overlays contain their own scrolling. */
html.hp-locked { overflow: hidden; }
html.hp-locked .hp-nav { touch-action: none; }
.hp-burger .hp-i-close, .hp-burger[aria-expanded="true"] .hp-i-open { display: none; }
.hp-burger[aria-expanded="true"] .hp-i-close { display: inline-block; }
@media (max-width: 1020px) {
    .hp-menu, .hp-nav-cta .hp-portal { display: none; }
    .hp-burger { display: inline-grid; }
}
@media (max-width: 460px) {
    .hp-brand small, .hp-nav-cta .hp-btn-red { display: none; }
    .hp-nav-bar { height: 76px; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hp-hero {
    position: relative; overflow: hidden;
    padding-block: clamp(56px, 8vw, 104px) clamp(150px, 15vw, 200px);
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(42, 58, 120, 0.09), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(226, 60, 60, 0.06), transparent 60%),
        linear-gradient(180deg, var(--hp-white), var(--hp-blue-50));
}
.hp-hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(48px, 7vw, 104px); align-items: center; }
.hp-hero-copy { display: grid; gap: 28px; min-width: 0; }
.hp-pill {
    justify-self: start; display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--hp-white); border: 1px solid var(--hp-line);
    font-size: 0.9rem; font-weight: 600; color: var(--hp-ink); box-shadow: var(--hp-shadow-sm);
    transition: border-color .3s, box-shadow .3s var(--hp-ease);
}
.hp-pill:hover { border-color: var(--hp-navy); box-shadow: var(--hp-shadow); }
.hp-pill b { background: var(--hp-red-50); color: var(--hp-red-600); padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.04em; }
.hp-pill .hp-i { width: 16px; height: 16px; color: var(--hp-muted); }
.hp-live { width: 8px; height: 8px; border-radius: 50%; background: var(--hp-green); position: relative; }
.hp-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--hp-green); animation: hp-ping 2s infinite; }
@keyframes hp-ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hp-hero h1 { font-size: clamp(2.2rem, 6.2vw, 5rem); line-height: 1.05; letter-spacing: -0.035em; }
.hp-hl { position: relative; color: var(--hp-navy); white-space: nowrap; }
body.hp .hp-hl svg { position: absolute; left: -2%; bottom: -0.2em; width: 104%; height: 0.42em; max-width: none; overflow: visible; }
.hp-hl path {
    fill: none; stroke: var(--hp-red); stroke-width: 7; stroke-linecap: round;
    stroke-dasharray: 420; stroke-dashoffset: 420; animation: hp-draw 1.1s 0.9s var(--hp-ease) forwards;
}
@keyframes hp-draw { to { stroke-dashoffset: 0; } }
.hp-hero .hp-lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.hp-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hp-reassure { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 0.95rem; }
.hp-reassure span { display: inline-flex; align-items: center; gap: 8px; }
.hp-reassure .hp-i { width: 20px; height: 20px; color: var(--hp-green); }

.hp-art { position: relative; min-width: 0; padding: 0 0 56px 56px; isolation: isolate; }
.hp-art-main {
    border-radius: 200px 200px var(--hp-r-lg) var(--hp-r-lg); overflow: hidden; aspect-ratio: 4 / 5;
    box-shadow: var(--hp-shadow-lg); background: var(--hp-blue-100);
    animation: hp-unveil 1.4s 0.2s var(--hp-ease) both;
}
.hp-art-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: hp-settle 1.8s 0.2s var(--hp-ease) both; }
.hp-art-second {
    position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border-radius: var(--hp-r);
    overflow: hidden; border: 6px solid var(--hp-white); box-shadow: var(--hp-shadow-lg);
}
.hp-art-second img { width: 100%; height: 100%; object-fit: cover; }
.hp-dots {
    position: absolute; right: -28px; top: 18%; width: 140px; height: 180px; z-index: -1;
    background-image: radial-gradient(var(--hp-navy) 1.6px, transparent 1.6px); background-size: 18px 18px; opacity: 0.16;
}
.hp-ring { position: absolute; left: 12%; top: -24px; width: 96px; height: 96px; border-radius: 50%; border: 14px solid var(--hp-red-50); z-index: -1; }
.hp-float {
    position: absolute; display: flex; align-items: center; gap: 14px;
    background: var(--hp-white); border-radius: 18px; padding: 14px 20px 14px 14px; box-shadow: var(--hp-shadow-lg);
    font-size: 0.86rem; line-height: 1.35;
}
.hp-float strong { display: block; color: var(--hp-ink); font-size: 0.95rem; }
.hp-float .hp-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.hp-float-1 { right: -18px; top: 14%; }
.hp-float-1 .hp-ic { background: var(--hp-green-50); color: var(--hp-green); }
.hp-float-2 { right: 6%; bottom: 10px; }
.hp-float-2 .hp-ic { background: var(--hp-gold-50); color: var(--hp-gold-ink); }

/* Entrance on load. */
.hp-enter { animation: hp-up 1s var(--hp-ease) both; animation-delay: var(--d, 0ms); }
.hp-float.hp-enter { animation: hp-up 1s var(--hp-ease) both, hp-bob 6s ease-in-out infinite; animation-delay: var(--d, 0ms), 2s; }
/* The headline and its paragraph are the largest paint on a phone, so they
   rise without fading: an element at opacity 0 does not count as painted. */
.hp-hero h1.hp-enter, .hp-hero .hp-lead.hp-enter { animation-name: hp-rise; }
@keyframes hp-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hp-rise { from { transform: translateY(20px); } to { transform: none; } }
@keyframes hp-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes hp-unveil {
    from { clip-path: inset(100% 0 0 0 round 200px 200px 32px 32px); }
    to { clip-path: inset(0 0 0 0 round 200px 200px 32px 32px); }
}
@keyframes hp-settle { from { transform: scale(1.18); } to { transform: scale(1); } }

@media (max-width: 960px) {
    .hp-hero-grid { grid-template-columns: 1fr; }
    .hp-art { max-width: 520px; width: 100%; justify-self: center; padding: 0 0 40px 32px; }
    .hp-float-1 { right: -6px; }
}
@media (max-width: 520px) {
    .hp-float { font-size: 0.78rem; padding: 10px 14px 10px 10px; }
    .hp-float .hp-ic { width: 36px; height: 36px; }
    .hp-float-2 { display: none; }
}

/* ── Key figures ─────────────────────────────────────────────────── */
.hp-stats-wrap { position: relative; z-index: 2; margin-top: clamp(-120px, -10vw, -88px); }
.hp-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--hp-white); border-radius: var(--hp-r-lg); box-shadow: var(--hp-shadow-lg); border: 1px solid var(--hp-line);
}
.hp-stat { display: flex; gap: 18px; align-items: flex-start; padding: clamp(28px, 3vw, 40px); }
.hp-stat + .hp-stat { border-left: 1px solid var(--hp-line); }
.hp-stat .hp-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--hp-blue-50); color: var(--hp-navy); }
.hp-stat-num { display: block; white-space: nowrap; font-size: clamp(1.6rem, 2.2vw, 2.1rem); font-weight: 800; color: var(--hp-ink); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hp-stat-label { display: block; font-size: 0.93rem; line-height: 1.5; margin-top: 4px; }
@media (max-width: 1020px) {
    .hp-stats { grid-template-columns: 1fr 1fr; }
    .hp-stat:nth-child(3) { border-left: 0; }
    .hp-stat:nth-child(n+3) { border-top: 1px solid var(--hp-line); }
}
@media (max-width: 560px) {
    .hp-stats { grid-template-columns: 1fr; }
    .hp-stat + .hp-stat { border-left: 0; border-top: 1px solid var(--hp-line); }
}

/* ── Why TBD ─────────────────────────────────────────────────────── */
.hp-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hp-feature {
    background: var(--hp-white); border: 1px solid var(--hp-line); border-radius: var(--hp-r); padding: clamp(32px, 3.4vw, 44px);
    display: grid; gap: 16px; align-content: start;
    transition: transform .5s var(--hp-ease), box-shadow .5s var(--hp-ease), border-color .3s;
}
.hp-feature:hover { transform: translateY(-8px); box-shadow: var(--hp-shadow); border-color: transparent; }
.hp-feature .hp-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 8px; transition: transform .5s var(--hp-ease); }
.hp-feature:hover .hp-ic { transform: rotate(-6deg) scale(1.06); }
.hp-feature h3 { font-size: 1.32rem; }
.hp-ic-navy { background: var(--hp-blue-100); color: var(--hp-navy); }
.hp-ic-red { background: var(--hp-red-50); color: var(--hp-red); }
.hp-ic-gold { background: var(--hp-gold-50); color: var(--hp-gold-ink); }
@media (max-width: 900px) { .hp-why { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ── Classes ─────────────────────────────────────────────────────── */
.hp-journey { position: relative; height: 4px; border-radius: 4px; background: var(--hp-blue-100); margin: 0 12.5%; }
.hp-journey-fill {
    position: absolute; inset: 0; border-radius: 4px;
    background: linear-gradient(90deg, var(--hp-gold), var(--hp-green), var(--hp-navy), var(--hp-red));
    transform-origin: left; transition: transform 1.8s var(--hp-ease) .2s;
}
.hp-node {
    position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
    background: var(--hp-white); border: 4px solid var(--c, var(--hp-navy)); transition: transform .5s var(--hp-ease) .6s;
}
.is-pre .hp-journey-fill { transform: scaleX(0); }
.is-pre .hp-node { transform: scale(0); }
.hp-journey-labels { display: flex; justify-content: space-between; margin: 18px 9% 40px; font-size: 0.86rem; font-weight: 600; color: var(--hp-muted); }
.hp-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hp-level {
    position: relative; background: var(--hp-white); border-radius: var(--hp-r); padding: 36px 30px 32px;
    border: 1px solid var(--hp-line); display: grid; gap: 14px; align-content: start; overflow: hidden;
    transition: transform .5s var(--hp-ease), box-shadow .5s var(--hp-ease);
}
.hp-level::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c, var(--hp-navy));
    transform: scaleX(0.25); transform-origin: left; transition: transform .6s var(--hp-ease);
}
.hp-level:hover { transform: translateY(-8px); box-shadow: var(--hp-shadow); }
.hp-level:hover::before { transform: scaleX(1); }
.hp-age { justify-self: start; font-size: 0.8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--hp-blue-50); color: var(--hp-navy); }
.hp-level h3 { font-size: 1.4rem; }
.hp-level-classes { font-size: 0.92rem; color: var(--hp-muted); margin-top: -6px; }
.hp-ticks { list-style: none; margin: 6px 0 8px; display: grid; gap: 12px; font-size: 0.96rem; line-height: 1.55; }
.hp-ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.hp-ticks .hp-i { width: 20px; height: 20px; color: var(--hp-green); margin-top: 2px; }
@media (max-width: 1100px) { .hp-levels { grid-template-columns: 1fr 1fr; } .hp-journey-block { display: none; } }
@media (max-width: 620px) { .hp-levels { grid-template-columns: 1fr; } }

/* ── Parent portal ───────────────────────────────────────────────── */
.hp-portal { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(56px, 8vw, 120px); align-items: center; }
.hp-phone-stage { position: relative; display: grid; place-items: center; padding-block: 24px; }
.hp-phone-stage::before {
    content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, var(--hp-blue-100), transparent 70%);
}
.hp-phone { position: relative; width: min(100%, 330px); border-radius: 46px; padding: 11px; background: var(--hp-navy-900); box-shadow: var(--hp-shadow-lg); }
.hp-screen { border-radius: 36px; overflow: hidden; background: var(--hp-blue-50); color: var(--hp-ink); font-size: 13px; line-height: 1.45; }
.hp-screen-top { background: linear-gradient(160deg, var(--hp-navy-700), var(--hp-navy)); color: var(--hp-white); padding: 28px 20px 22px; }
.hp-who { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.hp-who small { display: block; opacity: 0.7; font-weight: 500; font-size: 11px; }
.hp-av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; font-weight: 800; }
body.hp .hp-screen-top h3 { color: var(--hp-white); font-size: 19px; margin-top: 18px; letter-spacing: -0.01em; }
.hp-screen-body { padding: 14px; display: grid; gap: 10px; }
.hp-sc { background: var(--hp-white); border-radius: 16px; padding: 14px; box-shadow: var(--hp-shadow-sm); }
.hp-sc small { color: var(--hp-muted); font-size: 11px; display: block; }
.hp-avg { display: flex; justify-content: space-between; align-items: center; }
.hp-avg b { font-size: 30px; font-weight: 800; color: var(--hp-navy); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hp-tag-ok { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--hp-green-50); color: var(--hp-green-600); }
.hp-rows { display: grid; gap: 10px; }
.hp-row { display: grid; grid-template-columns: 1fr 72px 24px; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.hp-row b { text-align: right; }
.hp-bar { height: 6px; border-radius: 6px; background: var(--hp-blue-100); overflow: hidden; }
.hp-bar span {
    display: block; height: 100%; width: var(--w); border-radius: 6px;
    background: linear-gradient(90deg, var(--hp-navy-700), var(--hp-navy));
    transform-origin: left; transition: transform 1.2s var(--hp-ease); transition-delay: var(--bd, 0ms);
}
.is-pre .hp-bar span { transform: scaleX(0); }
.hp-remark { font-size: 12.5px; color: var(--hp-body); font-style: italic; }
.hp-demo { text-align: center; font-size: 10.5px; color: var(--hp-muted); padding: 2px 0 8px; }
.hp-pfeats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; margin: 48px 0; }
.hp-pfeat { display: grid; gap: 10px; align-content: start; }
.hp-pfeat .hp-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--hp-blue-50); color: var(--hp-navy); }
body.hp .hp-pfeat h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
.hp-pfeat p { font-size: 0.96rem; line-height: 1.6; }
@media (max-width: 960px) { .hp-portal { grid-template-columns: 1fr; } .hp-phone-stage { order: 2; } }
@media (max-width: 520px) { .hp-pfeats { grid-template-columns: 1fr; } }

/* ── Gallery ─────────────────────────────────────────────────────── */
.hp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 18vw, 250px); gap: 20px; }
.hp-shot {
    position: relative; margin: 0; padding: 0; border: 0; border-radius: var(--hp-r); overflow: hidden;
    cursor: zoom-in; background: var(--hp-blue-100); display: block; width: 100%; height: 100%;
}
.hp-shot picture, .hp-shot img { width: 100%; height: 100%; }
.hp-shot img { object-fit: cover; transition: transform 1.2s var(--hp-ease); }
.hp-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18, 26, 59, 0.65)); }
.hp-shot-cap {
    position: absolute; left: 20px; bottom: 16px; z-index: 1; color: var(--hp-white);
    font-weight: 700; font-size: 0.98rem; text-align: left; transition: transform .5s var(--hp-ease);
}
.hp-shot:hover img { transform: scale(1.07); }
.hp-shot:hover .hp-shot-cap { transform: translateY(-4px); }
.hp-g1 { grid-column: span 2; grid-row: span 2; }
.hp-g4, .hp-g7 { grid-column: span 2; }
@media (max-width: 900px) { .hp-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 14px; } }
@media (max-width: 480px) { .hp-gallery { grid-auto-rows: 150px; } .hp-shot-cap { left: 14px; bottom: 12px; font-size: 0.86rem; } }

.hp-lightbox {
    position: fixed; inset: 0; z-index: 1100; background: rgba(12, 17, 38, 0.92);
    display: grid; place-items: center; padding: 24px; animation: hp-fade .3s ease both;
    touch-action: none; overscroll-behavior: contain;
}
.hp-lightbox[hidden] { display: none; }
@keyframes hp-fade { from { opacity: 0; } }
.hp-lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.hp-lightbox img { max-height: 78vh; width: auto; border-radius: var(--hp-r-sm); animation: hp-up .5s var(--hp-ease) both; }
.hp-lightbox figcaption { color: var(--hp-white); font-weight: 600; }
.hp-lb-btn {
    position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, 0.12); color: var(--hp-white); display: grid; place-items: center; transition: background .2s;
}
.hp-lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.hp-lb-close { top: 20px; right: 20px; }
.hp-lb-prev { left: 20px; }
.hp-lb-next { right: 20px; }
@media (max-width: 600px) { .hp-lb-prev, .hp-lb-next { top: auto; bottom: 24px; } }

/* ── Proprietor ──────────────────────────────────────────────────── */
.hp-leader { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(56px, 8vw, 120px); align-items: center; }
.hp-portrait { position: relative; margin: 0; padding: 0 28px 28px 0; }
.hp-portrait::before { content: ""; position: absolute; inset: 28px 0 0 28px; border-radius: var(--hp-r-lg); background: var(--hp-red-50); }
.hp-portrait img { position: relative; border-radius: var(--hp-r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--hp-shadow); }
.hp-quote-mark { display: block; width: 56px; height: 56px; color: var(--hp-red); margin-top: 28px; }
.hp-quote { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; font-weight: 700; color: var(--hp-ink); letter-spacing: -0.02em; margin: 20px 0 32px; text-wrap: balance; }
.hp-sign { padding-top: 28px; border-top: 1px solid var(--hp-line); }
.hp-sign b { display: block; color: var(--hp-ink); font-size: 1.08rem; }
.hp-sign small { font-size: 0.92rem; color: var(--hp-muted); }
.hp-leader-note { margin-top: 28px; font-size: 1.02rem; }
@media (max-width: 900px) { .hp-leader { grid-template-columns: 1fr; } .hp-portrait { max-width: 420px; } }

/* ── Admissions ──────────────────────────────────────────────────── */
.hp-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; }
.hp-steps::before {
    content: ""; position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--hp-muted) 0 8px, transparent 8px 16px); opacity: 0.35;
}
.hp-step { position: relative; text-align: center; display: grid; justify-items: center; align-content: start; gap: 14px; }
.hp-step-n {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: var(--hp-white); border: 2px solid var(--hp-line); color: var(--hp-navy); font-weight: 800; font-size: 1.3rem;
    box-shadow: var(--hp-shadow-sm);
    transition: background .5s var(--hp-ease), color .5s, border-color .5s, transform .5s var(--hp-ease);
}
.hp-step:hover .hp-step-n { background: var(--hp-navy); color: var(--hp-white); border-color: var(--hp-navy); transform: scale(1.08); }
.hp-step h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.hp-step p { font-size: 0.96rem; line-height: 1.6; max-width: 26ch; }
@media (max-width: 900px) {
    .hp-steps { grid-template-columns: 1fr; gap: 0; }
    .hp-steps::before { display: none; }
    .hp-step { grid-template-columns: 64px 1fr; text-align: left; justify-items: start; column-gap: 20px; row-gap: 4px; padding-bottom: 28px; }
    .hp-step-n { grid-row: span 2; }
    .hp-step p { max-width: none; }
}
.hp-visit {
    margin-top: clamp(64px, 8vw, 96px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
    background: var(--hp-white); box-shadow: var(--hp-shadow); border-radius: var(--hp-r-lg); padding: clamp(32px, 5vw, 64px);
}
.hp-visit h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.hp-visit dl { display: grid; gap: 22px; }
.hp-visit dl > div { display: flex; gap: 16px; align-items: flex-start; }
.hp-visit dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hp-muted); }
.hp-visit dd { margin: 2px 0 0; color: var(--hp-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-visit dd a:hover { color: var(--hp-red-600); }
.hp-visit .hp-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--hp-blue-50); color: var(--hp-navy); display: grid; place-items: center; flex: none; }
.hp-visit .hp-actions { margin-top: 32px; }
@media (max-width: 900px) { .hp-visit { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.hp-faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 7vw, 104px); align-items: start; }
.hp-faq-side { display: grid; gap: 20px; }
.hp-help {
    margin-top: 16px; display: flex; gap: 16px; align-items: center; background: var(--hp-blue-50);
    border-radius: var(--hp-r); padding: 22px; transition: transform .4s var(--hp-ease), box-shadow .4s var(--hp-ease);
}
.hp-help:hover { transform: translateY(-3px); box-shadow: var(--hp-shadow); }
.hp-help .hp-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--hp-green); color: var(--hp-white); display: grid; place-items: center; flex: none; }
.hp-help b { display: block; color: var(--hp-ink); }
.hp-qa { background: var(--hp-white); border: 1px solid var(--hp-line); border-radius: var(--hp-r); margin-bottom: 16px; transition: box-shadow .4s var(--hp-ease), border-color .3s; }
.hp-qa.is-open { box-shadow: var(--hp-shadow); border-color: transparent; }
.hp-qa-btn {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 28px;
    text-align: left; font-weight: 700; font-size: 1.06rem; color: var(--hp-ink);
}
.hp-plus {
    width: 36px; height: 36px; border-radius: 50%; background: var(--hp-blue-50); display: grid; place-items: center; flex: none;
    color: var(--hp-navy); transition: transform .45s var(--hp-ease), background .3s, color .3s;
}
.hp-plus .hp-i { width: 18px; height: 18px; }
.hp-qa.is-open .hp-plus { transform: rotate(135deg); background: var(--hp-red); color: var(--hp-white); }
.hp-qa-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--hp-ease); }
.hp-qa.is-open .hp-qa-body { grid-template-rows: 1fr; }
.hp-qa-body > div { overflow: hidden; }
.hp-qa-body p { padding: 0 28px 26px; max-width: 62ch; }
@media (max-width: 900px) { .hp-faq { grid-template-columns: 1fr; } }

/* ── Closing call to action ──────────────────────────────────────── */
.hp-cta {
    position: relative; overflow: hidden; border-radius: var(--hp-r-lg);
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(226, 60, 60, 0.32), transparent 60%),
        linear-gradient(135deg, var(--hp-navy-700), var(--hp-navy-900));
    color: rgba(255, 255, 255, 0.8); padding: clamp(56px, 8vw, 104px) clamp(28px, 6vw, 88px);
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.hp-cta > div { position: relative; }
body.hp .hp-cta h2 { color: var(--hp-white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.hp-cta .hp-lead { color: rgba(255, 255, 255, 0.8); }
.hp-cta .hp-actions { justify-content: flex-end; }
.hp-cta-crest { position: absolute; right: -40px; bottom: -70px; width: 300px; opacity: 0.07; pointer-events: none; }
@media (max-width: 900px) { .hp-cta { grid-template-columns: 1fr; } .hp-cta .hp-actions { justify-content: flex-start; } }

/* ── Footer ──────────────────────────────────────────────────────── */
.hp-footer { background: var(--hp-navy-900); color: rgba(255, 255, 255, 0.7); padding-block: 96px 40px; margin-top: var(--hp-section); font-size: 0.96rem; }
.hp-foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 56px; }
body.hp .hp-foot h2 { color: var(--hp-white); font-size: 0.95rem; margin-bottom: 22px; letter-spacing: 0; }
.hp-foot ul { list-style: none; display: grid; gap: 14px; }
.hp-foot a:hover { color: var(--hp-white); }
.hp-foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.hp-foot-brand img { width: 48px; background: var(--hp-white); border-radius: 12px; padding: 6px; }
.hp-foot-brand b { color: var(--hp-white); font-size: 1.1rem; display: block; }
.hp-houses { display: flex; gap: 6px; margin-top: 24px; }
.hp-houses i { width: 28px; height: 6px; border-radius: 6px; }
.hp-social { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--hp-white); font-weight: 600; }
.hp-social .hp-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--hp-green); display: grid; place-items: center; }
.hp-foot-bottom {
    margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.88rem;
}
@media (max-width: 960px) { .hp-foot { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px) { .hp-foot { grid-template-columns: 1fr; } }

/* ── Floating UI ─────────────────────────────────────────────────── */
.hp-mbar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--hp-line); transform: translateY(110%); transition: transform .5s var(--hp-ease);
}
.hp-mbar.is-shown { transform: none; }
.hp-mbar[hidden] { display: none; }
.hp-mbar .hp-btn { min-height: 50px; padding: 0 12px; font-size: 0.95rem; }
@media (max-width: 760px) { .hp-mbar { display: grid; } .hp-footer { padding-bottom: 110px; } }

.hp-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 55; width: 52px; height: 52px; border-radius: 50%;
    background: var(--hp-navy); color: var(--hp-white); display: grid; place-items: center; box-shadow: var(--hp-shadow);
    opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .4s var(--hp-ease);
}
.hp-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 760px) { .hp-top { display: none; } }

/* ── Admission notice (built by js/admission-popup.js) ───────────────
   A bottom sheet on phones, a centred card from 560px. One photo, one
   message, two actions. */
body.modal-open { overflow: hidden; }
.adm-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: end center; }
.adm-modal[hidden] { display: none; }
.adm-modal:not(.is-open) { pointer-events: none; }
.adm-backdrop {
    position: absolute; inset: 0; background: rgba(12, 17, 38, 0.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .4s var(--hp-ease);
}
.adm-modal.is-open .adm-backdrop { opacity: 1; }
.adm-dialog {
    position: relative; width: 100%; max-height: 92vh; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--hp-white); color: var(--hp-body); border-radius: 28px 28px 0 0;
    box-shadow: 0 -24px 60px rgba(12, 17, 38, 0.3);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%); transition: transform .55s cubic-bezier(0.32, 0.72, 0, 1);
}
.adm-modal.is-open .adm-dialog { transform: none; }
/* The dialog takes focus when it opens so the keyboard lands inside it; that
   should not draw the page's focus ring around the whole sheet. */
body.hp .adm-dialog:focus, body.hp .adm-dialog:focus-visible { outline: none; }
.adm-i { width: 20px; height: 20px; flex: none; display: inline-block; }

.adm-handle {
    position: absolute; top: 8px; left: 50%; z-index: 2; width: 40px; height: 5px; margin-left: -20px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.75);
}
.adm-photo { position: relative; height: 136px; overflow: hidden; background: var(--hp-navy); }
.adm-photo picture, .adm-photo img { width: 100%; height: 100%; }
.adm-photo img { object-fit: cover; object-position: 50% 30%; }
.adm-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18, 26, 59, 0.15) 0%, rgba(18, 26, 59, 0.2) 40%, rgba(18, 26, 59, 0.88) 100%);
}
.adm-photo-bar {
    position: absolute; left: 20px; right: 20px; bottom: 14px; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--hp-white);
}
.adm-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.88rem; line-height: 1.25; min-width: 0; }
.adm-brand img { width: 32px; height: 32px; padding: 4px; border-radius: 10px; background: var(--hp-white); flex: none; }
.adm-session {
    display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 0.78rem; font-weight: 700;
}
.adm-live { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3); }
.adm-close {
    position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--hp-ink);
    box-shadow: 0 4px 14px rgba(12, 17, 38, 0.2); transition: transform .3s var(--hp-ease), background .2s;
}
.adm-close .adm-i { width: 18px; height: 18px; }
.adm-close:hover { transform: rotate(90deg); background: var(--hp-white); }

.adm-body { padding: 24px 22px 12px; }
.adm-kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hp-red-600); }
body.hp .adm-title { font-size: clamp(1.45rem, 6vw, 1.75rem); margin: 8px 0 10px; letter-spacing: -0.025em; }
.adm-lead { font-size: 0.98rem; line-height: 1.6; }
.adm-levels { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.adm-levels li {
    padding: 7px 13px; border-radius: 999px; background: var(--hp-blue-50); border: 1px solid var(--hp-blue-100);
    color: var(--hp-navy); font-size: 0.82rem; font-weight: 600;
}
.adm-points { display: grid; gap: 10px; font-size: 0.94rem; color: var(--hp-ink); }
.adm-points li { display: flex; align-items: center; gap: 12px; }
.adm-points .adm-i { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--hp-green-50); color: var(--hp-green-600); }
.adm-actions { display: grid; gap: 10px; margin-top: 24px; }
.adm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
    border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 1rem;
    transition: transform .3s var(--hp-ease), background .2s, box-shadow .3s var(--hp-ease);
}
.adm-btn .adm-i { width: 18px; height: 18px; }
.adm-btn-primary { background: var(--hp-red); color: var(--hp-white); box-shadow: 0 10px 24px -10px rgba(226, 60, 60, 0.7); }
.adm-btn-primary:hover { background: var(--hp-red-600); color: var(--hp-white); }
.adm-btn-primary .adm-i { transition: transform .3s var(--hp-ease); }
.adm-btn-primary:hover .adm-i { transform: translateX(4px); }
.adm-btn-wa { border-color: var(--hp-green-50); background: var(--hp-green-50); color: var(--hp-green-600); }
.adm-btn-wa:hover { border-color: var(--hp-green); color: var(--hp-green-600); }
.adm-btn:active { transform: scale(0.97); }
.adm-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.84rem; color: var(--hp-muted); }
.adm-foot .adm-i { width: 16px; height: 16px; }
.adm-later {
    display: block; width: 100%; min-height: 48px; margin-top: 4px;
    color: var(--hp-muted); font-size: 0.94rem; font-weight: 600;
}
.adm-later:hover { color: var(--hp-ink); }

/* Contents arrive just behind the sheet. */
.adm-modal.is-open .adm-body > * { animation: hp-up .55s var(--hp-ease) both; }
.adm-modal.is-open .adm-body > :nth-child(2) { animation-delay: 60ms; }
.adm-modal.is-open .adm-body > :nth-child(3) { animation-delay: 110ms; }
.adm-modal.is-open .adm-body > :nth-child(4) { animation-delay: 160ms; }
.adm-modal.is-open .adm-body > :nth-child(5) { animation-delay: 210ms; }
.adm-modal.is-open .adm-body > :nth-child(n+6) { animation-delay: 260ms; }

@media (min-width: 560px) {
    .adm-modal { place-items: center; padding: 24px; }
    .adm-dialog {
        max-width: 480px; border-radius: 28px; box-shadow: 0 40px 100px -20px rgba(12, 17, 38, 0.5);
        opacity: 0; transform: translateY(24px) scale(0.97);
        transition: transform .5s var(--hp-ease), opacity .35s var(--hp-ease);
    }
    .adm-modal.is-open .adm-dialog { opacity: 1; transform: none; }
    .adm-handle { display: none; }
    .adm-photo { height: 188px; }
    .adm-body { padding: 28px 32px 16px; }
    .adm-actions { grid-template-columns: 1fr 1fr; }
    .adm-btn { padding: 0 16px; }
}

/* ── Carousel dots (classes on phones; built by js/home.js) ───────── */
.hp-dots-nav { display: none; justify-content: center; gap: 8px; margin-top: 20px; }
.hp-dots-nav button { width: 28px; height: 28px; display: grid; place-items: center; }
.hp-dots-nav button::before {
    content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--hp-line);
    transition: width .35s var(--hp-ease), background .3s;
}
.hp-dots-nav button[aria-current="true"]::before { width: 24px; background: var(--hp-navy); }

@media (min-width: 1021px) { .hp-drawer { display: none; } }

/* ── Phones ──────────────────────────────────────────────────────────
   One block for everything under 600px, so the phone layout reads in
   one place. Desktop rules above stay untouched. */
@media (max-width: 600px) {
    body.hp { font-size: 16px; line-height: 1.65; }
    .hp-h2 { font-size: clamp(1.75rem, 7.4vw, 2.1rem); }
    .hp-lead { font-size: 1.02rem; line-height: 1.7; }
    .hp-head { gap: 14px; }
    .hp-btn { min-height: 52px; padding: 0 22px; }
    .hp-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .hp-actions .hp-btn { width: 100%; }

    /* Bar */
    .hp-nav-bar { height: 64px; gap: 12px; }
    .hp-brand { gap: 10px; }
    .hp-brand img { width: 34px; }
    .hp-brand b { font-size: 0.98rem; }
    /* Apply is already in the hero, the menu and the bottom bar; dropping it
       here gives the school's name a single line. */
    .hp-nav-cta .hp-btn-red { display: none; }
    .hp-burger { width: 44px; height: 44px; }

    /* Hero */
    .hp-hero { padding-block: 28px 112px; }
    .hp-hero-copy { gap: 20px; }
    .hp-pill { font-size: 0.84rem; }
    .hp-hero h1 { font-size: clamp(2.15rem, 10.4vw, 2.6rem); }
    .hp-reassure { gap: 8px 18px; font-size: 0.88rem; }
    .hp-reassure .hp-i { width: 18px; height: 18px; }
    .hp-hero-grid { gap: 40px; }
    .hp-art { max-width: 360px; padding: 0 0 28px 24px; }
    .hp-art-second { width: 44%; border-width: 4px; border-radius: 14px; }
    .hp-ring { width: 64px; height: 64px; border-width: 10px; top: -14px; }
    .hp-dots { display: none; }
    .hp-float-1 { right: -4px; top: 10%; }

    /* Key figures: two by two */
    .hp-stats { grid-template-columns: 1fr 1fr; border-radius: 24px; }
    .hp-stat { flex-direction: column; gap: 10px; padding: 20px 18px; }
    .hp-stat + .hp-stat { border-top: 0; border-left: 0; }
    .hp-stat:nth-child(even) { border-left: 1px solid var(--hp-line); }
    .hp-stat:nth-child(n+3) { border-top: 1px solid var(--hp-line); }
    .hp-stat .hp-ic { width: 40px; height: 40px; border-radius: 12px; }
    .hp-stat .hp-ic .hp-i { width: 20px; height: 20px; }
    .hp-stat-num { font-size: 1.45rem; }
    .hp-stat-label { font-size: 0.82rem; line-height: 1.4; }

    /* Why TBD: icon beside text */
    .hp-why { gap: 14px; }
    .hp-feature { grid-template-columns: 52px 1fr; gap: 4px 16px; padding: 22px 20px; border-radius: 18px; }
    .hp-feature .hp-ic { width: 52px; height: 52px; border-radius: 16px; margin: 0; grid-row: span 2; }
    .hp-feature h3 { font-size: 1.1rem; align-self: center; }
    .hp-feature p { font-size: 0.95rem; line-height: 1.6; }

    /* Classes: a swipeable row with the next card peeking in */
    .hp-levels {
        display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin-inline: calc(var(--hp-gutter) * -1); padding: 4px var(--hp-gutter) 12px;
        scroll-padding-inline: var(--hp-gutter); scrollbar-width: none;
    }
    .hp-levels::-webkit-scrollbar { display: none; }
    .hp-level { flex: 0 0 84%; scroll-snap-align: start; padding: 28px 24px 26px; }
    .hp-dots-nav { display: flex; }

    /* Parent portal */
    .hp-pfeats { grid-template-columns: 1fr 1fr; gap: 24px 18px; margin: 32px 0; }
    .hp-pfeat .hp-ic { width: 42px; height: 42px; border-radius: 12px; }
    body.hp .hp-pfeat h3 { font-size: 1rem; }
    .hp-pfeat p { font-size: 0.88rem; line-height: 1.55; }
    .hp-portal > div:last-child > .hp-btn { width: 100%; }
    .hp-phone { width: min(100%, 290px); border-radius: 40px; padding: 9px; }
    .hp-screen { border-radius: 32px; }

    /* Gallery */
    .hp-gallery { grid-auto-rows: 132px; gap: 10px; }
    .hp-shot { border-radius: 14px; }

    /* Proprietor */
    .hp-leader { gap: 40px; }
    .hp-portrait { max-width: 300px; padding: 0 18px 18px 0; }
    .hp-portrait::before { inset: 18px 0 0 18px; }
    .hp-quote { font-size: 1.5rem; margin: 14px 0 24px; }
    .hp-quote-mark { width: 40px; height: 40px; margin-top: 20px; }

    /* Steps: a vertical timeline */
    .hp-step { padding-bottom: 26px; column-gap: 16px; }
    .hp-step-n { width: 48px; height: 48px; font-size: 1.1rem; }
    .hp-steps { grid-template-columns: 1fr; }
    .hp-step { grid-template-columns: 48px 1fr; }
    .hp-step:not(:last-child)::after {
        content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px;
        background: repeating-linear-gradient(180deg, var(--hp-line) 0 6px, transparent 6px 12px);
    }
    .hp-visit { padding: 26px 22px; gap: 28px; border-radius: 24px; margin-top: 40px; }
    .hp-visit h3 { font-size: 1.45rem; }
    .hp-visit .hp-actions { margin-top: 24px; }

    /* FAQ */
    .hp-qa { margin-bottom: 12px; border-radius: 16px; }
    .hp-qa-btn { padding: 20px; font-size: 1rem; gap: 14px; }
    .hp-qa-body p { padding: 0 20px 20px; font-size: 0.96rem; }
    .hp-plus { width: 32px; height: 32px; }

    /* Closing call to action */
    .hp-cta { padding: 44px 24px; border-radius: 24px; gap: 28px; }
    .hp-cta-crest { width: 200px; right: -50px; bottom: -50px; }

    /* Footer: links side by side, generous tap targets */
    .hp-footer { padding-block: 64px 120px; margin-top: 72px; }
    .hp-foot { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
    .hp-foot > div:first-child, .hp-foot > div:last-child { grid-column: 1 / -1; }
    body.hp .hp-foot h2 { margin-bottom: 10px; }
    .hp-foot ul { gap: 0; }
    .hp-foot li a { display: flex; align-items: center; min-height: 44px; }
    .hp-foot li:not(:has(a)) { padding-block: 10px; }
    .hp-foot-bottom { margin-top: 40px; flex-direction: column; gap: 6px; }
}

/* Touch screens have no hover: stop cards and buttons sticking in their
   lifted state after a tap, and give a pressed state instead. */
@media (hover: none) {
    .hp-btn:hover, .hp-feature:hover, .hp-level:hover, .hp-help:hover { transform: none; }
    .hp-feature:hover .hp-ic { transform: none; }
    .hp-shot:hover img { transform: none; }
    .hp-level:hover::before { transform: scaleX(0.25); }
    .hp-btn:active { transform: scale(0.97); }
    .hp-shot:active img { transform: scale(1.03); }
}

/* ── Scroll reveal ───────────────────────────────────────────────────
   js/home.js adds .is-pre only to elements below the first screen, so
   without JavaScript (or before it runs) everything is visible. Once an
   element has arrived, .is-done hands transitions back to its own
   hover styles. */
[data-reveal]:not(.is-done) { transition: opacity 1s var(--hp-ease), transform 1s var(--hp-ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-pre { opacity: 0; transform: translateY(40px); }
[data-reveal="left"].is-pre { transform: translateX(-48px); }
[data-reveal="right"].is-pre { transform: translateX(48px); }
[data-reveal="zoom"].is-pre { transform: scale(0.94); }
@media (max-width: 600px) {
    /* Shorter travel on a small screen; sideways moves become upward ones. */
    [data-reveal].is-pre, [data-reveal="left"].is-pre, [data-reveal="right"].is-pre { transform: translateY(24px); }
    [data-reveal]:not(.is-done) { transition-duration: .8s; }
}

@media (prefers-reduced-motion: reduce) {
    body.hp *, body.hp *::before, body.hp *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .hp-hl path { stroke-dashoffset: 0; }
}
