/* Iceberg School public site. Mobile first; colours only from static/brand/tokens.css. */

:root {
    --ink: var(--brand-text);
    --muted: var(--brand-muted);
    --line: var(--brand-border);
    --surface: #ffffff;
    --wrap: 1200px;
    --gutter: clamp(16px, 4.5vw, 40px);
    --header-h: 64px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --out: cubic-bezier(.16, 1, .3, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --line: rgb(var(--brand-primary-rgb) / .1);
    --shadow-card: 0 1px 2px rgb(var(--brand-primary-deep-rgb) / .04), 0 14px 34px rgb(108 60 20 / .07);
    --shadow-lift: 0 2px 6px rgb(var(--brand-primary-deep-rgb) / .06), 0 26px 52px rgb(108 60 20 / .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--brand-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--brand-cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-primary-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.012em; font-family: var(--brand-font-display); font-weight: 600; font-variation-settings: "SOFT" 100; }
::selection { background: rgb(var(--brand-gold-rgb) / .35); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-primary-hover); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand-primary); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Placeholder for a fact the owner has not confirmed yet. */

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 50px; padding: .8rem 1.4rem;
    border: 1.5px solid transparent; border-radius: var(--brand-radius-input);
    font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand-primary); color: var(--brand-on-primary); box-shadow: 0 10px 24px rgb(var(--brand-primary-rgb) / .28); }
.btn-primary:hover { background: var(--brand-primary-hover); color: var(--brand-on-primary); box-shadow: 0 14px 30px rgb(var(--brand-primary-rgb) / .32), 0 0 0 3px rgb(var(--brand-gold-rgb) / .25); }
.btn-primary, .btn-light { position: relative; overflow: hidden; }
.btn-primary::after, .btn-light::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%);
    transition: transform .8s var(--ease); pointer-events: none;
}
.btn-primary:hover::after, .btn-light:hover::after { transform: translateX(120%); }
.btn-light { background: #fff; color: var(--brand-primary); box-shadow: 0 10px 28px rgb(var(--brand-primary-deep-rgb) / .35); }
.btn-light:hover { color: var(--brand-primary-hover); }
.btn-ghost { border-color: rgb(255 255 255 / .45); color: #fff; background: rgb(255 255 255 / .06); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / .12); }
.btn-outline { border-color: var(--line); color: var(--brand-primary); background: #fff; }
.btn-outline:hover { border-color: var(--brand-primary); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; }
/* Padding gives the link a finger-sized tap area; the negative margin keeps the layout as before. */
.link-arrow { background: linear-gradient(var(--brand-gold), var(--brand-gold)) no-repeat 0 calc(100% - .55rem) / 0 2px; padding-block: .6rem; margin-block: -.6rem; transition: background-size .35s var(--ease); }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.hdr {
    position: sticky; top: 0; z-index: 50;
    background: rgb(var(--brand-cream-rgb) / .9);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    view-transition-name: site-header;
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s, transform .45s var(--out);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgb(var(--brand-primary-deep-rgb) / .06); }
.hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.hdr-logo { display: flex; align-items: center; min-height: 44px; }
.hdr-logo img { height: 38px; width: auto; }
.nav { display: none; }
.nav a { display: inline-flex; white-space: nowrap; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; padding: .45rem .7rem; border-radius: var(--brand-radius-chip); }
/* Russian and English labels are longer: tighten the menu and drop the Portal button (it stays in the
   menu sheet and footer) until there is room. */
.hdr-actions .btn { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
    html:not([lang="uz"]) .nav a { padding: .45rem .5rem; font-size: .9rem; }
    html:not([lang="uz"]) .hdr-portal.btn-outline { display: none; }
}
/* Fraunces has no Cyrillic, so Russian headings use Literata, a warm serif with Cyrillic. */
html[lang="ru"] { --brand-font-display: 'Literata', 'Fraunces', Georgia, serif; }
.nav a:hover { background: var(--brand-paper); color: var(--brand-primary); }
.nav a[aria-current="page"] { color: var(--brand-primary); background: var(--brand-paper); }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.hdr-actions .btn { min-height: 44px; padding: .55rem 1rem; font-size: .92rem; }
.hdr-portal { display: none; }
.lang { position: relative; }
.lang select {
    appearance: none; -webkit-appearance: none;
    min-height: 44px; padding: 0 1.9rem 0 .75rem; border: 1px solid var(--line); border-radius: var(--brand-radius-chip);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A4747' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center;
    color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
}
.menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--brand-radius-input);
    background: #fff; color: var(--brand-primary); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .icon-close { display: none; }
html.menu-open .menu-btn .icon-open { display: none; }
html.menu-open .menu-btn .icon-close { display: block; }

/* Mobile menu: a full-height maroon sheet with the crest. */
.sheet {
    position: fixed; inset: var(--header-h) 0 0; z-index: 45;
    display: flex; flex-direction: column; gap: clamp(16px, 3.5vh, 28px); gap: clamp(16px, 3.5dvh, 28px);
    padding: clamp(12px, 3dvh, 28px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: radial-gradient(120% 70% at 100% 0%, rgb(var(--brand-primary-hover-rgb) / .55), transparent 60%), var(--brand-primary-deep);
    color: #fff; overflow-y: auto;
    visibility: hidden; clip-path: circle(0 at calc(100% - var(--gutter) - 23px) -23px);
    transition: clip-path .5s var(--out), visibility 0s .5s;
}
html.menu-open .sheet { visibility: visible; clip-path: circle(150% at calc(100% - var(--gutter) - 23px) -23px); transition: clip-path .7s var(--out); }
html.menu-open body { overflow: hidden; }
/* Fixed, so the crest never adds scroll room to the sheet (the sheet's clip-path still clips it). */
.sheet::after {
    content: ""; position: fixed; right: -60px; bottom: -40px; width: 300px; height: 360px;
    background: url("../school/img/crest-white.png") no-repeat center / contain; opacity: .06; pointer-events: none;
}
.sheet nav { display: grid; gap: 2px; position: relative; z-index: 1; }
.sheet nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: clamp(6px, 1.6dvh, 14px) 4px; border-bottom: 1px solid rgb(255 255 255 / .1);
    color: #fff; font-size: clamp(1.08rem, 3.3dvh, 1.45rem); font-weight: 800; letter-spacing: -0.01em; text-decoration: none;
}
.sheet nav a::after { content: "→"; font-weight: 500; color: var(--brand-gold-soft); }
.sheet nav a { font-family: var(--brand-font-display); font-weight: 600; }
.sheet nav a[aria-current="page"] { color: var(--brand-gold-soft); }
.sheet .sheet-actions { display: grid; gap: 10px; position: relative; z-index: 1; }
html.menu-open .sheet nav a, html.menu-open .sheet .sheet-actions { animation: sheet-in .6s .1s var(--out) both; }
html.menu-open .sheet nav a:nth-child(2) { animation-delay: .14s; }
html.menu-open .sheet nav a:nth-child(3) { animation-delay: .18s; }
html.menu-open .sheet nav a:nth-child(4) { animation-delay: .22s; }
html.menu-open .sheet nav a:nth-child(5) { animation-delay: .26s; }
html.menu-open .sheet nav a:nth-child(6) { animation-delay: .3s; }
html.menu-open .sheet nav a:nth-child(7) { animation-delay: .34s; }
html.menu-open .sheet .sheet-actions { animation-delay: .4s; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px); } }

