/* ==========================================================================
   Anglophone — components.css
   Organized: buttons/chips -> header/nav -> footer -> section primitives ->
   home sections -> programs hub -> school hub -> program detail ->
   about -> resources -> contact -> legal -> 404
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Chalk-doodle positioning context — every page hero + legal/404 pages    */
/* ---------------------------------------------------------------------- */

.about-hero, .programs-hero, .school-hero, .contact-hero, .resources-hero,
.program-hero, .legal-page, .not-found, .paths,
.tests, .elt, .hm-school, .why {
  position: relative;
  overflow: hidden;
}

/* ---------------------------------------------------------------------- */
/* Buttons & chips                                                         */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease,
    border-color var(--dur-fast) ease, transform var(--dur-med) var(--ease);
}

.btn--pill { border-radius: var(--radius-pill); }

.btn--dark {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  box-shadow: 0 12px 28px -14px rgba(192, 149, 67, .55);
}
.btn--dark:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--ink);
  transform: translateY(-1px);
}

.btn--gold {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(30, 58, 114, .65);
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--accent), var(--navy));
  color: #fff;
  transform: translateY(-1px);
}

.fab-enquire {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 34px -14px rgba(11, 31, 63, .5);
  transition: transform var(--dur-fast) ease, background var(--dur-fast) ease;
}
.fab-enquire:hover { background: linear-gradient(135deg, var(--accent), var(--navy)); transform: translateY(-2px); }
@media (max-width: 560px) {
  .fab-enquire__text { display: none; }
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(11, 31, 63, .22);
  color: var(--charcoal);
}
.btn--outline-light:hover { border-color: var(--charcoal); color: var(--charcoal); }

.btn--white {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn--white:hover { color: var(--ink); }

.btn--lg { min-height: 52px; padding: 16px 30px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 11px 22px; font-size: 14.5px; }
.btn--block { width: 100%; justify-content: center; }

/* Responsive button sizing. Desktop and laptop keep the sizes above; the buttons step down on tablet, mobile and
   very small mobile (padding, text size, height). Each size keeps a tap-friendly height (44px or more) and the
   button never grows wider than its container. */
.btn { max-width: 100%; }
@media (max-width: 900px) {
  .btn { min-height: 46px; padding: 12px 22px; font-size: 14.5px; }
  .btn--lg { min-height: 50px; padding: 14px 26px; font-size: 15.5px; }
  .btn--sm { min-height: 44px; padding: 10px 20px; font-size: 14px; }
}
@media (max-width: 600px) {
  .btn { min-height: 44px; padding: 11px 20px; font-size: 14px; gap: 6px; }
  .btn--lg { min-height: 48px; padding: 13px 24px; font-size: 15px; }
  .btn--sm { padding: 9px 18px; font-size: 13.5px; }
}
@media (max-width: 360px) {
  .btn { padding-left: 18px; padding-right: 18px; }
  .btn--lg { min-height: 46px; padding: 12px 20px; font-size: 14.5px; } /* keeps long labels such as "Book a Free Demo →" inside a 320px card */
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .35s ease;
}

.chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.chip--tag {
  min-height: auto;
  padding: 7px 14px;
  font-size: 12.5px;
}
.chip--purple { background: var(--purple-bg); color: var(--purple-text); border-color: transparent; }
.chip--blue { background: var(--blue-bg); color: var(--blue-text); border-color: transparent; }
.chip--outline-light { background: rgba(255,255,255,.5); border-color: rgba(11,31,63,.18); color: var(--charcoal-soft); }

/* ---------------------------------------------------------------------- */
/* Site header / mega nav                                                  */
/* ---------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1360px, calc(100% - 32px));
  z-index: 80;
  font-family: var(--font-sans);
  transition: top var(--dur-slow) var(--ease);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 14px 6px 40px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-nav);
  transition: all var(--dur-slow) var(--ease);
}

.site-header.is-scrolled .site-header__bar {
  padding: 4px 10px 4px 38px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-nav-scrolled);
}
.site-header.is-scrolled { top: 10px; }

.site-header__brand {
  display: flex;
  align-items: center;
  flex: none;
}

.site-header__logo {
  display: block;
  height: 76px;
  width: auto;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-lead);
}

.site-header__link {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-lead);
  background: none;
  border: 0;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.site-header__link:hover { color: var(--accent); font-weight: 700; background: var(--surface-alt); }
.site-header__link.is-active { color: var(--accent); font-weight: 700; background: var(--surface-alt); }
.site-header__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-header__dropdown-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; outline: none; }
.site-header__dropdown-btn[aria-expanded="true"] { color: var(--accent); font-weight: 700; background: var(--surface-alt); }
.site-header__caret { font-size: 10px; opacity: .55; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__cta { padding: 12px 20px; font-size: 14px; }
.site-header__mobile-toggle { display: none; }

@media (max-width: 1180px) {
  .site-header__links { font-size: 13.5px; }
  .site-header__links > * { padding-left: 9px; padding-right: 9px; }
}

@media (max-width: 1000px) {
  .site-header__cta-long { display: none; }
}

@media (max-width: 900px) {
  .site-header__links { display: none; }
  .site-header__cta { display: none; }
  .site-header__mobile-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; }
}

@media (max-width: 760px) {
  .site-header__logo { height: 52px; }
}

/* Mega menu panels */

.mega-menu {
  margin-top: 10px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-menu);
  overflow: hidden;
}

.mega-menu[hidden] { display: none; }

@media (max-width: 900px) {
  .mega-menu { display: none !important; }
}

.mega-menu__grid { display: grid; grid-template-columns: 1fr 1fr; }
.mega-menu__grid--three { grid-template-columns: .8fr .8fr 1.2fr; }

.mega-menu__col { padding: 34px 38px; }
.mega-menu__col--bordered { border-right: 1px solid var(--border-light); }
.mega-menu__col--tint { background: linear-gradient(180deg, #FBFBFF 0%, #FFFFFF 100%); }

.mega-menu__eyebrow {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--text-muted);
}

.mega-menu__list { display: grid; gap: 4px; }

.mega-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink);
  transition: background var(--dur-fast) ease, transform var(--dur-med) var(--ease);
}
.mega-menu__item:hover { background: #F5F5FF; transform: translateX(4px); color: var(--ink); }
.mega-menu__item.is-active { background: #F5F5FF; }
.mega-menu__item.is-active .mega-menu__item-title { color: var(--accent); }

.mega-menu__badge {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--radius-tight);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.mega-menu__badge--purple { background: var(--purple-bg); color: var(--accent); }
.mega-menu__badge--blue { background: var(--blue-bg); color: var(--blue); }

.mega-menu__item-title { display: block; font-weight: 700; font-size: 15px; }
.mega-menu__item-desc { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.mega-menu__item-arrow { margin-left: auto; color: var(--text-label); }

.mega-menu__promo {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
}
.mega-menu__promo span { color: var(--text-muted); }
.mega-menu__promo a { font-weight: 700; color: var(--accent); }

.mega-menu__stack-links { display: grid; gap: 4px; }
.mega-menu__stack-links a {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: background var(--dur-fast) ease;
}
.mega-menu__stack-links a:hover { background: var(--surface-alt); color: var(--ink); }
.mega-menu__stack-links a.is-active { background: var(--surface-alt); color: var(--accent); font-weight: 700; }

.mega-menu__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 38px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.mega-menu__footer:hover { color: var(--accent); }

/* Mobile overlay */

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.mobile-overlay[hidden] { display: none; }

.mobile-overlay__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-overlay__logo { display: block; height: 56px; width: auto; }

.mobile-overlay__links {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0; /* lets the list scroll inside the overlay when the open submenus make it taller than the screen */
}
.mobile-overlay__links a {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink);
}
.mobile-overlay__links a.is-active { color: var(--accent); }

/* Submenus (the same items as the desktop dropdowns): a row = parent link + expand button, then a collapsible list. */
.mobile-overlay__group { border-bottom: 1px solid var(--border-light); }
.mobile-overlay__row { display: flex; align-items: center; gap: 8px; }
.mobile-overlay__links .mobile-overlay__row a { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
.mobile-overlay__expand {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-size: 18px; line-height: 1; display: grid; place-items: center; cursor: pointer;
}
.mobile-overlay__expand span { transition: transform .3s ease; }
.mobile-overlay__expand[aria-expanded="true"] { background: var(--surface-alt); color: var(--accent); }
.mobile-overlay__expand[aria-expanded="true"] span { transform: rotate(180deg); }
.mobile-overlay__expand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mobile-overlay__sub {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .3s ease, visibility .3s;
}
.mobile-overlay__group.is-open > .mobile-overlay__sub { grid-template-rows: 1fr; visibility: visible; }
.mobile-overlay__sub-inner { overflow: hidden; min-height: 0; display: flex; flex-direction: column; margin: 0 0 14px 6px; padding-left: 16px; border-left: 2px solid var(--border); }
.mobile-overlay__eyebrow { margin: 14px 0 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--text-label); }
.mobile-overlay__eyebrow:first-child { margin-top: 4px; }
.mobile-overlay__links .mobile-overlay__sub a {
  font-size: 19px; font-weight: 600; letter-spacing: -.01em; padding: 10px 0; border-bottom: 0; color: var(--ink-alt);
  overflow-wrap: anywhere;
}
.mobile-overlay__links .mobile-overlay__sub a.is-active { color: var(--accent); }
.mobile-overlay__links .mobile-overlay__sub .mobile-overlay__sub-more { margin-top: 6px; font-size: 16px; color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .mobile-overlay__sub, .mobile-overlay__expand span { transition: none; }
}

.mobile-overlay__cta {
  margin-top: auto;
  justify-content: center;
  padding: 20px;
  font-weight: 700;
  font-size: 16px;
}

@media (min-width: 901px) {
  .mobile-overlay { display: none !important; }
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.site-footer {
  padding: clamp(56px, 9vw, 80px) 0 40px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer__logo { display: block; height: 96px; width: auto; }
.site-footer__tagline { margin: 16px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); max-width: 26ch; }

.site-footer__heading {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--text-label);
}

.site-footer__col { display: flex; flex-direction: column; }
.site-footer__col a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--ink);
}
.site-footer__col a:hover { color: var(--accent); }

