/* ==========================================================================
   ITS Education Asia — homepage (v2)
   --------------------------------------------------------------------------
   Brand compliance
   · colour:  --its-navy / --its-blue / --its-sky carry the structure, text
              and CTAs. On the client's request the four About figures take one
              documented category accent each (blue / purple / green / teal),
              picked so every value keeps AA contrast at its own size.
   · align:   one axis only — every heading, block and card is centred.
   · type:    documented scale only. Hero H1 2.2rem/900 · eyebrow .8rem/700 ·
              hero sub 1.05rem/400 · H2 2.5rem/700 (1.75rem ≤540) ·
              H3 1.15rem/700 · card label 1rem/700 uppercase · body 1rem/400 ·
              lead 1.05rem/400 · caption .9rem/400 · CTA banner 1.9rem/800
   · order:   hero → content → CTA banner (no footer, no FAQ, no status band)
   · Poppins only · breakpoints 1200 / 900 / 620 / 540 only
   · one sky-blue primary CTA per section
   · headings wrap only when the line would overflow — never to force a shape

   v2 layout intent
   · one visual mass: a framed hero banner (brand gradient inset by the page
     margin, rounded corners, photograph flush to its inner right edge)
   · only ONE kind of card on the page — and it is not a card
     (the service block is a set of rule-separated rows)
   · two-stage rhythm:  --space-xl (major) / --space-sm (minor)
   · the CTA banner closes the page; terms + copyright ride in its side column
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Primary brand colours */
  --its-navy: #003A63;
  --its-blue: #0067AC;
  --its-sky: #00A4E4;
  --its-orange: #CC4E00;

  /* Hover / dark variants */
  --its-sky-dark: #0086bc;
  --its-blue-dark: #004f83;

  /* Pearson Edexcel accreditation mark. Sampled from the official
     Pearson Edexcel logo (the teal disc of the Pearson monogram).
     Used only for the "Pearson-Accredited" figure. */
  --its-pearson: #007F99;

  /* Neutrals */
  --its-text: #333333;
  --its-muted: #555555;
  --its-muted-2: #666666;
  --its-border: #dde4ed;

  /* Category colours — declared for inner pages, unused on this page */
  --its-cat-navy: #003A63;
  --its-cat-green: #01A355;
  --its-cat-purple: #6B1FAD;
  --its-cat-orange: #CC4E00;
  --its-cat-teal: #168CA1;
  --its-cat-gold: #CEA82C;

  /* Surfaces */
  --its-white: #ffffff;
  --its-light: #f5f8fb;
  --its-tint: #ebf3fa;

  /* Hero gradient: navy → blue → sky, exactly */
  --hero-grad: linear-gradient(120deg,
      var(--its-navy) 0%,
      var(--its-blue) 55%,
      var(--its-sky) 100%);

  /* Content type scale */
  --fs-hero: 2.2rem;
  --fs-hero-mobile: 22px;
  --fs-eyebrow: 0.8rem;
  --fs-hero-sub: 1.05rem;
  --fs-h2: 2.5rem;
  --fs-h2-sm: 1.75rem;
  --fs-h3: 1.15rem;
  --fs-h4: 1rem;
  --fs-body: 1rem;
  --fs-lead: 1.05rem;
  --fs-caption: 0.9rem;
  --fs-cta: 1.9rem;

  /* Interface scale (chrome only: nav, badges, meta) */
  --fs-ui: 0.875rem;
  --fs-badge: 0.7rem;

  /* Rhythm — three stages.
     --space-xl    major turn between different kinds of content (80px/side)
     --space-group sibling sections that belong together (56px/side): the
                   latest-content trio Events / Articles / Social
     --space-sm    minor internal break (40px/side) */
  --space-xl: 80px;
  --space-group: 56px;
  --space-sm: 40px;

  /* Hero banner height — one fluid expression, not a ladder of fixed values
     (see §7a). It only ever raises the canvas above the copy's own height, so
     it can never squeeze a headline onto a second line it did not need. */
  --hero-h: clamp(400px, 42vw, 540px);

  --shell: 1180px;
  --gutter: 32px;
  --header-h: 72px;
  /* Radius system — the only three values allowed on the site.
     card / panel / table / media surface ......  10px
     button / pill / small tag .................   6px
     circular element (icons, list dots) .......  50%
     Focus ring on a custom surface ...........   4px
     Banned: 20px capsule badges, 15px 2px 15px 2px chamfers,
     and square 4px "cards" with no radius at all. */
  --r-card: 10px;
  --r-btn: 6px;
  --r-focus: 4px;
  /* Note box (inner pages): square left edge hugging a 3px blue rule */
  --r-note: 0 8px 8px 0;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--its-text);
  background: var(--its-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--its-blue);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--its-blue-dark);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
figcaption,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--its-sky);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--its-navy);
  color: var(--its-white);
  font-size: var(--fs-caption);
  font-weight: 700;
}

.skip:focus {
  top: 14px;
  color: var(--its-white);
}

/* 3. Layout
   ========================================================================== */
.inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--space-xl) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section--tight {
  padding: var(--space-sm) 0;
}

.section--top {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-sm);
}

.section--light {
  background: var(--its-light);
}

.section--navy {
  background: var(--its-navy);
  color: var(--its-white);
}

/* Sibling sections sit closer than a section break, so the three "latest
   content" blocks read as one group instead of three equal slabs. Each of the
   two shared edges gives --space-group per side, i.e. 56 + 56 = 112px of air,
   against 160px for a real turn. #social keeps a major bottom edge because the
   testimonials are a different kind of content and deserve the pause. */
#events {
  padding-bottom: var(--space-group);
}

#articles {
  padding-top: var(--space-group);
  padding-bottom: var(--space-group);
}

#social {
  padding-top: var(--space-group);
}

/* Eyebrow */
.kicker {
  display: block;
  margin-bottom: 20px;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--its-blue);
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
  color: var(--its-navy);
}

.section--navy .h2 {
  color: var(--its-white);
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.8;
  color: var(--its-muted);
}

.caption {
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--its-muted-2);
}

/* Section heading: always centred — title, and any quiet link beneath it */
.head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  text-align: center;
}

/* No artificial measure: a section title breaks only when it must. */
.head__title {
  max-width: none;
}

/* Kept as a compatibility alias: every heading row is centred now. */
.head--center {
  display: flex;
}

/* 4. Buttons & links
   ========================================================================== */
.btnH {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  background: none;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn .icon {
  width: 1em;
  height: 1em;
}

/* Primary — sky blue. One per section, maximum. */
.btn--primary {
  background: var(--its-sky);
  border-color: var(--its-sky);
  color: var(--its-white);
}

.btn--primary:hover {
  background: var(--its-sky-dark);
  border-color: var(--its-sky-dark);
  color: var(--its-white);
}

/* Outline — used in the header and on light surfaces */
.btn--outline {
  border-color: var(--its-border);
  color: var(--its-navy);
}

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

/* Ghost — hero only, sits on the gradient */
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--its-white);
}

.btn--ghost:hover {
  border-color: var(--its-white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--its-white);
}

/* Light — solid white on the photograph, navy label. This is the reference's
   "Enrol Now" treatment. It is deliberately NOT the sky-blue primary, because
   slide 1's button in the supplied design is white; the sky primary still
   appears once per section elsewhere on the page. */
.btn--light {
  background: var(--its-white);
  border-color: var(--its-white);
  color: var(--its-navy);
}

.btn--light:hover {
  background: var(--its-tint);
  border-color: var(--its-tint);
  color: var(--its-navy);
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: var(--fs-caption);
}

/* Quiet text link with a travelling arrow */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--its-blue);
}

.link .icon {
  width: 0.95em;
  height: 0.95em;
  transition: transform 0.2s var(--ease);
}

