/* ==========================================================================
   Ella Grace Private School
   Brand palette is fixed: only the six colours below (and their alpha tints).
   ========================================================================== */

@font-face { font-family: "Libre Baskerville"; src: url("../fonts/LibreBaskerville-VariableFont_wght.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/LibreBaskerville-Italic-VariableFont_wght.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Teachers"; src: url("../fonts/Teachers-VariableFont_wght.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Teachers"; src: url("../fonts/Teachers-Italic-VariableFont_wght.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

:root {
  --teal-deep: #04657f;
  --teal-soft: #4ea4b9;
  --gold: #b5964a;
  --ink: #232323;
  --white: #ffffff;
  --mist: #dceef1;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Teachers", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 110px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-soft); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--teal-deep); line-height: 1.25; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--mist); color: var(--teal-deep); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--teal-deep); color: var(--white); }
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding: var(--section-y) 0; position: relative; }
.section--mist { background: var(--mist); }
.icon { width: 20px; height: 20px; flex: none; }

/* Typography helpers ----------------------------------------------------- */
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow--light { color: var(--white); }
.h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; }
.h2--light { color: var(--white); }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; margin-bottom: 12px; }
.lead { font-size: 19px; }
.prose > * + * { margin-top: 1em; }
.prose h3 { margin-top: 1.6em; font-size: 22px; font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .3em; }
.serif-quote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; color: var(--teal-deep); }

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head__text { margin-top: 14px; font-size: 16px; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head--light .eyebrow, .section-head--light .h2, .section-head--light .section-head__text { color: var(--white); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--serif); font-size: 15px; line-height: 1.2; text-align: center; text-decoration: none;
  border: 1px solid var(--teal-deep);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal-deep); color: var(--white); }
.btn--primary:hover { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--white); }
.btn--light { background: var(--mist); color: var(--teal-deep); }
.btn--light:hover { background: var(--white); color: var(--teal-deep); }
.btn--white-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--white-outline:hover { background: var(--white); color: var(--teal-deep); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn-row--center { justify-content: center; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(4, 101, 127, .1); }
.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
  max-width: 1760px; margin: 0 auto; padding: 0 var(--gutter);
}
.site-logo img { width: 200px; }
.main-nav { margin-left: auto; }
.main-nav__list { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.main-nav__item { position: relative; }
.main-nav__link {
  display: block; padding: 30px 0;
  font-family: var(--serif); font-size: 14.5px; color: var(--teal-deep); text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--teal-deep), var(--teal-deep)) 0 calc(100% - 26px) / 0 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.main-nav__link:hover, .main-nav__link.is-current, .main-nav__item:focus-within > .main-nav__link { background-size: 100% 1px; color: var(--teal-deep); }
.main-nav__toggle { display: none; }
.main-nav__mobile-cta { display: none; }
.site-header__cta { flex: none; }
.nav-burger { display: none; }
/* Language switcher: EN | 中文 */
.lang-switch { display: inline-flex; flex: none; align-items: center; padding: 3px; border: 1px solid var(--mist); border-radius: 999px; background: var(--white); }
.lang-switch__link { padding: 6px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 1; color: var(--teal-deep); text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease); }
.lang-switch__link:hover { background: var(--mist); }
.lang-switch__link.is-current { background: var(--teal-deep); color: var(--white); }
.lang-switch--footer { vertical-align: middle; }
.site-logo { flex: none; }
@media (max-width: 1500px) and (min-width: 1361px) { .site-header__inner { gap: 14px; } .site-logo img { width: 170px; } .main-nav__list { gap: 9px; } .main-nav__link { font-size: 13.5px; } .site-header__cta { padding-left: 20px; padding-right: 20px; } }

/* Mega menu: a panel centred under the whole header, with an image that
   changes as you hover over each link. */
.site-header__inner { position: relative; }
.main-nav__item { position: static; }
.mega {
  position: absolute; top: 100%; left: 50%;
  display: grid; grid-template-columns: 240px 1fr 380px; gap: 36px; align-items: start;
  width: min(1120px, calc(100vw - 48px));
  padding: 32px;
  background: var(--white);
  border-top: 3px solid var(--teal-deep);
  box-shadow: 0 24px 50px rgba(35, 35, 35, .14);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__intro { padding-right: 28px; border-right: 1px solid var(--mist); }
.mega__media { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.mega__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform 1.2s var(--ease); }
.mega__media img.is-swapping { opacity: 0; transform: scale(1.04); }
.has-mega:hover .mega__media img { transform: scale(1.03); }
.mega__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  font-family: var(--serif); font-size: 15px; color: var(--white);
  background: linear-gradient(transparent, rgba(4, 101, 127, .9));
}
.mega__links a { position: relative; }
.mega__links a::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 0; height: 1px; background: var(--teal-soft); transition: width .3s var(--ease); }
.mega__links a:hover::after { width: 40px; }
.mega__title { margin-bottom: 8px; font-family: var(--serif); font-size: 18px; color: var(--teal-deep); }
.mega__text { font-size: 14px; }
.mega__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--serif); font-size: 14px; text-decoration: none; }
.mega__more .icon { width: 16px; height: 16px; }
.mega__links { margin: 0; padding: 0; list-style: none; }
.mega__links a { display: block; padding: 7px 0; font-size: 15px; color: var(--ink); text-decoration: none; transition: color .2s, padding-left .2s var(--ease); }
.mega__links a:hover, .mega__links a.is-current { color: var(--teal-deep); padding-left: 6px; }

@media (max-width: 1360px) {
  :root { --header-h: 72px; }
  .site-logo img { width: 170px; }
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-left: 4px;
    background: none; border: 1px solid var(--mist); color: var(--teal-deep); cursor: pointer;
  }
  .nav-burger .icon { width: 24px; height: 24px; }
  .nav-burger__close { display: none; }
  .nav-open .nav-burger__open { display: none; }
  .nav-open .nav-burger__close { display: block; }
  .site-header__lang { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    margin: 0; padding: 12px var(--gutter) 32px;
    background: var(--white);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--mist); }
  .main-nav__link { flex: 1; padding: 16px 0; font-size: 17px; background: none; }
  .main-nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; color: var(--teal-deep); cursor: pointer;
  }
  .main-nav__toggle .icon { transition: transform .25s var(--ease); }
  .main-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .main-nav__item { position: relative; }
  .mega__media { display: none; }
  .mega {
    position: static; display: none; width: 100%;
    padding: 0 0 12px 12px; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .main-nav__toggle[aria-expanded="true"] + .mega { display: block; }
  .mega__intro { display: none; }
  .main-nav__mobile-cta { display: grid; gap: 10px; margin-top: 24px; }
}
@media (max-width: 600px) {
  .site-header__cta { display: none; }
  .site-header__inner { gap: 10px; }
  .site-logo img { width: 150px; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; display: grid; place-items: center;
  min-height: min(calc(100svh - var(--header-h)), 820px);
  min-height: max(560px, min(calc(100svh - var(--header-h)), 820px));
  padding: 80px var(--gutter) 150px;
  overflow: hidden; isolation: isolate;
  background: var(--ink);
}
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(35, 35, 35, .5); }
.hero__content { text-align: center; }
.hero__title { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.18; color: var(--white); }
.hero__tagline { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--mist); }
.hero .btn-row { margin-top: 32px; }

.admit-pop {
  position: absolute; left: 50%; bottom: 28px;
  display: flex; align-items: center; gap: 16px;
  width: min(620px, calc(100% - 32px));
  padding: 14px 18px;
  background: var(--white);
  transform: translateX(-50%);
  animation: pop-in .7s .6s var(--ease) both;
}
.admit-pop.is-hidden { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, 16px); } }
.admit-pop__img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--mist); }
.admit-pop__text { flex: 1; min-width: 0; }
.admit-pop__title { margin: 0; font-family: var(--serif); font-size: 19px; color: var(--teal-deep); }
.admit-pop__sub { margin: 0; font-size: 14px; font-style: italic; }
.admit-pop__close {
  position: absolute; top: -12px; right: -12px;
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  background: var(--mist); border: 1px solid var(--teal-soft); border-radius: 50%; color: var(--teal-deep); cursor: pointer;
}
.admit-pop__close .icon { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .hero { padding-bottom: 190px; }
  .admit-pop { flex-wrap: wrap; bottom: 20px; }
  .admit-pop .btn { width: 100%; }
}

/* Principal -------------------------------------------------------------- */
.principal { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.principal__text { display: flex; justify-content: flex-end; padding: var(--section-y) clamp(32px, 6vw, 110px) var(--section-y) var(--gutter); }
.principal__inner { max-width: 560px; }
.principal__inner .h2 { margin-bottom: 24px; }
.principal__inner p { font-size: 16px; }
.principal__signature { width: 200px; margin: 4px 0 6px; }
.principal__role { font-weight: 600; color: var(--teal-soft); }
.principal__media { position: relative; min-height: 640px; background: var(--teal-soft) url("../img/bg-teal-leaves.webp") center / cover; }
.principal__photo { position: absolute; margin: 0; width: min(44%, 340px); aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 20px 50px rgba(35, 35, 35, .18); }
.principal__photo img { width: 100%; height: 100%; object-fit: cover; }
.principal__photo--1 { left: -8%; top: 30%; }
.principal__photo--2 { left: 42%; top: 10%; }
@media (max-width: 900px) {
  .principal { grid-template-columns: 1fr; }
  .principal__text { justify-content: center; padding: var(--section-y) var(--gutter) 48px; }
  .principal__media { display: flex; gap: 16px; align-items: flex-start; min-height: 0; padding: 40px var(--gutter); }
  .principal__photo { position: static; width: 50%; }
  .principal__photo--2 { margin-top: 48px; }
}

.render-label {
  position: absolute; left: 10px; bottom: 10px;
  padding: 3px 8px; font-size: 12px; letter-spacing: .02em;
  background: rgba(255, 255, 255, .9); color: var(--teal-deep);
}

/* Vision quote ----------------------------------------------------------- */
.quote-frame { padding: clamp(56px, 7vw, 90px) var(--gutter); background: var(--white) url("../img/bg-leaves-white.webp") center / cover; }
.quote-frame__crest {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* Padding in container units so it scales with the crest, not the page. */
  container-type: inline-size;
  position: relative;
  width: min(440px, 100%); aspect-ratio: 647 / 700; margin: 0 auto;
  text-align: center;
}
.quote-frame__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.quote-frame__inner { position: relative; }
.quote-frame__line { display: block; }
.quote-frame__inner { display: flex; flex-direction: column; align-items: center; padding: 0 19cqi; }
.quote-frame__logo { width: 52%; margin-bottom: 4cqi; }
.quote-frame__quote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 4cqi; line-height: 1.45; color: var(--teal-deep); }
.quote-frame__sig { width: 44%; margin-top: 4cqi; }
.quote-frame__role { margin-top: 1cqi; font-size: 2.9cqi; line-height: 1.35; color: var(--teal-deep); }

/* Backgrounds ------------------------------------------------------------ */
.bg-leaves-blue { background: var(--mist) url("../img/bg-leaves-blue.webp") center / cover; }
.bg-leaves-white { background: var(--white) url("../img/bg-leaves-white.webp") center / cover; }
.bg-journey { background: var(--white) url("../img/bg-journey.webp") left center / cover; }
.bg-community { background: var(--mist) url("../img/bg-community.webp") center / cover; }
.bg-steps { background: var(--white) url("../img/bg-steps.webp") center / cover; }
.bg-floral { background: var(--white) url("../img/bg-floral-faint.webp") center / 600px repeat; }

/* Pillars ---------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.pillar__img { width: 100%; aspect-ratio: 381 / 413; object-fit: cover; margin-bottom: 20px; }
.pillar__title { margin-bottom: 10px; font-family: var(--sans); font-size: 19px; font-weight: 600; }
.pillar p { font-size: 15px; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

/* What makes us different ------------------------------------------------ */
.different { background: var(--teal-deep) url("../img/bg-different.webp") center / cover; isolation: isolate; color: var(--white); }
.different::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(4, 101, 127, .86); }
.highlights { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 48px; }
.highlight {
  flex: 0 0 25%; padding: 0 clamp(16px, 2vw, 32px);
  text-align: center; color: var(--white); text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, .45);
}
.highlight:nth-child(1), .highlight:nth-child(5) { border-left: 0; }
.highlight:hover { color: var(--white); }
.highlight__icon { height: 79px; width: auto; margin: 0 auto 22px; transition: transform .4s var(--ease); }
.highlight:hover .highlight__icon { transform: translateY(-4px); }
.highlight__title { margin-bottom: 10px; font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--white); }
.highlight p { font-size: 15px; }
@media (max-width: 960px) {
  .highlight { flex-basis: 50%; }
  .highlight:nth-child(n) { border-left: 1px solid rgba(255, 255, 255, .45); }
  .highlight:nth-child(odd) { border-left: 0; }
}
@media (max-width: 560px) {
  .highlight { flex-basis: 100%; }
  .highlight:nth-child(n) { border-left: 0; }
}

/* Programmes ------------------------------------------------------------- */
.programmes { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 28px; }
.programme {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 26px 36px;
  background: var(--white); border: 2px solid var(--teal-deep);
  text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.programme:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(4, 101, 127, .14); }
.programme__icon { height: 98px; width: auto; margin-bottom: 12px; }
.programme__title { font-size: 28px; font-weight: 600; }
.programme__age { margin: 4px 0 12px; font-size: 14px; font-style: italic; }
.programme__text { flex: 1; margin-bottom: 22px; font-size: 15px; }
@media (max-width: 900px) { .programmes { grid-template-columns: minmax(0, 360px); } }

