@import url("fonts.css");

/* ==========================================================================
   Kreeda Kshetra Cricket Academy — design system
   Navy #151647 + Gold #C9A74D, taken from the academy crest.
   ========================================================================== */

:root {
  /* brand */
  --navy-900: #08091f;
  --navy-800: #0d0e2e;
  --navy: #151647;
  --navy-600: #23255f;
  --navy-500: #343780;
  --gold: #c9a74d;
  --gold-400: #ddc077;
  --gold-600: #a8873a;
  /* gold for small text on light grounds: 4.7:1 or better on cream, white and the alt band */
  --gold-text: #80672c;

  /* neutrals */
  --cream: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f1efe8;
  --line: #e3e0d6;
  --ink: #16172f;
  --body: #4a4c63;
  --muted: #67697f;

  /* type */
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* rhythm */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgb(8 9 31 / 6%), 0 4px 12px rgb(8 9 31 / 5%);
  --shadow: 0 2px 4px rgb(8 9 31 / 6%), 0 16px 40px rgb(8 9 31 / 10%);
  --shadow-lg: 0 30px 70px rgb(8 9 31 / 22%);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* --------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { height: auto; }

/* No opacity transition on images. It used to fade them up as they decoded, but
   any image still waiting was held at opacity 0, so a slow connection showed an
   empty box where a photograph should be. Images paint as they arrive instead. */

/* Big above-the-fold images carry an inline blurred placeholder (data-lqip), so the
   area shows a colour impression immediately rather than an empty box. */
img[data-lqip] { background-color: var(--navy-800); }

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

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

/* figure/blockquote ship with large UA margins that would shrink every media tile */
figure, blockquote, dl, dd { margin: 0; }

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

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

::selection { background: var(--gold); color: var(--navy); }

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

.wrap--wide { max-width: 1440px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--navy { background: var(--navy); color: #cfd0e4; }
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: #fff; }
.section--alt { background: var(--surface-2); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 0.8rem 1.4rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------- type scale */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  color: var(--gold-text);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}
.section--navy .eyebrow,
.hero .eyebrow { color: var(--gold-400); }

.h-xl { font-size: clamp(2.75rem, 7.2vw, 5.25rem); }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.h-md { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.h-sm { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* headings carry no bottom margin by default, so give them one when prose follows */
.h-xl + p,
.h-lg + p,
.h-md + p,
.h-xl + .lede,
.h-lg + .lede,
.h-md + .lede { margin-top: 1.15rem; }

.lede {
  max-width: 62ch;
  font-size: clamp(1.09rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: var(--body);
}
.section--navy .lede { color: #b9bbd6; }

/* prose blocks get a measure — beyond ~72ch the eye loses the next line */
.prose > p { max-width: 68ch; }
.prose > p + p { margin-top: 1.1em; }

.section-head { max-width: 68ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lede { margin-top: 1.1rem; }
/* a heading-only head (Joy → … → Growth) gets the full row so it sets on one line */
.section-head--wide { max-width: none; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 100px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(201 167 77 / 35%); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: #fff;
}
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy); box-shadow: none; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-600); color: #fff; box-shadow: 0 10px 24px rgb(21 22 71 / 30%); }

.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.8rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
/* navy backgrounds need the gold treatment or the link disappears into the panel */
.section--navy .link-arrow,
.site-footer .link-arrow,
.cta-band .link-arrow { color: var(--gold-400); }
.site-footer .link-arrow:hover,
.section--navy .link-arrow:hover { color: #fff; }

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(8 9 31 / 62%), transparent);
  opacity: 1;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.site-header.is-stuck {
  /* NOTE: do not add backdrop-filter here. A non-none backdrop-filter makes this
     element a containing block for position:fixed descendants, which collapses the
     full-screen mobile drawer into the header bar as soon as the page is scrolled. */
  background: var(--navy);
  box-shadow: 0 8px 30px rgb(8 9 31 / 22%);
}
.site-header.is-stuck::before { opacity: 0; }


.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  position: relative;
  /* the header is a stacking context; the open mobile drawer sits at 90 inside it,
     so the logo and the toggle must stay above it or the menu cannot be closed */
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  color: #fff;
}
.brand img {
  width: 48px;
  height: 48px;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-name {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-sub {
  margin-top: 3px;
  color: var(--gold-400);
  font-size: 0.6rem;
  font-weight: 600;
  /* Measured, not guessed: spaces CRICKET ACADEMY out to the width of KREEDA
     KSHETRA above it, as on the crest lockup. This is the no-JS value; site.js
     re-fits it in the browser, because glyph widths at this size vary by platform.
     The footer sets its own value. */
  letter-spacing: 0.311em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* the in-drawer CTA is a mobile-only duplicate of .header-cta */
.nav-cta { display: none; }
.nav-list a {
  position: relative;
  display: block;
  /* compresses gracefully between the drawer breakpoint and a roomy desktop */
  padding: 0.55rem clamp(0.5rem, 0.95vw, 0.85rem);
  color: rgb(255 255 255 / 88%);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-list a:hover { color: #fff; background: rgb(255 255 255 / 10%); }
.nav-list a[aria-current="page"] { color: var(--gold-400); font-weight: 600; }

.header-cta { flex: none; }

.nav-toggle {
  position: relative;
  z-index: 95;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 10px;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Tablets get the drawer too: below ~1025px the brand + six links + CTA no longer
   fit on one line, and a drawer is the better target size on touch anyway. */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    align-content: start;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background: var(--navy);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    /* same trick as the lightbox: focusable immediately on open, hidden only
       once the close animation has finished */
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0s linear 0.28s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0s linear 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list a {
    padding: 1.1rem 0.25rem;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    border-radius: 0;
    font-family: var(--display);
    font-size: 1.65rem;
    font-weight: 600;
    text-transform: uppercase;
  }
  .nav-list a:hover { background: transparent; }
  .nav-cta { display: block; margin-top: 2rem; }
  .nav-cta .btn { width: 100%; }
}

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  min-height: min(88svh, 820px);
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 0;
  background: var(--navy-900);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
/* <picture> is inline by default, which would collapse the img's percentage
   height against a shrink-to-fit box. */
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* keep the headline column dark enough for white text, let the field breathe on the right */
  background:
    linear-gradient(to right, rgb(8 9 31 / 88%) 0%, rgb(8 9 31 / 74%) 34%, rgb(8 9 31 / 34%) 66%, rgb(8 9 31 / 6%) 100%),
    linear-gradient(to top, rgb(8 9 31 / 78%) 0%, rgb(8 9 31 / 8%) 40%, transparent 62%);
}

/* narrow screens have no side column to hide behind, so darken bottom-up instead */
/* A 16:9 frame inside a tall phone hero loses ~45% of its width to object-fit.
   A 2:3 cut of the same photograph is served instead — see the <picture> in the
   markup — so the pitch stays whole rather than being zoomed into. */
@media (max-width: 700px) {
  .hero { min-height: min(78svh, 640px); }
  .hero-media img { object-position: center 50%; }
}

@media (max-width: 900px) {
  .hero::after {
    background: linear-gradient(
      to top,
      rgb(8 9 31 / 94%) 10%,
      rgb(8 9 31 / 80%) 45%,
      rgb(8 9 31 / 52%) 100%
    );
  }
}

.hero-body { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { color: #fff; max-width: 15ch; }
/* "Team First" leads; the purpose line sits under it, smaller and in gold */
.hero-tagline {
  display: block;
  margin-top: 0.8rem;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0.03em;
  color: var(--gold);
}
/* the content package's opening line, between the headline and the paragraph */
.hero-kicker {
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: #fff;
}
.hero .lede {
  max-width: 54ch;
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 82%);
}
.hero-kicker + .lede { margin-top: 0.5rem; }

/* Joy → Awareness → Discipline → Growth. The arrows are SVG, not the → glyph:
   the display font is subset and may not carry one, so a fallback font would draw
   it. Each arrow is glued to the word after it so a line never ends on an arrow. */
.flow-step { white-space: nowrap; }
.flow-arrow {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin: 0 0.18em 0.08em 0;
  vertical-align: middle;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the closing line of Train. Compete. Grow., set apart as the package has it */
.statement-sm {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.cta-band .statement-sm { color: var(--gold-400); margin-top: 1.4rem; }
.section--navy .statement-sm { color: var(--gold-400); margin-block: 1.4rem; }

/* a navy section with a photograph behind it: dark where the text sits, letting the
   match show through on the right at desktop width */
.section--photo { position: relative; isolation: isolate; overflow: hidden; }
.section--photo > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 72%;
}
.section--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgb(21 22 71 / 70%), rgb(21 22 71 / 86%) 45%, rgb(21 22 71 / 86%));
}
@media (min-width: 900px) {
  .section--photo::after {
    background: linear-gradient(100deg, rgb(21 22 71 / 96%) 34%, rgb(21 22 71 / 60%) 58%, rgb(21 22 71 / 15%));
  }
}

/* stats rail sitting on the hero base */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgb(255 255 255 / 14%);
  border-top: 1px solid rgb(255 255 255 / 14%);
}
.hero-stats div {
  padding: 1.5rem var(--gutter);
  background: rgb(8 9 31 / 62%);
}
.hero-stats .stat-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.hero-stats .stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 72%);
}
@media (max-width: 700px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div { padding-inline: 1.25rem; }
}

/* --------------------------------------------------------------- page banner */
.page-banner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(300px, 42vw, 440px);
  padding-top: var(--header-h);
  background: var(--navy);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.page-banner img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgb(8 9 31 / 90%), rgb(8 9 31 / 62%));
}
.page-banner h1 { color: #fff; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgb(255 255 255 / 70%);
}
.crumbs a:hover { color: var(--gold-400); }
.crumbs li + li::before {
  content: "/";
  margin-right: 0.55rem;
  color: rgb(255 255 255 / 40%);
}
.crumbs li { display: flex; align-items: center; }
.crumbs [aria-current] { color: var(--gold-400); }

/* --------------------------------------------------------------- grid utils */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right .split-media { order: 2; }
}

.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* gold frame accent behind feature images */
.framed::before {
  display: none;
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.framed { position: relative; z-index: 0; }
.framed--flush img { display: block; height: auto; }
.framed--flush::before { display: none; }
@media (max-width: 600px) {
  .framed::before { inset: 12px -12px -12px 12px; }
}

/* --------------------------------------------------------------- cards */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfcbbc; }
.card h3 { margin-bottom: 0.6rem; font-size: 1.28rem; }
.card p { font-size: 1rem; line-height: 1.68; }

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--navy), var(--navy-600));
  color: var(--gold);
}
.card-icon svg { width: 28px; height: 28px; }