.link:hover .icon {
  transform: translateX(4px);
}

.section--navy .link {
  color: var(--its-white);
}

/* 5. Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--its-white);
  border-bottom: 1px solid var(--its-border);
  transition: box-shadow 0.2s var(--ease);
}

.header[data-stuck="true"] {
  box-shadow: 0 1px 16px rgba(0, 58, 99, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  flex: none;
}

.brand img {
  width: 124px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  color: var(--its-text);
  font-size: var(--fs-ui);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav__link .icon {
  width: 11px;
  height: 11px;
  opacity: 0.45;
  transition: transform 0.2s var(--ease);
}

.nav__item:hover > .nav__link,
.nav__item:focus-within > .nav__link {
  color: var(--its-blue);
  border-bottom-color: var(--its-sky);
}

.nav__item:hover > .nav__link .icon,
.nav__item:focus-within > .nav__link .icon {
  transform: rotate(180deg);
  opacity: 1;
}

/* Mega panel */
.nav__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: 720px;
  padding: 28px 30px;
  background: var(--its-white);
  border: 1px solid var(--its-border);
  border-radius: var(--r-card);
  box-shadow: 0 20px 44px rgba(0, 58, 99, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
    visibility 0.18s var(--ease);
}

.nav__item:hover > .nav__panel,
.nav__item:focus-within > .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 36px;
}

.mega--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mega__group > span {
  display: block;
  margin-bottom: 12px;
  font-size: var(--fs-badge);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--its-blue);
}

.mega__group li + li {
  margin-top: 3px;
}

.mega__group a {
  display: block;
  padding: 5px 0;
  color: var(--its-muted);
  font-size: var(--fs-ui);
  line-height: 1.5;
}

.mega__group a:hover {
  color: var(--its-blue);
}

/* Single-column panel */
.nav__panel--list {
  width: 300px;
  padding: 18px 26px;
}

.nav__panel--list a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--its-border);
  color: var(--its-muted);
  font-size: var(--fs-ui);
}

.nav__panel--list li:last-child a {
  border-bottom: 0;
}

.nav__panel--list a:hover {
  color: var(--its-blue);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--its-border);
  border-radius: var(--r-btn);
  background: var(--its-white);
  color: var(--its-navy);
}

.burger .icon {
  width: 21px;
  height: 21px;
}

/* 6. Mobile drawer
   ========================================================================== */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 30, 52, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  width: min(380px, 88vw);
  background: var(--its-white);
  transform: translateX(101%);
  transition: transform 0.26s var(--ease);
  overscroll-behavior: contain;
}

body[data-drawer="open"] .scrim {
  opacity: 1;
  visibility: visible;
}

body[data-drawer="open"] .drawer {
  transform: none;
}

body[data-drawer="open"] {
  overflow: hidden;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--its-border);
}

.drawer__head img {
  width: 112px;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--its-border);
  border-radius: var(--r-btn);
  background: none;
  color: var(--its-navy);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 24px;
}

.drawer__item {
  border-bottom: 1px solid var(--its-border);
}

.drawer__item > summary,
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 0;
  color: var(--its-text);
  font-size: var(--fs-body);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.drawer__item > summary::-webkit-details-marker {
  display: none;
}

.drawer__item > summary .icon {
  width: 15px;
  height: 15px;
  color: var(--its-blue);
  transition: transform 0.2s var(--ease);
}

.drawer__item[open] > summary .icon {
  transform: rotate(180deg);
}

.drawer__sub {
  padding: 0 0 16px 14px;
  border-left: 2px solid var(--its-tint);
}

.drawer__sub a {
  display: block;
  padding: 9px 0;
  color: var(--its-muted);
  font-size: var(--fs-caption);
}

.drawer__foot {
  display: grid;
  gap: 10px;
  padding: 16px 20px 26px;
  border-top: 1px solid var(--its-border);
}

/* 7. Hero — ONE canvas, slides move inside it
   ========================================================================== */
.hero {
  padding-top: var(--gutter);
  background: var(--its-white);
}

/* The canvas: a single fixed frame. Slides translate inside it, so the
   frame never changes size and nothing peeks at the edges. */
.stage {
  position: relative;
  background: var(--hero-grad);
  border-radius: var(--r-card);
  overflow: hidden;
}

.stage__track {
  display: flex;
  transition: transform 0.5s var(--ease);
  will-change: transform;
  /* Horizontal gestures belong to the carousel, vertical ones to the page. */
  touch-action: pan-y;
  cursor: grab;
}

.stage__track:active {
  cursor: grabbing;
}

/* The canvas takes an inset ring, so the focus box follows its card radius */
.stage__track:focus-visible {
  outline-offset: -4px;
  border-radius: var(--r-focus);
}

.stage button:focus{
  outline:none;
}

/* 7a. Slide — the photograph IS the banner, copy sits on top of it
   --------------------------------------------------------------------------
   No left/right split: the photograph fills the whole canvas and the copy is
   layered over it, so each slide reads as one image rather than image-plus-
   column. A navy scrim keeps AA contrast for white text on any photograph.

   Height (v3.2) — the canvas is sized by ONE fluid expression, --hero-h, plus
   the copy's own height as a hard floor. It is a notch of `clamp()`, not a
   ladder of fixed per-breakpoint values, because the old ladder was neither
   smooth nor monotonic (460px at 900px wide, then 500px at 620px) and at
   phone widths it forced the banner into a TALLER-than-wide box. The photo is
   3500 x 1382 (2.53:1), so a portrait box makes object-fit: cover throw away
   most of the picture. Because the floor can only ever equal or exceed the
   copy's real height, shrinking the banner can never break a headline. */
.slide {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  min-width: 0;
  min-height: var(--hero-h);
}

.slide__media {
  position: absolute;
  inset: 0;
  min-height: 0;
  background: var(--its-navy);
}

.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Framed slightly above centre by default: the subject usually sits in the
     upper half of a photograph, so biasing up keeps heads in frame when the
     band is short. --hero-focus (declared on .slide) lets one slide override
     the framing without touching this rule — see the focus utilities below. */
  object-position: var(--hero-focus, center 42%);
  /* A swipe must not start an image drag instead */
  -webkit-user-drag: none;
}

/* --- Photo framing utilities -----------------------------------------------
   Only the vertical band matters, because the canvas is always cropped
   horizontally. Choose the one that keeps the faces in shot:

       <article class="slide">                     centre-upper  (default)
       <article class="slide slide--focus-top">    top band
       <article class="slide slide--focus-mid">    dead centre
       <article class="slide slide--focus-bottom"> bottom band

   If a new photo puts its subject at the left or right, use the photo itself:
   recrop it, rather than changing these rules. Nothing here needs editing when
   a slide is added or removed. */
.slide--focus-top {
  --hero-focus: center top;
}

.slide--focus-mid {
  --hero-focus: center center;
}

.slide--focus-bottom {
  --hero-focus: center bottom;
}

/* Neutralise a blue cast baked into the FILE
   --------------------------------------------------------------------------
   Measured: images/hero-photo.webp has a mean RGB of 67,112,161 — blue exceeds
   red by 94. Every other photo on the page is neutral (ig-1 102,102,93 · office
   112,110,106 · ig-2 141,135,121). So the persistent blue wash over slide 1 is
   NOT only the scrim: a strong blue tint is already baked into that JPEG-origin
   asset, and no amount of scrim tuning can remove it.

   The filter below pulls the cast back toward neutral (saturation down, a
   slight warm shift, small brightness lift) so the classroom reads in its own
   colours. This is a pragmatic correction of a flawed source file, not a
   substitute for a good photograph: the proper fix is to re-export that image
   without the blue overlay, at which point this whole rule can be deleted.

   Applied per-slide via a class, so the three neutral photos are untouched. */
