/* ───────── Homepage ───────── (tokens and shared components live in site.css) */

/* ═════════ hero ═════════ */
.hm-hero {
    position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
    min-height: clamp(620px, 88vh, 880px); padding: 5rem 0 11rem; color: #fff; overflow: hidden;
    background:
        radial-gradient(70% 120% at 88% 15%, var(--royal) 0%, transparent 62%),
        linear-gradient(160deg, #10284a, var(--ink));
}
/* the big background circles; taller than the hero so they can drift without showing an edge */
.hm-bgrings { position: absolute; inset: -140px 0; z-index: -1; background: url("../images/ellipses.svg") 62% 50% / 1500px auto no-repeat; pointer-events: none; }
/* circles that drift at different speeds while the hero scrolls away (see home.js) */
[data-parallax] { will-change: translate; }
.hm-hero.has-photo { background: var(--ink); }
.hm-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hm-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 28, 51, .94) 0%, rgba(11, 28, 51, .78) 45%, rgba(11, 28, 51, .3) 100%), linear-gradient(0deg, rgba(11, 28, 51, .55), transparent 40%); }
.hm-hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hm-hero.has-photo .hm-hero-in { grid-template-columns: minmax(0, 1fr); }
.hm-hero-copy { max-width: 44rem; min-width: 0; }
.hm-pill { display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; margin-bottom: 1.6rem; padding: .35rem .7rem .35rem .4rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; color: #fff; font-size: .92rem; text-decoration: none; backdrop-filter: blur(6px); }
.hm-pill b { padding: .22rem .8rem; background: var(--yellow); color: var(--ink); border-radius: 999px; font-size: .8rem; white-space: nowrap; }
.hm-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pill:hover { background: rgba(255, 255, 255, .26); }
.hm-kicker { margin-bottom: .8rem; font-size: 1.2rem; font-weight: 600; color: var(--yellow); }
.hm-hero h1 { color: #fff; font-size: clamp(3.1rem, 7.4vw, 6.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.018em; text-wrap: balance; }
.hm-sub { margin-top: 1.6rem; max-width: 35rem; font-size: 1.3rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.hm-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hm-hero-copy > * { animation: hm-in .75s cubic-bezier(.2, .7, .2, 1) both; }
.hm-hero-copy > :nth-child(2) { animation-delay: .08s; }
.hm-hero-copy > :nth-child(3) { animation-delay: .16s; }
.hm-hero-copy > :nth-child(4) { animation-delay: .24s; }
.hm-hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes hm-in { from { opacity: 0; transform: translateY(18px); } }
.hm-wave { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(46px, 6.5vw, 92px); fill: var(--white); pointer-events: none; }

/* brand art: the logo ellipse, echoed */
.hm-art { position: relative; width: min(100%, 470px); aspect-ratio: 1; justify-self: center; animation: hm-pop .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
.hm-ring { position: absolute; border-radius: 50%; transform: rotate(-18deg); }
.hm-ring-1 { inset: 4% -12%; border: 3px solid var(--yellow); }
.hm-ring-2 { inset: -2% -4%; border: 1.5px solid rgba(255, 255, 255, .34); }
.hm-disc { position: absolute; inset: 10%; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 44px 80px -24px rgba(0, 0, 0, .6); }
.hm-disc img { width: 82%; height: auto; object-fit: contain; }
.hm-dot { position: absolute; top: 3%; right: 10%; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .5); }
@keyframes hm-pop { from { opacity: 0; transform: scale(.92); } }

/* ═════════ quick actions ═════════ */
.hm-quick { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: -4.6rem; }
.hm-q { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.hm-q:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -20px rgba(11, 28, 51, .5); }
.hm-q b { display: block; font-size: 1.02rem; line-height: 1.25; }
.hm-q small { display: block; margin-top: .1rem; font-size: .86rem; color: var(--muted); }
.hm-q-ic { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.hm-q-main { background: var(--royal); color: #fff; }
.hm-q-main small { color: rgba(255, 255, 255, .85); }

/* ═════════ welcome: colour block + photo ═════════ */
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; margin-top: clamp(3rem, 6vw, 5rem); }
.hm-split-text { display: flex; align-items: center; padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 5rem) clamp(3rem, 6vw, 5.5rem) max(1.5rem, calc((100vw - 1220px) / 2)); background: linear-gradient(160deg, var(--royal), var(--navy) 70%, var(--ink)); }
.hm-split-in { width: 100%; max-width: 38rem; }
.hm-split h2 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.hm-split-body { margin-top: 1.5rem; font-size: 1.12rem; color: rgba(255, 255, 255, .92); }
.hm-split-body p + p { margin-top: 1rem; }
.hm-split-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hm-split-media { position: relative; overflow: hidden; background: var(--yellow); min-height: 320px; }
.hm-split-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-years-block { height: 100%; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: 3rem 1.5rem; text-align: center; color: var(--ink); position: relative; z-index: 1; }
/* the concentric circles behind the figure; taller than the block so they can drift without showing an edge */
.hm-years-rings { position: absolute; inset: -140px 0; background: url("../images/ellipses-dark.svg") 70% 50% / 1400px auto no-repeat; pointer-events: none; }
.hm-years-logo { width: 96px; height: 96px; margin-bottom: 1rem; padding: 6px; background: #fff; border-radius: 50%; object-fit: contain; box-shadow: 0 14px 28px -12px rgba(11, 28, 51, .4); }
.hm-years-block strong { font: 800 clamp(7rem, 15vw, 12rem)/.9 var(--display); letter-spacing: -.05em; }
.hm-years-block span { font-size: 1.4rem; font-weight: 700; line-height: 1.25; }
.hm-years-block small { margin-top: .6rem; font-size: 1rem; font-weight: 600; opacity: .8; }

/* ═════════ points forts: fixed photo, big title, sliding cards ═════════ */
.hm-points { position: relative; isolation: isolate; clip-path: inset(0); margin-top: clamp(3rem, 6vw, 5rem); background: linear-gradient(160deg, var(--royal), var(--ink)); }
.hm-pointsbg { position: absolute; inset: 0; z-index: -2; }
.hm-pointsbg img { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; object-fit: cover; }
/* transparent dark layer: darkens the photo and mutes its colours, like the reference */
.hm-points::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 28, 51, .62); mix-blend-mode: normal; backdrop-filter: saturate(.75); }
.hm-points-in { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(10rem, 14vw, 12.5rem); text-align: center; }
.hm-points h2 { max-width: none; color: #fff; font-size: clamp(2.5rem, 7vw, 5.4rem); font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.hm-points h2 span { color: var(--yellow); }
/* success rates that count up, in place of the title */
.hm-results { --gap: clamp(3rem, 10vw, 8rem); display: flex; justify-content: center; align-items: flex-start; gap: var(--gap); }
.hm-result { position: relative; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 20rem; text-align: center; }
.hm-result + .hm-result::before { content: ""; position: absolute; top: 10%; bottom: 10%; left: calc(var(--gap) / -2); width: 1px; background: rgba(255, 255, 255, .38); }
.hm-result strong { font: 800 clamp(4rem, 11vw, 7.6rem)/1 var(--display); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.hm-result span { font-size: clamp(.82rem, 1.3vw, 1rem); font-weight: 700; letter-spacing: .07em; line-height: 1.4; text-transform: uppercase; color: var(--yellow); text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.hm-result sup { font-size: .72em; line-height: 0; text-transform: none; }
.hm-divider { display: inline-flex; align-items: center; gap: .45rem; }
.hm-divider i { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.hm-divider i:nth-child(2) { opacity: .7; }
.hm-divider i:nth-child(3) { opacity: .45; }
.hm-divider b { width: clamp(90px, 14vw, 150px); height: 4px; margin-left: .4rem; border-radius: 4px; background: var(--yellow); }
.hm-points p { max-width: 38rem; font-size: 1.2rem; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.hm-points .gs-btn { margin-top: .6rem; border-color: var(--yellow); color: #fff; }
.hm-points .gs-btn:hover { background: var(--yellow); color: var(--ink); }

.hm-pointsrow { --ov: clamp(7.5rem, 11vw, 10rem); position: relative; z-index: 2; margin-top: calc(-1 * var(--ov)); padding-bottom: clamp(4rem, 8vw, 7rem); background: linear-gradient(to bottom, transparent var(--ov), #fff var(--ov)); }
.hm-pointsbox { position: relative; }
/* without JS, or with fewer than 3 points: a plain row of cards */
/* .hm-pointsbox prefix: Swiper's own CSS (loaded after this file) sets .swiper{padding:0} and would otherwise win */
.hm-pointsbox .hm-pslider { overflow: hidden; padding: 2.8rem 0 3rem; margin-block: -1rem -.6rem; }
.hm-pslider:not(.swiper-initialized) .swiper-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.hm-pointsbox[data-count="1"] .swiper-wrapper { max-width: 420px; margin-inline: auto; }
.hm-pointsbox[data-count="2"] .swiper-wrapper { max-width: 880px; margin-inline: auto; }
.hm-pslider .swiper-slide { height: auto; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.hm-pointsbox.is-slider .swiper-slide { transform: scale(.92); }
.hm-pointsbox.is-slider .swiper-slide-active { transform: scale(1.04); }
.hm-str { height: 100%; padding: 2.2rem 2rem 2.4rem; background: #fff; border-radius: 28px; box-shadow: var(--shadow); }
.hm-str-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--navy-2); color: var(--yellow); box-shadow: 8px 8px 0 var(--yellow); }
.hm-str-ic .gs-ic { width: 34px; height: 34px; }
.hm-str h3 { margin: 1.7rem 0 .5rem; font-size: 1.45rem; font-weight: 700; }
.hm-str p { color: var(--muted); }
.hm-pnav { display: none; position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; place-items: center; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); cursor: pointer; box-shadow: 0 12px 26px -10px rgba(11, 28, 51, .6); transition: transform .18s, background-color .18s; }
.hm-pnav:hover { background: var(--ink); color: var(--yellow); }
.hm-pnav .gs-ic { width: 24px; height: 24px; stroke-width: 2.4; }
.hm-pprev { left: -.4rem; }
.hm-pprev .gs-ic { transform: rotate(180deg); }
.hm-pnext { right: -.4rem; }
.hm-pointsbox.is-slider .hm-pnav { display: grid; }

/* ═════════ cycles ═════════ */
.hm-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.hm-level { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 480px; border-radius: 28px; overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); }
.hm-level > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.hm-level:not(.no-photo)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 28, 51, 0) 25%, rgba(11, 28, 51, .94) 90%); }
.hm-level:hover > img { transform: scale(1.06); }
.hm-level.no-photo { background: linear-gradient(160deg, var(--royal), var(--navy)); }
.hm-level.no-photo:nth-child(2) { background: linear-gradient(160deg, var(--navy), var(--ink)); }
.hm-level.no-photo:nth-child(3) { background: linear-gradient(160deg, #2f5d94, var(--royal)); }
.hm-level.no-photo:nth-child(4) { background: var(--yellow); color: var(--ink); }
.hm-level.no-photo:nth-child(4) h3, .hm-level.no-photo:nth-child(4) .hm-level-text { color: var(--ink); }
.hm-level.no-photo:nth-child(4) .hm-level-go { color: var(--ink); }
.hm-level-mark { position: absolute; z-index: -1; top: -.4rem; right: 1.2rem; font: 800 13rem/1 var(--display); color: rgba(255, 255, 255, .1); letter-spacing: -.05em; }
.hm-level.no-photo:nth-child(4) .hm-level-mark { color: rgba(11, 28, 51, .1); }
.hm-level-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.8rem; }
.hm-level h3 { color: #fff; font-size: 2rem; font-weight: 800; }
.hm-level-text { font-size: .97rem; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.hm-level-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; font-weight: 700; color: var(--yellow); }
.hm-level-go .gs-ic { transition: transform .18s; }
.hm-level:hover .hm-level-go .gs-ic { transform: translateX(4px); }

/* ═════════ key figures ═════════ */
.hm-stats { padding: clamp(3.5rem, 6vw, 5.5rem) 0; background: var(--yellow) url("../images/ellipses-dark.svg") 78% 50% / 1400px auto no-repeat; color: var(--ink); }
.hm-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem 0; text-align: center; }
.hm-stat { padding: .4rem 1.2rem; }
.hm-stat + .hm-stat { border-left: 2px solid rgba(11, 28, 51, .18); }
.hm-stat strong { display: block; font: 800 clamp(3.4rem, 6.2vw, 5.4rem)/1 var(--display); letter-spacing: -.04em; font-feature-settings: "lnum", "tnum"; }
.hm-stat span { display: block; margin-top: .6rem; font-size: 1.05rem; font-weight: 700; }

/* ═════════ message from the head of school ═════════ */
.hm-director { background: var(--sky); }
.hm-dir-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.hm-director.no-photo .hm-dir-grid { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.hm-dir-photo { border-radius: var(--radius-l); box-shadow: 16px 16px 0 var(--yellow); }
.hm-dir-photo img { width: 100%; height: auto; border-radius: var(--radius-l); }
.hm-dir-quote { width: 3rem; height: 3rem; margin-bottom: 1rem; color: var(--royal); stroke-width: 1.6; }
.hm-dir-body { margin-top: 1.4rem; font-size: 1.14rem; color: var(--text); }
.hm-dir-body p + p { margin-top: 1rem; }
.hm-dir-sign { margin-top: 1.8rem; display: flex; flex-direction: column; }
.hm-dir-sign b { font: 800 1.3rem var(--display); color: var(--ink); }
.hm-dir-sign span { color: var(--muted); }

/* ═════════ parents / teachers ═════════ */
.hm-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.hm-door { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: clamp(3rem, 6vw, 4.5rem) 1.5rem; text-align: center; }
.hm-door-sky { background: #cfe0f4; }
.hm-door-ink { background: var(--ink); }
.hm-door-ic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--royal); color: var(--yellow); }
.hm-door-ink .hm-door-ic { background: var(--yellow); color: var(--ink); }
.hm-door .gs-ic { width: 30px; height: 30px; }
.hm-door h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.hm-door p { max-width: 30rem; color: var(--text); }
.hm-door-ink p { color: rgba(255, 255, 255, .88); }
.hm-door .gs-btn .gs-ic { width: 1.25em; height: 1.25em; }

/* ═════════ services ═════════ */
.hm-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.hm-service { padding: 2rem; border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: border-color .18s, transform .18s; }
.hm-service:hover { border-color: var(--navy-2); transform: translateY(-4px); }
.hm-service h3 { margin: 1.3rem 0 .5rem; font-size: 1.3rem; font-weight: 700; }
.hm-service p { color: var(--muted); font-size: .97rem; }

/* ═════════ admission steps ═════════ */
.hm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.hm-steps li { position: relative; padding-top: 1.2rem; border-top: 3px solid var(--royal); }
.hm-steps b { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -2.55rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 800 1.4rem var(--display); box-shadow: 0 0 0 6px var(--mist); }
.hm-steps h3 { margin: 1.1rem 0 .4rem; font-size: 1.3rem; font-weight: 700; }
.hm-steps p { color: var(--muted); }

/* ═════════ news ═════════ */
.hm-news { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1.6rem; max-width: calc(var(--n, 3) * 430px); }
.hm-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.hm-post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hm-post-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.hm-post-img > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hm-post-img.no-photo { display: grid; place-items: center; background: linear-gradient(160deg, var(--sky), #cfe0f4); }
.hm-post-img.no-photo > .hm-post-logo { width: 92px; height: 92px; object-fit: contain; }
.hm-tag { position: absolute; top: 1rem; left: 1rem; padding: .25rem .85rem; background: var(--yellow); color: var(--ink); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.hm-post-body { display: flex; flex-direction: column; flex: 1; gap: .55rem; padding: 1.6rem; }
.hm-post-body time { font-size: .88rem; color: var(--muted); font-feature-settings: "lnum", "tnum"; }
.hm-post-body h3 { font-size: 1.4rem; font-weight: 700; text-wrap: balance; }
.hm-post-text { color: var(--muted); font-size: .96rem; line-height: 1.6; }
.hm-post-body .gs-more { margin-top: auto; padding-top: .6rem; }
.hm-post:hover .gs-more .gs-ic { transform: translateX(4px); }
.hm-evdate { display: block; margin-bottom: .6rem; font-weight: 700; color: var(--navy-2); }

/* ═════════ testimonials ═════════ */
.hm-testis { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.hm-testi { position: relative; margin: 0; padding: 2.2rem 2rem 1.8rem; background: #fff; border-radius: 26px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 1.4rem; }
.hm-testi-q { width: 2.4rem; height: 2.4rem; color: var(--yellow-deep); stroke-width: 1.8; }
.hm-testi blockquote { margin: 0; font-size: 1.08rem; line-height: 1.7; color: var(--text); }
.hm-testi figcaption { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.hm-testi figcaption img, .hm-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.hm-avatar { display: grid; place-items: center; background: var(--royal); color: var(--yellow); font: 800 1.3rem var(--display); }
.hm-testi figcaption b { display: block; color: var(--ink); }
.hm-testi figcaption small { color: var(--muted); }

/* ═════════ gallery ═════════ */
.hm-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 1rem; }
.hm-mosaic figure { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--navy); }
.hm-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.hm-mosaic figure:hover img { transform: scale(1.05); }
.hm-mosaic figcaption { position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.1rem .9rem; background: linear-gradient(0deg, rgba(11, 28, 51, .85), transparent); color: #fff; font-size: .9rem; font-weight: 600; }
.hm-mosaic-1 { grid-template-columns: 1fr; grid-auto-rows: clamp(260px, 40vw, 480px); }
.hm-mosaic-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 32vw, 420px); }
.hm-mosaic-3 figure:first-child, .hm-mosaic-4 figure:first-child, .hm-mosaic-5 figure:first-child { grid-column: span 2; grid-row: span 2; }
.hm-mosaic-3 figure:nth-child(n+2) { grid-column: span 2; }
.hm-mosaic-4 figure:nth-child(4) { grid-column: span 2; }

/* ═════════ partners ═════════ */
.hm-partners { padding: 3rem 0; border-block: 1px solid var(--line); }
.hm-partners ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem 3.4rem; margin: 0; padding: 0; list-style: none; }
.hm-partners img { max-width: 160px; max-height: 60px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.hm-partners a:hover img, .hm-partners a:focus-visible img { filter: none; opacity: 1; }

/* ═════════ pre-registration ═════════ */
.hm-enrol { background: radial-gradient(70% 90% at 100% 0%, rgba(35, 74, 125, .75), transparent 60%), var(--ink); }
.hm-enrol-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.hm-enrol h2 { color: #fff; font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.04; font-weight: 800; max-width: 14ch; }
.hm-enrol-text { margin: 1.5rem 0 2rem; max-width: 32rem; font-size: 1.14rem; color: rgba(255, 255, 255, .9); }
.hm-enrol-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hm-formcard { padding: clamp(1.6rem, 3vw, 2.5rem); background: #fff; border-radius: 30px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); }
.hm-formcard h3 { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.hm-formcard .gs-btn { margin-top: .4rem; }

/* ═════════ visit ═════════ */
.hm-visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.hm-visit.no-map { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.hm-contact { margin: 1.8rem 0 2rem; padding: 0; list-style: none; display: grid; gap: 1.2rem; }
.hm-contact li { display: flex; align-items: center; gap: 1rem; }
.hm-contact b { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.hm-contact a, .hm-contact span:not(.gs-ico) { font-weight: 600; color: var(--ink); text-decoration: none; }
.hm-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hm-map { min-height: 400px; border-radius: 28px; overflow: hidden; background: var(--mist); border: 1px solid var(--line); display: grid; }
.hm-map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }

/* ═════════ responsive ═════════ */
@media (max-width: 991.98px) {
    .hm-hero-in { grid-template-columns: 1fr; }
    .hm-art { width: min(100%, 330px); order: -1; }
    .hm-hero { padding-bottom: 9rem; }
    .hm-split { grid-template-columns: 1fr; }
    .hm-split-text { padding: 3.5rem 1.5rem; }
    .hm-split-media { min-height: 360px; }
    .hm-dir-grid, .hm-enrol-grid, .hm-visit { grid-template-columns: 1fr; }
    .hm-dir-photo { max-width: 420px; }
    .hm-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
    .hm-mosaic-1 { grid-template-columns: 1fr; }
    .hm-news { grid-template-columns: 1fr 1fr; max-width: none; }
    .hm-news > :nth-child(3):last-child { grid-column: span 2; }
}
@media (max-width: 575.98px) {
    .hm-hero { min-height: 0; padding-top: 3rem; padding-bottom: 8rem; }
    .hm-quick { margin-top: -3.4rem; grid-template-columns: 1fr; }
    .hm-news { grid-template-columns: 1fr; }
    .hm-pnav { width: 44px; height: 44px; margin-top: -22px; }
    .hm-pprev { left: -.2rem; }
    .hm-pnext { right: -.2rem; }
    .hm-news > :nth-child(3):last-child { grid-column: auto; }
    .hm-mosaic, .hm-mosaic-2 { grid-auto-rows: 170px; }
    .hm-mosaic-3 figure:nth-child(n+2), .hm-mosaic-4 figure:nth-child(4) { grid-column: auto; }
    .hm-stat + .hm-stat { border-left: 0; }
    .hm-cta .gs-btn, .hm-split-actions .gs-btn, .hm-enrol-actions .gs-btn { width: 100%; }
    .hm-level { min-height: 400px; }
}
@media (max-width: 640px) {
    .hm-results { --gap: 2.4rem; flex-direction: column; align-items: center; }
    .hm-result + .hm-result::before { top: calc(var(--gap) / -2); bottom: auto; left: 25%; width: 50%; height: 1px; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-hero-copy > *, .hm-art { animation: none; }
    .hm-pointsbg img { position: absolute; height: 100%; }
    .hm-pslider .swiper-slide { transition: none; }
}