@media (min-width: 1024px) {
    :root { --header-h: 76px; }
    .hdr-logo img { height: 44px; }
    .nav { display: flex; align-items: center; gap: 2px; }
    .hdr-portal { display: inline-flex; }
    .menu-btn, .sheet { display: none; }
}

/* ---------- Mobile action dock ---------- */
.dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .5s var(--out);
}
.dock.is-visible { transform: none; }
.dock .btn { min-height: 48px; padding: .6rem .5rem; font-size: clamp(.84rem, 3.9vw, .95rem); white-space: nowrap; }
/* The dock's room sits inside the footer, so no strip of page colour shows below it. */
body.has-dock .ftr-bottom { padding-bottom: calc(22px + 72px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .dock { display: none; } body.has-dock .ftr-bottom { padding-bottom: 22px; } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(64px, 10vw, 112px); }
.sec-tight { padding-block: clamp(48px, 7vw, 80px); }
.sec-white { background: var(--surface); }
.sec-tint { background: var(--brand-paper); }
.kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-gold-ink);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-gold); }
.sec-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(28px, 5vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.h2 { font-size: clamp(2rem, 6.2vw, 3.2rem); }
.h3 { font-size: clamp(1.25rem, 3.6vw, 1.5rem); letter-spacing: -0.01em; }
.lead { font-size: clamp(1.02rem, 2.6vw, 1.18rem); color: var(--muted); line-height: 1.65; }

/* ---------- Hero ---------- */
/* Warm paper: cream ground, a soft gold glow and a faint grain. */
.hero, .page-hero {
    position: relative; overflow: hidden; isolation: isolate; color: var(--ink);
    background:
        radial-gradient(55% 60% at 88% 18%, rgb(var(--brand-gold-rgb) / .22), transparent 70%),
        radial-gradient(50% 55% at 0% 100%, rgb(var(--brand-primary-rgb) / .07), transparent 70%),
        var(--brand-cream);
}
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .28; mix-blend-mode: multiply; pointer-events: none; }
.curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 5vw, 64px); color: var(--surface); pointer-events: none; }
.curve.to-cream { color: var(--brand-cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: clamp(36px, 8vw, 96px) clamp(72px, 11vw, 140px); align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    padding: .4rem .95rem .4rem .45rem; border-radius: 999px;
    background: #fff; border: 1px solid rgb(var(--brand-gold-rgb) / .45);
    box-shadow: 0 6px 18px rgb(var(--brand-primary-deep-rgb) / .06);
    font-size: .82rem; font-weight: 700; color: var(--brand-primary);
}
.hero-badge img { width: 24px; height: auto; }
.hero h1 { margin-top: 20px; font-size: clamp(2.5rem, 10vw, 4.3rem); line-height: 1.04; color: var(--brand-primary); }
.hero h1 .soft { color: var(--brand-gold-ink); }
.swash { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14c60-9 140-12 294-6' fill='none' stroke='%23C9973F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 92% / 0% .3em; padding-bottom: .08em; transition: background-size 1.1s .9s var(--ease); }
.in .swash, html:not(.js) .swash { background-size: 100% .3em; }
.hero .lead { margin-top: 18px; max-width: 560px; }
.hero-cta { display: grid; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta svg { width: 17px; height: 17px; color: var(--brand-gold-ink); }
@media (min-width: 560px) { .hero-cta { display: flex; flex-wrap: wrap; } }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; } }

