/* ==========================================================================
   Harrow-inspired redesign: header, full-screen menu and home page.
   Loaded after site.css so these rules win on the public pages.
   Palette and type follow Harrow School:
     navy #001845 / #152242, bronze #a39161, ink #242424, body #636363
     display: Cinzel (uppercase, wide tracking)   body: Inter
   The header and slide-in menu follow the index2 editorial design:
     light bar, Montserrat nav, indigo #1c1a72 panel with gold #d2ae5e items
   ========================================================================== */

:root {
    --h-navy: #001845;
    --h-deep: #152242;
    --h-gold: #a39161;
    --h-gold-soft: #c3b083;
    --h-ink: #242424;
    --h-body: #636363;
    --h-line: rgba(21, 34, 66, .14);
    --h-cream: #f5f2ec;
    --h-serif: 'Cinzel', Georgia, 'Times New Roman', serif;
    --h-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --h-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --h-indigo: #1c1a72;
    --h-indigo-2: #2a248f;
    --h-gold-ink: #8a6c22;
}

/* ------------------------------------------------------------------ top notice bar */
.h-topbar {
    background: var(--h-navy);
    color: #fff;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    position: relative;
    z-index: 1040;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.h-topbar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 42px;
}

.h-topbar__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    color: var(--h-gold-soft);
    font-weight: 600;
    letter-spacing: .22em;
    white-space: nowrap;
}

.h-topbar__label i { font-size: .6rem; }

.h-topbar .ticker { flex: 1; min-width: 0; }

.h-topbar .ticker-track { gap: 56px; animation-duration: 55s; }

.h-topbar .ticker-track a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    letter-spacing: .1em;
}

.h-topbar .ticker-track a:hover { color: var(--h-gold-soft); }

.h-topbar .ticker-track i { color: var(--h-gold); }

.h-topbar__contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: none;
}

.h-topbar__contact a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    letter-spacing: .1em;
}

.h-topbar__contact a:hover { color: var(--h-gold-soft); }

.h-topbar__social {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 2px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.h-topbar__soc {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .85) !important;
    font-size: .72rem;
    line-height: 1;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.h-topbar__soc:hover {
    color: #001845 !important;
    background: var(--h-gold-soft);
    transform: translateY(-1px);
}

.h-topbar__tagline {
    flex: 1;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .28em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ header
   Editorial header modelled on the index2 design: light bar, thin uppercase
   nav, outlined Fee Voucher button and a slide-in menu. Pages that place a
   photo or video hero underneath add body.hdr-over; the bar then starts
   transparent and turns solid white once the page scrolls. */
.h-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(11, 31, 58, .1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.h-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
}

.h-header.is-solid {
    box-shadow: 0 10px 34px rgba(10, 8, 38, .1);
    border-bottom-color: rgba(11, 31, 58, .08);
}

.h-header.is-solid .h-header__inner { min-height: 74px; }

body.hdr-over .h-header:not(.is-solid) {
    background: linear-gradient(180deg, rgba(10, 8, 38, .55) 0%, rgba(10, 8, 38, 0) 100%);
    border-bottom-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.h-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: var(--h-navy) !important;
    text-decoration: none;
}

.h-brand:hover { color: var(--h-navy); }

body.hdr-over .h-header:not(.is-solid) .h-brand { color: #fff !important; }

.h-brand__logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: none;
    padding: 3px;
    border-radius: 50%;
    background: #fff;
}

.h-brand__text { display: flex; flex-direction: column; min-width: 0; }

.h-brand__name {
    font-family: var(--h-display);
    font-size: .94rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h-brand__sub {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--h-gold-ink);
    margin-top: 4px;
    white-space: nowrap;
}

body.hdr-over .h-header:not(.is-solid) .h-brand__sub { color: var(--h-gold-soft); }

/* ---- primary nav */
.h-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.h-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 9px;
    border: 0;
    background: none;
    color: var(--h-navy);
    font-family: var(--h-display);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease;
}

.h-nav__link:hover { color: var(--h-gold-ink); }

.h-nav__link i { font-size: .5rem; opacity: .55; transition: transform .25s ease; }

body.hdr-over .h-header:not(.is-solid) .h-nav__link { color: #fff; }
body.hdr-over .h-header:not(.is-solid) .h-nav__link:hover { color: var(--h-gold-soft); }

.h-nav__dd { position: relative; }

/* invisible bridge so the panel does not close while the pointer crosses the gap */
.h-nav__dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; }

.h-nav__dd.is-open .h-nav__link i { transform: rotate(90deg); }

.h-nav__panel {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    min-width: 360px;
    padding: 12px 0;
    background: #fff;
    border-top: 2px solid var(--h-gold);
    box-shadow: 0 24px 54px rgba(10, 8, 38, .16);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.h-nav__dd.is-open .h-nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.h-nav__panel a {
    display: block;
    padding: 9px 24px;
    color: var(--h-navy);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.h-nav__panel a small {
    display: block;
    margin-top: 3px;
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--h-body);
}

.h-nav__panel a:hover { background: var(--h-cream); color: var(--h-navy); }

.h-nav__panel .h-nav__all {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--h-line);
    font-family: var(--h-display);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--h-gold-ink);
}