/* Carousel --------------------------------------------------------------- */
.carousel { position: relative; background: var(--white); overflow: hidden; }
.carousel__slide { width: 62vw; margin: 0; overflow: hidden; }
.carousel__slide { position: relative; }
.carousel__slide img { width: 100%; height: clamp(300px, 40vw, 620px); object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.carousel__slide.swiper-slide-active img { transform: scale(1); }
/* Dim side slides with a cheap overlay rather than a CSS filter on the photo. */
.carousel__slide::after { content: ""; position: absolute; inset: 0; background: rgba(35, 35, 35, .25); transition: opacity .8s var(--ease); pointer-events: none; }
.carousel__slide.swiper-slide-active::after { opacity: 0; }
.carousel__dots { position: absolute; left: 50% !important; bottom: 20px !important; z-index: 2; display: flex; gap: 8px; width: auto !important; transform: translateX(-50%); }
.carousel__dots .swiper-pagination-bullet, .t-slider__dots .swiper-pagination-bullet {
  width: 10px; height: 10px; margin: 0 !important; border-radius: 10px; opacity: 1;
  background: rgba(255, 255, 255, .75); transition: width .3s var(--ease), background-color .3s;
}
.carousel__dots .swiper-pagination-bullet-active, .t-slider__dots .swiper-pagination-bullet-active { width: 26px; background: var(--teal-soft); }
@media (max-width: 700px) { .carousel__slide { width: 88vw; } }

/* Testimonials ----------------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; align-items: start; gap: 28px; }
.testimonial {
  margin: 0; padding: 36px 28px 30px;
  background: var(--white);
  border: 2px solid var(--teal-deep); border-radius: 26px;
  box-shadow: inset 0 0 0 8px var(--mist);
  text-align: center;
}
.testimonial__title { margin-bottom: 14px; font-size: 20px; font-weight: 600; }
.testimonial__quote { margin: 0; font-size: 15px; }
.testimonial__quote p { margin-bottom: .8em; }
.testimonial__by { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.testimonial__avatar {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px;
  border-radius: 50%; background: var(--mist); color: var(--teal-deep);
  font-family: var(--serif); font-size: 14px;
}
.testimonial__name { font-weight: 600; font-style: italic; color: var(--teal-deep); }
.testimonial__role { font-size: 14px; font-style: italic; }
@media (max-width: 960px) { .testimonials { grid-template-columns: minmax(0, 520px); } }

/* Steps ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; text-align: center; }
.step { position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; right: -36px;
  width: 64px; height: 9px;
  background: url("../img/arrow.webp") center / contain no-repeat;
}
.step__icon { height: 79px; width: auto; margin: 0 auto 20px; }
.step__title { margin-bottom: 10px; font-family: var(--sans); font-size: 19px; font-weight: 600; }
.step p { font-size: 15px; color: var(--teal-deep); }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Enquiry ---------------------------------------------------------------- */
.enquiry { display: grid; grid-template-columns: 1fr 1fr; }
.enquiry__media { position: relative; overflow: hidden; min-height: 720px; background: var(--teal-soft) url("../img/bg-teal-leaves.webp") center / cover; }
/* Student stickers posed like a class photo: back row standing, front row seated */
.enquiry__media .enquiry__kid { position: absolute; }
.enquiry__kid img { filter: drop-shadow(0 14px 22px rgba(35, 35, 35, .25)); }
.enquiry__kid .stud-sticker__doodle--sparkle, .enquiry__kid .stud-sticker__doodle--heart { color: var(--white); }
.enquiry__kid--back-1 { left: 3%; bottom: 17%; width: min(19%, 150px); }
.enquiry__kid--back-2 { left: 27%; bottom: 18%; width: min(18%, 140px); }
.enquiry__kid--back-3 { left: 50%; bottom: 17%; width: min(20%, 160px); }
.enquiry__kid--back-4 { left: 76%; bottom: 17%; width: min(18%, 145px); }
.enquiry__kid--front-1 { left: -1%; bottom: 1%; width: min(33%, 260px); z-index: 2; }
.enquiry__kid--front-2 { left: 31%; bottom: 0; width: min(40%, 310px); z-index: 2; }
.enquiry__kid--front-3 { left: 72%; bottom: 1%; width: min(25%, 200px); z-index: 2; }
.enquiry__kid--back-2 img { animation-delay: -1.5s; }
.enquiry__kid--back-3 img { animation-delay: -3s; }
.enquiry__kid--back-4 img { animation-delay: -4.5s; }
.enquiry__kid--front-2 img { animation-delay: -2.2s; }
.enquiry__kid--front-3 img { animation-delay: -3.8s; }
.enquiry__bubble {
  position: absolute; left: 50%; top: 9%; z-index: 3; margin: 0; padding: 22px 34px; transform: translateX(-50%) rotate(-3deg);
  border-radius: 28px; background: var(--white); box-shadow: 0 18px 40px rgba(35, 35, 35, .18);
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 38px); line-height: 1.2; text-align: center; color: var(--teal-deep); white-space: nowrap;
}
.enquiry__bubble em { color: var(--teal-soft); }
.enquiry__bubble::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 32px; height: 32px; margin-left: -16px; background: var(--white); transform: rotate(45deg); border-radius: 0 0 6px 0; }
.enquiry__content { display: flex; padding: var(--section-y) var(--gutter); background: var(--white) url("../img/bg-floral-faint.webp") center / 600px repeat; }
.enquiry__inner { width: 100%; max-width: 520px; margin: 0 auto; }
.enquiry .section-head { margin-bottom: 32px; }
.enquiry__strip { display: none; }
@media (max-width: 900px) {
  .enquiry { grid-template-columns: 1fr; }
  .enquiry__media { display: none; }
  .enquiry__strip { display: flex; justify-content: center; align-items: flex-end; margin: 0 0 22px; padding-bottom: 6px; border-bottom: 3px solid var(--mist); }
  .enquiry__strip-kid { flex: none; margin: 0 -5px; }
  .enquiry__strip .enquiry__strip-kid img { width: auto; height: clamp(120px, 34vw, 170px); }
  .enquiry__strip-kid:nth-child(2) img { animation-delay: -1.5s; }
  .enquiry__strip-kid:nth-child(3) img { animation-delay: -3s; }
  .enquiry__strip-kid:nth-child(4) img { animation-delay: -4.5s; }
}

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: grid; gap: 6px; min-width: 0; }
.form label { font-size: 14px; font-weight: 600; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid rgba(78, 164, 185, .6); border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 3px var(--mist); }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.form__consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal-deep); flex: none; }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; }
.form__alert { padding: 14px 16px; font-size: 15px; border-left: 4px solid; }
.form__alert--ok { background: var(--mist); border-color: var(--teal-deep); }
.form__alert--error { background: var(--white); border-color: var(--gold); }
.form__captcha { min-height: 78px; }
.form__captcha-msg { margin: -6px 0 0; padding-left: 12px; font-size: 14px; border-left: 3px solid var(--gold); }
@media (max-width: 380px) { .form__captcha { transform: scale(.88); transform-origin: 0 0; min-height: 69px; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { position: relative; padding-top: 72px; background: var(--white); color: var(--teal-deep); font-family: var(--serif); font-size: 14.5px; }
.site-footer a { color: var(--teal-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer .site-logo img { width: 210px; }
.site-footer__tagline { margin: 28px 0 22px; font-size: 18px; font-weight: 600; }
.contact-list { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-top: 1px; color: var(--teal-soft); }
.socials { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.socials img { width: 30px; height: 30px; transition: transform .2s var(--ease); }
.socials a:hover img { transform: translateY(-2px); }
.site-footer__heading { margin-bottom: 20px; font-size: 17px; font-weight: 600; }
.site-footer__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* Footer illustration: full width, with the boy and birds as moving layers.
   Positions are percentages of the 3840x1590 source artwork. */
.scene { position: relative; width: 100%; aspect-ratio: 1920 / 806; margin-top: -2%; overflow: hidden; pointer-events: none; }
.scene__video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* On narrow screens the -2% pull-up lets the video's white sky cover the last footer link. */
@media (max-width: 900px) { .scene { margin-top: 12px; } }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 28px; font-size: 13.5px; }
.site-footer__bottom p { min-width: 0; overflow-wrap: anywhere; }
.site-footer__legal span { margin: 0 8px; }
.site-footer__credit { white-space: nowrap; }
@media (min-width: 901px) {
  .site-footer__bottom p:first-child { flex: 1 1 0; }
  .site-footer__legal { flex: none; display: flex; align-items: center; }
}
@media (max-width: 960px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--teal-deep); color: var(--white); border-radius: 50%;
  box-shadow: 0 10px 28px rgba(4, 101, 127, .35);
  transition: transform .25s var(--ease), background-color .25s;
}
.wa-float:hover { color: var(--white); background: var(--teal-soft); transform: scale(1.06); }
.wa-float .icon { width: 28px; height: 28px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(340px, 42vw, 480px); overflow: hidden; isolation: isolate; color: var(--white); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(4, 101, 127, .94) 0%, rgba(4, 101, 127, .78) 45%, rgba(4, 101, 127, .35) 100%); }
.page-hero__inner { padding-top: 64px; padding-bottom: 56px; }
.page-hero__h1 { color: inherit; }
.page-hero__h1 .eyebrow { display: block; line-height: 1.6; }
.page-hero__title { display: block; max-width: 760px; font-size: clamp(30px, 4.4vw, 50px); color: var(--white); }
.page-hero__intro { max-width: 640px; margin-top: 16px; font-size: 18px; color: var(--mist); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--mist); }
.breadcrumbs a { color: var(--white); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; margin: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 2px solid var(--teal-soft); }
.split--reverse .split__media::before { inset: 18px 18px -18px -18px; }
.split__media { isolation: isolate; }
.split .h2 { margin-bottom: 20px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media::before { display: none; }
}

.check-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { margin-top: 3px; color: var(--teal-soft); }
.check-list--cols { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
.check-list--light .icon { color: var(--mist); }
@media (max-width: 600px) { .check-list--cols { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  position: relative; padding: 32px 28px;
  background: var(--white); border: 1px solid var(--mist);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-3px); border-color: var(--teal-soft); box-shadow: 0 16px 34px rgba(4, 101, 127, .1); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; background: var(--mist); color: var(--teal-deep); }
.card__icon .icon { width: 26px; height: 26px; }
.card__title { margin-bottom: 10px; font-size: 20px; font-weight: 600; }
.card p { font-size: 15.5px; }
.card ul { margin: 12px 0 0; padding-left: 1.1em; font-size: 15.5px; }
.card li + li { margin-top: 4px; }
.card__media { margin: -32px -28px 24px; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card--accent { border-top: 3px solid var(--teal-deep); }

.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.link-card { display: flex; flex-direction: column; background: var(--white); text-decoration: none; color: var(--ink); border: 1px solid var(--mist); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.link-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 36px rgba(4, 101, 127, .14); }
.link-card__media { overflow: hidden; }
.link-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.link-card:hover .link-card__media img { transform: scale(1.04); }
.link-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 24px; }
.link-card__title { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--teal-deep); }
.link-card__text { flex: 1; font-size: 15px; }
.link-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--serif); font-size: 14px; color: var(--teal-deep); }
.link-card__more .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-card:hover .link-card__more .icon { transform: translateX(4px); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); color: var(--teal-deep); line-height: 1.1; }
.stat__label { font-size: 15px; }

.band { background: var(--teal-deep); color: var(--white); }
.band .h2, .band h3 { color: var(--white); }
.band a:not(.btn) { color: var(--white); }

.timeline { position: relative; display: grid; gap: 36px; margin: 0; padding: 0 0 0 36px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--mist); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal-soft); }
.timeline__year { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 22px; color: var(--teal-deep); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--mist); border: 1px solid var(--mist); }
.value { padding: 28px 24px; background: var(--white); }
.value__title { margin-bottom: 8px; font-family: var(--serif); font-size: 19px; color: var(--teal-deep); }
.value p { font-size: 15px; }
@media (max-width: 800px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

.theme-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.theme-chips li { padding: 10px 18px; font-family: var(--serif); font-size: 15px; background: var(--white); border: 1px solid var(--teal-soft); color: var(--teal-deep); }

.subject-table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--white); }
.subject-table caption { padding-bottom: 12px; text-align: left; font-family: var(--serif); font-size: 20px; color: var(--teal-deep); }
.subject-table th, .subject-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--mist); vertical-align: top; }
.subject-table th { background: var(--teal-deep); color: var(--white); font-family: var(--serif); font-weight: 400; }
.table-wrap { overflow-x: auto; }

.accordion { border-top: 1px solid var(--mist); }
.accordion details { border-bottom: 1px solid var(--mist); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 18px; color: var(--teal-deep);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .25s var(--ease); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion__body { padding: 0 0 22px; }
.accordion__group + .accordion__group { margin-top: 48px; }
.accordion__group-title { margin-bottom: 12px; font-size: 22px; font-weight: 600; }

.notice { display: flex; gap: 16px; padding: 24px 26px; background: var(--mist); border-left: 4px solid var(--teal-deep); }
.notice__icon { width: 28px; height: 28px; color: var(--teal-deep); }
.notice__title { font-family: var(--serif); font-size: 18px; color: var(--teal-deep); margin-bottom: 6px; }

.status { display: inline-block; padding: 3px 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.status--running { background: var(--teal-deep); color: var(--white); }
.status--planned { background: var(--mist); color: var(--teal-deep); }

.pull-quote { max-width: 860px; margin: 0 auto; text-align: center; }
.pull-quote blockquote { margin: 0; }
.pull-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 15px; }

.process { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.process li { counter-increment: step; position: relative; padding: 28px 20px 24px; background: var(--white); border: 1px solid var(--mist); }
.process li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--serif); font-size: 28px; color: var(--teal-soft); }
.process h3 { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.process p { font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery__item { position: relative; margin: 0; overflow: hidden; background: var(--mist); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: 14px; color: var(--white); background: linear-gradient(transparent, rgba(35, 35, 35, .7)); }
.gallery__item .render-label { top: 10px; bottom: auto; }
.gallery--wide .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--wide .gallery__item:first-child img { height: 100%; }
@media (max-width: 600px) { .gallery--wide .gallery__item:first-child { grid-column: auto; grid-row: auto; } }

.facility { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 40px 0; border-bottom: 1px solid var(--mist); }
.facility:nth-child(even) .facility__media { order: 2; }
.facility__media { position: relative; margin: 0; }
.facility__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.facility__title { margin: 10px 0 12px; font-size: 24px; font-weight: 600; }
@media (max-width: 860px) { .facility { grid-template-columns: 1fr; } .facility:nth-child(even) .facility__media { order: 0; } }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.contact-card { padding: 28px 24px; background: var(--white); border: 1px solid var(--mist); text-align: center; }
.contact-card .card__icon { margin: 0 auto 16px; }
.contact-card__label { font-family: var(--serif); font-size: 18px; color: var(--teal-deep); margin-bottom: 6px; }
.map { width: 100%; height: 420px; border: 0; display: block; }

.cta-band { padding: clamp(64px, 8vw, 96px) 0; background: var(--teal-deep) url("../img/bg-teal-leaves.webp") center / cover; color: var(--white); text-align: center; position: relative; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(4, 101, 127, .82); }
.cta-band__inner { max-width: 820px; }
.cta-band__text { margin-top: 14px; color: var(--mist); }
.cta-band .btn-row { justify-content: center; }

.legal h2 { margin: 2.2em 0 .6em; font-size: 26px; font-weight: 600; }
.legal h3 { margin: 1.6em 0 .5em; font-size: 19px; font-weight: 600; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.legal-toc a { display: block; padding: 8px 16px; border: 1px solid var(--teal-soft); text-decoration: none; font-family: var(--serif); font-size: 14px; }

.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* ==========================================================================
   Amendment one: storytelling layouts, sliders and motion
   ========================================================================== */
.icon--flip { transform: scaleX(-1); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--serif); font-size: 15px; text-decoration: none; color: var(--teal-deep); }
.text-link .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(5px); }

.round-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  background: var(--white); border: 1px solid var(--teal-soft); border-radius: 50%;
  color: var(--teal-deep); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.round-btn:hover { background: var(--teal-deep); color: var(--white); }
.round-btn:active { transform: scale(.94); }
.round-btn[disabled], .round-btn.swiper-button-disabled { opacity: .35; pointer-events: none; }
.round-btn--light { background: rgba(255, 255, 255, .9); border-color: transparent; }
.round-btn--small { width: 34px; height: 34px; }
.round-btn--small .icon { width: 16px; height: 16px; }

/* Script word watermark (Governor's Mansion "Discover", "Legacy") */
.script-word {
  position: absolute; top: 40px; left: -2%; z-index: 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(90px, 15vw, 230px); line-height: 1; white-space: nowrap;
  color: var(--mist); opacity: .75; pointer-events: none; user-select: none;
}
.script-word--right { left: auto; right: -2%; }
.story-intro { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 130px) 0 var(--section-y); }
.story-intro__inner { position: relative; z-index: 1; text-align: center; }
.story-intro--left .container { position: relative; z-index: 1; }
.story-intro__cols { margin-top: 28px; text-align: left; }
.display-title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.15; font-weight: 400; }
.display-title .w { display: inline-block; }
.title-rule { display: block; width: 64px; height: 1px; margin: 26px auto; background: var(--gold); }
.story-intro .lead { margin-top: 18px; }