/* Hero art: the school's poster shown whole, in a gold-framed card with the crest's symbols around it. */
.hero-poster { position: relative; width: min(100%, 400px); margin-inline: auto; padding: 18px 14px 26px; }
.hero-poster-glow { position: absolute; inset: 8% 0 4%; border-radius: 50%; background: radial-gradient(circle, rgb(var(--brand-gold-rgb) / .4), transparent 68%); filter: blur(18px); animation: pulse 6s ease-in-out infinite; }
.hero-poster-frame { position: relative; margin: 0; animation: float 8s ease-in-out infinite; }
.hero-poster-frame::before {
    content: ""; position: absolute; inset: 12px -12px -12px 12px; border-radius: 28px;
    border: 2px solid rgb(var(--brand-gold-rgb) / .6);
}
.hero-poster-frame img {
    position: relative; width: 100%; height: auto; aspect-ratio: 1095 / 1437; border-radius: 28px;
    box-shadow: 0 2px 6px rgb(var(--brand-primary-deep-rgb) / .12), 0 34px 70px rgb(var(--brand-primary-deep-rgb) / .32);
}
.hero-poster .orb {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .9rem .35rem .35rem; border-radius: 999px; background: #fff; color: var(--brand-primary);
    border: 1px solid rgb(var(--brand-gold-rgb) / .35);
    font-weight: 800; font-size: .8rem; white-space: nowrap; box-shadow: 0 14px 30px rgb(var(--brand-primary-deep-rgb) / .18);
    animation: float 6s ease-in-out infinite;
}
.hero-poster .orb .icon-tile { width: 32px; height: 32px; border-radius: 999px; box-shadow: none; }
.hero-poster .orb .icon-tile svg { width: 19px; height: 19px; }
/* Chips sit on the background and jacket, clear of the face and the logo lettering. */
.hero-poster .o1 { top: 7%; left: -4px; animation-delay: -1s; }
.hero-poster .o2 { top: 40%; right: -6px; animation-delay: -3s; }
.hero-poster .o3 { bottom: 4%; right: 6%; animation-delay: -5s; }
@media (min-width: 960px) { .hero-poster { width: min(100%, 460px); } }
@media (min-width: 560px) { .hero-poster .orb { font-size: .86rem; } .hero-poster .o1 { left: -28px; } .hero-poster .o2 { right: -34px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes pulse { 50% { opacity: .65; transform: scale(1.06); } }

/* Page heroes for inner pages */
.page-hero::after {
    content: ""; position: absolute; z-index: -1; right: -60px; bottom: -70px; width: 300px; height: 360px;
    background: url("../school/img/crest-maroon.png") no-repeat center / contain; opacity: .06;
}
.page-hero .wrap { padding-block: clamp(36px, 7vw, 80px) clamp(64px, 10vw, 120px); display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(2.3rem, 8.4vw, 3.9rem); max-width: 900px; color: var(--brand-primary); }
.page-hero .lead { max-width: 640px; }
.page-hero.no-watermark::after { display: none; }
/* Coming-soon page: the English version sits under the Uzbek text as a quieter second voice. */
.coming-en { display: grid; gap: 6px; max-width: 640px; margin-top: 6px; padding: 14px 18px; border-left: 3px solid var(--brand-gold); border-radius: 0 14px 14px 0; background: rgb(255 255 255 / .6); color: var(--muted); }
.coming-en-title { font-family: var(--brand-font-display); font-size: 1.25rem; font-weight: 600; color: var(--brand-primary); }
.coming-en-note { font-size: .9rem; font-style: italic; color: var(--muted); }
.page-hero-split { align-items: center; }
@media (min-width: 900px) { .page-hero-split { grid-template-columns: 1.1fr .9fr; gap: 40px; } }
.page-hero-text { display: grid; gap: 14px; }

/* Programs hero: the crest's mountain draws itself, with the school stages as the way up. */
.art-climb { width: min(100%, 440px); margin-inline: auto; color: var(--brand-primary); }
.art-climb svg { width: 100%; height: auto; overflow: visible; }
.art-climb .draw { fill: none; stroke: var(--brand-primary); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.6, 0, .2, 1) forwards; }
.art-climb .facet { stroke: var(--brand-gold); stroke-width: 1.6; animation-delay: .8s; }
.art-climb .fill { fill: url(#climbfill); opacity: 0; animation: fade-in 1.2s 1.4s ease forwards; }
.art-climb .ground { fill: none; stroke: rgb(var(--brand-primary-rgb) / .25); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s ease forwards; }
.art-climb .star { fill: var(--brand-gold); animation: twinkle 3s ease-in-out infinite; }
.art-climb .stop { opacity: 0; animation: pop-in .5s ease forwards; }
.art-climb text { fill: var(--brand-primary); font: 600 19px var(--brand-font-display); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes twinkle { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .art-climb .draw, .art-climb .ground { stroke-dashoffset: 0; } .art-climb .fill, .art-climb .stop { opacity: 1; } }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--brand-primary); text-decoration: none; font-weight: 600; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { gap: 24px; } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 560px) and (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    padding: clamp(22px, 4vw, 30px); border: 1px solid var(--line); border-radius: var(--brand-radius-card);
    background: var(--surface); box-shadow: var(--shadow-card);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
a.card { color: inherit; text-decoration: none; }
a.card::before, .card.lift::before {
    content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-soft)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: 2;
}
a.card:hover, .card.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgb(var(--brand-gold-rgb) / .45); }
a.card:hover::before, .card.lift:hover::before { transform: scaleX(1); }
.card p { color: var(--muted); }
.icon-tile {
    width: 56px; height: 56px; flex: none; display: grid; place-items: center;
    border-radius: 16px; background: linear-gradient(145deg, var(--brand-primary-hover), var(--brand-primary));
    color: var(--brand-gold-soft);
    box-shadow: 0 10px 22px rgb(var(--brand-primary-rgb) / .28), inset 0 0 0 1px rgb(var(--brand-gold-rgb) / .35);
    transition: transform .35s var(--ease);
}
.card:hover .icon-tile { transform: rotate(-6deg) scale(1.05); }
.icon-tile svg { width: 30px; height: 30px; }
.icon-tile.soft { background: var(--brand-paper); color: var(--brand-primary); box-shadow: inset 0 0 0 1px rgb(var(--brand-gold-rgb) / .3); }

/* Pillars: the three fields of the crest */
.pillar { overflow: hidden; }
.pillar .num { position: absolute; right: 18px; top: 4px; font-family: var(--brand-font-display); font-size: 5.2rem; font-weight: 600; line-height: 1; color: rgb(var(--brand-gold-rgb) / .2); z-index: 0; }
.pillar > * { position: relative; z-index: 1; }

/* Stage cards (primary / middle / high) */
.stage { padding: 0; overflow: hidden; }
.stage-top {
    position: relative; display: flex; align-items: flex-end; justify-content: space-between;
    min-height: 150px; padding: 22px 24px; color: #fff; overflow: hidden;
    background: linear-gradient(150deg, var(--brand-primary-hover), var(--brand-primary-deep));
}
.stage:nth-child(2) .stage-top { background: linear-gradient(150deg, var(--brand-primary), var(--brand-primary-deep)); }
.stage:nth-child(3) .stage-top { background: linear-gradient(150deg, var(--brand-primary-deep), #000); }
.stage-top::after { content: ""; position: absolute; right: -24px; top: -20px; width: 150px; height: 180px; background: url("../school/img/crest-white.png") no-repeat center / contain; opacity: .1; }
.stage-grades { font-family: var(--brand-font-display); font-size: 2.9rem; font-weight: 600; line-height: 1; }
.stage-grades small { display: block; margin-top: 6px; font-family: var(--brand-font); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-gold-soft); }
.stage-body { display: grid; gap: 10px; padding: 22px 24px 26px; }
.stage-body ul { display: grid; gap: 8px; margin-top: 4px; }
.stage-body li { display: flex; gap: .6rem; color: var(--muted); font-size: .95rem; }
.stage-body li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .55em; border-radius: 2px; background: var(--brand-gold); transform: rotate(45deg); }

/* Courses band */
.courses-band { position: relative; overflow: hidden; border-radius: calc(var(--brand-radius-card) + 4px); background: var(--brand-primary); color: #fff; padding: clamp(28px, 6vw, 56px); display: grid; gap: 26px; isolation: isolate; }
.courses-band > * { min-width: 0; }
.courses-band::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -50px; width: 260px; height: 300px; background: url("../school/img/crest-white.png") no-repeat center / contain; opacity: .08; }
.courses-band .kicker { color: var(--brand-gold-soft); }
.courses-band p { color: rgb(255 255 255 / .82); }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 700; background: rgb(255 255 255 / .08); border: 1px solid rgb(var(--brand-gold-rgb) / .45); color: #fff; }
/* Gently scrolling strip of course names. */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee .marquee-track { animation-direction: reverse; animation-duration: 34s; }
.marquee + .marquee { margin-top: 10px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
.chip.light { background: var(--brand-paper); border-color: var(--line); color: var(--brand-primary); }
@media (min-width: 900px) { .courses-band { grid-template-columns: 1.2fr 1fr; align-items: center; } }

/* App section with a phone mock-up */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .app-grid { grid-template-columns: 1fr 1fr; } }
.feature-list { display: grid; gap: 14px; margin-top: 8px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.feature-list .icon-tile svg { width: 22px; height: 22px; }
.feature-list strong { display: block; font-weight: 700; }
.feature-list div > span { color: var(--muted); font-size: .95rem; }
.phone {
    position: relative; width: min(300px, 82vw); margin-inline: auto; aspect-ratio: 300 / 610;
    border-radius: 44px; padding: 12px; background: #140808;
    box-shadow: 0 40px 80px rgb(var(--brand-primary-deep-rgb) / .35), inset 0 0 0 2px rgb(255 255 255 / .08);
}
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: #FAFAFA; display: flex; flex-direction: column; font-size: 12px; }
.phone-head { background: var(--brand-primary); color: #fff; padding: 34px 16px 46px; border-radius: 0 0 26px 26px; display: grid; gap: 12px; }
.phone-brand { display: flex; align-items: center; gap: 8px; }
.phone-brand img { width: 28px; height: 28px; object-fit: contain; }
.phone-brand b { font-size: 13px; letter-spacing: .06em; }
.phone-brand small { display: block; font-size: 10px; color: var(--brand-on-primary-soft); }
.phone-hi { font-size: 19px; font-weight: 800; }
.phone-sub { font-size: 11px; color: var(--brand-on-primary-soft); }
.phone-body { padding: 0 12px; margin-top: -30px; display: grid; gap: 10px; }
.phone-card { background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 8px 20px rgb(0 0 0 / .08); display: grid; gap: 4px; }
.phone-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.phone-card .tag { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-primary); }
.phone-card .ok { font-size: 9px; font-weight: 700; color: #17633A; background: #E3F4EA; padding: 2px 7px; border-radius: 999px; }
.phone-card .big { font-size: 15px; font-weight: 800; }
.phone-card .muted { color: var(--muted); font-size: 10px; }
.phone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.phone-grid span { display: grid; place-items: center; gap: 4px; font-size: 9px; font-weight: 700; color: var(--ink); }
.phone-grid i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-style: normal; font-weight: 800; color: var(--brand-primary); font-size: 12px; }
.phone-bar { height: 8px; border-radius: 99px; background: var(--brand-paper); overflow: hidden; }
.phone-bar i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-hover)); border-radius: inherit; }
.phone-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 8px 16px; border-top: 1px solid var(--line); background: #fff; }
.phone-tabs span { display: grid; justify-items: center; gap: 4px; font-size: 9px; font-weight: 700; color: var(--muted); }
.phone-tabs span::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--brand-paper); }
.phone-tabs .on { color: var(--brand-primary); }
.phone-tabs .on::before { background: var(--brand-primary); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; }
.step::before {
    content: counter(step); display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 999px; background: var(--brand-primary); color: var(--brand-gold-soft);
    font-family: var(--brand-font-display); font-weight: 600; font-size: 1.3rem;
    box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px rgb(var(--brand-gold-rgb) / .6);
}