.slide--neutralise .slide__media img {
  filter: saturate(0.4) brightness(1.12) sepia(0.35);
}

/* Scrim (v3.4) — NO flat overlay.
   --------------------------------------------------------------------------
   The photograph now keeps its own colour. Instead of one gradient laid across
   the whole frame (the old rule put 46–76% navy over every pixel), the scrim is
   placed only where the copy actually sits, and fades to nothing on the far
   side. That is the difference between "a dark sheet over the photo" and "the
   photo, with a shadow behind the words".

   Each alignment gets its own shape:
     · centred  → a soft pool behind the middle of the frame
     · left     → darkens from the left edge, clears by ~88%
     · right    → mirrored

   The fallback below (transparent) is what an unclassed slide gets, so a new
   slide is never darkened unless it asks for a scrim — the alignment rules
   immediately below supply one. */
.slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
}

/* Centred copy: a soft pool behind the middle of the frame only.
   The ellipse is deliberately NARROWER than the frame (52% × 80%), so it
   reaches zero before the left and right edges — measured alpha at the frame
   edges is ~0.03, i.e. effectively clear. An earlier, wider ellipse (72%) still
   left 0.21–0.28 navy at both edges, which is the "one constant dark layer"
   the client asked to remove. Peak alpha stays modest because the copy's own
   text-shadow carries the rest. */
.slide:not(.slide--start):not(.slide--end) .slide__media::after {
  background: radial-gradient(ellipse 52% 80% at 50% 50%,
      rgba(0, 58, 99, 0.54) 0%,
      rgba(0, 58, 99, 0.42) 48%,
      rgba(0, 58, 99, 0.14) 82%,
      rgba(0, 58, 99, 0) 100%);
}

/* Left-aligned copy — a LIGHT wash whose extent is matched to the text, not a
   dark sheet across the frame.

   The supplied references settle the intent: the photograph stays bright and
   readable, and legibility comes from a thin tint plus the text's own shadow.
   Two earlier revisions here were wrong in opposite directions — the original
   rule laid a 46–76% vertical gradient over EVERY pixel (the "dark layer" the
   client asked to remove), and an over-eager fix then faded to nothing at 65%
   while the headline still ran to ~70%, dropping it to 3.06:1.

   The tint therefore holds ~0.50–0.55 across the copy, then feathers out. The
   right-hand third of the photograph is fully untouched, and the copy keeps a
   comfortable margin over the 3:1 large-text threshold. */
.slide--start .slide__media::after {
  background: linear-gradient(90deg,
      rgba(0, 58, 99, 0.55) 0%,
      rgba(0, 58, 99, 0.53) 46%,
      rgba(0, 58, 99, 0.48) 66%,
      rgba(0, 58, 99, 0.22) 80%,
      rgba(0, 58, 99, 0.03) 90%,
      rgba(0, 58, 99, 0) 95%);
}

/* Right-aligned copy: the mirror of the above. */
.slide--end .slide__media::after {
  background: linear-gradient(270deg,
      rgba(0, 58, 99, 0.55) 0%,
      rgba(0, 58, 99, 0.53) 46%,
      rgba(0, 58, 99, 0.48) 66%,
      rgba(0, 58, 99, 0.22) 80%,
      rgba(0, 58, 99, 0.03) 90%,
      rgba(0, 58, 99, 0) 95%);
}

/* Keep the copy inside the tinted region so the photograph's far side stays
   untouched. 740px is the measured width at which the IAL headline holds the
   reference's TWO lines; min() lets the cap track the canvas instead of
   overflowing a narrow one. */
.slide--start .slide__copy > *,
.slide--end .slide__copy > * {
  max-width: min(740px, 66%);
}

.slide__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  /* Default is centred — the documented default alignment. */
  align-items: center;
  justify-content: center;
  text-align: center;
  /* No height of its own: the copy is a passenger inside the canvas and simply
     fills it. Giving the copy a second min-height was the reason a phone
     banner could not shrink — the canvas followed whichever floor was larger. */
  padding: 72px 48px;
  color: var(--its-white);
}

/* --- Copy alignment variants -----------------------------------------------
   The banner is NOT always centred. Each slide picks one of three alignments
   with a class on the <article>, so a future banner change is an HTML edit and
   never a CSS edit:

       <article class="slide">                 centred   (default)
       <article class="slide slide--start">    left
       <article class="slide slide--end">      right

   Only the horizontal axis changes: every variant stays vertically centred, so
   the copy block keeps sitting on the photograph's optical middle line. The
   paragraph measure and the button row follow the same alignment, otherwise a
   left-aligned headline over a centred paragraph reads as a mistake. */
.slide--start .slide__copy {
  align-items: flex-start;
  text-align: left;
}

.slide--end .slide__copy {
  align-items: flex-end;
  text-align: right;
}

.slide--start .slide__actions,
.slide--end .slide__actions {
  justify-content: flex-start;
}

.slide--end .slide__actions {
  justify-content: flex-end;
}

/* Keep a breathing gap between the copy block and the carousel arrows, which
   sit 16px in from each side at 42px wide. On a narrow canvas a left/right
   aligned slide would otherwise run underneath them. */
.slide--start .slide__copy {
  padding-left: max(48px, 78px);
}

.slide--end .slide__copy {
  padding-right: max(48px, 78px);
}

/* Copy entrance: each line rises into place as its slide becomes active.
   The attribute flips on every move, so the animation replays per slide. */
@keyframes slide-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.slide[aria-hidden="false"] .hero__eyebrow,
.slide[aria-hidden="false"] .slide__kicker,
.slide[aria-hidden="false"] .slide__h1,
.slide[aria-hidden="false"] .slide__title,
.slide[aria-hidden="false"] .slide__intake,
.slide[aria-hidden="false"] .slide__logo,
.slide[aria-hidden="false"] .slide__text,
.slide[aria-hidden="false"] .slide__actions {
  animation: slide-rise 0.62s cubic-bezier(0.22, 0.68, 0.28, 1) both;
}

.slide[aria-hidden="false"] .hero__eyebrow,
.slide[aria-hidden="false"] .slide__kicker {
  animation-delay: 0.04s;
}

.slide[aria-hidden="false"] .slide__h1,
.slide[aria-hidden="false"] .slide__title {
  animation-delay: 0.14s;
}

.slide[aria-hidden="false"] .slide__intake {
  animation-delay: 0.22s;
}

.slide[aria-hidden="false"] .slide__logo {
  animation-delay: 0.22s;
}

.slide[aria-hidden="false"] .slide__text {
  animation-delay: 0.26s;
}

.slide[aria-hidden="false"] .slide__actions {
  animation-delay: 0.38s;
}

.slide__kicker {
  font-size: var(--fs-badge);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/*
  Legibility WITHOUT a heavy scrim (v3.4).
  The photograph now keeps its own colour, so the copy carries its own shadow
  instead of sitting under a dark sheet. Two very soft passes — a tight one for
  letter edges, a wide one for the block against a busy area — read as a
  drop shadow rather than a glow, and stay invisible on quiet backgrounds.
*/
.slide__h1,
.slide__title,
.slide__kicker,
.slide__intake,
.slide__text {
  text-shadow:
    0 1px 2px rgba(0, 24, 44, 0.55),
    0 2px 14px rgba(0, 24, 44, 0.42);
}

/* Intake line — the gold accent from the supplied reference.
   Uses the documented category-gold token, which until now was declared for
   inner pages only. It is the one place on this page where a fourth colour
   appears, and it exists because the reference asks for it. To keep the
   homepage strictly navy/blue/sky, change this one declaration to
   var(--its-sky) or var(--its-white) — nothing else has to move. */
.slide__intake {
  margin: 4px 0 10px;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--its-cat-gold);
}