.stack-photos { position: relative; min-height: 520px; }
.stack-photos img { position: absolute; object-fit: cover; box-shadow: 0 24px 50px rgba(35, 35, 35, .16); }
.stack-photos__a { right: 0; top: 0; width: 62%; aspect-ratio: 3 / 4; }
.stack-photos__b { left: 0; bottom: -20px; width: 46%; aspect-ratio: 3 / 4; border: 8px solid var(--white); }
@media (max-width: 900px) { .stack-photos { min-height: 420px; margin-top: 24px; } }

/* Story milestones */
.story { overflow: hidden; }
.story .container { position: relative; z-index: 1; }
.milestone { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding: 40px 0 70px; }
.milestone--flip .milestone__media { order: 2; }
.milestone__media { position: relative; min-height: 460px; }
.milestone__photo { position: absolute; object-fit: cover; box-shadow: 0 24px 50px rgba(35, 35, 35, .15); }
.milestone__photo--main { left: 0; top: 0; width: 72%; aspect-ratio: 4 / 3; }
.milestone__photo--small { right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border: 8px solid var(--white); }
.milestone--flip .milestone__photo--main { left: auto; right: 0; }
.milestone--flip .milestone__photo--small { right: auto; left: 0; }
.milestone__year { display: block; margin-bottom: 8px; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 4vw, 52px); color: var(--teal-soft); line-height: 1.1; }
.milestone .h2 { margin-bottom: 14px; }
@media (max-width: 860px) {
  .milestone { grid-template-columns: 1fr; padding-bottom: 40px; }
  .milestone--flip .milestone__media { order: 0; }
  .milestone__media { min-height: 360px; }
}

/* Collage: centre image grows to fill the screen while pinned */
.collage { position: relative; height: 260vh; background: var(--white); }
.collage__stage { position: sticky; top: 0; height: 100vh; padding-top: var(--header-h); overflow: hidden; display: grid; place-items: center; }
.collage__grid { position: relative; width: calc(100% - 20px); height: calc(100vh - var(--header-h) - 20px); }
.collage__item { position: absolute; margin: 0; overflow: hidden; }
.collage__item img { width: 100%; height: 100%; object-fit: cover; }
.collage__item--hero { z-index: 2; transform-origin: 50% 50%; }
.collage__caption {
  position: absolute; left: 50%; bottom: 7vh; z-index: 3; margin: 0; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 40px); color: var(--white);
  text-shadow: 0 2px 20px rgba(35, 35, 35, .5); opacity: 0; white-space: nowrap;
}
.collage__cue {
  position: absolute; left: 50%; bottom: calc(24vh + 18px); z-index: 3; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--teal-deep); box-shadow: 0 6px 24px rgba(35, 35, 35, .18);
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
}
.collage__cue svg { width: 18px; height: 18px; animation: cue-bob 1.6s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .collage__cue svg { animation: none; } }
@media (max-width: 700px) {
  .collage__cue { display: none; }
  .collage { height: auto; }
  .collage__stage { position: static; height: auto; padding: 40px 0; }
  .collage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: auto; }
  .collage__item { position: static; width: auto !important; height: 160px !important; }
  .collage__item:nth-child(n+8) { display: none; }
  .collage__item--hero { grid-column: 1 / -1; height: 220px !important; }
  .collage__caption { position: static; transform: none; opacity: 1; color: var(--teal-deep); text-shadow: none; white-space: normal; text-align: center; padding: 20px; }
}

/* Vision */
.vision { position: relative; overflow: hidden; }
.vision .container { position: relative; z-index: 1; }
.vision__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.vision__quote { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.4; color: var(--teal-deep); }
.vision__item + .vision__item { padding-left: clamp(24px, 4vw, 60px); border-left: 1px solid var(--gold); }
@media (max-width: 800px) {
  .vision__grid { grid-template-columns: 1fr; }
  .vision__item + .vision__item { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--gold); }
}
.value__num { display: block; margin-bottom: 10px; font-family: var(--serif); font-size: 14px; color: var(--gold); }

/* Founder letter */
.founder { position: relative; overflow: hidden; padding: var(--section-y) 0; background: var(--white) url("../img/bg-leaves-white.webp") center / cover; }
.founder__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.founder__media { position: relative; min-height: 600px; }
.founder__photo { position: absolute; left: 0; top: 0; width: 76%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 24px 50px rgba(35, 35, 35, .16); }
.founder__photo--small { left: auto; top: auto; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; border: 8px solid var(--white); }
.founder__letter .h2 { margin-bottom: 20px; }
.founder__letter p { font-size: 16px; }
@media (max-width: 900px) { .founder__grid { grid-template-columns: 1fr; } .founder__media { min-height: 460px; } }

/* Photo cards */
.photo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.photo-cards--3 { grid-template-columns: repeat(3, 1fr); }
.two-col .photo-card { height: 100%; }
.photo-card { display: flex; flex-direction: column; background: var(--white); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.photo-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(4, 101, 127, .14); }
.photo-card__media { overflow: hidden; aspect-ratio: 4 / 3; }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo-card:hover .photo-card__media img { transform: scale(1.05); }
.photo-card__body { padding: 22px 22px 26px; }
.photo-card__body p { font-size: 15px; }
@media (max-width: 1000px) { .photo-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-cards, .photo-cards--3 { grid-template-columns: 1fr; } }

/* Testimonial slider (Tenby) */
.t-slider { max-width: 1080px; margin: 0 auto; }
/* Video testimonials: two portrait videos in one row, above the slider. */
.t-videos { display: flex; justify-content: center; align-items: flex-start; gap: 28px; max-width: 1080px; margin: 0 auto 48px; }
.t-videos__item { flex: 0 1 340px; min-width: 0; }
.t-videos video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; border-radius: 18px; object-fit: contain; box-shadow: 0 10px 30px rgba(4, 101, 127, .18); }
@media (max-width: 560px) { .t-videos { gap: 12px; } }
.t-slide { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin: 0; padding: 8px; }
.t-slide__photo { position: relative; aspect-ratio: 4 / 3; border-radius: 240px 240px 18px 18px; overflow: hidden; box-shadow: 0 20px 44px rgba(4, 101, 127, .18); }
.t-slide__photo::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 230px 230px 12px 12px; pointer-events: none; }
.t-slide__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.swiper-slide-active .t-slide__photo img { transform: scale(1); }
.t-slide__body { position: relative; padding: 36px 34px; background: var(--white); border-radius: 18px; }
.t-slide__mark { width: 44px; height: 34px; color: var(--gold); margin-bottom: 12px; }
.t-slide__title { margin-bottom: 12px; font-size: 22px; font-weight: 600; }
.t-slide__quote { margin: 0 0 18px; font-size: 15.5px; max-height: 300px; overflow-y: auto; padding-right: 6px; }
.t-slide__quote p { margin-bottom: .8em; }
.t-slide__name { display: block; font-family: var(--serif); font-weight: 600; color: var(--teal-deep); }
.t-slide__role { display: block; font-size: 14px; font-style: italic; }
.t-slider__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.t-slider__dots { display: flex; gap: 8px; width: auto !important; }
.t-slider__dots .swiper-pagination-bullet { background: rgba(4, 101, 127, .25); }
@media (max-width: 800px) { .t-slide { grid-template-columns: 1fr; } .t-slide__body { padding: 26px 22px; } }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.t-card { margin: 0; background: var(--white); border: 1px solid var(--mist); overflow: hidden; border-radius: 18px; }
.t-card__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.t-card__body { padding: 24px; }

/* Le Saint Georges: photo slider with an overlapping text card */
.lsg { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; }
.lsg + .lsg { margin-top: clamp(60px, 8vw, 110px); }
.lsg__media { grid-column: 1; grid-row: 1; position: relative; min-width: 0; }
.lsg__media .swiper { aspect-ratio: 4 / 3; }
.lsg__media .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Both arrows sit together in the corner the text card never covers. */
.lsg__prev, .lsg__next { position: absolute; bottom: 16px; z-index: 3; }
.lsg__prev { left: 16px; }
.lsg__next { left: 72px; }
.lsg--text-left .lsg__prev { left: auto; right: 72px; }
.lsg--text-left .lsg__next { left: auto; right: 16px; }
@media (max-width: 900px) {
  .lsg__prev, .lsg__next { bottom: auto; top: 16px; }
}
.lsg__card {
  grid-column: 2; grid-row: 1; position: relative; z-index: 2;
  margin-left: -80px; padding: clamp(28px, 4vw, 52px);
  background: var(--white); box-shadow: 0 24px 60px rgba(4, 101, 127, .12);
}
.section:not(.section--mist) .lsg__card { background: var(--mist); box-shadow: none; }
.lsg__title { margin-bottom: 16px; }
.lsg__body p { font-size: 16px; }
.lsg__card .status { margin-bottom: 12px; }
.lsg--text-left { grid-template-columns: 1fr 1.35fr; }
.lsg--text-left .lsg__media { grid-column: 2; }
.lsg--text-left .lsg__card { grid-column: 1; margin-left: 0; margin-right: -80px; }
@media (max-width: 900px) {
  .lsg, .lsg--text-left { grid-template-columns: 1fr; }
  .lsg__media, .lsg--text-left .lsg__media { grid-column: 1; grid-row: 1; }
  .lsg__card, .lsg--text-left .lsg__card { grid-column: 1; grid-row: 2; margin: -40px 16px 0; }
}

/* Academics sub-menu (sticky, Tenby yellow bar in brand colours) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--mist); border-bottom: 1px solid rgba(78, 164, 185, .35); }
.subnav__inner { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 0; font-family: var(--serif); font-size: 14px; color: var(--teal-deep); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-current { border-color: var(--teal-deep); }

/* Tabs */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tabs__tab {
  padding: 9px 18px; font: inherit; font-family: var(--serif); font-size: 14px;
  background: var(--white); color: var(--teal-deep); border: 1px solid var(--teal-soft); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tabs__tab:hover { background: var(--mist); }
.tabs__tab[aria-selected="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.tabs__panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: center; animation: tab-in .6s var(--ease); }
.tabs__panel[hidden] { display: none; }
.tabs__title { margin-bottom: 14px; font-size: clamp(26px, 3vw, 36px); }
.tabs__text p { font-size: 17px; }
.tabs__media { overflow: hidden; aspect-ratio: 16 / 10; }
.tabs__media img { width: 100%; height: 100%; object-fit: cover; }
.tabs__panel--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
@keyframes tab-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 800px) { .tabs__panel { grid-template-columns: 1fr; } .tabs__media { order: -1; } }
.subject-card { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--mist); }
.subject-card img { width: 110px; height: 110px; object-fit: cover; }
.subject-card__title { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.subject-card p { font-size: 14.5px; }

/* A typical day */
.day__card { height: auto; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--mist); }
.day__media { overflow: hidden; aspect-ratio: 16 / 11; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.day__media img { width: 100%; height: 100%; object-fit: cover; }
.day__body { padding: 8px 22px 26px; }
.day__time { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--teal-soft); }
.day__time .icon { width: 16px; height: 16px; }
.day__title { margin-bottom: 8px; font-size: 19px; font-weight: 600; }
.day__body p:last-child { font-size: 15px; }
.swiper-progress { position: relative; width: min(320px, 50vw); height: 3px; background: rgba(4, 101, 127, .15); }
.swiper-progress .swiper-pagination-progressbar-fill { background: var(--teal-deep); }

/* Journey timeline */
.journey { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin: 0; padding: 36px 0 0; list-style: none; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--teal-soft) var(--journey-progress, 0%), rgba(78, 164, 185, .2) 0); }
.journey__stage { position: relative; padding: 24px 22px 26px; background: var(--white); border-top: 3px solid var(--teal-deep); }
.journey__dot { position: absolute; left: 22px; top: -36px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 4px solid var(--gold); }
.journey__label { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-soft); }
.journey__title { margin-bottom: 8px; font-size: 21px; font-weight: 600; }
.journey__stage p:not(.journey__label) { font-size: 15px; }
.journey .text-link { margin-top: 10px; font-size: 14px; }
.section--mist .journey__stage { background: var(--white); }
.section:not(.section--mist) .journey__stage { background: var(--mist); }

/* Related cards */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.related__card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; color: var(--teal-deep); text-decoration: none; }
.related__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.related__card:hover img { transform: scale(1.06); }
.related__label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 12px 12px 16px; background: var(--white);
  font-family: var(--serif); font-size: 16px; font-weight: 600;
}
.related__card:hover .round-btn { background: var(--teal-deep); color: var(--white); }

/* Entry requirements */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.entry-card { padding: 28px 24px; background: var(--white); border: 1px solid var(--mist); border-top: 3px solid var(--gold); }
.entry-card__uni { margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-soft); }
.entry-card__course { margin-bottom: 14px; font-size: 19px; font-weight: 600; }
.entry-card__req { display: flex; gap: 8px; font-size: 15px; }
.entry-card__req .icon { margin-top: 3px; color: var(--teal-soft); }

/* Gallery filter + masonry */
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter__btn { padding: 8px 16px; font: inherit; font-size: 14px; background: var(--white); color: var(--teal-deep); border: 1px solid var(--teal-soft); border-radius: 30px; cursor: pointer; transition: background-color .25s, color .25s; }
.filter__btn:hover { background: var(--mist); }
.filter__btn.is-active { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry__item { position: relative; margin: 0 0 16px; break-inside: avoid; overflow: hidden; background: var(--mist); }
.masonry__item img, .masonry__item video { width: 100%; display: block; transition: transform 1s var(--ease); }
.masonry__item:hover img { transform: scale(1.04); }
.masonry__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 13px; color: var(--white); background: linear-gradient(transparent, rgba(35, 35, 35, .6)); opacity: 0; transition: opacity .3s; }
.masonry__item:hover figcaption { opacity: 1; }
.masonry__item.is-hidden { display: none; }

/* ==========================================================================
   Amendment two
   ========================================================================== */

