/* ==========================================================================
   New Beacon International School — public site
   Brand: navy #002749 + coral #ff4e31 (from the original site), gold from the crest.
   ========================================================================== */

:root {
  --navy-950: #00121f;
  --navy-900: #001a33;
  --navy: #002749;
  --navy-700: #0d3a63;
  --navy-500: #2b4f73;
  --coral: #ff4e31;            /* brand accent — decorative, large type */
  --coral-strong: #d63a1d;     /* AA-safe on white for buttons & small text */
  --coral-soft: #ffe7e1;
  --gold: #f4b41a;
  --gold-soft: #fff4d6;
  --ivory: #fbf8f3;
  --sand: #f4ede3;
  --paper: #ffffff;
  --ink: #0e1b29;
  --body: #3a4a5c;
  --muted: #6b7a8b;
  --line: rgba(0, 39, 73, .12);
  --line-light: rgba(255, 255, 255, .16);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(0, 26, 51, .06), 0 2px 8px rgba(0, 26, 51, .05);
  --shadow: 0 10px 30px -10px rgba(0, 26, 51, .22);
  --shadow-lg: 0 30px 60px -20px rgba(0, 26, 51, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--coral); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--coral-strong); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--gold); }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 60px);
  letter-spacing: -.02em;
  line-height: 1.04;
  font-variation-settings: "opsz" 144;
  margin-bottom: .4em;
}
.display em, .hero__title em, .cta__title em, .page-hero__title em {
  font-style: italic; font-weight: 400; color: var(--coral);
}
.display--light { color: #fff; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink); line-height: 1.6; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--coral);
  padding-bottom: 4px; transition: gap .3s var(--ease), color .2s;
}
.link-arrow:hover { gap: 16px; color: var(--coral-strong); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15.5px; letter-spacing: .01em; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { --bg: var(--coral-strong); box-shadow: 0 10px 24px -10px rgba(214, 58, 29, .7); }
.btn--primary:hover { --bg: #c2311a; box-shadow: 0 16px 30px -12px rgba(214, 58, 29, .8); }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--light:hover { --bg: var(--gold-soft); }
.btn--glass { --bg: rgba(255,255,255,.1); --fg: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --bg: rgba(255,255,255,.2); }
.btn--outline { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--outline:hover { --bg: var(--navy); --fg: #fff; }
.btn--sm { padding: 10px 20px; font-size: 14.5px; }
.btn--lg { padding: 17px 32px; font-size: 16.5px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-950); color: rgba(255,255,255,.78); font-size: 13.5px; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.utility__group { display: flex; align-items: center; gap: 22px; min-width: 0; }
.utility__group > * { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility a:hover { color: #fff; }
.utility .icon { color: var(--gold); }
.utility__portal { background: rgba(255,255,255,.08); padding: 4px 12px; border-radius: 999px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .86);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(0,26,51,.35); background: rgba(251,248,243,.94); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__crest { width: 46px; height: auto; transition: transform .4s var(--ease); }
.brand:hover .brand__crest { transform: rotate(-6deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.brand__sub { white-space: nowrap; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-strong); margin-top: 4px; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: var(--gold); }

.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 10px 13px;
  font-size: 15px; font-weight: 600; color: var(--ink); border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle, .menu-close {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  align-items: center; justify-content: center;
}
.menu-toggle .icon, .menu-close .icon { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; background: var(--navy-900); color: #fff;
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { animation: menuIn .4s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-menu__top .eyebrow { margin: 0; }
.menu-close { display: inline-flex; background: rgba(255,255,255,.08); border-color: var(--line-light); color: #fff; }
.mobile-menu__list { flex: 1; }
.mobile-menu__list a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--font-display); font-size: clamp(28px, 7vw, 40px); font-weight: 500; letter-spacing: -.01em;
}
.mobile-menu__list a:hover { color: var(--coral); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.mobile-menu__phone { display: inline-flex; gap: 10px; align-items: center; color: rgba(255,255,255,.8); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: clamp(560px, 92vh, 920px); display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: kenburns 22s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,18,31,.92) 0%, rgba(0,26,51,.72) 42%, rgba(0,26,51,.15) 75%),
    linear-gradient(0deg, rgba(0,18,31,.85) 0%, rgba(0,18,31,0) 45%);
}
.hero__content { padding-block: clamp(80px, 12vw, 140px) 40px; max-width: var(--container); }
.hero__title {
  font-family: var(--font-display); font-weight: 500; color: #fff;
  font-size: clamp(46px, 8vw, 104px); line-height: .98; letter-spacing: -.03em;
  max-width: 11ch; margin-bottom: 24px; font-variation-settings: "opsz" 144;
}
.hero__title em { color: var(--gold); }
.hero__lead { font-size: clamp(17px, 1.6vw, 21px); max-width: 38ch; color: rgba(255,255,255,.86); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__strip { border-top: 1px solid var(--line-light); background: rgba(0,18,31,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero__strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__fact { display: flex; align-items: center; gap: 14px; padding: 22px 0; }
.hero__fact + .hero__fact { padding-left: 28px; border-left: 1px solid var(--line-light); }
.hero__fact .icon { width: 28px; height: 28px; color: var(--gold); }
.hero__fact strong { display: block; color: #fff; font-size: 16px; }
.hero__fact span { font-size: 13.5px; color: rgba(255,255,255,.7); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.section--navy::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,78,49,.22), transparent 65%);
}
.section--navy .container { position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > div { max-width: 720px; }
.section-head .display { margin-bottom: 0; }
.section-head__aside { max-width: 380px; margin: 0; color: var(--muted); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.center-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 56px; }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.intro__media { position: relative; aspect-ratio: 1 / 1.05; }
.intro__photo { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.intro__photo:hover img { transform: scale(1.05); }
.intro__photo--a { inset: 0 22% 18% 0; }
.intro__photo--b { inset: 48% 0 0 40%; border: 8px solid var(--ivory); }
.seal { position: absolute; left: 4%; bottom: 2%; width: 150px; height: 150px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal__ring text { font-family: var(--font-sans); font-size: 13.5px; font-weight: 800; letter-spacing: 3.2px; fill: var(--gold); }
.seal__crest { width: 62px; position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

.checklist { display: grid; gap: 12px; margin: 4px 0 32px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-strong); stroke-width: 2.4; margin-top: 1px; }

/* ---------- Facts ---------- */
.facts { background: var(--navy-900); color: #fff; padding-block: clamp(48px, 6vw, 72px); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 8px 28px; border-left: 1px solid var(--line-light); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__num { display: block; font-family: var(--font-display); font-size: clamp(44px, 5.5vw, 72px); line-height: 1; color: var(--gold); letter-spacing: -.02em; margin-bottom: 10px; font-weight: 500; }
.fact__label { font-size: 15px; color: rgba(255,255,255,.75); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento__card { min-height: 250px; }
.bento__card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line); padding: 30px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.bento__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.bento__card h3 { font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 10px; }
.bento__card p { margin: 0; font-size: 15.5px; }
.bento__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--navy); margin-bottom: auto;
}
.bento__icon .icon { width: 26px; height: 26px; }
.bento__card > .bento__icon { margin-bottom: 40px; }
.bento__card--feature { grid-column: span 2; grid-row: span 2; color: #fff; border: 0; padding: 40px; min-height: 520px; }
.bento__card--feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1.2s var(--ease); }
.bento__card--feature:hover img { transform: scale(1.05); }
.bento__card--feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,18,31,.95) 0%, rgba(0,26,51,.35) 55%, rgba(0,26,51,0) 100%); }
.bento__body { position: relative; z-index: 1; max-width: 460px; }
.bento__card--feature .bento__icon { margin-bottom: 22px; background: var(--coral); color: #fff; }
.bento__card--feature h3 { color: #fff; font-size: clamp(30px, 3vw, 40px); }
.bento__card--feature p { color: rgba(255,255,255,.85); font-size: 17px; }
.bento__card--navy { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.78); }
.bento__card--navy h3 { color: #fff; }
.bento__card--navy .bento__icon { background: rgba(255,255,255,.1); color: var(--gold); }
.bento__card--coral { background: var(--coral); border-color: var(--coral); color: rgba(255,255,255,.95); }
.bento__card--coral h3 { color: #fff; }
.bento__card--coral .bento__icon { background: rgba(255,255,255,.2); color: #fff; }
.bento > .bento__card:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 28px; min-height: 0; padding: 28px 36px; background: var(--sand); border-color: transparent; }
.bento > .bento__card:last-child > .bento__icon { margin: 0; flex: none; width: 64px; height: 64px; background: var(--navy); color: var(--gold); }
.bento > .bento__card:last-child h3 { margin: 0; flex: none; min-width: 220px; }
.bento > .bento__card:last-child p { max-width: 70ch; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; justify-content: center; }
.pill-row li { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--navy); }

/* ---------- Mosaic ---------- */
.mosaic { position: relative; overflow: hidden; background: var(--navy-950); }
.mosaic__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 15vw, 220px); gap: 4px; }
.mosaic__tile { overflow: hidden; }
.mosaic__tile:nth-child(1), .mosaic__tile:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.mosaic__tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform 1.2s var(--ease); }
.mosaic:hover .mosaic__tile img { transform: scale(1.04); }
.mosaic__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(ellipse at center, rgba(0,18,31,.78) 0%, rgba(0,18,31,.55) 45%, rgba(0,18,31,.2) 100%);
  padding: 24px; color: #fff;
}
.mosaic__word { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(60px, 13vw, 190px); line-height: .9; letter-spacing: -.04em; margin: 0 0 18px; color: #fff; }
.mosaic__text { font-size: 18px; color: rgba(255,255,255,.85); max-width: 40ch; margin-bottom: 28px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--coral) 0 8px, transparent 8px 16px); opacity: .5; }
.step { position: relative; background: var(--paper); border-radius: var(--radius-lg); padding: 30px 26px 28px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num { display: grid; place-items: center; width: 70px; height: 70px; margin: -66px 0 20px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-display); font-size: 24px; font-weight: 600; border: 6px solid var(--sand); }
.step__title { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.step p { margin: 0; font-size: 15.5px; }
.steps { margin-top: 40px; }

/* ---------- Campuses ---------- */
.campus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.campus { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.campus:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.campus__media { aspect-ratio: 16 / 9; overflow: hidden; }
.campus__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.campus:hover .campus__media img { transform: scale(1.05); }
.campus__body { padding: 30px; }
.campus__body h3 { font-family: var(--font-display); font-weight: 500; font-size: 30px; }
.campus__line { display: flex; gap: 10px; align-items: flex-start; }
.campus__line .icon { color: var(--coral-strong); margin-top: 4px; }
.campus__line a:hover { color: var(--coral-strong); }
.campus .link-arrow { margin-top: 10px; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { display: block; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--navy-700); }
.person__photo { aspect-ratio: 3 / 4; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.25); }
.person:hover .person__photo img { transform: scale(1.06); filter: grayscale(0); }
.person__meta { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); transition: transform .4s var(--ease); }
.person:hover .person__meta { transform: translateY(-4px); }
.person__meta h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin-bottom: 2px; }
.person__meta p { margin: 0; font-size: 13.5px; color: var(--coral-strong); font-weight: 700; }
.section:not(.section--navy) .person { background: var(--sand); }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.news__lead { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; }
.news__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news__lead:hover img { transform: scale(1.05); }
.news__lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,18,31,.92), rgba(0,18,31,0) 60%); }
.news__lead-body { position: relative; z-index: 1; padding: 36px; }
.news__lead-body h3 { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); margin: 14px 0 8px; }
.news__lead-body p { color: rgba(255,255,255,.85); margin: 0; }
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.news__list { display: flex; flex-direction: column; gap: 16px; }
.news__item { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 14px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.news__item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.news__thumb { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.news__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news__date { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-strong); }
.news__item h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; margin: 4px 0 6px; }
.news__item p { margin: 0; font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- CTA ---------- */
.cta { padding-block: var(--section); background: var(--coral-strong); background: linear-gradient(135deg, #ff4e31 0%, #d63a1d 55%, #b62d14 100%); color: #fff; position: relative; overflow: hidden; }
.cta__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta__crest { position: absolute; width: 460px; max-width: 90%; opacity: .07; top: 50%; left: 50%; transform: translate(-50%, -50%); filter: brightness(0) invert(1); pointer-events: none; }
.cta .eyebrow--light { color: #fff; }
.cta__title { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 6vw, 80px); letter-spacing: -.025em; max-width: 16ch; margin-bottom: 36px; line-height: 1.02; }
.cta__title em { color: var(--gold-soft); }
.cta .hero__actions { justify-content: center; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--navy); color: rgba(255,255,255,.8); padding-block: 64px; }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter__title { font-family: var(--font-display); color: #fff; font-weight: 500; font-size: clamp(30px, 3.5vw, 44px); margin-bottom: 8px; }
.newsletter__text { margin: 0; }
.newsletter__form { display: flex; gap: 10px; padding: 8px; background: rgba(255,255,255,.08); border: 1px solid var(--line-light); border-radius: 999px; }
.newsletter__form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; padding: 0 18px; outline: none; }
.newsletter__form input::placeholder { color: rgba(255,255,255,.55); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,.66); padding-top: 80px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { margin: 20px 0 22px; max-width: 34ch; }
.footer__heading { color: #fff; font-family: var(--font-sans); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.footer__line a { display: inline-flex; gap: 10px; align-items: flex-start; word-break: break-word; }
.footer__line .icon { color: var(--gold); margin-top: 3px; }
.footer__muted { padding-left: 28px; color: rgba(255,255,255,.45); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); color: #fff; transition: background .2s, border-color .2s, transform .2s; }
.socials a:hover { background: var(--coral); border-color: var(--coral); transform: translateY(-2px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line-light); font-size: 13.5px; }
.footer__bottom p { margin: 0; }
.footer__motto { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 16px; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; stroke-width: 1.8; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 100px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 10px; width: min(560px, calc(100% - 32px)); }
.toast { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); animation: toastIn .5s var(--ease); font-weight: 600; }
.toast--success .icon { color: #5be49b; }
.toast--error { background: #7a1d10; }
.toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: all .4s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--navy-900); color: #fff; padding-block: clamp(80px, 11vw, 150px) clamp(56px, 7vw, 90px); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; animation: kenburns 22s ease-out both; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0,18,31,.94) 0%, rgba(0,26,51,.8) 50%, rgba(0,26,51,.45) 100%); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { color: var(--coral); }
.page-hero__title { font-family: var(--font-display); font-weight: 500; color: #fff; font-size: clamp(42px, 7vw, 88px); letter-spacing: -.03em; line-height: 1; max-width: 14ch; margin-bottom: 20px; }
.page-hero__title em { color: var(--gold); }
.page-hero__lead { max-width: 56ch; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.82); margin: 0; }

/* ---------- Generic content blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--top { align-items: start; }
.rounded-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.rounded-media img { width: 100%; height: 100%; object-fit: cover; }
.quote-band { padding-block: var(--section); background: var(--sand); text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 900px; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4vw, 50px); line-height: 1.15; color: var(--navy); letter-spacing: -.015em; }
.quote-band blockquote em { color: var(--coral); }
.quote-band .icon { width: 48px; height: 48px; color: var(--coral); margin: 0 auto 20px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 20px 0 10px; }
.card p { margin: 0; font-size: 15.5px; }
.card .bento__icon { margin: 0; }
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facility { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid var(--line-light); color: #fff; font-weight: 700; font-size: 17px; }
.facility .icon { width: 30px; height: 30px; color: var(--gold); }
.programme { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.programme__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.programme__body { padding: clamp(28px, 4vw, 48px); }
.programme__body h3 { font-family: var(--font-display); font-weight: 500; font-size: 34px; }
.meta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.meta-chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--sand); font-size: 14px; font-weight: 700; color: var(--navy); }
.meta-chip .icon { color: var(--coral-strong); }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 38px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-legend { grid-column: 1 / -1; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-strong); margin: 14px 0 -4px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-legend:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--coral-strong); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--ivory);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(0,39,73,.1); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral-strong); }
.field__error { color: var(--coral-strong); font-size: 13.5px; margin: 6px 0 0; font-weight: 600; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.contact-card .bento__icon { flex: none; margin: 0; }
.contact-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-bottom: 6px; }
.contact-card p { margin: 0 0 4px; }
.contact-card a:hover { color: var(--coral-strong); }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius-lg); filter: grayscale(.2); }

/* ---------- Gallery ---------- */
.masonry { columns: 4 260px; column-gap: 14px; }
.masonry__item { break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; display: block; position: relative; cursor: zoom-in; border: 0; padding: 0; background: none; width: 100%; }
.masonry__item img { width: 100%; transition: transform .8s var(--ease), filter .4s; }
.masonry__item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.masonry__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,26,51,.35), transparent 40%); opacity: 0; transition: opacity .3s; }
.masonry__item:hover::after { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,12,22,.94); display: grid; place-items: center; padding: 60px 16px; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-height: 84vh; max-width: min(1200px, 100%); border-radius: 12px; box-shadow: var(--shadow-lg); animation: toastIn .35s var(--ease); }
.lightbox__close, .lightbox__nav { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-light); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--coral); border-color: var(--coral); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; margin: 0; }

