/* All Nations International School — site styles
   Palette from the brand kit: purple leads, red is for actions, blue is the second accent. */

:root {
  --bg: #FAF7F5;
  --surface: #F3ECF2;
  --surface-2: #2A1F2C;
  --white: #FFFFFF;
  --text: #231A25;
  --muted: #6D6270;
  --brand: #936190;
  --brand-rgb: 147, 97, 144;
  --brand-soft: #C9A9C7;
  --accent: #AB2B29;
  --accent-rgb: 171, 43, 41;
  --accent-dark: #8E2220;
  --accent-2: #106B94;
  --line: #E4DAE2;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", var(--font);
  --tshadow: 0 1px 2px rgba(15, 8, 17, .85), 0 3px 12px rgba(15, 8, 17, .55), 0 10px 44px rgba(15, 8, 17, .55);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.09rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
h2 { font-size: clamp(2.6rem, 2rem + 3.6vw, 5.2rem); margin-bottom: .45em; }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 3rem + 7vw, 9rem); position: relative; }
.big { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.5; color: var(--text); font-weight: 500; }
.eyebrow {
  font-family: var(--font); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: .6rem 1rem; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem;
  font-family: var(--font); font-weight: 700; font-size: .92rem; letter-spacing: .04em;
  text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  text-shadow: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.75); background: rgba(20,12,22,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--white); color: var(--text); }
.btn--dark { background: var(--surface-2); color: var(--white); }
.btn--dark::before { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-right: .2rem; }
.btn--dark:hover { background: var(--brand); }
.btn--outline { color: var(--text); border-color: var(--text); background: transparent; }
.btn--outline:hover { background: var(--text); color: var(--white); }
.btn--block { width: 100%; }

/* ---------- Signature: handshake arcs ---------- */
.arcs { display: block; width: 100%; height: auto; aspect-ratio: 600 / 70; overflow: visible; }
.arc { fill: none; stroke-width: 7; stroke-linecap: round; }
.arc--red { stroke: var(--accent); }
.arc--blue { stroke: var(--accent-2); }
.js .arcs .arc { stroke-dasharray: 360; stroke-dashoffset: 360; transition: stroke-dashoffset 1.6s var(--ease); }
.js .arcs .arc--blue { transition-delay: .25s; }
.js .arcs.in .arc { stroke-dashoffset: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header__inner { height: 100%; width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; }
.site-header.scrolled { background: rgba(250, 247, 245, .94); color: var(--text); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(35,26,37,.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand__crest { width: 44px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.brand__name { display: flex; flex-direction: column; align-items: flex-start; font-family: var(--font-head); text-transform: uppercase; line-height: .92; }
.brand__l1 { font-weight: 800; font-size: 1.55rem; letter-spacing: .02em; margin-right: -.02em; }
.brand__l2 { font-weight: 600; font-size: .78rem; letter-spacing: .16em; margin-right: -.16em; opacity: .85; margin-top: .12em; }
.site-header:not(.scrolled) .brand__name { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.nav { display: flex; gap: clamp(.9rem, 2vw, 1.9rem); }
.nav a {
  position: relative; text-decoration: none; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding-block: .6rem;
}
.site-header:not(.scrolled) .nav a { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav__call-mobile { display: none; }
.header-call { min-height: 44px; padding: .55rem 1rem; font-size: .88rem; }
.header-call svg { width: 17px; height: 17px; fill: currentColor; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--surface-2); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #0b090c; }
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%);
  transform-origin: 50% 0%;
  animation: drift 18s ease-in-out infinite alternate; animation-delay: -4s;
}
/* Slideshow: the next photo blurs in while the current one blurs out */
.hero__slide { opacity: 0; filter: blur(22px); transition: opacity 1.6s ease, filter 1.6s ease; will-change: opacity, filter, transform; }
.hero__slide.is-active { opacity: 1; filter: blur(0); }
/* Ken Burns: main.js sizes each photo so the faces sit above the headline, then each slide starts
   close in on the faces and slowly pulls back to reveal the people around them */
/* Until main.js has placed the photos they stay hidden (so placing them is never seen as a jump);
   without JavaScript the plain cover layout above shows instead */
.js .hero__media:not(.kb-ready) .hero__slide { visibility: hidden; }
.hero__media.kb-ready .hero__slide {
  inset: auto; left: 0; top: 0; width: auto; height: auto;   /* the photo's own full size; main.js scales it into place */
  object-fit: fill; animation: none; max-width: none; max-height: none;
  transform: scale(var(--k0, 1.15));
  transition: opacity 1.6s ease, filter 1.6s ease, transform 0s linear 1.8s;   /* reset only once it has faded out */
}
.hero__media.kb-ready .hero__slide.kb {
  transform: scale(1);
  transition: opacity 1.6s ease, filter 1.6s ease, transform 7.5s cubic-bezier(.25, .6, .3, 1);
}
.hero__caption span { display: inline-block; transition: opacity .5s ease; }
.hero__caption.is-changing span { opacity: 0; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before { background: linear-gradient(to bottom, rgba(20,12,22,.62) 0%, rgba(20,12,22,0) 26%); }
.hero::after { background:
  linear-gradient(to top, rgba(20,12,22,.9) 0%, rgba(20,12,22,.62) 30%, rgba(20,12,22,.12) 58%, rgba(20,12,22,0) 70%),
  linear-gradient(to right, rgba(20,12,22,.35), rgba(20,12,22,0) 55%); }
.hero__copy { padding-bottom: clamp(2.2rem, 6vh, 4.5rem); text-shadow: var(--tshadow); position: relative; }
.hero__title { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.hero__pre, .hero__post { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.6vw, 2.3rem); letter-spacing: .14em; }
.hero__pre { margin-bottom: .12em; letter-spacing: .1em; margin-right: -.1em; white-space: nowrap; }
.hero__word {
  font-size: clamp(5.4rem, min(2rem + 12.5vw, 1rem + 24vh), 15rem); line-height: .8; font-weight: 800;   /* also capped by height so short laptop screens keep room for faces */
  letter-spacing: -.005em; margin-left: -.04em;
}
.hero__post { margin-top: .25em; color: var(--brand-soft); }
.hero__arcs { width: min(560px, 78%); margin: clamp(.8rem, 2vh, 1.4rem) 0 clamp(1rem, 2.4vh, 1.8rem); }
.hero__arcs .arc { stroke-width: 8; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2.5rem; }
.hero__lede { max-width: 34rem; margin: 0; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__caption {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 1.2rem); margin: 0;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  background: rgba(8, 8, 15, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: .4rem .7rem; border-radius: 2px;
}

/* ---------- Trust line ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Section head ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 0; }
.section-head__intro { margin: 0; color: var(--muted); max-width: 34rem; font-size: 1.08rem; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__text p:not(.eyebrow):not(.big) { color: var(--muted); }
.about__media { position: relative; margin: 0; }
/* Drone view drifts in towards the courtyard, blurs into the whole-school photo taken there, then drifts back out */
.about__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: 0 30px 60px rgba(35, 26, 37, .18); background: #1f2a1a; }
.about__frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; will-change: transform, opacity, filter; }
.about__drone  { object-position: 55% 45%; transform-origin: 55% 44%; }   /* zooms towards the courtyard */
.about__school { object-position: 50% 55%; transform-origin: 50% 60%; }
/* two-photo slideshow: each photo slowly zooms in while shown, then blurs into the next */
.about__slide { opacity: 0; filter: blur(14px); transform: scale(1); transition: opacity 1.4s ease, filter 1.4s ease, transform 0s linear 1.6s; }
.about__slide.is-active { opacity: 1; filter: blur(0); }
.about__slide.kb { transform: scale(1.14); transition: opacity 1.4s ease, filter 1.4s ease, transform 12s cubic-bezier(.3, .1, .6, 1); }   /* slow: 10 s per photo */
.about__chip span { display: inline-block; transition: opacity .5s ease; }
.about__chip.is-changing span { opacity: 0; }
.hero__dots.about__dots { position: absolute; right: .8rem; bottom: .6rem; top: auto; z-index: 2; }
/* the title is scaled by main.js to the exact width of the paragraphs, which are justified to that width */
.about__title { width: fit-content; white-space: nowrap; }
.about__grid > * { min-width: 0; }
.about__text p:not(.eyebrow) { text-align: justify; text-wrap: pretty; }
.chip {
  position: absolute; left: 1rem; bottom: 1rem; margin: 0;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white);
  background: rgba(8, 8, 15, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: .42rem .75rem; border-radius: 2px;
}
.vision {
  margin: clamp(3.5rem, 7vw, 6rem) 0 0; padding: clamp(1.8rem, 4vw, 3rem) 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 12rem 1fr; gap: 1rem 3rem;
}
.vision .eyebrow { color: var(--accent-2); }
.vision__text {
  margin: 0; font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.9rem); line-height: 1.05; color: var(--brand);
}

/* ---------- Academics ---------- */
.academics { background: var(--surface); }
.cards-scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards-scroller::-webkit-scrollbar { display: none; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.card { display: flex; flex-direction: column; background: var(--white); padding: 0 0 1.5rem; scroll-snap-align: start; position: relative; }
.card__img { overflow: hidden; aspect-ratio: 4 / 3.3; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__num { margin: 1.3rem 1.4rem .3rem; font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--accent); letter-spacing: .1em; }
.card h3 { margin: 0 1.4rem .7rem; font-size: clamp(1.6rem, 1.3rem + .8vw, 2rem); }
.card h3 span { display: block; font-size: .62em; color: var(--brand); font-weight: 600; letter-spacing: .06em; margin-top: .25rem; }
.card > p:not(.card__num) { margin: 0 1.4rem 1.4rem; color: var(--muted); font-size: .97rem; flex: 1; }
.card .btn { margin: 0 1.4rem; align-self: flex-start; font-size: .82rem; }
.support-note { display: flex; gap: .8rem; align-items: flex-start; margin: 2.2rem 0 0; color: var(--text); font-weight: 500; max-width: 46rem; }
.support-note svg { width: 22px; height: 22px; flex: none; fill: var(--accent-2); margin-top: .15rem; }

/* ---------- School life ---------- */
.life { overflow: hidden; }
.life__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.2vw, 1rem); align-items: start; }
.mosaic__col { display: grid; gap: clamp(.6rem, 1.2vw, 1rem); will-change: transform; }
.mosaic__col--offset { margin-top: clamp(2rem, 6vw, 5rem); }
.mosaic__col--offset2 { margin-top: clamp(1rem, 3vw, 2.2rem); }
.mosaic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mosaic__col img:nth-child(2n) { aspect-ratio: 4 / 4.6; }
.life__text h2 { font-size: clamp(3.2rem, 2rem + 5vw, 6.6rem); }
.life__text p:not(.eyebrow):not(.big) { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { font-size: .82rem; font-weight: 500; padding: .38rem .75rem; background: var(--surface); color: var(--text); border-left: 3px solid var(--brand); }
.tags li:nth-child(3n+2) { border-left-color: var(--accent); }
.tags li:nth-child(3n) { border-left-color: var(--accent-2); }

/* ---------- Campus ---------- */
.campus { background: var(--white); }

/* ---------- Values ---------- */
.values { background: var(--surface-2); color: #F3ECF2; overflow: hidden; }
.values::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -18vw; top: -20vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .35), rgba(var(--brand-rgb), 0) 65%);
  animation: glow 10s ease-in-out infinite alternate; animation-delay: -4s; pointer-events: none;
}
@keyframes glow { from { opacity: .6; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
.values__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; position: relative; }
.values__media { margin: 0; }
.values__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 55% 50%; }
.values .eyebrow { color: var(--brand-soft); }
.values__quote { margin: 0 0 1.6rem; }
.values__quote p {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 5.4rem); line-height: .92; margin: 0 0 .9rem; color: var(--white);
}
.values__quote footer { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brand-soft); }
.values__text > p { color: rgba(243, 236, 242, .82); max-width: 34rem; }
.values__list { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.values__list li { border-top: 3px solid var(--brand); padding-top: 1rem; }
.values__list li:nth-child(2) { border-top-color: var(--accent); }
.values__list li:nth-child(3) { border-top-color: var(--accent-2); }
.values__list h3 { font-size: 1.45rem; margin-bottom: .45rem; color: var(--white); }
.values__list p { margin: 0; font-size: .92rem; color: rgba(243, 236, 242, .75); line-height: 1.5; }

/* ---------- Family ---------- */
.family { position: relative; min-height: clamp(460px, 78vh, 820px); display: flex; align-items: flex-start; color: var(--white); overflow: hidden; isolation: isolate; }
.family__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; z-index: -2; }
.family::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(20,12,22,.72) 0%, rgba(20,12,22,.3) 36%, rgba(20,12,22,0) 58%); }
.family__copy { padding-top: clamp(3.5rem, 9vh, 6rem); text-shadow: var(--tshadow); position: relative; }
.family__copy h2 { margin-bottom: .3em; }
.family__copy p:not(.family__ghost) { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 32rem; font-weight: 500; }
.family__ghost {
  position: absolute; top: clamp(.5rem, 3vh, 2rem); right: 0; margin: 0;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(5rem, 2rem + 13vw, 15rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45); text-shadow: none;
  pointer-events: none;
}

