/* =====================================================================
   The school website, second edition.

   Loaded after the tokens in _site_head.php, so every colour here is the
   school's own: --primary, --secondary and --accent come from its settings.

   Direction: a prospectus, not a template. A serif for anything said with
   weight, a plain sans for everything read; one accent colour used for the
   things a parent should press; photographs given room. Motion is there to
   lead the eye down the page and is switched off for anyone who asks.
   ===================================================================== */

body.site-v2 {
    --v2-ink: var(--ink, #0f172a);
    --v2-soft: #f6f4ee;
    --v2-line: #e6e1d6;
    --v2-muted: #5b6472;
    --v2-radius: 6px;
    --nav-h: 76px;
    font-family: 'DM Sans', 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--v2-ink);
    overflow-x: hidden;
}
body.site-v2 .heading-serif { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; letter-spacing: -0.012em; }
body.site-v2 ::selection { background: var(--accent); color: var(--on-accent, #111); }
body.site-v2 :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- reading progress ---------- */
.v2-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.v2-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- top bar ---------- */
body.site-v2 .topbar { background: var(--primary-dark); color: rgba(255,255,255,.82); font-size: .8rem; border: 0; }
body.site-v2 .topbar a { color: inherit; }
body.site-v2 .topbar i { color: var(--accent); }

/* ---------- navigation ---------- */
body.site-v2 .nav { background: #fff; border-bottom: 1px solid var(--v2-line); transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
body.site-v2 .nav-row { padding: .7rem 0; min-height: var(--nav-h); }
body.site-v2 .nav.v2-stuck { box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); }
body.site-v2 .brand-logo { border-radius: var(--v2-radius); }
body.site-v2 .brand-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: -.01em; }
body.site-v2 .brand-tag { letter-spacing: .12em; text-transform: uppercase; font-size: .62rem; }
body.site-v2 .menu > a, body.site-v2 .menu .dropdown > a {
    position: relative; font-weight: 600; font-size: .92rem; color: var(--v2-ink); padding: .55rem .15rem; margin: 0 .55rem;
    background: transparent; border-radius: 0; text-decoration: none; transition: color .2s ease;
}
body.site-v2 .menu > a::after, body.site-v2 .menu .dropdown > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
body.site-v2 .menu > a:hover::after, body.site-v2 .menu > a.active::after, body.site-v2 .menu .dropdown:hover > a::after { transform: scaleX(1); }
body.site-v2 .menu > a.active { color: var(--primary); background: transparent; }
body.site-v2 .menu > a.nav-parent { border: 1px solid var(--v2-line); border-radius: var(--v2-radius); padding: .5rem .85rem; margin-left: .7rem; }
body.site-v2 .menu > a.nav-parent::after { display: none; }
body.site-v2 .menu > a.nav-parent:hover { border-color: var(--primary); color: var(--primary); }
body.site-v2 .dropdown-panel { border-radius: var(--v2-radius); border: 1px solid var(--v2-line); box-shadow: 0 22px 44px -22px rgba(15,23,42,.35); padding: .4rem; min-width: 210px; }
body.site-v2 .dropdown-panel a { border-radius: 4px; padding: .6rem .8rem; font-weight: 600; font-size: .9rem; }
body.site-v2 .dropdown-panel a:hover { background: var(--v2-soft); color: var(--primary); }
body.site-v2 .nav-cta { border-radius: var(--v2-radius) !important; background: var(--accent) !important; color: var(--on-accent, #111) !important; border: 0 !important; font-weight: 700 !important; box-shadow: none !important; }
body.site-v2 .nav-cta:hover { filter: brightness(.94); transform: none; }
body.site-v2 .burger { border-radius: var(--v2-radius); border: 1px solid var(--v2-line); width: 44px; height: 44px; background: #fff; color: var(--v2-ink); }

/* home: the menu sits on the photograph until the page moves */
body.site-v2.is-home .nav:not(.v2-stuck) { background: transparent; border-bottom-color: rgba(255,255,255,.18); }
body.site-v2.is-home .nav:not(.v2-stuck) .brand-name,
body.site-v2.is-home .nav:not(.v2-stuck) .menu > a,
body.site-v2.is-home .nav:not(.v2-stuck) .menu .dropdown > a { color: #fff; }
body.site-v2.is-home .nav:not(.v2-stuck) .brand-tag { color: rgba(255,255,255,.75); }
body.site-v2.is-home .nav:not(.v2-stuck) .brand-divider { background: rgba(255,255,255,.3); }
body.site-v2.is-home .nav:not(.v2-stuck) .menu > a.nav-parent { border-color: rgba(255,255,255,.4); }
body.site-v2.is-home .nav:not(.v2-stuck) .burger { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }

/* ---------- buttons ---------- */
.v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: var(--v2-radius); font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.v2-btn i { font-size: .85em; transition: transform .25s ease; }
.v2-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.v2-btn-accent { background: var(--accent); color: var(--on-accent, #111); }
.v2-btn-accent:hover { filter: brightness(.94); }
.v2-btn-solid { background: var(--primary); color: var(--on-primary, #fff); }
.v2-btn-solid:hover { background: var(--primary-dark); }
.v2-btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.v2-btn-line:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
.v2-btn-ghost { border-color: var(--v2-line); color: var(--v2-ink); background: #fff; }
.v2-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.v2-btn-block { width: 100%; }
.v2-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.v2-center { text-align: center; margin-top: 2.4rem; }

/* ---------- hero ---------- */
.v2-hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--nav-h) - 1px); min-height: min(100svh, 860px); display: flex; align-items: flex-end; color: #fff; background: var(--primary-dark); overflow: hidden; }
.v2-hero-slides { position: absolute; inset: 0; z-index: -3; }
.v2-hero-slides .hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.v2-hero-slides .hero-slide.active { opacity: 1; transform: scale(1); }
/* the one place a gradient earns its keep: it is what makes white type readable on a photograph */
.v2-hero-shade { position: absolute; inset: 0; z-index: -2; background:
    linear-gradient(90deg, rgba(var(--primary-rgb), .94) 0%, rgba(var(--primary-rgb), .78) 42%, rgba(var(--primary-rgb), .30) 100%),
    linear-gradient(0deg, rgba(8, 12, 28, .55) 0%, rgba(8, 12, 28, 0) 46%); }
.v2-hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.v2-hero-gl.on { opacity: 1; }
.v2-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; padding-top: calc(var(--nav-h) + 4.5rem); padding-bottom: clamp(4rem, 9vh, 6.5rem); width: min(100% - 2rem, var(--container, 1200px)); }
.v2-eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 1.3rem; }
.v2-eyebrow span { width: 34px; height: 2px; background: var(--accent); }
.v2-hero-title { font-size: clamp(2.4rem, 6vw, 4.9rem); line-height: 1.02; font-weight: 700; margin: 0 0 1.3rem; color: #fff; text-wrap: balance; max-width: 15ch; }
.v2-hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.6; color: rgba(255,255,255,.9); max-width: 54ch; margin: 0 0 2rem; }
.v2-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.v2-hero-dots { position: static; display: flex; gap: .5rem; margin-top: 2.2rem; transform: none; }
.v2-hero-dots button { width: 34px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: rgba(255,255,255,.32); cursor: pointer; transition: background-color .3s ease, width .3s ease; }
.v2-hero-dots button.active { background: var(--accent); width: 56px; }

.v2-hero-card { background: #fff; color: var(--v2-ink); border-radius: var(--v2-radius); padding: 1.5rem; border-top: 4px solid var(--accent); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.v2-hero-card-top { display: flex; align-items: center; gap: .65rem; font-size: 1.05rem; }
.v2-hero-card p { margin: .5rem 0 1.1rem; color: var(--v2-muted); font-size: .93rem; line-height: 1.55; }
.v2-pulse { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: v2pulse 2s infinite; flex-shrink: 0; }
@keyframes v2pulse { 70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.v2-hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 1.2rem; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
.v2-hero-facts div { padding: .75rem .5rem; text-align: center; border-right: 1px solid var(--v2-line); }
.v2-hero-facts div:last-child { border-right: 0; }
.v2-hero-facts dt { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-muted); font-weight: 700; }
.v2-hero-facts dd { margin: .2rem 0 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.55rem; font-weight: 700; color: var(--primary); line-height: 1; }

.v2-scroll-cue { position: absolute; left: 50%; bottom: 1.3rem; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; }
.v2-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: v2cue 1.8s infinite; }
@keyframes v2cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- values ticker ---------- */
.v2-ticker { background: var(--accent); color: var(--on-accent, #111); overflow: hidden; border-block: 1px solid rgba(0,0,0,.08); }
.v2-ticker-track { display: flex; width: max-content; animation: v2ticker 32s linear infinite; }
.v2-ticker:hover .v2-ticker-track { animation-play-state: paused; }
.v2-ticker span { display: inline-flex; align-items: center; gap: 1.2rem; padding: .95rem 1.2rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .86rem; white-space: nowrap; }
.v2-ticker i { font-size: .7rem; opacity: .7; }
@keyframes v2ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.v2-section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.v2-kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin-bottom: .9rem; }
.v2-kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.v2-kicker.on-dark { color: rgba(255,255,255,.9); }
.v2-title { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; margin: 0; font-weight: 700; color: var(--v2-ink); text-wrap: balance; }
.v2-head-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.v2-head-row > p, .v2-head-row .v2-rail-nav p { margin: 0; color: var(--v2-muted); font-size: 1.02rem; line-height: 1.65; }
.v2-head-row > a { justify-self: end; }

/* ---------- about ---------- */
.v2-about { background: #fff; }
.v2-about-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.v2-about-media { position: relative; padding: 0 2.2rem 2.2rem 0; }
.v2-about-media.is-empty { min-height: 260px; background: var(--v2-soft); border-radius: var(--v2-radius); }
.v2-about-main { margin: 0; border-radius: var(--v2-radius); overflow: hidden; aspect-ratio: 4 / 5; position: relative; z-index: 1; }
.v2-about-main img, .v2-about-inset img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-about-main img { height: 112%; }
.v2-about-inset { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; margin: 0; border-radius: var(--v2-radius); overflow: hidden; border: 6px solid #fff; z-index: 2; box-shadow: 0 24px 40px -24px rgba(15,23,42,.5); }
.v2-about-frame { position: absolute; left: -1.1rem; top: -1.1rem; width: 44%; height: 36%; border: 3px solid var(--accent); border-radius: var(--v2-radius); z-index: 0; }
.v2-about-badge { position: absolute; left: 1.1rem; bottom: 3.4rem; z-index: 3; background: var(--primary); color: var(--on-primary, #fff); padding: .9rem 1.1rem; border-radius: var(--v2-radius); display: flex; align-items: center; gap: .7rem; }
.v2-about-badge strong { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; line-height: 1; }
.v2-about-badge span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; max-width: 9ch; line-height: 1.25; }
.v2-about-copy p { color: var(--v2-muted); font-size: 1.04rem; line-height: 1.75; margin: 1.1rem 0 0; }
.v2-head { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; padding: 1rem 1.1rem; border-left: 3px solid var(--accent); background: var(--v2-soft); border-radius: 0 var(--v2-radius) var(--v2-radius) 0; }
.v2-head img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.v2-head strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.08rem; }
.v2-head span { font-size: .82rem; color: var(--v2-muted); }

/* ---------- figures ---------- */
.v2-figures { background: var(--primary); color: var(--on-primary, #fff); position: relative; isolation: isolate;
    background-image: radial-gradient(rgba(255,255,255,.10) 1.2px, transparent 1.3px); background-size: 18px 18px; }
.v2-figures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.v2-figure { padding: 2.6rem 1.2rem; text-align: center; border-left: 1px solid rgba(255,255,255,.14); }
.v2-figure:first-child { border-left: 0; }
.v2-figure i { font-size: 1.15rem; color: var(--accent); margin-bottom: .8rem; }
.v2-figure-n { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.2rem, 4.4vw, 3.3rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.v2-figure-l { margin-top: .6rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .86; }

/* ---------- why us ---------- */
.v2-why { background: var(--v2-soft); }
.v2-why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--v2-line); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); overflow: hidden; }
.v2-why-card { position: relative; background: #fff; padding: 2rem 1.7rem 1.9rem; overflow: hidden; transition: background-color .3s ease, color .3s ease; }
.v2-why-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.v2-why-card:hover::after { transform: scaleX(1); }
.v2-why-n { position: absolute; right: 1.2rem; top: .7rem; font-family: 'Playfair Display', Georgia, serif; font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--v2-soft); transition: color .3s ease; }
.v2-why-card:hover .v2-why-n { color: rgba(var(--accent-rgb), .28); }
.v2-why-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--v2-radius); background: var(--primary); color: var(--on-primary, #fff); font-size: 1.1rem; position: relative; }
.v2-why-card h3 { margin: 1.2rem 0 .5rem; font-size: 1.15rem; font-weight: 700; position: relative; }
.v2-why-card p { margin: 0; color: var(--v2-muted); line-height: 1.65; font-size: .96rem; position: relative; }

/* ---------- classes rail ---------- */
.v2-classes { background: #fff; overflow: hidden; }
.v2-rail-nav { display: flex; align-items: end; gap: 1.5rem; justify-content: space-between; }
.v2-rail-nav > div { display: flex; gap: .5rem; flex-shrink: 0; }
.v2-rail-btn { width: 48px; height: 48px; border-radius: var(--v2-radius); border: 1.5px solid var(--v2-line); background: #fff; color: var(--v2-ink); cursor: pointer; font-size: .95rem; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.v2-rail-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.v2-rail { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .4rem max(1rem, calc((100vw - var(--container, 1200px)) / 2)) 1.2rem; scroll-padding-left: max(1rem, calc((100vw - var(--container, 1200px)) / 2)); }
.v2-rail::-webkit-scrollbar { display: none; }
.v2-class { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease; }
.v2-class:hover { transform: translateY(-6px); border-color: var(--primary); }
.v2-class-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--v2-soft); }
.v2-class-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.v2-class:hover .v2-class-img img { transform: scale(1.07); }
.v2-class-img span { position: absolute; left: 0; bottom: 0; background: var(--accent); color: var(--on-accent, #111); font-weight: 800; font-size: .8rem; padding: .35rem .7rem; letter-spacing: .08em; border-top-right-radius: var(--v2-radius); }
.v2-class-body { padding: 1.15rem 1.2rem 1.25rem; }
.v2-class-body h3 { margin: 0 0 .9rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; }
.v2-class-teacher { display: flex; align-items: center; gap: .7rem; padding-top: .9rem; border-top: 1px solid var(--v2-line); }
.v2-class-teacher img, .v2-class-teacher > i { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.v2-class-teacher > i { display: inline-flex; align-items: center; justify-content: center; background: var(--v2-soft); color: var(--primary); font-size: .9rem; }
.v2-class-teacher strong { display: block; font-size: .92rem; }
.v2-class-teacher span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-muted); font-weight: 700; }
.v2-class-more { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 1rem; padding: 1.5rem; background: var(--primary); color: var(--on-primary, #fff); border-color: var(--primary); min-height: 260px; }
.v2-class-more i { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #111); display: inline-flex; align-items: center; justify-content: center; }
.v2-class-more strong { font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; line-height: 1.2; }

/* ---------- gallery mosaic ---------- */
.v2-gallery { background: var(--v2-soft); }
.v2-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 210px); gap: .8rem; }
.v2-shot { position: relative; overflow: hidden; border-radius: var(--v2-radius); display: block; background: #ddd; }
.v2-shot:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.v2-shot:nth-child(4) { grid-column: span 2; }
.v2-mosaic.n1 .v2-shot, .v2-mosaic.n2 .v2-shot { grid-column: span 2; grid-row: span 2; }
.v2-mosaic.n3 .v2-shot:nth-child(n+2) { grid-row: span 2; }
.v2-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.v2-shot:hover img { transform: scale(1.08); }
.v2-shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .75rem; color: #fff; font-weight: 700; font-size: .88rem; background: linear-gradient(0deg, rgba(8,12,28,.82), rgba(8,12,28,0)); transform: translateY(100%); transition: transform .35s ease; }
.v2-shot:hover span, .v2-shot:focus-visible span { transform: none; }

/* ---------- quotation ---------- */
.v2-quote { position: relative; isolation: isolate; background: var(--primary-dark); color: #fff; padding: clamp(4.5rem, 10vw, 8rem) 0; overflow: hidden; text-align: center; }
.v2-quote-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.v2-quote-gl.on { opacity: .9; }
.v2-quote-inner { max-width: 900px; }
.v2-quote-inner > i { font-size: 2rem; color: var(--accent); margin-bottom: 1.4rem; }
.v2-quote blockquote { margin: 0; font-size: clamp(1.45rem, 3.2vw, 2.5rem); line-height: 1.32; font-weight: 500; font-style: italic; text-wrap: balance; }
.v2-quote cite { display: inline-block; margin-top: 1.6rem; font-style: normal; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.8); }
.v2-quote cite::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: .8rem; }

/* ---------- news ---------- */
.v2-news { background: #fff; }
.v2-news-list { border-top: 1px solid var(--v2-line); }
.v2-news-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1.6rem; padding: 1.7rem 0; border-bottom: 1px solid var(--v2-line); transition: padding-left .3s ease; }
.v2-news-item:hover { padding-left: .8rem; }
.v2-news-item time { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 96px; border-radius: var(--v2-radius); background: var(--v2-soft); border-bottom: 3px solid var(--accent); }
.v2-news-item time strong { font-family: 'Playfair Display', Georgia, serif; font-size: 2.1rem; line-height: 1; color: var(--primary); }
.v2-news-item time span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--v2-muted); margin-top: .35rem; }
.v2-news-item h3 { margin: 0 0 .5rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; line-height: 1.25; }
.v2-news-item p { margin: 0; color: var(--v2-muted); line-height: 1.65; }
.v2-news-item a { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; font-weight: 700; font-size: .88rem; color: var(--primary); text-decoration: none; }

/* ---------- call to action ---------- */
.v2-cta { background: var(--primary); color: var(--on-primary, #fff); overflow: hidden; }
.v2-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 0; width: 100%; max-width: none; }
.v2-cta-copy { padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 5rem); max-width: 640px; justify-self: end; align-self: center; }
.v2-cta-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; margin: 0 0 1rem; color: inherit; text-wrap: balance; }
.v2-cta-copy p { margin: 0 0 1.8rem; line-height: 1.7; opacity: .9; font-size: 1.03rem; }
.v2-cta-img { position: relative; overflow: hidden; min-height: 340px; }
.v2-cta-img img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }

/* ---------- team ---------- */
.v2-team { background: var(--v2-soft); }
.v2-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.v2-person { text-align: center; }
.v2-person-img { aspect-ratio: 4 / 5; border-radius: var(--v2-radius); overflow: hidden; background: #fff; border: 1px solid var(--v2-line); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 2.6rem; position: relative; }
.v2-person-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s ease; }
.v2-person:hover .v2-person-img::after { transform: scaleX(1); }
.v2-person-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.v2-person:hover .v2-person-img img { transform: scale(1.05); }
.v2-person h3 { margin: 1rem 0 .15rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; }
.v2-person p { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--v2-muted); }
.v2-visit { background: #fff; }

/* ---------- scroll reveals ---------- */
[data-rv] { opacity: 0; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 80ms); will-change: transform, opacity; }
[data-rv="up"] { transform: translateY(38px); }
[data-rv="left"] { transform: translateX(-46px); }
[data-rv="right"] { transform: translateX(46px); }
[data-rv="zoom"] { transform: scale(.92); }
[data-rv].rv-in { opacity: 1; transform: none; }
.no-js [data-rv] { opacity: 1; transform: none; }

/* ---------- footer: four columns ---------- */
body.site-v2 .footer { background: #0b1020; color: rgba(255,255,255,.68); padding: 0; border-top: 4px solid var(--accent); }
body.site-v2 .footer .f-top, body.site-v2 .footer .f-cols { display: contents; }
body.site-v2 .footer { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.25fr); gap: 2.6rem 3rem; padding: clamp(3rem, 6vw, 5rem) max(1rem, calc((100vw - var(--container, 1200px)) / 2)) 0; }
body.site-v2 .footer .f-brand { grid-column: 1; grid-row: 1; }
body.site-v2 .footer .f-contact { grid-column: 2; grid-row: 1; }
body.site-v2 .footer .f-cols > .f-col:not(.f-contact):not(.f-gallery) { grid-column: 3; grid-row: 1; }
body.site-v2 .footer .f-sub { grid-column: 4; grid-row: 1; background: transparent; border: 0; padding: 0; }
body.site-v2 .footer .f-gallery { grid-column: 1 / -1; grid-row: 2; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); }
body.site-v2 .footer .f-gallery .mini-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
body.site-v2 .footer .f-gallery .mini-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; opacity: .82; transition: opacity .3s ease, transform .5s ease; }
body.site-v2 .footer .f-gallery .mini-gallery a { overflow: hidden; border-radius: 4px; display: block; }
body.site-v2 .footer .f-gallery .mini-gallery a:hover img { opacity: 1; transform: scale(1.08); }
body.site-v2 .footer h4 { color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; margin: 0 0 1.2rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; }
body.site-v2 .footer h4::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 34px; height: 2px; background: var(--accent); }
body.site-v2 .footer .f-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; color: #fff; margin: .9rem 0 .6rem; }
body.site-v2 .footer .f-mark { width: 60px; height: 60px; border-radius: var(--v2-radius); background: #fff; display: grid; place-items: center; overflow: hidden; }
body.site-v2 .footer .f-mark img { width: 86%; height: 86%; object-fit: contain; }
body.site-v2 .footer .f-mark span { font-family: 'Playfair Display', Georgia, serif; font-size: 1.7rem; font-weight: 700; color: var(--primary); }
body.site-v2 .footer .f-about { line-height: 1.75; margin: 0 0 1.3rem; max-width: 38ch; }
body.site-v2 .footer .f-social { display: flex; gap: .5rem; flex-wrap: wrap; }
body.site-v2 .footer .f-social a { width: 40px; height: 40px; border-radius: var(--v2-radius); border: 1px solid rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
body.site-v2 .footer .f-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #111); }
body.site-v2 .footer .f-contact p { display: flex; gap: .8rem; margin: 0 0 .9rem; line-height: 1.6; }
body.site-v2 .footer .f-contact p i { color: var(--accent); margin-top: .3rem; width: 16px; flex-shrink: 0; }
body.site-v2 .footer a { color: inherit; text-decoration: none; }
body.site-v2 .footer a:hover { color: #fff; }
body.site-v2 .footer .f-links { list-style: none; margin: 0; padding: 0; }
body.site-v2 .footer .f-links li { margin-bottom: .65rem; }
body.site-v2 .footer .f-links a { display: inline-flex; align-items: center; gap: .55rem; transition: gap .25s ease, color .2s ease; }
body.site-v2 .footer .f-links a::before { content: ""; width: 8px; height: 2px; background: var(--accent); }
body.site-v2 .footer .f-links a:hover { gap: .9rem; }
body.site-v2 .footer .f-sub-note { margin: 0 0 1rem; line-height: 1.6; }
body.site-v2 .footer .newsletter { display: flex; gap: 0; border: 1px solid rgba(255,255,255,.2); border-radius: var(--v2-radius); overflow: hidden; background: rgba(255,255,255,.04); }
body.site-v2 .footer .newsletter .field { flex: 1; min-width: 0; }
body.site-v2 .footer .newsletter input[type="email"] { width: 100%; height: 50px; border: 0; background: transparent; color: #fff; padding: 0 1rem; font-size: .95rem; font-family: inherit; }
body.site-v2 .footer .newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
body.site-v2 .footer .newsletter button { border: 0; background: var(--accent); color: var(--on-accent, #111); font-weight: 800; padding: 0 1.2rem; cursor: pointer; font-family: inherit; letter-spacing: .04em; border-radius: 0; height: 50px; }
body.site-v2 .footer .f-sub-foot { font-size: .78rem; margin: .8rem 0 0; opacity: .7; line-height: 1.5; }
body.site-v2 .footer .copyright { grid-column: 1 / -1; width: auto; margin: 0; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; font-size: .86rem; }
body.site-v2 .footer .copyright p { margin: 0; }
body.site-v2 .footer .copyright-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
body.site-v2 .to-top { border-radius: var(--v2-radius); background: var(--accent); color: var(--on-accent, #111); border: 0; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }

/* ---------- inner pages: the same banner language ---------- */
body.site-v2 .page-hero { background-color: var(--primary-dark); }
body.site-v2 .page-hero-title { text-wrap: balance; }
body.site-v2 .btn { border-radius: var(--v2-radius); }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
    .v2-hero-grid { grid-template-columns: 1fr; align-items: start; }
    .v2-hero-card { max-width: 460px; }
    body.site-v2 .footer { grid-template-columns: 1fr 1fr; }
    body.site-v2 .footer .f-brand { grid-column: 1; grid-row: 1; }
    body.site-v2 .footer .f-sub { grid-column: 2; grid-row: 1; }
    body.site-v2 .footer .f-contact { grid-column: 1; grid-row: 2; }
    body.site-v2 .footer .f-cols > .f-col:not(.f-contact):not(.f-gallery) { grid-column: 2; grid-row: 2; }
    body.site-v2 .footer .f-gallery { grid-row: 3; }
    .v2-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    body.site-v2 { --nav-h: 66px; }
    .v2-head-row { grid-template-columns: 1fr; align-items: start; }
    .v2-head-row > a { justify-self: start; }
    .v2-about-grid, .v2-cta-grid { grid-template-columns: 1fr; }
    .v2-cta-copy { justify-self: start; max-width: none; }
    .v2-cta-img { min-height: 260px; order: -1; }
    .v2-rail-nav { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .v2-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; }
    .v2-shot:nth-child(1), .v2-shot:nth-child(4) { grid-column: span 2; }
    .v2-shot:nth-child(1) { grid-row: span 1; }
    .v2-figure { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 1.8rem 1rem; }
    .v2-figures-grid { grid-template-columns: repeat(2, 1fr); }
    .v2-figure:nth-child(-n+2) { border-top: 0; }
    .v2-scroll-cue { display: none; }
    /* the menu becomes a panel under the bar; it is always solid, whatever the page beneath */
    body.site-v2 .menu { background: #fff; border-top: 1px solid var(--v2-line); box-shadow: 0 30px 50px -30px rgba(15,23,42,.5); }
    body.site-v2.is-home .nav:not(.v2-stuck) .menu > a, body.site-v2.is-home .nav:not(.v2-stuck) .menu .dropdown > a { color: var(--v2-ink); }
    body.site-v2 .menu > a, body.site-v2 .menu .dropdown > a { margin: 0; padding: .9rem 1.1rem; border-bottom: 1px solid var(--v2-line); }
    body.site-v2 .menu > a::after, body.site-v2 .menu .dropdown > a::after { display: none; }
    body.site-v2 .menu > a.nav-parent { margin: .8rem 1.1rem; border: 1px solid var(--v2-line) !important; text-align: center; }
}
@media (max-width: 620px) {
    .v2-hero { min-height: 0; }
    .v2-hero-grid { padding-top: calc(var(--nav-h) + 2.6rem); padding-bottom: 3rem; }
    .v2-hero-actions .v2-btn { flex: 1 1 100%; }
    .v2-hero-facts dd { font-size: 1.3rem; }
    .v2-why-grid { grid-template-columns: 1fr; }
    .v2-about-media { padding: 0 1.2rem 1.4rem 0; }
    .v2-about-frame { display: none; }
    .v2-news-item { grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; }
    .v2-news-item time { height: 80px; }
    .v2-news-item time strong { font-size: 1.6rem; }
    body.site-v2 .footer { grid-template-columns: 1fr; gap: 2.2rem; }
    body.site-v2 .footer .f-brand, body.site-v2 .footer .f-sub, body.site-v2 .footer .f-contact,
    body.site-v2 .footer .f-cols > .f-col:not(.f-contact):not(.f-gallery), body.site-v2 .footer .f-gallery { grid-column: 1; grid-row: auto; }
    body.site-v2 .footer .f-gallery .mini-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.site-v2 .footer .copyright { flex-direction: column; align-items: flex-start; }
    .v2-row .v2-btn { flex: 1 1 100%; }
}

/* ---------- anyone who has asked for less motion gets none of it ---------- */
@media (prefers-reduced-motion: reduce) {
    [data-rv] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .v2-ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .v2-ticker span[aria-hidden] { display: none; }
    .v2-hero-slides .hero-slide { transition: opacity .2s linear; transform: none !important; }
    .v2-pulse, .v2-scroll-cue span { animation: none; }
    .v2-hero-gl, .v2-quote-gl { display: none; }
    body.site-v2 * { scroll-behavior: auto !important; }
}

/* the bar on one line: links stay together, the button never breaks */
body.site-v2 .menu { flex-wrap: nowrap; align-items: center; }
body.site-v2 .menu > a, body.site-v2 .menu .dropdown > a { margin: 0 .42rem; font-size: .9rem; white-space: nowrap; }
body.site-v2 .nav-cta { white-space: nowrap; flex-shrink: 0; padding: .7rem 1.1rem !important; }
body.site-v2 .brand { flex-shrink: 0; }
@media (max-width: 1180px) and (min-width: 861px) {
    body.site-v2 .brand-tag, body.site-v2 .brand-divider { display: none; }
    body.site-v2 .menu > a, body.site-v2 .menu .dropdown > a { margin: 0 .3rem; font-size: .86rem; }
    body.site-v2 .menu > a.nav-parent { padding: .45rem .6rem; margin-left: .3rem; }
}

/* a school that has not added its About photographs yet: the words take the width, set in two columns */
.v2-about-grid.no-media { grid-template-columns: 1fr; max-width: 880px; }
.v2-about-grid.no-media .v2-about-copy { border-left: 3px solid var(--accent); padding-left: clamp(1.2rem, 4vw, 2.6rem); }

/* the six reasons: ruled like a table, so a card that has not arrived yet leaves clean paper, not a grey block */
.v2-why-grid { gap: 0; background: #fff; }
.v2-why-card { border-right: 1px solid var(--v2-line); border-bottom: 1px solid var(--v2-line); }
.v2-why-card:nth-child(3n) { border-right: 0; }
.v2-why-card:nth-last-child(-n+3) { border-bottom: 0; }
@media (max-width: 1080px) {
    .v2-why-card:nth-child(3n) { border-right: 1px solid var(--v2-line); }
    .v2-why-card:nth-child(2n) { border-right: 0; }
    .v2-why-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--v2-line); }
    .v2-why-card:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 620px) {
    .v2-why-card { border-right: 0 !important; border-bottom: 1px solid var(--v2-line) !important; }
    .v2-why-card:last-child { border-bottom: 0 !important; }
}

/* the rail moves sideways only: a mouse wheel over it must scroll the page, never get stuck in it */
.v2-rail { overflow-y: hidden; padding-top: .8rem; overscroll-behavior-x: contain; }

.v2-team-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 280px)); justify-content: center; }
/* footer details */
body.site-v2 .footer .f-contact p.f-empty { display: block; font-style: normal; }
body.site-v2 .footer .f-contact p.f-empty a { text-decoration: underline; color: #fff; }
body.site-v2 .footer .f-gallery:has(.f-empty) { display: none; }

/* phones: things arrive from below, never from the side, so the page is never wider than the screen */
@media (max-width: 860px) {
    [data-rv="left"], [data-rv="right"] { transform: translateY(38px); }
}
@media (max-width: 620px) {
    body.site-v2 .brand-tag, body.site-v2 .brand-divider { display: none; }
    body.site-v2 .brand-name { font-size: 1.05rem; }
}
/* (no overflow rule on html: it would stop the body handing its overflow to the window, and the bar would stop sticking) */

/* =====================================================================
   Balance: section headings are centred, with the label flanked by rules,
   and the text beneath them is a centred measure. Content below (cards,
   rails, mosaics) spans the width, so nothing hangs off the left edge.
   ===================================================================== */
.v2-head-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .9rem; }
.v2-head-row > div { display: flex; flex-direction: column; align-items: center; }
.v2-head-row > p, .v2-head-row .v2-rail-nav p { max-width: 60ch; margin-inline: auto; }
.v2-head-row > a { justify-self: center; }
.v2-kicker::after { content: ""; width: 26px; height: 2px; background: var(--accent); }
.v2-about-copy .v2-kicker::after, .v2-cta-copy .v2-kicker::after { display: none; }
.v2-rail-nav { flex-direction: column; align-items: center; gap: 1.1rem; }
.v2-rail-nav > div { order: 2; }
.v2-why-card { text-align: center; }
.v2-why-ico { margin-inline: auto; }
.v2-news-list { max-width: 980px; margin-inline: auto; }
.v2-figure { display: flex; flex-direction: column; align-items: center; }
.v2-hero-frame { display: none; }

/* =====================================================================
   The footer keeps its columns on a phone: the school and the sign-up
   take the full width, and the contact details sit beside the links.
   ===================================================================== */
@media (max-width: 620px) {
    body.site-v2 .footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 1.2rem; text-align: left; }
    body.site-v2 .footer .f-brand { grid-column: 1 / -1; grid-row: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
    body.site-v2 .footer .f-brand .f-about { margin-inline: auto; }
    body.site-v2 .footer .f-social { justify-content: center; }
    body.site-v2 .footer .f-sub { grid-column: 1 / -1; grid-row: auto; text-align: center; }
    body.site-v2 .footer .f-sub h4::after { left: 50%; margin-left: -17px; }
    body.site-v2 .footer .f-contact { grid-column: 1; grid-row: auto; }
    body.site-v2 .footer .f-cols > .f-col:not(.f-contact):not(.f-gallery) { grid-column: 2; grid-row: auto; }
    body.site-v2 .footer .f-gallery { grid-column: 1 / -1; grid-row: auto; }
    body.site-v2 .footer .f-contact p { font-size: .86rem; gap: .55rem; }
    body.site-v2 .footer .f-links a { font-size: .9rem; }
    body.site-v2 .footer h4 { font-size: .7rem; letter-spacing: .14em; }
    body.site-v2 .footer .copyright { align-items: center; text-align: center; }
    body.site-v2 .footer .copyright-links { justify-content: center; gap: .6rem 1.1rem; }
}

/* ---------------------------------------------------------------- About: the crest panel
   Shown in place of the photographs when a school has none of its own to show. It fills the
   picture side of the section, so no design is ever left with an empty half. */
.v2-about-crest {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; place-items: center; min-height: 440px; padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--primary); color: #fff; border-radius: 18px; text-align: center;
}
.v2-about-crest::before {   /* fine dot field in the accent colour */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
    background-image: radial-gradient(circle at 2px 2px, var(--accent) 1.5px, transparent 0);
    background-size: 26px 26px;
}
.v2-about-crest::after {    /* a large quiet ring behind the crest */
    content: ""; position: absolute; z-index: -1; width: 135%; aspect-ratio: 1; border-radius: 50%;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 150px rgba(255,255,255,.025);
}
.v2-crest-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 420px; }
.v2-crest-ring {
    position: absolute; top: -14px; left: 50%; width: 176px; height: 176px; margin-left: -88px; border-radius: 50%;
    border: 2px dashed color-mix(in srgb, var(--accent) 80%, transparent); animation: v2CrestSpin 60s linear infinite;
}
.v2-crest-logo {
    width: 148px; height: 148px; border-radius: 50%; background: #fff; object-fit: contain; padding: 14px;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 85%, transparent), 0 24px 50px -20px rgba(0,0,0,.6);
}
.v2-crest-icon { display: grid; place-items: center; color: var(--primary); font-size: 3.4rem; padding: 0; }
.v2-crest-name { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin-top: 1.1rem; color: #fff; text-wrap: balance; }
.v2-crest-motto { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.82); font-weight: 700; }
.v2-crest-facts { display: flex; justify-content: center; gap: 0; margin: 1.2rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255,255,255,.18); width: 100%; }
.v2-crest-facts > div { flex: 1; padding: 0 .9rem; }
.v2-crest-facts > div + div { border-left: 1px solid rgba(255,255,255,.18); }
.v2-crest-facts dd { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.v2-crest-facts dt { margin-top: .35rem; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
@keyframes v2CrestSpin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .v2-about-crest { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .v2-crest-ring { animation: none; } }

/* ---- The quick check shown before a public form is sent (js/site-guard.js) ---- */
html.g-lock { overflow: hidden; }
.g-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .62); animation: gFade .18s ease-out; }
.g-box { position: relative; width: min(100%, 400px); padding: 1.6rem 1.4rem 1.25rem; background: #fff; color: #0f172a; border-radius: 14px; border-top: 4px solid var(--primary, #1e3a8a); box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .55); text-align: center; animation: gRise .22s ease-out; }
.g-box h3 { margin: 0 0 .4rem; font-size: 1.2rem; font-weight: 700; color: #0f172a; }
.g-ask { margin: 0 0 1.1rem; font-size: 1rem; color: #334155; }
.g-ask strong { color: var(--primary, #1e3a8a); text-transform: uppercase; letter-spacing: .06em; }
.g-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.g-tile { aspect-ratio: 1; min-height: 52px; display: grid; place-items: center; padding: 0; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; color: #334155; cursor: pointer; transition: transform .12s, border-color .12s, color .12s, background .12s; }
.g-tile svg { width: 58%; height: 58%; fill: currentColor; pointer-events: none; }
.g-tile:hover, .g-tile:focus-visible { border-color: var(--primary, #1e3a8a); color: var(--primary, #1e3a8a); background: #fff; transform: translateY(-2px); outline: none; }
.g-tile:focus-visible { box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 30, 58, 138), .25); }
.g-tile.is-picked { background: var(--primary, #1e3a8a); border-color: var(--primary, #1e3a8a); color: var(--on-primary, #fff); }
.g-tile:disabled { cursor: default; transform: none; }
.g-note { margin: 1rem 0 0; font-size: .78rem; color: #64748b; }
.g-x { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: #64748b; cursor: pointer; border-radius: 8px; }
.g-x:hover, .g-x:focus-visible { background: #f1f5f9; color: #0f172a; outline: none; }
@keyframes gFade { from { opacity: 0; } }
@keyframes gRise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .g-modal, .g-box { animation: none; } .g-tile { transition: none; } }

/* Class cards with no photo of their own show the school crest on the school colour. */
.v2-class-img.is-crest { display: grid; place-items: center; background: var(--primary); }
.v2-class-img.is-crest img { width: 46%; height: 62%; object-fit: contain; background: #fff; border-radius: 50%; padding: 6%; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.v2-class-img.is-crest > i { font-size: 3.2rem; color: rgba(255,255,255,.85); }
.v2-class:hover .v2-class-img.is-crest img { transform: scale(1.05); }
