/* ==========================================================================
   Viva College School — public site styles
   Palette taken from the crest: maroon, torch gold, parchment.
   ========================================================================== */

:root {
  --maroon-950: #2c0710;
  --maroon-900: #3b0a15;
  --maroon-800: #500d1e;
  --maroon: #6b1127;
  --maroon-600: #82203a;
  --gold: #c89a3f;
  --gold-600: #ad8230;
  --gold-300: #e3c078;
  --gold-100: #f6ead0;
  --cream: #fcf9f4;
  --cream-2: #f7f0e6;
  --sand: #ecdfcc;
  --ink: #1f1b2d;
  --text: #4a4452;
  --muted: #7b7382;
  --white: #fff;

  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Allura", "Brush Script MT", cursive;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(59, 10, 21, .05), 0 8px 24px -12px rgba(59, 10, 21, .18);
  --shadow-lg: 0 24px 48px -24px rgba(59, 10, 21, .35);
  --wrap: 1180px;
  --pad: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 7vw, 5.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-600); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap.narrow { max-width: 780px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--maroon-950); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.center-text { text-align: center; }
.serif { font-family: var(--serif); font-weight: 400; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Type helpers ---------- */
.display { font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--white); line-height: 1.08; }
.display.xl { font-size: clamp(2.5rem, 5.6vw, 4rem); }
.h-xl { font-size: clamp(2rem, 4vw, 3rem); }
.h-lg { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.hl { color: var(--gold); }
.display .hl { color: var(--gold-300); }

.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  margin: 0 0 .9rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.on-dark { color: var(--gold-300); }
.eyebrow.center, .section-head.center .eyebrow { justify-content: center; }

.lede { font-size: 1.05rem; max-width: 36rem; color: rgba(255, 255, 255, .88); }
.lede p:last-child { margin-bottom: 0; }

.prose, .prose-sm { max-width: 68ch; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h3, .prose-sm h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul, .prose-sm ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.4rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.2;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .btn-ico { width: 1.05em; height: 1.05em; transition: transform .2s; }
.btn:hover .btn-ico { transform: translateX(3px); }
.btn .btn-ico-l { width: 1.2em; height: 1.2em; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-600); color: var(--white); }
.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-800); color: var(--white); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--maroon); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: var(--white); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .9rem; color: var(--maroon); text-decoration: none;
}
.text-link .ico { width: 1em; height: 1em; transition: transform .2s; }
.text-link:hover .ico { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--maroon-900); color: rgba(255, 255, 255, .88); font-size: .8rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar-msg { display: flex; align-items: center; gap: .6rem; margin: 0; min-width: 0; }
.topbar-msg .ico { color: var(--gold-300); }
.topbar-msg a { color: var(--white); text-decoration: none; }
.topbar-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .35); }
.topbar-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; gap: 1.25rem; flex: none; }
.topbar-links a { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .88); text-decoration: none; }
.topbar-links a:hover { color: var(--gold-300); }
.topbar-wa .ico { color: #57d163; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 249, 244, .97); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--sand); box-shadow: 0 6px 20px -16px rgba(59, 10, 21, .5); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--maroon); }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .02em; text-transform: uppercase; color: var(--maroon); }
.brand-tag { font-size: .78rem; color: var(--maroon-600); margin-top: .2rem; }
.brand-light .brand-name { color: var(--white); }
.brand-light .brand-tag { color: rgba(255, 255, 255, .7); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav > ul { display: flex; align-items: center; gap: .25rem; list-style: none; }
.site-nav li { position: relative; }
.site-nav > ul > li > a {
  display: block; padding: .6rem .8rem; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; position: relative;
}
.site-nav > ul > li > a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.site-nav > ul > li > a:hover::after, .site-nav > ul > li.is-active > a::after { transform: scaleX(1); }
.site-nav > ul > li.is-active > a { color: var(--gold-600); }
.sub-toggle { display: none; }
.has-sub > a { padding-right: .8rem; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 210px; list-style: none;
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--r); padding: .4rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .55rem .8rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .92rem; }
.sub a:hover { background: var(--cream-2); color: var(--maroon); }
.nav-toggle { display: none; }

/* ---------- Home hero ---------- */
.home-hero { position: relative; background: var(--maroon-900); color: var(--white); overflow: hidden; isolation: isolate; }
.home-hero-photo, .page-hero-photo { position: absolute; top: 0; bottom: 0; right: 0; left: 36%; background-size: cover; background-position: center; z-index: -2; }
.home-hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--maroon-900) 0%, var(--maroon-900) 34%, rgba(59, 10, 21, .86) 44%, rgba(59, 10, 21, .35) 62%, rgba(59, 10, 21, 0) 80%);
}
.home-hero-in { position: relative; min-height: clamp(520px, 70vh, 660px); display: flex; align-items: center; padding-block: 4rem 5rem; }
.home-hero-copy { max-width: 36rem; }
.hero-badge {
  position: absolute; right: var(--pad); bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem 1rem 1rem; min-width: 260px;
  background: var(--white); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); text-decoration: none;
}
.hero-badge strong { display: block; font-weight: 600; font-size: .95rem; }
.hero-badge span span { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.hero-badge-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--gold-100); color: var(--maroon); border-radius: 12px; }
.hero-badge-go { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--cream-2); color: var(--maroon); transition: background .2s, color .2s; }
.hero-badge:hover .hero-badge-go { background: var(--gold); color: var(--white); }
.hero-badge-go .ico { width: 1rem; height: 1rem; }

/* Single orchestrated page-load moment */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal-late { animation: rise .8s .35s cubic-bezier(.2, .7, .2, 1) both; }
  .home-hero-photo, .page-hero-photo { animation: settle 1.6s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--maroon-900); color: var(--white); overflow: hidden; isolation: isolate; }
.page-hero-in { position: relative; min-height: 380px; display: flex; align-items: center; padding-block: 3.5rem; }
.page-hero-copy { max-width: 34rem; }
.page-hero.no-photo::before { background: radial-gradient(circle at 85% 20%, var(--maroon) 0, var(--maroon-900) 60%); }
.director-hero .page-hero-photo { left: 44%; background-position: center top; }
.director-hero::before { background: linear-gradient(90deg, var(--maroon-900) 0%, var(--maroon-900) 42%, rgba(59, 10, 21, .5) 54%, rgba(59, 10, 21, 0) 66%); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; margin-bottom: 1.2rem; color: rgba(255, 255, 255, .7); }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: var(--gold-300); }
.article-head .crumbs, .article-head .crumbs a { color: var(--muted); }
.article-head .crumbs a:hover { color: var(--maroon); }