/* White plaque carrying the press logo, as in the reference.
   --------------------------------------------------------------------------
   The plaque is OPAQUE white, and that is a correction rather than a style
   choice. It used to be rgba(255, 255, 255, 0.94), which composites over the
   dark banner to roughly rgb(238, 238, 240) — measurably NOT the same white as
   the logo artwork, whose background is pure rgb(255, 255, 255) baked into the
   PNG (measured: that white covers 80.6% of as-seen-hong-kong-living.png).

   Two whites side by side read as an inner rectangle floating on a grey card,
   which is exactly what the client reported. Matching the plaque to the
   artwork's own white removes the seam completely, because there is then only
   one white in the composition.

   This matters for the whole press band, not just this logo: four of the six
   supplied marks are raster files with a white background baked in, so opaque
   white is the only surface on which all of them sit seamlessly. A translucent
   plaque can never match them — see README §1 for the same reasoning. */
.slide__logo {
  display: inline-flex;
  align-items: center;
  margin: 16px 0 14px;
  padding: 16px 26px;
  background: var(--its-white);
  border-radius: var(--r-card);
  /* A soft seat instead of a floating slab. The reference carries a minimal
     shadow; without one the plaque's pure white edge cuts hard against the
     photograph, which is the other half of the "abrupt" impression. */
  box-shadow: 0 6px 18px rgba(0, 24, 44, 0.18);
}

/* Enlarged on the client's request: the mark was small enough to read as a
   footnote on its own plaque. The crop is ink-height driven (--ink), so raising
   it scales the artwork and its clear space together — nothing is stretched,
   and the surrounding padding keeps a constant optical proportion. */
.slide__logo .logo-crop {
  --ink: 58px;
}

.hero__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.slide__h1 {
  margin: 14px 0 16px;
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--its-white);
}

.slide__title {
  margin: 12px 0 10px;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--its-white);
}

.slide__text {
  max-width: 46ch;
  font-size: var(--fs-hero-sub);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.87);
}

.slide__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* --- Open House poster slide (the client's supplied artwork) ----------------
   The artwork is a duotone poster: a bright classroom filling the left half and
   a deep-blue Victoria Harbour on the right. That split decides where the copy
   can go, and the numbers are not close:

     classroom half, x 4-44%   mean luminance 0.371 · p90 0.762 · max 0.972
                               white text over it reaches 1.29:1 — invisible
     harbour,       x 70-80%   white text 4.64:1  (p90 4.11:1)
     harbour,       x 90-100%  white text 5.42:1  (p90 5.08:1)

   So the copy is right-aligned onto the water and capped at 520px, which keeps
   every word clear of the classroom. It is NOT centred: the centre of this
   picture is the blend where the classroom meets the skyline, the busiest part
   of the frame for type.

   The scrim is lighter than .slide--end's, because the artwork already supplies
   its own dark base on that side — it only needs to settle the skyline detail
   immediately behind the words. The stops feather to nothing by 62% from the
   right, leaving the consultants and the family on the left completely
   untouched. A poster you cannot see is not a poster. */
.slide--poster .slide__copy > * {
  max-width: 520px;
}

.slide--poster .slide__media::after {
  background: linear-gradient(270deg,
      rgba(0, 58, 99, 0.5) 0%,
      rgba(0, 58, 99, 0.48) 40%,
      rgba(0, 58, 99, 0.4) 62%,
      rgba(0, 58, 99, 0.12) 82%,
      rgba(0, 58, 99, 0) 96%);
}

.poster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  text-align: right;
}

.poster__lead {
  font-size: var(--fs-lead);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.poster__title {
  margin: 2px 0 16px;
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--its-white);
}

.poster__list {
  display: grid;
  gap: 9px;
  width: 100%;
}

/* row-reverse puts the tick on the right EDGE, so the three lines keep one
   clean ragged-left edge instead of a column of stray ticks hanging in space. */
.poster__list li {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--fs-caption);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
}

.poster__list .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex: none;
  color: var(--its-sky);
  stroke-width: 2.6;
}

.poster__when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px 14px;
  width: 100%;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.poster__date {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--its-white);
}

.poster__time {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Same self-carrying shadow as the other slides, so the poster never depends on
   the scrim alone for legibility. */
.poster__lead,
.poster__title,
.poster__list li,
.poster__when {
  text-shadow:
    0 1px 2px rgba(0, 24, 44, 0.55),
    0 2px 14px rgba(0, 24, 44, 0.42);
}

/* The poster's children are not .slide__h1/.slide__text, so they need the same
   staggered entrance the other slides get. */
.slide[aria-hidden="false"] .poster > * {
  animation: slide-rise 0.62s cubic-bezier(0.22, 0.68, 0.28, 1) both;
}

.slide[aria-hidden="false"] .poster__lead {
  animation-delay: 0.04s;
}

.slide[aria-hidden="false"] .poster__title {
  animation-delay: 0.12s;
}

.slide[aria-hidden="false"] .poster__list {
  animation-delay: 0.2s;
}

.slide[aria-hidden="false"] .poster__when {
  animation-delay: 0.28s;
}

/* Arrows sit on the canvas itself, vertically centred */
.stage__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(0, 40, 70, 0.32);
  color: var(--its-white);
  backdrop-filter: blur(3px);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.stage__nav:hover {
  background: rgba(0, 40, 70, 0.62);
  border-color: var(--its-white);
}

.stage__nav .icon {
  width: 18px;
  height: 18px;
}

.stage__nav--prev {
  left: 16px;
}

.stage__nav--prev .icon {
  transform: rotate(90deg);
}

.stage__nav--next {
  right: 16px;
}

.stage__nav--next .icon {
  transform: rotate(-90deg);
}

/* Dots: centred under the canvas, still part of the same unit.
   Each button is a fixed 26px target; the visible dot is drawn by ::before,
   so the tappable areas sit side by side instead of overlapping. */
.stage__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 18px;
}

.stage__dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}

.stage__dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--its-border);
  transition: background-color 0.2s var(--ease), width 0.2s var(--ease),
    border-radius 0.2s var(--ease);
}

.stage__dot:hover::before {
  background: var(--its-muted-2);
}

.stage__dot[aria-current="true"]::before {
  width: 26px;
  border-radius: var(--r-btn);
  background: var(--its-sky);
}

/* 7b. Press band — "As seen in…"
   ==========================================================================
   A white band on purpose. Four of the six supplied logos are raster files
   with a pure white background baked into the artwork, so white is the only
   surface on which all six read cleanly without redrawing anyone's mark.

   Each logo is cropped to its own measured ink box. The wrapper's height IS
   the logo's ink height, and its aspect-ratio IS the ink aspect, so the six
   marks share one optical size even though they come from six sources with
   wildly different padding. The crop is done with percentages so no image
   file has to be edited:
       wrapper width  ...... 100 / fw      (fw = ink width  ÷ image width)
       wrapper height ...... 100 / fh      (fh = ink height ÷ image height)
       img left ....... -x0 / fw × 100%    (x0 = ink left  ÷ image width)
       img top ........ -y0 / fh × 100%    (y0 = ink top   ÷ image height)
   Measure again if a logo file is ever replaced. */
.logos {
  padding: var(--space-sm) 0 0;
  background: var(--its-white);
  overflow: hidden;
}

/* Sentence case, as requested — only the leading capital, no uppercase.
   Small caps tracking is dropped with it, since it only exists to make
   uppercase legible. */
.logos__title {
  margin-bottom: 26px;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--its-muted-2);
}