/* Admissions CTA: teal panel, marquee, buttons as big tiles, tilted photos */
.cta2 { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 100px) 0; background: var(--teal-deep); color: var(--white); isolation: isolate; }
.cta2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/bg-teal-leaves.webp") center / cover; opacity: .18; }
.cta2::after { content: ""; position: absolute; right: -160px; bottom: -160px; z-index: -1; width: 480px; height: 480px; border: 2px solid var(--gold); border-radius: 50%; opacity: .5; }
.cta2__marquee { overflow: hidden; padding: 18px 0; margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(255, 255, 255, .15); background: var(--teal-soft); }
.cta2__marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.cta2__marquee span { padding: 0 28px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); color: var(--white); white-space: nowrap; }
.cta2__marquee span::after { content: "✦"; margin-left: 56px; font-style: normal; font-size: .6em; color: var(--gold); vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
.cta2__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cta2__title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.1; color: var(--white); }
.cta2__lead { margin: 18px 0 30px; max-width: 520px; font-size: 18px; color: var(--mist); }
.cta2__links { display: grid; gap: 12px; max-width: 520px; }
.cta2__link {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25);
  color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 18px;
  transition: background-color .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.cta2__link:hover { background: var(--white); color: var(--teal-deep); border-color: var(--white); transform: translateX(6px); }
.cta2__link--main { background: var(--white); color: var(--teal-deep); border-color: var(--white); }
.cta2__link--main:hover { background: var(--mist); }
.cta2__link-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--gold); color: var(--white); }
.cta2__link-label { flex: 1; }
.cta2__link-arrow { transition: transform .3s var(--ease); }
.cta2__link:hover .cta2__link-arrow { transform: translateX(6px); }
.cta2__photos { position: relative; min-height: 440px; }
.cta2__photo { position: absolute; object-fit: cover; border: 8px solid var(--white); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.cta2__photo--0 { left: 0; top: 30px; width: 52%; aspect-ratio: 4 / 5; transform: rotate(-5deg); }
.cta2__photo--1 { right: 0; top: 0; width: 48%; aspect-ratio: 3 / 4; transform: rotate(4deg); }
.cta2__photo--2 { left: 26%; bottom: 0; width: 46%; aspect-ratio: 4 / 3; transform: rotate(-2deg); z-index: 1; }
.cta2__badge { position: absolute; right: 8%; bottom: 14%; z-index: 2; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: var(--gold); color: var(--white); text-align: center; font-size: 13px; line-height: 1.2; animation: badge-spin 12s ease-in-out infinite alternate; }
.cta2__badge strong { display: block; font-family: var(--serif); font-size: 20px; }
@keyframes badge-spin { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@media (max-width: 900px) { .cta2__grid { grid-template-columns: 1fr; } .cta2__photos { min-height: 340px; } }

/* Self-drawing sketch icons */
.sketch { position: relative; display: inline-block; margin: 0 auto 18px; line-height: 0; }
.sketch img { display: block; height: 100%; width: auto; }
.sketch__pencil { position: absolute; left: 0; top: 40%; width: 34px; height: 34px; opacity: 0; pointer-events: none; }
.highlight .sketch { height: 120px; }
.programme .sketch { height: 130px; }
.step .sketch { height: 120px; }

/* Home crest: larger, framed by two floating photos */
.quote-frame { position: relative; overflow: hidden; }
.quote-frame__crest { width: min(580px, 100%); }
.quote-frame__side { position: absolute; width: clamp(120px, 12vw, 190px); aspect-ratio: 3 / 4; object-fit: cover; border: 7px solid var(--white); box-shadow: 0 24px 50px rgba(4, 101, 127, .18); }
.quote-frame__side--l1 { left: 4%; top: 7%; transform: rotate(-6deg); }
.quote-frame__side--l2 { left: 15%; top: 36%; width: clamp(110px, 10vw, 165px); transform: rotate(5deg); z-index: 1; }
.quote-frame__side--l3 { left: 5%; top: 62%; width: clamp(110px, 10vw, 160px); transform: rotate(-3deg); }
.quote-frame__side--r1 { right: 5%; top: 6%; width: clamp(110px, 11vw, 175px); transform: rotate(6deg); }
.quote-frame__side--r2 { right: 15%; top: 34%; transform: rotate(-4deg); z-index: 1; }
.quote-frame__side--r3 { right: 4%; top: 63%; width: clamp(110px, 10vw, 160px); transform: rotate(4deg); }
@media (max-width: 1280px) { .quote-frame__side--l2, .quote-frame__side--r2 { display: none; } }
@media (max-width: 1000px) { .quote-frame__side { display: none; } }

/* Testimonials: rectangular photos with an offset gold frame, family thumbnails */
.t-slide__photo { border-radius: 14px; overflow: visible; box-shadow: none; aspect-ratio: 4 / 3; }
.t-slide__photo::after { display: none; }
.t-slide__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 14px; z-index: -1; }
.t-slide__photo { position: relative; isolation: isolate; }
.t-slide__photo img { border-radius: 14px; box-shadow: 0 20px 44px rgba(4, 101, 127, .18); }
.t-thumbs { display: flex; gap: 10px; }
.t-thumb { width: 52px; height: 52px; padding: 0; border: 3px solid transparent; border-radius: 50%; overflow: hidden; background: var(--white); cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s, transform .3s var(--ease); }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-thumb:hover { opacity: 1; }
.t-thumb.is-active { opacity: 1; border-color: var(--teal-deep); transform: scale(1.1); }
@media (max-width: 500px) { .t-thumb { width: 40px; height: 40px; } }

/* Core values with photos */
.values--photo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; background: none; border: 0; }
.value-card { background: var(--white); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.value-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(4, 101, 127, .15); }
.value-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.value-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.value-card:hover .value-card__media img { transform: scale(1.06); }
.value-card__body { position: relative; }
.value-card__num { position: absolute; left: 20px; top: -24px; z-index: 1; box-shadow: 0 6px 14px rgba(35, 35, 35, .15); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--white); font-family: var(--serif); font-size: 15px; }
.value-card__body { padding: 32px 24px 26px; }
.value-card__title { margin-bottom: 8px; font-size: 22px; font-weight: 600; }
.value-card p { font-size: 15px; }
/* Five values: three on top, two wider cards below */
@media (min-width: 861px) { .values--photo { grid-template-columns: repeat(6, 1fr); } .values--photo > * { grid-column: span 2; } .values--photo > :nth-child(n+4) { grid-column: span 3; } }
@media (max-width: 860px) { .values--photo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values--photo { grid-template-columns: 1fr; } }

.brand-close__tagline { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .35em; margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: clamp(44px, 7vw, 96px); line-height: 1.1; color: var(--white); }
.brand-close__tagline span:nth-child(2) { color: var(--mist); }
.brand-close__tagline span:nth-child(3) { color: var(--gold); }

/* Academics sub-menu: a bold teal bar with icon pills */
.subnav { background: var(--teal-deep); border-bottom: 0; box-shadow: 0 8px 24px rgba(4, 101, 127, .18); }
.subnav__inner { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
/* One line: centred on desktop, swipeable on smaller screens. */
@media (min-width: 1000px) { .subnav__inner { justify-content: center; } }
.subnav__inner { flex-wrap: nowrap; }
.subnav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 40px;
  color: var(--white); font-size: 14px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s;
}
.subnav a .icon { width: 17px; height: 17px; color: var(--gold); }
.subnav a:hover { background: rgba(255, 255, 255, .14); border-color: var(--white); }
.subnav a.is-current { background: var(--white); color: var(--teal-deep); border-color: var(--white); font-weight: 600; }
.subnav a.is-current .icon { color: var(--teal-soft); }

/* Subject tab focus points */
.tabs__focus-label { margin: 22px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-soft); }
.tabs__text .check-list { margin-top: 8px; gap: 8px; }
.tabs__text .check-list li { font-size: 15px; }
.tabs__text p { font-size: 16.5px; }
.tabs__media { aspect-ratio: 4 / 3; }

/* Journey stages with photos */
.journey__media { margin: -24px -22px 18px; aspect-ratio: 16 / 10; overflow: hidden; }
.journey__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.journey__stage--photo:hover .journey__media img { transform: scale(1.06); }
.journey__stage { overflow: visible; }
.journey__stage--photo { padding-top: 24px; }

/* Entry requirements over a graduation photo */
.entry-hero { position: relative; overflow: hidden; padding: var(--section-y) 0; isolation: isolate; color: var(--white); }
.entry-hero__bg { position: absolute; inset: -10% 0; z-index: -2; width: 100%; height: 120%; object-fit: cover; }
.entry-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 101, 127, .92), rgba(4, 101, 127, .8)); }
.entry2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.entry2__card { position: relative; padding: 30px 24px 26px; background: var(--white); color: var(--ink); text-align: center; border-bottom: 4px solid var(--gold); transition: transform .4s var(--ease); }
.entry2__card:hover { transform: translateY(-6px); }
.entry2__art { display: grid; place-items: center; width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%; background: var(--mist); color: var(--teal-deep); }
.field-art { width: 74px; height: 74px; }
.entry2__logo { display: grid; place-items: center; height: 110px; margin: 0 auto 16px; padding: 10px; border-bottom: 1px solid var(--mist); }
.entry2__logo img { max-height: 76px; max-width: 100%; width: auto; object-fit: contain; }
.entry2__uni { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.entry2__course { margin-bottom: 14px; font-size: 19px; font-weight: 600; }
.entry2__req { font-size: 15px; }
.entry2__req span { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-soft); }
@media (max-width: 1000px) { .entry2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .entry2 { grid-template-columns: 1fr; } }

/* Academic Subjects: large photo cards */
.tabs__panel--grid { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.subject-card2 { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--mist); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.subject-card2:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(4, 101, 127, .14); }
.subject-card2__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.subject-card2__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.subject-card2:hover .subject-card2__media img { transform: scale(1.06); }
.subject-card2__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(4, 101, 127, .9)); }
.subject-card2__title { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; font-size: 22px; font-weight: 600; color: var(--white); }
.subject-card2__body { padding: 20px 22px 24px; }
.subject-card2__body p { font-size: 15px; }
.subject-card2__focus { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.subject-card2__focus li { padding: 4px 10px; font-size: 12.5px; background: var(--mist); color: var(--teal-deep); border-radius: 20px; }
@media (max-width: 1000px) { .tabs__panel--grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tabs__panel--grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Playful components (Beyond Academics, Student Life)
   ========================================================================== */
.doodles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.doodle { position: absolute; height: auto; transform: rotate(var(--r)); animation: doodle-float 7s ease-in-out infinite; animation-delay: var(--delay); opacity: .55; }
.doodle--gold { color: var(--gold); }
.doodle--soft { color: var(--teal-soft); }
.doodle--deep { color: var(--teal-deep); opacity: .3; }
.colour-band--deep .doodle--deep { color: var(--white); opacity: .2; }
@keyframes doodle-float { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(calc(var(--r) + 8deg)) translateY(-12px); } }
.fun-bg { position: relative; overflow: hidden; }
.fun-bg > .container { position: relative; z-index: 1; }
.title-rule--left { margin-left: 0; }

/* Intro with tilted photos */
.fun-hero { position: relative; overflow: hidden; padding: clamp(70px, 9vw, 120px) 0; background: var(--white); }
.fun-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.fun-hero__photos { position: relative; min-height: 520px; }
.polaroid { margin: 0; padding: 10px 10px 14px; background: var(--white); box-shadow: 0 22px 50px rgba(35, 35, 35, .16); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.fun-hero__photos .polaroid { position: absolute; }
.polaroid--0 { left: 0; top: 40px; width: 52%; aspect-ratio: 4 / 5; transform: rotate(-6deg); }
.polaroid--1 { right: 0; top: 0; width: 50%; aspect-ratio: 1; transform: rotate(5deg); }
.polaroid--2 { left: 28%; bottom: 0; width: 50%; aspect-ratio: 4 / 3; transform: rotate(-2deg); z-index: 2; }
.fun-hero__photos .polaroid img { height: calc(100% - 4px); }
@media (max-width: 900px) { .fun-hero__grid { grid-template-columns: 1fr; } .fun-hero__photos { min-height: 380px; } }

/* Bento mosaic */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; }
.bento__tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 22px; text-decoration: none; border-radius: 18px; }
.bento__tile--big { grid-column: span 2; grid-row: span 2; }
.bento__tile--tall { grid-row: span 2; }
.bento__tile--wide { grid-column: span 2; }
.bento__tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.bento__tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4, 101, 127, .92)); }
.bento__tile--photo:hover img { transform: scale(1.07); }
.bento__label { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 12px; color: var(--white); }
.bento__title { flex: 1 1 100%; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.bento__tile--big .bento__title { font-size: clamp(24px, 2.6vw, 32px); }
.bento__text { flex: 1; font-size: 14.5px; opacity: .92; }
.bento__label .round-btn { background: var(--white); color: var(--teal-deep); border: 0; }
.bento__tile--colour { justify-content: space-between; color: var(--white); transition: transform .4s var(--ease); }
.bento__tile--colour:hover { transform: translateY(-4px) rotate(-1deg); }
.bento__tile--colour .bento__title { flex: 0; font-size: 20px; }
.bento__tile--colour .bento__text { flex: 0; font-size: 14px; }
.bento__tile--deep { background: var(--teal-deep); }
.bento__tile--soft { background: var(--teal-soft); }
.bento__tile--gold { background: var(--gold); }
.bento__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.bento__icon .icon { width: 46px; height: 46px; stroke-width: 1.4; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; } .bento__tile--big, .bento__tile--wide { grid-column: auto; } .bento__tile--big { grid-row: span 1; } }