/* CTA band */
.cta {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
    background:
        radial-gradient(60% 70% at 50% 110%, rgb(var(--brand-gold-rgb) / .28), transparent 70%),
        radial-gradient(80% 90% at 50% 120%, rgb(var(--brand-primary-hover-rgb) / .85), transparent 70%), var(--brand-primary-deep);
}
.cta .kicker { color: var(--brand-gold-soft); }
.cta .wrap { display: grid; justify-items: center; gap: 18px; padding-block: clamp(64px, 10vw, 104px); }
.cta img.crest { width: 74px; height: auto; }
.cta h2 { font-size: clamp(2rem, 6.4vw, 3.2rem); max-width: 760px; }
.cta p { color: rgb(255 255 255 / .8); max-width: 560px; }
.cta .hero-cta { justify-content: center; width: 100%; }
@media (max-width: 559px) { .cta .hero-cta .btn { width: 100%; } }

/* ---------- Forms ---------- */
.form-card { border-radius: var(--brand-radius-card); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lift); padding: clamp(22px, 5vw, 40px); display: grid; gap: 18px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: .9rem; font-weight: 700; color: var(--ink); }
.field .hint { font-weight: 500; color: var(--muted); }
.control {
    width: 100%; min-height: 52px; padding: .8rem .95rem;
    border: 1.5px solid var(--line); border-radius: var(--brand-radius-input);
    background: var(--brand-input-bg); color: var(--ink); font: inherit; font-size: 1rem;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}