.section--navy .card {
  background: rgb(255 255 255 / 5%);
  border-color: rgb(255 255 255 / 12%);
  box-shadow: none;
  color: #b9bbd6;
}
.section--navy .card:hover { background: rgb(255 255 255 / 8%); border-color: rgb(201 167 77 / 45%); }
.section--navy .card-icon { background: rgb(201 167 77 / 15%); }

/* numbered programme list */
.numbered { counter-reset: n; }
.numbered .card { position: relative; overflow: hidden; }
/* keep the title clear of the numeral sitting in the top-right corner */
.numbered .card h3 { padding-right: 2.75rem; }
.numbered .card::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  position: absolute;
  top: 0.6rem;
  right: 1.1rem;
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-400);
  opacity: 0.62;
}

/* --------------------------------------------------------------- media cards */
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
/* A photograph in a tile is shown whole, at its own shape. Tiles used to force 4:3
   (and 3:2) with object-fit: cover, and the hover zoom trimmed the edges again. */
.tile img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s var(--ease);
}
.tile:hover img { opacity: 0.88; }
.tile figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1.15rem 1.05rem;
  background: linear-gradient(to top, rgb(8 9 31 / 88%), transparent);
  color: #fff;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease);
  pointer-events: none;
}
.tile:hover::after { border-color: var(--gold); }