/* ---------- Admissions ---------- */
.admissions__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1.3rem; }
.steps li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; align-items: start; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps__num { font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; line-height: .9; color: var(--brand); }
.steps h3 { font-size: 1.45rem; margin: .2rem 0 .35rem; }
.steps p { margin: 0; color: var(--muted); }
.callcard {
  background: var(--surface); padding: clamp(2rem, 4vw, 3.2rem); position: relative;
  border-top: 6px solid var(--brand);
}
.callcard__arcs { width: 72%; margin-bottom: 1.6rem; }
.callcard__number {
  display: block; text-decoration: none; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); line-height: 1; color: var(--text); margin-bottom: .6rem;
  white-space: nowrap;
}
.callcard__number:hover { color: var(--accent); }
.callcard__hours { color: var(--muted); margin-bottom: 1.6rem; }
.callcard__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Contact ---------- */
.contact { background: var(--surface); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.details { margin: 1.4rem 0 2rem; display: grid; gap: 1.3rem; }
.details div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.details dt { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: .2rem; }
.details dd { margin: 0; font-weight: 500; font-size: 1.05rem; }
.details a { text-decoration: none; border-bottom: 1.5px solid var(--brand-soft); }
.details a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.details__hint { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: .3rem; }
.social { display: flex; gap: .6rem; }
.social a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--brand); border: 1.5px solid var(--line);
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.social a:hover { background: var(--brand); color: var(--white); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.formcard { background: var(--white); padding: clamp(1.6rem, 4vw, 3rem); box-shadow: 0 30px 70px rgba(35, 26, 37, .08); border-top: 6px solid var(--accent); }
.formcard h3 { font-size: 2rem; margin-bottom: .5rem; }
.enquiry__note { color: var(--muted); font-size: .95rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field label span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .8rem .9rem; min-height: 48px; background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 2px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .18); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.enquiry__error { color: var(--accent); font-weight: 500; font-size: .92rem; }
.enquiry__success .arcs { width: 60%; margin-bottom: 1.4rem; }
.enquiry__success h3 { margin-bottom: .8rem; }
.enquiry__success p { color: var(--muted); }
.enquiry__success:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); color: rgba(243, 236, 242, .8); padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.6rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__brand img { width: 110px; margin-bottom: 1.2rem; }
.site-footer__name { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--white); line-height: 1; margin-bottom: .4rem; }
.site-footer__tag { color: var(--brand-soft); margin: 0; }
.site-footer__links { display: grid; gap: .2rem; align-content: start; }
.site-footer__links a, .site-footer__contact a { text-decoration: none; padding-block: .35rem; width: fit-content; }
.site-footer__links a:hover, .site-footer__contact a:hover { color: var(--white); }
.site-footer__contact { display: grid; gap: .2rem; align-content: start; }
.site-footer__contact p { margin: .4rem 0 1rem; }
.social--light a { background: transparent; color: var(--white); border-color: rgba(255,255,255,.25); }
.site-footer__contact .social { margin-top: .4rem; }
.site-footer__contact .social a { width: 46px; padding: 0; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; font-size: .85rem; }
.site-footer__base p { margin: 0; }
.site-footer__base a { text-decoration: none; }

/* ---------- Entrances ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .cards .card[data-reveal]:nth-child(2) { transition-delay: .1s; }
.js .cards .card[data-reveal]:nth-child(3) { transition-delay: .2s; }
.js .cards .card[data-reveal]:nth-child(4) { transition-delay: .3s; }
.js [data-reveal].in.settled { transition-delay: 0s; }
.js .hero__title > span { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.js .hero__word { animation-delay: .12s !important; }
.js .hero__post { animation-delay: .3s !important; }
.js .hero__row { opacity: 0; animation: rise 1s var(--ease) .5s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 1rem; }
  .header-call__label { display: none; }
  .header-call { width: 44px; padding: 0; }
  .cards { grid-template-columns: repeat(4, minmax(270px, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-toggle {
    display: grid; place-content: center; gap: 5px; width: 46px; height: 46px; padding: 0;
    background: transparent; border: 0; color: inherit; cursor: pointer; position: relative; z-index: 2;
  }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1; background: var(--surface-2); color: var(--white);
    flex-direction: column; justify-content: center; gap: .4rem; padding: 6rem var(--gutter) 3rem;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; letter-spacing: .02em; text-shadow: none !important; padding-block: .2rem; }
  .nav a::after { display: none; }
  .nav__call-mobile { display: block; font-family: var(--font) !important; font-size: 1rem !important; letter-spacing: .08em !important; margin-top: 1.5rem; color: var(--white); background: var(--accent); padding: .9rem 1.2rem !important; width: fit-content; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open .header-call { visibility: hidden; }
  .menu-open { overflow: hidden; }
  .section-head { grid-template-columns: 1fr; }
  .about__grid, .life__grid, .values__grid, .admissions__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .vision { grid-template-columns: 1fr; }
  .life__text { order: -1; }
  .mosaic__col { transform: none !important; }
  .values__media img { aspect-ratio: 16 / 11; }
  .hero__caption { display: none; }
}

@media (max-width: 600px) {
  .brand__l1 { font-size: 1.25rem; }
  .brand__l2 { font-size: .66rem; letter-spacing: .14em; margin-right: -.14em; }
  .brand__crest { width: 38px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .cards-scroller { padding-left: var(--gutter); scroll-padding-left: var(--gutter); }
  .cards { width: auto; margin: 0; grid-template-columns: repeat(4, 82vw); padding-right: var(--gutter); }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic__col--offset2 { display: none; }
  .values__list { grid-template-columns: 1fr; gap: 1rem; }
  .family__ghost { font-size: 4.6rem; top: auto; bottom: -1.2rem; }
  .field-row { grid-template-columns: 1fr; }
  .details div { grid-template-columns: 1fr; gap: .3rem; }
  .callcard__number { font-size: 2.3rem; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (pointer: coarse) {
  .btn { min-height: 48px; }
  .details dd a, .callcard__number, .site-footer__base a { display: inline-block; padding-block: .6rem; }
  .site-footer__links a, .site-footer__contact > a { padding-block: .6rem; }
  .tags li { padding-block: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__slide { filter: none !important; transition: opacity 1.2s ease !important; transform: none !important; }
  .js [data-reveal], .js .hero__title > span, .js .hero__row { opacity: 1 !important; transform: none !important; }
  .js .arcs .arc { stroke-dashoffset: 0 !important; }
  .mosaic__col { transform: none !important; }
}

/* =====================================================================
   Sideways track (desktop only, like thewalkerschool.org).
   main.js adds body.h-mode on wide screens; vertical scroll then moves
   the panels left. Without h-mode everything above stays a normal page.
   ===================================================================== */
body.h-mode .hscroll__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
body.h-mode .hscroll__track { position: relative; display: flex; width: max-content; height: 100%; will-change: transform; }
body.h-mode .hpanel { flex: none; height: 100vh; }
body.h-mode .hpanel.section { padding: calc(var(--header-h) + 2vh) 0 3vh; }

/* Hero */
body.h-mode .hero { width: 100vw; min-height: 0; }

/* Trust line becomes a slim column with stars */
body.h-mode .trust { width: clamp(360px, 30vw, 520px); display: flex; align-items: center; border-bottom: 0; border-right: 1px solid var(--line); }