.h-nav__panel .h-nav__all i { font-size: .62rem; }

/* ---- actions */
.h-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.h-fee {
    align-items: center;
    margin-right: 0;
    padding: 11px 18px;
    border: 1px solid rgba(0, 24, 69, .28);
    background: transparent;
    color: var(--h-navy);
    font-family: var(--h-display);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}

.h-fee:hover { background: var(--h-navy); border-color: var(--h-navy); color: #fff; }

body.hdr-over .h-header:not(.is-solid) .h-fee { color: #fff; border-color: rgba(255, 255, 255, .55); }
body.hdr-over .h-header:not(.is-solid) .h-fee:hover { background: #fff; border-color: #fff; color: var(--h-navy); }

.h-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--h-navy);
    font-size: .92rem;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s, background .2s;
}

.h-icon:hover { color: var(--h-gold-ink); background: transparent; }

body.hdr-over .h-header:not(.is-solid) .h-icon { color: #fff; }
body.hdr-over .h-header:not(.is-solid) .h-icon:hover { color: var(--h-gold-soft); }

.h-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
    padding: 8px 0 8px 6px;
    border: 0;
    background: none;
    color: var(--h-navy);
    font-family: var(--h-display);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s ease;
}

.h-menu-btn:hover { background: none; border-color: transparent; color: var(--h-gold-ink); }

body.hdr-over .h-header:not(.is-solid) .h-menu-btn { color: #fff; }
body.hdr-over .h-header:not(.is-solid) .h-menu-btn:hover { color: var(--h-gold-soft); }

.h-menu-btn__bars { display: flex; flex-direction: column; gap: 4.8px; width: 34px; }
.h-menu-btn__bars i { display: block; height: 1.6px; background: currentColor; }

@media (max-width: 1199.98px) {
    .h-nav { display: none; }
}

/* ------------------------------------------------------------------ full-screen menu */
body.h-menu-open { overflow: hidden; }

.h-menu { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: flex-end; }
.h-menu[hidden] { display: none; }

.h-menu__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 12, 34, .62);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .35s ease;
}

.h-menu.is-open .h-menu__scrim { opacity: 1; }

.h-menu__panel {
    position: relative;
    width: min(1080px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px clamp(20px, 3.4vw, 50px) 0;
    background: var(--h-indigo);
    color: #d2ae5e;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform .55s cubic-bezier(.2, .8, .2, 1);
    box-shadow: -30px 0 80px rgba(0, 0, 0, .35);
}

.h-menu.is-open .h-menu__panel { transform: translateX(0); }

.h-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    flex: none;
}

/* Panel wordmark: crest on the indigo, two-line name (index2 style). */
.h-menu__brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #fff !important;
    text-decoration: none;
}

.h-menu__logo { width: auto; height: 62px; flex: none; }

.h-menu__brand-txt {
    display: flex;
    flex-direction: column;
    font-family: var(--h-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .2em;
    line-height: 1.3;
    text-transform: uppercase;
}

.h-menu__brand-txt strong { font-weight: 700; }

.h-menu__close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: var(--h-display);
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 0;
    transition: color .2s;
}

.h-menu__close:hover { color: #d2ae5e; }

.h-menu__close:focus-visible,
.h-menu__group-btn:focus-visible,
.h-menu__group-link:focus-visible,
.h-menu__panel-group a:focus-visible,
.h-menu__back:focus-visible,
.h-menu-btn:focus-visible,
.h-icon:focus-visible,
.h-nav__link:focus-visible,
.h-fee:focus-visible {
    outline: 1px solid var(--h-gold);
    outline-offset: 4px;
}

.h-menu__body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px 0 0;
    min-height: 0;
    overflow: hidden;
}

/* Each column scrolls on its own; the utility bar below never overlaps it. */
.h-menu__groups {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 40px 36px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .26) transparent;
}

.h-menu__groups::-webkit-scrollbar,
.h-menu__panels::-webkit-scrollbar { width: 5px; }

.h-menu__groups::-webkit-scrollbar-track,
.h-menu__panels::-webkit-scrollbar-track { background: transparent; }

.h-menu__groups::-webkit-scrollbar-thumb,
.h-menu__panels::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .26); }

.h-menu__group { margin: 0; padding: 0; }

.h-menu__group-btn,
.h-menu__group-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: #d2ae5e;
    font-family: var(--h-display);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 300;
    letter-spacing: .05em;
    line-height: 1.18;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .22s ease, padding-left .25s ease;
}

.h-menu__group-btn:hover,
.h-menu__group-link:hover,
.h-menu__group-btn.is-active,
.h-menu__group-link.is-active {
    color: #fff;
    padding-left: 8px;
}

.h-menu__group-btn i { font-size: .55em; color: currentColor; opacity: .6; transition: opacity .2s; }
.h-menu__group-btn.is-active i { opacity: 1; }

.h-menu__panels {
    position: relative;
    align-self: stretch;
    padding: 8px 0 36px clamp(24px, 3vw, 40px);
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .26) transparent;
}