textarea.control { min-height: 120px; resize: vertical; }
select.control { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background: var(--brand-input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234C0909' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .95rem center; }
.control:focus { outline: 0; border-color: var(--brand-primary-hover); background-color: #fff; box-shadow: 0 0 0 4px rgb(var(--brand-primary-rgb) / .12); }
.control[aria-invalid="true"] { border-color: var(--brand-danger); }
.phone-input { display: flex; }
.phone-input .prefix { display: flex; align-items: center; padding: 0 .85rem; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--brand-radius-input) 0 0 var(--brand-radius-input); background: var(--brand-paper); color: var(--brand-primary); font-weight: 800; }
.phone-input .control { border-radius: 0 var(--brand-radius-input) var(--brand-radius-input) 0; }
.err { min-height: 0; color: #B42318; font-size: .84rem; font-weight: 600; }
.err:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand-primary); }
.form-status { min-height: 1.2rem; text-align: center; color: #B42318; font-size: .9rem; font-weight: 650; }
.form-note { text-align: center; color: var(--muted); font-size: .82rem; }
.success { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 12px 0; }
.success[hidden], form[hidden] { display: none; }
.success-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px; background: var(--brand-paper); color: var(--brand-primary); }
.success-mark svg { width: 36px; height: 36px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Side panels next to the form */
.panel-maroon { position: relative; overflow: hidden; border-radius: var(--brand-radius-card); background: var(--brand-primary); color: #fff; padding: clamp(24px, 4vw, 34px); display: grid; gap: 16px; }
.panel-maroon img.crest { width: 54px; }
.panel-maroon dl { margin: 0; display: grid; }
.panel-maroon dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / .16); }
.panel-maroon dl div:last-child { border-bottom: 0; }
.panel-maroon dd { margin: 0; font-weight: 700; text-align: right; }
.panel-maroon .note { font-size: .86rem; color: var(--brand-on-primary-soft); }
.panel-tint { border-radius: var(--brand-radius-card); background: var(--brand-paper); padding: clamp(22px, 4vw, 30px); display: grid; gap: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; } .split .sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; } }
.split .sticky { display: grid; gap: 20px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow-card); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 1.02rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--brand-paper); color: var(--brand-gold-ink); font-size: 1.2rem; font-weight: 700; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }
.faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .5s var(--out), opacity .4s var(--out), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* Course cards */
.course { gap: 10px; }
.course .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course .code { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-paper); color: var(--brand-primary); box-shadow: inset 0 0 0 1px rgb(var(--brand-gold-rgb) / .3); font-family: var(--brand-font-display); font-weight: 600; font-size: 1.15rem; }
.course .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.course .meta span { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--brand-bg); border: 1px solid var(--line); padding: .2rem .55rem; border-radius: 999px; }