.logos__viewport {
  /* The track is wider than the page, so the frame owns the clipping. */
  overflow: hidden;
  /* Soften both ends so logos enter and leave instead of being cut off. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.logos__track {
  display: flex;
  width: max-content;
  /* The six marks are rendered four times and shifted by exactly one group
     width (25% of the track). Three groups always remain in view, so the loop
     is seamless on wide monitors instead of running out of artwork and showing
     an empty gap at the right edge. */
  animation: logos-scroll 34s linear infinite;
}

/* Reading a logo takes a moment — let it stand still under the pointer. */
.logos:hover .logos__track,
.logos:focus-within .logos__track {
  animation-play-state: paused;
}

@keyframes logos-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-25%);
  }
}

.logos__group {
  display: flex;
  align-items: center;
  gap: 60px;
  /* Trailing gap keeps the seam identical to every inner gap. */
  padding-right: 60px;
}

.logos__item {
  flex: none;
}

/* The crop frame. --ink sets the artwork's height; the width follows the
   artwork's own aspect, so nothing is ever stretched. */
.logo-crop {
  position: relative;
  display: block;
  height: var(--ink, 30px);
  aspect-ratio: var(--crop-ar);
  overflow: hidden;
}

.logo-crop img {
  position: absolute;
  width: var(--crop-w);
  height: auto;
  max-width: none;
  left: var(--crop-x);
  top: var(--crop-y);
  aspect-ratio:unset;
}

/* Hong Kong Living — 200×200, ink 174×60 (ar 2.90) */
.logo-crop--hkl {
  --ink: 30px;
  --crop-ar: 2.9;
  --crop-w: 114.94%;
  --crop-x: -8.05%;
  --crop-y: -123.33%;
}

/* AROUND DB — 225×225, ink 187×134 (ar 1.40). A square monogram needs a
   little more height to carry the same visual weight as a wordmark. */
.logo-crop--adb {
  --ink: 36px;
  --crop-ar: 1.4;
  --crop-w: 120.32%;
  --crop-x: -11.23%;
  --crop-y: -39.56%;
}

/* Little Steps — 1004×591, ink 582×244 (ar 2.39). Already transparent. */
.logo-crop--ls {
  --ink: 30px;
  --crop-ar: 2.39;
  --crop-w: 172.53%;
  --crop-x: -36.09%;
  --crop-y: -72.12%;
}

/* Hong Kong Talent Engage — 554×554, ink 395×201 (ar 1.97) */
.logo-crop--hkte {
  --ink: 32px;
  --crop-ar: 1.97;
  --crop-w: 140.25%;
  --crop-x: -20.25%;
  --crop-y: -88.07%;
}

/* Expat Parent — 447×447, ink 416×72 (ar 5.78). A long thin wordmark reads
   far larger than a compact one at the same height, so it takes less. */
.logo-crop--ep {
  --ink: 24px;
  --crop-ar: 5.78;
  --crop-w: 107.46%;
  --crop-x: -3.85%;
  --crop-y: -266.61%;
}

/* Expat Living Hong Kong — 414×130, ink 381×88 (ar 4.33) */
.logo-crop--elhk {
  --ink: 25px;
  --crop-ar: 4.33;
  --crop-w: 108.66%;
  --crop-x: -4.73%;
  --crop-y: -31.82%;
}

/* 8. Service block — three rows, image LEFT / content RIGHT
   ==========================================================================
   Rebuilt on the client's request: the old centred stack (number, title, then
   a two-column link list) made three different services look like one list.
   Each row is now a single horizontal card — a 4:3 photograph on the left and
   the service on the right — so the eye reads photo → heading → items in one
   pass. Deliberately quiet: one hairline border, no shadow at rest, and the
   check marks carry the only colour besides the number. */
.paths {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.path {
  display: grid;
  /* Fixed media column so the three photographs line up in one vertical axis,
     which is what makes the rows scan as a set rather than three cards. */
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 22px;
  background: var(--its-white);
  border: 1px solid var(--its-border);
  border-radius: var(--r-card);
  text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.path:hover {
  border-color: var(--its-blue);
  box-shadow: 0 10px 28px rgba(0, 58, 99, 0.08);
}

/* 4:3 keeps the classroom and group photos honest without a tall crop. The
   inner radius steps down to --r-btn (6px) so a 10px corner is not nested in
   another 10px corner. */
.path__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--its-tint);
  border-radius: var(--r-btn);
}

.path__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Crop focus, measured rather than eyeballed ---------------------------------
   The three supplied photographs have three different shapes, and the media
   box is 4:3 on desktop but 16:9 once the row stacks at 900px. `cover` centres
   by default, which is wrong for two of them:

     source-classroom.png    1024x819 (1.250)  -> 4:3 keeps 93.8% of the height,
                                                 16:9 keeps 70%.  A 5% upward
                                                 bias drops dead carpet from the
                                                 bottom and keeps the teacher and
                                                 the whiteboard.
     source-reception.jpg    1024x681 (1.504)  -> 4:3 crops WIDTH only (5.7% off
                                                 each side, both faces safe), but
                                                 16:9 crops height and the young
                                                 man's hair starts at 7.3% while a
                                                 centred crop only reveals from
                                                 7.7% — it clips his head.  A 30%
                                                 bias reveals from 4.6%.
     source-consultation.png  765x1024 (0.747) -> portrait in a landscape box, so
                                                 4:3 keeps only 56% of the height
                                                 and 16:9 only 42%.  Centring puts
                                                 the three heads at 43-73% of the
                                                 box (bottom-heavy, bodies dominant);
                                                 a 60% bias lifts them to 35-65%,
                                                 which keeps every head plus the
                                                 laptop and documents for context.

   The values are therefore per-image, not per-breakpoint: because cover scales
   proportionally, one percentage holds at every width.  The third photograph
   stays significantly cropped — that is inherent to putting a portrait frame
   in a landscape slot, and the alternative (a taller box on that row alone)
   would break the vertical alignment the three rows depend on. */
.path__img--classroom {
  object-position: center 45%;
}

.path__img--reception {
  object-position: center 20%;
}

.path__img--consultation {
  object-position: center 60%;
}

.path__body {
  min-width: 0;
}

/* The number is reference information, not decoration: it gets the badge step
   and the sky accent, matching how the events cards label themselves. */
.path__num {
  display: inline-block;
  margin-bottom: 10px;
  font-size: var(--fs-badge);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--its-sky);
}

/* The row titles are plain headings now, not links and not arrows — the three
   entry points to the main service pages were removed on request. Each service
   page is still reachable from the header navigation, and the admissions page
   specifically via the "School Search Hong Kong & Singapore" item. */
.path__title {
  font-size: var(--fs-h2-sm);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--its-navy);
}

/* Two tidy columns of links, left-aligned like the rest of the row. Each item
   carries a small check, matching the reference.

   Hover affordance (v3.3) — deliberately TWO cues, matching the social chips
   in §12 so one page teaches one idea:
       .socials__link:hover  →  background: --its-tint  +  colour shift
       .path__links a:hover  →  background: --its-tint  +  colour shift

   v3.2 briefly used four cues (tint + underline + label colour + check colour)
   and that was one too many: the underline repeated what the tint already said
   and made a quiet list shout on mouse-over. The underline and the check-mark
   colour change are gone; the check stays --its-sky at rest AND on hover, so it
   reads as a fixed accent rather than a second animation.

   The tint hugs the label (justify-self: start) instead of stretching the full
   grid column: a full-width bar looked like a highlighted table row, while the
   compact block reads as the same family as the circular social chips.

   The pill is drawn with padding pulled straight back by an equal negative
   margin, so the TEXT keeps its exact position and every label stays on the
   same left axis as the h3 above it — only the tinted box extends outward. The
   row gap is 14px to absorb the −6px top/bottom bleed, keeping a 2px seam
   between two pills instead of letting them overlap. */