.hero-facts {
  position: absolute; right: var(--pad); bottom: -1px;
  display: flex; background: var(--white); color: var(--ink);
  border-radius: var(--r) var(--r) 0 0; box-shadow: var(--shadow-lg);
}
.hero-fact { display: flex; gap: .8rem; align-items: center; padding: 1.1rem 1.4rem; }
.hero-fact + .hero-fact { border-left: 1px solid var(--sand); }
.hero-fact strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.hero-fact span:not(.hl-icon) { display: block; font-size: .8rem; color: var(--muted); max-width: 16rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.band-cream { background: var(--cream-2); }
.band-soft { background: linear-gradient(var(--cream), var(--cream-2)); }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head .intro { color: var(--text); }
.section-head .intro p:last-child { margin-bottom: 0; }
.section-head.center { text-align: center; margin-inline: auto; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.head-row .section-head { margin-bottom: 0; }
.empty { padding: 2rem; text-align: center; background: var(--cream-2); border-radius: var(--r); color: var(--muted); }

/* ---------- Highlights strip ---------- */
.highlights { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 2.2rem; }
.highlights > li { display: flex; gap: 1rem; align-items: flex-start; padding: 0 1.5rem; }
.highlights > li + li { border-left: 1px solid var(--sand); }
.highlights > li:first-child { padding-left: 0; }
.highlights h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 .25rem; color: var(--ink); letter-spacing: 0; }
.highlights h3.hl-year { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1; margin: .1rem 0 .35rem; }
.highlights p { font-size: .85rem; color: var(--muted); margin: 0; }
.hl-meta { font-size: .8rem !important; color: var(--text) !important; margin: 0 !important; }
.hl-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--maroon); flex: none; }
.hl-icon .ico { width: 24px; height: 24px; }
.highlights.boxed { gap: 1rem; padding-block: 3rem 0; }
.highlights.boxed > li { padding: 1.2rem; border: 1px solid var(--sand); border-radius: var(--r); background: var(--white); align-items: center; }
.highlights.boxed > li + li { border-left: 1px solid var(--sand); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split-media { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.wide { aspect-ratio: 16 / 9; }

.chips { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.75rem; }
.chips li { display: flex; align-items: center; gap: .7rem; padding: 1rem; background: var(--cream-2); border-radius: var(--r); font-size: .88rem; font-weight: 500; color: var(--maroon); line-height: 1.3; }
.chips .ico { width: 28px; height: 28px; color: var(--gold-600); }

/* ---------- Photo cards ---------- */
.photo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.photo-card { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.photo-card-img { aspect-ratio: 16 / 10; background: var(--maroon-800) radial-gradient(circle at 70% 30%, var(--maroon-600), transparent 65%); overflow: hidden; }
.photo-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-card:hover .photo-card-img img { transform: scale(1.04); }
.photo-card-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.pc-icon { color: var(--maroon); margin-bottom: .6rem; }
.pc-icon .ico { width: 26px; height: 26px; }
.photo-card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .45rem; }
.photo-card p { font-size: .9rem; color: var(--text); margin-bottom: 1rem; }
.photo-card .text-link { margin-top: auto; }
.photo-cards.compact { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.photo-cards.compact .photo-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.photo-cards.compact h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.photo-cards.compact .pc-icon { width: 40px; height: 40px; margin-top: -2.4rem; margin-bottom: .6rem; background: var(--white); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); position: relative; }
.photo-cards.compact .pc-icon .ico { width: 20px; height: 20px; }

/* ---------- Icon cards ---------- */
.icon-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.icon-cards.three { grid-template-columns: repeat(3, 1fr); }
.icon-card { padding: 1.6rem 1.5rem; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r); }
.icon-card h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: 1rem 0 .4rem; }
.icon-card p { font-size: .9rem; margin: 0; }
.round-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--maroon); }
.round-icon .ico { width: 26px; height: 26px; }

/* ---------- Ruled row (values, promises) ---------- */
.ruled-row { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); }
.ruled-row li { text-align: center; padding: .5rem 1.1rem; }
.ruled-row li + li { border-left: 1px solid var(--sand); }
.ruled-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-100); color: var(--maroon); margin-bottom: .8rem; }
.ruled-icon .ico { width: 22px; height: 22px; }
.ruled-row h3 { font-family: var(--sans); font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.ruled-row p { font-size: .85rem; margin: 0; color: var(--muted); }

/* ---------- Vision & mission band ---------- */
.vm-band { position: relative; background: var(--maroon-900); color: rgba(255, 255, 255, .88); isolation: isolate; overflow: hidden; }
.vm-photo { position: absolute; inset: 0 0 0 55%; background-size: cover; background-position: center; z-index: -2; }
.vm-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--maroon-900) 50%, rgba(59, 10, 21, .6) 62%, rgba(59, 10, 21, 0) 80%); }
.vm-in { padding-block: clamp(3rem, 6vw, 4.5rem); }
.vm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 42rem; }
.vm-col + .vm-col { border-left: 1px solid rgba(255, 255, 255, .2); padding-left: 2.5rem; }
.vm-icon { color: var(--gold-300); display: block; margin-bottom: .6rem; }
.vm-icon .ico { width: 30px; height: 30px; }
.vm-col h2 { color: var(--white); font-size: 1.6rem; }
.vm-col p { font-size: .95rem; }

/* ---------- Motto band ---------- */
.motto-band { background: var(--maroon-800) linear-gradient(90deg, var(--maroon-900), var(--maroon-800) 50%, var(--maroon-900)); color: var(--white); text-align: center; }
.motto-in { display: flex; align-items: center; justify-content: center; gap: 2.5rem; padding-block: 2.6rem; }
.motto-icon { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold-300); flex: none; }
.motto-icon .ico { width: 36px; height: 36px; }
.motto-quote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 .3rem; line-height: 1.2; }
.motto-sub { font-family: var(--serif); font-style: italic; color: rgba(255, 255, 255, .8); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(100deg, var(--maroon-900), var(--maroon) 70%);
  border-radius: var(--r-lg); color: var(--white);
}
.cta-script { font-family: var(--script); font-size: 2rem; color: var(--gold-300); line-height: 1; max-width: 9rem; opacity: .9; }
.cta-copy h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: .3rem; }
.cta-copy p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-copy .eyebrow { margin-bottom: .5rem; }
.cta-band .btn-row { margin: 0; position: relative; z-index: 1; margin-right: 3rem; }
.cta-torch { position: absolute; right: 1.5rem; top: 50%; width: 46px; height: 92px; transform: translateY(-50%); color: var(--gold); opacity: .28; }

/* ---------- News ---------- */
.news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.news-row .news-card { display: grid; grid-template-columns: 38% 1fr; }
.news-card { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.news-thumb { display: block; background: var(--maroon-800); min-height: 100%; aspect-ratio: auto; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.news-cat { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 .35rem; }
.news-cat a { color: inherit; text-decoration: none; }
.news-card h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.35; margin-bottom: .6rem; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card { position: relative; }
.news-card:hover h3 a { color: var(--maroon); }
.news-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); }
.news-foot .ico { width: 1rem; height: 1rem; color: var(--maroon); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-grid .news-thumb { aspect-ratio: 16 / 10; }
.news-grid .news-body { padding: 1.3rem; min-height: 190px; }
.news-grid h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.news-excerpt { font-size: .9rem; }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-links { margin-bottom: 2rem; }
.filter button, .filter a {
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--sand); background: var(--white);
  font-size: .85rem; font-weight: 500; color: var(--text); text-decoration: none; cursor: pointer;
}
.filter .is-on { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--sand); text-decoration: none; color: var(--ink); background: var(--white); }
.pager a.is-on { background: var(--maroon); color: var(--white); border-color: var(--maroon); }

