/* ==============================================================
   GICLM — Design system
   Tokens taken directly from the Figma file (giclm.edu.in)
   ============================================================== */

/* --------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------- */
:root {
  /* Colour — named exactly as in Figma */
  --indigo:            #282560;   /* Main Brand Indigo */
  --indigo-cta:        #252580;   /* Navigation button */
  --indigo-deep:       #1b1943;
  --indigo-tint:       #eeeef4;
  --blue:              #29aae1;   /* Main Blue Light */
  --blue-dark:         #1c88b8;
  --blue-tint:         #e8f6fd;
  --grey-58:           #939393;   /* color/grey/58 */
  --pink:              #ea2179;   /* logo accent */
  --pink-tint:         #fce8f1;
  --orange:            #29aae1;   /* Round 15: orange removed from the site; this old name now maps to brand blue */
  --orange-tint:       #e8f6fd;
  --grey-line:         #e2e2e8;
  --surface:           #f7f7f7;
  --white:             #ffffff;
  --black:             #000000;
  --ink:               #16162e;
  --ink-soft:          #4a4a63;
  --overlay:           rgba(0, 0, 0, .4);   /* hero scrim */

  /* Typography */
  --font-display: "Zalando Sans SemiExpanded", "Zalando Sans", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display:  72px;   /* Heading 1 upper */
  --fs-h2:       32px;
  --fs-h3:       24px;
  --fs-lead:     20px;
  --fs-body:     16px;
  --fs-small:    14px;
  --fs-micro:    12px;

  --lh-display: 1.1;     /* 79.2 / 72 */
  --lh-tight:   1.2;
  --lh-body:    1.4;

  --ls-display:  2px;
  --ls-h3:      -.48px;
  --ls-chip:    -.4px;

  /* Layout */
  --container:      1280px;
  --content:        1160px;
  --gutter:         60px;
  --section-y:      100px;
  --nav-h:          80px;

  /* Radius — 4 chips/media, 8 buttons, 12 cards, 100 pills */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg: 12px;
  --r-pill: 100px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(40, 37, 96, .06), 0 2px 8px rgba(40, 37, 96, .05);
  --shadow-md: 0 8px 24px rgba(40, 37, 96, .10);
  --shadow-lg: 0 20px 48px rgba(40, 37, 96, .16);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: .18s;
  --dur:      .32s;
  --dur-slow: .6s;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }

body.nav-open { overflow: hidden; }

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

a { color: var(--indigo); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--blue); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

ul, ol { margin: 0; padding-left: 1.15rem; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: var(--lh-tight); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--indigo); color: var(--white);
  padding: 12px 20px; border-radius: var(--r-md);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* --------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}
.section--tight  { padding-block: 64px; }
.section--surface { background: var(--surface); }
.section--indigo  { background: var(--indigo); color: var(--white); }
.section--indigo a { color: var(--white); }
.section--tint    { background: var(--indigo-tint); }

.stack   { display: flex; flex-direction: column; }
.stack-8  > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.stack-50 > * + * { margin-top: 50px; }

.grid { display: grid; gap: 50px 50px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--tight { gap: 24px; }

/* Split: text on one side, media on the other (Figma "Frame 49") */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}
.split--media-first .split__media { order: -1; }

/* --------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, var(--fs-display));
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}
/* Long words in the wide display typeface (e.g. INFORMATION) must never push the
   page sideways on a small phone. */
.display { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .display { font-size: 28px; letter-spacing: 1px; }
}

.h2 {
  font-size: clamp(26px, 3.2vw, var(--fs-h2));
  font-weight: 400;
  line-height: var(--lh-tight);
}
.h2 strong, .h2 b { font-weight: 700; }

.h3 {
  font-size: clamp(20px, 2.2vw, var(--fs-h3));
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-h3);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-tight);
}

.eyebrow {
  font-size: var(--fs-body);
  font-style: italic;
  color: var(--ink-soft);
  line-height: var(--lh-body);
}

.eyebrow--caps {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--blue);
}

.muted { color: var(--grey-58); }
.center { text-align: center; }

.prose { max-width: 72ch; }
.prose ul { margin: 0 0 1em; padding-left: 1.25rem; }
.prose li { margin-bottom: .5em; }
.prose h3 { margin: 1.5em 0 .5em; }
.section--indigo .prose { color: rgba(255, 255, 255, .92); }

/* "Wide" layout — full container width instead of the ~72ch reading
   measure, for content-heavy sections like a long subject list. */
.prose--wide { max-width: none; }

/* Long subject lists specifically flow into columns instead of one
   very tall single column — scoped to just this block so ordinary
   short lists elsewhere are never affected. */
.prose--wide[data-block="subjects"] ul {
  column-count: 3;
  column-gap: 40px;
}
.prose--wide[data-block="subjects"] li { break-inside: avoid; }

/* Tables in rich-text content — used for the IBDP subject-groups
   grid, but works for any admin-authored table. */
.prose table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.prose--wide:has(table) { overflow-x: auto; }
.prose thead th {
  background: var(--indigo);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
}
.prose tbody td {
  vertical-align: top;
  padding: 16px;
  background: var(--surface);
  border-top: 1px solid var(--white);
  font-size: var(--fs-small);
}
.prose tbody td strong { display: block; margin-bottom: 8px; color: var(--indigo); }
.prose tbody td ul { margin: 0; padding-left: 1.1rem; }
.prose tbody td li { margin-bottom: .3em; }
.prose tbody td[colspan] {
  background: var(--indigo-tint);
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Section heading block */
.section-head { margin-bottom: 50px; }
.section-head .h2 { margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); max-width: 78ch; }
.section-head.center p { margin-inline: auto; }
.section--indigo .section-head p { color: rgba(255, 255, 255, .82); }

/* --------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: var(--fs-body);
  line-height: 1;
  font-weight: 500;
  text-align: center;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--indigo);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--indigo-deep);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

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

.btn--ghost-light {
  border-color: rgba(255, 255, 255, .7);
  color: var(--white);
}
.btn--ghost-light:hover { background: var(--white); color: var(--indigo); }

.btn--lg { padding: 15px 26px; font-size: var(--fs-lead); }
.btn--block { width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Text link with sliding underline */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--indigo);
  position: relative;
}
.link-more::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.link-more:hover::after { transform: scaleX(1); transform-origin: left; }
.link-more svg { transition: transform var(--dur) var(--ease-out); }
.link-more:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  overflow: visible;
  transition: box-shadow var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              top .35s cubic-bezier(.22,.61,.36,1);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
/* Hidden while scrolling down, back as soon as you scroll up. */
.site-header.is-hidden { top: calc(-1 * var(--nav-h) - 12px); box-shadow: none; }

/* Transparent over the hero, solid once scrolled */
.site-header.is-over-hero {
  background: transparent;
  box-shadow: none;
}
.site-header.is-over-hero .nav__link,
.site-header.is-over-hero .nav__toggle-bar { color: var(--white); }
.site-header.is-over-hero .nav__toggle-bar { background: var(--white); }
/* Logo keeps its real colours at all times — no white-over-hero filter. */