/* About: story + photo, then the vision as its own column */
body.h-mode .about { display: flex; align-items: center; }
body.h-mode .about > .container { margin: 0; flex: none; }
body.h-mode .about__grid { width: 100vw; max-width: none; padding-inline: 6vw 4vw; grid-template-columns: 1fr 1.05fr; gap: 4vw; }
body.h-mode .about h2 { font-size: clamp(2.4rem, 7vh, 4.8rem); }
body.h-mode .about .big { font-size: clamp(1.05rem, 2.2vh, 1.3rem); }
body.h-mode .about__text p:not(.eyebrow):not(.big) { font-size: clamp(.9rem, 1.9vh, 1rem); }
body.h-mode .about__frame { aspect-ratio: auto; height: min(60vh, 34vw); }
body.h-mode .about > .container:last-child { width: clamp(320px, 32vw, 480px); padding-right: 6vw; }
body.h-mode .vision { margin: 0; padding: 0 0 0 2.4rem; border-top: 0; border-left: 4px solid var(--brand); grid-template-columns: 1fr; }
body.h-mode .vision__text { font-size: clamp(1.7rem, 4.6vh, 2.8rem); }

/* Academics: heading column, then the four cards in a row */
body.h-mode .academics { display: flex; align-items: center; gap: 3.5vw; padding-inline: 6vw; }
body.h-mode .academics > .container { width: auto; margin: 0; flex: none; }
body.h-mode .academics > .container:first-child { width: clamp(300px, 27vw, 420px); }
body.h-mode .academics .section-head { grid-template-columns: 1fr; margin-bottom: 0; gap: 1.4rem; }
body.h-mode .academics h2 { font-size: clamp(2.4rem, 7vh, 4.8rem); }
body.h-mode .cards-scroller { overflow: visible; flex: none; }
body.h-mode .cards { display: flex; width: auto; margin: 0; gap: 1.3rem; }
body.h-mode .card { width: clamp(250px, 20vw, 320px); padding-bottom: 1.3rem; }
body.h-mode .card__img { aspect-ratio: 4 / 3; max-height: 30vh; }
body.h-mode .card__num { margin-top: 1rem; }
body.h-mode .card h3 { font-size: clamp(1.4rem, 3.2vh, 1.9rem); }
body.h-mode .card > p:not(.card__num) { font-size: clamp(.85rem, 1.8vh, .95rem); margin-bottom: 1.1rem; }
body.h-mode .academics > .container:last-child { width: clamp(220px, 18vw, 280px); }
body.h-mode .support-note { margin: 0; flex-direction: column; font-size: 1.05rem; }
body.h-mode .support-note svg { width: 30px; height: 30px; }

/* School life: tall photo columns cropped by the screen, text on the right */
body.h-mode .life { padding: 0; overflow: visible; }
body.h-mode .life__grid { width: auto; max-width: none; margin: 0; height: 100%; display: flex; align-items: center; gap: 5vw; padding-right: 7vw; }
body.h-mode .mosaic { width: min(58vw, 980px); height: 100vh; align-self: stretch; overflow: hidden; align-items: start; margin-top: 0; }
body.h-mode .mosaic__col { margin-top: -12vh; }
body.h-mode .mosaic__col--offset { margin-top: 2vh; }
body.h-mode .mosaic__col--offset2 { margin-top: -26vh; }
body.h-mode .life__text { width: clamp(340px, 32vw, 500px); padding-top: var(--header-h); }
body.h-mode .life__text h2 { font-size: clamp(3rem, 10vh, 6.6rem); }
body.h-mode .life__text .big { font-size: clamp(1.05rem, 2.2vh, 1.3rem); }
body.h-mode .life__text p:not(.eyebrow):not(.big) { font-size: clamp(.9rem, 1.9vh, 1rem); }
body.h-mode .tags { margin-top: 1rem; }
body.h-mode .tags li { font-size: clamp(.74rem, 1.6vh, .82rem); }

/* Scroll hint on the hero while the track is active */
.scroll-hint { display: none; }
body.h-mode .scroll-hint {
  display: flex; align-items: center; gap: .6rem; position: absolute; right: var(--gutter); bottom: clamp(2.2rem, 6vh, 4.5rem);
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
body.h-mode .scroll-hint span { width: 46px; height: 2px; background: currentColor; position: relative; overflow: hidden; }
body.h-mode .scroll-hint span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 60%, 100% { transform: translateX(100%); } }
body.h-mode .hero__row { padding-right: 9rem; }
@media (max-height: 800px) {
  body.h-mode .life__text h2 { font-size: clamp(2.6rem, 8.5vh, 5rem); margin-bottom: .3em; }
  body.h-mode .life__text p { margin-bottom: .7em; }
  body.h-mode .tags { gap: .35rem; }
  body.h-mode .tags li { padding: .28rem .6rem; }
}

/* ---- Whole page sideways: main is a row of panels, the footer is the last panel ---- */
body.h-mode #main { display: flex; flex: none; height: 100%; }

/* Campus: heading column + photo grid */
body.h-mode .campus { display: flex; align-items: center; }
body.h-mode .campus > .container { width: auto; max-width: none; margin: 0; display: flex; align-items: center; gap: 4vw; padding-inline: 6vw; }
body.h-mode .campus h2 { font-size: clamp(2.4rem, 7vh, 4.8rem); }

/* Faith and values */
body.h-mode .values { display: flex; align-items: center; }
body.h-mode .values__grid { width: max(100vw, 1100px); max-width: none; margin: 0; padding-inline: 6vw; grid-template-columns: .85fr 1.15fr; gap: 5vw; }
body.h-mode .values__media img { aspect-ratio: auto; height: 72vh; }
body.h-mode .values__quote p { font-size: clamp(2.4rem, 8vh, 5.4rem); }
body.h-mode .values__text > p:not(.eyebrow) { font-size: clamp(.9rem, 1.9vh, 1rem); }
body.h-mode .values__list { margin-top: 1.6rem; }

/* One school family: full-height photo, as wide as the photo needs */
body.h-mode .family { width: max(100vw, 150vh); min-height: 0; }
body.h-mode .family__copy { position: static; width: auto; max-width: none; margin: 0; padding: calc(var(--header-h) + 5vh) 6vw 0; }
body.h-mode .family__ghost { right: 6vw; top: calc(var(--header-h) + 2vh); }

/* Admissions */
body.h-mode .admissions { display: flex; align-items: center; }
body.h-mode .admissions__grid { width: max(100vw, 1100px); max-width: none; margin: 0; padding-inline: 6vw; grid-template-columns: 1.15fr 1fr; gap: 5vw; }
body.h-mode .admissions h2 { font-size: clamp(2.4rem, 7.5vh, 4.8rem); }
body.h-mode .admissions .big { font-size: clamp(1.05rem, 2.2vh, 1.3rem); }
body.h-mode .steps { margin-top: 1.4rem; gap: 1rem; }
body.h-mode .steps li { padding-bottom: 1rem; }

/* Contact: details + a wider, shorter form */
body.h-mode .contact { display: flex; align-items: center; }
body.h-mode .contact__grid { width: max(100vw, 1150px); max-width: none; margin: 0; padding-inline: 6vw; grid-template-columns: .8fr 1.2fr; gap: 5vw; align-items: center; }
body.h-mode .contact h2 { font-size: clamp(2.4rem, 7vh, 4.8rem); margin-bottom: .2em; }
body.h-mode .details { margin: 1rem 0 1.4rem; gap: .8rem; }
body.h-mode .details div { padding-bottom: .8rem; }
body.h-mode .details dd { font-size: 1rem; }
body.h-mode .formcard { padding: clamp(1.4rem, 3.5vh, 2.6rem) clamp(1.6rem, 3vw, 2.6rem); }
body.h-mode .enquiry { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
body.h-mode .enquiry > h3, body.h-mode .enquiry > .enquiry__note, body.h-mode .enquiry > .field:last-of-type,
body.h-mode .enquiry > .enquiry__error, body.h-mode .enquiry > .btn { grid-column: 1 / -1; }
body.h-mode .enquiry .field-row { display: contents; }
body.h-mode .field { margin-bottom: .8rem; }
body.h-mode .field textarea { min-height: 0; height: clamp(70px, 12vh, 120px); }

/* Footer as the closing panel */
body.h-mode .site-footer { width: clamp(720px, 72vw, 1150px); display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) 6vw 3vh; }
body.h-mode .site-footer > .container { width: 100%; max-width: none; margin: 0; }

@media (max-height: 800px) {
  body.h-mode .values__list p { font-size: .85rem; }
  body.h-mode .values__list h3 { font-size: 1.25rem; }
  body.h-mode .steps p { font-size: .92rem; }
  body.h-mode .steps__num { font-size: 2.3rem; }
  body.h-mode .formcard h3 { font-size: 1.6rem; }
  body.h-mode .enquiry__note { font-size: .88rem; margin-bottom: .7rem; }
  body.h-mode .field input, body.h-mode .field select { min-height: 44px; padding-block: .55rem; }
}