.h-menu__panel-group[hidden] { display: none; }

.h-menu__eyebrow {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .72);
    font-family: var(--h-display);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.h-menu__panel-group ul { list-style: none; margin: 0; padding: 0; }

.h-menu__panel-group li { margin: 0; }

.h-menu__panel-group a {
    display: block;
    padding: 7px 0;
    border-bottom: 0;
    color: #d2ae5e;
    font-size: 1.03rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s, transform .2s;
}

.h-menu__panel-group a:hover { color: #fff; transform: translateX(4px); }

.h-menu__back {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: var(--h-display);
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
}

.h-menu__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
    padding: 20px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .5);
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    flex: none;
}

.h-menu__utils { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.h-menu__foot a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.h-menu__foot a:hover { color: #d2ae5e; }

@media (max-width: 991.98px) {
    .h-menu__panel { width: 100%; padding: 22px 22px 0; overflow-y: auto; }
    .h-menu__body { display: block; padding: 4px 0 26px; overflow: visible; }
    .h-menu__groups { gap: 0; padding: 4px 0 26px; overflow: visible; }
    .h-menu__group-btn,
    .h-menu__group-link { font-size: 1.44rem; letter-spacing: .05em; padding: 10px 0; }
    .h-menu__panels { display: none; position: static; padding: 4px 0 26px; border: 0; background: transparent; overflow: visible; }
    .h-menu.is-drill .h-menu__groups { display: none; }
    .h-menu.is-drill .h-menu__panels { display: block; }
    .h-menu__back { display: inline-flex; }
    .h-menu__panel-group a { font-size: 1.02rem; padding: 10px 0; }
    .h-menu__foot { display: none; }
}

@media (max-width: 575.98px) {
    .h-menu__logo { height: 48px; }
    .h-menu__brand-txt { font-size: .78rem; letter-spacing: .16em; }
    .h-brand__name { font-size: .78rem; letter-spacing: .03em; white-space: normal; line-height: 1.2; }
    .h-brand__sub { display: none; }
    .h-brand__logo { width: 40px; height: 40px; }
    .h-menu-btn { padding: 8px 0 8px 4px; }
    .h-menu-btn span:not(.h-menu-btn__bars) { display: none; }
    .h-header__inner { min-height: 66px; }
    .h-header.is-solid .h-header__inner { min-height: 62px; }
    .h-icon { width: 36px; height: 36px; }
    .h-topbar__label { letter-spacing: .16em; }
}

/* ------------------------------------------------------------------ shared home elements */
body.home { background: #fff; color: var(--h-body); font-family: var(--h-sans); }

body.home main { background: #fff; }

.h-section { padding: clamp(58px, 7vw, 98px) 0; }

.h-section--cream { background: var(--h-cream); }

.h-section--dark { background: var(--h-deep); color: rgba(255, 255, 255, .82); }

.h-section--dark .h-title { color: #fff; }

.h-eyebrow {
    margin: 0 0 16px;
    color: var(--h-gold);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.h-eyebrow--light { color: var(--h-gold-soft); }

.h-title {
    margin: 0 0 18px;
    color: var(--h-ink);
    font-family: var(--h-serif);
    font-size: clamp(1.7rem, 3.4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: .045em;
    line-height: 1.25;
    text-transform: uppercase;
}

.h-title--sm { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }

.h-lead {
    margin: 0 0 26px;
    color: var(--h-body);
    font-size: 1.02rem;
    line-height: 1.9;
}

.h-section--dark .h-lead { color: rgba(255, 255, 255, .74); }

.h-textlink {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--h-gold) !important;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    transition: gap .2s, color .2s;
}

.h-textlink:hover { gap: 14px; color: var(--h-gold-soft) !important; }

.h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid var(--h-gold);
    border-radius: 0;
    background: transparent;
    color: var(--h-gold) !important;
    font-family: var(--h-sans);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .28em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .25s, color .25s, border-color .25s;
}

.h-btn:hover { background: var(--h-gold); color: var(--h-navy) !important; }

.h-btn--solid { background: var(--h-gold); color: var(--h-navy) !important; }
.h-btn--solid:hover { background: var(--h-gold-soft); border-color: var(--h-gold-soft); }

.h-btn--light { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.h-btn--light:hover { background: #fff; border-color: #fff; color: var(--h-deep) !important; }

.h-btn--sm { padding: 11px 20px; font-size: .64rem; letter-spacing: .22em; }

.h-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: clamp(30px, 4vw, 48px);
}

.h-head .h-title { margin-bottom: 0; }

.h-head--center {
    display: block;
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------------------------------ hero */
.h-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(520px, 74vh, 780px);
    overflow: hidden;
    background: var(--h-navy);
    color: #fff;
    text-align: center;
}

.h-hero__carousel,
.h-hero__carousel .carousel-inner,
.h-hero__carousel .carousel-item { position: absolute; inset: 0; height: 100%; }

.h-hero__carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 9s ease-out;
}

.h-hero__carousel .carousel-item.active img { transform: scale(1); }

.h-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(1100px 620px at 50% 42%, rgba(0, 12, 34, .55), transparent 72%),
        linear-gradient(180deg, rgba(0, 24, 69, .74), rgba(0, 18, 52, .58) 45%, rgba(0, 24, 69, .9));
}

.h-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 110px 0 120px;
}

.h-hero__title {
    margin: 0 auto 22px;
    max-width: 22ch;
    color: #fff;
    font-family: var(--h-serif);
    font-size: clamp(1.65rem, 3.8vw, 3.15rem);
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 1.25;
    text-transform: uppercase;
}

.h-hero__title span { color: var(--h-gold-soft); }

.h-hero__lead {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(.98rem, 1.5vw, 1.12rem);
    line-height: 1.85;
    text-shadow: 0 2px 18px rgba(0, 8, 24, .45);
}

.h-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.h-hero__carousel .carousel-indicators { bottom: 34px; z-index: 3; margin: 0 0 0 0; left: 0; right: 0; }
.h-hero__carousel .carousel-indicators [data-bs-target] { width: 34px; height: 2px; border: 0; border-radius: 0; background: #fff; opacity: .35; }
.h-hero__carousel .carousel-indicators .active { background: var(--h-gold-soft); opacity: 1; }

/* ------------------------------------------------------------------ stats (when present) */
.h-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--h-line);
    border: 1px solid var(--h-line);
}

.h-stat { padding: 26px 18px; text-align: center; background: #fff; }

.h-stat__num {
    color: var(--h-deep);
    font-family: var(--h-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1;
}

.h-stat__label {
    margin-top: 8px;
    color: var(--h-gold);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ quick access */
.h-quick { border-bottom: 1px solid var(--h-line); }

.h-quick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--h-line); border: 1px solid var(--h-line); }

.h-quick__card {
    display: flex;
    gap: 16px;
    height: 100%;
    padding: 28px 24px;
    background: #fff;
    color: var(--h-ink);
    text-decoration: none;
    transition: background .28s, color .28s;
}

.h-quick__card:hover { background: var(--h-deep); color: #fff; }

.h-quick__icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--h-gold);
    color: var(--h-gold);
    font-size: 1.05rem;
    transition: background .28s, color .28s;
}

.h-quick__card:hover .h-quick__icon { background: var(--h-gold); color: var(--h-navy); }

.h-quick__body { display: flex; flex-direction: column; min-width: 0; }

.h-quick__title {
    margin: 0 0 6px;
    font-family: var(--h-serif);
    font-size: .94rem;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1.35;
    text-transform: uppercase;
}

.h-quick__text { margin: 0 0 10px; color: var(--h-body); font-size: .86rem; line-height: 1.6; }

.h-quick__card:hover .h-quick__text { color: rgba(255, 255, 255, .72); }

.h-quick__go {
    margin-top: auto;
    color: var(--h-gold);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.h-quick__card:hover .h-quick__go { color: var(--h-gold-soft); }

/* ------------------------------------------------------------------ two-column feature */
.h-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 76px);
    align-items: center;
}

.h-split--reverse .h-split__media { order: 2; }

.h-split__text { min-width: 0; }

.h-frame { position: relative; }

.h-frame::after {
    content: "";
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 1px solid var(--h-gold);
    pointer-events: none;
}

.h-frame img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.h-split--wide .h-frame img { aspect-ratio: 5 / 4; }

/* Honours poster: keep the whole image inside a flush gold frame so it
   never looks shifted and no part of the result poster is cropped. */
#achievements .h-frame::after { inset: 0; z-index: 2; }
#achievements .h-frame img {
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: var(--h-deep);
}