.site-footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-label);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__bottom-links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer__bottom-links a { color: var(--text-label); }
.site-footer__bottom-links a:hover { color: var(--accent); }
/* Social links (Instagram, and Facebook / LinkedIn once their addresses are set): the text link plus a small line icon in the same colour.
   The wrapper adds no box of its own on wide screens (the links stay in the same row as Privacy / Terms / Contact). The padding /
   negative margin only enlarges the tap area. */
.site-footer__socials { display: contents; }
.site-footer__social { display: inline-flex; align-items: center; gap: 7px; padding: 10px 0; margin: -10px 0; }
.site-footer__social svg { flex: none; display: block; }
/* Phones: the bottom bar is already tight (and keeps room for the floating buttons), so the links show the icon alone;
   the label stays available to screen readers (aria-label) and the tap area becomes a 38px square. With two or more social links
   they sit together on their own row under Privacy / Terms / Contact. */
@media (max-width: 560px) {
  .site-footer__socials--row { display: flex; flex-basis: 100%; gap: 22px; }
  .site-footer__social { padding: 11px; margin: -11px; }
  .site-footer__social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.site-footer__inert { color: var(--text-label); cursor: default; }

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Section primitives (shared across pages)                                */
/* ---------------------------------------------------------------------- */

.section { padding: 35px 0; }                               /* desktop / laptop */
@media (max-width: 900px) { .section { padding: 32px 0; } } /* tablet */
@media (max-width: 600px) { .section { padding: 28px 0; } } /* mobile */
@media (max-width: 360px) { .section { padding: 25px 0; } } /* very small mobile, 320px */
.section--tight { padding: var(--section-pad-tight) 0; }
.section--white { background: #fff; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section--dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }

.eyebrow {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--text-muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-head__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--text-muted);
}

h1, h2, h3 { margin: 0; letter-spacing: -.03em; font-weight: 700; }

.faq {
  border-top: 1px solid var(--border);
}
.faq > details {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-faint); font-size: 22px; font-weight: 400; flex: none; margin-left: 16px; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-muted); max-width: 74ch; }

.cta-band {
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy-gradient);
  color: var(--charcoal);
}
.cta-band h2 { font-size: clamp(40px, 7vw, 96px); line-height: .97; letter-spacing: -.015em; font-weight: 500; position: relative; z-index: 1; color: var(--charcoal); }
.cta-band p { margin: 26px auto 0; max-width: 36ch; font-size: 18px; line-height: 1.6; color: var(--charcoal-soft); position: relative; z-index: 1; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; position: relative; z-index: 1; }

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: ang-glow 18s ease-in-out infinite;
}
.glow-orb--1 { width: 720px; height: 720px; top: -30%; left: 20%; background: var(--glow-navy); }
.glow-orb--2 { width: 640px; height: 640px; bottom: -40%; right: 5%; background: var(--glow-gold); animation-duration: 20s; animation-direction: reverse; }

.numbered-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.numbered-row__no { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); padding-top: 4px; }
.numbered-row__title { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.numbered-row__desc { margin: 9px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); max-width: 56ch; }

/* A short heading column beside a long list: keep it pinned while the list scrolls,
   so the side column never reads as empty space. Desktop two-column layouts only. */
@media (min-width: 901px) {
  .sticky-col { position: sticky; top: 120px; align-self: start; }
}

.image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.image-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------- */
/* Legal pages (Privacy / Terms)                                           */
/* ---------------------------------------------------------------------- */

.legal-page { padding-top: var(--hero-pad-top); max-width: 860px; margin: 0 auto; }
.legal-page .container { max-width: none; padding: 0; }
.legal-page__title { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.035em; }
.legal-page__draft-flag {
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--accent-tint);
  color: var(--purple-text);
  font-size: 14px;
  font-weight: 600;
}
.legal-page__prose { margin-top: 48px; }
.legal-page__prose h2 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal-page__prose h2:first-child { margin-top: 0; }
.legal-page__prose p { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin: 0 0 12px; }
.legal-page__prose a { color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* 404                                                                      */
/* ---------------------------------------------------------------------- */

.not-found { padding-top: clamp(140px, 9vw + 110px, 200px); padding-bottom: clamp(80px, 11vw + 45px, 160px); text-align: center; }
.not-found__inner { max-width: 620px; margin: 0 auto; }
.not-found__title { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.035em; }
.not-found__body { margin: 20px 0 0; font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* ---------------------------------------------------------------------- */
/* Home — Hero                                                              */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  background: var(--navy-gradient);
  color: var(--charcoal);
}

.drift-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  animation: ang-drift 22s ease-in-out infinite;
}
.drift-orb--1 {
  width: 900px; height: 900px; top: -320px; right: -220px;
  background: radial-gradient(circle at 40% 40%, var(--glow-gold), rgba(192,149,67,0) 65%);
}
.drift-orb--2 {
  width: 760px; height: 760px; bottom: -320px; left: -220px;
  background: radial-gradient(circle at 40% 40%, var(--glow-navy), rgba(11,31,63,0) 68%);
  filter: blur(70px);
  animation-duration: 28s;
  animation-direction: reverse;
}
.drift-orb--3 {
  width: 520px; height: 520px; top: 28%; left: 42%;
  background: radial-gradient(circle at 40% 40%, rgba(192,149,67,.35), rgba(255,255,255,0) 70%);
  filter: blur(50px);
  animation-duration: 34s;
}

.hero__grid, .hero__badge, .site-header { position: relative; z-index: 2; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 9px 18px 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--glass-light-bg);
  border: 1px solid var(--glass-light-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--rose-dark);
}
.hero__badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(192, 149, 67, .2);
  animation: ang-pulse 2.4s ease-in-out infinite;
}
@keyframes ang-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Editorial italic accent — the hero's signature line */
.hero__title-line--dark {
  font-style: italic;
  font-weight: 500;
  color: var(--rose-dark);
}

/* Shimmer sweep on primary CTAs — hover-triggered, softened for an editorial feel */
.btn--gold, .btn--dark {
  position: relative;
  overflow: hidden;
}
.btn--gold::after, .btn--dark::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease);
}
.btn--gold:hover::after, .btn--dark:hover::after { left: 130%; }
.btn:active { transform: scale(.97); }

/* Photo motion — hover zoom on clickable tiles, slow ambient zoom on static heroes */
.hero__image-wrap img,
.elt__tile img,
.confidence-card img,
.image-frame img,
.school-hero__image img,
.paths__card-image img {
  transition: transform 1s var(--ease);
}
.elt__tile:hover img,
.confidence-card:hover img,
.hero__image-wrap:hover img,
.paths__card:hover .paths__card-image img {
  transform: scale(1.07);
}
@keyframes ang-kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.09); }
}
.image-frame img,
.school-hero__image img {
  animation: ang-kenburns 16s ease-in-out infinite alternate;
}

.hero__grid {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}

/* 100vw-48px (not a % ) so the hero container's intrinsic width stays 320/300px on desktop; a % min-width counts as 0 there and collapses the two-column hero. */
.hero__copy { flex: 1.15 1 420px; min-width: min(320px, calc(100vw - 40px)); }
.hero__visual { flex: 1 1 360px; min-width: min(300px, calc(100vw - 40px)); position: relative; }

.hero__title { font-size: clamp(46px, 7.6vw, 118px); line-height: .98; letter-spacing: -.015em; font-weight: 500; }
/* The mask clips the rise animation. With line-height .98 its box ends above the bottom of descenders (the g in "English"),
   so it gets room below the text; the equal negative margin keeps the heading's height and position unchanged. */
.hero__title-mask { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.hero__title-line { display: block; color: var(--charcoal); }

.hero__lead { margin: 30px 0 0; max-width: 33ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--charcoal-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(11,31,63,.14);
  font-size: 13.5px;
  color: var(--charcoal-faint);
}

.hero__image-wrap {
  position: relative;
  border-radius: 42% 58% 63% 37% / 47% 42% 58% 53%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--lavender-deep);
  box-shadow: 0 60px 110px -50px rgba(11,31,63,.35);
}
.hero__image-wrap::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, var(--glow-gold), transparent 70%);
  filter: blur(40px);
  opacity: .6;
}
.hero__image-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__image-overlay { position: absolute; inset: 0; background: linear-gradient(190deg, rgba(192,149,67,.05), rgba(11,31,63,.14)); }