/* ---------- Intro: cut-out ALL NATIONS screen that zooms away ---------- */
.intro-screen { display: none; }
html.intro .intro-screen { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
html.intro body { overflow: hidden; }
.intro-screen__svg { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform, opacity; }
.intro-screen text { font-family: var(--font-head); font-weight: 800; font-size: 17vw; fill: #000; letter-spacing: .005em; }
.intro-screen__two { display: none; }
@media (max-aspect-ratio: 1 / 1) {
  .intro-screen__one { display: none; }
  .intro-screen__two { display: inline; font-size: 26vw; }
}
.intro-screen.zoom .intro-screen__svg {
  transform: scale(var(--zoom, 60));
  opacity: 0;
  transition: transform 1.35s cubic-bezier(.7, 0, .84, 0), opacity .45s ease .95s;
}
/* hold the hero headline until the intro has gone */
html.js.intro .hero__title > span, html.js.intro .hero__row { animation: none; }
/* let the photo show bright through the letters; the readability shading fades in as the intro leaves */
.hero::before, .hero::after { transition: opacity 1s ease; }
html.intro .hero::before, html.intro .hero::after { opacity: 0; }
html.intro .hero__caption, html.intro .scroll-hint, html.intro .hero__arcs { opacity: 0; }

/* Hero tagline justified to the motto width (main.js sets width and size) */
.hero__lede { line-height: 1.45; }
.hero__lede.fitted { max-width: none; text-align: justify; text-align-last: justify; hyphens: none; }
.hero__lede.fitted .lede-line { display: block; text-align: justify; text-align-last: justify; }
.hero__lede.fitted.measuring { text-align: left; text-align-last: auto; }
.hero__lede { flex-shrink: 0; }

.hero__media.kb-ready .hero__slide { -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent); mask-image: linear-gradient(to bottom, #000 90%, transparent); }
.hero__media.kb-ready .hero__slide[data-fade-top] { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 90%, transparent); mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 90%, transparent); }


/* Short laptop screens: keep the headline compact so the photo's faces have room above it */
@media (min-width: 1024px) and (max-height: 780px) {
  .hero__word { font-size: clamp(5.4rem, min(2rem + 12.5vw, 1rem + 21vh), 15rem); }
  .hero__arcs { margin: .5rem 0 .8rem; }
  .hero__copy { padding-bottom: clamp(1.4rem, 4vh, 2.4rem); }
}

/* ---------- Verse (Proverbs 22:6) between the hero and About ---------- */
.verse { display: flex; justify-content: center; padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.verse__fig { margin: 0; max-width: 46rem; text-align: center; }
.verse__text { margin: 0; }
.verse__text p {
  margin: 0; font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.02; letter-spacing: .01em; color: var(--brand);
  text-wrap: balance;
}
.verse__text span { color: var(--accent); }
.verse__arcs { width: min(220px, 60%); margin: 1.4rem auto 1rem; }
.verse__ref { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }

/* desktop sideways panel: a tall column, text aligned left */
body.h-mode .verse { padding: calc(var(--header-h) + 2vh) clamp(2.2rem, 3.5vw, 3.6rem) 3vh; }
body.h-mode .verse__fig { text-align: left; }
body.h-mode .verse__text p { font-size: clamp(2.2rem, 6.4vh, 4rem); line-height: .98; }
body.h-mode .verse__arcs { margin: 1.4rem 0 1rem; width: min(220px, 70%); }

/* ---------- Desktop header: always see-through; each item takes the colour of what is behind it ---------- */
body.h-mode .site-header,
body.h-mode .site-header.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--white); }
body.h-mode .site-header .brand, body.h-mode .site-header .nav a, body.h-mode .site-header .menu-toggle { transition: color .35s var(--ease), text-shadow .35s var(--ease); }
body.h-mode .site-header .brand__name, body.h-mode .site-header .nav a { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
body.h-mode .site-header .brand.on-light, body.h-mode .site-header .nav a.on-light, body.h-mode .site-header .menu-toggle.on-light { color: var(--text); }
body.h-mode .site-header .brand.on-light .brand__name, body.h-mode .site-header .nav a.on-light { text-shadow: none; }

/* ---------- Podium panels: a student standing on a coloured podium with the crest on the floor ---------- */
.podium {
  --pod: #936190; --pod-floor: #B98BB6;
  position: relative; overflow: hidden; background: var(--bg);
  height: clamp(560px, 92vh, 860px);
}
.podium--red  { --pod: #AB2B29; --pod-floor: #C9524F; }
.podium--blue { --pod: #106B94; --pod-floor: #3F8FB7; }
.podium__col { position: absolute; top: 0; bottom: 15%; left: 50%; width: min(340px, 58%); transform: translateX(-50%); background: var(--pod); }
.podium__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 15%;
  background: var(--pod-floor);
  --w: min(340px, 58%);
  clip-path: polygon(calc(50% - var(--w) / 2) 0, calc(50% + var(--w) / 2) 0, calc(50% + var(--w) / 2 + 9%) 100%, calc(50% - var(--w) / 2 - 9%) 100%);
  display: flex; align-items: center; justify-content: center;
}
.podium__crest { width: min(150px, 30%); opacity: .85; transform: perspective(300px) rotateX(55deg); transform-origin: 50% 60%; }
.podium__kid { position: absolute; left: 0; right: 0; bottom: 7%; height: 80%; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.podium__kid::after {                                   /* soft shadow where the feet meet the floor */
  content: ""; position: absolute; bottom: -1.5%; left: 50%; width: 30%; height: 4%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); z-index: -1;
}
.podium__kid img { height: 100%; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(20, 10, 22, .28)); }

/* desktop sideways panel */
body.h-mode .podium { width: clamp(380px, 31vw, 540px); height: 100vh; }
body.h-mode .podium__col { width: 62%; }
body.h-mode .podium__floor { --w: 62%; height: 14%; }
body.h-mode .podium__col { bottom: 14%; }
body.h-mode .podium__kid { height: 76%; bottom: 6.5%; }


/* ---------- Hero slide dots ---------- */
.hero__dots {
  position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 3.6rem);
  display: flex; align-items: center; gap: .1rem;
  transition: opacity .6s ease;
}
html.intro .hero__dots { opacity: 0; }
.hero__dot {
  display: grid; place-items: center; width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer;
}
.hero__dot span {
  position: relative; display: block; width: 8px; height: 8px; border-radius: 99px; overflow: hidden;
  background: rgba(255, 255, 255, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  transition: width .35s var(--ease), background-color .3s ease, transform .2s ease;
}
.hero__dot:hover span { background: rgba(255, 255, 255, .95); transform: scale(1.25); }
.hero__dot.is-active span { width: 26px; background: rgba(255, 255, 255, .35); transform: none; }
.hero__dot.is-active span::after {                       /* the red bar fills while this photo is shown */
  content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0);
}
.hero__dot.is-active.fill span::after { animation: dot-fill var(--slide-time, 4500ms) linear forwards; }
.hero__dots.is-paused .hero__dot.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
@media (pointer: coarse) { .hero__dot { width: 36px; height: 44px; } }
@media (max-width: 900px) { .hero__dots { top: calc(var(--header-h) + .9rem); } }
@media (prefers-reduced-motion: reduce) { .hero__dot.is-active span::after { transform: scaleX(1) !important; } }

@media (prefers-reduced-motion: reduce) { .about__slide { transform: none !important; filter: none !important; transition: opacity .6s ease !important; } }

/* ---------- Justified lockups (verse, vision): every line sized to run the full width ---------- */
.fit-lines { text-wrap: initial; }
.fit-lines .fl { display: block; width: fit-content; white-space: nowrap; line-height: .9; letter-spacing: .01em; margin-right: -.01em; }
.fit-lines .fl + .fl { margin-top: .06em; }
.fit-lines .fl.accent { color: var(--accent); }
.verse__text .fit-lines, body.h-mode .verse__text .fit-lines { font-size: 3rem; }      /* starting size; main.js sets each line */
.verse__fig { width: 100%; }
.verse__ref { display: block; text-align: center; letter-spacing: .3em; }
body.h-mode .verse__ref { text-align: left; }
.vision__text.fit-lines { font-size: 2.6rem; color: var(--brand); }
.verse__text .fit-lines .fl:not(.accent) { color: var(--brand); }
.fit-lines .sr-only { display: block; }
.vision > *, .verse__fig > * { min-width: 0; }
.fit-lines { max-width: 100%; }

/* Text appears line by line with the scroll (main.js sets --r from 0 to 1 on each line) */
.js .rw { display: inline-block; opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * .45em)); }
.js [data-scroll-lines] .fl, .js [data-scroll-lines] .verse__ref {
  opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * .35em));
}
.js [data-scroll-lines] .verse__arcs { opacity: var(--r, 1); }
@media (prefers-reduced-motion: reduce) { .js .rw, .js [data-scroll-lines] .fl, .js [data-scroll-lines] .verse__ref, .js [data-scroll-lines] .verse__arcs { opacity: 1 !important; transform: none !important; } }

/* ---------- One consistent type scale for section headings ---------- */
.life__text h2, .values__quote p, .family__copy h2 { font-size: clamp(2.6rem, 2rem + 3.6vw, 5.2rem); }
body.h-mode .academics h2, body.h-mode .campus h2, body.h-mode .life__text h2, body.h-mode .values__quote p,
body.h-mode .family__copy h2, body.h-mode .admissions h2, body.h-mode .contact h2 { font-size: clamp(2.4rem, 7.4vh, 4.4rem); }
.verse__text .fit-lines { margin-inline: auto; }          /* a narrower verse lockup stays centred on phones */
body.h-mode .verse__text .fit-lines { margin-inline: 0; }

/* Crest pressed into the podium floor: same colour as the floor, with a light edge above and a shadow below */
.podium__emboss {
  width: min(150px, 30%); aspect-ratio: 600 / 450;
  transform: perspective(300px) rotateX(55deg); transform-origin: 50% 60%;
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, .55)) drop-shadow(0 1.5px 0 rgba(0, 0, 0, .28)) drop-shadow(0 2px 3px rgba(0, 0, 0, .18));
}
.podium__emboss span {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pod-floor) 82%, #fff), var(--pod-floor) 55%, color-mix(in srgb, var(--pod-floor) 88%, #000));
  -webkit-mask: url("assets/img/crest-white.webp") center / contain no-repeat;
          mask: url("assets/img/crest-white.webp") center / contain no-repeat;
}

/* Children stand at the back of the podium floor; the pressed crest sits in front of their shoes */
.podium__kid { bottom: 10.5%; }
body.h-mode .podium__kid { bottom: 10%; }
.podium__emboss { position: relative; top: 17%; }

/* The pressed crest spans the whole podium floor, laid flat in its perspective */
.podium__floor { container-type: size; }
.podium__emboss {
  position: relative; top: 0;
  width: min(calc(var(--w) * 1.16), 290cqh); aspect-ratio: 600 / 450;
  transform: perspective(520px) rotateX(66deg); transform-origin: 50% 50%;
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, .6)) drop-shadow(0 1.5px 0 rgba(0, 0, 0, .32)) drop-shadow(0 2px 3px rgba(0, 0, 0, .2));
}