/* Stroke-draw icons */
.js .draw path, .js .draw circle, .js .draw rect, .js .draw ellipse { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.js .is-visible .draw path, .js .is-visible .draw circle, .js .is-visible .draw rect, .js .is-visible .draw ellipse { stroke-dashoffset: 0; }

/* Icon tiles */
.icon-tiles { display: grid; gap: 18px; }
.icon-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.icon-tiles--4 { grid-template-columns: repeat(4, 1fr); }
.icon-tile { padding: 30px 26px; border-radius: 18px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.icon-tile:hover { transform: translateY(-5px) rotate(-.8deg); box-shadow: 0 20px 40px rgba(4, 101, 127, .18); }
.icon-tile__icon { display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 18px; border-radius: 22px; }
.icon-tile__icon .icon { width: 42px; height: 42px; stroke-width: 1.4; }
.icon-tile:hover .icon-tile__icon { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } }
.icon-tile__title { margin-bottom: 8px; font-size: 20px; font-weight: 600; }
.icon-tile p { font-size: 15px; }
.icon-tile--deep { background: var(--teal-deep); color: var(--white); }
.icon-tile--deep .icon-tile__title { color: var(--white); }
.icon-tile--deep .icon-tile__icon { background: rgba(255, 255, 255, .15); color: var(--gold); }
.icon-tile--soft { background: var(--teal-soft); color: var(--ink); }
.icon-tile--soft .icon-tile__title { color: var(--white); }
.icon-tile--soft .icon-tile__icon { background: var(--white); color: var(--teal-deep); }
.icon-tile--gold { background: var(--gold); color: var(--ink); }
.icon-tile--gold .icon-tile__title { color: var(--white); }
.icon-tile--gold .icon-tile__icon { background: var(--white); color: var(--gold); }
.icon-tile--mist { background: var(--mist); }
.icon-tile--mist .icon-tile__icon { background: var(--white); color: var(--teal-deep); }
.icon-tile--white { background: var(--white); border: 2px solid var(--mist); }
.icon-tile--white .icon-tile__icon { background: var(--mist); color: var(--teal-deep); }
.icon-tiles--4 .icon-tile__title { font-size: 18px; }
@media (max-width: 1000px) { .icon-tiles--3, .icon-tiles--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .icon-tiles--3, .icon-tiles--4 { grid-template-columns: 1fr; } }

/* Story rows with organic photo shapes */
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.story-row + .story-row { margin-top: clamp(70px, 9vw, 120px); }
.story-row--flip .story-row__media { order: 2; }
.story-row__media { position: relative; padding: 0 40px 40px 0; }
.story-row--flip .story-row__media { padding: 0 0 40px 40px; }
.story-row__main { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.story-row__small { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid var(--white); box-shadow: 0 18px 40px rgba(4, 101, 127, .2); }
.story-row--flip .story-row__small { right: auto; left: 0; }
.section--mist .story-row__small { border-color: var(--mist); }
.story-row__text .h2 { margin-bottom: 16px; }
.story-row__text .status { margin-bottom: 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chip-list li { padding: 7px 14px; border-radius: 30px; background: var(--mist); color: var(--teal-deep); font-size: 14px; }
.section--mist .chip-list li { background: var(--white); }
@media (max-width: 860px) { .story-row { grid-template-columns: 1fr; } .story-row--flip .story-row__media { order: 0; } }

/* Polaroid wall */
.polaroid-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 22px; }
.polaroid--wall { width: clamp(200px, 21vw, 260px); transform: rotate(var(--tilt)); transition: transform .5s var(--ease), box-shadow .5s; }
.polaroid--wall img { aspect-ratio: 1; height: auto; }
.polaroid--wall figcaption { padding-top: 10px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--teal-deep); }
.polaroid--wall:hover { transform: rotate(0) scale(1.05); box-shadow: 0 30px 60px rgba(35, 35, 35, .22); z-index: 2; }

/* Endless photo strip */
.photo-strip { overflow: hidden; padding: 30px 0; background: var(--white); }
.photo-strip__track { display: flex; gap: 16px; width: max-content; animation: marquee 50s linear infinite; }
.photo-strip:hover .photo-strip__track { animation-play-state: paused; }
.photo-strip img { width: 300px; height: 220px; object-fit: cover; border-radius: 14px; }
.photo-strip img:nth-child(odd) { transform: rotate(-2deg); }
.photo-strip img:nth-child(even) { transform: rotate(2deg) translateY(10px); }

/* Full-bleed colour band */
.colour-band { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; padding: var(--section-y) 0; }
.colour-band > .container { position: relative; z-index: 1; width: 100%; }
.colour-band__photo { position: absolute; top: 0; bottom: 0; right: 0; width: 46%; overflow: hidden; }
.colour-band__photo img { width: 100%; height: 120%; margin-top: -10%; object-fit: cover; }
.colour-band--flip .colour-band__photo { right: auto; left: 0; }
.colour-band__text { width: 50%; }
.colour-band--flip .colour-band__text { margin-left: auto; }
.colour-band--deep { background: var(--teal-deep); color: var(--white); }
.colour-band--deep .h2, .colour-band--deep .eyebrow { color: var(--white); }
.colour-band--deep p { color: var(--mist); }
.colour-band--mist { background: var(--mist); }
.colour-band__photo::after { content: ""; position: absolute; inset: 0; }
.colour-band--deep .colour-band__photo { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.colour-band--deep.colour-band--flip .colour-band__photo, .colour-band--mist.colour-band--flip .colour-band__photo { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.colour-band--mist .colour-band__photo { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.colour-band .h2 { margin-bottom: 16px; }
.band-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.band-points li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.band-points span { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .14); color: var(--gold); }
.colour-band--mist .band-points span { background: var(--white); color: var(--teal-deep); }
.band-points .icon { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .colour-band { flex-direction: column; align-items: stretch; padding-top: 0; min-height: 0; }
  .colour-band__photo { position: relative; width: 100%; height: 280px; clip-path: none !important; margin-bottom: 36px; }
  .colour-band__text { width: 100%; }
}
@media (max-width: 520px) { .band-points { grid-template-columns: 1fr; } }

/* Numbered steps along a line */
.num-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.num-steps::before { content: ""; position: absolute; left: 0; right: 0; bottom: 30px; height: 2px; background: linear-gradient(90deg, var(--gold) var(--journey-progress, 0%), rgba(181, 150, 74, .25) 0); }
.num-step { position: relative; padding: 28px 22px 84px; background: var(--white); border-radius: 16px; }
.section:not(.section--mist) .num-step { background: var(--mist); }
.num-step__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 16px; background: var(--teal-deep); color: var(--white); }
.num-step__icon .icon { width: 30px; height: 30px; }
.num-step__title { margin-bottom: 8px; font-size: 19px; font-weight: 600; }
.num-step p { font-size: 15px; }
.num-step__num { position: absolute; left: 22px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--white); font-family: var(--serif); font-size: 15px; }
@media (max-width: 900px) { .num-steps { grid-template-columns: repeat(2, 1fr); } .num-steps::before { display: none; } }
@media (max-width: 520px) { .num-steps { grid-template-columns: 1fr; } }

/* Big stats */
.big-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.big-stats__item { padding: 26px 16px; border-radius: 18px; background: var(--mist); }
.big-stats__item:nth-child(2) { background: var(--teal-deep); }
.big-stats__item:nth-child(2) .stat__num, .big-stats__item:nth-child(2) .big-stats__label { color: var(--white); }
.big-stats .stat__num { font-size: clamp(40px, 5vw, 60px); }
.big-stats__label { display: block; margin-top: 6px; font-size: 15px; }

/* Event cards */
.event-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.event-card { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); border-radius: 18px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.event-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(4, 101, 127, .15); }
.event-card__photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 70px; gap: 4px; min-height: 280px; }
.event-card__photos img { width: 100%; height: 100%; object-fit: cover; }
.event-card__main { grid-column: 1 / -1; }
.event-card__icon { position: absolute; right: -24px; top: 20px; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--white); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.event-card__icon .icon { width: 26px; height: 26px; }
.event-card__body { padding: 28px 26px 28px 40px; }
.event-card__tag { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-soft); }
.event-card__title { margin-bottom: 10px; font-size: 22px; font-weight: 600; }
.event-card p:last-child { font-size: 15px; }
@media (max-width: 1100px) { .event-cards { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .event-card { grid-template-columns: 1fr; } .event-card__icon { right: 20px; top: auto; bottom: -24px; } .event-card__body { padding: 32px 22px 24px; } }

/* After-school activity cards */
.activity-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.activity-card { position: relative; background: var(--white); border-radius: 20px; overflow: hidden; transform: rotate(var(--tilt)); transition: transform .5s var(--ease), box-shadow .5s; box-shadow: 0 18px 40px rgba(4, 101, 127, .12); }
.activity-card:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 28px 54px rgba(4, 101, 127, .2); }
.activity-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.activity-card__media img { width: 100%; height: 100%; object-fit: cover; }
.activity-card__icon { position: absolute; left: 24px; top: calc(75% * .75 - 10px); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--white); color: var(--white); }
.activity-card__icon .icon { width: 30px; height: 30px; }
.activity-card--deep .activity-card__icon { background: var(--teal-deep); }
.activity-card--gold .activity-card__icon { background: var(--gold); }
.activity-card--soft .activity-card__icon { background: var(--teal-soft); }
.activity-card__body { padding: 44px 24px 28px; }
.activity-card__title { margin-bottom: 8px; font-size: 22px; font-weight: 600; }
@media (max-width: 900px) { .activity-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* Grace Space hero quote */
.grace-hero { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0; background: var(--mist); text-align: center; }
.grace-hero__inner { position: relative; z-index: 1; max-width: 900px; }
.grace-hero__quote { margin: 0 0 20px; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.2; color: var(--teal-deep); }

/* Canteen Day path of 11 steps */
.biz-path { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.biz-path__step { position: relative; padding: 26px 20px 22px; background: var(--white); border-radius: 18px; text-align: center; transition: transform .4s var(--ease); }
.biz-path__step:nth-child(4n+1) { border-top: 4px solid var(--teal-deep); }
.biz-path__step:nth-child(4n+2) { border-top: 4px solid var(--gold); }
.biz-path__step:nth-child(4n+3) { border-top: 4px solid var(--teal-soft); }
.biz-path__step:nth-child(4n) { border-top: 4px solid var(--teal-deep); }
.biz-path__step:hover { transform: translateY(-5px) rotate(1deg); }
.biz-path__num { position: absolute; left: 14px; top: 12px; font-family: var(--serif); font-size: 26px; color: var(--mist); font-weight: 600; }
.biz-path__icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 50%; background: var(--mist); color: var(--teal-deep); }
.biz-path__icon .icon { width: 36px; height: 36px; }
.biz-path__title { margin-bottom: 6px; font-size: 19px; font-weight: 600; }
.biz-path__step p { font-size: 14.5px; }
@media (max-width: 900px) { .biz-path { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .doodle, .photo-strip__track, .cta2__badge { animation: none; }
}

/* Amendment 3 ------------------------------------------------------------ */
/* Numbered steps with a photo instead of an icon */
.num-step--photo { padding-top: 0; overflow: hidden; }
.num-step__photo { display: block; margin: 0 -22px 18px; aspect-ratio: 4 / 3; overflow: hidden; }
.num-step__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.num-step--photo:hover .num-step__photo img { transform: scale(1.06); }

/* Photo tiles with an icon badge */
.photo-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.photo-tile { grid-column: span 2; position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.photo-tile:nth-child(4), .photo-tile:nth-child(5) { grid-column: span 3; }
.photo-tile:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(4, 101, 127, .18); }
.photo-tile__media { aspect-ratio: 16 / 10; overflow: hidden; }
.photo-tile:nth-child(4) .photo-tile__media, .photo-tile:nth-child(5) .photo-tile__media { aspect-ratio: 16 / 8; }
.photo-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo-tile:hover .photo-tile__media img { transform: scale(1.06); }
.photo-tile__body { position: relative; flex: 1; padding: 46px 24px 26px; }
.photo-tile__badge { position: relative; left: 22px; margin: -32px 0 -32px; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--white); background: var(--gold); color: var(--white); }
.photo-tile__badge .icon { width: 30px; height: 30px; }
.photo-tile__title { margin-bottom: 8px; font-size: 21px; font-weight: 600; }
.photo-tile p { font-size: 15px; }
.photo-tile--deep .photo-tile__body { background: var(--teal-deep); }
.photo-tile--deep .photo-tile__title, .photo-tile--deep p { color: var(--white); }
.photo-tile--soft .photo-tile__body { background: var(--mist); }
.photo-tile--soft .photo-tile__badge { background: var(--teal-deep); }
.photo-tile--gold .photo-tile__body { background: var(--white); border: 2px solid var(--gold); border-top: 0; border-radius: 0 0 18px 18px; }
@media (max-width: 900px) { .photo-tiles { grid-template-columns: 1fr 1fr; } .photo-tile, .photo-tile:nth-child(4), .photo-tile:nth-child(5) { grid-column: span 1; } .photo-tile:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .photo-tiles { grid-template-columns: 1fr; } .photo-tile:nth-child(5) { grid-column: auto; } }

/* Canteen Day steps with photos */
.biz-path { grid-template-columns: repeat(3, 1fr); }
.biz-path__step { padding: 0; overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.biz-path__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.biz-path__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.biz-path__step:hover .biz-path__media img { transform: scale(1.06); }
.biz-path__num { left: 14px; top: 12px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--white); font-size: 18px; }
.biz-path__icon { position: relative; z-index: 1; width: 60px; height: 60px; margin: -30px 0 0 20px; border: 4px solid var(--white); background: var(--teal-deep); color: var(--white); }
.biz-path__icon .icon { width: 28px; height: 28px; }
.biz-path__body { padding: 12px 22px 24px; }
.biz-path__headline { margin-bottom: 6px; font-weight: 600; color: var(--teal-soft); font-size: 14.5px; }
.biz-path__step:last-child { grid-column: 2; }
@media (max-width: 900px) { .biz-path { grid-template-columns: repeat(2, 1fr); } .biz-path__step:last-child { grid-column: auto; } }
@media (max-width: 560px) { .biz-path { grid-template-columns: 1fr; } }

/* Gallery lightbox */
.masonry [role="button"] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; background: rgba(35, 35, 35, .94); }
.lightbox[hidden] { display: none; }
.lightbox-open { overflow: hidden; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100vh; padding: 60px 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__figure figcaption { font-family: var(--serif); font-style: italic; color: var(--mist); }
.lightbox__nav, .lightbox__close { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: transparent; color: var(--white); font-size: 32px; line-height: 1; cursor: pointer; transition: background-color .25s; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.lightbox__close { position: absolute; top: 18px; right: 18px; font-size: 30px; }
.lightbox__count { position: absolute; top: 30px; left: 30px; color: var(--mist); font-size: 14px; letter-spacing: .08em; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 1fr; } .lightbox__nav { position: absolute; bottom: 20px; } .lightbox__nav--prev { left: 25%; } .lightbox__nav--next { right: 25%; } }

/* ==========================================================================
   Deck style (from the school's business presentation)
   ========================================================================== */
/* Fuller pages: less padding between and around sections. */
:root { --section-y: clamp(48px, 6vw, 80px); --container: 1280px; }
.section-head { margin-bottom: clamp(26px, 3.5vw, 40px); }
.story-intro, .fun-hero, .grace-hero { padding-top: clamp(56px, 7vw, 90px); padding-bottom: clamp(56px, 7vw, 90px); }

/* Ringed pale-blue icon circle with gold sparks */
.deck-icon { position: relative; display: inline-grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--mist); color: var(--teal-deep); box-shadow: 0 0 0 4px var(--white), 0 8px 18px rgba(4, 101, 127, .16); }
.deck-icon .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.deck-icon--sm { width: 40px; height: 40px; box-shadow: 0 0 0 3px var(--white), 0 4px 10px rgba(4, 101, 127, .14); }
.deck-icon--sm .icon { width: 20px; height: 20px; }
.deck-icon__spark { position: absolute; top: -6px; right: -10px; width: 16px; height: 16px; }
.deck-icon__spark::before, .deck-icon__spark::after { content: ""; position: absolute; width: 3px; height: 9px; border-radius: 3px; background: var(--gold); }
.deck-icon__spark::before { left: 2px; top: 4px; transform: rotate(-35deg); }
.deck-icon__spark::after { left: 9px; top: 0; transform: rotate(10deg); }
.deck-icon--sm .deck-icon__spark { display: none; }
.card > .deck-icon { margin-bottom: 18px; }