.hero__collage-img {
  position: absolute;
  left: -9%;
  bottom: -8%;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 61% 39% 45% 55% / 55% 61% 39% 45%;
  overflow: hidden;
  border: 6px solid var(--ivory);
  box-shadow: 0 30px 60px -30px rgba(11,31,63,.25);
  z-index: 3;
}
.hero__collage-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero__float {
  position: absolute;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--glass-light-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-light-border);
  box-shadow: var(--shadow-glass);
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.hero__float--dark { background: rgba(255,255,255,.7); border-color: rgba(192,149,67,.3); box-shadow: var(--shadow-glow-gold); }
.hero__float--top { top: 8%; left: calc(-9% - 15px); } /* original left: -9%; now 15px further left */
.hero__float--mid { top: 44%; right: calc(-8% - 25px); } /* original right: -8%; now 25px further right */
.hero__float--bottom { bottom: calc(6% + 130px); left: calc(-6% - 20px); } /* original: bottom 6%, left -6%; now 130px higher, 20px further left (desktop; stacked layout below 1120px is static) */

.hero__float-eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--rose-dark); }
.hero__float-eyebrow--dark { color: var(--rose-dark); }
.hero__float-big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.hero__float-caption { font-size: 12px; color: var(--charcoal-faint); }
.hero__float-label { font-size: 13px; font-weight: 600; color: var(--charcoal-soft); }
.hero__float-pct { font-size: 22px; font-weight: 700; }
.hero__float-track { display: block; height: 6px; border-radius: 3px; background: rgba(11,31,63,.08); overflow: hidden; margin-top: 4px; }
.hero__float-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--lavender-deep), var(--rose)); border-radius: 3px; }

/* 1022px and below: the three floating cards (IELTS, Speaking, PROGRESS) sit in one centred row under the image.
   Equal-width cards with one shared gap fill the row, so the gaps are equal and the group is centred; padding,
   gap and the big numbers shrink with the viewport so the row still fits at 320px. */
@media (max-width: 1022px) {
  /* container-type lets the cards size from the width of the image column (cqw), which is what the row has to fit in */
  .hero__visual { container-type: inline-size; display: flex; flex-flow: row wrap; justify-content: center; align-items: stretch; gap: clamp(8px, 2.2vw, 16px); }
  .hero__image-wrap { flex: 0 0 100%; }
  .hero__collage-img { display: none; }
  .hero__float {
    position: static; margin: 0;
    flex: 1 1 0; min-width: 0; max-width: 240px;
    padding: clamp(8px, 3cqw, 18px) clamp(6px, 3.2cqw, 20px);
  }
  .hero__float-big { font-size: clamp(18px, 7.2cqw, 34px); }
  .hero__float-pct { font-size: clamp(15px, 5cqw, 22px); }
}
}
}

@media (max-width: 760px) {
  .hero { padding-top: 130px; min-height: auto; }
}

/* Home only: the header is in the page flow (see the .site-header rule above), which left a strip of page
   background above the hero. Take the header out of the flow so the hero starts at the top of the page
   behind it, and add the header's old height to the hero's top padding so the hero content stays put. */
.page-home { --nav-flow: 90px; }                       /* height the header used to occupy */
.page-home .site-header { position: absolute; z-index: 80; }
.page-home .hero {
  padding-top: calc(65px + var(--nav-flow));
  min-height: calc(100dvh + var(--nav-flow));
}
/* Laptop-height screens (e.g. 1366x768, 1280x720): keep the hero as tall as on a 900px-tall desktop, so its content and doodles keep the desktop proportions. */
@media (min-width: 1023px) and (max-height: 899px) {
  .page-home .hero { min-height: calc(900px + var(--nav-flow)); }
}
@media (max-width: 760px) {
  .page-home { --nav-flow: 66px; }                     /* logo is 52px here instead of 76px */
  .page-home .hero { padding-top: calc(60px + var(--nav-flow)); min-height: auto; }
}

/* ---------------------------------------------------------------------- */
/* Home — Paths (flex-grow division cards)                                 */
/* ---------------------------------------------------------------------- */

.paths__head { max-width: 640px; margin-bottom: 44px; }
.paths__title { font-size: clamp(34px, 4.6vw, 68px); max-width: 16ch; letter-spacing: -.035em; }
.paths__lead { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

.paths__grid {
  display: flex;
  gap: 16px;
  min-height: 560px;
  flex-wrap: wrap;
}

.paths__card {
  flex: 1 1 0;
  min-width: min(300px, 100%);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  color: var(--ink);
  transition: flex .8s var(--ease), background .4s ease, border-color .4s ease, box-shadow .5s ease;
}
.paths__card:hover { flex: 1.4 1 0; color: var(--ink); box-shadow: var(--shadow-card-hover); }
.paths__card--purple:hover { background: #F6F5FF; border-color: var(--purple-hover-border); }
.paths__card--blue:hover { background: #F3F7FF; border-color: var(--blue-hover-border); }
/* Subject names (the plain chips on the two Home division cards): deep crest-navy text, a pale wash, a fine edge and a small jewel.
   Same treatment on both cards, tuned to each card's own colour pair (Go Global = navy, Build your foundation = gold), so each
   subject chip sits in the same family as the tinted category chips beside it (IELTS ... / CBSE ...), which are untouched. */
.paths__card { --subj-wash: var(--ivory); --subj-edge: rgba(192, 149, 67, .5); --subj-edge-hover: rgba(192, 149, 67, .8); --subj-jewel-a: var(--gold-light); --subj-jewel-b: var(--gold-dark); --subj-halo: rgba(192, 149, 67, .16); }
.paths__card--purple { --subj-wash: #F1F5FC; --subj-edge: rgba(62, 114, 196, .4); --subj-edge-hover: rgba(30, 58, 114, .6); --subj-jewel-a: var(--accent2); --subj-jewel-b: var(--accent); --subj-halo: rgba(30, 58, 114, .13); }
.paths__card .chip--subject {
  position: relative;
  padding: 7px 12px 7px 19px;
  color: var(--charcoal);
  font-weight: 700;
  border-color: var(--subj-edge);
  background: linear-gradient(180deg, #fff 0%, var(--subj-wash) 100%);
  box-shadow: 0 1px 1px rgba(20, 33, 61, .04), 0 6px 14px -9px rgba(20, 33, 61, .38);
}
/* The jewel sits inside the chip's left padding (padding is re-balanced 14/14 -> 19/12) so it adds almost no width. */
.paths__card .chip--subject::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--subj-jewel-a), var(--subj-jewel-b));
  box-shadow: 0 0 0 2.5px var(--subj-halo);
}
.paths__card:hover .chip--subject { border-color: var(--subj-edge-hover); }
/* Phones: keep each chip exactly as wide as before so no chip drops to a new row and the cards keep their height. */
@media (max-width: 480px) {
  .paths__card .chip--subject { padding: 7px 10px 7px 17px; font-weight: 600; }
  .paths__card .chip--subject::before { left: 7px; }
}

.paths__card-body { padding: clamp(28px, 3.2vw, 48px); flex: 1; }
.paths__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; }
.paths__eyebrow--purple { color: var(--accent); }
.paths__eyebrow--blue { color: var(--blue); }
.paths__card-title { margin: 22px 0 0; font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -.03em; }
.paths__card-desc { margin: 12px 0 20px; font-size: 16px; line-height: 1.65; color: var(--text-muted); max-width: 40ch; }
.paths__card-link { display: inline-flex; margin-top: 22px; font-size: 15.5px; font-weight: 700; }
.paths__card-image { height: 200px; }
.paths__card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .paths__grid { min-height: 0; }
  .paths__card { flex: 1 1 100%; }
  .paths__card:hover { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------------- */
/* Home — Tests tabs                                                        */
/* ---------------------------------------------------------------------- */

.tests__head { margin-bottom: 32px; }
.tests__title { font-size: clamp(38px, 6vw, 86px); letter-spacing: -.04em; line-height: 1.02; }
.tests__title-muted { color: var(--text-muted); }
.tests__lead { margin: 20px 0 0; max-width: 52ch; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.tests__meta { margin-top: 20px; }

.tests__tablist {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 36px;
}
.tests__tab {
  min-height: 44px;
  padding: 11px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-lead);
  font-size: 14.5px;
  font-weight: 600;
  transition: background .35s ease, color .35s ease;
  white-space: nowrap;
}
.tests__tab.is-active { background: var(--accent); color: #fff; }
@media (max-width: 600px) { .tests__tab { padding: 11px 18px; font-size: 14px; } }
@media (max-width: 360px) { .tests__tab { padding: 11px 16px; } }

.tests__panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
}
.tests__panel[hidden] { display: none; }
.tests__panel-body { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.tests__panel-body h3 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; margin-bottom: 12px; }
.tests__skill-list { margin-top: 16px; }
.tests__panel-link { margin-top: auto; padding-top: 20px; font-size: 15.5px; font-weight: 700; align-self: flex-start; }
.tests__panel-image { position: relative; min-height: 260px; }
.tests__panel-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .tests__panel { grid-template-columns: 1fr; }
  .tests__panel-image { min-height: 220px; order: -1; }
}

/* ---------------------------------------------------------------------- */
/* Home — ELT tiles                                                         */
/* ---------------------------------------------------------------------- */

.elt__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 56px; flex-wrap: wrap; }
.elt__title { margin: 0; font-size: clamp(34px, 5vw, 74px); max-width: 14ch; line-height: 1; letter-spacing: -.04em; }
.elt__desc { max-width: 40ch; padding-bottom: 10px; }
.elt__lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text-muted); }
.elt__points { display: grid; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-light); }
.elt__point { margin: 0; display: flex; gap: 18px; font-size: 15.5px; color: var(--text-muted); }
.elt__point-no { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--text-faint); padding-top: 3px; }