.nav {
  height: var(--nav-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__mark { height: 52px; width: auto; max-height: calc(var(--nav-h) - 16px); object-fit: contain; display: block; transition: filter var(--dur) var(--ease-out); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item { position: relative; }

.nav__link {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--black);
  white-space: nowrap;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__item:hover > .nav__link::after,
.nav__item.is-current > .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__item:hover > .nav__link { color: var(--blue); }

.nav__caret { transition: transform var(--dur) var(--ease-out); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 250px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              visibility var(--dur);
}
.nav__item:hover > .nav__dropdown,
.nav__item:focus-within > .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav__dropdown a:hover,
.nav__dropdown a.is-current { background: var(--indigo-tint); color: var(--indigo); }

.nav__cta {
  background: var(--indigo-cta);
  color: var(--white);
  font-family: var(--font-ui);
  padding: 8px 26px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.nav__cta:hover { background: var(--indigo-deep); color: var(--white); transform: translateY(-2px); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.nav__toggle-bar {
  display: block;
  height: 2px; width: 26px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
}
/* (the first child is the screen-reader label, so the three bars are children 2, 3 and 4) */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 101;
}

/* --------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--indigo-deep);
}
.hero--inner { min-height: 853px; }

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  will-change: transform, opacity;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1072px;
  padding-inline: 24px;
  padding-block: 140px 90px;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__eyebrow {
  font-size: var(--fs-lead);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero__title { margin-bottom: 20px; }
.hero__sub {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, .9);
  max-width: 62ch;
  margin: 0 auto 32px;
}

/* Slide dots */
.hero__dots {
  position: absolute;
  bottom: 96px; left: 50%;
  translate: -50% 0;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--white);
  background: transparent;
  padding: 0;
  transition: width var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.hero__dot.is-active { width: 30px; background: var(--white); }

.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  translate: -50% 0;
  z-index: 3;
  width: 34px; height: 34px;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}
.hero__scroll svg { width: 14px; height: 14px; }
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* --------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey-line);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* Makes the whole card clickable via a single accessible link,
   rather than only the small "Learn More" text at the bottom. */
.stretched-link { position: relative; z-index: 1; }
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Leader spotlight — small photo + name + title callout used on
   pages tied to a specific department head. */
.leader-spotlight {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 520px;
  margin-inline: auto;
}
.leader-spotlight__photo {
  width: 76px; height: 76px;
  border-radius: var(--r-pill);
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--blue-tint);
}
.leader-spotlight__name { font-weight: 600; font-size: var(--fs-lead); margin: 0; }
.leader-spotlight__title { color: var(--grey-58); font-size: var(--fs-small); margin: 2px 0 0; }

/* Leader band — flat, full-width strip (replaces the old floating card). */
.leader-band { background: var(--blue-tint); border-block: 1px solid rgba(40, 37, 96, .08); }
.leader-band__inner { display: flex; align-items: center; gap: 16px; padding-block: 18px; }
.leader-band__photo { width: 64px; height: 64px; border-radius: var(--r-pill); object-fit: cover; flex-shrink: 0; }
.leader-band__photo--initial { display: grid; place-items: center; background: var(--indigo); color: #fff; font-weight: 600; font-size: 24px; }
.leader-band__text { display: flex; flex-direction: column; gap: 2px; margin: 0; padding-left: 16px; border-left: 3px solid var(--pink); }
.leader-band__label { font-size: var(--fs-small); color: var(--grey-58); text-transform: uppercase; letter-spacing: .08em; }
.leader-band__name { font-size: var(--fs-lead); font-weight: 600; color: var(--indigo); }

/* Page banner — a row of large captioned image panels just below
   the hero on academic sub-pages, driven by the slides admin
   screen scoped to that page. */
.page-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.page-banner__panel {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.page-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-banner__caption {
  position: absolute;
  left: 0; right: 0; top: 0;
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 100%);
  color: var(--white);
  font-size: var(--fs-lead);
  font-weight: 700;
}

.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: var(--ls-h3); }
.card__text { color: var(--ink-soft); font-size: var(--fs-small); flex: 1; }
.card__meta { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 1.2px; color: var(--blue); font-weight: 600; }
.card__meta--gold { color: var(--orange); }

.card--flat { border: 0; background: var(--surface); }
.card--pad { padding: 32px; }

/* Facility card: icon + title + text */
.tile {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.tile::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.tile:hover::before { transform: scaleX(1); }
.tile__title { font-size: var(--fs-lead); font-weight: 600; }
.tile__text { color: var(--ink-soft); font-size: var(--fs-small); flex: 1; }

/* --------------------------------------------------------------
   8b. Our Story panel + stat cascade
   Figma: node 195:574 — a text panel plus three overlapping stat
   cards (blue / indigo / pink) in a 367 × 386 cascade.
   -------------------------------------------------------------- */
.story {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.story__panel {
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
/* Decorative corner flourish standing in for the Figma accent swirls —
   the exact vector artwork could not be exported into this build, see
   the README for why, but the brand-coloured curve keeps the same
   bottom-right accent this panel has in the design. */
.story__panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  opacity: .18;
  pointer-events: none;
}
.story__panel::before {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -110px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--indigo);
  opacity: .14;
  pointer-events: none;
}

.story__stats {
  flex: 0 0 300px;
  max-width: 100%;
}

.story__stats-track {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stat-card {
  width: 100%;
  max-width: 260px;
  padding: 22px 26px;
  border-radius: var(--r-md);
  color: var(--white);
  line-height: var(--lh-tight);
  box-shadow: var(--shadow-sm);
}
.stat-card__label { margin: 0 0 8px; opacity: .95; }
.stat-card__value { margin: 0; font-weight: 700; letter-spacing: -.02em; }

/* A gentle staircase offset gives the same cascading feel as the
   Figma file, but as ordinary stacked blocks — every card keeps its
   full padding and never overlaps or clips another card's text,
   however long the label gets. */
.stat-card--lg { margin-left: 0; background: var(--blue); }
.stat-card--lg .stat-card__label { font-size: var(--fs-h3); font-weight: 600; }
.stat-card--lg .stat-card__value { font-size: 44px; }

.stat-card--md { margin-left: 32px; background: var(--indigo); }
.stat-card--md .stat-card__label { font-size: var(--fs-body); }
.stat-card--md .stat-card__value { font-size: 36px; }

.stat-card--sm { margin-left: 64px; background: #ea2179; }
.stat-card--sm .stat-card__label { font-size: var(--fs-small); font-weight: 600; }
.stat-card--sm .stat-card__value { font-size: 30px; font-weight: 400; }

/* --------------------------------------------------------------
   9. Curriculum tabs
   -------------------------------------------------------------- */
.tabs { display: flex; flex-direction: column; gap: 50px; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tabs__btn {
  background: var(--surface);
  color: var(--ink-soft);
  border: 0;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: var(--fs-lead);
  font-weight: 600;
  letter-spacing: var(--ls-chip);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.tabs__btn:hover { color: var(--indigo); }
.tabs__btn[aria-selected="true"] { background: var(--blue); color: var(--white); }

.tabs__panel[hidden] { display: none; }

/* --------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; padding: 24px; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--indigo);
}
.section--indigo .stat__value { color: var(--blue); }
.stat__label { margin-top: 10px; color: var(--ink-soft); font-size: var(--fs-small); }
.section--indigo .stat__label { color: rgba(255, 255, 255, .8); }

/* --------------------------------------------------------------
   11. Admissions process — dark flowing timeline
   A single continuous curve behind alternating steps, muted until
   scrolled past, then lighting up in the brand blue with a glowing
   marker riding the scroll position. See animations.js for the
   scroll-driven reveal — this file is layout and colour only.
   -------------------------------------------------------------- */
.process-flow { position: relative; }

.process-flow__svg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 90px;
  height: 100%;
  transform: translateX(-45px);
  z-index: 0;
  pointer-events: none;
}
.process-flow__path-bg { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 3; stroke-linejoin: miter; }
.process-flow__path-fg { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: butt; stroke-linejoin: miter; }
.process-flow__dot {
  fill: var(--blue);
  filter: drop-shadow(0 0 6px var(--blue));
  opacity: 0;
}

.process-flow__rows {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.process-flow__row {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 32px;
}

.process-flow__card { max-width: 420px; }
.process-flow__row--left .process-flow__card { grid-column: 1; margin-left: auto; text-align: right; }
.process-flow__row--right .process-flow__card { grid-column: 3; text-align: left; }

.process-flow__eyebrow {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.process-flow__title { font-size: var(--fs-lead); font-weight: 600; color: var(--white); margin-bottom: 8px; }
.process-flow__text { color: rgba(255, 255, 255, .72); font-size: var(--fs-small); }

.process-flow__lane {
  grid-column: 2;
  display: flex;
  justify-content: center;
}

.process-flow__badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  /* Square with one corner cut off — straight lines, no curves. */
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
/* Before a step is reached: grey box, low-opacity number. */
.process-flow.is-armed .process-flow__badge { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .4); }
/* Once scrolled to: it switches to blue. */
.process-flow.is-armed .process-flow__row.is-active .process-flow__badge { background: var(--blue); color: var(--white); }
.process-flow__row--left .process-flow__badge { transform: translateX(-18px); }
.process-flow__row--right .process-flow__badge { transform: translateX(18px); }

/* --------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------- */
.quotes { display: flex; gap: 18px; overflow: hidden; }
.quote {
  flex: 1 0 0;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--grey-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote__mark { font-family: var(--font-display); font-size: 40px; line-height: .6; color: var(--blue); }
.quote__text { flex: 1; color: var(--ink-soft); }
.quote__footer { display: flex; align-items: center; gap: 12px; }
.quote__photo {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--blue-tint);
}
.quote__author { font-weight: 600; margin: 0 0 2px; }
.quote__role { font-size: var(--fs-small); color: var(--grey-58); margin: 0; }

.quote--video { padding: 0; overflow: hidden; }
.quote--video .quote__video-wrap { position: relative; aspect-ratio: 16/10; background: var(--indigo-deep); }
.quote--video .quote__video-wrap video,
.quote--video .quote__video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.quote--video .quote__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .25);
  color: var(--white);
  cursor: pointer;
  border: 0;
  transition: background var(--dur) var(--ease-out);
}
.quote--video .quote__play:hover { background: rgba(0, 0, 0, .4); }
.quote--video .quote__play svg { width: 56px; height: 56px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.quote--video .quote__footer { padding: 20px 24px 24px; }

/* Testimonials carousel — 3 videos per row, scroll-snap track with
   prev/next buttons and an auto-advance timer. Falls back to plain
   swipe/scroll on touch devices regardless of JS. */
.testi-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: 4px;
}
.testi-carousel__track::-webkit-scrollbar { display: none; }

.testi-carousel__item {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
}
.testi-carousel__item .quote { width: 100%; }

.testi-carousel__nav {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--grey-line);
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--indigo);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.testi-carousel__nav:hover:not(:disabled) { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.testi-carousel__nav:disabled { opacity: .35; cursor: default; }
.testi-carousel__nav svg { width: 18px; height: 18px; }

.testi-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.testi-carousel__dot {
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: var(--grey-line);
  border: 0;
  padding: 0;
  transition: width var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.testi-carousel__dot.is-active { width: 26px; background: var(--blue); }

/* Colorful event cards — cycles through the logo's brand colors
   instead of the plain white cards used elsewhere. */
.event-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.event-card__media { aspect-ratio: 16/10; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card__body { padding: 24px; flex: 1; }
.event-card__title { font-size: var(--fs-lead); font-weight: 600; margin-bottom: 8px; }
.event-card__text { font-size: var(--fs-small); color: rgba(255, 255, 255, .85); }

.event-card--orange { background: var(--orange); }
.event-card--pink   { background: var(--pink); }
.event-card--indigo { background: var(--indigo); }

/* --------------------------------------------------------------
   13. Awards
   -------------------------------------------------------------- */
.award {
  position: relative;
  background: linear-gradient(150deg, var(--tone-tint, var(--blue-tint)) 0%, var(--white) 55%);
  border: 1px solid var(--grey-line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.award::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tone-color, var(--blue));
}
.award:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.award__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--tone-color, var(--blue));
  box-shadow: var(--shadow-sm);
  margin-bottom: 6px;
}
.award__icon svg { width: 24px; height: 24px; }
.section--sage { --sage: #dbe9d3; background: var(--sage); }
.section--sage .h2 { color: var(--indigo); }
.award__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--tone-color, var(--blue)); }
.award:hover .award__more { text-decoration: underline; text-underline-offset: 3px; }
.award__rank { font-size: 30px; font-weight: 700; color: var(--tone-color, var(--blue)); line-height: 1; }
.award__title { font-size: var(--fs-body); color: var(--ink); font-weight: 500; }
.award__body { font-size: var(--fs-small); color: var(--grey-58); }

.award[data-tone="0"] { --tone-color: var(--blue);   --tone-tint: var(--blue-tint); }
.award[data-tone="1"] { --tone-color: var(--indigo); --tone-tint: var(--indigo-tint); }
.award[data-tone="2"] { --tone-color: var(--pink);   --tone-tint: var(--pink-tint); }
.award[data-tone="3"] { --tone-color: var(--orange); --tone-tint: var(--orange-tint); }

/* --------------------------------------------------------------
   13b. Client / accreditation logo strip
   Figma: node 440:2444 — horizontally scrollable, auto-advances.
   -------------------------------------------------------------- */
.logo-strip {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
}
.logo-strip::-webkit-scrollbar { display: none; }
.logo-strip:active { cursor: grabbing; }

.logo-strip__track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  padding-inline: var(--gutter);
}

.logo-strip__item {
  flex-shrink: 0;
  height: 90px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: rgba(255, 255, 255, .92);
  border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.logo-strip__item:hover { transform: translateY(-3px); background: var(--white); }

.logo-strip__img {
  max-height: 60px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logo-strip__img.is-placeholder { opacity: .7; }

/* --------------------------------------------------------------
   14. Gallery / marquee
   -------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  color: var(--white);
  font-size: var(--fs-small);
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: translateY(0); }

.marquee { overflow: hidden; }
.marquee__track { display: flex; gap: 50px; width: max-content; }
.marquee__item { flex-shrink: 0; }

/* --------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field .hint { font-size: var(--fs-micro); color: var(--grey-58); }

.input, .textarea, .select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--grey-line);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-tint);
}
.textarea { min-height: 140px; resize: vertical; }

.field--error .input,
.field--error .textarea,
.field--error .select { border-color: #c0392b; }
.field__error { font-size: var(--fs-micro); color: #c0392b; }

.alert {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  border-left: 4px solid;
}
.alert--success { background: #eaf7ef; border-color: #2e9e5b; color: #1d6b3d; }
.alert--error   { background: #fdecea; border-color: #c0392b; color: #92271a; }
.alert--info    { background: var(--blue-tint); border-color: var(--blue); color: #12566f; }

/* --------------------------------------------------------------
   16. Breadcrumb + page hero
   -------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, .75);
}
.breadcrumb a { color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .55; }

/* --------------------------------------------------------------
   17. Footer — compact, single bar
   -------------------------------------------------------------- */
.site-footer {
  background: var(--indigo);
  color: var(--white);
  padding: 36px var(--gutter) 24px;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--blue); }

.footer__inner { max-width: var(--container); margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo img { height: 40px; width: auto; max-width: 140px; object-fit: contain; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__links a { font-size: var(--fs-small); font-weight: 400; opacity: .88; }
.footer__links a:hover { opacity: 1; }

.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.footer__social a:hover { transform: translateY(-2px); background: var(--blue); }
.footer__social svg { width: 15px; height: 15px; fill: var(--white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, .75);
}
.footer__copy { margin: 0; }
.footer__legal { margin: 0; display: flex; gap: 8px; }
.footer__legal a { color: rgba(255, 255, 255, .75); }
.footer__legal a:hover { color: var(--white); }

/* --------------------------------------------------------------
   18. Back to top
   -------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  background: var(--indigo);
  color: var(--white);
  border: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--blue); }

/* --------------------------------------------------------------
   19. Placeholder styling
   -------------------------------------------------------------- */
.is-placeholder {
  width: 100%;
  height: auto;
  background: var(--indigo-tint);
  border-radius: inherit;
}

/* --------------------------------------------------------------
   20. Reveal defaults — GSAP overrides these at runtime.
   Kept out of the no-JS path so content is never invisible.
   -------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; }
.js [data-reveal="fade"] { opacity: 0; }

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

/* --------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; --section-y: 80px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__menu { gap: 26px; }
}

@media (max-width: 900px) {
  :root { --section-y: 64px; }

  .prose--wide[data-block="subjects"] ul { column-count: 2; }

  .testi-carousel__item { flex-basis: calc((100% - 24px) / 2); }
  .testi-carousel__nav { display: none; }

  .nav { padding-inline: 20px; }
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 20px;
    overflow-y: auto;
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease-out);
  }
  .nav__item--cta { padding: 24px 0 0; }
  .nav__cta { display: block; width: 100%; text-align: center; padding: 15px 20px; font-size: var(--fs-lead); }
  .nav__menu.is-open { transform: translateX(0); }

  .nav__link { color: var(--black) !important; padding: 16px 4px; font-size: var(--fs-lead); border-bottom: 1px solid var(--grey-line); width: 100%; justify-content: space-between; }
  .nav__link::after { display: none; }

  .nav__dropdown {
    position: static;
    translate: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 8px 12px;
    display: none;
  }
  .nav__item.is-expanded > .nav__dropdown { display: block; }

  .site-header.is-over-hero .nav__link { color: var(--white); }
  .site-header.is-over-hero .nav__menu.is-open .nav__link { color: var(--black) !important; }

  /* minmax(0, 1fr), not 1fr: a plain 1fr column can never shrink below its widest
     content (e.g. an image with a width attribute), which pushed pages sideways. */
  .split, .grid--2, .grid--3, .grid--4, .stats { grid-template-columns: minmax(0, 1fr); }
  .split--media-first .split__media { order: 0; }

  /* Our Story: stack the panel above the stat cascade. The cascade is
     already a plain vertical stack with no absolute positioning, so it
     needs no special mobile handling beyond a smaller staircase offset
     and a touch less padding. */
  .story { flex-direction: column; }
  .story__stats { flex-basis: auto; width: 100%; }
  .stat-card { max-width: 100%; padding: 18px 22px; }
  /* The offset cards must be narrower by their offset, or they overflow the screen. */
  .stat-card--md { margin-left: 18px; width: calc(100% - 18px); }
  .stat-card--sm { margin-left: 36px; width: calc(100% - 36px); }

  .logo-strip__track { gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .quotes { flex-direction: column; }
  .form__row { grid-template-columns: 1fr; }

  .hero { min-height: 560px; }
  .hero--inner { min-height: 380px; }
  .hero__inner { padding-block: 120px 70px; min-height: auto; }
  .hero__scroll { display: none; }
  .hero__dots { bottom: 40px; }

  /* The zigzag curve is tuned for the alternating desktop layout;
     once badges collapse to a straight rail it would visibly
     misalign, so it's hidden here rather than risk looking broken.
     A plain straight line takes its place instead. */
  .process-flow__svg { display: none; }
  .process-flow__rows { position: relative; }
  .process-flow__rows::before {
    content: "";
    position: absolute;
    left: 25px; top: 0; bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, .14);
    z-index: 0;
  }

  /* Flowing timeline collapses to a single left rail — lane and
     curve stay put, both sides' cards move to the right of it. */
  .process-flow__row { grid-template-columns: 50px 1fr; gap: 16px; position: relative; z-index: 1; }
  .process-flow__row--left .process-flow__card,
  .process-flow__row--right .process-flow__card {
    grid-column: 2;
    margin-left: 0;
    max-width: none;
    text-align: left;
  }
  .process-flow__lane { grid-column: 1; }
  .process-flow__row--left .process-flow__badge,
  .process-flow__row--right .process-flow__badge {
    width: 46px; height: 46px; font-size: 14px;
    transform: none;
  }

  .site-footer { padding: 28px 20px 20px; }
  .footer__row { flex-direction: column; align-items: center; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .prose--wide[data-block="subjects"] ul { column-count: 1; }
  .testi-carousel__item { flex-basis: 88%; }
  .gallery { grid-template-columns: 1fr; }
  .tabs__list { gap: 12px; }
  .tabs__btn { font-size: var(--fs-body); padding: 10px 14px; }
  .card__body, .tile, .quote, .award { padding: 20px; }
  .to-top { right: 16px; bottom: 16px; }
}

@media print {
  .site-header, .site-footer, .to-top, .hero__dots, .scroll-progress { display: none !important; }
  body { color: #000; }
}
/* ==============================================================
   Core values — 5 vertical cards in one row, with icons
   ============================================================== */
.value-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.value-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 300px;
  padding: 32px 22px 26px;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.value-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone-color, var(--blue)); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--tone-tint, var(--blue-tint)); color: var(--tone-color, var(--blue));
}
.value-card__icon svg { width: 28px; height: 28px; }
.value-card__icon img { width: 32px; height: 32px; object-fit: contain; }
.value-card__num { margin: 8px 0 0; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 1.2px; color: var(--grey-58); }
.value-card__title { margin: 0; font-size: var(--fs-lead); font-weight: 600; }
.value-card__text { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.value-card[data-tone="0"] { --tone-color: var(--blue);   --tone-tint: var(--blue-tint); }
.value-card[data-tone="1"] { --tone-color: var(--indigo); --tone-tint: var(--indigo-tint); }
.value-card[data-tone="2"] { --tone-color: var(--pink);   --tone-tint: var(--pink-tint); }
.value-card[data-tone="3"] { --tone-color: var(--orange); --tone-tint: var(--orange-tint); }

/* Department heads */
.dept-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dept-card {
  background: var(--surface); border-radius: 4px; padding: 18px 18px 22px; text-align: center;
  border-bottom: 5px solid var(--indigo);
}
.dept-card--blue { border-bottom-color: var(--blue); }
.dept-card__photo { aspect-ratio: 226 / 288; overflow: hidden; margin-bottom: 18px; }
.dept-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dept-card__name { margin: 0 0 4px; font-size: var(--fs-lead); font-weight: 500; }
.dept-card__role { margin: 0; font-size: var(--fs-small); color: var(--grey-58); }

/* Campus spaces + lightbox */
.space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.space-card {
  display: flex; flex-direction: column;
  padding: 0; border: 0; text-align: center; font: inherit; color: inherit;
  background: var(--white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 18px rgba(16,24,40,.06);
}
.space-card.is-clickable { cursor: pointer; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.space-card.is-clickable:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.space-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface); }
.space-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.space-card__count {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(0,0,0,.6); color: #fff; font-size: var(--fs-micro); font-weight: 600;
}
.space-card__name { display: block; padding: 16px 12px 18px; font-weight: 600; font-size: var(--fs-small); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(8, 10, 24, .94); padding: 56px 72px 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__stage { flex: 1; width: 100%; min-height: 0; display: grid; place-items: center; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__bar { width: 100%; max-width: 900px; display: flex; justify-content: space-between; gap: 16px; color: #fff; padding-top: 14px; font-size: var(--fs-small); }
.lightbox__title { font-weight: 600; }
.lightbox__count { opacity: .75; white-space: nowrap; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border: 0; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  transition: background var(--dur) var(--ease-out);
}
.lightbox__btn:hover { background: rgba(255,255,255,.3); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn--close { top: 16px; right: 16px; }
.lightbox__btn--prev  { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__btn--next  { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox[data-single="true"] .lightbox__btn--prev,
.lightbox[data-single="true"] .lightbox__btn--next,
.lightbox[data-single="true"] .lightbox__count { display: none; }
body.lightbox-open { overflow: hidden; }

/* Accreditations — award boxes */
.award-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.award-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.award-card__top {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 26px 24px; color: var(--white); background: var(--tone-color, var(--blue));
}
.award-card__top::after {
  content: ""; position: absolute; right: -28px; top: -28px; width: 110px; height: 110px;
  background: rgba(255,255,255,.14); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.award-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.2); flex-shrink: 0; }
.award-card__icon svg { width: 26px; height: 26px; }
.award-card__rank { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.1; }
.award-card__body { padding: 22px 24px 8px; flex: 1; }
.award-card__title { margin: 0; font-size: var(--fs-lead); font-weight: 600; line-height: 1.3; }
.award-card__foot { padding: 12px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.award-card__meta { font-size: var(--fs-small); color: var(--grey-58); }
.award-card__link { font-size: var(--fs-small); font-weight: 600; color: var(--tone-color, var(--blue)); text-decoration: underline; text-underline-offset: 3px; }
.award-card[data-tone="0"] { --tone-color: var(--blue); }
.award-card[data-tone="1"] { --tone-color: var(--indigo); }
.award-card[data-tone="2"] { --tone-color: var(--pink); }
.award-card[data-tone="3"] { --tone-color: var(--orange); }

.event-card__link { display: inline-block; margin-top: 12px; color: var(--white); font-weight: 600; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dept-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .lightbox { padding: 60px 16px 16px; }
  .lightbox__btn--prev { left: 8px; } .lightbox__btn--next { right: 8px; }
}
@media (max-width: 640px) {
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .value-card { min-height: 0; padding: 26px 16px 20px; }
}
@media (max-width: 480px) {
  .value-grid, .space-grid, .dept-grid { grid-template-columns: 1fr; }
}


/* ==============================================================
   Key Information accordion + School Calendar / Brochure rows
   ============================================================== */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion__item {
  border-radius: 8px; overflow: hidden;
  background: var(--indigo); color: var(--white);
  transition: background var(--dur) var(--ease-out);
}
.accordion__item[open] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08); }
.accordion__head {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px; font-weight: 600; font-size: var(--fs-lead);
}
.accordion__head::-webkit-details-marker { display: none; }
.accordion__head:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
/* Triangle marker: points right when closed, down when open. */
.accordion__marker {
  width: 0; height: 0; flex-shrink: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  transition: transform var(--dur) var(--ease-out);
}
.accordion__item[open] .accordion__marker { transform: rotate(90deg); }
.accordion__panel {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px; align-items: stretch;
  padding: 4px 26px 28px;
}
.accordion__item[open] .accordion__panel { animation: accordion-in .3s var(--ease-out); }
.accordion__text p { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 1em; }
.accordion__media { min-height: 220px; }
@keyframes accordion-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.doc-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 26px; background: var(--white); border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 14px rgba(16,24,40,.06);
}
.doc-row__title { font-size: var(--fs-lead); font-weight: 500; }
.btn.is-disabled { opacity: .5; cursor: default; pointer-events: none; }

@media (max-width: 800px) {
  .accordion__panel { grid-template-columns: 1fr; gap: 20px; padding: 4px 18px 22px; }
  .accordion__head { padding: 18px; }
  .doc-row { padding: 16px 18px; flex-wrap: wrap; }
}

/* "Ready to take the next step?" — body text was too pale on the tinted
   band. Fixed once here so it applies on every page that uses it. */
.section--tint p, .section--tint .muted { color: var(--ink); }

/* ==============================================================
   Community page — voices, alumni, magazine preview
   ============================================================== */
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.voice-card {
  margin: 0; display: flex; flex-direction: column; gap: 18px;
  background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--r-lg);
  padding: 26px 24px 22px;
}
.voice-card--video { padding: 0; overflow: hidden; }
.voice-card--video .voice-card__person { padding: 0 24px 22px; }
.voice-card__video { position: relative; aspect-ratio: 16 / 10; background: var(--indigo-deep); }
.voice-card__video iframe, .voice-card__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.voice-card__text { margin: 0; flex: 1; color: var(--ink-soft); font-size: var(--fs-body); }
.voice-card__mark { display: block; font-family: var(--font-display); font-size: 40px; line-height: .7; color: var(--blue); margin-bottom: 6px; }
.voice-card__person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.voice-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--blue-tint); }
.voice-card__avatar--initials { display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); font-weight: 700; font-size: 16px; }
/* Name and role sit tightly together. */
.voice-card__name, .voice-card__role { display: block; margin: 0; line-height: 1.3; }
.voice-card__name { font-weight: 600; }
.voice-card__role { font-size: var(--fs-small); color: var(--grey-58); }

.alumni-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.alumnus {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.alumnus:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.alumnus__photo { aspect-ratio: 3 / 4; }
.alumnus__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alumnus__info {
  position: absolute; inset: auto 0 0 0; padding: 60px 18px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 14, 45, .92) 70%);
  color: var(--white);
}
.alumnus__class { margin: 0 0 4px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); }
.alumnus__name { margin: 0 0 6px; font-size: var(--fs-lead); font-weight: 600; color: var(--white); }
.alumnus__uni { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: rgba(255, 255, 255, .85); line-height: 1.3; }
.alumnus__logo { height: 26px; width: auto; max-width: 64px; object-fit: contain; background: var(--white); border-radius: 4px; padding: 3px 5px; flex-shrink: 0; }

.mag-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mag-card {
  position: relative; display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 3 / 4;
  text-decoration: none; color: var(--white);
  box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 8px 24px rgba(16,24,40,.12);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
a.mag-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mag-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-card__title {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; font-weight: 600; font-size: var(--fs-small);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
}

@media (max-width: 1000px) {
  .voices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alumni-grid, .mag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .alumni-grid, .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 560px) {
  .voices { grid-template-columns: 1fr; }
  .alumnus__info { padding: 44px 12px 12px; }
}

/* ==============================================================
   School Magazine page
   ============================================================== */
.mag-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; }
.mag-item { width: calc((100% - 5 * 20px) / 6); display: flex; flex-direction: column; gap: 10px; }
.mag-item[hidden] { display: none; }
.mag-item__cover {
  position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 8px;
  color: var(--white); text-decoration: none; background: var(--surface);
  box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 8px 24px rgba(16,24,40,.14);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
a.mag-item__cover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mag-item__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-item__title {
  position: absolute; inset: auto 0 0 0; padding: 48px 12px 12px;
  font-size: var(--fs-small); font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .3px; line-height: 1.25;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82));
}
.mag-item__badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--pink); color: var(--white); font-size: var(--fs-micro); font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.mag-item__download {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: 6px; border: 1px solid var(--indigo);
  color: var(--indigo); font-size: var(--fs-small); font-weight: 600; text-decoration: none;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
a.mag-item__download:hover { background: var(--indigo); color: var(--white); }
.mag-item__download.is-disabled { border-color: var(--grey-line); color: var(--grey-58); }

@media (max-width: 1100px) { .mag-item { width: calc((100% - 3 * 20px) / 4); } }
@media (max-width: 800px)  { .mag-item { width: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 560px)  { .mag-item { width: calc((100% - 14px) / 2); } .mag-wall { gap: 22px 14px; } }

/* School Magazine: one or two action buttons per issue (Read online / Download PDF) */
.mag-item__actions { display: flex; flex-direction: column; gap: 8px; }
a.mag-item__read { background: var(--indigo); color: var(--white); }
a.mag-item__read:hover { background: var(--blue); border-color: var(--blue); }

/* ==============================================================
   Beyond Academics — landing + detail pages (Figma: Student Life,
   Languages, Sports, University Hub, Service Learning,
   Performing & Visual Arts, Extra-curriculars)
   ============================================================== */

/* Hero: small "STUDENT LIFE" line over a 72px title */
.hero--figma .hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 4.6vw, 35.2px);
  line-height: 1.2;
  letter-spacing: .5px;
  color: #e5e7eb;
  text-shadow: none;
  margin-bottom: 8px;
  display: none;   /* Round 15: breadcrumb above the title replaces this line, same as the other pages */
}