/* Article */
.article-head { padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.article-head time, .article-head .muted { color: var(--muted); font-size: .9rem; }
.article-figure img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r-lg); }
.article-body { padding-block: 2.5rem 1rem; }
.article-lede { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.article-back { padding-bottom: 3rem; }

/* ---------- Director letter ---------- */
.letter { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.letter-side { position: sticky; top: 110px; background: var(--cream-2); border: 1px solid var(--sand); border-radius: var(--r-lg); overflow: hidden; }
.pull-quote { margin: 0; padding: 2rem 2rem 1.6rem; position: relative; }
.pq-mark { font-family: var(--serif); font-size: 4.5rem; line-height: .6; color: var(--gold); display: block; height: 2rem; }
.pull-quote p { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--ink); margin-bottom: 1rem; }
.pull-quote footer { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.pull-quote footer span { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .85rem; }
.letter-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.letter-facts { display: grid; grid-template-columns: 1fr 1fr; }
.letter-facts > div { display: flex; gap: .8rem; align-items: center; padding: 1.3rem 1.4rem; }
.letter-facts > div + div { border-left: 1px solid var(--sand); }
.letter-facts strong { display: block; font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.letter-facts strong.serif { font-size: 1.05rem; }
.letter-facts img { width: 40px; height: 40px; object-fit: contain; }
.signature { margin-top: 1.5rem; }
.sig-name { font-family: var(--script); font-size: 2.4rem; line-height: 1; color: var(--maroon); margin: 0 0 .3rem; }
.sig-title { font-size: .9rem; margin: 0; color: var(--text); }
.signature.on-dark .sig-name { color: var(--gold-300); }
.signature.on-dark .sig-title { color: rgba(255, 255, 255, .85); }

.pillars { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.pillars li { padding: 0 2rem; }
.pillars li + li { border-left: 1px solid var(--sand); }
.pillar-icon { width: 70px; height: 70px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: var(--gold-300); box-shadow: 0 0 0 4px var(--cream-2), 0 0 0 5px var(--gold); }
.pillar-icon .ico { width: 30px; height: 30px; }
.pillars h2 { font-size: 1.4rem; }
.pillars p { margin: 0; font-size: .95rem; }

.promise { display: grid; grid-template-columns: .8fr 1.6fr; gap: 2rem; align-items: center; }
.promise .section-head { margin: 0; }
.ruled-row.compact li { padding-inline: .8rem; }

.join-band { position: relative; color: var(--white); background: var(--maroon-900); isolation: isolate; overflow: hidden; }
.join-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--join-img, none); background-size: cover; background-position: center; }
.join-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--maroon-900) 20%, rgba(59, 10, 21, .78) 50%, rgba(59, 10, 21, .9)); }
.join-in { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 2rem; align-items: center; padding-block: 2.8rem; }
.join-in h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0; }
.join-text { margin: 0; color: rgba(255, 255, 255, .9); }

/* ---------- Academics ---------- */
.stats-band { background: var(--maroon); color: var(--white); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 2.4rem; }
.stats li { text-align: center; padding: 0 1rem; }
.stats li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-300); line-height: 1.1; }
.stats span { font-size: .9rem; color: rgba(255, 255, 255, .85); }

.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.program { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; }
.program img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.program-body { padding: 1.6rem 1.8rem 1.8rem; }
.program-level { display: inline-block; padding: .25rem .75rem; border-radius: 999px; background: var(--gold-100); color: var(--maroon); font-size: .8rem; font-weight: 600; margin-bottom: .8rem; }
.program h3 { font-size: 1.7rem; }
.program p { margin: 0; }

.subject-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.subject-group h3 { font-size: 1.3rem; padding-bottom: .6rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.tags li { padding: .45rem .9rem; background: var(--white); border: 1px solid var(--sand); border-radius: 999px; font-size: .88rem; color: var(--ink); }

.testimonial { margin: 0 auto; max-width: 52rem; text-align: center; padding: clamp(2rem, 4vw, 3rem); background: var(--white); border: 1px solid var(--sand); border-radius: var(--r-lg); }
.testimonial blockquote { margin: 0 0 1.2rem; }
.testimonial blockquote p { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; color: var(--ink); font-style: italic; }
.testimonial figcaption strong { display: block; color: var(--maroon); }
.testimonial figcaption span { font-size: .88rem; color: var(--muted); }

/* ---------- Student life ---------- */
.mini-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.5rem; }
.mini-list li { display: flex; gap: .8rem; align-items: flex-start; }
.mini-list .hl-icon { width: 42px; height: 42px; }
.mini-list .hl-icon .ico { width: 20px; height: 20px; }
.mini-list strong { display: block; color: var(--ink); font-size: .95rem; }
.mini-list span:not(.hl-icon) { font-size: .86rem; color: var(--muted); }

.gallery { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: .8rem; }
.gallery li:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery li.is-hidden { display: none; }
.gallery-item { position: relative; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--maroon-800); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .7rem; text-align: left; font-size: .85rem; color: var(--white); background: linear-gradient(transparent, rgba(44, 7, 16, .85)); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(28, 5, 11, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(1100px, 88vw); }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: var(--r); }
.lightbox figcaption { color: var(--white); text-align: center; margin-top: .8rem; }
.lb-close, .lb-nav { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Admissions ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); z-index: 0; }
.steps li { position: relative; text-align: center; padding: 0 .5rem; }
.step-num { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--maroon); color: var(--white); font-family: var(--serif); font-size: 1.4rem; box-shadow: 0 0 0 6px var(--cream); }
.steps h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.steps p { font-size: .9rem; margin: 0; }

.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.checklist { list-style: none; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r); color: var(--ink); }
.checklist .ico { color: var(--white); background: var(--gold); border-radius: 50%; padding: 4px; width: 24px; height: 24px; flex: none; }
.checklist small { display: block; color: var(--muted); }
.info-card { padding: 2rem; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.info-card h2 { font-size: 1.6rem; margin-top: 1rem; }
.info-card .btn-row { margin-top: 1.2rem; }

.form-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-mini { list-style: none; display: grid; gap: .8rem; margin-top: 1rem; }
.contact-mini li { display: flex; gap: .7rem; align-items: center; }
.contact-mini .ico { color: var(--gold-600); }
.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); border: 1px solid var(--sand); }
fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; }
legend { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-bottom: 1rem; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #dccdb8; border-radius: 10px; background: var(--cream);
  font-weight: 400; font-size: .95rem; transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maroon); background: var(--white); box-shadow: 0 0 0 3px rgba(107, 17, 39, .12); }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff6f5; }