/* ---------- Events list ---------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.06); }
.event-card__media .tag { position: absolute; left: 16px; top: 16px; }
.event-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.event-card__body h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.event-card__body p { color: var(--muted); font-size: 15px; }
.event-card__body .link-arrow { margin-top: auto; align-self: flex-start; }
.event-card--featured { grid-column: span 2; flex-direction: row; }
.event-card--featured .event-card__media { aspect-ratio: auto; flex: 1.2; min-height: 380px; }
.event-card--featured .event-card__body { flex: 1; justify-content: center; padding: 40px; }
.event-card--featured h3 { font-size: 34px; }

/* ---------- Teacher profile ---------- */
.profile { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.profile__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: sticky; top: 110px; }
.profile__photo img { width: 100%; }
.profile h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 5vw, 60px); letter-spacing: -.02em; }
.profile__role { color: var(--coral-strong); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }

/* ---------- Thanks / error ---------- */
.state { padding-block: clamp(100px, 14vw, 180px); text-align: center; }
.state__badge { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 28px; background: var(--coral-soft); color: var(--coral-strong); display: grid; place-items: center; }
.state__badge .icon { width: 44px; height: 44px; stroke-width: 2.2; }
.state h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.02em; }
.state p { max-width: 52ch; margin: 0 auto 32px; font-size: 18px; }
.state__code { font-family: var(--font-display); font-style: italic; color: var(--coral); font-size: clamp(90px, 16vw, 200px); line-height: 1; margin-bottom: 12px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--feature { grid-column: 1 / -1; grid-row: auto; }
  .bento__card--feature { min-height: 440px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 60px; }
  .steps::before { display: none; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr; }
  .news__lead { min-height: 420px; }
  .event-grid, .card-grid, .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card--featured { grid-column: span 2; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hide-md { display: none; }
  .intro__grid, .split, .newsletter__inner, .profile, .programme { grid-template-columns: 1fr; }
  .intro__media { max-width: 560px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--center { align-items: center; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .campus-grid { grid-template-columns: 1fr; }
  .hero__strip-inner { grid-template-columns: 1fr; }
  .hero__fact { padding: 14px 0; }
  .hero__fact + .hero__fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .mosaic__grid { grid-template-columns: repeat(3, 1fr); }
  .mosaic__tile:nth-child(n+10) { display: none; }
  .profile__photo { position: static; max-width: 420px; }
  .event-card--featured { flex-direction: column; }
  .event-card--featured .event-card__media { min-height: 260px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .utility__inner { min-height: 38px; font-size: 12.5px; }
  .utility__group { gap: 14px; }
  .utility__group:first-child { display: none; }
  .utility__inner { justify-content: center; }
  .site-header__inner { min-height: 72px; }
  .brand__crest { width: 40px; }
  .brand__name { font-size: 21px; }
  .brand__sub { font-size: 9.5px; letter-spacing: .12em; }
  .hero { min-height: clamp(600px, 88vh, 760px); }
  .hero__actions .btn { width: 100%; }
  .bento, .people, .event-grid, .card-grid, .facility-grid, .form-grid { grid-template-columns: 1fr; }
  .bento > .bento__card, .bento__card--feature, .event-card--featured { grid-column: auto; grid-row: auto; }
  .bento > .bento__card:last-child { flex-direction: column; align-items: flex-start; gap: 0; }
  .bento > .bento__card:last-child > .bento__icon { margin-bottom: 40px; }
  .bento > .bento__card:last-child h3 { margin-bottom: 10px; min-width: 0; }
  .bento__card--feature { min-height: 420px; padding: 28px; }
  .steps { grid-template-columns: 1fr; }
  .news__item { grid-template-columns: 96px 1fr; gap: 16px; }
  .news__lead-body { padding: 24px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 4px 16px; }
  .newsletter__form { flex-direction: column; border-radius: var(--radius); padding: 10px; }
  .newsletter__form input { padding: 12px 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .seal { width: 112px; height: 112px; }
  .seal__crest { width: 46px; }
  .seal__ring text { font-size: 13px; letter-spacing: 2.6px; }
  .masonry { columns: 2 140px; column-gap: 8px; }
  .masonry__item { margin-bottom: 8px; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { transform: rotate(180deg); }
  .center-actions .btn { width: 100%; }
}

/* Phones: two portraits per row instead of one giant one */
@media (max-width: 640px) {
  .people { grid-template-columns: 1fr 1fr; gap: 12px; }
  .person__meta { position: static; border-radius: 0; padding: 12px 12px 14px; background: #fff; }
  .section--navy .person__meta { background: var(--navy-700); }
  .section--navy .person__meta h3 { color: #fff; }
  .person__meta h3 { font-size: 15.5px; }
  .person__meta p { font-size: 12px; }
}