.path__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--its-border);
}

.path__links a {
  display: flex;
  align-items: flex-start;
  justify-self: start;
  max-width: 100%;
  gap: 8px;
  margin: -6px -10px;
  padding: 6px 10px;
  border-radius: var(--r-btn);
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--its-muted);
  /* Same duration and easing as .socials__link, so both hovers feel identical. */
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.path__links .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  flex: none;
  color: var(--its-sky);
  stroke-width: 2.4;
}

.path__links a:hover,
.path__links a:focus-visible {
  background: var(--its-tint);
  color: var(--its-blue);
}

/* 9. About — who we are, with counting stats
   The intro measure is deliberately wide and centred: the client found the
   narrow 70ch column produced awkward, ragged line breaks. */
.about__intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about__text {
  margin-top: 22px;
  font-size: var(--fs-lead);
  line-height: 1.85;
  text-wrap: pretty;
  color: var(--its-muted);
}

/* 9. Stats — four figures, uniform size
   Used once, directly under the About description, as the client asked. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: var(--space-sm);
  text-align: center;
}

/* No rule, divider or tinted panel — the figures stand on white, matching
   the supplied reference. */

/* Every value sits in the same two-line-tall box, bottom-aligned, so the four
   captions share one baseline even though "Pearson-Accredited" wraps. */
.stats li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stats strong {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 2.3em;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
  color: var(--its-navy);
}

/* All four figures are deliberately uniform: after review the screenshot showed
   566985 at the H3 step and Pearson-Accredited at weight 800, so neither class
   is needed any more and both were removed from the markup. */
.stats span {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--its-muted-2);
}

/* One accent per figure. Pearson-Accredited takes the Pearson Edexcel
   accreditation teal (#007F99), sampled from the official logo as requested.
   The other three are documented palette colours, re-picked so no two read as
   the same hue: the original blue #0067AC sat only ~11° from that teal and
   looked like a duplicate, so 20+ moves to brand navy instead.
   Contrast on white (large bold text needs 3:1): navy 11.7 · purple 8.7 ·
   green 3.3 · teal 4.7 — all pass, green being the lightest of the four. */
.stats__a strong {
  color: var(--its-navy);
}

.stats__b strong {
  color: var(--its-cat-purple);
}

.stats__c strong {
  color: var(--its-cat-green);
}

.stats__d strong {
  color: var(--its-pearson);
}

/* 10. Why choose us — the four differentiators, as cards
   Presented as cards after review: four flat columns were hard to scan. */
.feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 30px 36px;
  background: var(--its-white);
  border: 1px solid var(--its-border);
  border-radius: var(--r-card);
  text-align: center;
  transition: border-color 0.18s var(--ease), box-shadow 0.2s var(--ease);
}

.feat:hover {
  border-color: var(--its-blue);
  box-shadow: 0 10px 28px rgba(0, 58, 99, 0.09);
}

/* Icon in a soft tinted disc, so the four cards share one internal rhythm */
.feat__icon {
  width: 22px;
  height: 22px;
  padding: 13px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--its-tint);
  color: var(--its-blue);
  stroke-width: 1.7;
}

.feat__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.35;
  color: var(--its-navy);
}

.feat__text {
  font-size: var(--fs-caption);
  line-height: 1.7;
  color: var(--its-muted);
}

/* 11. Instagram
   ========================================================================== */
.ig {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* Instagram publishes 4:5 portrait posts, so the tile follows the real
   aspect ratio instead of cropping each post into a square. */
.ig-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--its-tint);
}

.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.ig-tile__veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  background: rgba(0, 58, 99, 0.62);
  color: var(--its-white);
  font-size: var(--fs-caption);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}

.ig-tile__veil .icon {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
}

.ig-tile:hover .ig-tile__veil,
.ig-tile:focus-visible .ig-tile__veil {
  opacity: 1;
}

.ig-tile:hover img {
  transform: scale(1.03);
}

.ig__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--its-border);
  text-align: center;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

/*
  Icon-only platform chips.
  The marks are the official simple-icons files (see images/social/), painted
  black by the source. Rather than ship a second tinted copy or hand-tint with
  filters, each SVG is used as a CSS mask and the visible colour comes from
  background-color: currentColor — so the icons follow the token palette.
*/
.socials__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  /* An icon circle is the one place 50% is permitted. */
  border-radius: 50%;
  color: var(--its-navy);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.socials__link:hover,
.socials__link:focus-visible {
  background: var(--its-tint);
  color: var(--its-sky);
}

.socials__ico {
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.socials__ico--instagram {
  -webkit-mask-image: url("../images/social/instagram.svg");
  mask-image: url("../images/social/instagram.svg");
}

.socials__ico--xiaohongshu {
  -webkit-mask-image: url("../images/social/xiaohongshu.svg");
  mask-image: url("../images/social/xiaohongshu.svg");
}

.socials__ico--facebook {
  -webkit-mask-image: url("../images/social/facebook.svg");
  mask-image: url("../images/social/facebook.svg");
}

.socials__ico--linkedin {
  -webkit-mask-image: url("../images/social/linkedin.svg");
  mask-image: url("../images/social/linkedin.svg");
}

/* 12. Events & articles — the same card used twice
   Framework per card: tag → title → exactly two fact rows, anchored to the
   bottom. Because the facts are pushed down with margin-top:auto, every card
   lines up at the same height whatever length its title runs to. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.cardx {
  background: var(--its-white);
  border: 1px solid var(--its-border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), box-shadow 0.2s var(--ease);
}

.cardx:hover {
  border-color: var(--its-blue);
  box-shadow: 0 10px 28px rgba(0, 58, 99, 0.09);
}

.cardx__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.cardx__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--its-tint);
  border-bottom: 1px solid var(--its-border);
}

.cardx__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.cardx:hover .cardx__media img {
  transform: scale(1.03);
}

.cardx__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 22px 22px 26px;
  text-align: center;
}

.cardx__tag {
  margin-bottom: 10px;
  font-size: var(--fs-badge);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--its-sky);
}

.cardx__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.4;
  color: var(--its-navy);
  transition: color 0.18s var(--ease);
}

.cardx:hover .cardx__title {
  color: var(--its-blue);
}

/* The fact block: exactly two rows, pushed to the bottom of the card body so
   all three cards line up regardless of how long each title runs.
   The rows are centred as a group, but wrapped text stays left-aligned
   because a centred multi-line address is much harder to read. */
.cardx__facts {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
}

.cardx__facts li {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  font-size: var(--fs-caption);
  line-height: 1.5;
  text-align: left;
  color: var(--its-muted-2);
}

.cardx__facts .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: none;
  color: var(--its-blue);
}

/* The location is sometimes one line ("Online") and sometimes two (a street
   address). Reserving two lines keeps the date row level across all three
   cards instead of letting a short venue pull its card's facts upward. */
.cardx__facts li + li {
  min-height: 3em;
}