.field-err { margin: 0; font-size: .82rem; font-weight: 500; color: #b3261e; }
.req { color: var(--maroon-600); }
.seg { display: flex; gap: .5rem; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .72rem; border: 1px solid #dccdb8; border-radius: 10px; font-weight: 500; background: var(--cream); }
.seg input:checked + span { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-note { font-size: .8rem; color: var(--muted); margin: .8rem 0 0; text-align: center; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .92rem; }
.alert-error { background: #fdecea; color: #8c1d18; border: 1px solid #f5c6c2; }
.success { text-align: center; padding: 2rem 1rem; }
.success .round-icon { margin: 0 auto 1rem; background: #e6f4ea; color: #1e7b3a; }
.success h3 { font-size: 1.6rem; }

.faqs { display: grid; gap: .7rem; }
.faqs details { background: var(--white); border: 1px solid var(--sand); border-radius: var(--r); }
.faqs summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary .ico { color: var(--gold-600); transition: transform .2s; }
.faqs details[open] summary .ico { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.1rem; }
.faq-a p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-cards { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.contact-cards li { padding: 1.6rem; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r); }
.contact-cards h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 1rem 0 .4rem; }
.contact-cards p { margin: 0; font-size: .92rem; }
.contact-cards a { color: var(--ink); text-decoration: none; }
.contact-cards a:hover { color: var(--maroon); }
.map { margin-top: 1.8rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--sand); aspect-ratio: 4 / 3; background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-950); color: rgba(255, 255, 255, .78); font-size: .9rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1.2fr 1fr; gap: 2rem; padding-block: 3.2rem 2.6rem; }
.footer-grid > div + div { border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 2rem; }
.f-title { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--white); margin-bottom: 1rem; letter-spacing: 0; }
.f-motto { font-family: var(--serif); font-style: italic; margin-top: 1rem; color: rgba(255, 255, 255, .6); }
.f-contact ul { list-style: none; display: grid; gap: .8rem; }
.f-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.f-contact .ico { color: var(--gold); margin-top: .15rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.f-cols { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.socials .ico { width: 18px; height: 18px; }
.f-script { font-family: var(--script); font-size: 1.9rem; color: var(--gold-300); line-height: 1.1; margin: 1.2rem 0 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem; font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; gap: 1.25rem; }

.wa-float { display: none; position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: var(--white); place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }
.wa-float .ico { width: 28px; height: 28px; }
.wa-float:hover { color: var(--white); background: #1ebe5a; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1320px) and (min-width: 1181px) {
  .site-nav > ul > li > a { padding-inline: .5rem; font-size: .88rem; }
  .site-nav > ul > li > a::after { left: .5rem; right: .5rem; }
  .site-nav { gap: 1rem; }
  .brand-name { font-size: 1.1rem; }
  .brand-tag { display: none; }
}
@media (max-width: 1100px) {
  .photo-cards { grid-template-columns: repeat(2, 1fr); }
  .icon-cards { grid-template-columns: repeat(2, 1fr); }
  .ruled-row { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .ruled-row li:nth-child(3n + 1) { border-left: 0; }
  .news-row { grid-template-columns: 1fr; }
  .news-row .news-card { grid-template-columns: 180px 1fr; }
  .promise { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 1180px) {
  .topbar-sub, .topbar-sep { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--sand);
    background: var(--white); color: var(--maroon); cursor: pointer;
  }
  .nav-toggle .i-close { display: none; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h, 122px) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--pad) 2rem; background: var(--cream); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav-open .site-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--sand); display: flex; flex-wrap: wrap; align-items: center; }
  .site-nav > ul > li > a { flex: 1; padding: 1rem .2rem; font-size: 1.05rem; }
  .site-nav > ul > li > a::after { display: none; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--maroon); cursor: pointer; }
  .sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
  .sub { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 .6rem .8rem; display: none; }
  .has-sub.sub-open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.sub-open:hover .sub { display: block; }
  .nav-cta { align-self: stretch; }
}