/* Leader's welcome */
.leader { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 900px) { .leader { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.leader-photo { position: relative; margin: 0; width: min(100%, 420px); justify-self: center; }
.leader-photo::before {
    content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: calc(var(--brand-radius-card) + 6px);
    border: 2px solid rgb(var(--brand-gold-rgb) / .55); z-index: 0;
}
.leader-photo picture, .hero-poster-frame picture { display: block; }
.leader-photo img {
    position: relative; z-index: 1; width: 100%; height: auto;
    border-radius: calc(var(--brand-radius-card) + 6px); box-shadow: var(--shadow-lift);
}
.leader-text { display: grid; gap: 18px; }
.leader blockquote { margin: 0; position: relative; padding-top: 34px; }
.leader blockquote::before {
    content: "\201C"; position: absolute; top: -18px; left: -4px; font-family: var(--brand-font-display); font-size: 6rem; line-height: 1; color: var(--brand-gold);
}
.leader blockquote p { font-family: var(--brand-font-display); font-weight: 500; font-size: clamp(1.35rem, 4.4vw, 1.9rem); line-height: 1.35; color: var(--brand-primary); font-variation-settings: "SOFT" 100; }
.leader-sign { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--brand-gold); }
.leader-sign strong { font-size: 1.05rem; }
.leader-sign span { color: var(--muted); font-size: .92rem; }

/* Campus photos (About): a swipeable row on every screen. Phones show one photo with the next
   peeking in; wide screens show three at a time with arrow buttons (site.js). Square frames suit the
   mix of portrait and landscape photos. */
.campus-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.campus-nav { display: none; gap: 10px; flex: none; margin-bottom: clamp(28px, 5vw, 48px); }
.campus-btn {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
    border: 1.5px solid var(--line); background: var(--surface); color: var(--brand-primary);
    transition: background-color .2s, border-color .2s, opacity .2s, transform .2s var(--ease);
}
.campus-btn svg { width: 20px; height: 20px; }
.campus-btn[data-scroll-prev] svg { transform: rotate(180deg); }
.campus-btn:hover:not(:disabled) { border-color: var(--brand-primary); transform: translateY(-1px); }
.campus-btn:disabled { opacity: .35; cursor: default; }
.campus {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-behavior: smooth;
}
.campus::-webkit-scrollbar { display: none; }
.campus > .campus-photo { flex: 0 0 80%; scroll-snap-align: start; }
.campus-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--brand-radius-card); box-shadow: var(--shadow-card); background: var(--brand-paper); }
.campus-photo img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--out); }
.campus-photo:hover img { transform: scale(1.03); }
.campus-main img { object-position: 50% 22%; }
.campus-photo figcaption {
    position: absolute; left: 14px; right: 14px; bottom: 14px; width: fit-content; padding: .4rem .85rem; border-radius: 14px;
    background: rgb(255 255 255 / .92); color: var(--brand-primary); font-size: .85rem; font-weight: 700; line-height: 1.35;
    box-shadow: 0 6px 16px rgb(var(--brand-primary-deep-rgb) / .15);
}
@media (min-width: 900px) {
    .campus-nav { display: flex; }
    .campus { gap: 20px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
    .campus > .campus-photo { flex-basis: calc((100% - 40px) / 3); }
}
@media (prefers-reduced-motion: reduce) { .campus { scroll-behavior: auto; } }

/* Team group photo (About): wide frame that trims ceiling and floor, keeping every face in view. */
.team-photo { position: relative; margin: 0 auto clamp(28px, 5vw, 48px); max-width: 960px; }
.team-photo::before {
    content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: calc(var(--brand-radius-card) + 6px);
    border: 2px solid rgb(var(--brand-gold-rgb) / .55);
}
.team-photo img {
    position: relative; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 62%;
    border-radius: calc(var(--brand-radius-card) + 6px); box-shadow: var(--shadow-lift);
}
@media (max-width: 559px) { .team-photo::before { inset: 10px -8px -10px 8px; } }

/* People */
.person { align-items: center; text-align: center; }
.person img { width: 112px; height: 112px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgb(var(--brand-gold-rgb) / .6), 0 16px 30px rgb(108 60 20 / .18); }
.person .role { font-size: .9rem; }

/* Contact */
.contact-list { display: grid; gap: 12px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.contact-list .icon-tile svg { width: 20px; height: 20px; }
.contact-list a > span:last-child, .contact-list div > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact-list small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }

/* News */
.news-card { padding: 0; overflow: hidden; }
.news-card .media { aspect-ratio: 16 / 10; background: var(--brand-paper); }
.news-card .media img, .news-card .media video { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { display: grid; gap: 8px; padding: 20px 22px 24px; }
.news-card.featured .body { gap: 12px; padding: clamp(22px, 4vw, 40px); }
.news-card.featured p { color: var(--muted); }
.news-card.featured:not(.has-poster) p:last-child { color: var(--brand-primary); font-weight: 700; }
.news-more { margin-top: 24px; }
.stat { display: grid; gap: 6px; align-content: start; }
.stat-num { font-family: var(--brand-font-display); font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.05; color: var(--brand-primary); }
@media (max-width: 559px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .stats .card { padding: 18px 16px; } }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.tag-list li { padding: .45rem .8rem; border-radius: 999px; background: var(--brand-paper); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 600; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.map-links .btn { min-height: 44px; padding: .55rem 1rem; font-size: .9rem; }
.news-card.featured p.news-where { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-primary); font-weight: 700; }
.news-where svg { width: 18px; height: 18px; flex: none; }
/* Posters (invitations with their own text) are shown whole; the card links the full-size file. */
.news-card .media.poster { position: relative; display: block; aspect-ratio: auto; background: var(--brand-primary); }
.news-card .media.poster img { height: auto; object-fit: contain; }
.poster-zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--brand-primary); font-size: .8rem; font-weight: 700; box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
.poster-zoom svg { width: 14px; height: 14px; transform: rotate(-45deg); }
.news-card .media.poster-teaser img { object-position: 50% 12%; }
@media (min-width: 900px) {
    .news-card.featured { display: grid; grid-template-columns: 1fr 1.1fr; }
    .news-card.featured .media { aspect-ratio: auto; min-height: 100%; }
    .news-card.featured.has-poster { grid-template-columns: minmax(0, 560px) 1fr; }
    .news-card.featured .media.poster { min-height: 0; }
    .news-card.featured .body { align-content: center; }
}
.news-card time, .news-card .type { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-primary-hover); }
.empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(36px, 7vw, 64px) 20px; border: 1.5px dashed var(--line); border-radius: var(--brand-radius-card); background: #fff; }
.empty img { width: 64px; }