/* ------------------------------------------------------------------ programs / tabs */
.h-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 34px;
    padding: 0;
    border-bottom: 1px solid var(--h-line);
    list-style: none;
}

.h-tab {
    display: inline-block;
    margin: 0;
    padding: 14px 20px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0 !important;
    background: transparent;
    color: var(--h-body) !important;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.h-tab:hover { color: var(--h-deep) !important; }

.h-tab.active {
    background: transparent !important;
    color: var(--h-deep) !important;
    border-bottom-color: var(--h-gold);
}

.h-tab-pane { max-width: 860px; }

.h-tab-pane h3 {
    margin: 0 0 12px;
    color: var(--h-ink);
    font-family: var(--h-serif);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.h-tab-pane p { color: var(--h-body); font-size: 1rem; line-height: 1.9; }

.h-chip {
    display: inline-block;
    margin: 10px 8px 0 0;
    padding: 7px 14px;
    border: 1px solid var(--h-line);
    color: var(--h-deep);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ facilities */
.h-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.h-facility {
    height: 100%;
    padding: 30px 26px;
    border: 1px solid var(--h-line);
    background: #fff;
    transition: transform .28s, box-shadow .28s, border-color .28s;
}

.h-facility:hover { transform: translateY(-5px); border-color: var(--h-gold); box-shadow: 0 20px 44px rgba(21, 34, 66, .08); }

.h-facility__icon { margin-bottom: 16px; color: var(--h-gold); font-size: 1.35rem; }

.h-facility h3 {
    margin: 0 0 8px;
    color: var(--h-ink);
    font-family: var(--h-serif);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.h-facility p { margin: 0; color: var(--h-body); font-size: .9rem; line-height: 1.75; }

/* ------------------------------------------------------------------ honours / values band */
.h-honour-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    padding: 8px 14px;
    border: 1px solid var(--h-gold);
    color: var(--h-gold-soft);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.h-honour-list { margin: 0 0 26px; padding: 0; list-style: none; }

.h-honour-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .8);
    font-size: .94rem;
}

.h-honour-list li i { margin-top: 3px; color: var(--h-gold); }

.h-honour-list b { color: #fff; font-weight: 600; }

.h-honour-list small { display: block; color: rgba(255, 255, 255, .55); font-size: .8rem; }

/* ------------------------------------------------------------------ news + events */
.h-news-cols { display: grid; grid-template-columns: 1.55fr .85fr; gap: clamp(32px, 5vw, 66px); }

.h-news-cols--single { grid-template-columns: 1fr; }

.h-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.h-news-card { display: flex; flex-direction: column; height: 100%; color: var(--h-ink); text-decoration: none; }

.h-news-card:hover { color: var(--h-ink); }

.h-news-card__thumb { aspect-ratio: 16 / 11; overflow: hidden; background: var(--h-cream); }

.h-news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }

.h-news-card:hover .h-news-card__thumb img { transform: scale(1.05); }

.h-news-card__thumb--ph { display: grid; place-items: center; color: var(--h-gold); font-size: 1.8rem; background: var(--h-deep); }

.h-news-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 0 0; }

.h-news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--h-gold);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.h-news-card__meta .sep { width: 14px; height: 1px; background: var(--h-line); }