.elt__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.elt__tile {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.elt__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.elt__tile-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,20,0) 35%, rgba(10,13,20,.72) 100%); z-index: 1; }
.elt__tile-scrim--navy { background: linear-gradient(180deg, rgba(16,26,53,0) 35%, rgba(16,26,53,.78) 100%); }
.elt__tile-label { position: relative; z-index: 2; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; margin-bottom: auto; }
.elt__tile-text { position: relative; z-index: 2; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.78); max-width: 30ch; }
.elt__tile-text strong { display: block; font-size: clamp(30px, 3.2vw, 46px); margin-bottom: 10px; letter-spacing: -.03em; line-height: 1.05; color: #fff; }

@media (max-width: 900px) {
  .elt__head { display: block; }
  .elt__desc { max-width: none; margin-top: 24px; padding-bottom: 0; }
  .elt__tiles { grid-template-columns: 1fr; }
  .elt__tile { min-height: 360px; }
}

/* ---------------------------------------------------------------------- */
/* Home — School picker (summary version)                                  */
/* ---------------------------------------------------------------------- */

.hm-school__title { font-size: clamp(34px, 5vw, 68px); letter-spacing: -.035em; margin-bottom: 36px; }
.hm-school__title-muted { color: var(--text-muted); }

.grade-scroller { overflow-x: auto; margin-bottom: 32px; }
.grade-scroller__row { display: flex; gap: 12px; width: max-content; }

.grade-btn {
  padding: 22px 34px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all .5s var(--ease);
}
.grade-btn.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.grade-btn__num { font-size: 26px; font-weight: 700; }
.grade-btn__label { font-size: 11.5px; opacity: .55; }
@media (max-width: 600px) {
  .grade-btn { padding: 16px 26px; }
  .grade-btn__num { font-size: 22px; }
}

.hm-school__panels { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; }
.hm-school__panel-dark {
  background: var(--navy-gradient); box-shadow: var(--shadow-glow-navy);
  color: var(--charcoal);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3vw, 44px);
  min-height: 300px;
}
.hm-school__selected-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--navy-label); margin: 0; }
.hm-school__grade-num { font-size: clamp(46px, 6vw, 86px); line-height: .9; letter-spacing: -.03em; margin: 12px 0 32px; }
.hm-school__boards-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--navy-label); margin: 0 0 12px; }

.hm-school__panel-white { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(28px, 3vw, 44px); }
.hm-school__subjects-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--text-label); margin: 0 0 8px; }
.hm-school__subject-list { display: flex; flex-direction: column; }
.hm-school__subject-list a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: clamp(19px, 1.7vw, 24px);
  color: var(--ink);
  transition: padding-left .3s ease, color .3s ease;
}
.hm-school__subject-list a:last-child { border-bottom: 0; }
.hm-school__subject-list a:hover { padding-left: 12px; color: var(--accent); }

@media (max-width: 760px) {
  .hm-school__panels { grid-template-columns: 1fr; }
  .hm-school__panel-dark { min-height: 0; }
}

/* ---------------------------------------------------------------------- */
/* Home — Why (feature list)                                                */
/* ---------------------------------------------------------------------- */

.why__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); }
.why__title { font-size: clamp(38px, 6vw, 86px); letter-spacing: -.04em; }
.why__title-accent { color: var(--accent); }
.why__row { padding: 26px 0; border-top: 1px solid var(--border); }
.why__row--last { border-bottom: 1px solid var(--border); }
.why__row-title { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.why__row-desc { margin: 9px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); max-width: 44ch; }

@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Home — Progress stats + skill bars                                      */
/* ---------------------------------------------------------------------- */

.progress-section { position: relative; overflow: hidden; background: var(--navy-gradient); color: var(--charcoal); }
.progress-section .section-head__label { color: var(--charcoal-faint); }
.progress-section__title { font-size: clamp(34px, 4.6vw, 68px); letter-spacing: -.015em; font-weight: 500; color: var(--charcoal); }
.progress-section__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.stat-card {
  border: 1px solid var(--glass-light-border);
  border-radius: var(--radius-lg);
  background: var(--glass-light-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--charcoal);
  transition: transform .5s var(--ease), border-color .4s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(30,58,114,.35); }
.stat-card--dark { background: rgba(30,58,114,.12); border-color: rgba(30,58,114,.32); box-shadow: var(--shadow-glow-navy); }
.stat-card__label { margin: 0; font-size: 14px; color: var(--charcoal-soft); }
.stat-card__value { margin: 0; font-size: 56px; font-weight: 700; letter-spacing: -.04em; }
.stat-card--dark .stat-card__value { color: var(--accent); }
.stat-card__value--accent { color: var(--rose-dark); }
.stat-card__note { margin: 0; font-size: 13px; color: var(--charcoal-faint); }

.skills-card {
  grid-column: span 1;
  border: 1px solid var(--glass-light-border);
  border-radius: var(--radius-lg);
  background: var(--glass-light-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skills-card__label { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--charcoal-faint); }
.skill-bar { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--charcoal-soft); }
.skill-bar > span:first-child { flex: none; width: 68px; }
.skill-bar__track { flex: 1; height: 6px; border-radius: 3px; background: rgba(11,31,63,.08); overflow: hidden; }
.skill-bar__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lavender-deep), var(--rose)); border-radius: 3px; transition: width 1.4s var(--ease); }

@media (max-width: 1000px) {
  .progress-section__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .progress-section__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Home — Stories carousel                                                  */
/* ---------------------------------------------------------------------- */

.stories__title { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.03em; }

/* Arrows sit either side of the track; the track shows 3 cards (2 on tablet, 1 on phone). */
.stories__carousel { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.stories__arrow {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-size: 18px; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.stories__arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.06); }
.stories__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.stories__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding: 10px 4px 36px;
}
.stories__track::-webkit-scrollbar { display: none; }

.story-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  margin: 0;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  box-shadow: 0 1px 2px rgba(10, 13, 20, .03), 0 18px 40px -30px rgba(10, 13, 20, .25);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.story-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(10, 13, 20, .04), 0 28px 50px -30px rgba(30, 58, 114, .35); }
.story-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.story-card__mark { font-family: var(--font-display); font-size: 72px; line-height: .8; color: var(--gold); height: 40px; }
.story-card__score {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--accent); color: #fff; border-radius: var(--radius-pill);
  padding: 7px 14px; font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
.story-card__score span { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; opacity: .8; }
.story-card__quote { margin: 18px 0 0; flex: 1; font-size: 15.5px; line-height: 1.7; color: var(--ink-alt); text-wrap: pretty; }
.story-card__person { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-light); }
.story-card__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--border); }
.story-card__avatar--initials {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .02em;
}
.story-card__person strong { display: block; font-size: 17px; color: var(--ink); }
.story-card__person small { display: block; font-size: 14px; color: var(--text-muted); margin-top: 3px; }

.stories__dots { display: flex; justify-content: center; gap: 8px; margin-top: 0; }
.stories__dot { width: 8px; height: 8px; border-radius: 99px; background: var(--border); transition: width .4s var(--ease), background .4s ease; }
.stories__dot.is-active { width: 26px; background: var(--accent); }

@media (max-width: 1100px) {
  .story-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 700px) {
  .stories__carousel { grid-template-columns: minmax(0, 1fr); }
  .stories__arrow { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; transform: translateY(-50%); }
  .stories__arrow:hover { transform: translateY(-50%); }
  .stories__arrow--prev { left: -10px; }
  .stories__arrow--next { right: -10px; }
  /* side padding clears the arrows so they never sit on top of the quote text */
  .story-card { flex-basis: 100%; padding: 24px 28px 20px; }
}

/* ---------------------------------------------------------------------- */
/* Home — Resources preview grid                                           */
/* ---------------------------------------------------------------------- */

.home-resources__title { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.03em; }
.home-resources__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.home-resources__card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  padding: 32px; min-height: 230px;
  border-bottom: 1px solid var(--border); border-left: 1px solid var(--border);
  color: var(--ink);
  transition: background .4s ease;
}
.home-resources__grid .home-resources__card:nth-child(3n+1) { border-left: 0; }
.home-resources__card:hover { background: #fff; color: var(--ink); }
.home-resources__cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--accent); }
.home-resources__card-title { font-size: 21px; font-weight: 600; max-width: 24ch; letter-spacing: -.01em; }
.home-resources__meta { font-size: 13.5px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
  .home-resources__grid { grid-template-columns: 1fr 1fr; }
  .home-resources__grid .home-resources__card:nth-child(3n+1) { border-left: 1px solid var(--border); }
  .home-resources__grid .home-resources__card:nth-child(2n+1) { border-left: 0; }
}
@media (max-width: 600px) {
  .home-resources__grid { grid-template-columns: 1fr; }
  .home-resources__grid .home-resources__card { border-left: 0 !important; min-height: 0; gap: 28px; }
}

/* ---------------------------------------------------------------------- */
/* Enquire / contact form card (shared by Home + Contact)                  */
/* ---------------------------------------------------------------------- */