/* 11b. Articles — the source site's .post-module, rebuilt in CSS
   ==========================================================================
   Mirrors https://itseducation.asia behaviour, read out of the supplied page
   source rather than guessed:
     · a round day/month badge pinned to the TOP-RIGHT of the photograph
     · the white content panel is anchored to the card's BOTTOM, so it grows
       UPWARD over the photo when the preview text appears (that is the "slide
       up" effect, not a downward push of the whole grid)
     · the photograph scales and dims while the panel is open
     · easing cubic-bezier(.37,.75,.61,1.05), 0.3s, as in the source
   Unlike the source, expansion is CSS-only (no jQuery) and it also opens on
   keyboard focus, so the preview is not mouse-only. */
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.post {
  position: relative;
  /* Fixed height so the panel overlays the photograph instead of pushing the
     next row down.
     368px = the measured CLOSED panel (168px) + the 16:9 preview (200px at a
     356px column), so the visible photograph is exactly 16:9 and matches the
     Events card media (354×199). The title box is fixed height (below) so the
     closed panel height — and therefore that ratio — cannot drift. */
  height: 368px;
  border-radius: var(--r-card);
  background: var(--its-white);
  border: 1px solid var(--its-border);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.post:hover,
.post:focus-within {
  border-color: var(--its-blue);
  box-shadow: 0 12px 30px rgba(0, 58, 99, 0.14);
}

.post__link {
  display: block;
  height: 100%;
  color: inherit;
}

/* The photograph runs full-bleed behind the whole card, so the panel overlays
   it and no gap is ever possible. Only the 16:9 band ABOVE the closed panel is
   visible, which is what makes the preview read at the same size as the Events
   card media. The image itself is cropped to 16:9 rather than to the card box,
   so the crop matches the Events cards too. */
.post__thumb {
  position: absolute;
  inset: 0;
  background: var(--its-tint);
}

.post__thumb img {
  width: 100%;
  /* Anchored to the TOP of the card: the exposed 16:9 band is exactly the part
     that lines up with .cardx__media. */
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.post:hover .post__thumb img,
.post:focus-within .post__thumb img {
  transform: scale(1.08);
  opacity: 0.72;
}

/* Update-age tag, top-right of the photograph. A pill — so it takes the
   button radius (6px), never a 20px capsule or a circle. */
.post__date {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--r-btn);
  background: var(--its-sky);
  color: var(--its-white);
  font-size: var(--fs-badge);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

/* Bottom-anchored panel: because this element is pinned by `bottom`, letting
   it grow taller makes it extend upward over the photograph. */
.post__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px 22px 20px;
  background: var(--its-white);
  box-shadow: 0 -1px 10px rgba(0, 58, 99, 0.08);
  transition: transform 0.3s cubic-bezier(0.37, 0.75, 0.61, 1.05);
}

.post__title {
  /* A FIXED three-line box, not min-height. The closed panel must be the same
     height on all three cards, because that height is what fixes the exposed
     photograph at 16:9. The third article's title is far longer than three
     lines, so it is clamped with an ellipsis — that reads as a deliberate
     truncation, whereas letting it overflow the fixed box sliced a line in half
     across the middle of the glyphs. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  height: 4.05em;
  overflow: hidden;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.35;
  color: var(--its-navy);
}

.post__desc {
  overflow: hidden;
  font-size: var(--fs-caption);
  line-height: 1.7;
  color: var(--its-muted-2);
}

/* Author is replaced by a measured reading time, so this row carries a clock
   icon rather than a byline. */
.post__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--its-border);
  font-size: var(--fs-caption);
  color: var(--its-muted-2);
}

.post__meta .icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--its-blue);
}

/* Collapsed by default only where a real pointer can hover. On touch devices
   the preview is simply shown, so nothing is hidden behind an impossible
   interaction. `hover: hover` alone is the honest test — adding `pointer: fine`
   excludes hybrid laptops that still have a real mouse. */
@media (hover: hover) {
  .post__desc {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.37, 0.75, 0.61, 1.05),
      margin-top 0.3s cubic-bezier(0.37, 0.75, 0.61, 1.05),
      opacity 0.26s var(--ease);
  }

  .post:hover .post__desc,
  .post:focus-within .post__desc {
    /* Capped at 4 lines: the open panel must stay inside the card, because the
       card clips its overflow. Worst case (3-line title) leaves ~150px, which
       is 5 lines; 4 lines plus the rule keeps a safe margin. */
    max-height: 7em;
    margin-top: 10px;
    opacity: 1;
  }
}

/* The preview is always clamped to 4 lines, open or closed, so one long
   excerpt can never push the panel past the top of the card. */
.post__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

@media (hover: none), (pointer: coarse) {
  /*
    Touch and other non-hovering devices have no hover state, so the preview
    text is always visible and the overlay trick stops making sense: it would
    squeeze the photograph to a sliver. Here the card becomes a normal stacked
    card instead — a true 16:9 preview block followed by the text — which gives
    the SAME preview size as the Events cards (16:9) and never clips anything.
  */
  .post {
    height: auto;
  }

  .post__thumb {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
  }

  .post__body {
    position: relative;
    bottom: auto;
    box-shadow: none;
  }

  .post__title {
    height: auto;
  }

  .post__desc {
    margin-top: 10px;
  }
}

/* 13. Testimonials — live Trustpilot slider, modern-minimal light treatment
   ==========================================================================
   Redesigned on request. The previous version was the only dark photographic
   band on the page, so it read as a separate site bolted onto the end.

   Design rationale (answering "how would you design this differently?"):
   · Ground — a plain white section, which continues the page's white / light
     alternation (#social above it is --its-light, so a light band here would
     merge the two into one undifferentiated block). No full-bleed background
     photo either: a 240px-tall review slider cannot carry a photograph behind
     it without the two fighting each other.
   · Structure — the same centred `.head` rhythm as every other section. One
     heading, then the reviews, then one action. Nothing else.
   · The reviews ARE the visual event. The widget is deliberately bare (no
     panel, no frame, no shadow) so the five star ratings and the review text
     are the only thing asking for attention.
   · Colour — the only accent is the single outlined button, i.e. still one
     primary action per section.
   The reviews themselves come from Trustpilot's widget at runtime, so nothing
   here is a stale snapshot of a review. */
.reviews {
  position: relative;
  padding: var(--space-xl) 0;
  background: var(--its-white);
}

.reviews__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Heading uses .head for identical spacing to every other section; its own
   bottom margin is dropped because .reviews__widget supplies the gap. */
.reviews__inner .head {
  margin-bottom: 0;
}

/* Bare on purpose — see the rationale above. min-height stops the page jumping
   while the iframe loads. */
.reviews__widget {
  width: 100%;
  min-height: 240px;
  margin-top: 34px;
}

.reviews__widget a {
  font-size: var(--fs-caption);
  color: var(--its-blue);
}

/* The TrustBox renders its own "Rated 4.5 / 5 …" line and Trustpilot branding
   inside its iframe, so there are deliberately no .reviews__rating /
   .reviews__brand / .reviews__stars rules here — adding them by hand printed
   the same sentence twice. */

.reviews__actions {
  margin-top: 30px;
}

/* Legal line. The old #enrol banner owned the TOS link and the copyright, and
   every section after the testimonials was removed on request, so they move
   here — otherwise the page would ship with no terms link and no notice. */
.reviews__legal {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--its-border);
  width: 100%;
  font-size: var(--fs-badge);
  line-height: 1.8;
  color: var(--its-muted-2);
}