@media (max-width: 960px) {
  .topbar-sub, .topbar-sep { display: none; }


  .home-hero-photo, .page-hero-photo, .director-hero .page-hero-photo { left: 0; }
  .home-hero::before, .page-hero::before, .director-hero::before { background: linear-gradient(180deg, rgba(59, 10, 21, .55) 0%, rgba(59, 10, 21, .85) 45%, var(--maroon-900) 100%); }
  .home-hero-in { min-height: 0; padding-block: 8rem 7rem; flex-direction: column; align-items: flex-start; }
  .hero-badge { left: var(--pad); right: var(--pad); bottom: 1.5rem; }
  .page-hero-in { padding-block: 6rem 3rem; min-height: 0; flex-direction: column; align-items: flex-start; }
  .hero-facts { position: static; margin-top: 2rem; border-radius: var(--r); width: 100%; }
  .page-hero:has(.hero-facts) .page-hero-in { padding-bottom: 2rem; }

  .highlights { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; }
  .highlights > li:nth-child(3) { border-left: 0; padding-left: 0; }
  .split, .split.reverse, .letter, .two-col, .form-layout { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .letter-side { position: static; }
  .vm-photo { inset: 0; opacity: .35; }
  .vm-band::before { background: rgba(59, 10, 21, .75); }
  .cta-band { grid-template-columns: 1fr; text-align: left; }
  .cta-script { display: none; }
  .cta-band .btn-row { margin-right: 0; }
  .join-in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .steps::before { display: none; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .stats li:nth-child(3) { border-left: 0; }
  .wa-float { display: grid; }
}

@media (max-width: 640px) {
  .topbar-links a:not(.topbar-wa) { display: none; }
  .topbar-wa { font-size: 0; gap: 0; }
  .topbar-wa .ico { width: 20px; height: 20px; }
  .header-in { min-height: 72px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { font-size: .72rem; }
  .highlights, .icon-cards, .icon-cards.three, .photo-cards, .news-grid, .programs, .contact-cards, .mini-list, .vm-cols, .pillars, .steps, .chips { grid-template-columns: 1fr; }
  .highlights > li { padding: 0 !important; border-left: 0 !important; }
  .highlights.boxed > li { padding: 1rem !important; border: 1px solid var(--sand) !important; }
  .vm-col + .vm-col { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 2rem; }
  .pillars { row-gap: 2.5rem; }
  .pillars li + li { border-left: 0; }
  .ruled-row { grid-template-columns: 1fr 1fr; }
  .ruled-row li { border-left: 0 !important; }
  .news-row .news-card { grid-template-columns: 120px 1fr; }
  .hero-facts { flex-direction: column; }
  .hero-fact + .hero-fact { border-left: 0; border-top: 1px solid var(--sand); }
  .letter-facts { grid-template-columns: 1fr; }
  .letter-facts > div + div { border-left: 0; border-top: 1px solid var(--sand); }
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .gallery li:nth-child(6n + 1) { grid-column: span 2; grid-row: span 1; }
  .motto-in { flex-direction: column; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.6rem; }
  .footer-bottom-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Online application form (matches the Digital Systems Portal /apply form)
   ========================================================================== */
.apply-section {
  --af-primary: #7a1b2e; --af-primary-d: #5e1323; --af-accent: #d4a94a; --af-accent-l: #e3c878; --af-accent-d: #9a7424;
  --af-ink: #1f1a1c; --af-muted: #6b6468; --af-faint: #9a9296; --af-border: #e6e0da; --af-border-strong: #cfc6be;
  --af-success: #1f7a4d; --af-danger: #b3261e; --af-surface: #fff; --af-muted-bg: #faf7f3;
  position: relative; overflow: hidden; background: #2a0c12; padding-block: clamp(2.5rem, 6vw, 4.5rem); scroll-margin-top: 80px;
}
.apply-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apply-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,8,.45) 0%, rgba(20,8,8,.25) 25%, rgba(20,8,8,.55) 60%, rgba(15,6,6,.9) 100%); }
.apply-arc { position: absolute; left: -6rem; bottom: 0; width: 24rem; height: 24rem; opacity: .25; pointer-events: none; }
.apply-script { position: absolute; right: 2.5rem; top: 2.5rem; margin: 0; text-align: right; color: rgba(255,255,255,.85); font: italic 1.2rem/1.25 Georgia, "Times New Roman", serif; pointer-events: none; }
.apply-in { position: relative; display: flex; align-items: center; gap: clamp(2rem, 4vw, 3.5rem); max-width: 1400px; }
.apply-intro { flex: 0 0 auto; max-width: 24rem; color: #fff; }
.apply-intro h2 { color: #fff; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.3rem); line-height: 1.15; margin-bottom: .75rem; }
.apply-intro h2 span { color: var(--af-accent-l); }
.apply-lead { color: rgba(255,255,255,.78); font-size: .95rem; }
.apply-badges { display: flex; gap: 1.5rem; margin-top: 2rem; }
.apply-badges div { display: flex; flex-direction: column; gap: .5rem; }
.apply-badges span { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(227,200,120,.5); color: var(--af-accent-l); display: grid; place-items: center; }
.apply-badges .ico { width: 19px; height: 19px; }
.apply-badges p { margin: 0; font-size: .75rem; font-weight: 600; line-height: 1.25; color: rgba(255,255,255,.9); }
.apply-motto { margin: 2.25rem 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .22em; color: var(--af-accent-l); }
.apply-main { flex: 1; min-width: 0; max-width: 42rem; margin-left: auto; }
.apply-mobile-head { display: none; align-items: center; gap: .75rem; margin-bottom: 1.25rem; color: #fff; }
.apply-mobile-head p { margin: 0; font-family: var(--serif); font-size: .95rem; font-weight: 700; }
.apply-mobile-head small { color: rgba(255,255,255,.7); font-size: .75rem; }

.af-card { background: var(--af-surface); border: 1px solid var(--af-border); border-radius: 12px; padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px -12px rgba(0,0,0,.35); color: var(--af-ink); font-size: 14px; }
.af-card[hidden] { display: none; }
.af-notice { display: flex; gap: .75rem; padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; border: 1px solid rgba(212,169,74,.3); background: rgba(212,169,74,.1); border-radius: 10px; font-size: 13.5px; }
.af-notice-ico { width: 32px; height: 32px; flex: none; border-radius: 50%; background: rgba(212,169,74,.2); color: var(--af-accent-d); display: grid; place-items: center; }
.af-notice-ico .ico { width: 17px; height: 17px; }
.af-notice-title { margin: 0 0 .4rem; font-family: var(--serif); font-weight: 700; color: var(--af-ink); }
.af-notice ul { list-style: disc; padding-left: 1rem; margin: 0; display: grid; gap: .25rem; }
.af-notice strong { color: var(--af-ink); }

.af-stepper { list-style: none; display: flex; align-items: flex-start; margin: 0 0 1.5rem; padding: 0 0 .25rem; overflow-x: auto; scrollbar-width: thin; }
.af-stepper li { display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 92px; flex: 0 0 auto; text-align: center; position: relative; }
.af-stepper li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: calc(50% + 22px); width: calc(100% - 44px); height: 1px; background: var(--af-border); }
.af-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: rgba(0,0,0,.06); color: var(--af-faint); }
.af-dot svg { width: 14px; height: 14px; }
.af-stepper li.current .af-dot { background: var(--af-primary); color: #fff; }
.af-stepper li.done .af-dot { background: var(--af-success); color: #fff; }
.af-dot-label { font-size: 11px; line-height: 1.25; color: var(--af-faint); }
.af-stepper li.current .af-dot-label { font-weight: 600; color: var(--af-ink); }

.af-steptitle { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.af-steptitle-ico { width: 32px; height: 32px; border-radius: 6px; background: rgba(122,27,46,.1); color: var(--af-primary); display: grid; place-items: center; }
.af-steptitle-ico .ico { width: 16px; height: 16px; }
.af-steptitle p { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--af-muted); }

.af-box { border: 1px solid var(--af-border); border-radius: 10px; padding: clamp(1rem, 3vw, 1.4rem); }
.af-step { display: grid; gap: .75rem; }
.af-step[hidden], [data-show-if][hidden] { display: none; }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.af-field { min-width: 0; }
.af-label { display: block; margin: 0 0 .35rem; font-size: 13px; font-weight: 500; color: var(--af-ink); }
.af-input-wrap { position: relative; }
.af-input-wrap.has-icon .af-input { padding-left: 2.5rem; }
.af-input-ico { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--af-faint); pointer-events: none; }
.af-input { width: 100%; border: 1px solid var(--af-border); background: var(--af-surface); border-radius: 6px; padding: .6rem .85rem; font-size: 14px; color: var(--af-ink); transition: border-color .15s, box-shadow .15s; }
.af-input::placeholder { color: var(--af-faint); }
.af-input:focus { outline: none; border-color: var(--af-primary); box-shadow: 0 0 0 3px rgba(122,27,46,.15); }
textarea.af-input { resize: vertical; }
.af-field.has-error .af-input { border-color: var(--af-danger); }
.af-err { margin: .3rem 0 0; font-size: 12px; color: var(--af-danger); }
.af-err:empty { display: none; }
.af-radios { display: flex; gap: 1rem; font-size: 13px; }
.af-radios-col { flex-direction: column; gap: .5rem; }
.af-radios label { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.af-radios input { accent-color: var(--af-primary); width: 16px; height: 16px; }
.af-sub { margin: 0; font-size: 13px; font-weight: 600; color: var(--af-ink); }
.af-divider { height: 1px; background: var(--af-border); margin: .35rem 0; }
.af-help { margin: 0; font-size: 13px; color: var(--af-muted); }
.af-note { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--af-muted); }
.af-file { font-size: 13px; color: var(--af-muted); max-width: 100%; }
.af-drop { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1rem; border: 1px dashed var(--af-border-strong); border-radius: 6px; text-align: center; font-size: 13px; color: var(--af-muted); cursor: pointer; transition: border-color .15s, background .15s; }
.af-drop:hover, .af-drop.is-over { border-color: rgba(122,27,46,.45); background: rgba(122,27,46,.03); }
.af-drop .ico { width: 24px; height: 24px; color: var(--af-primary); }
.af-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.af-drop strong { color: var(--af-ink); }
.af-docs { display: flex; gap: .75rem; padding: 1rem; border: 1px solid var(--af-border); border-radius: 6px; background: var(--af-muted-bg); font-size: 13px; color: var(--af-muted); }
.af-docs .ico { width: 20px; height: 20px; color: var(--af-primary); flex: none; margin-top: .1rem; }
.af-docs p { margin: 0 0 .35rem; }
.af-docs strong { color: var(--af-ink); }
.af-danger { color: var(--af-danger); }
.af-review { display: grid; gap: .9rem; }
.af-review-card { border: 1px solid var(--af-border); border-radius: 6px; padding: .9rem 1rem; }
.af-review-title { margin: 0 0 .4rem; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--af-faint); }
.af-review-main { margin: 0; font-size: 14px; color: var(--af-ink); }
.af-review-sub { margin: 0; font-size: 13px; color: var(--af-muted); }
.af-form-error { margin: .9rem 0 0; padding: .65rem .8rem; border: 1px solid rgba(179,38,30,.25); background: rgba(179,38,30,.05); border-radius: 6px; font-size: 13px; color: var(--af-danger); }

.af-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.af-actions [hidden] { display: none; }
.af-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .62rem 1.2rem; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.af-btn .ico { width: 16px; height: 16px; }
.af-btn-primary { background: var(--af-primary); color: #fff; margin-left: auto; }
.af-btn-primary:hover { background: var(--af-primary-d); }
.af-btn-primary:disabled { opacity: .6; cursor: wait; }
.af-btn-outline { background: var(--af-surface); border-color: var(--af-border-strong); color: var(--af-ink); }
.af-btn-outline:hover { border-color: var(--af-primary); color: var(--af-primary); }

.af-gate { text-align: center; display: flex; flex-direction: column; align-items: center; padding: clamp(2rem, 5vw, 3rem) 1.5rem; }
.af-gate img { width: 64px; height: 64px; object-fit: contain; }
.af-gate-ico { margin-top: 1.1rem; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.af-gate-ico .ico { width: 22px; height: 22px; }
.af-gate-ico.warn { background: rgba(212,169,74,.15); color: var(--af-accent-d); }
.af-gate-ico.ok { background: rgba(31,122,77,.12); color: var(--af-success); }
.af-gate h3 { margin: 1rem 0 .4rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--af-ink); }
.af-gate p { margin: 0; font-size: 14px; color: var(--af-muted); max-width: 30rem; }
.af-gate-contact { margin-top: .75rem !important; font-size: 13px !important; color: var(--af-faint) !important; }
.af-ref { margin-top: 1rem; border: 1px solid var(--af-border); border-radius: 10px; padding: 1rem 1.5rem; }
.af-ref small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--af-faint); }
.af-ref strong { display: block; margin-top: .25rem; font-family: var(--serif); font-size: 1.2rem; color: var(--af-primary); }
.af-noscript { background: #fff; padding: 1rem; border-radius: 10px; }

@media (max-width: 1100px) { .apply-script { display: none; } }
@media (max-width: 1023px) {
  .apply-intro { display: none; }
  .apply-mobile-head { display: flex; }
  .apply-main { margin-inline: auto; }
}
@media (max-width: 560px) {
  .af-grid { grid-template-columns: 1fr; }
  .af-stepper li { width: 76px; }
  .af-actions { flex-wrap: wrap; }
}

/* ==========================================================================
   Facilities
   ========================================================================== */
.fac-tabs { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.fac-tablist { display: flex; flex-direction: column; gap: .4rem; }
.fac-tablist button { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .85rem 1rem; border: 1px solid transparent; border-radius: var(--r); background: transparent; text-align: left; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.fac-tablist button:hover { background: var(--white); border-color: var(--sand); }
.fac-tablist button[aria-selected="true"] { background: var(--maroon); color: var(--white); box-shadow: var(--shadow); }
.fac-tab-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-100); color: var(--maroon); flex: none; }
.fac-tablist button[aria-selected="true"] .fac-tab-ico { background: rgba(255,255,255,.14); color: var(--gold-300); }
.fac-tab-ico .ico { width: 20px; height: 20px; }
.fac-panel { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; animation: fac-in .35s ease; }
.fac-panel[hidden] { display: none; }
@keyframes fac-in { from { opacity: 0; transform: translateY(6px); } }
.fac-panel-media { background: var(--maroon-800); }
.fac-panel-media img { width: 100%; height: 100%; object-fit: cover; }
.fac-panel-copy { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; align-items: flex-start; }
.fac-panel-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.fac-summary { color: var(--gold-600); font-weight: 600; margin-bottom: .75rem; }
.fac-body { font-size: .95rem; margin-bottom: 1.25rem; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.fac-panel-copy .btn { margin-top: auto; }

.fac-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.fac-jump a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; background: var(--white); border: 1px solid var(--sand); text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.fac-jump a:hover { border-color: var(--gold); color: var(--maroon); }
.fac-jump .ico { width: 1.05em; height: 1.05em; color: var(--gold-600); }
.fac-block { scroll-margin-top: 110px; }
.fac-block-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.fac-block.is-flip .fac-copy { order: 2; }
.fac-collage { display: grid; gap: .8rem; }
.fac-collage figure { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.fac-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.fac-collage figure:hover img { transform: scale(1.03); }
.fac-collage.n1 figure { aspect-ratio: 4 / 3; }
.fac-collage.n2 { grid-template-columns: 1.4fr 1fr; }
.fac-collage.n2 figure { aspect-ratio: 3 / 4; }
.fac-collage.n2 figure:first-child { aspect-ratio: auto; }
.fac-collage.n3 { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; }
.fac-collage.n3 figure:first-child { grid-row: span 2; }

/* ==========================================================================
   School calendar
   ========================================================================== */
.cat-term { --c: #6b1127; } .cat-exam { --c: #c0392b; } .cat-holiday { --c: #1f7a4d; } .cat-event { --c: #c89a3f; }
.cat-meeting { --c: #2a5ea8; } .cat-sports { --c: #7b4bb3; } .cat-admissions { --c: #0f8a8a; }
.cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: .45rem; }

.event-cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.event-card { display: flex; gap: .9rem; padding: 1rem; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); border-top: 3px solid var(--c, var(--gold)); }
.ev-date { width: 54px; flex: none; text-align: center; border-radius: 10px; background: var(--cream-2); padding: .4rem 0; line-height: 1.05; align-self: flex-start; }
.ev-date b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--maroon); }
.ev-date small { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ev-body strong { color: var(--ink); font-size: .98rem; line-height: 1.3; }
.ev-cat { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--gold-600)); }
.ev-meta { font-size: .82rem; color: var(--muted); }

.cal-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cal-top .section-head { margin-bottom: 0; }
.cal-pdf { flex: none; }
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 2rem; position: sticky; top: 76px; z-index: 5; }
.cal-toolbar .filter { flex: 1; }
.cal-toolbar .filter button { display: inline-flex; align-items: center; }
.cal-views { display: inline-flex; padding: 3px; background: var(--cream-2); border-radius: 999px; }
.cal-views button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; padding: .45rem .95rem; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--text); cursor: pointer; }
.cal-views button.is-on { background: var(--maroon); color: var(--white); }
.cal-views .ico { width: 1em; height: 1em; }
.cal-past { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--muted); cursor: pointer; }
.cal-past input { accent-color: var(--maroon); }
.cal-month { margin-bottom: 2.25rem; }
.cal-month-title { font-size: 1.35rem; padding-bottom: .6rem; margin-bottom: 1rem; border-bottom: 1px solid var(--sand); }
.cal-month ul { list-style: none; display: grid; gap: .75rem; }
.cal-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1rem 1.1rem; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); border-left: 4px solid var(--c, var(--gold)); }
.cal-item.is-past { opacity: .6; }
.cal-item h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: .1rem 0 .3rem; }
.cal-item .ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0; }
.cal-item .ev-meta .ico { width: 1em; height: 1em; color: var(--gold-600); }
.cal-desc { margin: .45rem 0 0; font-size: .92rem; }
.cal-add { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; text-decoration: none; padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--sand); white-space: nowrap; }
.cal-add:hover { border-color: var(--maroon); }
.cal-add .ico { width: 1em; height: 1em; }
.cal-grid-wrap { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 1.75rem); }
.cal-grid-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-grid-head h2 { margin: 0; font-size: 1.4rem; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sand); background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--maroon); }
.cal-nav:hover { border-color: var(--maroon); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--sand); border-left: 1px solid var(--sand); }
.cal-dow { padding: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--sand); border-bottom: 1px solid var(--sand); background: var(--cream); }
.cal-day { min-height: 104px; padding: .4rem; border-right: 1px solid var(--sand); border-bottom: 1px solid var(--sand); display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cal-day.is-out { background: var(--cream); }
.cal-day.is-out .cal-daynum { color: #bbb2aa; }
.cal-daynum { font-size: .8rem; font-weight: 600; color: var(--ink); }
.cal-day.is-today .cal-daynum { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--maroon); color: var(--white); }
.cal-chip { display: block; font-size: .72rem; line-height: 1.3; padding: .15rem .35rem; border-radius: 4px; color: var(--white); background: var(--c, var(--gold)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: .7rem; color: var(--muted); }
.gallery-more { margin-top: 2rem; }

@media (max-width: 1100px) {
  .event-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .fac-tabs { grid-template-columns: 1fr; }
  .fac-tablist { flex-direction: row; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
  .fac-tablist button { width: auto; flex: none; white-space: nowrap; }
  .fac-block-in { grid-template-columns: 1fr; }
  .fac-block.is-flip .fac-copy { order: 0; }
}
@media (max-width: 640px) {
  .fac-panel { grid-template-columns: 1fr; }
  .fac-panel-media { aspect-ratio: 16 / 10; }
  .event-cards { grid-template-columns: 1fr; }
  .cal-item { grid-template-columns: auto minmax(0, 1fr); }
  .cal-add { grid-column: 2; justify-self: start; }
  .cal-add span { display: inline; }
  .cal-toolbar { position: static; }
  .cal-day { min-height: 64px; padding: .25rem; }
  .cal-chip { font-size: 0; height: 6px; padding: 0; }
  .fac-collage.n3 { aspect-ratio: auto; grid-template-rows: auto; }
  .fac-collage.n3 figure { aspect-ratio: 4 / 3; }
  .fac-collage.n3 figure:first-child { grid-row: auto; grid-column: 1 / -1; }
}

/* ---------- Menus never wrap onto two lines ---------- */
.site-nav a, .sub a, .f-cols a, .nav-cta, .topbar-links a, .filter button, .fac-tablist button span, .cal-views button { white-space: nowrap; }
.sub { min-width: max-content; }
.brand-name .bn-1, .brand-name .bn-2 { display: block; white-space: nowrap; }
.brand-name .bn-2 { margin-top: .1em; }

/* ---------- Language menu ---------- */
.lang-pick { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255, 255, 255, .88); cursor: pointer; }
.lang-pick .ico { width: 1em; height: 1em; color: var(--gold-300); }
.lang-pick select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; font-size: .8rem; padding: .2rem 1rem .2rem 0; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 6px) 55%, calc(100% - 2px) 55%; background-size: 4px 4px; background-repeat: no-repeat; }
.lang-pick select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-pick option { color: var(--ink); }
/* hide Google Translate's own bar and tooltips */
.goog-te-banner-frame, iframe.skiptranslate, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
@media (max-width: 640px) { .lang-pick select { max-width: 6.5rem; } }

