/* ==========================================================
   Eden Academy — single stylesheet
   Design language: award-winning private school sites
   (brentwoodacademy.com / dunhamschool.org — Finalsite style):
   full-bleed photo hero with navy overlay, navy dominant + gold
   accent, photo feature cards overlapping the hero, mission
   statement band with crest watermark, stats band, "Choose" CTA band.
   Type: Fraunces (serif display, normal case, italic accents)
   + Geist (body), self-hosted — zero CDN. Fraunces replaced Anton
   on 14 Nov 2026: roman is variable in optical size only (weight
   600 fixed), italic is a static 500 cut for large accents only.
   Rebuild the files with .claude/make-fraunces.py.
   Real crest: images/logo.png (cut from the school's logo).
   Mobile-first (designed at 360px, scales up)
   ========================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fraunces-600.woff2') format('woff2');
}

/* Italic exists only at weight 500 and a display optical size: use it for
   large accents (hero word, mission line, pull quote), never body text. */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fraunces-500-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/geist.woff2') format('woff2');
}

:root {
  --navy: #0a1242;        /* dominant — bands, headings */
  --navy-deep: #060b2e;   /* topbar, footer, overlays */
  --blue: #1b2bd6;        /* links — from the crest blue */
  --gold: #ffb902;        /* THE accent — sampled from the crest */
  --gold-dark: #7c6200;   /* gold-toned text on white (AA) */
  --red: #fe0003;         /* crest flame — tiny accents only */
  --cream: #f6f3ea;
  --white: #ffffff;
  --ink: #1c1e26;
  --ink-soft: #565b69;
  --line: #e5e2d8;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 10px 30px rgba(6, 11, 46, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* keep anchors clear of the sticky nav */
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;     /* 17px base — comfortable for parents */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

p, li, blockquote, figcaption { text-wrap: pretty; } /* no lonely last words */

::selection { background: var(--gold); color: var(--navy-deep); }

img { display: block; max-width: 100%; height: auto; }

a { touch-action: manipulation; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
/* Every Fraunces use: the only weights shipped are 600 roman and 500
   italic, so the browser must never fake a bold or a slant. */
h1, h2, .mission-statement, .nav-brand-text strong, .feature-body strong,
.stat dd, .step5a-num, .adm-num, .avatar, .topper-avatar, .staff-avatar,
.faq-title, .choose-title, .footer-name, .xseed-note {
  font-family: var(--display);
  font-weight: 600;
  font-synthesis: none; /* Fraunces has old-style figures only: 3, 4, 5 dip below the line by design */
}

h1, h2 {
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.1;
  text-wrap: balance;
  font-variation-settings: 'opsz' 96;
}

h2 {
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  margin-bottom: 1.1rem;
  max-width: 20ch;
}

/* The accent: one word in italic - navy on light sections, gold on the
   navy ones (hero, results, choose). */
h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 0.4rem;
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}

.eyebrow-gold { color: var(--gold); }

.section-intro {
  max-width: 58ch;
  margin-bottom: 2.2rem;
  color: var(--ink-soft);
}

/* Links inside running text: navy with a gold underline, never browser blue */
.section-intro a, .notice-body a {
  color: var(--navy);
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.section-intro a:hover, .notice-body a:hover { color: var(--blue); }

.stars { color: var(--gold); letter-spacing: 0.12em; font-size: 0.95rem; }

/* ---------- Scroll reveal (JS opt-in; visible without JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.js .reveal.shown { opacity: 1; transform: none; }

/* ---------- Buttons (squared, sentence case) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.85rem 1.8rem;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--white); border-color: var(--white); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--blue); border-color: var(--blue); }

.btn-nav { min-height: 44px; padding: 0.55rem 1.3rem; }

/* ---------- Utility top bar ---------- */
.topbar {
  background: var(--navy-deep);
  font-size: 0.8rem;
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.35rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-height: 32px;
}

a.topbar-item:hover { color: var(--gold); }

/* Secondary info: hidden on small phones (repeated in Contact section) */
.topbar-hours { display: none; color: rgba(255, 255, 255, 0.55); }

/* Newest-notice strip: one gold line over the top edge of the hero photo.
   Absolutely positioned, so appearing after the sheet loads shifts nothing. */
.notice-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  /* full-width gold band; the text lines up with the page column */
  padding: 0.45rem max(20px, calc((100% - 1100px) / 2));
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.notice-strip[hidden] { display: none; }
@keyframes stripIn { from { transform: translateY(-100%); } to { transform: none; } }
.notice-strip:not([hidden]) { animation: stripIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.notice-strip-label {
  flex: none;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border: 1.5px solid var(--navy);
}
.notice-strip-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-strip-more { flex: none; }
.notice-strip:hover .notice-strip-text { text-decoration: underline; }

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 2px 14px rgba(6, 11, 46, 0.12);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.5rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-logo { width: 52px; height: auto; flex-shrink: 0; }

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.nav-brand-text strong {
  font-size: 1.42rem;
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--navy);
}

.nav-brand-text small {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}

/* Hamburger */
.nav-toggle {
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Below the desktop width the menu always opens on its own full-width row
   under the crest. Without this, on tablets it squeezed in beside it. */
.nav-inner > nav { flex: 0 0 100%; }

.nav-menu {
  list-style: none;
  width: 100%;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0 1rem;
}

.nav-menu.open { display: flex; }

.nav-menu a {
  display: block;
  padding: 0.75rem 0.4rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.nav-menu a:hover { color: var(--gold-dark); }

.nav-menu .btn { text-transform: none; letter-spacing: 0.01em; font-size: 0.92rem; }

/* 360px phones: keep the crest, name and menu button on one row */
@media (max-width: 400px) {
  .nav-logo { width: 44px; }
  .nav-brand { gap: 0.55rem; }
  .nav-brand-text strong { font-size: 1.3rem; }
  .nav-brand-text small { font-size: 0.58rem; letter-spacing: 0.12em; }
}

.nav-cta-item { margin-top: 0.8rem; }
.nav-cta-item .btn { width: 100%; border-bottom: 2px solid var(--gold) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  min-height: 86svh; /* stable on mobile browsers with collapsing URL bars */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 11, 46, 0.25) 0%,
    rgba(6, 11, 46, 0.45) 50%,
    rgba(6, 11, 46, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 7rem 20px 7.5rem; /* extra bottom room for overlapping cards */
}

.hero-eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 1px 10px rgba(6, 11, 46, 0.65); /* legible over bright photo areas */
}

.hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 13vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
  text-shadow: 0 2px 24px rgba(6, 11, 46, 0.45);
  margin-bottom: 1.3rem;
}

.hero h1 em, .results h2 em, .choose-title em { color: var(--gold); }

.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Phones: the two hero buttons, and the four in the Choose band, stack at
   one full width instead of wrapping to two ragged sizes. */
@media (max-width: 639px) {
  .hero-actions .btn, .choose-actions .btn { flex: 1 1 100%; }
}

.hero-proof {
  margin-top: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-proof strong { color: var(--white); }

/* ---------- Feature cards (overlap the hero) ---------- */
.features { margin-top: -4.5rem; position: relative; z-index: 5; padding-bottom: 1rem; }

.features-grid { display: grid; gap: 1.1rem; }

.feature {
  display: flex;
  flex-direction: column;
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(6, 11, 46, 0.22); }

.feature-media { display: block; overflow: hidden; }

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature:hover .feature-media img { transform: scale(1.05); }

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.3rem 1.4rem 1.5rem;
}

.feature-body strong {
  letter-spacing: -0.012em;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--navy);
}

.feature-body span { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

.feature-body em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.4rem;
}

.feature:hover .feature-body em { color: var(--navy); }

/* ---------- Mission band ---------- */
.mission {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0;
  margin-top: 3rem;
  overflow: hidden;
}

.mission .container { position: relative; }

/* crest watermark — anchored to the content column, desktop only */
.mission-crest {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  opacity: 0.06;
  pointer-events: none;
}

.mission-statement {
  position: relative;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.12;
  max-width: 22ch;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.gold-text { color: var(--gold); }

.mission-text {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
}

.mission-text strong { color: var(--white); font-weight: 600; }

.mission-sub {
  position: relative;
  margin-top: 2.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.mission-objectives {
  position: relative;
  list-style: none;
  margin-top: 0.9rem;
  display: grid;
  gap: 0.9rem;
  max-width: 64rem;
}

.mission-objectives li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.mission-objectives li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--gold);
}

@media (min-width: 900px) {
  .mission-objectives { grid-template-columns: 1fr 1fr; gap: 1.1rem 3rem; max-width: 52rem; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-cream { background: var(--cream); }

/* ---------- Our stages (three cards) ---------- */
.stages-grid { display: grid; gap: 1.1rem; }

.stage-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.stage-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.4rem;
}

.stage-card h3 { margin: 0 0 0.7rem; }

.stage-card p { color: var(--ink-soft); margin: 0 0 1.3rem; }

.stage-card .btn { margin-top: auto; align-self: flex-start; }

@media (min-width: 900px) {
  .stages-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.8rem; }

.about-text p { color: var(--ink-soft); }

.about-points {
  list-style: none;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-points li {
  position: relative;
  padding-left: 1.8rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  background: var(--gold);
}

/* framed campus photo */
.about-photo { max-width: 470px; }

.photo-frame {
  display: block;
  background: var(--white);
  padding: 10px;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.photo-frame img { display: block; width: 100%; }

.about-photo figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--navy-deep);
  border-top: 5px solid var(--gold);
  padding: 2.8rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 1rem;
  text-align: center;
}

.stat dd {
  font-size: clamp(2.3rem, 7.5vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1.05;
  font-variation-settings: 'opsz' 96;
}

.stat dt {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ---------- XSEED ---------- */
.xseed-grid { display: grid; gap: 2.5rem; }

.xseed-intro p { color: var(--ink-soft); }

/* Paragraphs in this column used to touch: every p has margin 0, so the
   note sat flush against the paragraph after it. */
.xseed-intro p + p { margin-top: 1rem; }

/* The pull quote: the one line a parent should remember */
.xseed-intro .xseed-note {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--gold);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.steps5a { list-style: none; }

.step5a {
  display: flex;
  gap: 1.3rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.step5a:first-child { padding-top: 0.3rem; }
.step5a:last-child { border-bottom: 0; }

.step5a-num {
  font-size: 2.4rem;
  line-height: 1;
  font-variation-settings: 'opsz' 72;
  color: var(--gold);
  min-width: 2.1rem;
  text-align: center;
  flex-shrink: 0;
}

.step5a p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Principal ---------- */
/* Fed by the Message tab of the school's sheet; the section stays hidden
   until that tab has a row, so it is never half-finished. */
.principal-grid { display: grid; gap: 2rem; align-items: start; }

/* No photo supplied: let the message span the whole grid instead of being
   squeezed into the 280px photo column at desktop width. */
.principal-grid > :only-child { grid-column: 1 / -1; }

.principal-photo {
  width: 220px;
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
}

.principal-quote {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.principal-message footer { display: flex; flex-direction: column; font-size: 0.92rem; }

.principal-message footer strong {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--navy);
}

.principal-message footer span { color: var(--ink-soft); font-size: 0.86rem; }

/* ---------- Results & toppers ---------- */
.results {
  background: var(--navy-deep);
  border-top: 5px solid var(--gold);
  padding: 4.5rem 0;
}
.results h2 { color: var(--white); }
.results-intro { color: rgba(255, 255, 255, 0.78); max-width: 58ch; margin-bottom: 2.2rem; }

.results-grid, .staff-grid { display: grid; gap: 1.2rem; }

.topper-card, .staff-card {
  position: relative;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.7rem 1.4rem 1.5rem;
  text-align: center;
  animation: noticeIn 0.5s ease backwards; /* backwards, not both: lets hover transform work after entry */
  min-width: 0;               /* long sheet text can't inflate grid tracks */
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.topper-year {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
  color: var(--navy);
  font: 700 0.72rem/1 var(--body);
  letter-spacing: 0.08em;
  padding: 0.4rem 0.6rem;
  max-width: 100%;            /* long Year text truncates instead of */
  white-space: nowrap;        /* wrapping down over the photo        */
  overflow: hidden;
  text-overflow: ellipsis;
}
.topper-avatar, .staff-avatar {
  display: inline-block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 58px;
  margin-bottom: 0.9rem;
}
.topper-photo, .staff-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin: 0 auto 0.9rem;      /* global img{display:block} — centre it */
}
.topper-card h3, .staff-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.topper-achievement, .staff-role { color: var(--gold-dark); font-weight: 700; font-size: 0.92rem; margin: 0 0 0.3rem; }
.topper-detail, .staff-qual { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

/* ---------- Gallery lightbox ---------- */
.lb-zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 11, 46, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lb-figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.lb-img {
  max-width: 92vw;
  max-height: 76vh;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.lb-caption { color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; margin-top: 0.9rem; padding: 0 1rem; }

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  z-index: 301;
  background: rgba(6, 11, 46, 0.55); /* legible over bright photo areas */
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  padding: 0.7rem 1rem;
  opacity: 0.85;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; color: var(--gold); }
.lb-close { top: 10px; right: 10px; font-size: 2.5rem; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ---------- Notice Board ---------- */
/* The notice board carries announcements - vacancies, reopening dates - so
   it gets the same gold rule the results section uses to set itself apart
   from the ordinary cream sections around it. */
#notices { border-top: 5px solid var(--gold); }

/* A hidden nav item must stay hidden even though .nav-menu lays its
   children out with flex. */
.nav-menu li[hidden] { display: none; }

.notice-list { display: grid; gap: 1.2rem; margin-top: 0.4rem; }

.notice-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: noticeIn 0.5s ease backwards; /* backwards, not both: lets hover transform work after entry */
  min-width: 0;               /* long sheet text wraps instead of clipping */
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.notice-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.notice-body { padding: 1.3rem 1.4rem 1.5rem; }
/* Gold chip rather than plain gold text: at a glance it reads as a dated
   announcement instead of another paragraph heading. */
/* .notice-body p sets a soft grey on every paragraph in the card and, being
   class+element, outranks a lone .notice-date - hence the two-class
   selector, or the chip renders grey-on-gold. */
.notice-body .notice-date {
  display: inline-block;
  font: 700 0.7rem/1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.34rem 0.6rem;
  margin: 0 0 0.75rem;
}
.notice-card h3 { font-size: 1.25rem; margin: 0 0 0.5rem; line-height: 1.25; }
.notice-body p { margin: 0; color: var(--ink-soft); white-space: pre-line; }

@keyframes noticeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 1.2rem; margin-top: 0.4rem; }

.testimonial {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* faint decorative quote mark — subtle flair only */
.testimonial::after {
  content: '\201C';
  position: absolute;
  top: 0.4rem;
  right: 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
  pointer-events: none;
}

.testimonial blockquote { font-size: 1rem; line-height: 1.65; color: var(--ink); }

.testimonial figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.testimonial .who { display: flex; flex-direction: column; }

.testimonial .who strong {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.testimonial .who span { color: var(--ink-soft); font-size: 0.83rem; }

.testimonials-link { margin-top: 2rem; }

.testimonials-link a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 3px;
}

.testimonials-link a:hover { color: var(--gold-dark); }

/* ---------- Admissions ---------- */
.adm-steps { list-style: none; display: grid; gap: 1.2rem; }

.adm-step {
  background: var(--white);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
}

.adm-num {
  display: block;
  font-size: 2.2rem;
  font-variation-settings: 'opsz' 72;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.adm-step p { font-size: 0.96rem; color: var(--ink-soft); }

.admissions-extra { display: grid; gap: 1.2rem; margin-top: 1.6rem; }

.docs, .fees {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
}

.docs ul { margin: 0.6rem 0 0.9rem 1.2rem; color: var(--ink-soft); }
.docs li { margin-bottom: 0.3rem; }
.fees p { color: var(--ink-soft); }
.fees .btn { margin-top: 1.2rem; padding-left: 1.2rem; padding-right: 1.2rem; }

.small-note { font-size: 0.85rem; color: var(--ink-soft); }

.adm-download { margin: 1.2rem 0 0.5rem; padding-left: 1.2rem; padding-right: 1.2rem; }

/* ---------- Teach at Eden (careers card under Contact) ---------- */
.careers {
  margin-top: 2.4rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.careers h3 { margin: 0 0 0.6rem; }

.careers p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

.careers a {
  color: var(--navy);
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* ---------- FAQ (native accordions, no JS) ---------- */
.faq { margin-top: 2.6rem; }

.faq-title {
  letter-spacing: -0.01em;
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  margin-bottom: 0.6rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold-dark);
  line-height: 1;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item[open] summary { border-bottom: 1px solid var(--line); }

/* Answer eases in when a question opens */
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}
.faq-item[open] > *:not(summary) { animation: faqIn 0.28s ease both; }

.faq-item p {
  padding: 1rem 1.2rem 1.2rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* ---------- Choose band ---------- */
.choose {
  background: var(--navy);
  border-top: 5px solid var(--gold);
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
}

.choose-title {
  letter-spacing: -0.015em;
  font-size: clamp(2.3rem, 8vw, 3.6rem);
  line-height: 1.08;
  font-variation-settings: 'opsz' 144;
  color: var(--white);
  max-width: none;
  margin: 0 auto 1rem;
}

.choose-text {
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.choose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 1.6rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream); /* visible while loading on slow networks */
}

/* Complete rows only: if the photo count doesn't fill the last row, the
   leftover photos (always the oldest built-ins at the end, which are the
   hero and campus shots shown elsewhere on the page) are left out of the
   grid. They stay in the lightbox. Works for any count, including photos
   the office adds from the sheet. */
@media (max-width: 639px) {
  .gallery-grid > img:first-child:nth-last-child(2n+1) ~ img:last-child { display: none; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .gallery-grid > img:first-child:nth-last-child(3n+1) ~ img:nth-last-child(-n+1),
  .gallery-grid > img:first-child:nth-last-child(3n+2) ~ img:nth-last-child(-n+2) { display: none; }
}
@media (min-width: 900px) {
  .gallery-grid > img:first-child:nth-last-child(6n+1) ~ img:nth-last-child(-n+1),
  .gallery-grid > img:first-child:nth-last-child(6n+2) ~ img:nth-last-child(-n+2),
  .gallery-grid > img:first-child:nth-last-child(6n+3) ~ img:nth-last-child(-n+3),
  .gallery-grid > img:first-child:nth-last-child(6n+4) ~ img:nth-last-child(-n+4),
  .gallery-grid > img:first-child:nth-last-child(6n+5) ~ img:nth-last-child(-n+5) { display: none; }
}

.gallery-cta {
  margin-top: 2.4rem;
  text-align: center;
}

.gallery-cta p {
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; margin-top: 1.6rem; }

.contact-info h3 {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.contact-info h3:first-child { margin-top: 0; }

.contact-info address { font-style: normal; line-height: 1.7; }

.contact-info .btn { margin-top: 1.6rem; }

.contact-email a {
  color: var(--navy);
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.contact-phones a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 2;
}

.contact-phones a:hover { color: var(--blue); }

.contact-map iframe {
  width: 100%;
  height: 320px;
  display: block;
  /* border 0, not the inline style attribute — the strict CSP forbids
     style= attributes. The old inline style always overrode the 1px
     hairline that used to be declared here, so borderless IS the
     approved look. */
  border: 0;
  box-shadow: var(--shadow);
  background: var(--cream);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  border-top: 5px solid var(--gold);
  color: rgba(255, 255, 255, 0.8);
  /* extra bottom room so the floating WhatsApp button, which shows at the
     very bottom of the page, never sits on top of the credit line */
  padding: 3.8rem 0 calc(1.8rem + 64px);
  font-size: 0.95rem;
}

.footer-grid { display: grid; gap: 2.4rem; }

.footer-crest { width: 72px; height: auto; margin-bottom: 1rem; }

.footer-name {
  letter-spacing: -0.012em;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.3rem 0 1rem;
}

.footer-blurb { font-size: 0.92rem; max-width: 38ch; line-height: 1.7; }

.footer-heading {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.footer-links { list-style: none; }

.footer-links a {
  display: inline-block;
  padding: 0.26rem 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-links a:hover { color: var(--gold); }

.footer-address { font-size: 0.92rem; margin-bottom: 0.6rem; line-height: 1.7; }

.footer-address a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-address a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  text-align: center;
}

.footer-copy { font-size: 0.84rem; }

.footer-credit { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.5rem; }
.footer-credit a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer-credit a:hover { color: var(--gold); }

/* ==========================================================
   Larger screens
   ========================================================== */
@media (min-width: 640px) {
  .topbar-hours { display: inline-flex; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }

  .adm-steps { grid-template-columns: repeat(3, 1fr); }
  .admissions-extra { grid-template-columns: 1fr 1fr; }

  .notice-list { grid-template-columns: repeat(2, 1fr); }

  .results-grid, .staff-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

  .testimonials { grid-template-columns: repeat(3, 1fr); }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; } /* 18px on desktop */

  .section { padding: 6rem 0; }

  .features { margin-top: -5.5rem; }

  .mission { padding: 5.5rem 0; }

  .about-grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 4.5rem; }
  .about-photo { justify-self: end; }

  .xseed-grid { grid-template-columns: 1fr 1.2fr; gap: 4.5rem; align-items: start; }

  .results-grid, .staff-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

  .principal-grid { grid-template-columns: 280px 1fr; gap: 3.5rem; }
  .principal-photo { width: 100%; }
  .principal-quote { font-size: 1.25rem; }

  .mission-crest { display: block; }

  .gallery-grid { grid-template-columns: repeat(6, 1fr); }

  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 3.5rem; align-items: start; }
  .contact-map iframe { height: 420px; }
}

/* ---------- Premium polish ---------- */

/* Hero entrance: one orchestrated, staggered arrival (gated on .js —
   without JS the hero is simply static and visible) */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroKen {
  from { transform: scale(1.07); }
  to { transform: none; }
}
.js .hero-img     { animation: heroKen 7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .hero-eyebrow { animation: heroRise 0.5s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .hero-sub     { animation: heroRise 0.5s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .hero-actions { animation: heroRise 0.5s 0.62s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .hero-proof   { animation: heroRise 0.5s 0.74s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Headline lines slide out of an invisible mask, one after the other —
   the signature move of premium hero sections */
/* The mask is padded so the italic's overhang and the descenders of
   "difference" are not clipped by overflow:hidden. */
.hl { display: block; overflow: hidden; padding: 0 0.12em 0.14em 0; margin: 0 -0.12em -0.14em 0; }
.hl-inner { display: block; }
@keyframes lineUp {
  from { transform: translateY(110%); }
  to { transform: none; }
}
.js .hl:nth-child(1) .hl-inner { animation: lineUp 0.6s 0.22s cubic-bezier(0.19, 1, 0.22, 1) both; }
.js .hl:nth-child(2) .hl-inner { animation: lineUp 0.6s 0.34s cubic-bezier(0.19, 1, 0.22, 1) both; }

/* Nav: lifts as you scroll; gold underline slides under the active section */
.nav { transition: box-shadow 0.25s ease; }
.nav.scrolled { box-shadow: 0 6px 26px rgba(6, 11, 46, 0.2); }

/* Horizontal menu only from 1100px: with Notices and Stages (and Teachers,
   once that tab is wired) eight or nine links plus the crest don't fit
   below that, and at 900-1000px the name squashed into four lines and the
   WhatsApp button wrapped. Tablets and small laptops get the menu button. */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav-inner { flex-wrap: nowrap; }
  .nav-brand { flex-shrink: 0; }
  .nav-brand-text small { white-space: nowrap; }
  .nav-inner > nav { flex: 0 1 auto; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    gap: 0;
  }
  .nav-menu a {
    border-bottom: 0;
    padding: 0.6rem 0.55rem;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .nav-cta-item { margin: 0 0 0 0.5rem; }
  .nav-cta-item .btn { width: auto; white-space: nowrap; border-bottom: 2px solid transparent !important; }

  .nav-menu a { position: relative; }
  .nav-menu a::after {
    content: '';
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav-menu a:hover::after,
  .nav-menu a.active::after { transform: scaleX(1); }
  .nav-menu a.active { color: var(--gold-dark); }
}

/* Reading progress: navy line filling across the nav's gold border */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Cards inside grids arrive with a slight cascade */
.js .features-grid > .reveal:nth-child(2),
.js .adm-steps > .reveal:nth-child(2),
.js .testimonials > .reveal:nth-child(2),
.js .steps5a > .reveal:nth-child(2) { transition-delay: 0.06s; }
.js .features-grid > .reveal:nth-child(3),
.js .adm-steps > .reveal:nth-child(3),
.js .testimonials > .reveal:nth-child(3),
.js .steps5a > .reveal:nth-child(3) { transition-delay: 0.12s; }
.js .steps5a > .reveal:nth-child(4) { transition-delay: 0.18s; }
.js .steps5a > .reveal:nth-child(5) { transition-delay: 0.24s; }

/* Buttons: lift on hover, press down on tap */
.btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(6, 11, 46, 0.2); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; transition-duration: 0.08s; }

/* Stats: tabular digits so the count-up doesn't wobble */
.stat dd { font-variant-numeric: tabular-nums; }

/* Gallery + cards: gentle lift on hover */
.gallery-grid img { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.gallery-grid img:hover,
.gallery-grid img:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(6, 11, 46, 0.22);
}
.testimonial, .notice-card, .topper-card, .staff-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.testimonial:hover, .notice-card:hover, .topper-card:hover, .staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(6, 11, 46, 0.16);
}

/* Floating WhatsApp button: appears once the visitor commits to scrolling */
.fab-wa {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 250;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(6, 11, 46, 0.32);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab-wa.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-wa:hover { transform: translateY(-2px) scale(1.05); }
.fab-wa:active { transform: scale(0.94); }
.fab-wa svg { width: 30px; height: 30px; fill: currentColor; }

/* One-time attention pulse when the button first appears */
@keyframes fabPulse {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(1.7); opacity: 0; }
}
.fab-wa::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  opacity: 0;
}
.fab-wa.show::before { animation: fabPulse 1.8s ease-out 0.5s 2; }

/* Anchor jumps land clear of the sticky nav */
main [id] { scroll-margin-top: 84px; }

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-toggle span, .feature, .feature-media img { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .notice-card, .topper-card, .staff-card { animation: none; }
  .js .hero-img, .js .hero-eyebrow, .js .hero h1, .js .hero-sub,
  .js .hero-actions, .js .hero-proof, .js .hl:nth-child(n) .hl-inner,
  .fab-wa.show::before, .faq-item[open] > *:not(summary), .notice-strip:not([hidden]) { animation: none; }
  .btn:hover, .gallery-grid img:hover,
  .testimonial:hover, .notice-card:hover, .topper-card:hover, .staff-card:hover { transform: none; }
  .fab-wa { transition: none; }
  .scroll-progress { display: none; }
}

/* ---------- 404 page (styles here so 404.html needs no inline <style>,
   which the strict CSP forbids) ---------- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}
.page-404 img { width: 110px; height: auto; margin: 0 auto 1.5rem; }
.page-404 h1 { color: var(--white); font-size: 2.4rem; margin: 0 0 0.8rem; }
.page-404 p { color: #c9cde3; margin: 0 0 1.8rem; }
.page-404 a {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  font-size: 0.98rem;
}

/* Keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 0.8rem 1.4rem;
  background: var(--navy);
  color: var(--gold);
  font: 600 0.85rem/1 var(--body);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
main:focus { outline: none; }

/* ---------- Admissions: ask about a class on WhatsApp ---------- */
.adm-ask { margin: -0.8rem 0 2.4rem; }
.adm-ask-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}
.adm-ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.adm-ask-btns .btn { padding: 0.8rem 0.9rem; }
@media (min-width: 900px) {
  .adm-ask-btns { display: flex; flex-wrap: wrap; }
  .adm-ask-btns .btn { padding: 0.85rem 1.6rem; }
}