.reviews__legal a {
  color: var(--its-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reviews__legal a:hover {
  color: var(--its-blue);
}

/* The #enrol CTA banner and everything after it were removed at the client's
   request, so its .cta* rules went with it — the legal line that used to live
   in the banner's side column now sits in .reviews__legal above. */

/* 13. Floating action (last thing on the page — no footer) */
.wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--its-navy);
  color: var(--its-white);
  box-shadow: 0 8px 24px rgba(0, 58, 99, 0.24);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.wa:hover {
  background: var(--its-blue);
  color: var(--its-white);
  transform: translateY(-2px);
}

.wa .icon {
  width: 24px;
  height: 24px;
}

/* 14. Breakpoints — 1200 / 900 / 620 / 540 only
   ========================================================================== */
@media (max-width: 1200px) {
  :root {
    --gutter: 28px;
    --space-xl: 76px;
    --space-group: 52px;
    --space-sm: 38px;
  }

/* Banner height is fluid (--hero-h in §1), so no per-breakpoint height is
   declared here. Only the copy's breathing room steps down, which is what
   actually needs more room on a narrow screen. */
}

@media (max-width: 900px) {
  :root {
    --space-xl: 56px;
    --space-group: 40px;
    --space-sm: 32px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: grid;
  }

  .header__inner {
    justify-content: space-between;
    gap: 12px;
  }

  /* The photograph still fills the canvas at this width; only the copy
     tightens, so the banner never switches to a stacked layout. The height
     itself is fluid (--hero-h), so nothing is overridden here. */
  .slide__copy {
    padding: 48px 30px;
  }

  .stage__nav {
    width: 38px;
    height: 38px;
  }

  /* Three-across tables and a side-by-side service row stop working here: at
     ~850px the 340px photo column leaves too little for two link columns, so
     the row stacks photo-over-content instead of squeezing both. */
  .path {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 18px;
  }

  .path__media {
    aspect-ratio: 16 / 9;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  /* Six marks at full height crowd a tablet: tighten the gaps and let the
     band run a little quicker so a full cycle still feels brisk. */
  .logos__group {
    gap: 44px;
    padding-right: 44px;
  }

  .logos__track {
    animation-duration: 28s;
  }

  .feats {
    gap: 16px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  /* Articles follow the same two-up step as .cards. Without this rule the
     three-column desktop grid survived to phone widths, squeezing each card
     to ~100px and pushing the bottom panel above the card's own top edge. */
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

}

@media (max-width: 620px) {
  :root {
    --gutter: 20px;
    --space-xl: 44px;
    --space-group: 32px;
    --space-sm: 26px;
  }

  .slide__h1 {
    font-size: var(--fs-hero-mobile);
  }

  .slide__title {
    font-size: var(--fs-h2-sm);
  }

  /* --- Hero on a phone: photo band OVER copy ---------------------------------
     Above 620px the canvas is wider than it is tall (≈2.1:1), which is close to
     the photograph's own 2.53:1, so a full-bleed overlay costs almost nothing.
     At 350-620px the canvas has to be TALLER than it is wide just to hold the
     headline, paragraph and button, and object-fit: cover answers that by
     discarding roughly two thirds of the picture.

     So at this size the slide becomes a column instead: a 16:9 photo band on
     top, where ~70% of the frame survives, and the copy beneath it. Text never
     sits on the photograph here, so its contrast is fixed by the surface rather
     than inferred from a scrim over an unpredictable crop. */
  .slide {
    /* The fluid floor exists to guarantee room for overlaid copy. There is no
       overlay any more, so the content sizes the banner honestly. */
    min-height: 0;
  }

  .slide__media {
    position: relative;
    inset: auto;
    /* Copy comes first in the DOM, so the photograph is re-ordered above it. */
    order: -1;
    aspect-ratio: 16 / 9;
  }

  /* The scrim only ever existed to carry white text. With the copy moved out
     from under it, it would merely muddy the photograph, so it goes.

     Specificity note: the alignment rules above (.slide--start/.slide--end
     .slide__media::after) outrank a bare .slide__media::after, so this reset
     must name them too or the photo band keeps a blue gradient on phones. */
  .slide__media::after,
  .slide--start .slide__media::after,
  .slide--end .slide__media::after,
  .slide--poster .slide__media::after,
  .slide:not(.slide--start):not(.slide--end) .slide__media::after {
    background: none;
    content: none;
  }

  .slide__copy {
    flex: 1 1 auto;
    /* Solid brand surface, not the 120deg --hero-grad: that gradient reaches
       --its-sky at its far corner, which is far too light for white body text
       once the box is this tall. */
    padding: 32px 20px 38px;
    background: linear-gradient(150deg, var(--its-navy), var(--its-blue-dark));
  }

  .slide__actions .btnH {
    flex: 1 1 100%;
  }

  /* Alignment variants exist to dodge the photo's subject when the copy sits
     ON the photograph. On a phone the copy sits BELOW it on its own panel, so
     that reason is gone — and right-aligned body text is genuinely hard to
     read. Both side variants therefore normalise to left; centred stays
     centred. The arrow-avoidance padding is reset too, since the arrows are
     hidden at this width. */
  .slide--start .slide__copy,
  .slide--end .slide__copy {
    align-items: flex-start;
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
  }

  .slide--start .slide__actions,
  .slide--end .slide__actions {
    justify-content: flex-start;
  }

  /* The 60% measure exists only to keep the copy inside the tinted band while
     it sits ON the photograph. On a phone the copy sits on its own full-width
     panel below the photo, so the cap would just squeeze the text into a
     narrow column for no reason. Reset it here. */
  .slide--start .slide__copy > *,
  .slide--end .slide__copy > * {
    max-width: none;
  }

  /* Arrows would crowd the smaller canvas next to the dots, so on phones the
     canvas is driven by swipe (and the dots, which stay keyboard-reachable). */
  .stage__nav {
    display: none;
  }

  /* --- Open House poster on a phone ---------------------------------------
     Below 620px the copy moves out from under the photograph onto its own navy
     panel (see the note above), so right-aligning it has no purpose any more:
     the artwork's bright classroom is no longer behind the words. It also has
     to beat `.poster` itself, which sets flex-end/right for the desktop
     overlay, hence the explicit overrides rather than relying on the generic
     .slide--end reset above. */
  .poster {
    align-items: flex-start;
    text-align: left;
  }

  .poster__when {
    justify-content: flex-start;
  }

  .poster__list li {
    flex-direction: row;
  }

  .poster__title {
    font-size: var(--fs-hero-mobile);
  }

  /* The artwork carries its own skyline detail, which turns to mush in a short
     16:9 band. Framing slightly higher keeps the consultants' faces and the
     harbour horizon rather than a strip of empty water. */
  .slide--poster .slide__media img {
    object-position: center 38%;
  }

  .h2 {
    font-size: var(--fs-h2-sm);
  }

  /* 14px, not 10px: the hover pill bleeds 6px above and below each label, so a
     tighter gap would let an active pill's tint run into its neighbour. This
     matches the desktop row gap and keeps a 2px seam at every width. */
  .path__links {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  /* Two-up on phones would push "Pearson-Accredited" to two cramped lines,
     so all figures take the smaller documented H2 step together. */
  .stats strong {
    font-size: var(--fs-h2-sm);
    min-height: 2.3em;
  }

  .feats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feat {
    padding: 26px 22px 28px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* One article per row on phones. The card keeps its fixed height: at a
     ~350px column the open panel is ~300px, which still leaves the photograph
     visible above it, and the 4-line clamp stops the panel reaching the top. */
  .posts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cardx__body {
    padding: 18px 18px 20px;
  }

  .cardx__facts {
    padding-top: 14px;
  }

  .ig {
    gap: 4px;
  }

  .ig__foot {
    gap: 14px;
  }

}

@media (max-width: 540px) {
  .brand img,
  .drawer__head img {
    width: 104px;
  }

  .header__actions .btnH {
    min-height: 38px;
    padding: 0 14px;
    font-size: var(--fs-badge);
  }

}

/* 15. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  /* The blanket rule above is wrong for an infinite marquee: collapsing the
     duration does not stop it, it makes the track cycle thousands of times a
     second — a visible strobing failure and a photosensitivity risk. The press
     band is therefore stopped outright and made scrollable by hand instead,
     so all six logos stay readable and reachable. */
  .logos__track {
    animation: none !important;
    transform: none !important;
    width: 100%;
  }

  .logos__viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logos__group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 48px;
    width: 100%;
    padding-right: 0;
  }

  /* The second copy exists only to close the loop; without motion it is
     pure duplication, so it goes. */
  .logos__group--dup {
    display: none;
  }
}