/* ---------- Footer script line under the logo ---------- */
.f-brand-script { font-family: var(--script); font-size: 1.9rem; line-height: 1.1; color: var(--gold-300); margin: 1rem 0 0; }

/* ---------- Quotes with photos ---------- */
.testimonial + .testimonial { margin-top: 1.25rem; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: .9rem; text-align: left; }
.t-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-100); flex: none; }
.t-photo.is-mono { display: grid; place-items: center; background: var(--maroon); color: var(--gold-300); font-family: var(--serif); font-size: 1.2rem; border-color: var(--gold-100); }
.t-who { display: flex; flex-direction: column; }

/* ---------- People, avatars ---------- */
.is-mono { display: grid; place-items: center; background: linear-gradient(145deg, var(--maroon) 0%, var(--maroon-800) 100%); color: var(--gold-300); font-family: var(--serif); letter-spacing: .03em; }
.check-list { list-style: none; display: grid; gap: .6rem; margin-top: 1.25rem; }
.check-list li { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.check-list .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold-100); color: var(--maroon); flex: none; }

/* ---------- Fees structure ---------- */
.fee-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.fee-card { position: relative; padding: 2rem 1.75rem 1.75rem; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r-lg); box-shadow: var(--shadow); text-align: center; overflow: hidden; }
.fee-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--maroon), var(--gold)); }
.fee-class { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .75rem; }
.fee-amount { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--maroon); line-height: 1.15; margin: 0; }
.fee-amount.is-ask { font-size: 1.2rem; }
.fee-period { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }
.fee-note { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--sand); font-size: .92rem; color: var(--text); }
.fee-pay { align-items: start; }
.pay-options { display: grid; gap: 1rem; }
.pay-option { display: flex; gap: 1.1rem; padding: 1.4rem; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); }
.pay-option h3 { font-size: 1.2rem; margin-bottom: .1rem; }
.pay-sub { color: var(--gold-600); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.doc-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.doc { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.doc:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.doc-ico { position: relative; width: 52px; height: 60px; border-radius: 8px; background: var(--cream-2); color: var(--maroon); display: grid; place-items: center; flex: none; }
.doc-ico .ico { width: 26px; height: 26px; }
.doc-ico b { position: absolute; bottom: -6px; right: -6px; font-size: .62rem; letter-spacing: .04em; background: var(--maroon); color: var(--white); padding: .1rem .35rem; border-radius: 4px; }
.doc-body { flex: 1; min-width: 0; }
.doc-body h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: 0 0 .15rem; }
.doc-body p { font-size: .88rem; color: var(--muted); margin: 0; }
.doc-body small { color: var(--muted); font-size: .78rem; }
.doc-btn { flex: none; }
.doc.is-pending { opacity: .75; }
.doc-soon { font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--cream-2); padding: .4rem .75rem; border-radius: 999px; white-space: nowrap; }
.contact-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.person-card { width: 260px; padding: 1.75rem 1.25rem; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); text-align: center; }
.person-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--gold-100); font-size: 1.6rem; }
.person-card h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.person-role { color: var(--gold-600); font-weight: 600; font-size: .9rem; margin: 0; }
.person-phone { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; font-weight: 600; text-decoration: none; }
.person-phone .ico { width: 1em; height: 1em; }