/* ---------- Footer ---------- */
.ftr { background: var(--brand-primary-deep); color: rgb(255 255 255 / .74); font-size: .95rem; }
.ftr a { color: rgb(255 255 255 / .82); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: clamp(52px, 8vw, 80px) 36px; }
.ftr-brand { display: grid; gap: 16px; justify-items: start; }
.ftr-brand img { width: 168px; height: auto; }
.ftr h3 { color: var(--brand-gold-soft); font-family: var(--brand-font); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.ftr ul { display: grid; gap: 10px; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; }
.ftr-family { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); font-size: .85rem; }
.ftr-family a { display: inline-flex; align-items: center; min-height: 32px; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(255 255 255 / .08); }
.socials svg { width: 20px; height: 20px; }
@media (min-width: 720px) { .ftr-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1024px) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }

/* ---------- Motion ---------- */
/* Smooth fade between pages in browsers that support cross-document view transitions. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .4s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
/* Headline words rise in one after another (site.js wraps them). */
.words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--out); }
.words.in .w > span { transform: none; }

/* Hero: the poster unveils upwards, its gold frame follows, then the crest's symbols pop in. */
.hero-poster-frame img { animation: unveil 1.2s var(--out) both; }
.hero-poster-frame::before { animation: frame-in 1.2s .9s var(--out) both; }
.hero-poster .orb { animation: orb-in .9s var(--spring) both, float 6s ease-in-out infinite; }
.hero-poster .o1 { animation-delay: 1.1s, -1s; }
.hero-poster .o2 { animation-delay: 1.25s, -3s; }
.hero-poster .o3 { animation-delay: 1.4s, -5s; }
/* Starts partly visible (not fully clipped) so the poster counts as shown on the first frame. */
@keyframes unveil { from { clip-path: inset(38% 0 0 0 round 28px); transform: scale(1.06); } to { clip-path: inset(0 0 0 0 round 28px); transform: none; } }
@keyframes frame-in { from { opacity: 0; transform: translate(-12px, -12px); } }
@keyframes orb-in { from { opacity: 0; transform: scale(.5); } }
/* Pointer tilt (set by site.js on fine pointers). */
.hero-poster-frame { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--out); }