.enquire__grid, .contact-form__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.enquire__title, .contact-form__title { font-size: clamp(32px, 4.4vw, 62px); max-width: 14ch; letter-spacing: -.035em; margin: 12px 0 0; }
.enquire__body { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.enquire__steps { margin-top: 24px; }

#enquire.enquire {
  background: var(--navy-gradient); box-shadow: var(--shadow-glow-navy);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
#enquire.enquire::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 15%, rgba(192, 149, 67, .2), transparent 55%);
  pointer-events: none;
}
#enquire .eyebrow { color: var(--rose-dark); }
#enquire .enquire__title { color: var(--charcoal); }
#enquire .enquire__body { color: var(--charcoal-soft); }
#enquire .numbered-row { border-color: rgba(11, 31, 63, .14); }
#enquire .numbered-row__no { color: var(--rose-dark); }
#enquire .numbered-row__desc { color: var(--charcoal-soft); }

.form-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3.2vw, 44px);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-float);
  position: relative;
  z-index: 1;
}
.form-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: #FAFAF8;
  font-size: 15px;
  color: var(--ink);
}
.form-field textarea { min-height: auto; padding: 14px 16px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.form-card__submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-card__status { font-size: 13.5px; color: var(--text-muted); }
.form-card__success {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-xs);
  background: var(--accent-tint);
  color: var(--purple-text);
  font-weight: 600;
  font-size: 15px;
}
.form-card__success[hidden] { display: none; }
.form-card.is-sent .form-card__grid,
.form-card.is-sent .form-card__submit-row .btn { opacity: .5; pointer-events: none; }

.interest-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.interest-chip {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #FAFAF8;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: all .35s ease;
}
.interest-chip[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--purple-text); }

@media (max-width: 900px) {
  .enquire__grid, .contact-form__grid { grid-template-columns: 1fr; }
  .form-card__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Programs hub                                                             */
/* ---------------------------------------------------------------------- */

.programs-hero { padding: 70px 0 0; }                               /* desktop / laptop */
@media (max-width: 900px) { .programs-hero { padding: 50px 0 0; } } /* tablet */
@media (max-width: 600px) { .programs-hero { padding: 45px 0 0; } } /* mobile */
.programs-hero__title { font-size: clamp(42px, 6.4vw, 86px); max-width: 16ch; letter-spacing: -.035em; }
.programs-hero__lead { margin: 20px 0 0; max-width: 44ch; font-size: 18px; line-height: 1.6; color: var(--text-lead); }
.programs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.programs-section-title { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.03em; }

.program-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.program-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  color: var(--ink);
  transition: transform .6s var(--ease), border-color .4s ease, box-shadow .5s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); color: var(--ink); }
.program-cards .program-card:nth-child(1):hover,
.program-cards .program-card:nth-child(3):hover { border-color: var(--purple-hover-border); }
.program-cards .program-card:nth-child(2):hover,
.program-cards .program-card:nth-child(4):hover { border-color: var(--blue-hover-border); }
.program-card__arrow { position: absolute; top: 34px; right: 34px; color: var(--text-faint); }
.program-card__eyebrow { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; }
.program-card__title { margin: 22px 0 10px; font-size: 30px; letter-spacing: -.02em; max-width: 18ch; }
.program-card__desc { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); max-width: 40ch; }

.confidence-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.confidence-card { position: relative; display: block; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; }
.confidence-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.confidence-card__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,20,0) 35%, rgba(10,13,20,.75) 100%); }
.confidence-card__scrim--navy { background: linear-gradient(180deg, rgba(16,26,53,0) 35%, rgba(16,26,53,.8) 100%); }
.confidence-card__text { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; }
.confidence-card__text strong { display: block; font-size: 28px; margin-bottom: 6px; letter-spacing: -.02em; }

.programs-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 64px);
  border: 1px solid var(--border);
}
.programs-cta-card__title { font-size: clamp(26px, 3vw, 42px); letter-spacing: -.03em; }
.programs-cta-card__desc { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); max-width: 44ch; }

/* Course brochures (Home page, between the program overview and the student stories): one wide card for the complete brochure, two for the specialised ones. */
.brochures__title { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.03em; }
.brochure-lead { margin: -20px 0 28px; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.brochure-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brochure-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
  padding: clamp(22px, 2.6vw, 32px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .4s ease, box-shadow .5s ease;
}
.brochure-card:hover { border-color: var(--lavender-deep); box-shadow: var(--shadow-card-hover); }
.brochure-card--featured {
  grid-column: 1 / -1;
  grid-template-columns: 210px minmax(0, 1fr);
  background: linear-gradient(135deg, var(--accent-tint) 0%, #F7F9FD 100%);
  border-color: var(--lavender-deep);
}
.brochure-card__cover {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--accent-tint);
  box-shadow: 0 22px 40px -24px rgba(11, 31, 63, .55), 0 0 0 1px rgba(11, 31, 63, .08);
  transition: transform .5s var(--ease);
}
.brochure-card__cover img { display: block; width: 100%; height: auto; }
.brochure-card:hover .brochure-card__cover { transform: translateY(-3px); }
.brochure-card__eyebrow { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--gold-dark); }
.brochure-card__title { margin: 10px 0 8px; font-size: clamp(22px, 2vw, 26px); letter-spacing: -.02em; line-height: 1.15; }
.brochure-card--featured .brochure-card__title { font-size: clamp(26px, 2.8vw, 36px); }
.brochure-card__desc { margin: 0; max-width: 56ch; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.brochure-card--featured .brochure-card__desc { font-size: 16px; color: var(--text-lead); }
.brochure-card__meta { margin: 12px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-label); }
.brochure-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.brochure-card__actions .btn { min-height: 46px; padding: 12px 22px; font-size: 14.5px; }
.brochure-card__actions .btn svg { flex: none; }

/* The same card used on its own inside a program page: full width, with the two buttons moved to the right where there is room. */
.brochure-cards--single { grid-template-columns: 1fr; }
.brochure-cards--single .brochure-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 56px); align-items: center; }
.brochure-cards--single .brochure-card__body > * { grid-column: 1; }
.brochure-cards--single .brochure-card__actions { grid-column: 2; grid-row: 1 / span 4; flex-direction: column; align-items: stretch; margin-top: 0; }
.brochure-cards--single .brochure-card__actions .btn { justify-content: center; }
@media (max-width: 900px) {
  .program-cards, .confidence-cards { grid-template-columns: 1fr; }
  .brochure-cards { grid-template-columns: 1fr; }
  .brochure-cards--single .brochure-card__body { display: block; }
  .brochure-cards--single .brochure-card__actions { flex-direction: row; align-items: center; margin-top: 18px; }
}
@media (max-width: 560px) {
  .brochure-card, .brochure-card--featured { grid-template-columns: 1fr; justify-items: start; }
  .brochure-card__cover { width: min(168px, 56%); }
  .brochure-card__actions { width: 100%; }
  .brochure-card__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------------------------------------------------------------------- */
/* School hub                                                               */
/* ---------------------------------------------------------------------- */

.is-hidden { display: none !important; }

.school-hero { padding: 70px 0 0; }                               /* desktop / laptop */
@media (max-width: 900px) { .school-hero { padding: 50px 0 0; } } /* tablet */
@media (max-width: 600px) { .school-hero { padding: 45px 0 0; } } /* mobile */
.school-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.school-hero__title { font-size: clamp(42px, 6.2vw, 84px); max-width: 14ch; letter-spacing: -.035em; }
.school-hero__lead { margin: 20px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--text-lead); }
.school-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.school-hero__image { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); }
.school-hero__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.school-panels { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; margin-top: 32px; }
.school-panel-dark { background: var(--navy-gradient); box-shadow: var(--shadow-glow-navy); color: var(--charcoal); border-radius: var(--radius-xl); padding: clamp(28px, 3vw, 44px); min-height: 360px; }
.school-panel-dark__note { margin: 0 0 32px; max-width: 32ch; color: var(--charcoal-soft); font-size: 15px; line-height: 1.55; }
.school-panel-white { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(28px, 3vw, 44px); }

.focus-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.focus-row:last-child { border-bottom: 0; }
.focus-row__subject { margin: 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }
.focus-row__desc { margin: 6px 0 0; font-size: 14.5px; color: var(--text-muted); max-width: 52ch; }
.focus-row__no { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); flex: none; }

@media (max-width: 900px) {
  .school-hero__grid, .school-panels { grid-template-columns: 1fr; }
  .school-panel-dark { min-height: 0; } /* stacked: no equal-height column to fill */
}

.boards-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.boards-grid__title { font-size: clamp(30px, 4vw, 56px); letter-spacing: -.03em; }
.boards-grid__lead { margin: 16px 0 0; max-width: 38ch; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.boards-row { padding: 26px 0; border-top: 1px solid var(--border); }
.boards-list > .boards-row:last-child { border-bottom: 1px solid var(--border); }
.boards-row__name { margin: 0; font-size: 20px; font-weight: 700; }
.boards-row__desc { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }

@media (max-width: 900px) {
  .boards-grid { grid-template-columns: 1fr; }
}

.subjects-grid__title { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; margin-bottom: 36px; }
.subjects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.subject-cell { padding: 32px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.subjects-grid > .subject-cell:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.subject-cell__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--accent); }
.subject-cell__title { margin: 16px 0 0; font-size: 20px; font-weight: 700; }
.subject-cell__desc { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.subject-cell--cta { background: #fff; display: flex; flex-direction: column; justify-content: center; }
.subject-cell--cta .subject-cell__title { font-size: 22px; }
.subject-cell__link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--accent); font-size: 16px; }