/* Existing icon holders take the same deck look */
.card__icon, .icon-tile__icon, .num-step__icon, .bento__icon, .biz-path__icon, .photo-tile__badge, .event-card__icon, .activity-card__icon, .cta2__link-icon, .band-points span, .entry2__art {
  border-radius: 50% !important; background: var(--mist) !important; color: var(--teal-deep) !important; border: 0 !important;
  box-shadow: 0 0 0 4px var(--white), 0 8px 18px rgba(4, 101, 127, .16);
}
.band-points span { box-shadow: 0 0 0 3px var(--white); }

/* Speech-bubble stickers */
.sticker {
  position: absolute; z-index: 3; display: grid; place-items: center; min-width: 96px; padding: 12px 16px;
  border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%; background: var(--white); color: var(--teal-deep);
  box-shadow: 0 10px 24px rgba(4, 101, 127, .2); border: 2px solid var(--mist);
  font-family: var(--sans); font-weight: 800; font-size: 13px; line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; text-align: center;
  transform: rotate(-6deg); animation: sticker-bob 4s ease-in-out infinite;
}
.sticker::after { content: ""; position: absolute; right: -14px; top: -10px; width: 14px; height: 14px; background: radial-gradient(circle, var(--gold) 2px, transparent 3px) 0 0 / 7px 7px; }
@keyframes sticker-bob { 50% { transform: rotate(-3deg) translateY(-4px); } }

/* Two-tone deck headline */
.deck-title { margin: 0; line-height: 1.05; }
.deck-title__light { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-soft); }
.deck-title__bold { display: block; margin-top: 6px; font-family: var(--sans); font-weight: 800; font-size: clamp(32px, 4vw, 54px); color: var(--teal-deep); text-transform: uppercase; letter-spacing: -.01em; }
h3.deck-title .deck-title__bold { font-size: clamp(28px, 3.2vw, 44px); }

/* Feature row (deck bottom bar) */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 24px 0 0; padding: 20px 12px; list-style: none; background: rgba(220, 238, 241, .7); border-radius: 22px; }
.feature-row li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 10px; text-align: center; font-size: 14px; line-height: 1.3; }
.feature-row li + li { border-left: 1px solid rgba(78, 164, 185, .35); }
.feature-row--wide { margin-top: 36px; }
@media (max-width: 560px) { .feature-row { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } .feature-row li:nth-child(3) { border-left: 0; } }

/* Section decoration: leaf sprigs and a soft wave in the corners */
.deck-bg { position: relative; overflow: hidden; }
.deck-bg > .container { position: relative; z-index: 1; }
.deck-bg::before { content: ""; position: absolute; left: -60px; bottom: -60px; width: 340px; height: 340px; background: url("../img/bg-teal-leaves.webp") center / cover; opacity: .12; border-radius: 50%; }
.deck-bg::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle at 30% 70%, rgba(78, 164, 185, .22), transparent 65%); }

/* Facilities mosaic */
.deck-mosaic { display: grid; grid-template-columns: 5fr 7fr; grid-auto-rows: minmax(260px, auto); gap: 14px; }
.deck-mosaic + .deck-mosaic { margin-top: 14px; }
.deck-mosaic__intro { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 30px 34px; background: var(--white); border-radius: 22px; }
.deck-mosaic__intro p { font-size: 17px; }
.deck-mosaic__doodle { position: absolute; right: 24px; top: 22px; color: var(--teal-soft); opacity: .6; }
.deck-mosaic__doodle .icon { width: 40px; height: 40px; }
.deck-tile { position: relative; margin: 0; overflow: hidden; border-radius: 22px; min-height: 300px; }
.deck-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.deck-tile:hover img { transform: scale(1.05); }
.deck-tile--1 { grid-column: 1 / span 1; }
.deck-tile--2 { grid-column: 2; }
.deck-mosaic:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
.deck-mosaic:nth-of-type(even) .deck-mosaic__intro { grid-column: 2; grid-row: 1; }
.deck-mosaic:nth-of-type(even) .deck-tile--0 { grid-column: 1; grid-row: 1; }
.deck-pill { position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; align-items: center; gap: 14px; max-width: min(380px, calc(100% - 32px)); padding: 10px 18px 10px 10px; border-radius: 60px 18px 18px 60px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 26px rgba(35, 35, 35, .14); }
.deck-pill__text { font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.deck-pill__text strong { display: block; margin-bottom: 2px; font-family: var(--sans); font-weight: 800; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; color: var(--teal-deep); }
.deck-tile .render-label { left: auto; right: 12px; bottom: 12px; }
.deck-tile .sticker { right: 18px; bottom: 18px; }
@media (max-width: 860px) {
  .deck-mosaic, .deck-mosaic:nth-of-type(even) { grid-template-columns: 1fr; }
  .deck-mosaic .deck-mosaic__intro, .deck-mosaic .deck-tile { grid-column: 1 !important; grid-row: auto !important; }
}

/* Club slides (deck "Little Chef & Cooking Club") */
.club-slide { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; padding: 16px; background: var(--white); border-radius: 28px; box-shadow: 0 24px 60px rgba(4, 101, 127, .1); position: relative; overflow: hidden; }
.club-slide + .club-slide { margin-top: 36px; }
.club-slide::before { content: ""; position: absolute; left: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--mist); }
.club-slide__text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 26px 20px 26px 26px; }
.club-slide__text .status { align-self: flex-start; margin-bottom: 10px; }
.club-slide__text > p { font-size: 17px; }
.club-slide__photos { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 520px; }
.club-photo { position: relative; margin: 0; overflow: hidden; border-radius: 18px; }
.club-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.club-photo:hover img { transform: scale(1.06); }
.club-photo--0 .sticker { left: 14px; bottom: 18px; }
.club-photo--1 .sticker { right: 12px; bottom: 16px; transform: rotate(5deg); }
.club-photo--2 .sticker { right: 14px; top: 14px; }
.club-photo--3 .sticker { right: 12px; bottom: 14px; transform: rotate(4deg); }
.club-slide--flip { grid-template-columns: 7fr 5fr; }
.club-slide--flip .club-slide__text { order: 2; }
.club-slide--flip::before { left: auto; right: -80px; }
@media (max-width: 960px) {
  .club-slide, .club-slide--flip { grid-template-columns: 1fr; }
  .club-slide--flip .club-slide__text { order: 0; }
  .club-slide__photos { min-height: 440px; }
}

/* Syllabus slide */
.subject-slide { display: grid; grid-template-columns: 5fr 7fr; gap: 0; overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: 0 24px 60px rgba(4, 101, 127, .1); }
.subject-slide__text { position: relative; padding: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, var(--white) 60%, var(--mist)); }
.subject-slide__eyebrow { margin-bottom: 4px; font-family: var(--sans); font-weight: 800; font-size: 18px; color: var(--gold); }
.icon-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.icon-list li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.subject-slide__photo { position: relative; min-height: 460px; }
.subject-slide__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.subject-slide__photo::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; z-index: 1; width: 70px; background: var(--white); clip-path: ellipse(70px 60% at 0 50%); }
@media (max-width: 860px) { .subject-slide { grid-template-columns: 1fr; } .subject-slide__photo { min-height: 320px; order: -1; } .subject-slide__photo::before { display: none; } }

/* IGCSE exams: photo beside a 2x2 of cards */
.exam-split { display: grid; grid-template-columns: 5fr 7fr; gap: 22px; align-items: stretch; }
.exam-split__photo { position: relative; margin: 0; overflow: hidden; border-radius: 22px; min-height: 360px; }
.exam-split__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exam-split__photo .sticker { right: 18px; bottom: 18px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .exam-split, .cards--2 { grid-template-columns: 1fr; } }

/* Photos flanking centred intros */
.story-intro, .grace-hero { position: relative; }
.side-photo { position: absolute; z-index: 0; top: 50%; width: clamp(150px, 15vw, 230px); aspect-ratio: 3 / 4; object-fit: cover; margin-top: -150px; border: 8px solid var(--white); box-shadow: 0 22px 46px rgba(4, 101, 127, .18); }
.side-photo--l { left: 3%; transform: rotate(-6deg); }
.side-photo--r { right: 3%; transform: rotate(5deg); }
@media (max-width: 1150px) { .side-photo { display: none; } }

/* Density components (after e-bridge.edu.sg) */
.wide-photo { position: relative; margin: 32px 0 0; overflow: hidden; border-radius: 24px; aspect-ratio: 21 / 8; }
.wide-photo img { width: 100%; height: 120%; margin-top: -5%; object-fit: cover; }
.wide-photo .deck-pill { top: auto; bottom: 20px; left: 20px; }
.wide-photo--top img { object-position: 50% 0; margin-top: 0; }
.wide-photo--low img { object-position: 50% 62%; }
.wide-photo--lower img { object-position: 50% 82%; }
@media (max-width: 700px) { .wide-photo { aspect-ratio: 4 / 3; } }

.bleed-photo { position: relative; height: clamp(300px, 46vw, 560px); overflow: hidden; display: grid; place-items: center; }
.bleed-photo img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.bleed-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(4, 101, 127, .55)); }
.bleed-photo__quote { position: relative; z-index: 1; align-self: end; max-width: 820px; margin: 0 20px 36px; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 32px); color: var(--white); text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }

.overlay-grid { display: grid; gap: 16px; }
.overlay-grid--2 { grid-template-columns: repeat(2, 1fr); }
.overlay-grid--3 { grid-template-columns: repeat(3, 1fr); }
.overlay-grid--4 { grid-template-columns: repeat(4, 1fr); }
.overlay-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 20px; text-decoration: none; }
.overlay-grid--4 .overlay-tile { aspect-ratio: 3 / 4; }
.overlay-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.overlay-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(35, 35, 35, .65)); }
.overlay-tile:hover img { transform: scale(1.06); }
.overlay-tile__label { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; padding: 0 20px; text-align: center; font-family: var(--sans); font-weight: 800; font-size: clamp(18px, 1.8vw, 24px); color: var(--white); text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.overlay-tile__label small { display: block; margin-top: 4px; font-weight: 500; font-size: 14px; }
@media (max-width: 900px) { .overlay-grid--3, .overlay-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .overlay-grid--2, .overlay-grid--3, .overlay-grid--4 { grid-template-columns: 1fr; } .overlay-grid--4 .overlay-tile { aspect-ratio: 4 / 3; } }

.pill-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pill-card { display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; background: var(--white); border-radius: 80px; box-shadow: 0 10px 30px rgba(4, 101, 127, .12); text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s; }
.pill-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(4, 101, 127, .2); color: var(--ink); }
.pill-card img { width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover; border: 4px solid var(--mist); }
.pill-card span { flex: 1; font-size: 14px; }
.pill-card strong { display: block; font-family: var(--serif); font-size: 21px; color: var(--teal-deep); }
.pill-card .icon { color: var(--teal-soft); }
@media (max-width: 900px) { .pill-cards { grid-template-columns: 1fr; } }
.pill-strip { position: relative; z-index: 5; padding: 26px 0; background: var(--mist); }

.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.moments figure { margin: 0; overflow: hidden; border-radius: 14px; aspect-ratio: 1; cursor: zoom-in; }
.moments img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.moments figure:hover img { transform: scale(1.07); }
@media (max-width: 700px) { .moments { grid-template-columns: repeat(2, 1fr); } }

.dual-cta { display: grid; grid-template-columns: 1fr 1fr; }
.dual-cta__half { position: relative; display: flex; align-items: flex-end; min-height: 460px; overflow: hidden; padding: clamp(28px, 4vw, 56px); text-decoration: none; color: var(--white); isolation: isolate; }
.dual-cta__half img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dual-cta__half::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.dual-cta__half--deep::after { background: linear-gradient(180deg, rgba(4, 101, 127, .05) 20%, rgba(4, 101, 127, .92)); }
.dual-cta__half--soft::after { background: linear-gradient(180deg, rgba(35, 35, 35, .05) 20%, rgba(35, 35, 35, .85)); }
.dual-cta__half:hover img { transform: scale(1.05); }
.dual-cta__half:hover { color: var(--white); }
.dual-cta__body { display: flex; flex-direction: column; gap: 10px; max-width: 460px; font-size: 16px; }
.dual-cta__body strong { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); }
.dual-cta__body em { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-style: normal; font-family: var(--serif); font-size: 17px; color: var(--mist); }
.dual-cta__half:hover em .icon { transform: translateX(6px); }
.dual-cta__body em .icon { transition: transform .3s var(--ease); }
@media (max-width: 800px) { .dual-cta { grid-template-columns: 1fr; } }

/* Cut-out student in the admissions banner */
.cta2__cutout { position: absolute; right: -4%; bottom: -60px; z-index: 3; width: 44%; max-width: 280px; height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); }
@media (max-width: 900px) { .cta2__cutout { width: 38%; bottom: -40px; } }
.cta2__badge { right: auto; left: -4%; bottom: 8%; }

/* Reveal on scroll ------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .admit-pop { animation: none; }
}
.section--flush { padding-top: 0; }

/* Keep faces in frame when tall photos are cropped into wide slots. */
.lsg__media .swiper-slide img { object-position: 50% 30%; }
img[src*="deck/igcse-student"], img[src*="deck/next-step-girl"], img[src*="deck/primary-group"], img[src*="deck/secondary-group"] { object-position: 50% 12% !important; }

/* Campus gallery mega menu */
.mega--gallery { grid-template-columns: 240px 1fr; }
.mega--gallery .mega__more { display: flex; }
.mega__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mega__gallery a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--mist); text-decoration: none; }
.mega__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega__gallery a:hover img { transform: scale(1.08); }
.mega__gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-family: var(--serif); font-size: 13px; color: var(--white); background: linear-gradient(transparent, rgba(4, 101, 127, .9)); }
@media (max-width: 1360px) {
  .mega--gallery { display: none; }
  .main-nav__toggle[aria-expanded="true"] + .mega--gallery { display: block; }
  .mega__gallery { grid-template-columns: repeat(2, 1fr); padding-top: 8px; }
}

/* Mobile menu: submenus open in place (cancel the desktop centring shift). */
@media (max-width: 1360px) {
  .mega, .has-mega:hover .mega, .has-mega:focus-within .mega { left: auto; width: 100%; transform: none; box-shadow: none; }
  .mega__links a { padding: 10px 0; font-size: 16px; }
  .has-mega:hover .mega:not(.mega--gallery), .has-mega:focus-within .mega:not(.mega--gallery) { display: none; }
  .main-nav__toggle[aria-expanded="true"] + .mega { display: block !important; }
}

/* Programme pills float over the bottom edge of the hero, no band behind them. */
.pill-strip { background: transparent; padding: 0; margin-top: -58px; }
.hero { padding-bottom: 230px; }
.admit-pop { bottom: 96px; }
@media (max-width: 900px) {
  .pill-strip { margin-top: -40px; }
  .hero { padding-bottom: 210px; }
  .admit-pop { bottom: 60px; }
}

/* Photos in self-sizing grids must not drive the row height (responsive
   images report a provisional 100vw size before layout). */