/* tiles in a grid keep their own height instead of stretching to the tallest */
.grid > .tile { align-self: start; }

/* Press cuttings are documents, not photographs: cropping them cuts the story in
   half, so show the whole page on paper white and skip the zoom-on-hover. */
.tile--doc { background: #fff; border: 1px solid var(--line); }
.tile--doc img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
}
.tile--doc:hover img { transform: none; opacity: 0.9; }

/* filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filters button {
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filters button:hover { border-color: var(--gold); color: var(--navy); }
.filters button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.is-filtered-out { display: none !important; }

/* --------------------------------------------------------------- team */
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.person img {
  width: 148px;
  height: 148px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold);
}
.person h3 { font-size: 1.3rem; }
.person .role {
  margin-top: 0.35rem;
  color: var(--gold-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.person .bio {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: left;
}

/* --------------------------------------------------------------- stats band */
.stat-band { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-band > div { padding: 2rem 1.5rem; background: var(--surface); text-align: center; }
.stat-band .stat-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}
.stat-band .stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- testimonials */
.quote {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.35rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.quote::before {
  content: "";
  display: block;
  width: 40px;
  height: 30px;
  margin-bottom: 1.25rem;
  background: var(--gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M0 30V16C0 7.2 5.7 1.3 15.6 0l1.6 5.3C11.4 6.7 8.4 9.7 8.4 14H16v16H0zm24 0V16C24 7.2 29.7 1.3 39.6 0l1.6 5.3C35.4 6.7 32.4 9.7 32.4 14H40v16H24z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.78; }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.quote figcaption img {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.quote .q-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.quote .q-rel { font-size: 0.82rem; color: var(--muted); }

/* --------------------------------------------------------------- partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.5rem);
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  padding: clamp(1.5rem, 2.6vw, 2.1rem) 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.partner img {
  padding: 0.45rem;
  border-radius: 0.65rem;
  background: #fff;
}
.partner:hover {
  transform: translateY(-4px);
  border-color: rgb(201 167 77 / 55%);
  box-shadow: var(--shadow);
}
/* fixed optical box so round crests and wide wordmarks read at the same weight */
.partner img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}
.partner-name {
  /* reserve two lines so the cards' baselines agree whether a name wraps or not */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4em;
  margin-top: auto;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Partner-school photo gallery */
.school-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 1.8vw, 1.5rem);
  align-items: start;
}
.school-photo {
  display: block;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.school-photo img {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 280px);
  object-fit: cover;
  background: var(--surface);
}
.school-photo[data-lightbox] { cursor: zoom-in; }
@media (min-width: 560px) { .school-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .school-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* U16 season photographs scroll as one continuous, pause-on-hover row. */
.marquee--impact .marquee-track {
  animation-duration: 90s;
}
.impact-feature {
  display: block;
  width: 100vw;
  margin-left: calc((100% - 100vw) / 2);
  margin-block: clamp(2rem, 4vw, 3rem);
}
.impact-marquee-group {
  display: flex;
  flex: none;
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
  margin-right: clamp(0.85rem, 1.8vw, 1.25rem);
}
.impact-marquee-item {
  flex: none;
  width: clamp(300px, 40vw, 520px);
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.impact-marquee-item img {
  display: block;
  width: 100%;
  height: auto;
}
.impact-marquee-item[role="button"] { cursor: zoom-in; }
.impact-marquee-item[role="button"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------- clubs */
.club-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}
.club {
  display: grid;
  place-content: center;
  aspect-ratio: 1;
  border: 2px solid rgb(201 167 77 / 40%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.club:hover { transform: translateY(-4px); border-color: var(--gold); background: rgb(201 167 77 / 10%); }
.club strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.club span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 62%);
}

/* --------------------------------------------------------------- clinics */
.clinic {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 860px) {
  .clinic { grid-template-columns: 320px 1fr; }
}
/* two rows of photos so the strip balances the coach panel beside it */
.clinic-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  align-content: start;
}
@media (min-width: 560px) {
  .clinic-strip { grid-template-columns: repeat(3, 1fr); }
}
.clinic-strip .tile img {
  aspect-ratio: 4 / 3;
  /* one of these frames is square; contain shows every clinic photo whole
     whatever shape it arrives in */
  object-fit: contain;
  background: var(--surface-2);
}
.clinic-strip .tile { background: var(--surface-2); }
.clinic-coach { padding: 1.35rem; background: var(--navy); border-radius: var(--radius); color: #b9bbd6; }
.clinic-coach h3 { color: #fff; font-size: 1.5rem; }
.clinic-coach .role {
  margin-top: 0.3rem;
  color: var(--gold-400);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.clinic-coach ul { margin-top: 1rem; font-size: 0.88rem; }
.clinic-coach li { position: relative; padding-left: 1.1rem; margin-bottom: 0.45rem; line-height: 1.55; }
.clinic-coach li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* --------------------------------------------------------------- perks */
.perk {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.perk:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.perk svg { flex: none; width: 26px; height: 26px; color: var(--navy); margin-top: 2px; }
.perk h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.perk p { font-size: 0.9rem; margin: 0; }

/* --------------------------------------------------------------- news */
.news-card { overflow: hidden; padding: 0; }
.news-card img {
  width: 100%;
  /* The posters are 4:5 artwork. In a 4:3 box object-fit: cover ate 40% of them,
     dates included. contain + a capped height shows the whole poster without
     letting a single card run to 700px tall on a wide screen. */
  height: clamp(300px, 32vw, 440px);
  object-fit: contain;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.news-body { padding: clamp(1.35rem, 2.5vw, 1.85rem); }
.news-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: rgb(201 167 77 / 18%);
  color: var(--gold-text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.news-card ul { margin: 0.9rem 0 0; }
.news-card li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}
.news-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* --------------------------------------------------------------- CTA band */
.cta-band {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--navy);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.cta-band img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgb(21 22 71 / 96%) 30%, rgb(21 22 71 / 78%));
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { max-width: 52ch; margin-top: 1rem; color: rgb(255 255 255 / 80%); }

/* --------------------------------------------------------------- contact */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
}

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.info-item:last-child { border-bottom: 0; }
.info-item svg { flex: none; width: 22px; height: 22px; color: var(--gold-600); margin-top: 4px; }
.info-item h3 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.info-item a:hover { color: var(--navy); text-decoration: underline; }

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.field .req { color: var(--gold-text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(201 167 77 / 22%);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #c0392b; }

/* Honeypot — hidden from people (and from AT via aria-hidden/tabindex on the markup),
   still filled in by naive bots. Clipped rather than pushed off-canvas so it can never
   influence layout or overflow. */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.form-note { font-size: 0.82rem; color: var(--muted); }

.form-status {
  display: none;
  padding: 0.95rem 1.15rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 400;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #e6f4ea; border: 1px solid #97c9a8; color: #1c5f34; }
.form-status.is-error { background: #fdecea; border: 1px solid #e2a49d; color: #8c231a; }

.map-embed {
  border: 0;
  width: 100%;
  height: clamp(300px, 45vw, 460px);
  border-radius: var(--radius);
  filter: grayscale(0.25);
}

/* --------------------------------------------------------------- footer */
.site-footer {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  background: var(--navy-800);
  color: #9c9fc0;
  font-size: 0.92rem;
}
.footer-top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .footer-top { grid-template-columns: 1.5fr 1fr 1.3fr; } }

.site-footer h3 {
  margin-bottom: 1.1rem;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.site-footer a:hover { color: var(--gold-400); }
.footer-links li { margin-bottom: 0.6rem; }

.footer-brand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; }
.footer-brand img { width: 58px; height: 58px; }
.footer-brand > span { white-space: nowrap; }
.footer-brand .brand-name { color: #fff; font-family: var(--display); font-size: 1.45rem; font-weight: 700; text-transform: uppercase; line-height: 1; }
.footer-brand .brand-sub { color: var(--gold-400); font-size: 0.62rem; letter-spacing: 0.391em; text-transform: uppercase; } /* width-matched to the name, see .brand-sub */

.socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgb(8 9 31 / 98%);
  opacity: 0;
  visibility: hidden;
  /* Flip visibility instantly when opening (so the dialog is focusable in the same
     frame) but hold it until the fade-out finishes when closing. */
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0s;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  color: rgb(255 255 255 / 70%);
  font-size: 0.85rem;
}
.lightbox-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding: 0 clamp(0.75rem, 4vw, 4.5rem) clamp(2.6rem, 5vw, 3.4rem);
  min-height: 0;
  overflow: hidden;
}
/* Percent heights resolve against an indefinite grid track and are ignored, so the
   photo rendered at natural size and was cropped by the viewport (looked zoomed in).
   Fill the track explicitly and let contain fit the whole photo inside it. */
.lightbox-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 0.75rem 1rem;
  text-align: center;
  color: rgb(255 255 255 / 78%);
  font-size: 0.88rem;
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  background: rgb(255 255 255 / 6%);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.lb-btn:hover { background: var(--gold); color: var(--navy); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.lb-prev { left: clamp(0.4rem, 2vw, 1.5rem); }
.lb-next { right: clamp(0.4rem, 2vw, 1.5rem); }

/* on a phone there is no room beside the image — drop the controls into a bottom bar */
@media (max-width: 640px) {
  .lightbox-stage { padding: 0 0.75rem 5.5rem; }
  .lb-prev,
  .lb-next { top: auto; bottom: 0.9rem; transform: none; }
  .lb-prev { left: calc(50% - 3.4rem); }
  .lb-next { right: calc(50% - 3.4rem); }
  .lightbox-caption { bottom: 4.4rem; }
}

/* --------------------------------------------------------------- reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* The two marquees are the deliberate exception to the blanket reset above.
     Killing them did not read as "respecting a preference", it read as a broken
     row of logos sitting still. They keep scrolling — slower — and every one of
     them carries a Pause button, which is what WCAG 2.2.2 actually asks for.
     These need !important only to outrank the universal rule above; the class
     selector already wins on specificity. */
  .marquee-track {
    animation-name: marquee-scroll !important;
    animation-duration: 90s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
  }
  .marquee--reviews .marquee-track { animation-duration: 150s !important; }
}


/* ==========================================================================
   V2 — components for the homepage content package
   Personal Growth Through Cricket. Institution first, quiet by default: one
   accent per section, generous measure, nothing that competes with the copy.
   ========================================================================== */

/* --------------------------------------------------------------- statement */
/* A single belief, set large. Used once per page at most — it stops working the
   moment there are two of them. */
.statement {
  max-width: 24ch;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.section--navy .statement { color: #fff; }
.statement em {
  display: block;
  font-style: normal;
  color: var(--gold-text);
}
.section--navy .statement em { color: var(--gold); }

/* --------------------------------------------------------------- chain */
/* Joy → Awareness → Discipline → Growth. Four steps, one line on a desktop, a
   vertical run on a phone. Deliberately not an infographic. */
.chain {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: transparent;
}
@media (min-width: 1000px) {
  .chain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.chain-step {
  position: relative;
  min-height: 13rem;
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
}
.chain-step .step-n {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--gold-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.chain-step h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 0.5rem;
}
.chain-step p { font-size: 0.97rem; margin: 0; }

/* the arrow between steps — above each step when stacked, beside it when in a row */
.chain-step + .chain-step::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 26px;
  height: 26px;
  background: var(--gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}
@media (min-width: 1000px) {
  .chain-step + .chain-step::before {
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
  }
}

/* Phones and tablets: the four stages as a numbered timeline, one under the other,
   joined by a gold line. The boxed four-across row only works at laptop width; below
   it the cards read as half-empty boxes. The heading stacks one stage per line. */
@media (max-width: 999px) {
  .chain {
    max-width: 38rem;
    gap: 0;
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .chain-step {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    column-gap: 1.1rem;
    padding: 0 0 1.75rem;
    min-height: 0;
    border-top: 0;
    border-radius: 0;
    background: none;
  }
  .chain-step:last-child { padding-bottom: 0; }
  .chain-step .step-n {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-400);
    letter-spacing: 0.04em;
  }
  .chain-step h3,
  .chain-step p { grid-column: 2; }
  .chain-step h3 { align-self: center; margin: 0.55rem 0 0.35rem; }
  .chain-step + .chain-step::before { display: none; }
  .chain-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(1.375rem - 1px);
    top: 3.15rem;
    bottom: 0.4rem;
    width: 2px;
    background: linear-gradient(var(--gold), rgb(201 167 77 / 25%));
  }
  .flow-step { display: block; }
}

/* --------------------------------------------------------------- checklist */
.checklist { display: grid; gap: 0.9rem; }
@media (min-width: 820px) {
  .checklist { grid-template-columns: 1fr 1fr; gap: 0.9rem 2.25rem; }
}
.checklist li {
  position: relative;
  padding-left: 2.15rem;
  font-size: 1.02rem;
  line-height: 1.6;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(201 167 77 / 18%);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.1em + 6px);
  width: 12px;
  height: 12px;
  background: var(--gold-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* --------------------------------------------------------------- pathway */
/* Club cricket, KSCA, school cricket, trials… a plain list of routes, not a set
   of promises. Kept visually flat on purpose. */
.pathway {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  margin-top: 2rem;
}
.pathway li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.98rem;
  line-height: 1.45;
}
.section--navy .pathway li {
  background: rgb(255 255 255 / 5%);
  border-color: rgb(255 255 255 / 13%);
  color: #cfd0e4;
}
.pathway li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* --------------------------------------------------------------- evidence */
/* Impact used the same chip list as the competitive pathways section, so the two
   read as the same component saying different things. This one is an editorial
   divided list: quieter, and clearly a record rather than a set of options. */
.evidence {
  display: grid;
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .evidence { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); }
  /* the top border is drawn per row above, so the second column must not double it */
  .evidence li:nth-child(2) { border-top: 0; }
}
.evidence li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.03rem;
  line-height: 1.5;
  color: var(--ink);
}

/* --------------------------------------------------------------- programs */
.prog-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.prog {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0.45rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.prog:hover { border-color: var(--gold-600); background: #fff; box-shadow: var(--shadow-sm); }
.prog .tier {
  align-self: flex-start;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  color: var(--gold-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.prog .tier::before { content: ""; width: 0.4rem; height: 0.4rem; flex: none; border-radius: 50%; background: var(--gold); }
.prog h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.16; margin-bottom: 0.65rem; }
.prog p { font-size: 0.97rem; margin: 0; }
/* invitation-only squads should not read like an open enrolment */
.prog--elite { border-left-color: var(--navy-500); background: var(--surface-2); }
.prog--elite .tier { color: var(--navy-600); }
.prog--elite .tier::before { background: var(--navy-500); }
@media (min-width: 560px) {
  .prog { grid-column: span 6; }
  .prog:last-child { grid-column: 4 / span 6; }
}
@media (min-width: 980px) {
  .prog { grid-column: span 4; }
  .prog:last-child { grid-column: 5 / span 4; }
}

/* --------------------------------------------------------------- figures */
/* Evidence, stated plainly. Every number here is one KK can stand behind. */
/* Eight figures: two to a row on a phone, a 4 x 2 block from 900px up. auto-fit
   would leave a lone orphan on the second row at in-between widths. */
.figures {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: rgb(255 255 255 / 14%);
  border-block: 1px solid rgb(255 255 255 / 14%);
}
@media (min-width: 900px) {
  .figures { grid-template-columns: repeat(4, 1fr); }
}
.figures > div { padding: 1.35rem var(--gutter); background: rgb(8 9 31 / 55%); }
.figures .fig-n {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.figures .fig-l {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 74%);
}

/* --------------------------------------------------------------- media duo */
/* Two grounds, shown as two photographs rather than described in prose. */
.media-duo {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.media-duo figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  border: 1px solid var(--line);
}
/* on a navy section the plate would vanish into the background */
.section--navy .media-duo figure {
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 14%);
}
.media-duo { align-items: start; }
.media-duo img {
  width: 100%;
  height: auto;   /* each photograph at its own shape */
}
.media-duo figcaption {
  padding: 1rem 1.25rem;
  color: #fff;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- marquee */
/* The old site ran the school crests as a continuously looping carousel. The
   track holds two identical copies of the list and slides by exactly half its
   own width, so the seam never shows and no JS has to keep time. */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 0.5rem;
  /* fade the crests out at both edges rather than clipping them mid-logo */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee.marquee--impact {
  -webkit-mask-image: none;
  mask-image: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.marquee-item {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: clamp(190px, 24vw, 250px);
  margin-inline: clamp(0.4rem, 1vw, 0.75rem);
  padding: 1.6rem 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.marquee-item img {
  width: auto;
  max-width: 100%;
  height: 84px;
  object-fit: contain;     /* round crests and wide wordmarks both shown whole */
}
.marquee-item span {
  margin-top: auto;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* This used to switch the animation off entirely under prefers-reduced-motion,
   which meant the row simply sat still on any machine with Windows animations
   turned off — it read as broken, not as considerate. WCAG 2.2.2 asks for a way
   to *pause* moving content, not for it to be removed, so the row keeps moving
   and the control below stops it. Reduced motion just starts it slower. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
}

/* pause / play */
.marquee-wrap { position: relative; }
.marquee-wrap--fullbleed {
  width: 100vw;
  margin-left: calc((100% - 100vw) / 2);
}

/* --------------------------------------------------------- review marquee */
/* Same mechanism as the crest row, wider cards and slower, because this one is
   carrying sentences rather than logos. */
.marquee--reviews .marquee-track { animation-duration: 90s; }
@media (prefers-reduced-motion: reduce) {
  .marquee--reviews .marquee-track { animation-duration: 150s; }
}
.review-card {
  flex: none;
  display: flex;
  flex-direction: column;
  width: clamp(290px, 33vw, 430px);
  margin-inline: clamp(0.4rem, 1vw, 0.75rem);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  white-space: normal;
}
.review-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 26px;
  margin-bottom: 1rem;
  background: var(--gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M0 30V16C0 7.2 5.7 1.3 15.6 0l1.6 5.3C11.4 6.7 8.4 9.7 8.4 14H16v16H0zm24 0V16C24 7.2 29.7 1.3 39.6 0l1.6 5.3C35.4 6.7 32.4 9.7 32.4 14H40v16H24z'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M0 30V16C0 7.2 5.7 1.3 15.6 0l1.6 5.3C11.4 6.7 8.4 9.7 8.4 14H16v16H0zm24 0V16C24 7.2 29.7 1.3 39.6 0l1.6 5.3C35.4 6.7 32.4 9.7 32.4 14H40v16H24z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.review-card blockquote {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--body);
}
.review-card .who {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
.review-card .who img {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.review-card .q-name { display: block; font-weight: 700; color: var(--ink); font-size: 0.93rem; }
.review-card .q-rel { display: block; font-size: 0.8rem; color: var(--muted); }

/* --------------------------------------------------------------- masonry */
/* Gallery photographs are 4:3, 3:2, 4:5 and 1:1. Forcing them all into square
   tiles cut 25–33% off every one of them. Columns let each photo keep its own
   shape, so what is on screen is the whole picture. */
.masonry {
  column-count: 1;
  column-gap: clamp(0.85rem, 1.8vw, 1.25rem);
}
@media (min-width: 560px)  { .masonry { column-count: 2; } }
@media (min-width: 900px)  { .masonry { column-count: 3; } }
@media (min-width: 1220px) { .masonry { column-count: 4; } }

.masonry > * {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: clamp(0.85rem, 1.8vw, 1.25rem);
}
/* the tile's own aspect-ratio rules would re-crop what we just uncropped */
.masonry .tile img {
  aspect-ratio: auto;
  height: auto;
  object-fit: fill;
}

/* --------------------------------------------------------------- quiet band */
/* A soft divider for sections carrying only a line or two of copy. */
.band {
  padding-block: clamp(2.75rem, 5vw, 4rem);
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

/* --------------------------------------------------------------- print */
@media print {
  .site-header, .site-footer, .cta-band, .lightbox, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------- results */
.results-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-bottom: 1.5rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) { .results-summary { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.results-summary p {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.35;
}
.results-summary strong {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}
.results-line { max-width: 62ch; margin: 0 0 1.75rem; color: var(--ink); font-size: 1.05rem; }
.results { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.result {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "year level" "what what";
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 700px) {
  .result {
    grid-template-columns: 5.5rem 1fr auto;
    grid-template-areas: "year what level";
    gap: 1rem 1.5rem;
    padding: 1.1rem 1.5rem;
  }
}
.result-year { grid-area: year; font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--navy); }
.result-what { grid-area: what; display: flex; flex-direction: column; gap: 0.1rem; color: var(--muted); font-size: 0.92rem; }
.result-what strong { color: var(--ink); font-size: 1.05rem; }
.result-level {
  grid-area: level;
  justify-self: end;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.result--w { border-left-color: var(--gold); }
.result--w .result-level { background: var(--gold); color: var(--navy-800); }
.result--ru { border-left-color: var(--navy-500); }
.result--ru .result-level { background: var(--navy); color: #fff; }
.result--sf { border-left-color: var(--gold-600); }
.top-four { max-width: 62ch; margin: 1.5rem auto 0; text-align: center; color: var(--ink); font-size: 1.05rem; }

/* KSCA U16 record: one quiet stats band, rather than a stack of cards */
.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 0;
  margin: 0 0 1.75rem;
  border-block: 1px solid var(--line);
}
.record-item {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: 1.25rem clamp(0.5rem, 1.5vw, 1.25rem);
}
.record-num { font-family: var(--display); font-size: clamp(3rem, 5vw, 4.25rem); font-weight: 700; line-height: 0.9; color: var(--gold-text); }
.record-what { display: flex; flex-direction: column; gap: 0.1rem; color: var(--muted); font-size: 0.92rem; }
.record-what strong { color: var(--ink); font-size: 1.05rem; }
.record-arrow { display: none; }
.record-item--trio { justify-content: space-around; gap: 0; border-left: 1px solid var(--line); }
.record-trio { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; padding-inline: clamp(0.5rem, 1.5vw, 1.25rem); }
.record-trio b { font-family: var(--display); font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 700; line-height: 1; color: var(--navy); }
.record-trio span { color: var(--muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* achievement banners: three to a row, an odd last row stays centred */
.ach-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.ach-grid > .tile { flex: 1 1 100%; margin: 0; }
@media (min-width: 640px) { .ach-grid > .tile { flex: 0 1 calc((100% - 1rem) / 2); } }
@media (min-width: 980px) { .ach-grid > .tile { flex: 0 1 calc((100% - 2rem) / 3); } }
@media (max-width: 480px) {
  .record { grid-template-columns: 1fr; }
  .record-item { justify-content: center; }
  .record-item--trio { justify-content: space-between; border-left: 0; border-top: 1px solid var(--line); }
  .record-trio { padding-inline: 0.4rem; }
}

/* tribute: About page */
.tribute-card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .tribute-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.tribute-portrait img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.tribute-text h2 { margin-bottom: 1.25rem; }
.tribute-text p:not(.eyebrow) { margin: 0 0 1rem; color: var(--body); font-size: 1.05rem; line-height: 1.75; }
.tribute-text .tribute-sign { margin: 1.5rem 0 0; color: var(--ink); font-weight: 600; }
.tribute-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.5rem, 2vw, 1rem); margin-top: clamp(0.75rem, 2vw, 1rem); }
.tribute-photos .tile { margin: 0; }

/* facilities: fact chips, booking cards, event photos */
.fact-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.fact-chips li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}
.fact-chips--dark li { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 22%); color: #fff; }
.book-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
.book-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.book-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.book-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.book-card-body h3 { margin: 0.25rem 0 0.6rem; font-size: 1.45rem; }
.book-card-body p { margin: 0; color: var(--body); }
.book-card-body .eyebrow { margin: 0; }
.book-card-body .book-card-meta { margin-top: auto; padding-top: 1rem; color: var(--ink); font-size: 0.88rem; font-weight: 600; }
.events-duo { display: grid; gap: 1rem; }
.events-duo img { width: 100%; height: auto; border-radius: var(--radius-lg); }
@media (min-width: 900px) {
  .events-duo img:last-child { position: relative; width: 78%; margin: -4rem 0 0 auto; border: 6px solid var(--surface); }
}

/* schools: sport cards */
.sport-card { border-top: 3px solid var(--gold); }
.sport-meta { margin: 0 0 0.5rem; color: var(--gold-600); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* --------------------------------------------------------------- motion polish
   Everything here sits inside prefers-reduced-motion: no-preference, so people who
   ask for less motion get none of it. */
@media (prefers-reduced-motion: no-preference) {
  /* cards, stats and tiles arrive one after another instead of all at once */
  .grid > .reveal:nth-child(2), .stat-band > div:nth-child(2), .partner-grid > .reveal:nth-child(2), .ach-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
  .grid > .reveal:nth-child(3), .stat-band > div:nth-child(3), .partner-grid > .reveal:nth-child(3), .ach-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
  .grid > .reveal:nth-child(4), .stat-band > div:nth-child(4), .partner-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
  .grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
  .grid > .reveal:nth-child(6) { transition-delay: 0.4s; }

  /* feature photos ease in with a slow settle */
  .split-media.reveal img { transform: scale(1.07); transition: transform 1.4s var(--ease); }
  .split-media.reveal.is-in img { transform: scale(1); }

  /* the gold dash before every eyebrow draws itself */
  .reveal .eyebrow::before, .reveal.eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease) 0.25s; }
  .reveal.is-in .eyebrow::before, .reveal.is-in.eyebrow::before { transform: scaleX(1); }

  /* hero photo drifts in slowly so the first screen is alive */
  @keyframes hero-drift { from { transform: scale(1.09); } to { transform: scale(1); } }
  .hero-media img, .page-banner > img { animation: hero-drift 14s var(--ease) both; }

  .btn { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .stat-band > div { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background-color 0.3s; }
  .stat-band > div:hover { background: var(--surface-2); }
}

/* --------------------------------------------------------------- loading screen
   Shown once per browser session, only if JS has switched it on (html.is-loading),
   and it can never trap the page: the fallback animation removes it after 3.2 s. */
.page-loader { display: none; }
html.is-loading .page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.6rem;
  background: var(--navy-900);
  animation: loader-failsafe 0.5s ease 3.2s forwards;
}
html.is-loading.is-loaded .page-loader { opacity: 0; visibility: hidden; transition: opacity 0.55s ease, visibility 0s linear 0.55s; }
.page-loader img { width: 96px; height: 96px; animation: loader-pulse 1.5s ease-in-out infinite; }
.page-loader-bar { position: relative; width: 150px; height: 3px; overflow: hidden; border-radius: 3px; background: rgb(255 255 255 / 16%); }
.page-loader-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  border-radius: 3px;
  background: var(--gold);
  animation: loader-sweep 1.1s ease-in-out infinite;
}
@keyframes loader-pulse { 0%, 100% { transform: scale(0.94); opacity: 0.85; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes loader-sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html.is-loading .page-loader { display: none; } }

/* facilities: photo row under the booking cards */
.photo-row { display: grid; gap: 1rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
@media (min-width: 640px) { .photo-row { grid-template-columns: repeat(3, 1fr); } }
.photo-row figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.photo-row img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