/* Podium depth: a front face under the floor (the platform's edge) and light falling from above */
.podium { --w: min(340px, 58%); --lip: 3.6%; }
body.h-mode .podium { --w: 62%; --lip: 3.4%; }
.podium__col {
  background:
    radial-gradient(ellipse 70% 45% at 50% 30%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--pod) 86%, #fff) 0%, var(--pod) 42%, color-mix(in srgb, var(--pod) 78%, #000) 100%);
}
.podium__floor {
  bottom: var(--lip); height: calc(15% - var(--lip));
  background:
    radial-gradient(ellipse 60% 90% at 50% 100%, rgba(255, 255, 255, .14), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--pod-floor) 74%, #000) 0%, color-mix(in srgb, var(--pod-floor) 92%, #000) 22%, var(--pod-floor) 60%, color-mix(in srgb, var(--pod-floor) 90%, #fff) 100%);
}
body.h-mode .podium__floor { height: calc(14% - var(--lip)); }
.podium::after {                       /* front face of the platform */
  content: ""; position: absolute; bottom: 0; height: var(--lip); z-index: 1;
  left: calc(50% - var(--w) / 2 - 9%); width: calc(var(--w) + 18%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pod) 72%, #000), color-mix(in srgb, var(--pod) 58%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.podium__kid { bottom: 9.5%; z-index: 2; }
body.h-mode .podium__kid { bottom: 9%; }

/* Students stand in the middle of the platform floor, with grounded shadows */
.podium__kid { bottom: calc((var(--lip) + 15%) / 2 - 1.2%); }
body.h-mode .podium__kid { bottom: calc((var(--lip) + 14%) / 2 - 1.2%); }
.podium__kid::after {                       /* contact shadow right under the soles */
  bottom: -1.5%; width: 25%; height: 3.4%;
  background: radial-gradient(closest-side, rgba(25, 10, 28, .8), rgba(25, 10, 28, .42) 50%, transparent);
}
.podium__kid::before {                      /* softer shadow falling back across the floor */
  content: ""; position: absolute; left: 50%; bottom: -1.2%; width: 40%; height: 9%; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(ellipse 50% 50% at 50% 66%, rgba(25, 10, 28, .4), rgba(25, 10, 28, .14) 55%, transparent 80%);
}
.podium__kid img {                          /* a faint shadow on the column behind */
  filter: drop-shadow(5px 6px 8px rgba(25, 10, 28, .22)) drop-shadow(14px 14px 26px rgba(25, 10, 28, .16));
}

/* The girl in the blazer stands flat on the floor: set her a little lower so her soles sit in the contact shadow */
.podium--purple .podium__kid { transform: translateY(1.1%); }
.podium__kid::after { bottom: -.9%; height: 2.6%; width: 24%;
  background: radial-gradient(closest-side, rgba(25, 10, 28, .85), rgba(25, 10, 28, .45) 55%, transparent); }
/* shadow on the column falls sideways only, so nothing lands on the floor under the shoes */
.podium__kid img { filter: drop-shadow(7px 0 9px rgba(25, 10, 28, .2)) drop-shadow(16px -4px 24px rgba(25, 10, 28, .14)); }
.podium__kid::after { bottom: -.5%; height: 3.4%; width: 27%; }
.podium__kid::before { bottom: 0; }

/* Wider, deeper platform (as on thewalkerschool.org) with stronger light and shade */
.podium { --floor: 18%; --spread: 15%; --lip: 3%; }
body.h-mode .podium { --floor: 17%; --spread: 15%; --lip: 2.8%; }
.podium__col, body.h-mode .podium__col { bottom: var(--floor); }
.podium__floor, body.h-mode .podium__floor {
  height: calc(var(--floor) - var(--lip));
  clip-path: polygon(calc(50% - var(--w) / 2) 0, calc(50% + var(--w) / 2) 0, calc(50% + var(--w) / 2 + var(--spread)) 100%, calc(50% - var(--w) / 2 - var(--spread)) 100%);
}
.podium::after { left: calc(50% - var(--w) / 2 - var(--spread)); width: calc(var(--w) + 2 * var(--spread)); }
.podium__kid, body.h-mode .podium__kid { bottom: calc((var(--lip) + var(--floor)) / 2 - 1.2%); }

/* light falls from above: bright top of the column, deep shade at its foot, a lit floor front and a dark platform edge */
.podium__col {
  background:
    radial-gradient(ellipse 80% 42% at 50% 22%, rgba(255, 255, 255, .26), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--pod) 68%, #fff) 0%, var(--pod) 38%, color-mix(in srgb, var(--pod) 62%, #000) 88%, color-mix(in srgb, var(--pod) 50%, #000) 100%);
}
.podium__floor {
  background:
    radial-gradient(ellipse 55% 85% at 50% 95%, rgba(255, 255, 255, .22), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--pod-floor) 52%, #000) 0%, color-mix(in srgb, var(--pod-floor) 78%, #000) 18%, var(--pod-floor) 55%, color-mix(in srgb, var(--pod-floor) 78%, #fff) 100%);
}
.podium::after {
  background: linear-gradient(180deg, color-mix(in srgb, var(--pod) 55%, #000), color-mix(in srgb, var(--pod) 35%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* ---------- Podium value words: one huge word behind each student, a plaque on the platform's front edge ---------- */
.podium { container-type: inline-size; }
.podium__word {
  position: absolute; left: 0; right: 0; top: 13%; z-index: 1; margin: 0; text-align: center; pointer-events: none;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: .82; letter-spacing: .005em;
  font-size: min(calc(96cqw / (var(--chars) * .47)), 30vh);
  color: rgba(255, 255, 255, .13);
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--pod) 45%, #fff);
}
.podium__plaque {
  position: absolute; bottom: 0; z-index: 2; height: var(--lip); margin: 0;
  left: calc(50% - var(--w) / 2 - var(--spread)); width: calc(var(--w) + 2 * var(--spread));
  display: flex; align-items: center; justify-content: center; padding: 0 .8rem; overflow: hidden;
  font-size: clamp(.62rem, 1.35vh, .8rem); line-height: 1; white-space: nowrap; letter-spacing: .02em;
  color: rgba(255, 255, 255, .78);
}
.podium__plaque span { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-right: .5em; }
.podium { --lip: 4%; }
body.h-mode .podium { --lip: 3.8%; }

/* ---------- About: vision, then the mission ---------- */
.mission { margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding-top: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.mission .eyebrow { color: var(--accent); }
.mission__lead { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; color: var(--text); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); line-height: .95; margin: 0 0 1.1rem; }
.mission__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: m; }
.mission__list li { position: relative; padding-left: 2.6rem; color: var(--muted); line-height: 1.5; counter-increment: m; }
.mission__list li::before { content: "0" counter(m); position: absolute; left: 0; top: .1rem; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--brand); }
.mission__list li:nth-child(2)::before { color: var(--accent); }
.mission__list li:nth-child(3)::before { color: var(--accent-2); }
.mission__list strong { color: var(--text); font-weight: 700; }
body.h-mode .about .about__vision { width: clamp(320px, 32vw, 480px); padding-right: 3vw; }
body.h-mode .about .about__mission { width: clamp(340px, 30vw, 460px); padding-right: 6vw; }
body.h-mode .mission { margin: 0; padding: 0 0 0 2.4rem; border-top: 0; border-left: 4px solid var(--accent); }
body.h-mode .mission__lead { font-size: clamp(1.8rem, 5vh, 2.8rem); }
body.h-mode .mission__list { gap: 1.6vh; }
body.h-mode .mission__list li { font-size: clamp(.88rem, 1.85vh, 1rem); }

/* ---------- Values lead-in and the EDUCATE panel ---------- */
.values__lead { margin-top: 1.6rem; font-size: 1.05rem; color: rgba(243, 236, 242, .9); }
.values__lead strong { font-family: var(--font-head); font-weight: 800; letter-spacing: .14em; color: #fff; }
.educate { background: var(--surface); }
.educate__head { max-width: 30rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.educate__head h2 { margin-bottom: .5rem; }
.educate__intro { color: var(--muted); margin: 0; }
.educate__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.4rem, 3vw, 2rem); max-width: 54rem; }
.educate__item { display: grid; grid-template-columns: clamp(4.2rem, 16vw, 6.5rem) 1fr; column-gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.educate__letter {
  grid-row: 1 / span 3; font-family: var(--font-head); font-weight: 800; line-height: .78;
  font-size: clamp(5rem, 22vw, 8rem); color: var(--brand); text-align: center;
}
.educate__item:nth-child(3n+2) .educate__letter { color: var(--accent); }
.educate__item:nth-child(3n+3) .educate__letter { color: var(--accent-2); }
.educate__item h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.05; margin: .15rem 0 .45rem; }
.educate__item p { margin: 0; color: var(--muted); line-height: 1.5; }
.educate__ref { margin-top: .5rem !important; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text) !important; }