/* ---------- Wall of Fame ---------- */
.fame-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2.5rem; }
.fame-stats li { text-align: center; padding: 1.4rem 1rem; border-radius: var(--r); background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-800) 100%); color: var(--white); }
.fame-stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--gold-300); }
.fame-stats span { display: block; margin-top: .4rem; font-size: .85rem; color: rgba(255, 255, 255, .8); }
.fame-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--sand); }
.fame-years { display: flex; flex-wrap: wrap; gap: .35rem; }
.fame-years a { padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--sand); text-decoration: none; font-weight: 600; font-size: .85rem; color: var(--maroon); }
.fame-years a:hover { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.fame-year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--sand); scroll-margin-top: 110px; }
.fame-year:last-child { border-bottom: 0; }
.fame-year-label { position: sticky; top: 100px; align-self: start; text-align: center; padding: 1rem .5rem; border-radius: var(--r); background: var(--cream-2); }
.fame-year-label span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.fame-year-label h2 { margin: .1rem 0 0; font-size: 2.1rem; color: var(--maroon); }
.fame-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fame-cell[hidden] { display: none; }
.fame-card { height: 100%; text-align: center; padding: 1.5rem 1rem 1.25rem; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.fame-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg, var(--shadow)); }
.fame-photo { position: relative; width: 104px; height: 104px; margin: 0 auto 1rem; }
.fame-img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold-300); font-size: 1.8rem; }
.fame-badge { position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--white); border: 3px solid var(--white); }
.fame-badge .ico { width: 16px; height: 16px; }
.fame-cat { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 .35rem; }
.fame-card h3 { font-size: 1.08rem; line-height: 1.25; margin: 0; color: var(--ink); }
.fame-line { display: inline-block; margin: .6rem 0 0; padding: .25rem .7rem; border-radius: 999px; background: var(--maroon); color: var(--white); font-size: .8rem; font-weight: 600; }
.fame-note { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; }
.fame-head_boy .fame-badge, .fame-head_girl .fame-badge { background: var(--maroon); }
.fame-motto { margin: 2.5rem 0 0; text-align: center; font-family: var(--script); font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--maroon); }