@media (max-width: 900px) {
  .subjects-grid { grid-template-columns: 1fr 1fr; }
  .subjects-grid > .subject-cell:nth-child(3n+1) { border-left: 1px solid var(--border); padding-left: 32px; }
  .subjects-grid > .subject-cell:nth-child(2n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .subjects-grid { grid-template-columns: 1fr; }
  .subjects-grid > .subject-cell { border-left: 0 !important; padding-left: 0 !important; }
}

.faq-title { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.03em; margin-bottom: 24px; }

/* ---------------------------------------------------------------------- */
/* About                                                                    */
/* ---------------------------------------------------------------------- */

.about-hero { padding: 70px 0 0; }                               /* desktop / laptop */
@media (max-width: 900px) { .about-hero { padding: 50px 0 0; } } /* tablet */
@media (max-width: 600px) { .about-hero { padding: 45px 0 0; } } /* mobile */
.about-hero__title { font-size: clamp(42px, 6.4vw, 88px); max-width: 16ch; line-height: .99; letter-spacing: -.04em; }
.about-hero__lead { margin: 30px 0 0; max-width: 52ch; font-size: 19px; line-height: 1.65; color: var(--text-lead); }
.about-hold { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.about-hold__title { font-size: clamp(30px, 4vw, 56px); letter-spacing: -.035em; }
.about-hold__lead { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin: 18px 0 0; max-width: 34ch; }

.about-divisions__title, .about-teach__title { font-size: clamp(30px, 4vw, 56px); letter-spacing: -.035em; margin-bottom: 44px; }

.about-divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-division-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3.2vw, 48px);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .4s ease, transform .6s var(--ease);
}
.about-division-card:hover { transform: translateY(-3px); color: var(--ink); }
.about-divisions > a:nth-child(1):hover { border-color: var(--purple-hover-border); }
.about-divisions > a:nth-child(2):hover { border-color: var(--blue-hover-border); }
.about-division-card__title { display: block; margin-top: 22px; font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -.03em; }
.about-division-card__desc { display: block; margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--text-muted); max-width: 44ch; }
.about-division-card__link { display: inline-flex; gap: 10px; margin-top: 26px; font-size: 15.5px; font-weight: 700; }

.about-teach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-teach-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.about-teach-card--dark { background: var(--navy-gradient); box-shadow: var(--shadow-glow-navy); color: var(--charcoal); border-color: transparent; }
.about-teach-card__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--accent); }
.about-teach-card--dark .about-teach-card__no { color: var(--navy-label); }
.about-teach-card__text strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 9px; }
.about-teach-card__text { display: block; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.about-teach-card--dark .about-teach-card__text { color: var(--charcoal-soft); }

@media (max-width: 900px) {
  .about-hold, .about-divisions { grid-template-columns: 1fr; }
  .about-teach-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .about-teach-grid { grid-template-columns: 1fr; }
}

/* ---- Founder ---- */
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.founder__aside { display: flex; flex-direction: column; gap: 16px; }
.founder__image { height: clamp(360px, 36vw, 460px); }
/* Pin photo + credentials beside the long bio only when the viewport is tall enough to show them whole. */
@media (min-width: 901px) and (min-height: 820px) { .founder__aside { position: sticky; top: 120px; } }
.founder__card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--bg); }
.founder__card-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text-label); margin: 0; }
.founder__eyebrow { margin: 0; }
.founder__name { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.035em; margin: 10px 0 0; }
.founder__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text-label); margin: 10px 0 0; }
.founder__body p { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); margin: 16px 0 0; max-width: 68ch; }
.founder__credentials { margin-top: 14px; }

/* ---- Credentials: featured viewer (About) ---- */
.cred-viewer__lead { margin: 14px 0 36px; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.cred-viewer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.cred-viewer__stage {
  all: unset; box-sizing: border-box; cursor: zoom-in; position: relative;
  height: 540px; display: grid; place-items: center; padding: 32px;
  background: var(--surface-alt); border-radius: var(--radius-xl);
}
.cred-viewer__stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Certificates are shown whole — contain, never crop. */
.cred-viewer__stage img {
  max-width: 100%; max-height: 476px; width: auto; height: auto; border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(10, 13, 20, .45);
  transition: opacity .25s ease;
}
.cred-viewer__stage img.is-fading { opacity: 0; }
.cred-viewer__zoom-hint {
  position: absolute; right: 16px; bottom: 14px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, .9); color: var(--ink); padding: 6px 11px; border-radius: var(--radius-pill);
  opacity: 0; transition: opacity .3s ease;
}
.cred-viewer__stage:hover .cred-viewer__zoom-hint, .cred-viewer__stage:focus-visible .cred-viewer__zoom-hint { opacity: 1; }
.cred-viewer__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cred-viewer__tab {
  all: unset; cursor: pointer; padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.cred-viewer__tab:hover { border-color: var(--accent); }
.cred-viewer__tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cred-viewer__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) { .cred-viewer__tab { padding: 8px 14px; font-size: 13.5px; } }
.cred-viewer__info { min-width: 0; }
.cred-viewer__cat, .cred-viewer__title, .cred-viewer__meta { overflow-wrap: anywhere; } /* long names wrap inside the column instead of running past it */
.cred-viewer__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-label); margin: 0; }
.cred-viewer__title { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; line-height: 1.15; margin: 10px 0 8px; }
.cred-viewer__meta { font-size: 15.5px; color: var(--text-muted); margin: 0; }
/* Certificate cards: equal squares in an even grid; each image is shown whole inside its card (contain), never cropped or stretched. */
.cred-viewer__strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 28px; }
.cred-viewer__thumb {
  all: unset; box-sizing: border-box; cursor: pointer; aspect-ratio: 1; min-width: 0; padding: 6px;
  display: block; background: #fff; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--border); transition: box-shadow .25s ease, transform .25s ease;
}
.cred-viewer__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cred-viewer__thumb:hover { transform: translateY(-2px); }
.cred-viewer__thumb.is-active { box-shadow: 0 0 0 2px var(--accent); }
.cred-viewer__thumb[hidden] { display: none; }
.cred-viewer__thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.cred-lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.cred-lightbox::backdrop { background: rgba(10, 13, 20, .86); }
.cred-lightbox img { display: block; max-width: min(1000px, 94vw); max-height: 84vh; width: auto; height: auto; border-radius: 8px; margin: 0 auto; }
.cred-lightbox p { color: #fff; text-align: center; margin: 14px 0 0; font-size: 15px; }
.cred-lightbox__close {
  all: unset; cursor: pointer; position: fixed; top: 18px; right: 22px; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px;
}
.cred-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 900px) {
  .cred-viewer { grid-template-columns: minmax(0, 1fr); }
  .cred-viewer__stage { height: 400px; padding: 20px; }
  .cred-viewer__stage img { max-height: 360px; }
}


@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; }
}

/* ---- Recognitions & certifications ---- */

.recognitions__note { margin: 10px 0 32px; font-size: 14.5px; color: var(--text-label); font-style: italic; }

.recognitions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.recognition-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 28px;
}
.recognition-tile__badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-tight);
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
.recognition-tile__type { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text-faint); }
.recognition-tile__label { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }

.recognitions-strip__inner { text-align: center; }
.recognitions-strip__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text-label); margin: 0 0 24px; }
.recognitions-strip__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.recognitions-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.recognitions-strip__badge {
  flex: none; /* a flex item shrinks by default; when the label wraps on narrow screens that squeezed the circle into an oval */
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .recognitions-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .recognitions-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Resources                                                                */
/* ---------------------------------------------------------------------- */

.resources-hero, .contact-hero { padding: 70px 0 0; }                               /* desktop / laptop */
@media (max-width: 900px) { .resources-hero, .contact-hero { padding: 50px 0 0; } } /* tablet */
@media (max-width: 600px) { .resources-hero, .contact-hero { padding: 45px 0 0; } } /* mobile */
.resources-hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.resources-hero__title { font-size: clamp(42px, 6vw, 80px); max-width: 15ch; letter-spacing: -.035em; }
.resources-hero__lead { margin: 20px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--text-lead); }
.resources-hero__filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

@media (max-width: 900px) {
  .resources-hero__grid { grid-template-columns: 1fr; }
  .resources-hero__filters { justify-content: flex-start; }
}

.featured-article { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); }
.featured-article__text { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.featured-article__kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--accent); }
.featured-article__title { margin: 18px 0 0; font-size: clamp(28px, 3.4vw, 46px); max-width: 20ch; letter-spacing: -.02em; }
.featured-article__dek { margin: 16px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--text-muted); max-width: 48ch; }
.featured-article__meta { margin: 20px 0 0; font-size: 13.5px; color: var(--text-label); }
.featured-article__image { position: relative; min-height: 280px; }
.featured-article__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .featured-article { grid-template-columns: 1fr; }
}