/* desktop sideways: the head, then E D U C A T E across one wide panel */
body.h-mode .educate { display: flex; align-items: center; }
body.h-mode .educate__wrap { width: max-content; max-width: none; margin: 0; padding-inline: 6vw; display: flex; align-items: center; gap: 4vw; }
body.h-mode .educate__head { width: clamp(260px, 22vw, 360px); margin: 0; flex: none; }
body.h-mode .educate__head h2 { font-size: clamp(2.4rem, 7.4vh, 4.4rem); }
body.h-mode .educate__list { display: flex; gap: clamp(1.4rem, 2.2vw, 2.4rem); max-width: none; }
body.h-mode .educate__item { display: block; width: clamp(180px, 13.5vw, 240px); }
body.h-mode .educate__letter { display: block; text-align: left; font-size: clamp(7rem, 30vh, 17rem); margin-bottom: 2.4vh; }
body.h-mode .educate__item h3 { font-size: clamp(1.05rem, 2.3vh, 1.35rem); min-height: 2.1em; }
body.h-mode .educate__item p { font-size: clamp(.82rem, 1.75vh, .95rem); }
.podium__word { top: calc(var(--header-h, 76px) + 1vh); color: rgba(255, 255, 255, .16); -webkit-text-stroke-color: color-mix(in srgb, var(--pod) 40%, #fff); }

/* Mission matches the vision beside it: same width and height (set by fitMission in main.js), justified text */
.mission__list li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
body.h-mode .about .about__mission { width: max-content; padding-right: 6vw; }
body.h-mode .mission__lead { white-space: nowrap; width: max-content; line-height: .9; margin-bottom: .9em; }
body.h-mode .mission.is-fitted { display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; }
body.h-mode .mission.is-fitted .mission__list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: .9em; }
body.h-mode .mission.is-fitted .mission__list li { font-size: 1em; line-height: 1.45; }
body.h-mode .mission.is-fitted .mission__list li::before { font-size: 1.1em; }
body.h-mode .about .about__vision { width: clamp(380px, 33vw, 560px); padding-right: 3.5vw; }
.podium__plaque { white-space: normal; text-align: center; line-height: 1.2; text-wrap: balance; }
.podium__plaque { flex-wrap: wrap; align-content: center; column-gap: .5em; row-gap: .15em; }
.podium__plaque span { margin-right: 0; }
/* the mission column grows to the mission's fitted width (beats the older last-child width cap) */
body.h-mode .about .container.about__mission { width: max-content; max-width: none; padding-right: 6vw; }

/* Platforms 15% wider: the desktop panel grows with its column and floor; phones widen as far as the screen allows */
body.h-mode .podium { width: clamp(437px, 35.65vw, 621px); }
.podium { --w: min(391px, 66.7%); --spread: 16%; }
body.h-mode .podium { --w: 62%; --spread: 15%; }
.podium__col, body.h-mode .podium__col { width: var(--w); }
.podium__floor, body.h-mode .podium__floor { --w: inherit; }

/* Academics headline: a justified lockup like the vision (main.js sizes each line); justified intro */
.academics__title.fit-lines { font-size: 3rem; margin-bottom: 0; }
.academics__intro { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.section-head > * { min-width: 0; }
body.h-mode .academics .section-head { grid-template-columns: minmax(0, 1fr); }

/* ---------- Pure white canvas: every light section is #fff; dark sections stay as they are ---------- */
:root { --bg: #FFFFFF; }
.academics, .educate, .contact, .campus, .about, .trust, .podium { background: #FFFFFF; }
/* cards and panels keep their shape on white with a hairline and a soft shadow */
.card { border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(35, 26, 37, .07); }
.callcard { background: #FFFFFF; border: 1px solid var(--line); border-top: 6px solid var(--brand); box-shadow: 0 30px 70px rgba(35, 26, 37, .08); }
.formcard { border: 1px solid var(--line); border-top: 6px solid var(--accent); }
.field input, .field select, .field textarea { background: #FFFFFF; }

/* No divider between the Proverbs verse and About */
.trust, body.h-mode .trust { border-bottom: 0; border-right: 0; }

/* Academics cards: no numbers, justified text */
.card h3 { margin-top: 1.3rem; }
.card > p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }

/* Walker-style photo grow (computers): the photo box stretches up to the top of the screen, bottom edge fixed,
   and the picture crops in tighter as it grows. main.js sets --lift to the box's distance from the top. */
@media (hover: hover) {
  body.h-mode .card { z-index: 1; }
  body.h-mode .card:hover, body.h-mode .card:focus-within { z-index: 3; }
  body.h-mode .card__img { position: relative; overflow: visible; }
  body.h-mode .card__img img {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; max-width: none;
    object-fit: cover; transform: none !important;
    transition: height .75s var(--ease), box-shadow .75s var(--ease);
  }
  body.h-mode .card:hover .card__img img, body.h-mode .card:focus-within .card__img img {
    height: calc(100% + var(--lift, 0px)); box-shadow: 0 30px 60px rgba(35, 26, 37, .18);
  }
}

/* ---------- Admissions as a deep plum band (like Faith and values); the call card stays white ---------- */
.admissions { background: var(--surface-2); color: #F3ECF2; position: relative; overflow: hidden; isolation: isolate; }
.admissions::before {                      /* slow, soft glow behind the steps */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--brand-rgb), .32), transparent 70%);
  animation: admGlow 14s ease-in-out -5s infinite alternate;
}
@keyframes admGlow { to { transform: translate(8vmax, 10vmax) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .admissions::before { animation: none; } }
.admissions__text .eyebrow { color: var(--brand-soft); }
.admissions__text h2, .admissions__text h3 { color: #FFFFFF; }
.admissions__text .big { color: rgba(243, 236, 242, .9); }
.admissions .steps li { border-bottom-color: rgba(255, 255, 255, .14); }
.admissions .steps p { color: rgba(243, 236, 242, .72); }
.admissions .steps li:nth-child(1) .steps__num { color: var(--brand-soft); }
.admissions .steps li:nth-child(2) .steps__num { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.admissions .steps li:nth-child(3) .steps__num { color: color-mix(in srgb, var(--accent-2) 50%, #fff); }
.admissions .callcard { border: 0; border-top: 6px solid var(--accent); box-shadow: 0 40px 90px rgba(0, 0, 0, .38); }

/* ---------- Academics cards without boxes (as on thewalkerschool.org): photo, title, text and button on the page ---------- */
.card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.card h3 { margin: 1.4rem 0 .7rem; }
.card > p { margin: 0 0 1.4rem; }
.card .btn { margin: 0; }
body.h-mode .card { padding-bottom: 0; }
body.h-mode .cards { gap: clamp(1.8rem, 2.8vw, 3rem); }
body.h-mode .card > p { margin-bottom: 1.2rem; }
@media (hover: hover) {
  body.h-mode .card:hover .card__img img, body.h-mode .card:focus-within .card__img img { box-shadow: none; }
}
.card > p:not(.card__num) { margin: 0 0 1.4rem; }
body.h-mode .card > p:not(.card__num) { margin: 0 0 1.2rem; }

/* Mission markers spell the school's name: A N I S (Achieving, Nurturing, Including, Seeking); colours unchanged */
.mission__list li:nth-child(1)::before { content: "A"; }
.mission__list li:nth-child(2)::before { content: "N"; }
.mission__list li:nth-child(3)::before { content: "I"; }
.mission__list li:nth-child(4)::before { content: "S"; }

/* ---------- School life: three photo columns that move on their own (1st up, 2nd down, 3rd up faster) ---------- */
.mosaic.mosaic--loop {
  --mg: clamp(.5rem, 1vw, .9rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mg);
  height: clamp(460px, 78vh, 780px); overflow: hidden; align-items: start;
}
.mosaic--loop .mosaic__col { margin: 0 !important; transform: none !important; overflow: hidden; height: 100%; will-change: auto; }
.mosaic--loop .mosaic__track { display: block; will-change: transform; animation: mosaicUp var(--dur, 60s) linear infinite; }
.mosaic--loop .mosaic__col[data-dir="down"] .mosaic__track { animation-name: mosaicDown; }
.mosaic--loop .mosaic__col:nth-child(3) .mosaic__track { animation-delay: calc(var(--dur, 60s) * -.37); }
.mosaic--loop img { display: block; width: 100%; height: auto; object-fit: cover; margin: 0 0 var(--mg); }
@keyframes mosaicUp   { from { transform: translate3d(0, 0, 0); }    to { transform: translate3d(0, -50%, 0); } }
@keyframes mosaicDown { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
body.h-mode .mosaic.mosaic--loop { height: 100vh; }
@media (max-width: 760px) { .mosaic.mosaic--loop { grid-template-columns: repeat(3, minmax(0, 1fr)); height: clamp(420px, 110vw, 620px); } }
@media (prefers-reduced-motion: reduce) {                /* still on their own, but can be scrolled by hand (main.js) */
  .mosaic--loop .mosaic__track { animation-play-state: paused; }
}
/* A N I S markers at twice their size, top aligned with the first line of each point */
.mission__list li { padding-left: 2.9rem; }
.mission__list li::before { font-size: 2.1rem; line-height: .8; top: .12em; }
body.h-mode .mission.is-fitted .mission__list li::before { font-size: 2.2em; }
/* Academics runs straight into the School Life photos, with the same gap as between the cards */
body.h-mode .academics .cards-scroller { margin-right: clamp(1.8rem, 2.8vw, 3rem); }
/* School life: every photo the same square size, cropped (zoomed in) around the people */
.mosaic--loop img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.mosaic.mosaic--loop .mosaic__track img { aspect-ratio: 1 / 1; }    /* beats the old alternate-photo ratio */
/* School life tiles: landscape rectangles (4:3) instead of squares */
.mosaic.mosaic--loop .mosaic__track img { aspect-ratio: 4 / 3; }
/* School life tiles: tall rectangles (4:5), as on thewalkerschool.org */
.mosaic.mosaic--loop .mosaic__track img { aspect-ratio: 4 / 5; }

/* Header colours change letter by letter (main.js marks each letter over a light background) */
.site-header .tch { transition: color .12s linear; }
body.h-mode .site-header .tch { color: #fff; }
body.h-mode .site-header .tch.on-light { color: var(--text); text-shadow: none; }

/* Academics: the stage cards sit a little lower; the photo grow starts fast and settles slowly */
body.h-mode .academics .cards-scroller { margin-top: 16vh; }
@media (hover: hover) {
  body.h-mode .card__img img { transition: height 1.5s cubic-bezier(.16, 1, .3, 1); }
}

/* School life tiles: a clipping frame per photo, with a slow Ken Burns zoom and drift on hover */
.mosaic--loop .mosaic__tile { display: block; overflow: hidden; margin: 0 0 var(--mg); aspect-ratio: 4 / 5; }
.mosaic.mosaic--loop .mosaic__tile img { margin: 0; width: 100%; height: 100%; aspect-ratio: auto;
  transform: scale(1); transition: transform .9s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.mosaic--loop .mosaic__tile:hover img { transition: transform 7s cubic-bezier(.25, .6, .3, 1); }
.mosaic--loop .mosaic__tile.kb-0:hover img { transform: scale(1.16) translate(-2.5%, -2%); }
.mosaic--loop .mosaic__tile.kb-1:hover img { transform: scale(1.16) translate(2.5%, -1.5%); }
.mosaic--loop .mosaic__tile.kb-2:hover img { transform: scale(1.16) translate(-2%, 2%); }
.mosaic--loop .mosaic__tile.kb-3:hover img { transform: scale(1.16) translate(2%, 1.5%); }
@media (prefers-reduced-motion: reduce) { .mosaic--loop .mosaic__tile:hover img { transform: none; } }
/* Ken Burns on hover: a stronger zoom, reached in about 3 seconds */
.mosaic--loop .mosaic__tile:hover img { transition: transform 3.2s cubic-bezier(.22, .65, .3, 1); }
.mosaic--loop .mosaic__tile.kb-0:hover img { transform: scale(1.32) translate(-4%, -3%); }
.mosaic--loop .mosaic__tile.kb-1:hover img { transform: scale(1.32) translate(4%, -2.5%); }
.mosaic--loop .mosaic__tile.kb-2:hover img { transform: scale(1.32) translate(-3.5%, 3%); }
.mosaic--loop .mosaic__tile.kb-3:hover img { transform: scale(1.32) translate(3.5%, 2.5%); }

/* School life (computers): the photo columns run the full height of the screen, behind the see-through menu */
body.h-mode .hpanel.section.life { padding-top: 0; padding-bottom: 0; }
body.h-mode .life .life__grid { height: 100vh; }
body.h-mode .mosaic.mosaic--loop { align-self: stretch; height: 100vh; }
.life__text h2 .accent { color: var(--accent); }
/* School life text: justified, like the other sections */
.life__text p:not(.eyebrow) { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }

/* ---------- Phones: the three photo columns become three rows sliding sideways (left, right, left) ---------- */
@media (max-width: 760px) {
  .mosaic.mosaic--loop { display: grid; grid-template-columns: minmax(0, 1fr); height: auto; gap: var(--mg); overflow: hidden;
    margin-inline: calc(-1 * var(--gutter)); }
  .mosaic--loop .mosaic__col { height: auto; overflow: hidden; }
  .mosaic--loop .mosaic__track { display: flex; width: max-content; animation-name: mosaicLeft; }
  .mosaic--loop .mosaic__col[data-dir="down"] .mosaic__track { animation-name: mosaicRight; }
  .mosaic--loop .mosaic__tile { flex: none; width: 36vw; margin: 0 var(--mg) 0 0; }
}
@keyframes mosaicLeft  { from { transform: translate3d(0, 0, 0); }    to { transform: translate3d(-50%, 0, 0); } }
@keyframes mosaicRight { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }


/* ---------- Campus map: pins on the drawing and a list of places, linked both ways ---------- */
.campus__wrap { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); }
.campus__text h2 { margin-bottom: .45em; }
.campus__text h2 .accent { color: var(--accent); }
.campus__intro { margin: 0 0 1.1rem; max-width: 34rem; color: var(--muted); font-size: 1.08rem; text-align: justify; hyphens: auto; }
.campus__hint { margin: 0; display: flex; align-items: center; gap: .55em; font-size: .86rem; font-weight: 600; color: var(--brand); }
.campus__hint::before { content: ""; flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--accent); animation: cmapBlink 2.6s ease-in-out infinite; }
@keyframes cmapBlink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.cmap { margin: 0; }
.cmap__stage { position: relative; aspect-ratio: 2200 / 1520; }
.cmap__stage img { display: block; width: 100%; height: 100%; }
.cmap__pin { position: absolute; z-index: 2; width: 5.8%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform: translate(-50%, -50%); -webkit-tap-highlight-color: transparent; }
.cmap__pin--sm { width: 3.5%; }
.cmap__pin::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 34px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.cmap__pin::after { content: ""; position: absolute; inset: -12%; border-radius: 50%; box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .55); opacity: 0; animation: cmapPulse 5.5s ease-out infinite; animation-delay: calc(var(--i, 0) * -0.5s); }
.cmap__pin.is-on::after, .cmap__pin:focus-visible::after { animation: none; opacity: 1; box-shadow: 0 0 0 3px var(--accent), 0 0 0 10px rgba(var(--accent-rgb), .18); }
.cmap__pin:focus { outline: none; }
.cmap.has-on .cmap__pin:not(.is-on)::after { animation: none; opacity: 0; }
@keyframes cmapPulse { 0% { opacity: 0; transform: scale(.9); } 12% { opacity: .9; } 40%, 100% { opacity: 0; transform: scale(1.5); } }

.cmap__tip { position: absolute; z-index: 3; left: 0; top: 0; width: max-content; max-width: min(290px, 72%); padding: .7rem .95rem .75rem; border-radius: 12px; background: var(--surface-2); color: #fff; font-size: .86rem; line-height: 1.38; box-shadow: 0 14px 40px rgba(35, 26, 37, .28); pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.cmap__tip.is-shown { opacity: 1; }
.cmap__tip strong { display: block; margin-bottom: .1em; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.cmap__tip span { color: rgba(255, 255, 255, .84); }


/* sideways track: words, then the map, then the list */
body.h-mode .campus__wrap { display: flex; align-items: center; gap: 3.5vw; }
body.h-mode .campus__text { flex: none; width: clamp(300px, 25vw, 400px); }
body.h-mode .cmap { flex: none; height: min(70vh, 52vw); }
body.h-mode .cmap__stage { height: 100%; width: auto; }
@media (prefers-reduced-motion: reduce) { .cmap__pin::after, .campus__hint::before { animation: none; } }

/* ---------- Faith and values + EDUCATE: the Read more bar opens all seven values at once ---------- */
.faith { background: #FFFFFF; overflow: hidden; }
.faith__wrap { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.faith .eyebrow { color: var(--accent); }
.faith .values__quote p { color: var(--text); }
.faith .values__quote footer { color: var(--brand); }
.faith .values__text > p:not(.eyebrow) { color: var(--muted); }
.faith .values__lead { color: var(--text); }
.faith .values__lead strong { color: var(--brand); }

.faith .values__text > p:not(.values__lead) { text-align: justify; hyphens: auto; }

/* "Read more +" bar (as on Walker): a line under the words, filling with purple on hover. Used by Faith and values and Campus. */
.rv-btn { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: 34rem; min-height: 56px; margin-top: 1.8rem;
  padding: .95rem 1.1rem; border: 0; border-bottom: 2px solid var(--brand); border-radius: 0; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 100% 0 no-repeat;
  color: var(--brand); font: inherit; font-weight: 700; font-size: 1.02rem; letter-spacing: .1em; text-transform: uppercase; text-align: left; cursor: pointer;
  transition: background-size .45s var(--ease), color .35s ease; }
.rv-btn:hover, .rv-btn:focus-visible, .rv-btn.is-open { background-size: 100% 100%; color: #fff; }
.rv-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rv-btn__plus { position: relative; flex: none; width: 22px; height: 22px; transition: transform .6s var(--ease); }
.rv-btn__plus::before, .rv-btn__plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 2px; margin-top: -1px; background: currentColor; }
.rv-btn__plus::after { transform: rotate(90deg); }
.rv-btn.is-open .rv-btn__plus { transform: rotate(135deg); }

/* what the bar opens: shut until pressed (open without JavaScript) */
.rv-box { display: grid; grid-template-rows: 1fr; }
.rv-inner { min-height: 0; overflow: hidden; }
.js .rv-box { grid-template-rows: 0fr; transition: grid-template-rows 1s var(--ease); }
.js .rv-box.is-open { grid-template-rows: 1fr; }
body.h-mode .rv-box { display: block; flex: none; width: 0; overflow: hidden; transition: none; }
body.h-mode .rv-inner { width: max-content; overflow: visible; }
body:not(.h-mode) .rv-box { width: auto !important; }
.faith__side { display: none; }
.faith .educate__list { padding-top: .5rem; }
.js .faith .educate__item { opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .5s var(--ease); }
.js .faith .rv-box.is-open .educate__item { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--ease); transition-delay: calc(var(--k, 0) * 90ms + 300ms); }

/* computers: words | (opens sideways) OUR VALUES + E D U C A T E */
body.h-mode .hpanel.section.faith { padding-block: 0; }
body.h-mode .faith__wrap { width: auto; max-width: none; margin: 0; height: 100vh; display: flex; align-items: stretch; gap: 0; padding: 0 0 0 6vw; }
body.h-mode .faith__text { flex: none; align-self: center; width: clamp(340px, 30vw, 480px); margin-right: 4vw; }
body.h-mode .faith__inner { height: 100vh; display: flex; align-items: center; gap: 3.4vw; padding: 0 6vw 0 3.4vw; }
body.h-mode .faith__side { display: block; margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(4rem, 14vh, 9rem); line-height: .82; color: var(--brand); }
body.h-mode .faith .educate__list { padding-top: 0; }
@media (prefers-reduced-motion: reduce) { .js .faith .educate__item { transition: none; } .rv-btn, .rv-btn__plus { transition: none; } }

/* Campus: the map stays shut until "View the map" is pressed */
.campus__inner .campus__hint { margin-top: 1rem; }
.js .campus .cmap, .js .campus .campus__hint { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s var(--ease); }
.js .campus .rv-box.is-open .cmap, .js .campus .rv-box.is-open .campus__hint { opacity: 1; transform: none; transition: opacity .8s ease .3s, transform 1s var(--ease) .3s; }
.js .campus .rv-box.is-open .campus__hint { transition-delay: .7s; }
body.h-mode .campus__wrap { gap: 0; }
body.h-mode .campus__text { margin-right: 3.5vw; }
body.h-mode .campus__inner { padding: 0 6vw 0 0; }
@media (prefers-reduced-motion: reduce) { .js .campus .cmap, .js .campus .campus__hint { transition: none; } }

/* About: "Our vision" and "Our mission" buttons beside the photo; each opens its column */
.about__keys { display: grid; gap: .6rem; }
.about__keys .rv-btn { margin-top: 0; max-width: none; }
.js .about .rv-box .vision, .js .about .rv-box .mission { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s var(--ease); }
.js .about .rv-box.is-open .vision, .js .about .rv-box.is-open .mission { opacity: 1; transform: none; transition: opacity .8s ease .3s, transform 1s var(--ease) .3s; }
.about .rv-box .vision, .about .rv-box .mission { margin-top: 0; }
body:not(.h-mode) .about .rv-box.is-open { margin-top: clamp(2rem, 5vw, 3rem); }
body.h-mode .about__grid { grid-template-columns: 1fr 1.05fr auto; }
body.h-mode .about__keys { height: min(60vh, 34vw); grid-template-rows: 1fr 1fr; gap: .7rem; margin-left: calc(-4vw + .9rem); }
body.h-mode .rv-btn--side { writing-mode: vertical-rl; transform: rotate(180deg); width: 60px; height: 100%; min-height: 0; padding: 1.1rem 0;
  border-bottom: 0; border-left: 2px solid var(--brand); background-position: 0 0; background-size: 0 100%; font-size: .95rem; }
body.h-mode .rv-btn--side:hover, body.h-mode .rv-btn--side:focus-visible, body.h-mode .rv-btn--side.is-open { background-size: 100% 100%; }
body.h-mode .about .rv-inner > .container { margin: 0; }
@media (prefers-reduced-motion: reduce) { .js .about .rv-box .vision, .js .about .rv-box .mission { transition: none; } }

/* Campus and Faith and values: twin text blocks, same width, same type, same height (main.js matches the heights) */
body.h-mode .campus__text, body.h-mode .faith__text { width: clamp(340px, 30vw, 480px); display: flex; flex-direction: column; }
body.h-mode .campus__intro, body.h-mode .faith .values__text > p:not(.eyebrow) { font-size: clamp(.95rem, 2vh, 1.05rem); }
body.h-mode .campus__intro, body.h-mode .faith .values__lead { margin-bottom: 1.8rem; }
body.h-mode .campus__text .rv-btn, body.h-mode .faith__text .rv-btn { margin-top: auto; }
body.h-mode .hpanel.section.campus { padding-block: 0; }
body.h-mode .campus__wrap { height: 100vh; }
.faith .values__quote p .accent { color: var(--accent); }

/* School Life: the words come first (right after Academics), then the moving photo columns */
@media (min-width: 901px) { .life__grid { grid-template-columns: 1fr 1.25fr; } }   /* phones and tablets keep one column */
body.h-mode .life__grid { padding-left: 6vw; padding-right: 0; }

/* About photo: two coloured prints tucked behind it like a stack of photos.
   They drift apart as the section scrolls past (--k, set in main.js) and change colour with each photo. */
.about__media { isolation: isolate; --k: 1; --s: 1; }
.about__frame { z-index: 1; }
.about__media .chip, .about__media .about__dots { z-index: 3; }
.about__print { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .12));
  box-shadow: 0 18px 40px rgba(35, 26, 37, .16); transition: background-color 1.4s ease; }
.about__print--a { background-color: var(--brand);
  transform: translate(calc(-20px * var(--k) * var(--s)), calc(-18px * var(--k) * var(--s))) rotate(calc(-2.6deg * var(--k) * var(--s))); }
.about__print--b { background-color: var(--accent-2);
  transform: translate(calc(-8px * var(--k) * var(--s)), calc(22px * var(--k) * var(--s))) rotate(calc(1.8deg * var(--k) * var(--s))); }
.about__media.is-school .about__print--a { background-color: var(--accent); }
.about__media.is-school .about__print--b { background-color: var(--brand); }
@media (max-width: 760px) { .about__media { --s: .55; } }
@media (prefers-reduced-motion: reduce) { .about__print { transition: none; } }

/* Admissions call card: no hours line now, so the buttons keep their distance from the number */
.callcard__actions { margin-top: 1.6rem; }

/* Contact: the enquiry form stays shut until "Admissions enquiry +" is pressed */
.contact__info .rv-btn { margin-top: 2rem; }
.js .contact .formcard { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s var(--ease); }
.js .contact .rv-box.is-open .formcard { opacity: 1; transform: none; transition: opacity .8s ease .3s, transform 1s var(--ease) .3s; }
body:not(.h-mode) .contact .rv-box.is-open { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
body.h-mode .contact__grid { display: flex; align-items: center; gap: 0; width: auto; padding-inline: 6vw 0; }
body.h-mode .contact__info { flex: none; width: clamp(340px, 30vw, 480px); }
body.h-mode .contact__inner { padding: 0 6vw 0 5vw; }
body.h-mode .contact .formcard { width: clamp(520px, 44vw, 720px); }
@media (prefers-reduced-motion: reduce) { .js .contact .formcard { transition: none; } }

/* No footer panel: the page ends with Contact, which carries the small print */
.contact__base { width: min(var(--max), 100% - 2 * var(--gutter)); margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; font-size: .82rem; color: var(--muted); }
.contact__base p { margin: 0; }
.contact__base a { color: var(--brand); font-weight: 600; text-decoration: none; }
.contact__base a:hover { text-decoration: underline; }
body.h-mode .contact { position: relative; }
/* Contact is only as wide as its content (no empty screen); the small print sits under the details.
   The details are centred between the menu bar and the small print. */
body.h-mode .hpanel.section.contact { padding-block: 0; }
body.h-mode .contact .contact__grid { height: 100vh; padding-top: calc(var(--header-h) + 1vh); padding-bottom: 11vh; }
body.h-mode .contact__base { position: absolute; left: 6vw; bottom: 3vh; width: clamp(340px, 30vw, 480px); margin: 0; padding-top: .7rem; font-size: .74rem; gap: .2rem 1.6rem; }
@media (max-height: 820px) {
  body.h-mode .contact h2 { font-size: clamp(2.1rem, 6.2vh, 4rem); }
  body.h-mode .details { margin: .6rem 0 1rem; gap: .5rem; }
  body.h-mode .details div { padding-bottom: .5rem; }
  body.h-mode .details dd { font-size: .92rem; }
  body.h-mode .contact__info .rv-btn { margin-top: 1.1rem; min-height: 48px; padding-block: .7rem; }
}

/* Podium students: if a wide cut-out has to shrink to fit a narrow screen, it shrinks towards the floor, never floats */
.podium__kid img { object-position: 50% 100%; }

/* Sideways vision/mission buttons: the label stays on one line on shorter screens */
body.h-mode .rv-btn--side .rv-btn__label { white-space: nowrap; font-size: clamp(.74rem, 1.55vh, .95rem); }

/* Phones: room under the vision and mission so the big last line ("MORAL VALUES") is never cropped */
body:not(.h-mode) .about .rv-box .vision, body:not(.h-mode) .about .rv-box .mission { padding-bottom: 1.4rem; }

/* Unity dancer: her skirt comes close to the panel edge, so her shadow is kept shorter and fades out inside the panel
   (a longer one was cut off in a straight line where the next section begins) */
.podium--blue .podium__kid img { filter: drop-shadow(5px 0 7px rgba(25, 10, 28, .2)) drop-shadow(9px -3px 13px rgba(25, 10, 28, .13)); }

/* School Life: a pause button for the moving photos (moving content needs a way to stop it) */
.mosaic.mosaic--loop { position: relative; }
.mosaic__pause { position: absolute; z-index: 5; right: 1rem; bottom: 1rem; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(20, 12, 22, .58);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: background .3s ease, transform .3s var(--ease); }
.mosaic__pause:hover { background: rgba(20, 12, 22, .78); transform: scale(1.06); }
.mosaic__pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mosaic__pause-icon { position: relative; width: 14px; height: 16px; }
.mosaic__pause-icon::before, .mosaic__pause-icon::after { content: ""; position: absolute; top: 0; width: 4px; height: 16px; border-radius: 1px; background: currentColor; }
.mosaic__pause-icon::before { left: 1px; }
.mosaic__pause-icon::after { right: 1px; }
.mosaic.is-paused .mosaic__pause-icon::after { display: none; }      /* paused: show a play triangle */
.mosaic.is-paused .mosaic__pause-icon::before { left: 3px; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.mosaic.is-paused .mosaic__track { animation-play-state: paused !important; }
@media (max-width: 760px) { .mosaic__pause { right: .8rem; bottom: .8rem; } }
@media (prefers-reduced-motion: reduce) { .mosaic__pause { display: none; } }   /* nothing moves, so nothing to pause */

/* Enquiry form: hidden spam trap (bots tick it, people never see it) */
.enquiry__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.enquiry button[type="submit"]:disabled { opacity: .7; cursor: progress; }

/* "Meet our team" link: the same bar as the + buttons, with an arrow because it opens a page */
a.rv-btn { text-decoration: none; }
.rv-btn__arrow { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: transform .45s var(--ease); }
.rv-btn--link:hover .rv-btn__arrow, .rv-btn--link:focus-visible .rv-btn__arrow { transform: translateX(5px); }
.about__text .rv-btn--link { margin-top: 1.6rem; max-width: none; }

/* ---------- Computers: every section's text column has the same width and starts at the same height ----------
   --col-w: the shared column width; --col-top: where every eyebrow label starts (just below the menu bar).
   Photos, cards, the map and forms stay centred as before. */
body.h-mode { --col-w: clamp(340px, 30vw, 480px); --col-top: calc(var(--header-h) + 5vh); }
body.h-mode .hpanel.section.about { padding-block: 0; }
/* Academics keeps its own top/bottom padding so the cards stay exactly where they were; it gets the same left margin as the other sections */
body.h-mode .hpanel.section.academics { padding-left: 6vw; }
body.h-mode .about__grid { height: 100vh; grid-template-columns: var(--col-w) minmax(0, 1fr) auto; }
body.h-mode .about__text { align-self: start; margin-top: var(--col-top); }
body.h-mode .about__title { white-space: normal; width: auto; font-size: clamp(2.4rem, 7.4vh, 4.4rem) !important; }
body.h-mode .academics > .container:first-child { width: var(--col-w); align-self: flex-start; margin-top: calc(var(--col-top) - var(--header-h) - 2vh); }
body.h-mode .life__text { width: var(--col-w); align-self: flex-start; margin-top: var(--col-top); padding-top: 0; }
body.h-mode .campus__text, body.h-mode .faith__text { width: var(--col-w); align-self: flex-start; margin-top: var(--col-top); }
body.h-mode .contact .contact__grid { padding-top: 0; }
body.h-mode .contact__info { width: var(--col-w); align-self: flex-start; margin-top: var(--col-top); }

/* Academics headline: an ordinary heading, the same size as every other section heading (it used to be a stretched lockup) */
.academics__title .accent { color: var(--accent); }

/* Academics on computers: label, one-line title and intro sit ABOVE the four cards, spanning exactly
   from the left edge of Pre-Primary to the right edge of Upper Secondary. The cards themselves are unchanged. */
body.h-mode .hpanel.section.academics { display: grid; grid-template-columns: max-content; align-content: start; justify-content: start;
  gap: 0; padding: 0 0 0 6vw; }
body.h-mode .academics > .container:first-child { width: 0; min-width: 100%; margin: var(--col-top) 0 0; align-self: start; }   /* as wide as the cards, never wider */
body.h-mode .academics .section-head { display: block; }
body.h-mode .academics__title { white-space: nowrap; margin-bottom: .25em; }
body.h-mode .academics__title br { display: none; }
body.h-mode .academics .academics__intro { max-width: none; width: 100%; text-align: justify; }
body.h-mode .academics .cards-scroller { margin-top: 4vh; }
body.h-mode .hpanel.section.academics { padding-right: clamp(1.8rem, 2.8vw, 3rem); }
body.h-mode .academics .cards-scroller { margin-right: 0; }                       /* so the text row ends exactly at Upper Secondary */
/* the intro is exactly as wide as the one-line title above it (easier to read than one very long line) */
body.h-mode .academics .section-head { display: grid; grid-template-columns: max-content; justify-content: start; }
body.h-mode .academics .academics__intro { width: 0; min-width: 100%; text-align: justify; hyphens: auto; }
@media (max-height: 800px) {                                                     /* shorter laptop screens: keep the Enquire buttons on screen */
  body.h-mode .academics__title { margin-bottom: .08em; }
  body.h-mode .academics .cards-scroller { margin-top: 2vh; }
  body.h-mode .academics .academics__intro { font-size: .94rem; line-height: 1.45; }
}

/* Academics cards: "Enquire" uses the same bar as the other reveal buttons (purple line, fills on hover, arrow) */
.card .card__enquire { margin-top: auto; align-self: stretch; max-width: none; min-height: 50px; padding-block: .75rem; font-size: .9rem; }
.card > p:last-of-type { margin-bottom: 1.4rem; }
@media (max-height: 800px) { body.h-mode .card .card__enquire { min-height: 44px; padding-block: .55rem; } body.h-mode .card > p:last-of-type { margin-bottom: 1rem; } }

/* Phones: the photo rows can be swiped sideways; up/down swipes still scroll the page */
@media (max-width: 760px) { .mosaic--loop .mosaic__col { touch-action: pan-y; cursor: grab; } .mosaic--loop .mosaic__tile img { -webkit-user-drag: none; user-select: none; } }

/* School Life photos wait in data-src until the visitor nears the section (main.js); until then the
   empty frames keep their size and show nothing (no alt text flashing in) */
.mosaic--loop img[data-src] { visibility: hidden; }