/* ---------- Landing: one band per topic ---------- */
.sl-topic { background: var(--white); padding: 100px 0 50px; }
.sl-topic + .sl-topic { padding-top: 70px; }
.sl-topic:last-of-type { padding-bottom: 100px; }
.sl-topic__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 120px; padding: 12px 24px; margin-bottom: 50px;
}
.sl-topic__text { flex: 1 1 0; min-width: 0; }
.sl-topic__title { font-size: 32px; line-height: 1.2; font-weight: 700; color: #030303; margin: 0 0 16px; }
.sl-topic__text p { margin: 0; line-height: 1.4; color: #000; }
.sl-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px; min-width: 112px; border-radius: 8px;
  background: var(--indigo); color: #f5f5f5; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.sl-btn:hover { background: var(--indigo-deep); color: #fff; transform: translateY(-2px); }

.sl-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.sl-tile { margin: 0; width: 184px; }
.sl-tile img { display: block; width: 100%; height: 222px; object-fit: cover; border-radius: 4px; background: var(--grey-f7, #f7f7f7); }
.sl-row--captioned { justify-content: flex-start; gap: 24px; }
.sl-row--captioned .sl-tile { width: calc((100% - 72px) / 4); }
.sl-row--captioned .sl-tile img { height: 254px; }
.sl-tile figcaption { padding: 12px 0; font-size: 16px; line-height: 1; color: #1e1e1e; }

/* ---------- Detail pages ---------- */
.fg-wrap { background: var(--white); padding: 150px 0; }
.fg-wrap .container { display: flex; flex-direction: column; gap: 70px; }
.fg-block { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.fg-block--split { flex-direction: row; align-items: flex-start; gap: 50px; }
.fg-block--split > * { flex: 1 1 0; min-width: 0; }
.fg-block__text { display: flex; flex-direction: column; gap: 16px; padding-block: 12px; }
.fg-block--media-first .fg-photo--side { order: -1; }

.fg-head { display: flex; flex-direction: column; gap: 10px; padding-block: 6px; }
.fg-eyebrow {
  display: flex; align-items: center; gap: 4px; margin: 0;
  font-style: italic; text-transform: uppercase; font-size: 16px; line-height: 1.4; color: var(--blue);
}
.fg-eyebrow__rule { flex: none; width: 21.5px; height: 2px; background: var(--blue); }
.fg-h { margin: 0; font-family: var(--font-body); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.48px; color: #000; }
.fg-block--lead .fg-h { font-size: 32px; font-weight: 400; letter-spacing: 0; }

.prose-fg { max-width: none; line-height: 1.4; color: #000; overflow-wrap: break-word; }
.prose-fg p { margin: 0 0 1.4em; }
.prose-fg > :last-child { margin-bottom: 0; }
.prose-fg h3 { font-size: 20px; font-weight: 400; line-height: 1.2; margin: 1.6em 0 .6em; }
.prose-fg h3 strong { font-weight: 700; }
.prose-fg h4 { font-size: 20px; font-weight: 700; line-height: 1.2; margin: 1.6em 0 .6em; color: var(--indigo); }
.prose-fg ul { list-style: none; margin: 0 0 1.4em; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.prose-fg li { position: relative; padding-left: 18px; }
.prose-fg li::before {           /* brand triangle, not a round bullet */
  content: ""; position: absolute; left: 0; top: .42em;
  border-left: 8px solid var(--pink); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.prose-fg a { text-decoration: underline; }

.fg-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 12px 8px 0; background: none; border: 0; font: inherit; color: var(--indigo); cursor: pointer; }
.fg-link:hover { color: var(--blue); }

.fg-photo { margin: 0; border-radius: 8px; overflow: hidden; background: #fdf6d8; }
.fg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fg-photo--side { height: 318px; }
.fg-photo--wide { max-width: 773px; border-radius: 8px; }
.fg-photo--wide img { height: auto; }
.fg-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fg-strip .fg-photo { height: var(--fg-h, 240px); }
.fg-strip--captioned { gap: 24px; }
.fg-pillar { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fg-pillar figcaption { text-align: center; font-weight: 600; font-size: 16px; letter-spacing: -.32px; text-transform: uppercase; }

/* Music instruments */
.fg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 12px; }
.fg-card { display: flex; flex-direction: column; gap: 16px; }
.fg-card__title { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--indigo); }
.fg-card__text { margin: 0; line-height: 1.4; }
.fg-photo--card { height: 219px; border-radius: 12px; background: #917272; }

/* Sports associations */
.fg-logos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.fg-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fg-logo__img { width: 100%; height: 114px; background: var(--grey-f7, #f7f7f7); border-bottom: 4px solid var(--pink); display: grid; place-items: center; overflow: hidden; }
.fg-logo__img img { width: 100%; height: 100%; }
.fg-logo span { font-size: 12px; font-weight: 700; font-style: italic; color: var(--indigo-cta); }

/* Trip types */
.fg-infocards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fg-infocard { background: var(--grey-f7, #f7f7f7); border-bottom: 6px solid var(--indigo-cta); border-radius: 4px; padding: 24px 16px; display: flex; flex-direction: column; gap: 8px; }
.fg-infocard h3 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.2; }
.fg-infocard p { margin: 0; font-size: 14px; line-height: 1.4; }

/* University placements */
.fg-regions { display: flex; flex-direction: column; gap: 0; max-width: 773px; margin-bottom: 12px; }
.fg-region { border-bottom: 1px solid #dfdfdf; }
.fg-region__head { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; min-height: 48px; font-size: 20px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.fg-region--empty .fg-region__head { cursor: default; }
.fg-region__head::-webkit-details-marker { display: none; }
.fg-region__head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.fg-region__icon { color: var(--indigo); flex: none; }
.fg-region__chev { width: 9px; height: 9px; border-right: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease-out); margin-right: 4px; }
.fg-region[open] .fg-region__chev { transform: rotate(-135deg); }
.fg-region__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 12px 0 24px; }
.fg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fg-list li { position: relative; padding-left: 18px; line-height: 1.4; }
.fg-list li::before { content: ""; position: absolute; left: 0; top: .42em; border-left: 8px solid var(--pink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* Closing statement */
.fg-callout { margin: 0; padding: 0 16px; border-left: 2px solid var(--pink); color: var(--pink); font-style: italic; line-height: 1.4; }
.fg-callout p { margin: 0 0 1em; }
.fg-callout p:last-child { margin: 0; }

/* "Apply for admission" band */
.apply-band { background: var(--indigo); color: #fff; padding: 50px 0; }
.apply-band__inner { max-width: var(--container); margin-inline: auto; padding-inline: max(var(--gutter), 60px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.apply-band__title { margin: 0 0 16px; font-size: 32px; line-height: 1.2; }
.apply-band__text { margin: 0; font-size: 20px; line-height: 1.2; }
.apply-band__btn { flex: none; width: 165px; display: inline-flex; align-items: center; justify-content: center; padding: 12px; border-radius: 8px; background: var(--pink); color: #f5f5f5; line-height: 1; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.apply-band__btn:hover { background: #c8156a; color: #fff; transform: translateY(-2px); }

/* "Curriculums We Offer" */
.curric-list { background: var(--white); padding: 100px 0; }
.curric-list__title { margin: 0 0 50px; text-align: center; font-size: 32px; line-height: 1.2; font-weight: 400; }
.curric-list__title strong { font-weight: 700; }
.curric-list__rows { display: flex; flex-direction: column; gap: 16px; }
.curric-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px; min-height: 98px; border-bottom: 1px solid #dfdfdf; color: #000;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.curric-row__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.curric-row__small { font-weight: 600; line-height: 1.4; color: var(--indigo); opacity: .5; }
.curric-row__big { font-size: 20px; font-weight: 700; line-height: 1.2; }
.curric-row__arrow { flex: none; color: var(--indigo); }
.curric-row:hover, .curric-row:focus-visible { background: var(--indigo); color: #fff; }
.curric-row:hover .curric-row__small, .curric-row:focus-visible .curric-row__small { color: #fff; opacity: .7; }
.curric-row:hover .curric-row__arrow, .curric-row:focus-visible .curric-row__arrow { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .fg-wrap { padding: 100px 0; }
  .sl-topic__head { gap: 40px; }
  .fg-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sl-row--captioned .sl-tile { width: calc((100% - 48px) / 3); }
}
@media (max-width: 768px) {
  .fg-wrap { padding: 64px 0; }
  .fg-wrap .container { gap: 48px; }
  .fg-block--split, .fg-block--split.fg-block--media-first { flex-direction: column; gap: 24px; }
  .fg-block--media-first .fg-photo--side { order: 0; }
  .fg-photo--side { width: 100%; height: 240px; }
  .fg-cards, .fg-infocards, .fg-region__lists { grid-template-columns: minmax(0, 1fr); }
  .fg-strip { grid-template-columns: minmax(0, 1fr); }
  .fg-strip .fg-photo { height: min(var(--fg-h, 240px), 60vw); }
  .fg-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .fg-block--lead .fg-h { font-size: 26px; }
  .sl-topic { padding: 64px 0 32px; }
  .sl-topic__head { flex-direction: column; align-items: flex-start; gap: 24px; padding: 0; margin-bottom: 32px; }
  .sl-topic__title { font-size: 26px; }
  .sl-row { gap: 12px; }
  .sl-tile { width: calc((100% - 12px) / 2); }
  .sl-tile img { height: auto; aspect-ratio: 184 / 222; }
  .sl-row--captioned .sl-tile { width: calc((100% - 12px) / 2); }
  .sl-row--captioned .sl-tile img { aspect-ratio: 270 / 254; }
  .apply-band__inner { flex-direction: column; align-items: flex-start; }
  .apply-band__title { font-size: 26px; }
  .apply-band__btn { width: 100%; }
  .curric-list { padding: 64px 0; }
  .curric-list__title { font-size: 26px; margin-bottom: 32px; }
  .curric-row { padding: 18px 12px; min-height: 0; }
}
.prose-fg > :first-child { margin-top: 0; }
.prose-fg h2 { font-family: var(--font-body); font-size: 24px; font-weight: 600; letter-spacing: -.48px; line-height: 1.2; margin: 1.8em 0 .7em; }
.prose-fg blockquote { margin: 1.6em 0 0; padding: 0 16px; border-left: 2px solid var(--pink); color: var(--pink); font-style: italic; }
.prose-fg blockquote p { margin: 0; }
.prose-fg p:has(+ .fg-more[hidden]) { margin-bottom: 0; }
.fg-photo--card { margin-top: auto; }

/* Leadership cards on About: 555 x 416 photo on top, text below. */
.card--row { flex-direction: column; }
.card--row__photo { flex: none; aspect-ratio: 555 / 416; overflow: hidden; }
.card--row__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card--row .btn { width: 100%; justify-content: center; text-align: center; }

/* ---- Mobile hardening ------------------------------------------------ */
.sr-only input, .sr-only textarea { width: 1px; height: 1px; padding: 0; border: 0; }
img, svg, video, iframe, table { max-width: 100%; }
@media (max-width: 900px) {
  /* Comfortable touch targets (>= 44px) without changing the look. */
  .footer__links a, .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .link-more { display: inline-flex; align-items: center; min-height: 44px; }
  .hero__dot, .testi-carousel__dot { position: relative; }
  .hero__dot::after, .testi-carousel__dot::after { content: ""; position: absolute; inset: -14px -6px; }
  .accordion__head { min-height: 52px; }
  input, select, textarea { font-size: 16px; }   /* stops iOS zooming in on focus */
}
@media (max-width: 480px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .hero__inner .btn-row { align-items: center; }
  .hero__inner .btn-row .btn { width: auto; }
}

/* reCAPTCHA checkbox: never wider than the form on small phones */
.field--captcha { overflow: hidden; }
@media (max-width: 360px) { .field--captcha .g-recaptcha { transform: scale(.88); transform-origin: 0 0; } }

/* ---- Round 7: consistent heading weight, leadership feature cards, photo zoom-out ---- */
.h2.h2--uniform { font-weight: 600; }
.h2.h2--uniform strong { font-weight: 600; }

/* A person card that stands apart from the rest (set "Stand-out card" in Admin > Leadership). */
.card--feature { background: linear-gradient(160deg, var(--indigo) 0%, var(--indigo-deep, #1b1943) 100%); border-color: transparent; color: #fff; }
.card--feature .card__title { color: #fff; }
.card--feature .card__meta { color: #7fd0f2; }
.card--feature .card__text, .card--feature .card__text p { color: rgba(255,255,255,.88); }
.card--feature .btn--outline { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.card--feature .btn--outline:hover { background: #fff; color: var(--indigo); }
.card--feature .card__media, .card--feature .card--row__photo { border-bottom: 4px solid var(--pink, #ea2179); }

/* Zoom a photo out when the supplied picture is cropped too tightly. */
.has-photo-scale img { transform: scale(var(--photo-scale, 1)); transform-origin: 50% 100%; }
.card:hover .has-photo-scale img { transform: scale(var(--photo-scale, 1)); }

/* ================================================================
   Round 9
   ================================================================ */

/* ---- Header: logo left, menu centred, Download Brochure right ---- */
@media (min-width: 901px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; justify-content: normal; }
  .nav .brand { justify-self: start; }
  .nav__menu { justify-self: center; }
  .nav__item--cta { display: none; }
  .nav__cta--desktop { justify-self: end; }
}
@media (max-width: 900px) {
  .nav__cta--desktop { display: none; }
}
.site-header.is-over-hero .nav__cta--desktop { color: var(--white); }

/* ---- Pop-up forms ---- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(22, 22, 46, .6); overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: var(--r-lg); padding: 32px 28px 28px; box-shadow: var(--shadow-lg); }
.modal__box--wide { width: min(640px, 100%); }
.modal__box form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.modal__lead { color: var(--ink-soft); margin: 6px 0 0; }
.modal__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 30px; line-height: 1; color: var(--ink-soft); cursor: pointer; border-radius: 50%; }
.modal__close:hover { background: var(--surface); color: var(--indigo); }
body.modal-open { overflow: hidden; }
.form-status { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: #fdecea; color: #8a1f17; font-size: var(--fs-small); }
.form-status--ok { background: #e6f6ec; color: #17653a; }
.modal .field--captcha { overflow: visible; }
@media (max-width: 480px) { .modal__box { padding: 28px 18px 22px; } .modal .g-recaptcha { transform: scale(.9); transform-origin: 0 0; } }

/* ---- Home: Our Story boxes — original staircase design restored (Round 15).
        Number on top, text below, same font sizes and same box size for all three. ---- */
.story__stats { flex: 0 0 300px; max-width: 100%; }
.story__stats-track { display: flex; flex-direction: column; gap: 18px; }
.stat-card {
  width: 100%; max-width: 260px; min-height: 112px; padding: 22px 26px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: left;
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.stat-card:nth-child(2) { margin-left: 32px; }
.stat-card:nth-child(3) { margin-left: 64px; }
.stat-card .stat-card__value { order: 1; font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.02em; margin: 0; }
.stat-card .stat-card__label { order: 2; font-size: var(--fs-body); font-weight: 500; line-height: 1.3; margin: 0; opacity: .95; }
.stat-card--blue { background: var(--blue); }
.stat-card--indigo { background: var(--indigo); }
.stat-card--pink { background: #ea2179; }
@media (max-width: 900px) {
  .story__stats-track { gap: 14px; }
  .stat-card { max-width: 100%; }
  .stat-card:nth-child(2) { margin-left: 18px; width: calc(100% - 18px); }
  .stat-card:nth-child(3) { margin-left: 36px; width: calc(100% - 36px); }
}
/* the paragraph must always be readable, even before animations run */
.story__panel .prose, .story__panel .prose p { opacity: 1 !important; visibility: visible !important; }

/* ---- Curricula tabs: underline style ---- */
.tabs__list { gap: 36px; }
.tabs__btn {
  background: transparent; border-radius: 0; padding: 10px 2px 12px;
  color: var(--ink-soft); border-bottom: 3px solid #d7d7e2;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.tabs__btn:hover { color: var(--indigo); border-bottom-color: #9a98c4; }
.tabs__btn[aria-selected="true"] { background: transparent; color: var(--indigo); border-bottom-color: var(--indigo); }
.tabs__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ---- Key Information tiles: each box hovers in a different brand colour ---- */
.tile { --tile-c: var(--blue); --tile-t: var(--blue-tint); }
.tile:nth-child(3n+2) { --tile-c: var(--pink); --tile-t: var(--pink-tint); }
.tile:nth-child(3n+3) { --tile-c: var(--orange); --tile-t: var(--orange-tint); }
.tile::before { background: var(--tile-c); height: 4px; }
.tile:hover { background: var(--tile-t); border-color: var(--tile-c); }
.tile:hover .tile__title { color: var(--tile-c); }

/* ---- Logo at the top-left of a section, above the subheading and heading ---- */
.section-logo { display: block; height: 48px; width: auto; max-width: 240px; object-fit: contain; margin: 0 0 18px; }
.section-logo--chip { background: #fff; padding: 6px 12px; border-radius: 8px; }

/* ---- Logo strip: every logo fits its box ---- */
.logo-strip__item { width: 200px; min-width: 200px; padding: 12px 18px; }
.logo-strip__img { max-width: 100%; max-height: 66px; width: auto; height: auto; object-fit: contain; }

/* ---- 14-inch laptops (1280-1440 px): keep everything inside the page container ---- */
@media (min-width: 1025px) and (max-width: 1440px) {
  .story { gap: 24px; }
  .story__panel { padding: 34px; }
  .nav { padding-inline: 28px; }
  .nav__menu { gap: 30px; }
}

/* Our Story on phones/tablets: the text panel must grow with its text (it was collapsing to the heading only). */
@media (max-width: 900px) {
  .story { flex-direction: column; }
  .story__panel { flex: 0 0 auto; width: 100%; padding: 28px 22px; }
  .story__stats { flex: 0 0 auto; width: 100%; }
}

/* Testimonials: <blockquote> brings a 40px browser margin that squeezed the cards and shifted them off the page grid. */
.quote, blockquote.quote { margin: 0; }
.quotes { align-items: stretch; }

/* ---------- Round 9: detail pages (Arts etc.) ---------- */
.fg-block__text { padding-block: 0; gap: 8px; }
.fg-head { padding-block: 0; gap: 6px; }
.fg-block > .fg-head + .fg-body, .fg-block { gap: 12px; }
.fg-block--split { align-items: flex-start; }
.fg-block--split .fg-photo--side { margin-top: 0; }
.fg-cards { gap: 28px; margin-top: 8px; }
.fg-card { gap: 12px; padding: 20px; background: #fff; border: 1px solid #e3e5ee; border-bottom: 4px solid var(--blue); border-radius: 12px; box-shadow: 0 6px 18px rgba(40,37,96,.06); }
.fg-card:nth-child(4n+2) { border-bottom-color: var(--pink); }
.fg-card:nth-child(4n+3) { border-bottom-color: var(--orange); }
.fg-card:nth-child(4n+4) { border-bottom-color: var(--indigo); }
.fg-card__title { margin: 0; }
.fg-card__text { flex: 1 1 auto; }
.fg-photo--card { margin-top: 4px; }
@media (max-width: 900px) { .fg-card { padding: 16px; } }

/* Select fields: always readable options and a visible arrow, on any background */
.select {
  color: #1a1a1a; background-color: #fff; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23282560' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
}
.select option { color: #1a1a1a; background: #fff; }
.select:invalid { color: #6b6b7a; }
.select option:not([value=""]) { color: #1a1a1a; }

/* IBDP: sub-headings in brand indigo */
.page-ibdp .section:not(.section--indigo) .lead.muted,
.page-ibdp .section:not(.section--indigo) .lead { color: var(--indigo); font-weight: 600; }

/* Leader photos: identical frame on About and Leadership, faces kept in view */
.leader-frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface, #f4f5fa); }
.leader-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; display: block; }

/* Lightbox: scrollable thumbnail strip */
.lightbox__thumbs { width: 100%; max-width: 900px; display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.lightbox__thumbs[hidden] { display: none; }
.lightbox__thumb { flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #222; opacity: .6; cursor: pointer; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumb.is-active, .lightbox__thumb:hover { opacity: 1; border-color: #fff; }

/* Student Life: heading block starts exactly where the pictures start */
.sl-topic__head { padding-inline: 0; }

/* ================================================================
   Round 10
   ================================================================ */

/* Header: menu truly centred in the page, logo left, button right */
@media (min-width: 901px) {
  .nav { display: flex; justify-content: space-between; position: relative; }
  .nav__menu { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); gap: 36px; }
  .nav__cta--desktop { margin-left: auto; position: relative; z-index: 1; }
  .brand { position: relative; z-index: 1; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .nav__menu { gap: 22px; }
  .nav__link { font-size: 15px; }
  .nav { padding-inline: 20px; }
  .nav__cta--desktop { padding-inline: 14px; font-size: 14px; }
}
.brand__mark { height: 62px; }

/* Bigger logos */
.logo-strip__item, .logo-strip__item { width: 270px; min-width: 270px; height: 120px; padding: 10px 14px; }
.logo-strip__img { max-height: 96px; max-width: 238px; }
.section-logo { height: 76px; max-width: 340px; }
.section-logo--chip { padding: 8px 16px; }

/* Section pictures: fill the column height instead of floating in the middle */
.split--stretch { align-items: stretch; }
.split--stretch .split__media { display: flex; }
.split--stretch .split__media img { width: 100% !important; height: 100% !important; min-height: 380px; object-fit: cover !important; border-radius: 16px !important; box-shadow: 0 14px 34px rgba(40, 37, 96, .14); }
@media (max-width: 900px) { .split--stretch .split__media img { min-height: 0; height: auto !important; aspect-ratio: 4 / 3; } }

/* Vision & Mission */
.vision { background: #fff; padding-block: 90px; }
.vision__title { text-align: center; margin: 0 0 28px; font-size: clamp(30px, 4vw, 44px); font-weight: 400; color: #000; }
.vision__title strong { font-weight: 700; }
.vision__text { max-width: 760px; margin: 0 auto; text-align: center; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: #000; }
.vision__text p { margin: 0 0 1em; }
.vision__tagline { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 60px); margin-top: 56px; flex-wrap: wrap; }
.vision__bird { width: clamp(120px, 14vw, 180px); height: auto; flex: none; }
.vision__slogan { margin: 0; max-width: 11ch; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.12; font-weight: 700; color: #5BA8DE; }

/* Student Life: five pictures per row */
.sl-row--captioned { gap: 16px; }
.sl-row--captioned .sl-tile { width: calc((100% - 64px) / 5); }
.sl-row--captioned .sl-tile img { height: 220px; }
@media (max-width: 1024px) { .sl-row--captioned .sl-tile { width: calc((100% - 32px) / 3); } }
@media (max-width: 600px) { .sl-row--captioned .sl-tile { width: calc((100% - 12px) / 2); } .sl-row--captioned .sl-tile img { height: auto; aspect-ratio: 1 / 1; } }

/* Leader photos: one white frame so every picture sits the same way */
.leader-frame, .card--feature .leader-frame { background: #fff; }
.leader-frame img { object-position: 50% 18%; }

/* Campus lightbox: a 50%-wide panel with its own scrolling photo list */
.lightbox { padding: 20px; background: rgba(18, 17, 45, .72); backdrop-filter: blur(3px); align-items: center; justify-content: center; }
.lightbox__panel { width: 50vw; min-width: 360px; max-width: 760px; max-height: 88vh; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.lightbox__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #e6e8f0; }
.lightbox__title { margin: 0; font-size: 20px; font-weight: 700; color: var(--indigo); line-height: 1.2; }
.lightbox__count { margin: 4px 0 0; font-size: 13px; color: #6b6b7a; opacity: 1; }
.lightbox__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f2f8; color: var(--indigo); cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover { background: var(--indigo); color: #fff; }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__scroll { overflow-y: auto; padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 18px; background: #f7f7fb; overscroll-behavior: contain; }
.lightbox__item { margin: 0; }
.lightbox__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #e9eaf2; }
.lightbox__item figcaption { padding: 8px 2px 0; font-size: 14px; color: #444; }
@media (max-width: 800px) { .lightbox__panel { width: 100%; min-width: 0; max-height: 92vh; } .lightbox { padding: 12px; } }

/* ---------- Wellbeing page (Figma) ---------- */
.wb-title { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 400; line-height: 1.15; color: #000; }
.wb-title strong { font-weight: 700; }
.wb-title--center { text-align: center; margin-bottom: 32px; }
.wb-split { background: #fff; padding-block: 80px; }
.wb-split__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.wb-split--flip .wb-split__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.wb-split__text .prose { line-height: 1.55; }
.wb-split__text .prose p { margin: 0 0 1em; }
.wb-split__media { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3.2; background: #f1dcdc; box-shadow: 0 14px 34px rgba(40, 37, 96, .12); }
.wb-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-what { padding-block: 80px; }
.wb-what__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.wb-what__intro { display: flex; flex-direction: column; justify-content: center; padding-right: 12px; }
.wb-what__intro .prose { line-height: 1.55; }
.wb-card { background: #fff; border-radius: 12px; padding: 28px 24px; box-shadow: 0 8px 24px rgba(40, 37, 96, .08); display: flex; flex-direction: column; gap: 10px; }
.wb-card__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #ececf6; }
.wb-card__icon i { width: 18px; height: 18px; border-radius: 5px; border: 3px solid currentColor; display: block; }
.wb-card__icon--indigo { color: var(--indigo); background: #e7e6f3; }
.wb-card__icon--orange { color: var(--blue); background: #dff3fb; }
.wb-card__icon--pink { color: var(--pink); background: #fde3ee; }
.wb-card__icon--blue { color: var(--blue); background: #dff3fb; }
.wb-card__title { margin: 14px 0 0; font-size: 18px; font-weight: 700; color: #000; }
.wb-card__text { margin: 0; font-size: 14px; line-height: 1.5; color: #333; }
.wb-policies { padding-block: 80px; }
.wb-policy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.wb-policy { display: flex; flex-direction: column; gap: 14px; min-height: 230px; padding: 24px 22px 20px; background: var(--indigo); color: #fff; border-bottom: 4px solid var(--orange); border-radius: 6px; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.wb-policy:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(40, 37, 96, .25); color: #fff; }
.wb-policy__mark { width: 52px; height: auto; }
.wb-policy h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: #fff; flex: 1; }
.wb-policy__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
@media (max-width: 1024px) { .wb-what__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wb-what__intro { grid-column: 1 / -1; } .wb-policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .wb-split { padding-block: 56px; } .wb-split__grid, .wb-split--flip .wb-split__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .wb-split--flip .wb-split__media { order: -1; } }
@media (max-width: 560px) { .wb-what__grid, .wb-policy-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Early Years page (Figma) ---------- */
.ey-intro { background: #cde6ea; padding-block: 70px; }
.ey-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ey-intro__title { margin: 0 0 16px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; font-weight: 700; color: #0b1f2a; }
.ey-intro .prose { line-height: 1.55; color: #0b1f2a; }
.ey-badge { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 20px; background: #0c6b66; color: #fff; border-radius: 6px; }
.ey-badge svg { flex: none; color: #ffd36b; }
.ey-badge span { display: flex; flex-direction: column; gap: 2px; }
.ey-badge small { font-size: 12px; opacity: .85; }
.ey-video { margin: 0; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.ey-video img, .ey-video iframe, .ey-video video { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.ey-welcome { background: #fff; }
.ey-welcome .container { display: flex; flex-direction: column; gap: 40px; }
.ey-card { background: #f7f7f7; border-radius: 12px; padding: 36px 40px; }
.ey-card__kicker { margin: 0 0 8px; font-style: italic; color: #555; }
.ey-card__title { margin: 0 0 14px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; color: #111; }
.ey-card .prose { line-height: 1.55; }
.ey-wide { margin: 0; border-radius: 12px; overflow: hidden; }
.ey-wide img { width: 100%; height: auto; display: block; }
.ey-h { margin: 8px 0 14px; font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: #111; line-height: 1.2; }
.ey-prose { line-height: 1.55; max-width: 1000px; }
.ey-prose p { margin: 0 0 1em; }
.ey-partner, .ey-space, .ey-faculty { padding-block: 80px; }
.ey-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.ey-pillar { background: #0c6b66; color: #fff; border-radius: 8px; padding: 28px 24px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ey-pillar__dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: block; }
.ey-pillar h3 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; }
.ey-pillar p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.ey-space .prose blockquote, .ey-space .prose em { color: var(--pink); }
.ey-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.ey-strip figure { margin: 0; aspect-ratio: 5 / 4; border-radius: 8px; overflow: hidden; background: #e3b3b3; }
.ey-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ey-faculty__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ey-faculty__img { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #e3b3b3; }
.ey-faculty__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .ey-intro__grid, .ey-faculty__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .ey-pillars { grid-template-columns: minmax(0, 1fr); } .ey-strip { grid-template-columns: minmax(0, 1fr); } .ey-card { padding: 24px 20px; } .ey-partner, .ey-space, .ey-faculty { padding-block: 56px; } }
.vision__slogan { max-width: 16ch; }

/* ---------- Round 11 ---------- */
/* Header spans the full width: logo at the far left, Download Brochure at the far right */
@media (min-width: 901px) {
  .nav { max-width: none; padding-inline: clamp(24px, 4vw, 64px); }
}
/* Pedagogy card icon */
.ey-pillar__dot { overflow: hidden; width: 56px; height: 56px; }
.ey-pillar__dot img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }

/* About: leaders, first two in 2 columns then the rest in 3 columns; whole photo always visible */
.leaders-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.leaders-grid > .card { grid-column: span 2; }
.leaders-grid > .card:nth-child(-n+2) { grid-column: span 3; }
.leaders-grid .card--row__photo, .leaders-grid .leader-frame { aspect-ratio: 4 / 3; }
.leader-frame img, .leaders-grid .leader-frame img { object-fit: contain; object-position: 50% 100%; background: #fff; }
.has-photo-scale img { transform: none; }
.leaders-grid .card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.leaders-grid .card__text { flex: 1; }
@media (max-width: 900px) { .leaders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .leaders-grid > .card, .leaders-grid > .card:nth-child(-n+2) { grid-column: span 1; } }
@media (max-width: 600px) { .leaders-grid { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Round 15 (client feedback, 17 Nov)
   ===================================================================== */
/* Hero: breadcrumb line + main title only (no extra eyebrow / sub line) */
.hero--clean .hero__eyebrow, .hero--clean .hero__sub { display: none; }

/* Curricula tabs (home): only the active tab is blue; the others are grey, text and underline */
.tabs__btn { color: var(--grey-58); border-bottom-color: #dcdce4; }
.tabs__btn:hover { color: var(--blue-dark); border-bottom-color: #9fd6ee; }
.tabs__btn[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }

/* Key Information: no box fill. Outline only; the border takes a brand colour on hover / when open */
.accordion__item { --ki-c: var(--blue); background: transparent; color: var(--ink); border: 1px solid var(--grey-line); box-shadow: none; transition: border-color var(--dur) var(--ease-out); }
.accordion__item:nth-child(3n+2) { --ki-c: var(--pink); }
.accordion__item:nth-child(3n+3) { --ki-c: var(--indigo); }
.accordion__item:hover, .accordion__item[open] { background: transparent; border-color: var(--ki-c); box-shadow: none; }
.accordion__item:hover .accordion__title { color: var(--ki-c); }
/* Key Information tiles (Academics): same rule, no fill on hover */
.tile:hover { background: var(--white); border-color: var(--tile-c); }
.tile:nth-child(3n+3) { --tile-c: var(--indigo); --tile-t: var(--indigo-tint); }

/* Admissions process: the grey (not-yet-reached) number badges are solid, so the line no longer shows through them */
.process-flow.is-armed .process-flow__badge { background: #3d3b70; color: rgba(255, 255, 255, .55); }
.process-flow.is-armed .process-flow__row.is-active .process-flow__badge { background: var(--blue); color: var(--white); }

/* Alumni letter box: solid, clearly outlined, no fade or overlay at the bottom */
.alumni-letter { padding: 40px; border-radius: 12px; background: #f3f3f8; border: 1px solid #dfdfe9; opacity: 1 !important; transform: none !important; visibility: visible !important; -webkit-mask-image: none; mask-image: none; }
.alumni-letter::before, .alumni-letter::after { content: none !important; }
@media (max-width: 640px) { .alumni-letter { padding: 24px 20px; } }

/* ---- Round 15: tighter page margins + one consistent gap between image and text ---- */
:root { --section-y: 72px; }
@media (max-width: 1100px) { :root { --section-y: 60px; } }
@media (max-width: 900px)  { :root { --section-y: 48px; } }
.fg-wrap { padding: 80px 0; }
.fg-wrap .container { gap: 48px; }
.sl-topic { padding: 64px 0 24px; }
.sl-topic + .sl-topic { padding-top: 48px; }
.sl-topic:last-of-type { padding-bottom: 64px; }
.wb-split, .wb-what, .wb-policies, .ey-partner, .ey-space, .ey-faculty { padding-block: 56px; }
.ey-intro { padding-block: 56px; }
/* image <-> paragraph gap, the same on every two-column section */
.fg-block--split { column-gap: 56px; }
.split, .wb-split__grid, .ey-intro__grid, .ey-faculty__grid { column-gap: 56px; }
@media (max-width: 1024px) { .fg-wrap { padding: 64px 0; } .fg-block--split, .split { column-gap: 36px; } }
@media (max-width: 768px) {
  .fg-wrap { padding: 48px 0; }
  .fg-wrap .container { gap: 36px; }
  .fg-block--split, .fg-block--split.fg-block--media-first { flex-direction: column; row-gap: 24px; }
  .sl-topic { padding: 48px 0 16px; }
  .wb-split, .wb-what, .wb-policies, .ey-partner, .ey-space, .ey-faculty, .ey-intro { padding-block: 44px; }
}

/* ---- About / Leadership: one type scale for every section ----
   section titles 32px, intro text 16px, card titles 20px, card text 15px, same card style */
.page-about .vision, .page-leadership .vision { padding-block: 64px; }
.page-about .vision__title { font-size: clamp(26px, 3.2vw, var(--fs-h2)); margin-bottom: 18px; }
.page-about .vision__text { font-size: var(--fs-body); max-width: 820px; line-height: 1.6; }
.page-about .vision__slogan { font-size: clamp(28px, 3.4vw, 40px); }
.page-about .vision__tagline { margin-top: 36px; }
.page-about .value-card__text, .page-about .card__text, .page-about .card__text p { font-size: 15px; line-height: 1.55; }
.page-about .card__title { font-size: var(--fs-lead); }
.page-about .value-card__title { font-size: var(--fs-lead); }
.page-about .section-head { margin-bottom: 36px; }
.page-about .section-head p { font-size: var(--fs-body); }
/* every leader card looks the same (no dark "feature" card) */
.page-about .card--feature { background: var(--white); color: var(--ink); border-color: var(--grey-line); }
.page-about .card--feature .card__title { color: var(--ink); }
.page-about .card--feature .card__meta { color: var(--blue-dark); }
.page-about .card--feature .card__text, .page-about .card--feature .card__text p { color: var(--ink-soft); }
.page-about .card--feature .btn--outline { color: var(--indigo); border-color: var(--indigo); }
.page-about .card--feature .btn--outline:hover { background: var(--indigo); color: #fff; }
.page-about .card--feature .card__media, .page-about .card--feature .card--row__photo { border-bottom: 0; }

/* Key Information page: no grey bands. White page, a thin divider between items,
   and the brand-colour border appears on the picture + heading on hover (no fill). */
.ki-item { --ki-c: var(--blue); background: #fff; border-top: 1px solid var(--grey-line); }
.ki-item:first-of-type { border-top: 0; }
.ki-item:nth-of-type(3n+2) { --ki-c: var(--pink); }
.ki-item:nth-of-type(3n+3) { --ki-c: var(--indigo); }
.ki-item .split__media img { border: 2px solid transparent; transition: border-color var(--dur) var(--ease-out); box-sizing: border-box; }
.ki-item .h2 { transition: color var(--dur) var(--ease-out); }
.ki-cta { background: #fff; border-top: 1px solid var(--grey-line); }

/* Apply banner is always followed by another section (never touches the footer) */
.apply-band + .sl-links { padding-top: 72px; }

/* ---- Student Life pictures on phones: swipeable strip, moves by itself, arrows for manual control ---- */
.sl-carousel { position: relative; }
.sl-carousel__btn { display: none; }
@media (max-width: 700px) {
  .sl-carousel__track { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 12px !important; padding-bottom: 2px; }
  .sl-carousel__track::-webkit-scrollbar { display: none; }
  .sl-carousel__track .sl-tile, .sl-row--captioned.sl-carousel__track .sl-tile { flex: 0 0 72%; width: 72% !important; scroll-snap-align: start; }
  .sl-carousel__track .sl-tile img { height: auto !important; aspect-ratio: 4 / 5; }
  .sl-carousel__btn { display: grid; place-items: center; position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--indigo); box-shadow: 0 4px 14px rgba(40,37,96,.25); cursor: pointer; padding: 0; }
  .sl-carousel__btn--prev { left: 6px; }
  .sl-carousel__btn--next { right: 6px; }
  .sl-carousel__btn:active { background: var(--indigo); color: #fff; }
}

/* Hamburger -> cross: smooth, symmetrical, crossed lines the same length and colour */
.nav__toggle-bar { transform-origin: center; transition: transform .3s var(--ease-out), opacity .2s ease; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: var(--black); }

/* Breadcrumb on phones: one tidy centred line, readable over the photo */
.hero .breadcrumb { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero .breadcrumb li { white-space: nowrap; }
@media (max-width: 700px) {
  .hero .breadcrumb { flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 8px; font-size: 13px; margin-bottom: 12px; }
  .hero .breadcrumb li + li::before { margin-right: 8px; }
  .hero .breadcrumb a { min-height: 0; display: inline; }
}

/* ---- IBDP subject groups: a real table, kept simple ----
   No bullets, everything centred, six equal columns with even spacing.
   On phones each group stacks under its own "Group N" bar so nothing needs sideways scrolling. */
.prose--wide:has(table) { overflow: visible; }
.prose table { table-layout: fixed; width: 100%; min-width: 0; margin: 28px 0; border-collapse: collapse; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.prose thead th { text-align: center; padding: 14px 10px; font-size: var(--fs-body); }
.prose tbody td { text-align: center; vertical-align: top; padding: 22px 14px; font-size: 15px; line-height: 1.4; }
.prose tbody td + td { border-left: 1px solid #fff; }
.prose tbody td strong { display: block; margin: 0 0 12px; font-size: 16px; line-height: 1.3; color: var(--indigo); }
.prose tbody td ul { list-style: none; margin: 0; padding: 0; column-count: 1; }
.prose tbody td li { margin: 0; padding: 5px 0; }
.prose tbody td[colspan] { text-align: center; padding: 16px; border-left: 0; border-top: 1px solid #fff; }
@media (max-width: 1100px) { .prose tbody td { padding: 18px 8px; font-size: 14px; } .prose thead th { font-size: 14px; padding: 12px 6px; } .prose tbody td strong { font-size: 15px; } }
@media (max-width: 760px) {
  .prose table, .prose table tbody, .prose table tr, .prose table td { display: block; width: 100%; }
  .prose table thead { display: none; }
  .prose table tbody { counter-reset: grp; }
  .prose table tbody td { counter-increment: grp; padding: 0 16px 20px; border-left: 0; border-top: 0; }
  .prose table tbody td + td { border-top: 6px solid #fff; }
  .prose table tbody td::before { content: "Group " counter(grp); display: block; margin: 0 -16px 16px; padding: 11px 12px; background: var(--indigo); color: #fff; font-size: 15px; font-weight: 600; }
  .prose table tbody td[colspan] { counter-increment: none; padding: 16px; }
  .prose table tbody td[colspan]::before { display: none; }
}

/* ---- Curricula tabs on phones: one swipeable row (no 2 x 2 wrapping), like a normal app tab bar ---- */
@media (max-width: 700px) {
  .tabs { gap: 28px; }
  .tabs__list {
    flex-wrap: nowrap; justify-content: flex-start; gap: 4px;
    overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    border-bottom: 1px solid var(--grey-line);
  }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__btn { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: center; padding: 12px 14px 12px; font-size: 16px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
  .tabs__btn:hover { border-bottom-color: transparent; }
  .tabs__btn[aria-selected="true"] { border-bottom-color: var(--blue); }
}

/* ---- Admissions process on phones: the same slanted line as desktop, just narrower ----
   Numbers sit in one tidy column (every other one nudged a little to the right so the line
   zig-zags gently), text starts on the same line as its number, and the blue line fills as you scroll. */
@media (max-width: 900px) {
  .process-flow__rows { gap: 34px; }
  .process-flow__rows::before, .process-flow__rows::after { display: none !important; }
  .process-flow__svg { display: block; left: 0; width: 70px; transform: none; }
  .process-flow__row {
    display: grid !important; grid-template-columns: 62px minmax(0, 1fr); column-gap: 14px; align-items: start;
    transform: none !important;           /* no left / right sliding on phones: steps just fade in */
  }
  .process-flow__lane { grid-column: 1 !important; grid-row: 1 !important; justify-content: flex-start; }
  .process-flow__row:nth-child(even) .process-flow__badge { transform: translateX(14px) !important; }
  .process-flow__row:nth-child(odd) .process-flow__badge { transform: none !important; }
  .process-flow__row .process-flow__card { grid-column: 2 !important; grid-row: 1 !important; margin: 0 !important; max-width: none; text-align: left !important; padding-top: 2px; }
  .process-flow__row .process-flow__badge { width: 46px; height: 46px; font-size: 14px; }
  .process-flow__eyebrow { display: block; margin: 0 0 4px; line-height: 1.2; }
  .process-flow__title { font-size: 18px; margin-bottom: 6px; line-height: 1.25; }
  .process-flow__text { font-size: 14px; line-height: 1.55; }
}


/* ================= Round 16 ================= */
/* Key Information: no hover effects at all */
.page-key-information .ki-item .split__media img { border: 0; transition: none; }
.page-key-information .tile:hover, .page-key-information .accordion__item:hover, .page-key-information .card:hover { transform: none; box-shadow: none; background: inherit; border-color: inherit; }
.page-key-information .tile:hover::before { transform: scaleX(0); }
.page-key-information a:hover .h2, .page-key-information .ki-item:hover .h2 { color: inherit; }

/* Wellbeing: same type system as every other page */
.wb-title { font-size: clamp(26px, 3.2vw, var(--fs-h2)); line-height: var(--lh-tight); font-weight: 400; color: var(--ink); }
.wb-split, .wb-what, .wb-policies { padding-block: var(--section-y); }
.wb-split__text .prose, .wb-split__text .prose p, .wb-what__intro .prose, .wb-what__intro .prose p { font-size: var(--fs-body); line-height: 1.6; }
.wb-card__title { font-size: var(--fs-lead); }
.wb-card__text { font-size: 15px; line-height: 1.55; }
.wb-policy h3 { font-size: var(--fs-lead); }

/* Accreditations: logos shown whole, centred, never stretched or cropped */
.page-accreditations .split__media { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(40, 37, 96, .12); padding: 32px; min-height: 260px; }
.page-accreditations .split__media img { width: auto !important; max-width: 100% !important; height: auto !important; max-height: 260px; object-fit: contain !important; border-radius: 0 !important; box-shadow: none !important; image-rendering: auto; }
@media (max-width: 760px) { .page-accreditations .split__media { padding: 20px; min-height: 180px; } .page-accreditations .split__media img { max-height: 180px; } }
.page-accreditations .split--stretch .split__media, .page-accreditations .split__media { align-items: center; }
.page-accreditations .split--stretch .split__media img, .page-accreditations .split .split__media img { width: auto !important; height: auto !important; min-height: 0 !important; max-width: 100% !important; max-height: 260px !important; object-fit: contain !important; aspect-ratio: auto !important; }

/* ================= Round 17 — mobile ================= */
/* Student placements: stacked lists keep one even rhythm (no bigger gap where the two columns meet) */
@media (max-width: 900px) { .fg-region__lists { gap: 12px; padding: 12px 0 20px; } }

/* Mobile menu: open sub-menu gets even breathing room above and below */
@media (max-width: 900px) {
  .nav__item.is-expanded > .nav__dropdown { padding: 6px 0 10px 14px; border-bottom: 1px solid var(--grey-line); border-radius: 0; background: transparent; }
  .nav__dropdown a { padding: 12px 10px; font-size: var(--fs-body); }
  .nav__item.is-expanded > .nav__link { border-bottom: 1px solid var(--grey-line); }
}

/* About: bird left + slogan right on phones, same as desktop */
@media (max-width: 760px) {
  .vision__tagline { flex-direction: row; flex-wrap: nowrap; text-align: left; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
  .vision__bird { width: 96px; flex: none; }
  .vision__slogan, .page-about .vision__slogan { max-width: none; text-align: left; font-size: 22px; line-height: 1.15; }
}

/* Type scale on phones: one clear step per level. h1 (hero) > h2 (sections) > h3 (cards) > body */
@media (max-width: 640px) {
  :root { --fs-h2: 22px; --fs-h3: 18px; --fs-lead: 17px; }
  h1, .display, .hero__title { font-size: 26px !important; letter-spacing: 1px; line-height: 1.15; }
  h2, .h2, .fg-h, .ey-h, .wb-title, .vision__title, .page-about .vision__title, .sl-topic__title, .ey-intro__title,
  .curric-list__title, .apply-band__title, .section-head .h2 { font-size: 22px !important; line-height: 1.2; }
  h3, h2.card__title, .card__title, .tile__title, .value-card__title, .fg-card__title, .event-card__title,
  .award-card__title, .wb-card__title, .dept-card__name, .alumnus__name, .ey-card__title { font-size: 18px !important; line-height: 1.25; }
  .award-card__rank { font-size: 22px; }
  .hero__eyebrow { font-size: 15px; }
  .hero__sub, p.lead, .lead { font-size: 17px; }
  .apply-band__text { font-size: 16px; }
  .btn, a.btn, button.btn { font-size: 16px; }
  .fg-region__head { font-size: 18px; }
}

/* One vertical rhythm: every full-width section uses the same top/bottom space (72 desktop / 60 laptop / 48 tablet+phone) */
.section--tight, .vision, .page-about .vision, .page-leadership .vision, .curric-list,
.ey-intro, .ey-partner, .ey-space, .ey-faculty, .wb-split, .wb-what, .wb-policies,
.apply-band + .sl-links { padding-block: var(--section-y) !important; }
.sl-topic, .sl-topic + .sl-topic { padding-block: var(--section-y) 0 !important; }
.sl-topic:last-of-type { padding-bottom: var(--section-y) !important; }
.award-card__link { display: inline-flex; align-items: center; min-height: 44px; }

/* Header with 6 menu items: below 1320px the menu sits between logo and button (no overlap) */
@media (min-width: 901px) and (max-width: 1320px) {
  .nav__menu { position: static; transform: none; margin-inline: auto; gap: 16px; }
  .nav__link { font-size: 14px; }
  .nav__cta--desktop { padding-inline: 12px; font-size: 13px; white-space: nowrap; }
  .nav { padding-inline: 16px; gap: 12px; }
  .brand__mark { height: 52px; }
}
@media (min-width: 901px) and (max-width: 960px) { .nav__menu { gap: 12px; } .nav__link { font-size: 13px; } }

/* ================= Round 20 ================= */
/* About / Leadership "Engaging Minds" tagline: ONE rule for every screen size — bird and slogan side by side, close together */
.vision__tagline, .page-about .vision__tagline { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(24px, 3vw, 40px); text-align: left; }
.vision__bird { width: clamp(84px, 11vw, 150px); height: auto; flex: none; }
.vision__slogan, .page-about .vision__slogan { margin: 0; max-width: none; text-align: left; font-size: clamp(20px, 3.2vw, 40px); line-height: 1.15; }

/* Accreditations: every logo fills a same-sized white box, shown whole (never cropped, never tiny) */
.page-accreditations .split__media { height: 300px; min-height: 0; padding: 28px; display: flex; align-items: center; justify-content: center; }
.page-accreditations .split__media img,
.page-accreditations .split--stretch .split__media img,
.page-accreditations .split .split__media img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; }
.page-accreditations .section-logo { display: none; }
@media (max-width: 760px) { .page-accreditations .split__media { height: 220px; padding: 20px; } }

/* Early Years: only Garodia FinlandWay colours (purple + soft teal from the FinlandWay logo) */
.page-early-years { --fw-purple: #6A3E8D; --fw-teal: #83A9AD; --fw-teal-dark: #4F7F84; --fw-tint: #EAF2F3; --fw-line: linear-gradient(90deg, #6A3E8D, #83A9AD); }
.page-early-years .ey-intro { background: var(--fw-tint); }
.page-early-years .ey-intro__title, .page-early-years .ey-h, .page-early-years .ey-card__title { color: var(--fw-purple); }
.page-early-years .ey-intro .prose { color: #2a2a3a; }
.page-early-years .ey-badge { background: var(--fw-purple); }
.page-early-years .ey-badge svg { color: #fff; }
.page-early-years .ey-pillar { background: var(--fw-purple); }
.page-early-years .ey-space .prose blockquote, .page-early-years .ey-space .prose em { color: var(--fw-purple); }
.page-early-years .ey-strip figure, .page-early-years .ey-faculty__img { background: var(--fw-tint); }
.page-early-years .fg-eyebrow, .page-early-years .fg-eyebrow span { color: var(--fw-purple); }
.page-early-years .fg-eyebrow__rule { background: var(--fw-teal); }

/* Student Life photo rows: always ONE line (5 across on desktop, 3 on tablet; phones already swipe) */
@media (min-width: 761px) {
  .sl-row--captioned { flex-wrap: nowrap; }
  .sl-row--captioned .sl-tile:nth-child(n+6) { display: none; }
}
@media (min-width: 761px) and (max-width: 1024px) { .sl-row--captioned .sl-tile:nth-child(n+4) { display: none; } }

/* Header drop-down arrow: clearly visible */
.nav__caret { flex: none; width: 14px; height: 9px; }

/* Magazine: the cover is the only click target (no button per issue, works for 2 or 20 issues) */
.mag-item__actions { display: none; }
.mag-item__open { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--indigo); font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(-4px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
a.mag-item__cover:hover .mag-item__open, a.mag-item__cover:focus-visible .mag-item__open { opacity: 1; transform: none; }
@media (hover: none) { .mag-item__open { opacity: 1; transform: none; } }
.vision__slogan, .page-about .vision__slogan { max-width: 16ch; }
.page-accreditations .split__media img { background: transparent !important; }

/* Early Years: BOTH FinlandWay colours — purple for text/cards, teal for lines, accents and tints (the logo's own purple→teal line is reused) */
.page-early-years .ey-h::after, .page-early-years .ey-intro__title::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--fw-line); }
.page-early-years .ey-badge { background: var(--fw-purple); border-left: 6px solid var(--fw-teal); }
.page-early-years .ey-pillar { background: var(--fw-purple); border-bottom: 6px solid var(--fw-teal); }
.page-early-years .ey-pillar__dot { background: var(--fw-teal); }
.page-early-years .ey-card { background: var(--fw-tint); border-left: 6px solid var(--fw-teal); }
.page-early-years .ey-card__kicker { color: var(--fw-teal-dark); }
.page-early-years .fg-eyebrow, .page-early-years .fg-eyebrow span { color: var(--fw-teal-dark); }
.page-early-years .fg-eyebrow__rule { background: var(--fw-line); width: 32px; }
.page-early-years .ey-strip figure, .page-early-years .ey-faculty__img, .page-early-years .ey-video { background: var(--fw-tint); }
.page-early-years .ey-wide { border-bottom: 6px solid var(--fw-teal); }
.page-early-years .link-more { color: var(--fw-purple); }

/* Early Years pedagogy cards: icon only if one is uploaded — no circle, no filler */
.page-early-years .ey-pillar__dot { background: transparent; border-radius: 0; width: 56px; height: 56px; }
.page-early-years .ey-pillar__dot img { padding: 0; }

/* ---- Round 21: footer legal links (bottom right), legal pages, leader photo frames ---- */
.footer__bottom { justify-content: space-between; }
.footer__legal { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-left: auto; }
.footer__legal a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .footer__bottom { flex-direction: column; text-align: center; } .footer__legal { margin-left: 0; justify-content: center; } }

.legal { max-width: 820px; margin-inline: auto; }
.legal__updated { color: var(--grey-58); font-size: var(--fs-small); margin: 0 0 24px; }
.legal__h { font-size: 22px; line-height: 1.3; margin: 32px 0 10px; color: var(--indigo); }
.legal__body { max-width: none; }
.legal__body p { margin: 0 0 1em; }
@media (max-width: 640px) { .legal__h { font-size: 18px !important; margin-top: 24px; } }

/* Leader photos: plain white frame everywhere (no blue behind the person) */
.leader-frame, .card--row__photo, .card__media.leader-frame, .dept-card__photo { background: #fff; }
.leader-band__photo, .leader-spotlight__photo { background: #fff; }
/* Legal pages: short plain header, no banner photo */
.hero--legal.hero--inner { min-height: 0 !important; background: var(--indigo); }
.hero--legal .hero__slides { display: none; }
.hero--legal .hero__inner { min-height: 0 !important; padding-block: 120px 56px; }
.hero--legal .hero__title, .hero--legal h1 { margin-bottom: 0; }
@media (max-width: 900px) { .hero--legal .hero__inner { padding-block: 96px 40px; } }

/* Leadership page: same plain white cards as About (no dark blue card) */
.page-leadership .card--feature { background: var(--white); color: var(--ink); border-color: var(--grey-line); }
.page-leadership .card--feature .card__title { color: var(--ink); }
.page-leadership .card--feature .card__meta { color: var(--blue-dark); }
.page-leadership .card--feature .card__text, .page-leadership .card--feature .card__text p { color: var(--ink-soft); }
.page-leadership .card--feature .card__media, .page-leadership .card--feature .card--row__photo { border-bottom: 0; }