.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.resources-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  padding: 32px; min-height: 230px;
  border-bottom: 1px solid var(--border); border-left: 1px solid var(--border);
  transition: background .4s ease;
}
.resources-grid .resources-card:nth-child(3n+1) { border-left: 0; }
.resources-card:hover { background: #fff; }
.resources-card[hidden] { display: none; }
.resources-card__cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--accent); }
.resources-card__title { font-size: 21px; font-weight: 600; max-width: 24ch; letter-spacing: -.01em; margin: 0; }
.resources-card__meta { font-size: 13.5px; color: var(--text-muted); }
.resources-count { margin: 28px 0 0; font-size: 13.5px; color: var(--text-label); }
.resources-card:hover, .featured-article:hover { color: var(--ink); }
.resources-card:hover .resources-card__title, .featured-article:hover .featured-article__title { color: var(--accent); }
.featured-article { transition: border-color .3s ease; }
.featured-article:hover { border-color: var(--accent-tint); }
.resources-card__meta { display: flex; align-items: center; gap: 8px; }

/* Resource article pages */
.article-hero { padding-top: 56px; }
.article-hero__inner { max-width: 820px; }
.article-hero__title { margin: 0; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.03em; line-height: 1.08; }
.article-hero__meta { margin: 20px 0 0; font-size: 13.5px; color: var(--text-label); }

.prose { max-width: 720px; font-size: 17px; line-height: 1.75; color: var(--ink-alt); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 48px 0 14px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.prose h3 { margin: 30px 0 10px; font-size: 19px; line-height: 1.35; color: var(--ink); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 0 0 8px; padding-left: 4px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose .curric-table-wrap { margin: 8px 0 24px; }
.prose .curric-table th { white-space: normal; }
.prose__signoff { margin-top: 36px !important; padding-top: 20px; border-top: 1px solid var(--border); font-weight: 600; color: var(--accent); }
.article-related { margin-top: 4px; }

.author-box {
  max-width: 720px; margin: 48px 0 0; padding: 22px;
  display: flex; gap: 18px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg);
}
.author-box__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box__label { margin: 0 0 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--accent); }
.author-box__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-lead); }
.author-box__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) { .author-box { align-items: flex-start; } .author-box__photo { width: 56px; height: 56px; } }

@media (max-width: 600px) {
  .article-hero { padding-top: 40px; }
  .prose { font-size: 16px; line-height: 1.7; }
  .prose h2 { margin-top: 36px; }
}

@media (max-width: 900px) {
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .resources-grid .resources-card:nth-child(3n+1) { border-left: 1px solid var(--border); }
  .resources-grid .resources-card:nth-child(2n+1) { border-left: 0; }
}
@media (max-width: 600px) {
  .resources-grid { grid-template-columns: 1fr; }
  .resources-grid .resources-card { border-left: 0 !important; min-height: 0; gap: 28px; }
}

/* ---------------------------------------------------------------------- */
/* Contact                                                                  */
/* ---------------------------------------------------------------------- */

.contact-hero__title { font-size: clamp(42px, 6.4vw, 88px); max-width: 14ch; letter-spacing: -.04em; }
.contact-hero__lead { margin: 20px 0 0; max-width: 48ch; font-size: 18px; line-height: 1.6; color: var(--text-lead); }

.contact-form__grid { grid-template-columns: 1.15fr .85fr; }
.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }
.contact-sidebar__card { border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--border); }
.contact-sidebar__card--dark { background: var(--navy-gradient); box-shadow: var(--shadow-glow-navy); color: var(--charcoal); border-color: transparent; }
.contact-sidebar__label { margin: 0 0 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text-label); }

.contact-detail { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 14.5px; }
.contact-detail:last-of-type { border-bottom: 0; }
.contact-detail span { color: var(--text-muted); }
.contact-detail strong { text-align: right; max-width: 24ch; }
.contact-detail a { color: inherit; }
.contact-sidebar__footnote { margin: 16px 0 0; font-size: 12.5px; color: var(--text-label); font-style: italic; }

@media (max-width: 900px) {
  .contact-form__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Program detail                                                           */
/* ---------------------------------------------------------------------- */

.program-tabbar-wrap { padding: 70px 0 0; }                               /* desktop / laptop */
@media (max-width: 900px) { .program-tabbar-wrap { padding: 50px 0 0; } } /* tablet */
@media (max-width: 600px) { .program-tabbar-wrap { padding: 45px 0 0; } } /* mobile */
.program-tabbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.program-tabbar__tab {
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  color: var(--text-lead);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .4s ease, color .4s ease;
}
.program-tabbar__tab.is-active { background: var(--accent); color: #fff; }
@media (max-width: 600px) { .program-tabbar__tab { padding: 11px 18px; font-size: 14px; } }
@media (max-width: 360px) { .program-tabbar__tab { padding: 11px 16px; } }
.program-tabbar__tab:hover:not(.is-active) { background: var(--surface-alt); color: var(--ink); }

.program-hero { padding: 56px 0 20px; }
.program-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.program-hero__title { font-size: clamp(40px, 6vw, 82px); max-width: 15ch; letter-spacing: -.035em; }
.program-hero__intro { margin: 20px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--text-lead); }
.program-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* Desktop: the photo spans the full height of the text column (eyebrow to buttons). */
.program-hero__image { min-height: 360px; background: var(--surface-alt); }

.program-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.program-facts__cell { padding: 26px 26px 26px 0; display: flex; flex-direction: column; gap: 6px; }
.program-facts__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--text-label); }
.program-facts__value { font-size: 19px; font-weight: 700; }

@media (max-width: 900px) {
  .program-hero__grid { grid-template-columns: 1fr; }
  .program-hero__image { min-height: 0; aspect-ratio: 4 / 3; }
  .program-facts { grid-template-columns: 1fr 1fr; }
}

.program-modules { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.program-section-title { font-size: clamp(30px, 4vw, 56px); letter-spacing: -.03em; }
.program-modules__note { margin: 16px 0 0; max-width: 38ch; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

@media (max-width: 900px) {
  .program-modules { grid-template-columns: 1fr; }
}

.program-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.program-audience { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(28px, 3.4vw, 50px); }
.program-audience__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text-label); margin: 0 0 16px; }
.program-audience__item { font-size: 17px; color: var(--ink-alt); padding: 16px 0; border-bottom: 1px solid var(--border-light); margin: 0; }
.program-audience__item:last-child { border-bottom: 0; }

.program-outcome { background: var(--navy-gradient); box-shadow: var(--shadow-glow-navy); color: var(--charcoal); border-radius: var(--radius-xl); padding: clamp(28px, 3.4vw, 50px); display: flex; flex-direction: column; }
.program-outcome__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--navy-label); margin: 0 0 16px; }
.program-outcome__text { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; line-height: 1.25; margin: 0; }
.program-outcome__text + .btn { align-self: flex-start; margin-top: 40px; }

@media (max-width: 900px) {
  .program-split { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Cognito Forms embeds (Contact + Home). Cognito themes each form through */
/* CSS variables on .cog-<id>; this selector outranks them so the forms    */
/* pick up the site's type, inputs and gold pill button.                   */
/* ---------------------------------------------------------------------- */
.cognito-card { min-height: 420px; }
.cognito-card .cog-cognito {
  --font-family: var(--font-sans);
  --header__font-family: var(--font-sans);
  --heading__font-family: var(--font-sans);
  --label__font-family: var(--font-sans);
  --button-primary__font-family: var(--font-sans);
  --button-secondary__font-family: var(--font-sans);
  --a__font-family: var(--font-sans);
  --font-size: 15px;
  --color: var(--ink-alt);
  --label__color: var(--ink);
  --label__font-weight: 600;
  --label__font-size: 14px;
  --heading__color: var(--ink);
  --a__color: var(--accent);
  --form__background-color: transparent;
  --page__background-color: transparent;
  --form__margins: 0px;
  --form__margins--responsive: 0px;
  --page__margins: 0px;
  --form__width: 100%;
  --primary: var(--gold);
  --primary-reverse: var(--ink);
  --highlight: var(--accent);
  --highlight-reverse: #fff;
  --input-highlight: var(--accent);
  --input-highlight-reverse: #fff;
  --input__background-color: #fff;
  --input__border-color: var(--border);
  --input__border-width: 1px;
  --input__border-radius: 14px;
  --input__padding-v: 12px;
  --input__padding-h: 14px;
  --input__color: var(--ink);
  --placeholder__color: var(--text-label);
  --input-focus__box-shadow: 0 0 0 3px rgba(30, 58, 114, .14);
  --checkable__border-color: #C9CBD3;
  --checkbox__border-radius: 5px;
  --border-radius: 14px;
  --button-primary__border-radius: 100px;
  --button-primary__font-weight: 700;
  --button-primary__font-size: 16px;
  --button-primary__color: var(--ink);
  --button-primary__border-width: 0px;
}
/* Each card already has its own heading, so Cognito's form title is hidden. */
.cognito-card .cog-cognito .cog-header { display: none !important; }
.cognito-card .cog-cognito .cog-button--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
  box-shadow: 0 12px 28px -14px rgba(192, 149, 67, .55);
  padding: 14px 28px;
}
.cognito-card .cog-cognito .cog-button--primary:hover { filter: brightness(1.04); }
@media (max-width: 600px) { .cognito-card .cog-cognito .cog-button--primary { padding: 12px 22px; } }

/* School grade picker: the grade-specific links (#grade-8 ...) land on the picker below the fixed header. */
#grades { scroll-margin-top: 24px; }
.grade-btn[id^="grade-"] { scroll-margin-top: 94px; } /* browser's own #hash jump lands at the same spot as the script's */
/* Opening /school/#grade-N makes the browser focus that button, which drew the global :focus-visible ring
   around the selected grade. Hide it for the hash target only; the other grade buttons keep their ring. */
.grade-btn:target { outline: none; }

/* Contact-page form anchors sit below the fixed header (header bottom ~82px, sections pad 70px). */
#general-enquiry, #book { scroll-margin-top: 24px; }

/* ---------------------------------------------------------------------- */
/* School — curriculum subject pages                                        */
/* ---------------------------------------------------------------------- */

.curric-breadcrumb { font-size: 13px; color: var(--text-label); margin: 0 0 10px; }
.curric-breadcrumb a { color: var(--text-label); }
.curric-breadcrumb a:hover { color: var(--ink); }

.curric-grade-title { font-size: 19px; font-weight: 700; }
.curric-grade-source { font-size: 13.5px; color: var(--text-faint); font-weight: 400; }

.curric-block__heading { margin: 22px 0 8px; font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; color: var(--ink); }
.curric-block__heading:first-child { margin-top: 6px; }
.curric-block__para { margin: 10px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); max-width: 74ch; }
.curric-block__source { margin: 16px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-faint); font-style: italic; }