/* Scroll-linked motion. site.js sets --p (0 → 1) on [data-scrub] elements; without JS or with reduced
   motion --p is never set and everything sits in its resting state. */
.hero[data-scrub] .hero-copy { opacity: calc(1 - var(--p, 0) * 1.1); transform: translate3d(0, calc(var(--p, 0) * -48px), 0); }
.hero[data-scrub] .hero-poster { transform: translate3d(0, calc(var(--p, 0) * 90px), 0) scale(calc(1 - var(--p, 0) * .06)); }
.page-hero[data-scrub] .wrap { opacity: calc(1 - var(--p, 0) * .9); transform: translate3d(0, calc(var(--p, 0) * -36px), 0); }
.page-hero[data-scrub]::after { transform: translate3d(0, calc(var(--p, 0) * 80px), 0) rotate(calc(var(--p, 0) * 8deg)); }
.stage-top[data-scrub]::after, .courses-band[data-scrub]::after { transform: translate3d(0, calc((var(--p, .5) - .5) * 60px), 0) rotate(calc((var(--p, .5) - .5) * 14deg)); }

/* Statement: the words light up one by one as it scrolls through the screen. */
.statement { background: var(--surface); padding-block: clamp(48px, 9vw, 112px) clamp(8px, 2vw, 24px); }
.statement .wrap { max-width: 1060px; display: grid; gap: 22px; }
.statement-text {
    font-family: var(--brand-font-display); font-weight: 500; font-variation-settings: "SOFT" 100;
    font-size: clamp(1.7rem, 5.4vw, 3.3rem); line-height: 1.24; letter-spacing: -0.015em; color: var(--brand-primary);
}
.statement-text .sw { opacity: clamp(.14, calc(var(--p, 1) * (var(--n) + 4) - var(--i)), 1); transition: opacity .25s linear; }

/* Parent app: the phone tilts up into place, then its cards settle and the progress bar fills. */
.phone-stage { perspective: 1400px; }
.phone-stage[data-scrub] .phone {
    transform-origin: 50% 100%;
    transform: translate3d(0, calc((1 - var(--p, 1)) * 80px), 0) rotateX(calc((1 - var(--p, 1)) * 28deg)) scale(calc(.9 + var(--p, 1) * .1));
}
.phone-bar i { transform-origin: left; }
html.js .phone-stage[data-scrub] .phone-bar i { transform: scaleX(0); transition: transform 1.4s .6s var(--out); }
html.js .phone-stage[data-scrub] .phone-body > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--out), transform .9s var(--out); }
html.js .phone-stage[data-scrub] .phone-body > :nth-child(2) { transition-delay: .1s; }
html.js .phone-stage[data-scrub] .phone-body > :nth-child(3) { transition-delay: .2s; }
html.js .phone-stage[data-scrub] .phone-body > :nth-child(4) { transition-delay: .3s; }
html.js .phone-stage.in .phone-bar i, html.js .phone-stage.in .phone-body > * { opacity: 1; transform: none; }

/* Soft gold light that follows the pointer across cards. */
@media (hover: hover) and (pointer: fine) {
    .card.lift::after, a.card::after {
        content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
        background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--brand-gold-rgb) / .13), transparent 50%);
        opacity: 0; transition: opacity .5s var(--out);
    }
    .card.lift:hover::after, a.card:hover::after { opacity: 1; }
}

/* ---------- Reveal on scroll (only when JS runs) ---------- */
html.js .rv {
    opacity: 0; transform: translate3d(0, 28px, 0) scale(.985); filter: blur(6px);
    transition: opacity .9s var(--out), transform 1.2s var(--out), filter .9s var(--out);
    transition-delay: var(--d, 0s);
}
html.js .rv.in { opacity: 1; transform: none; filter: none; }
html.js .rv.d1 { --d: .08s; }
html.js .rv.d2 { --d: .16s; }
html.js .rv.d3 { --d: .24s; }