/* ---------- Alumni ---------- */
.alumni-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.alumni-story { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.5rem; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.alumni-img { width: 160px; height: 190px; object-fit: cover; border-radius: var(--r); font-size: 2.4rem; }
.alumni-story blockquote { margin: 0 0 1rem; font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--ink); }
.alumni-story blockquote .pq-mark { height: 1.4rem; font-size: 3.5rem; }
.alumni-name { font-weight: 700; color: var(--maroon); margin: 0; font-size: 1.05rem; }
.alumni-now { color: var(--muted); font-size: .9rem; margin: .1rem 0 .5rem; }
.alumni-chip { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: var(--gold-100); color: var(--maroon); font-size: .75rem; font-weight: 700; }
.alumni-tools { display: flex; gap: .6rem; flex-wrap: wrap; }
.alumni-tools input, .alumni-tools select { border: 1px solid var(--sand); border-radius: 999px; padding: .6rem 1rem; font: inherit; font-size: .9rem; background: var(--white); min-width: 220px; }
.alumni-tools select { min-width: 0; }
.alumni-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.alumni-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); }
.alumni-card[hidden] { display: none; }
.alumni-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none; font-size: 1.2rem; }
.alumni-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0; }
.alumni-card .alumni-now { margin-bottom: .35rem; }
.alumni-join { align-items: start; }

@media (max-width: 1100px) {
  .fame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alumni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alumni-stories { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .fee-cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .doc-list { grid-template-columns: 1fr; }
  .fame-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fame-year { grid-template-columns: 1fr; gap: 1rem; }
  .fame-year-label { position: static; display: flex; align-items: baseline; justify-content: center; gap: .6rem; padding: .6rem; }
  .fame-year-label h2 { font-size: 1.6rem; margin: 0; }
}
@media (max-width: 640px) {
  .fame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .fame-card { padding: 1.1rem .6rem 1rem; }
  .fame-photo, .fame-img { width: 80px; height: 80px; }
  .alumni-grid { grid-template-columns: 1fr; }
  .alumni-story { grid-template-columns: 1fr; text-align: center; }
  .alumni-img { width: 140px; height: 160px; margin: 0 auto; }
  .alumni-tools, .alumni-tools input { width: 100%; }
  .doc { flex-wrap: wrap; }
  .doc-btn { width: 100%; justify-content: center; }
  .testimonial figcaption { flex-direction: column; text-align: center; }
  .f-brand-script { font-size: 1.6rem; }
}

/* ---------- Embedded portal application form ---------- */
.apply-embed { display: block; width: 100%; scroll-margin-top: 80px; background: #2a0c12; }
.apply-frame { display: block; width: 100%; height: max(760px, 100vh); border: 0; background: #2a0c12; }
.apply-embed-help { padding-block: .9rem; text-align: center; font-size: .88rem; color: rgba(255, 255, 255, .8); }
.apply-embed-help a { color: var(--gold-300); font-weight: 600; }
.apply-embed-help .ico { width: 1em; height: 1em; vertical-align: -2px; }
.apply-embed-help p { margin: .25rem 0; }
[data-apply-fallback] { display: inline-flex; gap: .5rem; align-items: flex-start; padding: .6rem .9rem; border-radius: 8px; background: rgba(255, 255, 255, .08); }
[data-apply-fallback][hidden] { display: none; }

/* ---------- Bottom-right pop-up ---------- */
.promo-pop { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80; width: min(360px, calc(100vw - 2rem)); background: var(--white); border-radius: var(--r-lg); box-shadow: 0 18px 50px -12px rgba(40, 8, 16, .45); overflow: hidden; opacity: 0; transform: translateY(20px); transition: opacity .35s ease, transform .35s ease; }
.promo-pop.is-in { opacity: 1; transform: none; }
.promo-pop[hidden] { display: none; }
.pop-x { position: absolute; top: .45rem; right: .55rem; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.promo-pop.has-apply .pop-x { color: var(--white); }
.promo-pop:not(.has-apply) .pop-x { color: var(--muted); background: var(--cream-2); }
.pop-x:hover { background: rgba(255, 255, 255, .3); }
.pop-apply { position: relative; padding: 1.35rem 1.4rem 1.3rem; background: linear-gradient(150deg, var(--maroon) 0%, var(--maroon-800) 100%); color: var(--white); }
.pop-apply::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(227, 192, 120, .3); }
.pop-eyebrow { display: flex; align-items: center; gap: .45rem; margin: 0 0 .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.pop-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pop-pulse 1.8s infinite; }
@keyframes pop-pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.pop-apply h3 { color: var(--white); font-size: 1.3rem; margin: 0 1.5rem .35rem 0; line-height: 1.2; }
.pop-sub { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.pop-sub strong { color: var(--white); }
.pop-closes { margin: .5rem 0 0; font-size: .82rem; font-weight: 600; color: var(--gold-300); }
.pop-btn { position: relative; z-index: 1; margin-top: 1rem; width: 100%; justify-content: center; }
.pop-event { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--ink); }
.pop-event:hover { background: var(--cream); }
.pop-event .pop-eyebrow { color: var(--gold-600); margin-bottom: .15rem; }
.pop-date { width: 54px; flex: none; text-align: center; border-radius: 10px; background: var(--cream-2); border-top: 3px solid var(--c, var(--gold)); padding: .35rem 0; line-height: 1.05; }
.pop-date b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--maroon); }
.pop-date small { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pop-ev-body { display: flex; flex-direction: column; min-width: 0; padding-right: 1.25rem; }
.pop-ev-body strong { font-size: .98rem; line-height: 1.3; }
.pop-meta { font-size: .8rem; color: var(--muted); margin-top: .1rem; }
.pop-link { font-size: .82rem; font-weight: 600; color: var(--maroon); margin-top: .4rem; }
.pop-event.is-compact { padding: .8rem 1.25rem; border-top: 1px solid var(--sand); }
.pop-event.is-compact .pop-date { width: 46px; }
.pop-event.is-compact .pop-date b { font-size: 1.2rem; }
@media (max-width: 640px) {
  .promo-pop { right: .75rem; left: .75rem; bottom: 5.25rem; width: auto; }
  .pop-apply { padding: 1.1rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .promo-pop { transition: none; } .pop-dot { animation: none; } }

/* ---------- Home hero slideshow (same frame and overlay; only the photos change) ---------- */
.home-hero-photo[data-hero-slides] { overflow: hidden; }
.hh-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; will-change: opacity, transform; }
.hh-slide.is-on { opacity: 1; }
.hh-fx-zoom .hh-slide { transform: scale(1.12); transition: opacity 1.6s ease, transform 0s linear 1.6s; }
.hh-fx-zoom .hh-slide.is-on { transform: scale(1); transition: opacity 1.6s ease, transform var(--hh-hold, 8s) ease-out; }
@media (prefers-reduced-motion: reduce) {
  .hh-slide, .hh-fx-zoom .hh-slide, .hh-fx-zoom .hh-slide.is-on { transform: none; transition: opacity .6s ease; }
}