.h-news-card h3 {
    margin: 0 0 10px;
    color: var(--h-ink);
    font-family: var(--h-sans);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
}

.h-news-card:hover h3 { color: var(--h-gold); }

.h-news-card p { margin: 0 0 14px; color: var(--h-body); font-size: .88rem; line-height: 1.7; }

.h-news-card .h-textlink { margin-top: auto; }

.h-events { border-left: 1px solid var(--h-line); padding-left: clamp(22px, 3vw, 40px); }

.h-event {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--h-line);
    color: var(--h-ink);
    text-decoration: none;
}

.h-event:hover { color: var(--h-ink); }

.h-event__date {
    flex: none;
    width: 62px;
    padding: 8px 6px;
    border: 1px solid var(--h-gold);
    text-align: center;
    line-height: 1.05;
}

.h-event__date b { display: block; color: var(--h-deep); font-family: var(--h-serif); font-size: 1.4rem; font-weight: 600; }

.h-event__date small { color: var(--h-gold); font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

.h-event__body { min-width: 0; }

.h-event__title { color: var(--h-ink); font-size: .94rem; font-weight: 600; line-height: 1.4; }

.h-event:hover .h-event__title { color: var(--h-gold); }

.h-event__meta { color: var(--h-body); font-size: .78rem; margin-top: 3px; }

.h-events .h-btn { margin-top: 24px; }

/* ------------------------------------------------------------------ gallery */
.h-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }

.h-gallery__item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--h-deep);
    cursor: pointer;
}

.h-gallery__item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s, opacity .4s; }

.h-gallery__item:hover img { transform: scale(1.06); opacity: .86; }

/* ------------------------------------------------------------------ admissions steps */
.h-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 38px); }

.h-step { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .24); }

.h-step__num {
    display: block;
    margin-bottom: 12px;
    color: var(--h-gold-soft);
    font-family: var(--h-serif);
    font-size: 1.6rem;
    line-height: 1;
}

.h-step h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--h-serif);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1.4;
    text-transform: uppercase;
}

.h-step p { margin: 0; color: rgba(255, 255, 255, .68); font-size: .88rem; line-height: 1.75; }

.h-cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: clamp(36px, 5vw, 56px);
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .04);
}

.h-cta-band h2 {
    margin: 0 0 6px;
    color: #fff;
    font-family: var(--h-serif);
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.h-cta-band p { margin: 0; color: rgba(255, 255, 255, .68); font-size: .92rem; }

/* ------------------------------------------------------------------ quotes */
.h-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }

.h-quote { padding-left: 24px; border-left: 2px solid var(--h-gold); }

.h-quote i { color: var(--h-gold); font-size: 1.1rem; }

.h-quote p { margin: 12px 0 18px; color: var(--h-body); font-size: 1rem; line-height: 1.85; }