.curric-table-wrap { margin: 12px 0 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-tight); }
.curric-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.curric-table th, .curric-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.curric-table th { background: var(--surface-alt); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-label); white-space: nowrap; }
.curric-table tr:last-child td { border-bottom: 0; }

.curric-subjects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.curric-subject-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; padding: 24px;
}
.curric-subject-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.curric-subject-card__board { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--text-label); }
.curric-subject-card__title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.curric-subject-card__grades { font-size: 13.5px; color: var(--text-muted); }

@media (max-width: 760px) {
  .curric-table { font-size: 13px; }
  .curric-table th, .curric-table td { padding: 8px 10px; }
}

/* ------------------------------------------------------------------ */
/* Home popup. Layout, sizes and motion follow the Furea newsletter    */
/* popup (width 88% / 80% / 655 / 720 / 760px, 10px radius, image      */
/* panel 280 / 320 / 330px hidden below 768px, fade 1s + slide .5s).   */
/* Opened by main.js after a short delay.                              */
/* ------------------------------------------------------------------ */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 31, 63, .45);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: all 1s ease-in-out;
}
.promo-popup.promo-popup--show { visibility: visible; opacity: 1; }

.promo-popup__inner {
  position: relative;
  width: 88%;
  max-height: 80vh;
  border-radius: var(--radius-tight);
  background: var(--surface);
  box-shadow: 2px 0 20px rgba(0, 0, 0, .06);
  overflow: auto;
  cursor: default;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50px);
  transition: all .5s cubic-bezier(.51, .92, .24, 1.15);
}
.promo-popup--show .promo-popup__inner {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: .2s;
}
.promo-popup__inner:focus { outline: none; }

.promo-popup__box { display: flex; align-items: center; }

.promo-popup__close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}
.promo-popup__close:hover { background: var(--navy); }
.promo-popup__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.promo-popup__close > * { pointer-events: none; }

.promo-popup__thumb {
  position: relative;
  align-self: stretch;
  flex: none;
  width: 280px;
  overflow: hidden;
  background: var(--accent-tint);
}
.promo-popup__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 30%;
}

.promo-popup__right {
  width: 100%;
  padding: 40px 20px 22px;
  text-align: center;
}
.promo-popup__title {
  margin: 0 0 13px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.promo-popup__desc {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-lead);
}
.promo-popup__btn { min-height: 44px; }
.promo-popup__footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.promo-popup__footer input { flex: none; margin: 0; accent-color: var(--accent); cursor: pointer; }
.promo-popup__dismiss-label { cursor: pointer; font-size: 14px; color: var(--text-muted); }

@media (max-width: 767px) {
  .promo-popup__thumb { display: none; }
}
@media (min-width: 576px) {
  .promo-popup__inner { width: 80%; }
  .promo-popup__right { padding: 40px 20px 30px; }
}
@media (min-width: 768px) {
  .promo-popup__inner { width: 655px; }
  .promo-popup__right { width: calc(100% - 280px); padding: 30px 20px; }
  .promo-popup__title { font-size: 25px; }
  .promo-popup__btn { min-height: 48px; }
  .promo-popup__dismiss-label { font-size: 16px; }
}
@media (min-width: 992px) {
  .promo-popup__inner { width: 720px; }
  .promo-popup__close { width: 32px; height: 32px; }
  .promo-popup__thumb { width: 320px; }
  .promo-popup__right { width: calc(100% - 320px); padding: 40px 25px; }
  .promo-popup__title { margin-bottom: 20px; }
  .promo-popup__desc { margin-bottom: 22px; font-size: 16px; }
}
@media (min-width: 1200px) {
  .promo-popup__inner { width: 760px; }
  .promo-popup__thumb { width: 330px; }
  .promo-popup__right { width: calc(100% - 330px); padding: 40px 30px; }
  .promo-popup__title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-popup, .promo-popup__inner { transition: none; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Floating enquiry stack (every page): a WhatsApp button sits directly */
/* above Enquire Now and opens a small panel of suggested questions.    */
/* Each question is a real wa.me link with the message prefilled.       */
/* ------------------------------------------------------------------ */
.fab-stack {
  --wa-green: #25D366;
  --wa-green-hover: #1EBE5A;
  --wa-green-deep: #128C7E;
  --wa-ink: #073B2A;
  /* One size for both floating buttons (WhatsApp and Enquire Now); phones switch to matching round icon buttons. */
  --fab-w: 164px;
  --fab-h: 50px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab-enquire:focus-visible,
.fab-wa:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Shared geometry: identical width and height, content centred, label never wraps. */
.fab-enquire,
.fab-wa {
  box-sizing: border-box;
  flex: none;
  justify-content: center;
  width: var(--fab-w);
  height: var(--fab-h);
  padding: 0 16px;
  white-space: nowrap;
}

.fab-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  background: var(--wa-green);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(7, 59, 42, .6);
  transition: transform var(--dur-fast) ease, background var(--dur-fast) ease;
}
.fab-wa__icon { flex: none; display: block; }
.fab-wa__text { color: var(--wa-ink); }
.fab-wa:hover { background: var(--wa-green-hover); transform: translateY(-2px); }
@media (max-width: 560px) {
  .fab-stack { --fab-w: 52px; --fab-h: 52px; }
  .fab-enquire, .fab-wa { padding: 0; }
  .fab-wa__text { display: none; }
}

.wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 44px));
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  box-shadow: var(--shadow-menu);
  color: var(--ink);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}
.wa-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.wa-panel__head { display: flex; align-items: flex-start; gap: 12px; }
.wa-panel__badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
}
.wa-panel__intro { flex: 1; min-width: 0; }
.wa-panel__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.wa-panel__sub { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.wa-panel__close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px -6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.wa-panel__close:hover { background: var(--surface-alt); color: var(--ink); }
.wa-panel__close:focus-visible,
.wa-panel__option:focus-visible,
.wa-panel__direct:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wa-panel__list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.wa-panel__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.wa-panel__option:hover { border-color: var(--wa-green); background: #F3FBF6; }
.wa-panel__option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wa-panel__option-label { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.wa-panel__option-hint { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.wa-panel__option-arrow { flex: none; color: var(--wa-green-deep); font-weight: 700; }

.wa-panel__direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 12px;
  border-radius: var(--radius-pill);
  background: var(--wa-green);
  color: var(--wa-ink);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--dur-fast) ease;
}
.wa-panel__direct svg { color: #fff; }
.wa-panel__direct:hover { background: var(--wa-green-hover); }
.wa-panel__alt, .wa-panel__days { margin: 12px 0 0; font-size: 13px; line-height: 1.5; text-align: center; color: var(--text-muted); }
.wa-panel__days { margin-top: 4px; font-size: 12.5px; }
.wa-panel__alt a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .wa-panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-panel, .wa-panel.is-open, .fab-wa { transition: none; }
}

/* Brochure download link (hero areas and Contact card) */
.brochure-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(30, 58, 114, .35);
  text-underline-offset: 5px;
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}
.brochure-link:hover { color: var(--navy); text-decoration-color: currentColor; }
.brochure-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.contact-sidebar__note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.contact-sidebar__note a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* At the end of the page the floating WhatsApp / Enquire Now buttons would sit on the bottom bar's links: leave room for them.
   Only needed where the footer container reaches under the buttons (narrower than ~1700px). */
@media (max-width: 1700px) {
  .site-footer__bottom { padding-right: 190px; }
}
@media (max-width: 560px) {
  .site-footer__bottom { padding-right: 80px; }
}

/* Short screens (small phones in landscape or with browser bars): keep every action visible without scrolling the panel */
@media (max-height: 720px) {
  .wa-panel { padding: 12px; }
  .wa-panel__option-hint { display: none; }
  .wa-panel__option { padding: 9px 12px; }
  .wa-panel__list { gap: 6px; margin-top: 10px; }
  .wa-panel__direct { min-height: 44px; margin-top: 10px; }
  .wa-panel__alt { margin-top: 10px; }
}

/* While the WhatsApp panel is open it sits above the sticky header (z 80), so its title and close button are never covered. */
.fab-stack--open { z-index: 95; }