.club-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card__photos { grid-template-rows: minmax(0, 1fr) 70px; height: 100%; min-height: 280px; }
.event-card__photos img { min-height: 0; height: 100%; }

/* ---------- School news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.news-card { display: flex; flex-direction: column; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 14px 34px rgba(4, 101, 127, .1); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(4, 101, 127, .16); }
.news-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.news-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__chip { position: absolute; top: 14px; right: 14px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; background: var(--teal-deep); color: var(--white); border-radius: 20px; }
.news-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.news-card__date { font-size: 13.5px; color: var(--teal-soft); }
.news-card__title { margin-top: 8px; font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.news-card__title a { color: var(--teal-deep); text-decoration: none; }
.news-card__title a:hover { text-decoration: underline; }
.news-card__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.news-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--teal-deep); text-decoration: none; }
.news-card__more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.news-card__more:hover .icon { transform: translateX(3px); }
a.filter__btn { text-decoration: none; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pager__link { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; font-weight: 600; color: var(--teal-deep); background: var(--white); border: 1px solid var(--teal-soft); border-radius: 50%; text-decoration: none; }
.pager__link:hover { background: var(--mist); }
.pager__link.is-active { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.news-empty { text-align: center; }

.news-hero__topic { display: inline-block; margin-bottom: 14px; padding: 5px 14px; font-size: 13px; font-weight: 600; background: var(--gold); color: var(--white); border-radius: 20px; text-decoration: none; }
.news-hero__topic:hover { color: var(--white); background: var(--teal-soft); }
.news-hero__date { margin-top: 14px; color: var(--mist); }
.news-article { font-size: 17px; line-height: 1.75; }
.news-article .news-lead { font-family: var(--serif); font-size: 20px; line-height: 1.6; color: var(--teal-deep); }
.news-article h2 { margin-top: 1.6em; font-size: 24px; color: var(--teal-deep); }
.news-article figure { margin: 1.8em 0; }
.news-article figure img, .news-article p > img { display: block; width: 100%; height: auto; border-radius: 18px; }
.news-article figcaption { margin-top: 10px; font-size: 14px; text-align: center; color: var(--teal-soft); }
.news-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-photos img { aspect-ratio: 4 / 3; object-fit: cover; }
.news-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2.4em; padding-top: 22px; border-top: 1px solid var(--mist); font-size: 15px; color: var(--teal-deep); }
.news-share a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--teal-deep); border: 1px solid var(--teal-soft); border-radius: 50%; }
.news-share a:hover { background: var(--mist); }
.news-share .icon { width: 18px; height: 18px; }
.news-share a.news-share__back { display: inline-flex; gap: 6px; width: auto; margin-left: auto; padding: 0 18px; border-radius: 30px; font-weight: 600; text-decoration: none; }
.news-share__back .icon { transform: rotate(180deg); }
@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-photos { grid-template-columns: 1fr; }
  .news-share a.news-share__back { margin-left: 0; }
}

/* Student stickers (brochure cut-outs) ---------------------------------- */
.stud-sticker { position: relative; margin: 0; pointer-events: none; }
.stud-sticker img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 20px rgba(4, 101, 127, .22)); animation: stud-float 6s ease-in-out infinite; }
.stud-sticker__doodle { position: absolute; width: clamp(22px, 2.6vw, 36px); height: auto; animation: stud-twinkle 3.2s ease-in-out infinite; }
.stud-sticker__doodle--sparkle { color: var(--gold); }
.stud-sticker__doodle--heart { color: var(--teal-soft); }
.stud-sticker__doodle--burst { color: var(--gold); }
.stud-sticker__doodle--star { color: var(--teal-deep); }
.stud-sticker__doodle--tl { top: 2%; left: -8%; }
.stud-sticker__doodle--tr { top: 0; right: -8%; animation-delay: .8s; }
.stud-sticker__doodle--t { top: -8%; left: 46%; animation-delay: 1.4s; }
.stud-sticker__doodle--l { top: 42%; left: -14%; animation-delay: 1.9s; }
.stud-sticker__doodle--r { top: 38%; right: -12%; animation-delay: 1.1s; }
.stud-sticker__doodle--bl { bottom: 8%; left: -10%; animation-delay: .5s; }
.stud-sticker__doodle--br { bottom: 6%; right: -10%; animation-delay: 1.6s; }
@keyframes stud-float { 50% { transform: translateY(-8px) rotate(-.6deg); } }
@keyframes stud-twinkle { 50% { transform: scale(.82) rotate(12deg); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .stud-sticker img, .stud-sticker__doodle { animation: none; } }

.pill-tag { display: inline-block; padding: 6px 15px; border-radius: 999px; background: var(--teal-deep); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; }
.chip-list--outline li { background: var(--white); border: 2px solid var(--teal-soft); font-weight: 600; }

/* Home cover band: Learn. Lead. Inspire. */
.cover-band { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
.cover-band__ribbon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%; }
.cover-band__grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: end; }
.cover-band__text { padding-bottom: clamp(40px, 6vw, 90px); }
.cover-band__title { margin: 10px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(48px, 6.6vw, 100px); line-height: 1.02; letter-spacing: -.01em; color: var(--teal-deep); }
.cover-band__title span { display: block; }
.cover-band__accent { color: var(--teal-soft); }
.cover-band__sub { margin: 0; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: .06em; color: var(--ink); }
.cover-band__kids { position: relative; height: clamp(320px, 34vw, 500px); }
.cover-band__kid { position: absolute; bottom: 0; }
.cover-band__kid--1 { left: 2%; width: 21%; bottom: 2%; }
.cover-band__kid--2 { left: 27%; width: 31%; bottom: 8%; }
.cover-band__kid--3 { right: 0; width: 37%; bottom: 14%; }
.cover-band__kid--2 img { animation-delay: -2s; }
.cover-band__kid--3 img { animation-delay: -4s; }
@media (max-width: 800px) {
  .cover-band__grid { grid-template-columns: 1fr; gap: 0; }
  .cover-band__text { padding-bottom: 8px; text-align: center; }
  .cover-band__text .title-rule { margin-left: auto; margin-right: auto; }
  .cover-band__kids { height: clamp(260px, 72vw, 380px); }
}

/* Agape Club showcase */
.agape { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%); }
.agape__head { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.agape__head > div { padding-bottom: clamp(28px, 4vw, 48px); }
.agape__title { margin: 16px 0 14px; font-family: var(--serif); font-size: clamp(32px, 4.4vw, 58px); line-height: 1.1; color: var(--teal-deep); }
.agape__title em, .whole-child__title em, .trial__title em { color: var(--teal-soft); }
.agape__lead { max-width: 620px; margin: 0; font-size: clamp(17px, 1.5vw, 20px); }
.agape__sticker { width: min(100%, 330px); justify-self: center; margin-bottom: calc(-1 * clamp(28px, 4vw, 48px)); }
.agape__sticker img { animation: none; }
.agape__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
.agape-card { margin: 0; padding: 10px 10px 16px; border-radius: 22px; background: var(--white); box-shadow: 0 18px 40px -18px rgba(4, 101, 127, .35); transform: rotate(var(--tilt, 0deg)); transition: transform .5s var(--ease); }
.agape-card:hover { transform: rotate(0) translateY(-6px); }
.agape-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.agape-card figcaption { position: relative; padding: 0 6px; }
.agape-card__label { position: relative; display: inline-block; margin-top: -22px; padding: 7px 14px; border-left: 4px solid var(--teal-soft); border-radius: 10px; background: var(--white); box-shadow: 0 6px 16px rgba(35, 35, 35, .12); font-weight: 700; color: var(--teal-deep); }
.agape-card__text { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) {
  .agape__head { grid-template-columns: 1fr; }
  .agape__head > div { padding-bottom: 0; }
  .agape__sticker { width: min(70%, 280px); }
  .agape__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Academics: Learning at Ella Grace */
.curriculum-panel { background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%); }
.curriculum-panel__head { max-width: 860px; margin-bottom: 28px; }
.curriculum-panel__head .h2 { margin: 14px 0 10px; }
.curriculum-panel__card { position: relative; padding: clamp(24px, 3.5vw, 44px); border-radius: 28px; background: var(--white); box-shadow: 0 24px 60px -30px rgba(4, 101, 127, .45); }
.curriculum-panel__cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.curriculum-panel__col { padding: 0 clamp(16px, 2.4vw, 32px); }
.curriculum-panel__col + .curriculum-panel__col { border-left: 1px solid var(--mist); }
.curriculum-panel__col:first-child { padding-left: 0; }
.curriculum-panel__stage { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep); }
.curriculum-panel__years { margin: 8px 0 18px; padding-bottom: 14px; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); color: var(--teal-deep); background: linear-gradient(var(--gold), var(--gold)) left bottom / 44px 3px no-repeat; }
.curriculum-panel__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.curriculum-panel__col li { position: relative; padding-left: 18px; }
.curriculum-panel__col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-soft); }
.curriculum-panel__prep { display: inline-block; margin: 18px 0 0; padding: 10px 14px; border: 1px solid var(--teal-soft); border-radius: 12px; background: var(--mist); font-size: 14px; font-weight: 700; color: var(--teal-deep); }
.curriculum-panel__optional { margin-top: 28px; padding: 18px 22px; border-radius: 18px; background: var(--mist); }
.curriculum-panel__optional .chip-list { margin-top: 12px; }
.curriculum-panel__fine { margin: 10px 0 0; font-size: 14px; }
.curriculum-panel__sticker { position: absolute; right: 28px; bottom: calc(100% - 46px); width: 220px; }
.curriculum-panel__sticker img { animation: none; }
@media (min-width: 901px) { .curriculum-panel { padding-top: calc(var(--section-y) + 70px); } .curriculum-panel__head { max-width: min(860px, calc(100% - 280px)); } }
@media (max-width: 900px) {
  .curriculum-panel__cols { grid-template-columns: 1fr; gap: 24px; }
  .curriculum-panel__col, .curriculum-panel__col:first-child { padding: 0; }
  .curriculum-panel__col + .curriculum-panel__col { border-left: 0; border-top: 1px solid var(--mist); padding-top: 22px; }
  .curriculum-panel__optional { max-width: none; }
  .curriculum-panel__sticker { position: relative; right: auto; bottom: auto; width: 170px; margin: -10px auto calc(-1 * clamp(24px, 3.5vw, 44px)); }
  .curriculum-panel__card { display: flex; flex-direction: column; }
  .curriculum-panel__card .curriculum-panel__sticker { order: 3; }
}

/* Beyond Academics: Growing the whole child */
.whole-child { background: var(--mist); }
.whole-child__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.whole-child__head > div { padding-bottom: 28px; }
.whole-child__title { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 66px); line-height: 1.05; color: var(--teal-deep); }
.whole-child__hero-sticker { flex: none; width: clamp(150px, 17vw, 240px); margin-right: 4%; }
.whole-child__hero-sticker img { animation: none; }
.whole-child__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 26px); }
.wc-card { position: relative; padding: clamp(22px, 2.6vw, 32px); border-radius: 24px; background: var(--white); box-shadow: 0 16px 40px -26px rgba(4, 101, 127, .5); }
.wc-card p { margin: 0 0 12px; }
.wc-card__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px !important; }
.wc-card__name { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; color: var(--teal-deep); }
.wc-card--pe, .wc-card--character { padding-right: 38%; min-height: 330px; }
.wc-card__sticker { position: absolute; right: -6px; bottom: -10px; width: 38%; }
.wc-card--character .wc-card__sticker { width: 30%; right: 2%; }
.wc-card__icon { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--mist); color: var(--teal-deep); }
.wc-card__icon .icon { width: 26px; height: 26px; }
.wc-card:not(.wc-card--pe):not(.wc-card--character):not(.wc-card--reading) { padding-right: 90px; }
.wc-card--reading { grid-column: 1 / -1; display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.wc-card__sticker--reader { position: relative; right: auto; bottom: auto; width: 100%; margin: -40px 0 -30px -20px; }
@media (max-width: 800px) {
  .whole-child__grid { grid-template-columns: 1fr; }
  .wc-card--pe, .wc-card--character { padding-right: clamp(22px, 2.6vw, 32px); padding-bottom: 0; min-height: 0; }
  .wc-card--pe .wc-card__sticker, .wc-card--character .wc-card__sticker { position: relative; right: auto; bottom: auto; width: 46%; margin: 4px -10px -10px auto; }
  .wc-card--reading { grid-template-columns: 1fr; gap: 0; }
  .wc-card__sticker--reader { width: 52%; margin: -30px auto 8px; }
}

/* Clubs: in-class clubs panel */
.cca-panel { background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
.cca-panel__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.cca-panel__card { padding: clamp(24px, 3vw, 40px); border-radius: 26px; background: var(--white); box-shadow: 0 20px 50px -28px rgba(4, 101, 127, .5); }
.cca-panel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.cca-panel__cols > div + div { padding-left: 24px; border-left: 1px solid var(--mist); }
.cca-panel__cols .icon-list li { font-weight: 700; color: var(--ink); }
.cca-panel__cols .icon-list .icon { color: var(--teal-deep); }
.cca-panel__kids { position: relative; height: clamp(300px, 30vw, 420px); }
.cca-panel__kid { position: absolute; bottom: 0; }
.cca-panel__kid--1 { left: 4%; width: 27%; bottom: 10%; }
.cca-panel__kid--2 { left: 26%; width: 46%; bottom: 0; z-index: 1; }
.cca-panel__kid--3 { right: 2%; width: 25%; bottom: 8%; }
.cca-panel__kid--3 img { animation-delay: -3s; }
@media (max-width: 800px) {
  .cca-panel__grid { grid-template-columns: 1fr; }
  .cca-panel__kids { height: 72vw; max-height: 340px; }
}
@media (max-width: 480px) {
  .cca-panel__cols { grid-template-columns: 1fr; }
  .cca-panel__cols > div + div { padding-left: 0; border-left: 0; }
}

/* Admissions: 3-Day Trial Class */
.trial { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-soft) 0%, var(--teal-deep) 100%); }
.trial__grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: center; }
.trial__card { max-width: 640px; padding: clamp(26px, 3.4vw, 44px); border: 3px solid var(--gold); border-radius: 26px; background: var(--white); }
.trial__eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep); }
.trial__title { margin: 8px 0 12px; font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); line-height: 1.1; color: var(--teal-deep); }
.trial__card .btn-row { margin-top: 24px; }
.trial__sticker { width: 100%; max-width: 340px; justify-self: center; }
.trial__sticker img { filter: drop-shadow(0 18px 24px rgba(35, 35, 35, .28)); }
.trial__sticker .stud-sticker__doodle--sparkle, .trial__sticker .stud-sticker__doodle--burst { color: var(--white); }
@media (max-width: 800px) {
  .trial__grid { grid-template-columns: 1fr; }
  .trial__sticker { width: 62%; order: -1; margin-bottom: -40px; }
}