.h-quote__who { color: var(--h-deep); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

.h-quote small { display: block; margin-top: 4px; color: var(--h-gold); font-size: .72rem; }

/* ------------------------------------------------------------------ FAQ */
.h-faq { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(30px, 5vw, 72px); align-items: start; }

body.home .accordion-item {
    border: 0 !important;
    border-bottom: 1px solid var(--h-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin-bottom: 0;
    overflow: visible;
}

body.home .accordion-button {
    padding: 18px 0;
    background: transparent !important;
    color: var(--h-ink);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: none;
}

body.home .accordion-button:not(.collapsed) { background: transparent !important; color: var(--h-deep); }

body.home .accordion-button:focus { box-shadow: none; }

body.home .accordion-button::after { width: 1rem; height: 1rem; background-size: 1rem; filter: sepia(1) saturate(2) hue-rotate(3deg) opacity(.7); }

body.home .accordion-body { padding: 0 0 22px; color: var(--h-body); font-size: .94rem; line-height: 1.8; }

/* ------------------------------------------------------------------ downloads */
.h-downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.h-download {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--h-line);
    background: #fff;
    color: var(--h-ink);
    text-decoration: none;
    transition: border-color .25s, transform .25s;
}

.h-download:hover { border-color: var(--h-gold); color: var(--h-ink); transform: translateY(-3px); }

.h-download__icon { flex: none; color: var(--h-gold); font-size: 1.15rem; }

.h-download b { display: block; font-size: .92rem; font-weight: 600; }

.h-download small { color: var(--h-body); font-size: .78rem; }

.h-download .fa-arrow-right { margin-left: auto; color: var(--h-gold); font-size: .8rem; }

/* ------------------------------------------------------------------ contact CTA */
.h-contact { padding: clamp(60px, 8vw, 100px) 0; background: var(--h-deep); color: rgba(255, 255, 255, .78); text-align: center; }

.h-contact .h-title { max-width: 760px; margin: 0 auto 18px; color: #fff; }

.h-contact .h-lead { max-width: 620px; margin: 0 auto 30px; color: rgba(255, 255, 255, .7); }

.h-contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ------------------------------------------------------------------ footer */
footer.site-footer { background: var(--h-deep); color: rgba(255, 255, 255, .68); padding: 72px 0 30px; }

footer.site-footer h4 {
    margin-bottom: 18px;
    color: var(--h-gold-soft);
    font-family: var(--h-sans);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}

footer.site-footer a { color: rgba(255, 255, 255, .7); }
footer.site-footer a:hover { color: var(--h-gold-soft); }

footer.site-footer .brand-mark { background: transparent; border: 1px solid var(--h-gold); color: var(--h-gold); }

footer.site-footer li { font-size: .88rem; }

.foot-contact i { color: var(--h-gold); }

.footer-bottom { border-top-color: rgba(255, 255, 255, .12); }

/* ------------------------------------------------------------------ dark theme (home) */
[data-theme="dark"] body.home,
[data-theme="dark"] body.home main { background: #0b1526; color: #b9c4d4; }

[data-theme="dark"] body.home .h-section:not(.h-section--dark):not(.h-section--cream) { background: #0b1526; }
[data-theme="dark"] body.home .h-section--cream { background: #101d33; }

[data-theme="dark"] body.home .h-title { color: #f2f5fa; }
[data-theme="dark"] body.home .h-lead { color: #b9c4d4; }
[data-theme="dark"] body.home .h-eyebrow { color: var(--h-gold-soft); }

[data-theme="dark"] body.home .h-stat { background: #101d33; }
[data-theme="dark"] body.home .h-stat__num { color: #f2f5fa; }

[data-theme="dark"] body.home .h-quick__card,
[data-theme="dark"] body.home .h-facility,
[data-theme="dark"] body.home .h-download { background: #101d33; border-color: rgba(255, 255, 255, .12); }

[data-theme="dark"] body.home .h-quick__card { color: #f2f5fa; }
[data-theme="dark"] body.home .h-quick__card:hover { background: #1b2b47; }
[data-theme="dark"] body.home .h-quick__text { color: #b9c4d4; }
[data-theme="dark"] body.home .h-quick__card:hover .h-quick__text { color: rgba(255, 255, 255, .75); }

[data-theme="dark"] body.home .h-facility h3,
[data-theme="dark"] body.home .h-news-card h3,
[data-theme="dark"] body.home .h-news-card:hover h3,
[data-theme="dark"] body.home .h-event__title,
[data-theme="dark"] body.home .h-event:hover .h-event__title,
[data-theme="dark"] body.home .h-download b,
[data-theme="dark"] body.home .h-download:hover { color: #f2f5fa; }

[data-theme="dark"] body.home .h-facility p,
[data-theme="dark"] body.home .h-news-card p,
[data-theme="dark"] body.home .h-event__meta,
[data-theme="dark"] body.home .h-download small { color: #b9c4d4; }

[data-theme="dark"] body.home .h-tab { color: #b9c4d4 !important; }
[data-theme="dark"] body.home .h-tab:hover,
[data-theme="dark"] body.home .h-tab.active { color: #f2f5fa !important; }
[data-theme="dark"] body.home .h-tab-pane h3 { color: #f2f5fa; }
[data-theme="dark"] body.home .h-tab-pane p { color: #b9c4d4; }
[data-theme="dark"] body.home .h-chip { border-color: rgba(255, 255, 255, .16); color: #f2f5fa; }

[data-theme="dark"] body.home .h-news-card__thumb { background: #101d33; }
[data-theme="dark"] body.home .h-news-card__thumb--ph { background: #1b2b47; }
[data-theme="dark"] body.home .h-event__date { border-color: var(--h-gold); }
[data-theme="dark"] body.home .h-event__date b { color: #f2f5fa; }

[data-theme="dark"] body.home .h-faq,
[data-theme="dark"] body.home .h-faq .h-lead { color: #b9c4d4; }
[data-theme="dark"] body.home .accordion-item { border-bottom-color: rgba(255, 255, 255, .14); }
[data-theme="dark"] body.home .accordion-button,
[data-theme="dark"] body.home .accordion-button:not(.collapsed) { color: #f2f5fa; }
[data-theme="dark"] body.home .accordion-body { color: #b9c4d4; }

[data-theme="dark"] body.home .h-quote p { color: #b9c4d4; }
[data-theme="dark"] body.home .h-quote__who { color: #f2f5fa; }

[data-theme="dark"] body.home .h-frame::after { border-color: var(--h-gold); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1199.98px) {
    .h-quick__grid { grid-template-columns: repeat(2, 1fr); }
    .h-news-cols { grid-template-columns: 1fr; }
    .h-events { border-left: 0; padding-left: 0; border-top: 1px solid var(--h-line); padding-top: 30px; }
    .h-news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
    .h-split { grid-template-columns: 1fr; }
    .h-split--reverse .h-split__media { order: 0; }
    .h-frame::after { inset: 12px -12px -12px 12px; }
    .h-frame img { aspect-ratio: 4 / 3; }
    .h-split--wide .h-frame img { aspect-ratio: 16 / 10; }
    .h-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .h-news-grid { grid-template-columns: repeat(2, 1fr); }
    .h-steps { grid-template-columns: repeat(2, 1fr); }
    .h-quotes { grid-template-columns: 1fr; }
    .h-faq { grid-template-columns: 1fr; }
    .h-downloads { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .h-quick__grid { grid-template-columns: 1fr; }
    .h-news-grid { grid-template-columns: 1fr; }
    .h-grid-3 { grid-template-columns: 1fr; }
    .h-downloads { grid-template-columns: 1fr; }
    .h-hero__content { padding: 80px 0 90px; }
    .h-cta-band { flex-direction: column; align-items: flex-start; }
    .h-head { display: block; }
    .h-head .h-textlink,
    .h-head .h-btn { margin-top: 14px; }
    .h-news-cols { gap: 34px; }
    .h-news-card__thumb { aspect-ratio: 16 / 9; }
}

@media (max-width: 575.98px) {
    .h-steps { grid-template-columns: 1fr; }
    .h-tab { padding: 12px 14px; font-size: .62rem; }
    .h-hero__actions .h-btn { width: 100%; }
}

/* ==========================================================================
   Home page refinements
   Scoped to body.home so the other public pages keep their current layout.
   ========================================================================== */

/* hero: deeper frame, bottom fade, scroll cue */
.home .h-hero { min-height: clamp(540px, 78vh, 820px); }
.home .h-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 170px;
    background: linear-gradient(180deg, rgba(8, 20, 44, 0), rgba(8, 20, 44, .5));
    pointer-events: none;
}
.home .h-hero__content { padding-bottom: 160px; }
.home .h-hero__title { text-shadow: 0 12px 40px rgba(0, 0, 0, .22); }

.home .h-hero__scroll {
    position: absolute;
    right: 26px;
    bottom: 24px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 46px;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}
.home .h-hero__scroll span {
    width: 14px;
    height: 14px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    animation: h-scroll-cue 2.2s ease-in-out infinite;
}
.home .h-hero__scroll:hover { color: #fff; }
@keyframes h-scroll-cue {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .55; }
    50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* quick access: cards instead of a hairline table */
.home .h-quick {
    padding-top: clamp(44px, 5vw, 68px);
    padding-bottom: clamp(50px, 6vw, 82px);
    border-bottom: 0;
}
.home .h-quick__grid { gap: 18px; background: transparent; border: 0; }
.home .h-quick__card {
    padding: 26px 24px;
    border: 1px solid var(--h-line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(21, 34, 66, .05);
    transition: transform .28s, box-shadow .28s, border-color .28s, background .28s, color .28s;
}
.home .h-quick__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(21, 34, 66, .14);
}
.home .h-quick__icon {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--h-cream);
    font-size: 1.15rem;
}
.home .h-quick__title { font-size: 1rem; }
.home .h-quick__go { font-size: .64rem; }

/* news: lighter placeholder thumbs when an item has no picture */
.home .h-news-card__thumb--ph {
    border: 1px solid var(--h-line);
    background:
        radial-gradient(circle at 82% 18%, rgba(163, 145, 97, .2), transparent 58%),
        linear-gradient(135deg, #faf7f1, #efe9dd);
    color: var(--h-gold);
}

/* programmes: a proper content card with a level panel */
.home .h-tab-pane {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
    gap: clamp(24px, 4vw, 56px);
    max-width: none;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--h-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(21, 34, 66, .06);
}
.home .h-tab-pane__body { min-width: 0; }
.home .h-tab-pane__chips { margin-top: 14px; }
.home .h-tab-pane__aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-left: clamp(20px, 3vw, 36px);
    border-left: 1px solid var(--h-line);
}
.home .h-tab-pane__index {
    font-family: var(--h-serif);
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1;
    color: rgba(21, 34, 66, .12);
}
.home .h-tab-pane__eyebrow {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--h-gold);
}
.home .h-tab-pane__label {
    font-family: var(--h-serif);
    font-size: 1.15rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--h-ink);
}
.home .h-tab-pane__aside .h-textlink { margin-top: 8px; }

/* facilities: soft icon tiles */
.home .h-facility {
    padding: 30px 26px;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(21, 34, 66, .04);
}
.home .h-facility__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--h-cream);
    font-size: 1.15rem;
}

/* gallery: a taller lead image */
.home .h-gallery { grid-template-columns: 1.6fr 1fr; grid-auto-rows: 200px; gap: 14px; }
.home .h-gallery__item {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
}
.home .h-gallery__item:first-child { grid-row: span 2; }
.home .h-gallery__item img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }

/* principal signature */
.home .h-signature {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin: 18px 0 22px;
    font-family: var(--h-serif);
    font-size: 1rem;
    letter-spacing: .04em;
    color: var(--h-deep);
}
.home .h-signature::before { content: ""; width: 34px; height: 1px; background: var(--h-gold); }

/* branded panel used when the legacy portrait is unavailable */
.home .h-principal-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    min-height: 390px;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
    border-radius: 4px;
    background: linear-gradient(145deg, var(--h-deep), var(--h-navy));
    color: #fff;
}
.home .h-principal-panel::before,
.home .h-principal-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(195, 176, 131, .28);
    border-radius: 50%;
    pointer-events: none;
}
.home .h-principal-panel::before { right: -54px; bottom: -70px; width: 250px; height: 250px; }
.home .h-principal-panel::after { right: 34px; bottom: -32px; width: 120px; height: 120px; }
.home .h-principal-panel > * { position: relative; z-index: 1; }
.home .h-principal-panel__crest {
    width: 60px;
    height: 60px;
    padding: 6px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}
.home .h-principal-panel__quote {
    max-width: 12ch;
    margin: 0;
    color: #fff;
    font-family: var(--h-serif);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.22;
}
.home .h-principal-panel__label {
    color: var(--h-gold-soft);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

/* our schools */
.home .h-schools { background: #fff; }
.home .h-schools__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home .h-school-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--h-line);
    border-radius: 18px;
    background: #fff;
    color: var(--h-ink);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(21, 34, 66, .05);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.home .h-school-card:hover {
    transform: translateY(-5px);
    border-color: var(--h-gold);
    box-shadow: 0 24px 50px rgba(21, 34, 66, .12);
    color: var(--h-ink);
}
.home .h-school-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--h-cream); }
.home .h-school-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.home .h-school-card:hover .h-school-card__media img { transform: scale(1.05); }
.home .h-school-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 22px 22px 20px; }
.home .h-school-card__eyebrow {
    color: var(--h-gold);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.home .h-school-card__title {
    font-family: var(--h-serif);
    font-size: 1.25rem;
    letter-spacing: .04em;
    line-height: 1.25;
    text-transform: uppercase;
}
.home .h-school-card__text { color: var(--h-body); font-size: .9rem; line-height: 1.65; }
.home .h-school-card__go {
    margin-top: auto;
    padding-top: 12px;
    color: var(--h-gold);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .home .h-schools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home .h-tab-pane { grid-template-columns: 1fr; }
    .home .h-tab-pane__aside {
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid var(--h-line);
    }
}

@media (max-width: 767.98px) {
    .home .h-quick__grid { gap: 14px; }
    .home .h-schools__grid { grid-template-columns: 1fr; }
    .home .h-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
    .home .h-gallery__item:first-child { grid-row: span 1; grid-column: span 2; }
}

@media (max-width: 575.98px) {
    .home .h-hero__scroll { display: none; }
    .home .h-gallery { grid-template-columns: 1fr; }
    .home .h-gallery__item:first-child { grid-column: span 1; }
    .home .h-brand__name { font-size: .78rem; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
    .home .h-hero__scroll span { animation: none !important; }
}

/* dark theme: keep the new cards readable */
[data-theme="dark"] body.home .h-tab-pane {
    border-color: rgba(255, 255, 255, .12);
    background: #101d33;
    box-shadow: none;
}
[data-theme="dark"] body.home .h-tab-pane__index { color: rgba(255, 255, 255, .14); }
[data-theme="dark"] body.home .h-tab-pane__label,
[data-theme="dark"] body.home .h-signature { color: #f2f5fa; }
[data-theme="dark"] body.home .h-tab-pane__aside { border-color: rgba(255, 255, 255, .12); }
[data-theme="dark"] body.home .h-tab-pane .h-chip { border-color: rgba(255, 255, 255, .18); color: #dbe4f0; }
[data-theme="dark"] body.home .h-school-card {
    border-color: rgba(255, 255, 255, .12);
    background: #101d33;
    color: #f2f5fa;
}
[data-theme="dark"] body.home .h-school-card__title { color: #f2f5fa; }
[data-theme="dark"] body.home .h-school-card__text { color: #b9c4d4; }