/* Single stickers dropped into existing sections */
.sticker-spot { position: relative; }
.sticker-spot__kid { position: absolute; z-index: 2; }
.sticker-spot__kid--tr { right: max(12px, calc((100% - var(--container)) / 2 - 10px)); top: 14px; width: clamp(110px, 12vw, 170px); }
.sticker-spot__kid--br { right: max(12px, calc((100% - var(--container)) / 2)); bottom: -30px; width: clamp(120px, 13vw, 190px); }
.sticker-spot__kid--sm.sticker-spot__kid--tr { width: clamp(96px, 8.5vw, 122px); top: 10px; }
@media (max-width: 800px) { .sticker-spot__kid { position: relative; right: auto; top: auto; bottom: auto; display: block; width: 120px; margin: 0 auto 12px; } }

/* After-school: public speaking band */
.speak-band { background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); overflow: hidden; }
.speak-band__grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: end; }
.speak-band__checks { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.speak-band__checks li { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 8px 18px 8px 10px; border-radius: 999px; background: var(--white); box-shadow: 0 6px 18px rgba(4, 101, 127, .14); font-weight: 700; color: var(--teal-deep); }
.speak-band__checks .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--teal-deep); color: var(--white); }
.speak-band__sticker { width: 100%; margin-bottom: calc(-1 * var(--section-y)); }
@media (max-width: 800px) { .speak-band__grid { grid-template-columns: 1fr; } .speak-band__sticker { width: 60%; margin: 0 auto calc(-1 * var(--section-y)); } }

/* Grace Space: Kindness Is Our Culture */
.kindness { background: var(--mist); overflow: hidden; padding-bottom: 0; }
.kindness__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.kindness__grid > div { padding-bottom: var(--section-y); }
.kindness__sticker { width: min(100%, 520px); justify-self: center; }
.kindness__sticker img { animation: none; }
@media (max-width: 800px) { .kindness__grid { grid-template-columns: 1fr; gap: 0; } .kindness__grid > div { padding-bottom: 12px; } }

/* After-school: sticker fills the empty grid cells beside the seventh card */
.activity-cards__more { grid-column: span 2; display: flex; align-items: flex-end; justify-content: space-around; gap: 20px; }
.activity-cards__note { max-width: 300px; margin: 0 0 40px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; color: var(--teal-deep); }
.activity-cards__note em { color: var(--teal-soft); }
.activity-cards__sticker { width: clamp(160px, 15vw, 230px); }
@media (max-width: 900px) { .activity-cards__more { grid-column: auto; } .activity-cards__note { margin-bottom: 24px; } }

/* CTA band: student stickers instead of the photo collage (sized to the column, so the group scales as one) */
.cta2__kids { position: relative; align-self: end; aspect-ratio: 7 / 6; margin-bottom: calc(-1 * clamp(64px, 8vw, 100px)); }
.cta2__kids .cta2__kid { position: absolute; }
.cta2__kid img { filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .3)); }
.cta2__kid .stud-sticker__doodle { color: var(--white); }
.cta2__kid--b1 { left: 6%; bottom: 43%; width: 27%; }
.cta2__kid--b2 { left: 41%; bottom: 39%; width: 12.5%; }
.cta2__kid--b3 { left: 63%; bottom: 44%; width: 13.5%; }
.cta2__kid--1 { left: -2%; bottom: 0; width: 25%; z-index: 1; }
.cta2__kid--2 { left: 23%; bottom: 1%; width: 17.5%; z-index: 1; }
.cta2__kid--3 { left: 42%; bottom: 3%; width: 18.5%; z-index: 1; }
.cta2__kid--4 { right: -2%; bottom: 5%; width: 34%; z-index: 1; }
.cta2__kid--b1 img { animation-delay: -1s; }
.cta2__kid--b2 img { animation-delay: -2s; }
.cta2__kid--b3 img { animation-delay: -3s; }
.cta2__kid--2 img { animation-delay: -4s; }
.cta2__kid--3 img { animation-delay: -5s; }
.cta2__kid--4 img { animation-delay: -2.5s; }
/* Badge sits in the empty top-right corner, upright, with its two lines centred */
.cta2__kids .cta2__badge--flat { top: 2%; right: 2%; left: auto; bottom: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 116px; height: 116px; animation: none; transform: none; line-height: 1; }
.cta2__badge--flat strong { font-size: 21px; white-space: nowrap; }
.cta2__badge--flat span { font-size: 13px; letter-spacing: .04em; }
@media (max-width: 900px) { .cta2__kids { margin-top: 24px; } .cta2__kids .cta2__badge--flat { width: 88px; height: 88px; } .cta2__badge--flat strong { font-size: 16px; } .cta2__badge--flat span { font-size: 11px; } }

/* Public Speaking & Leadership feature */
.speak { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
.speak__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.speak__title { margin: 16px 0 14px; font-family: var(--serif); font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; color: var(--teal-deep); }
.speak__title em { color: var(--teal-soft); }
.speak__lead { max-width: 560px; margin: 0 0 28px; font-size: clamp(17px, 1.5vw, 20px); }
.speak__media { position: relative; min-height: clamp(360px, 36vw, 500px); }
.speak__photo { position: absolute; left: 0; top: 0; width: 78%; height: 86%; object-fit: cover; border-radius: 26px; box-shadow: 0 30px 60px -24px rgba(4, 101, 127, .5); }
.speak__media .speak__sticker { position: absolute; right: 0; bottom: -6%; width: min(40%, 230px); }
.speak__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); margin-top: clamp(40px, 5vw, 64px); }
.speak-point { padding: 26px 26px 22px; border-radius: 22px; background: var(--white); box-shadow: 0 16px 40px -26px rgba(4, 101, 127, .5); }
.speak-point__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal-deep); color: var(--white); }
.speak-point__icon .icon { width: 24px; height: 24px; }
.speak-point__title { margin: 16px 0 8px; font-family: var(--serif); font-size: 22px; color: var(--teal-deep); }
.speak-point p { margin: 0; }
@media (max-width: 900px) {
  .speak__grid { grid-template-columns: 1fr; }
  .speak__media { min-height: 0; height: clamp(300px, 80vw, 440px); }
  .speak__points { grid-template-columns: 1fr; }
}

/* Contact: illustrated location map */
.locmap { background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
.locmap .h2 em { color: var(--teal-soft); }
.locmap__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.locmap__map { margin: 0; padding: 10px; border-radius: 28px; background: var(--white); box-shadow: 0 24px 60px -30px rgba(4, 101, 127, .55); }
.locmap__map img { display: block; width: 100%; height: auto; border-radius: 20px; }
.locmap__card { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 34px); padding-bottom: 150px; border-radius: 28px; background: var(--white); box-shadow: 0 24px 60px -30px rgba(4, 101, 127, .55); }
.locmap__address { margin: 6px 0 20px; font-size: 17px; }
.locmap__near { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.locmap__near li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.locmap__near .icon { flex: none; width: 20px; height: 20px; color: var(--teal-soft); }
.locmap__card .btn-row { margin-top: 22px; }
.locmap__card .locmap__sticker { position: absolute; right: 18px; bottom: -6px; width: 110px; }
@media (max-width: 900px) { .locmap__grid { grid-template-columns: 1fr; } }

/* Campus: students walking toward the map */
.findus__kids { display: flex; align-items: flex-end; gap: 6px; margin-top: 28px; }
.findus__kids .stud-sticker img { width: auto; height: clamp(150px, 16vw, 220px); }
.findus__kids .stud-sticker:nth-child(2) img { animation-delay: -3s; }

/* Home: 3-Day Trial Class popup */
.trial-pop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.trial-pop[hidden] { display: none; }
.trial-pop__backdrop { position: absolute; inset: 0; background: rgba(4, 101, 127, .55); backdrop-filter: blur(3px); animation: trial-fade .3s ease both; }
.trial-pop__dialog { position: relative; display: grid; grid-template-columns: 200px 1fr; align-items: end; width: min(720px, 100%); padding: 34px 34px 30px 10px; border: 3px solid var(--gold); border-radius: 28px; background: var(--white); box-shadow: 0 40px 80px rgba(35, 35, 35, .3); animation: trial-pop .45s var(--ease) both; }
.trial-pop__sticker { align-self: end; margin: -90px 0 -30px; }
.trial-pop__body p { margin: 0 0 6px; }
.trial-pop__body .btn-row { margin-top: 20px; }
.trial-pop__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--mist); color: var(--teal-deep); cursor: pointer; }
.trial-pop__close .icon { width: 16px; height: 16px; }
@keyframes trial-fade { from { opacity: 0; } }
@keyframes trial-pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@media (max-width: 600px) {
  .trial-pop__dialog { grid-template-columns: 1fr; padding: 24px 22px 24px; }
  .trial-pop__sticker { width: 150px; margin: -110px auto 0; }
}
@media (prefers-reduced-motion: reduce) { .trial-pop__backdrop, .trial-pop__dialog { animation: none; } }

/* Fees page */
.fees__heading { margin: clamp(36px, 5vw, 56px) 0 18px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); color: var(--teal-deep); }
.fee-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.fee-card { padding: 26px; border-radius: 22px; background: var(--white); border: 1px solid var(--mist); box-shadow: 0 16px 40px -28px rgba(4, 101, 127, .5); }
.fee-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--teal-deep); }
.fee-card__label { margin: 16px 0 4px; font-weight: 700; }
.fee-card__amount { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); color: var(--teal-deep); }
.fee-card__note { margin: 4px 0 0; font-size: 14px; color: var(--teal-soft); font-weight: 600; }
.fee-table-wrap { overflow-x: auto; border-radius: 20px; box-shadow: 0 16px 40px -28px rgba(4, 101, 127, .5); }
.fee-table, .fee-list { width: 100%; border-collapse: collapse; background: var(--white); font-size: 16px; }
.fee-table th, .fee-table td, .fee-list th, .fee-list td { padding: 16px 20px; border-bottom: 1px solid var(--mist); text-align: left; vertical-align: middle; }
.fee-table thead th { background: var(--teal-deep); color: var(--white); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.fee-table tbody th { font-family: var(--serif); font-weight: 400; color: var(--teal-deep); }
.fee-table tbody th span, .fee-list th span { display: block; margin-top: 2px; font-family: var(--sans); font-size: 13px; color: var(--ink); opacity: .75; }
.fee-table td { font-variant-numeric: tabular-nums; font-weight: 600; }
.fee-table tbody tr:nth-child(even) { background: rgba(220, 238, 241, .45); }
.fee-list th { font-weight: 700; }
.fee-list td { text-align: right; white-space: nowrap; font-weight: 600; color: var(--teal-deep); }
.fees__fine { margin: 12px 0 0; font-size: 14px; font-style: italic; }
.fee-perks { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); margin-top: 28px; }
.fee-perk { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 22px; background: var(--teal-deep); color: var(--white); }
.fee-perk__big { flex: none; font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); color: var(--gold); }
.fee-perk h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; color: var(--white); }
.fee-perk p { margin: 0; font-size: 15px; color: var(--mist); }
.fee-terms { display: grid; gap: 14px; margin: 0; padding-left: 22px; }
.fee-terms li { padding-left: 6px; line-height: 1.65; }
.fee-terms strong { color: var(--teal-deep); }
@media (max-width: 800px) {
  .fee-cards, .fee-perks { grid-template-columns: 1fr; }
  /* Tuition table becomes one card per year group */
  .fee-table-wrap { overflow: visible; box-shadow: none; }
  .fee-table thead { display: none; }
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; }
  .fee-table { background: none; }
  .fee-table tr { margin-bottom: 14px; border-radius: 18px; overflow: hidden; background: var(--white) !important; box-shadow: 0 12px 30px -22px rgba(4, 101, 127, .6); }
  .fee-table tbody th { background: var(--teal-deep); color: var(--white); }
  .fee-table tbody th span { color: var(--mist); opacity: 1; }
  .fee-table td { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; }
  .fee-table td::before { content: attr(data-label); font-weight: 400; font-size: 14px; }
  .fee-list td { white-space: normal; }
}

/* Calendar page: year at a glance */
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 0 0 30px; padding: 0; list-style: none; font-weight: 600; }
.cal-legend li { display: flex; align-items: center; gap: 8px; }
.cal-dot { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 4px; }
.cal-dot--holiday, .cal-day--holiday { background: var(--teal-deep); }
.cal-dot--exam, .cal-day--exam { background: var(--ink); }
.cal-dot--event, .cal-day--event { background: var(--teal-soft); }
.cal-dot--public, .cal-day--public { background: var(--gold); }
.cal-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.cal-month { padding: 16px 16px 18px; border-radius: 20px; background: var(--white); border: 1px solid var(--mist); box-shadow: 0 14px 36px -28px rgba(4, 101, 127, .55); }
.cal-month__name { margin: 0 0 10px; font-family: var(--serif); font-size: 19px; text-align: center; color: var(--teal-deep); }
.cal-month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cal-month__dow { padding-bottom: 4px; font-size: 11px; font-weight: 700; color: var(--teal-soft); }
.cal-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 7px; }
.cal-day[class*="cal-day--"] { color: var(--white); font-weight: 700; cursor: help; }
.cal-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.cal-list { padding: 24px 26px; border-radius: 22px; background: var(--white); box-shadow: 0 16px 40px -28px rgba(4, 101, 127, .5); }
.cal-list--wide { grid-column: 1 / -1; }
.cal-list__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--serif); font-size: 21px; color: var(--teal-deep); }
.cal-list dl { margin: 0; }
.cal-list dl > div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--mist); font-size: 15px; }
.cal-list dt { font-weight: 700; color: var(--teal-deep); white-space: nowrap; }
.cal-list dd { margin: 0; }
.cal-list__cols { column-count: 2; column-gap: 40px; }
.cal-list__cols > div { break-inside: avoid; }
@media (max-width: 1000px) { .cal-months { grid-template-columns: repeat(3, 1fr); } .cal-lists { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .cal-months { grid-template-columns: repeat(2, 1fr); } .cal-lists { grid-template-columns: 1fr; } .cal-list__cols { column-count: 1; } }
@media (max-width: 420px) { .cal-month { padding: 12px 10px 14px; } .cal-month__grid { font-size: 11.5px; gap: 2px; } .cal-list dl > div { grid-template-columns: 96px 1fr; } }


/* Simplified Chinese (/zh/): brand fonts for Latin, Noto SC for Chinese characters */
html[lang="zh-CN"] {
  --serif: "Libre Baskerville", "Noto Serif SC", "Songti SC", serif;
  --sans: "Teachers", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[lang="zh-CN"] body { line-height: 1.8; }
/* Chinese has no true italics; keep the accent colour, drop the slant */
html[lang="zh-CN"] * { font-style: normal !important; }
html[lang="zh-CN"] .eyebrow, html[lang="zh-CN"] .pill-tag, html[lang="zh-CN"] .curriculum-panel__stage, html[lang="zh-CN"] .trial__eyebrow { letter-spacing: .08em; }
html[lang="zh-CN"] :is(h1, h2, h3, .h2, .display-title, .cover-band__title) { letter-spacing: .02em; }

/* A centred line of helpful links under a section (fees, FAQs, campus). */
.link-line { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 16px; }
.link-line a { color: var(--teal-deep); font-weight: 600; }
