/* =========================================================
   CMA Mental Arithmetic India — site styles
   Blue + white base, colourful educational accents.
   ========================================================= */

:root {
  /* Brand */
  --cma: #1c4280;
  --cma-600: #24539f;
  --cma-500: #2e6bd0;
  --cma-ink: #13264a;
  --sky-50: #f5f9ff;
  --sky-100: #eaf2fd;
  --sky-200: #d7e6fa;
  --grey-50: #f6f7f9;
  --grey-100: #edf0f4;
  --grey-300: #cdd5e0;
  --text: #1b2b48;
  --muted: #56657f;
  --white: #fff;

  /* Educational accents (used sparingly) */
  --yellow: #ffc531;
  --yellow-50: #fff6db;
  --orange: #ff8a3d;
  --orange-50: #ffeedf;
  --red: #eb4a44;
  --red-50: #fde8e7;
  --green: #22b573;
  --green-50: #e2f6ec;
  --lblue: #38a9ee;
  --lblue-50: #e3f3fd;
  --purple: #8467e8;
  --purple-50: #eeeafd;

  --wa: #25d366;
  --wa-dark: #128c4a;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(19, 38, 74, .06), 0 2px 8px rgba(19, 38, 74, .05);
  --shadow: 0 4px 10px rgba(19, 38, 74, .05), 0 14px 32px rgba(19, 38, 74, .08);
  --shadow-lg: 0 10px 24px rgba(19, 38, 74, .08), 0 28px 60px rgba(19, 38, 74, .12);

  --font-head: "Saura", "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Saura", "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 88px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--cma-500); text-decoration: none; }
a:hover { color: var(--cma); }
p { margin: 0 0 1rem; text-wrap: pretty; }
*, *::before, *::after { hyphens: manual; }
ul, ol { margin: 0; padding: 0; }
.nw { white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--cma-ink);
  line-height: 1.15;
  margin: 0 0 .6rem;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.18rem + 1.15vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem); }
h4 { font-size: 1.1rem; }

.icon { width: 1.2em; height: 1.2em; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--cma); color: #fff; padding: .6rem 1rem; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--cma);
  --btn-fg: #fff;
  --btn-bd: var(--cma);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(28, 66, 128, .18); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.25em; height: 1.25em; }
.btn--primary:hover { --btn-bg: var(--cma-600); --btn-bd: var(--cma-600); }
.btn--wa { --btn-bg: var(--wa); --btn-bd: var(--wa); --btn-fg: #fff; }
.btn--wa:hover { --btn-bg: #1fbe5b; --btn-bd: #1fbe5b; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--cma); --btn-bd: var(--sky-200); }
.btn--ghost:hover { --btn-bd: var(--cma); }
.btn--yellow { --btn-bg: var(--yellow); --btn-bd: var(--yellow); --btn-fg: var(--cma-ink); }
.btn--yellow:hover { --btn-bg: #ffbb12; --btn-bd: #ffbb12; box-shadow: 0 8px 20px rgba(255, 197, 49, .35); }
.btn--white { --btn-bg: #fff; --btn-bd: #fff; --btn-fg: var(--cma); }
.btn--outline-light { --btn-bg: transparent; --btn-bd: rgba(255, 255, 255, .55); --btn-fg: #fff; }
.btn--outline-light:hover { --btn-bd: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 700; color: var(--cma-500);
}
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--cma);
  color: #dbe7fb;
  font-size: .875rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.topbar a:hover { color: var(--yellow); }
.topbar__group { display: flex; align-items: center; gap: 1.25rem; }
.topbar .icon { width: 1rem; height: 1rem; }
.topbar__since { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__since b { color: var(--yellow); }

/* ---------- Header ---------- */
/* The header floats over the top of every page hero, so nav and hero read as one composition. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  margin-bottom: calc(var(--header-h) * -1);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: rgba(255, 255, 255, .7);
  box-shadow: 0 8px 30px rgba(28, 66, 128, .08);
}
.nav { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; padding: 6px 0; }
.brand img { height: 72px; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: 2px; margin: 0 auto; list-style: none;
  padding: 5px;
}
.nav__links a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .62rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .88rem;
  color: var(--cma-ink);
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.nav__links a:hover { background: rgba(28, 66, 128, .08); color: var(--cma); }
.nav__links a[aria-current="page"] {
  background: var(--cma);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(28, 66, 128, .25);
}
.nav__links a[aria-current="page"]:hover { background: var(--cma-600); color: #fff; }
.nav__links .icon { width: 1.05em; height: 1.05em; }
.nav__cta { display: flex; align-items: center; gap: .5rem; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .6); color: var(--cma);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .2s ease, transform .2s ease;
}
.icon-btn:hover { border-color: var(--cma); color: var(--cma); transform: translateY(-2px); }
.icon-btn .icon { width: 1.25rem; height: 1.25rem; }
.icon-btn--ig { transition: border-color .2s ease, transform .2s ease, color .2s ease, background .25s ease; }
.icon-btn--ig:hover {
  color: #fff; border-color: transparent;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.nav__ig-mobile { display: none; }
.nav__links .nav__ig .icon { color: #d6249f; }
.nav__links .nav__ig:hover { color: #b0127f; }
.ig-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 44px; padding: 0 .95rem 0 .8rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--cma-ink); font-weight: 600; font-size: .88rem;
}
.ig-pill .icon { width: 1.1rem; height: 1.1rem; color: #d6249f; }
.ig-pill:hover { color: var(--cma); }
.ig-pill.nav__ig-mobile { display: none; }
.icon-btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.icon-btn--wa:hover { color: #fff; border-color: var(--wa); }

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center; gap: .5rem;
  height: 46px; padding: 0 1rem 0 .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--cma);
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle .icon { width: 1.35rem; height: 1.35rem; }

/* Mobile menu panel */
.mobile-menu { display: none; }

.nav__cta .btn--wa-text { display: none; }
.hdr-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 42px; padding: 0 .9rem 0 .75rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--cma-ink); font-weight: 600; font-size: .86rem; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(28, 66, 128, .06);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.hdr-pill .icon { width: 1.05rem; height: 1.05rem; color: var(--cma-500); }
.hdr-pill:hover { color: var(--cma); border-color: var(--sky-200); background: #fff; transform: translateY(-1px); }
.hdr-pill--ig .icon { color: #d6249f; }
.hdr-pill--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.hdr-pill--wa .icon { color: #fff; }
.hdr-pill--wa:hover { background: #1fbe5b; border-color: #1fbe5b; color: #fff; }
.nav__cta { gap: .45rem; }
.nav { gap: .75rem; }
@media (max-width: 1279px) {
  :root { --header-h: 76px; }
  .brand img { height: 60px; }
  .nav__links, .nav__cta { display: none; }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .ig-pill.nav__ig-mobile { display: inline-flex; margin-left: auto; }

  .mobile-menu {
    display: block;
    position: fixed; inset: 0; z-index: 200;
    visibility: hidden;
    pointer-events: none;
  }
  .mobile-menu.is-open { visibility: visible; pointer-events: auto; }
  .mobile-menu__backdrop {
    position: absolute; inset: 0;
    background: rgba(19, 38, 74, .45);
    opacity: 0; transition: opacity .25s ease;
  }
  .mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
  .mobile-menu__panel {
    position: absolute; top: 0; right: 0;
    width: min(400px, 100%); height: 100%;
    background: #fff;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-menu.is-open .mobile-menu__panel { transform: none; }
  .mobile-menu__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px var(--gutter);
    border-bottom: 1px solid var(--grey-100);
  }
  .mobile-menu__head img { height: 56px; width: auto; }
  .mobile-menu__close {
    width: 46px; height: 46px; border-radius: 999px;
    border: 2px solid var(--sky-200); background: #fff; color: var(--cma);
    display: grid; place-items: center; cursor: pointer;
  }
  .mobile-menu__nav { list-style: none; padding: 14px var(--gutter); display: grid; gap: 4px; }
  .mobile-menu__nav a {
    display: flex; align-items: center; gap: .85rem;
    padding: .8rem 1rem;
    border-radius: 14px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.08rem;
  }
  .mobile-menu__nav a:hover { background: var(--sky-50); }
  .mobile-menu__nav a[aria-current="page"] {
    background: var(--sky-100); color: var(--cma); font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--sky-200);
  }
  .mobile-menu__nav .dot {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; flex: none;
  }
  .mobile-menu__nav .dot .icon { width: 1.1rem; height: 1.1rem; }
  .mobile-menu__cta { padding: 6px var(--gutter) 18px; display: grid; gap: .6rem; }
  .mobile-menu__contact {
    margin-top: auto;
    padding: 16px var(--gutter) 24px;
    background: var(--sky-50);
    font-size: .95rem;
    display: grid; gap: .4rem;
  }
  .mobile-menu__contact a { color: var(--cma); font-weight: 700; display: inline-flex; gap: .5rem; align-items: center; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 767px) {
  .topbar { display: none; }
}
@media (max-width: 380px) {
  .brand img { height: 54px; }
  .menu-toggle span { display: none; }
  .menu-toggle { padding: 0; width: 46px; justify-content: center; }
}

/* ---------- Sections & headings ---------- */
.section { padding: clamp(64px, 8.5vw, 120px) 0; }
.section--sky { background: var(--sky-50); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 4.5vw, 56px); text-align: center; }
.section-head h2 { margin-bottom: .8rem; }
/* Asymmetric heading: title left, supporting copy right */
.split-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(16px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.split-head h2 { margin: 0; max-width: 15em; }
.split-head > p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 26rem; justify-self: end; }
@media (max-width: 767px) {
  .split-head { grid-template-columns: minmax(0, 1fr); }
  .split-head > p { justify-self: start; }
}
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: .98rem; margin: 0 auto; max-width: 34rem; }
.lead { font-size: clamp(.98rem, .94rem + .2vw, 1.08rem); color: var(--muted); max-width: 34rem; }

/* Section labels are quiet typography, not pills. */
.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  color: var(--cma-500);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  margin: 0 0 .8rem;
}
.section-head .eyebrow { justify-content: center; }
.eyebrow .chip-ic { display: none; }
.eyebrow--light { color: #a9c6f5; }

/* Abacus "bead rod" — the site's signature divider */
.bead-rod {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 14px; padding: 0 14px;
  margin: .2rem 0 1rem;
}
.bead-rod::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--sky-200);
}
.bead-rod i {
  position: relative;
  width: 18px; height: 12px; border-radius: 50%;
  background: var(--c, var(--cma));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.bead-rod i:nth-child(1) { --c: var(--red); }
.bead-rod i:nth-child(2) { --c: var(--orange); }
.bead-rod i:nth-child(3) { --c: var(--yellow); }
.bead-rod i:nth-child(4) { --c: var(--green); }
.bead-rod i:nth-child(5) { --c: var(--lblue); margin-left: 22px; }
.section-head .bead-rod { margin-inline: auto; }
.bead-rod--light::before { background: rgba(255, 255, 255, .3); }
/* The bead rod is a signature, used sparingly (CTA only) rather than under every heading. */
.bead-rod { display: none; }

/* Typographic emphasis — colour and weight, never a block behind the word. */
.hl, .accent {
  font-style: normal;
  font-weight: 700;
  color: var(--cma-500);
  background: none;
}
.text-blue { color: var(--cma-500); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  padding: clamp(20px, 2.5vw, 28px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.ic-tile {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--tile-bg, var(--sky-100));
  color: var(--tile-fg, var(--cma));
  margin-bottom: 1rem;
  transition: transform .3s ease;
}
.ic-tile .icon { width: 28px; height: 28px; }
.card--hover:hover .ic-tile { transform: rotate(-6deg) scale(1.05); }
.t-yellow { --tile-bg: var(--yellow-50); --tile-fg: #c98a00; --accent: var(--yellow); }
.t-orange { --tile-bg: var(--orange-50); --tile-fg: #e0661a; --accent: var(--orange); }
.t-red { --tile-bg: var(--red-50); --tile-fg: var(--red); --accent: var(--red); }
.t-green { --tile-bg: var(--green-50); --tile-fg: #13935a; --accent: var(--green); }
.t-lblue { --tile-bg: var(--lblue-50); --tile-fg: #1b86c9; --accent: var(--lblue); }
.t-purple { --tile-bg: var(--purple-50); --tile-fg: var(--purple); --accent: var(--purple); }
.t-blue { --tile-bg: var(--sky-100); --tile-fg: var(--cma); --accent: var(--cma-500); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.checklist { list-style: none; display: grid; gap: .6rem; margin: 0 0 1.4rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .tick {
  flex: none; width: 24px; height: 24px; margin-top: .12rem; border-radius: 999px;
  display: grid; place-items: center; background: var(--green-50); color: #13935a;
}
.checklist .tick .icon { width: 14px; height: 14px; }

/* ---------- Photo frames ---------- */
.photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sky-100);
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--framed { border-radius: 32px; box-shadow: 0 30px 70px rgba(28, 66, 128, .16); }
.photo-caption {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: .5rem;
  width: fit-content; max-width: calc(100% - 32px);
  padding: .5rem .95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .8);
  color: var(--cma-ink);
  font-weight: 700; font-size: .88rem; line-height: 1.3;
}
.photo-caption .icon { width: 1rem; height: 1rem; color: var(--cma-500); }

.sticker {
  position: absolute;
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .7rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  font-weight: 700; color: var(--cma-ink); line-height: 1.2; font-size: .95rem;
}
.sticker small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.sticker .ic-tile { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.sticker .ic-tile .icon { width: 22px; height: 22px; }

/* ---------- Home hero: photos fill the whole landing area ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, 92vh, 880px);
  display: flex; align-items: center;
  background: var(--sky-100);
  border-radius: 0 0 clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px);
  padding: calc(var(--header-h) + 60px) 0 72px;
}
.hero > .container { position: static; width: 100%; }
.hero__grid { display: block; }
.hero__copy { position: relative; z-index: 2; max-width: 540px; }
.hero h1 {
  font-size: clamp(2.05rem, 1.25rem + 2.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: .9rem;
}
.hero__tagline { font-weight: 600; color: var(--cma-500); font-size: clamp(.95rem, .9rem + .25vw, 1.08rem); margin: 0 0 .7rem; }
.hero__desc { color: var(--text); font-size: clamp(1rem, .96rem + .2vw, 1.1rem); max-width: 27rem; margin: 0 0 2rem; }
.btn--lg { min-height: 56px; padding: .85rem 1.6rem; font-size: 1.05rem; }

/* full-bleed photo layer with a soft light veil on the text side */
.hero__media {
  position: absolute; z-index: 0; margin: 0;
  top: var(--header-h); right: 0; bottom: 0; left: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 2%, #000 93%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 2%, #000 93%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-composite: intersect;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 249, 255, .95) 0%, rgba(245, 249, 255, .86) 27%, rgba(245, 249, 255, .4) 42%, rgba(245, 249, 255, 0) 56%);
}
.slideshow { position: absolute; inset: 0; height: auto; border-radius: 0; box-shadow: none; background: var(--sky-200); overflow: hidden; }
.slideshow img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow img.is-active { opacity: 1; }
/* Low-resolution photo: kept at its real size on the right, feathered into the background */
.slideshow img.is-native { inset: auto; right: 4%; top: 50%; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 96%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 96%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect; }
@media (max-width: 899px) { .slideshow img.is-native { right: 50%; transform: translate(50%, -50%); } }
/* Book a Free Demo buttons: a gentle glow and an occasional shine to draw the eye */
.btn[href$="#demo"] { --glow: 46, 107, 208; position: relative; overflow: hidden; isolation: isolate; animation: demoGlow 2.8s ease-in-out infinite; }
.btn--yellow[href$="#demo"] { --glow: 255, 176, 0; }
.btn[href$="#demo"]::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); animation: demoShine 4.2s ease-in-out infinite; pointer-events: none;
}
@keyframes demoGlow {
  0%, 100% { box-shadow: 0 8px 20px rgba(var(--glow), .22), 0 0 0 0 rgba(var(--glow), .35); }
  50% { box-shadow: 0 10px 26px rgba(var(--glow), .32), 0 0 0 7px rgba(var(--glow), 0); }
}
@keyframes demoShine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn[href$="#demo"], .btn[href$="#demo"]::after { animation: none; } }

/* portrait-ish photo with faces on the left: sit it on the right so the headline doesn't cover them */
@media (min-width: 900px) {
  .slideshow img.slide--right { left: auto; width: 70%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%); mask-image: linear-gradient(90deg, transparent 0%, #000 12%); }
}
.slideshow__bars { display: none !important; position: absolute; z-index: 2; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); bottom: 13%; left: auto; top: auto; display: flex; gap: 6px; }
.slideshow__bars button { position: relative; width: 30px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.slideshow__bars button::before, .slideshow__bars i { content: ""; position: absolute; left: 0; top: 10px; height: 4px; border-radius: 4px; }
.slideshow__bars button::before { right: 0; background: rgba(255, 255, 255, .55); }
.slideshow__bars i { width: 0; background: #fff; }
.slideshow__bars button.is-done i { width: 100%; }
.slideshow__bars button.is-active i { animation: barFill var(--slide-ms, 3500ms) linear forwards; }
@keyframes barFill { to { width: 100%; } }

@media (max-width: 899px) {
  .hero { align-items: flex-end; min-height: clamp(560px, 88svh, 760px); padding-bottom: 56px; }
  .hero__media::after {
    background:
      linear-gradient(0deg, rgba(245, 249, 255, .98) 0%, rgba(245, 249, 255, .94) 52%, rgba(245, 249, 255, .55) 66%, rgba(245, 249, 255, 0) 80%);
  }
  .slideshow__bars { right: 50%; transform: translateX(50%); bottom: 18px; }
  /* phones: photo band under the nav, text below it (not on top of faces) */
  .hero { align-items: flex-start; min-height: 0; padding-top: calc(var(--header-h) + 12px + clamp(240px, 62vw, 380px) + 18px); }
  .hero__media { top: calc(var(--header-h) + 12px); bottom: auto; height: clamp(240px, 62vw, 380px); }
  .hero__media::after { display: none; }
  .hero__media { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 2%, #000 94%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 2%, #000 94%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%); }
}
@media (max-width: 479px) {
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Stats: floating glass panel ---------- */
.stats { position: relative; z-index: 3; margin-top: clamp(24px, 3vw, 40px); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, .64);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(28, 66, 128, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
  padding: clamp(20px, 2.6vw, 32px) clamp(8px, 1.5vw, 16px);
}
.stat { position: relative; padding: 4px clamp(14px, 2.4vw, 32px); }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px;
  background: linear-gradient(transparent, rgba(28, 66, 128, .16), transparent);
}
.stat__num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.7rem); line-height: 1.1;
  color: var(--cma-ink);
  display: flex; align-items: flex-end;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  transform-origin: left 70%;
}
.stat__label { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 700; font-size: .95rem; line-height: 1.3; margin-top: .3rem; }
.stat__label::before { content: ""; width: 11px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* Odometer digits */
.odo { display: inline-block; height: 1.1em; overflow: hidden; line-height: 1.1; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.odo__strip { display: flex; flex-direction: column; will-change: transform; }
.odo__strip span { display: block; height: 1.1em; text-align: center; }
.stat__num.is-go .odo__strip {
  transform: translateY(calc(var(--stop) * -1.1em));
  transition: transform 4.6s cubic-bezier(.2, .55, .12, 1) var(--delay, 0ms);
}
.stat__num.is-locked { animation: lockIn .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes lockIn { 0% { transform: scale(1); } 45% { transform: scale(1.07); color: var(--cma-500); } 100% { transform: scale(1); } }

@media (max-width: 899px) {
  .stats { margin-top: 24px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 380px) {
  .stat { padding-inline: 10px; }
  .stat__label { font-size: .85rem; }
}

/* ---------- Split layout ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.split--rev > :first-child { order: 2; }
@media (max-width: 899px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--rev > :first-child { order: 0; }
}
.split .photo { aspect-ratio: 4 / 3; }
.split--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split--wide.split--rev { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 899px) { .split--wide, .split--wide.split--rev { grid-template-columns: minmax(0, 1fr); } }
.split .photo--tall { aspect-ratio: 5 / 4.2; border-radius: 32px; }
.split .photo--portrait { aspect-ratio: 4 / 4.4; max-width: 520px; margin-inline: auto; }

/* ---------- Programs: deep-blue, image-led section with glass tiles ---------- */
.programs-feature {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--cma-ink);
  border-radius: clamp(28px, 5vw, 56px);
  margin-inline: clamp(0px, 1.4vw, 20px);
}
.programs-feature__bg { position: absolute; inset: 0; z-index: -1; }
.programs-feature__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.6) blur(3px); transform: scale(1.06); }
.programs-feature__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19, 38, 74, .78) 0%, rgba(28, 66, 128, .8) 50%, rgba(19, 38, 74, .95) 100%);
}
.programs-feature h2 { color: #fff; }
.programs-feature .split-head > p { color: #c3d2ec; }
.glass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); padding-top: 44px; }
.glass-tile {
  position: relative; display: flex; flex-direction: column;
  padding: 0 clamp(20px, 2.4vw, 28px) 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 24px 50px rgba(5, 15, 35, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
  color: #c3d2ec;
  transition: transform .35s ease, background-color .35s ease, border-color .35s ease;
}
.glass-tile:hover { transform: translateY(-6px); background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .08)); border-color: rgba(255, 255, 255, .28); color: #c3d2ec; }
.glass-tile__art {
  display: grid; place-items: center;
  margin: -44px 0 24px;
  aspect-ratio: 16 / 11;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .92) 0%, rgba(236, 243, 253, .78) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 18px 40px rgba(5, 15, 35, .26), inset 0 1px 0 #fff;
  transition: transform .35s ease;
}
.glass-tile:hover .glass-tile__art { transform: translateY(-4px); }
.glass-tile__art img { width: 64%; height: 82%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(19, 38, 74, .18)); }
.glass-tile h3 { color: #fff; margin-bottom: .45rem; }
.glass-tile p { color: #bccbe6; }
.glass-tile .link-arrow { margin-top: auto; color: #fff; }
.glass-tile .link-arrow .icon { color: var(--yellow); }
@media (max-width: 1023px) {
  .glass-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .glass-grid::-webkit-scrollbar { display: none; }
  .glass-tile { flex: 0 0 min(44%, 360px); scroll-snap-align: start; }
}
@media (max-width: 767px) { .glass-tile { flex-basis: 84%; } }

/* ---------- Why CMA: open, typographic list (no cards) ---------- */
.why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.why__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.why__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 48px); }
.why__list li { position: relative; padding-top: 22px; border-top: 1px solid var(--grey-100); }
.why__list li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--accent); }
.why__word {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem); line-height: 1.1; letter-spacing: -.015em;
  color: var(--cma-ink); margin-bottom: .5rem;
}
.why__list p { color: var(--muted); margin: 0; max-width: 22rem; }
@media (max-width: 899px) {
  .why { grid-template-columns: minmax(0, 1fr); }
  .why__intro { position: static; }
}
@media (max-width: 479px) { .why__list { grid-template-columns: minmax(0, 1fr); } }

.inline-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0 0 1.8rem; font-weight: 700; color: var(--cma-ink); }
.inline-list li { display: flex; align-items: center; gap: .55rem; }
.inline-list li::before { content: ""; width: 10px; height: 7px; border-radius: 50%; background: var(--cma-500); }

/* ---------- Benefit tiles ---------- */
.benefit { position: relative; overflow: hidden; }
.benefit::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: var(--accent); opacity: .9;
}
.benefit h3 { margin-bottom: .35rem; }

/* ---------- Practice & Play (game) ---------- */
.play-section { background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%); }
.play-section__grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
@media (max-width: 959px) { .play-section__grid { grid-template-columns: minmax(0, 1fr); } }
/* soft colour light behind the glass so the surface reads as glass */
.play-host { position: relative; isolation: isolate; }
.play-host::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 6%;
  background:
    radial-gradient(closest-side at 25% 35%, rgba(255, 197, 49, .28), transparent),
    radial-gradient(closest-side at 75% 65%, rgba(56, 169, 238, .28), transparent);
  filter: blur(34px);
}

.play {
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(28, 66, 128, .14), inset 0 1px 0 #fff;
  padding: clamp(12px, 2vw, 22px);
  max-width: 640px; width: 100%; margin-inline: auto;
}
.play--wide {
  max-width: 1060px;
  display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px;
}
.play__main { min-width: 0; }

/* Mode picker: segmented on the compact game, a side rail on the wide one */
.play__modes { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin-bottom: 12px; border-radius: 18px; background: rgba(28, 66, 128, .06); }
.play__mode {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px; padding: .35rem .6rem;
  border: 0; border-radius: 14px; background: transparent; color: var(--muted);
  font-weight: 600; font-size: .84rem; cursor: pointer; white-space: nowrap; text-align: left;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.play__mode-ic { display: inline-grid; place-items: center; color: var(--tile-fg); }
.play__mode-ic .icon { width: 1.05rem; height: 1.05rem; }
.play__mode-txt small, .play__mode-best { display: none; }
.play__mode:hover { color: var(--cma-ink); }
.play__mode[aria-pressed="true"] { background: #fff; color: var(--cma-ink); box-shadow: 0 4px 14px rgba(28, 66, 128, .1); }
@media (max-width: 479px) { .play__mode { flex-basis: calc(50% - 4px); } }

.play__side { min-width: 0; }
.play--wide .play__modes { flex-direction: column; flex-wrap: nowrap; background: none; padding: 0; gap: 8px; margin: 0; }
.play__side-title { margin: 6px 6px 4px; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.play--wide .play__mode {
  flex: none; justify-content: flex-start; gap: .8rem;
  min-height: 0; padding: 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(28, 66, 128, .07);
  color: var(--cma-ink);
}
.play--wide .play__mode:hover { background: rgba(255, 255, 255, .9); }
.play--wide .play__mode[aria-pressed="true"] { background: #fff; border-color: rgba(46, 107, 208, .35); box-shadow: 0 10px 24px rgba(28, 66, 128, .1); }
.play--wide .play__mode-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--tile-bg); flex: none; }
.play--wide .play__mode-ic .icon { width: 20px; height: 20px; }
.play--wide .play__mode-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.play--wide .play__mode-txt b { font-weight: 600; font-size: .9rem; }
.play--wide .play__mode-txt small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
.play--wide .play__mode-best { display: block; margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--cma-500); white-space: nowrap; }
@media (max-width: 899px) {
  .play--wide { grid-template-columns: minmax(0, 1fr); }
  .play--wide .play__modes { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .play--wide .play__modes::-webkit-scrollbar { display: none; }
  .play--wide .play__mode { flex: 0 0 auto; }
  .play__side-title { display: none; }
}

/* HUD */
.play__hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.play__hud-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.play__title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--cma-ink); }
.play:not(.play--wide) .play__title { display: none; }
.play__levels { display: inline-flex; background: rgba(28, 66, 128, .06); border-radius: 999px; padding: 3px; gap: 2px; }
.play__levels button {
  border: 0; background: transparent; border-radius: 999px; padding: .25rem .75rem;
  font-weight: 600; font-size: .8rem; color: var(--muted); cursor: pointer; min-height: 32px;
  transition: background-color .2s ease, color .2s ease;
}
.play__levels button[aria-pressed="true"] { background: #fff; color: var(--cma); box-shadow: 0 2px 8px rgba(28, 66, 128, .1); }
.play__levels button:disabled { cursor: default; }
.play__levels button:disabled:not([aria-pressed="true"]) { opacity: .5; }
.play__score { display: flex; gap: 6px; font-weight: 600; font-size: .86rem; }
.play__chip { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: 999px; background: #fff; color: var(--cma-ink); box-shadow: 0 2px 8px rgba(28, 66, 128, .08); font-variant-numeric: tabular-nums; }
.play__chip[hidden] { display: none; }
.play__chip .icon { width: .95rem; height: .95rem; }
.play__chip--star .icon { color: #e0a800; }
.play__chip--fire .icon { color: var(--orange); }
.play__chip--time .icon { color: var(--cma-500); }
.play__chip--time.is-low { color: #c2362f; }
.play__chip.bump { animation: bump .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 50% { transform: scale(1.18); } }

.play__progress { height: 5px; border-radius: 5px; background: rgba(28, 66, 128, .08); overflow: hidden; margin-bottom: 12px; }
.play__progress i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--cma-500), #5aa2f5); transition: width .45s ease; }

/* Board */
.play__board {
  position: relative; overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, #fff 0%, #f0f5fe 100%);
  border: 1px solid rgba(28, 66, 128, .08);
  box-shadow: inset 0 1px 0 #fff;
  min-height: 250px;
  display: grid; place-items: center;
  padding: 26px 14px 20px;
  text-align: center;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.play__board.is-good { border-color: rgba(34, 181, 115, .55); box-shadow: inset 0 0 0 3px rgba(34, 181, 115, .12); }
.play__board.is-bad { border-color: rgba(235, 74, 68, .45); box-shadow: inset 0 0 0 3px rgba(235, 74, 68, .08); }
.play__stage { position: relative; z-index: 1; width: 100%; }

/* Board illustrations: a happy learner by default, a puzzled one after a miss */
.play__main { container-type: inline-size; }
.play__art { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 46%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.play__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 60%;
  transition: opacity .45s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.play__art img { opacity: 0; transform: translateY(10px) scale(.97); }
.play__art img.is-on { opacity: 1; transform: none; }
.play__art img.is-cutout { object-fit: contain; object-position: 60% 100%; padding: 14px 10px 0; mix-blend-mode: multiply; }
.play__board.is-good .play__art img.is-on { animation: artHop .55s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes artHop { 40% { transform: translateY(-8px) scale(1.03); } }
@container (min-width: 520px) {
  .play__board { padding-right: 44%; }
  .play__toast { left: 28%; }
}
@container (max-width: 519px) {
  .play__art { width: 100%; opacity: .22; -webkit-mask-image: none; mask-image: none; }
}
.play__toast {
  position: absolute; left: 50%; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem .35rem .45rem; border-radius: 999px;
  font-weight: 600; font-size: .85rem;
  opacity: 0; transform: translate(-50%, -8px) scale(.96);
  transition: opacity .25s ease, transform .3s cubic-bezier(.3, 1.4, .5, 1);
  pointer-events: none;
}
.play__toast .icon { width: 20px; height: 20px; padding: 4px; border-radius: 999px; color: #fff; }
.play__toast.is-good { background: var(--green-50); color: #0f7a4a; }
.play__toast.is-good .icon { background: var(--green); }
.play__toast.is-bad { background: var(--red-50); color: #b52b26; }
.play__toast.is-bad .icon { background: var(--red); }
.play__toast.is-show { opacity: 1; transform: translate(-50%, 0) scale(1); }

.play__q {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .35em;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  color: var(--cma-ink); line-height: 1.1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  animation: qIn .35s ease;
}
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.play__q .op { color: #9fb3d6; font-weight: 500; }
.play__q .word { font-size: .6em; color: var(--muted); }
.play__q .ask {
  display: inline-grid; place-items: center; min-width: 1.35em; padding: 0 .15em;
  border-radius: 14px; background: rgba(46, 107, 208, .1); color: var(--cma-500);
  animation: askPulse 1.8s ease-in-out infinite;
}
@keyframes askPulse { 50% { background: rgba(46, 107, 208, .18); } }
.play__hint { color: var(--muted); font-weight: 500; font-size: .88rem; margin-top: .55rem; }
.play__hint b { color: var(--cma); }
.play__flash {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(3.4rem, 2.4rem + 4.4vw, 5.2rem); line-height: 1; color: var(--cma);
  animation: flashIn .28s cubic-bezier(.3, 1.4, .5, 1);
}
.play__flash.is-blank { animation: none; }
@keyframes flashIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.play__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.play__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(28, 66, 128, .15); }
.play__dots i.on { background: var(--cma-500); }
.play__abacus-wrap { display: grid; place-items: center; }
.play__abacus { width: 100%; max-width: 440px; filter: drop-shadow(0 16px 24px rgba(19, 25, 40, .22)); }
.play__intro h3 { margin-bottom: .3rem; font-size: 1.25rem; }
.play__intro p { color: var(--muted); max-width: 24rem; margin: 0 auto 1.2rem; font-size: .92rem; }
.play__intro-ic {
  display: grid; place-items: center; margin: 0 auto .9rem;
  width: 58px; height: 58px; border-radius: 18px;
  background: #fff; color: var(--tile-fg);
  box-shadow: 0 10px 24px rgba(28, 66, 128, .1);
}
.play__intro-ic .icon { width: 26px; height: 26px; }

/* Answers */
.play__choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (max-width: 479px) { .play__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.play__choice {
  position: relative;
  min-height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(28, 66, 128, .1);
  background: #fff;
  box-shadow: 0 1px 0 rgba(28, 66, 128, .05), 0 8px 18px rgba(28, 66, 128, .07);
  font-family: var(--font-head); font-weight: 600; font-size: 1.45rem;
  color: var(--cma-ink); cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: transform .18s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  animation: qIn .35s ease backwards;
}
.play__choice:nth-child(2) { animation-delay: .04s; }
.play__choice:nth-child(3) { animation-delay: .08s; }
.play__choice:nth-child(4) { animation-delay: .12s; }
.play__key {
  position: absolute; left: 10px; top: 8px;
  font-family: var(--font-body); font-size: .68rem; font-weight: 600; color: #9aa9c2;
  width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(28, 66, 128, .05);
}
.play__choice:hover { transform: translateY(-3px); border-color: rgba(46, 107, 208, .35); box-shadow: 0 12px 24px rgba(28, 66, 128, .12); }
.play__choice:active { transform: translateY(0); }
.play__choice:disabled { cursor: default; transform: none; }
.play__choice.is-correct { background: var(--green-50); border-color: var(--green); color: #0f7a4a; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.play__choice.is-wrong { background: var(--red-50); border-color: #f2a6a2; color: #b52b26; animation: nudge .35s ease; }
@keyframes pop { 50% { transform: scale(1.05); } }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.play__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; min-height: 24px; flex-wrap: wrap; }
.play__msg { font-weight: 600; color: var(--muted); font-size: .85rem; }
.play__keys { font-size: .76rem; color: #9aa9c2; }
@media (hover: none) { .play__keys, .play__key { display: none; } }

/* Results */
.play__result h3 { font-size: 1.35rem; margin-bottom: .8rem; display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.play__badge { font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: #0f7a4a; background: var(--green-50); padding: .2rem .6rem; border-radius: 999px; }
.play__stats { display: flex; justify-content: center; gap: clamp(16px, 4vw, 40px); margin-bottom: 1rem; }
.play__stats div { display: flex; flex-direction: column; }
.play__stats b { font-family: var(--font-head); font-weight: 600; font-size: 1.8rem; line-height: 1.1; color: var(--cma); font-variant-numeric: tabular-nums; }
.play__stats span { font-size: .78rem; color: var(--muted); }
.play__result .btn-row { justify-content: center; }
.play__stars { display: flex; justify-content: center; gap: 4px; margin-bottom: .5rem; }
.play__stars .icon { width: 28px; height: 28px; color: rgba(28, 66, 128, .12); }
.play__stars .icon.on { color: var(--yellow); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.play__stars .icon.on:nth-child(2) { animation-delay: .12s; }
.play__stars .icon.on:nth-child(3) { animation-delay: .24s; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 16vw, 220px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 16px);
}
.gallery__item {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r);
  background: var(--sky-100);
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption, .gallery__item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(10, 25, 50, .72));
  color: #fff; font-weight: 700; font-size: .9rem; line-height: 1.3;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery__item:hover .cap, .gallery__item:focus-visible .cap { opacity: 1; transform: none; }
.gallery__zoom {
  position: absolute; right: 10px; top: 10px;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--cma);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .3s ease;
}
.gallery__zoom .icon { width: 16px; height: 16px; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-big { grid-column: span 2; grid-row: span 2; }
.gallery__item[hidden] { display: none; }
@media (hover: none) {
  .gallery__item .cap { opacity: 1; transform: none; }
}
@media (max-width: 479px) {
  .gallery__item .cap { font-size: .8rem; padding: 22px 10px 8px; }
  .filter { padding: .35rem .8rem; font-size: .9rem; min-height: 40px; }
}
@media (max-width: 899px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 34vw, 230px); }
}
@media (max-width: 479px) {
  .gallery .g-wide, .gallery .g-big { grid-column: 1 / -1; }
  .gallery .g-tall { grid-row: span 1; }
  .gallery .g-big { grid-row: span 1; }
}

/* Moments strip (home) */
.moments {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(150px, 15vw, 210px));
  gap: clamp(10px, 1.4vw, 16px);
}
.moments .gallery__item:first-child { grid-row: span 2; }
@media (max-width: 767px) {
  .moments {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 12px; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .moments::-webkit-scrollbar { display: none; }
  .moments .gallery__item { flex: 0 0 78%; height: 240px; scroll-snap-align: center; }
}

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.filter {
  border: 2px solid var(--grey-100); background: #fff; color: var(--text);
  border-radius: 999px; padding: .45rem 1rem; min-height: 42px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
}
.filter:hover { border-color: var(--sky-200); }
.filter[aria-pressed="true"] { background: var(--sky-100); color: var(--cma); border-color: var(--sky-200); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: none;
  background: rgba(8, 18, 38, .92);
  align-items: center; justify-content: center;
  padding: 64px 72px 84px;
}
.lightbox.is-open { display: flex; animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img {
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  width: auto; height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  background: #0f1d36;
}
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 18px;
  text-align: center; color: #fff; font-weight: 700; padding: 0 70px;
  font-size: .98rem;
}
.lightbox__count { display: block; font-weight: 600; font-size: .85rem; color: #b9c8e4; }
.lightbox__btn {
  position: absolute;
  width: 52px; height: 52px; border-radius: 999px;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
@media (max-width: 767px) {
  .lightbox { padding: 60px 8px 120px; }
  .lightbox__img { max-height: calc(100dvh - 200px); border-radius: 10px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { left: 16px; }
  .lightbox__next { right: 16px; }
  .lightbox__cap { bottom: 78px; padding: 0 16px; font-size: .9rem; }
}

/* ---------- Testimonials: all three visible at once, over a real photo ---------- */
.tm__photo {
  position: relative; border-radius: 32px; overflow: hidden;
  height: clamp(240px, 30vw, 380px);
}
.tm__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.tm__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 38, 74, .82) 0%, rgba(19, 38, 74, .45) 45%, rgba(19, 38, 74, 0) 75%); }
.tm__head { position: absolute; z-index: 1; left: clamp(24px, 4vw, 56px); top: 50%; transform: translateY(-75%); max-width: 22rem; }
.tm__head h2 { color: #fff; margin: 0; }
.tm__cards {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px);
  margin: calc(clamp(60px, 7vw, 96px) * -1) clamp(12px, 3vw, 40px) 0;
}
.tm__card {
  margin: 0; display: flex; flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: 26px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 24px 56px rgba(28, 66, 128, .14), inset 0 1px 0 #fff;
}
.tm__quote-mark { width: 34px; height: 26px; color: var(--tile-fg); opacity: .35; margin-bottom: .8rem; }
.tm__card blockquote { margin: 0 0 1.4rem; font-family: var(--font-head); font-weight: 500; font-size: clamp(1rem, .95rem + .3vw, 1.12rem); line-height: 1.5; color: var(--cma-ink); }
.tm__who { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.tm__avatar {
  width: 40px; height: 40px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  background: var(--tile-bg); color: var(--tile-fg);
}
.tm__name { display: block; font-weight: 700; color: var(--cma-ink); line-height: 1.25; font-size: .9rem; }
.tm__role { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 899px) {
  .tm__cards { grid-template-columns: minmax(0, 1fr); margin-inline: 12px; }
  .tm__head { transform: translateY(-90%); }
}
@media (max-width: 479px) { .tm__cards { margin-inline: 0; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--cma);
  color: #e3ecfb;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px); align-items: center;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.cta-band::before { width: 280px; height: 280px; right: -90px; bottom: -120px; background: rgba(255, 255, 255, .06); }
.cta-band::after { width: 140px; height: 140px; right: 140px; top: -70px; background: rgba(255, 197, 49, .16); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdcf3; font-size: 1.08rem; margin: 0; }
.cta-band .btn-row { flex-direction: column; align-items: stretch; width: min(100%, 300px); justify-self: end; position: relative; z-index: 1; }
@media (max-width: 899px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band .btn-row { justify-self: start; width: 100%; max-width: 420px; }
}
@media (max-width: 479px) {
  .cta-band .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--sky-100), var(--sky-50));
  border-radius: 0 0 clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px);
  padding: calc(var(--header-h) + clamp(20px, 3.5vw, 44px)) 0 clamp(44px, 6vw, 76px);
}
.page-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px); align-items: center;
}
.page-hero--center .page-hero__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero h1 { font-size: clamp(1.85rem, 1.25rem + 2vw, 2.7rem); }
.page-hero .lead { max-width: 32rem; margin-bottom: 1.8rem; }
.page-hero .photo { aspect-ratio: 16 / 11; border-radius: 32px; }
.page-hero__art { display: grid; place-items: center; }
.crumbs { display: flex; gap: .4rem; align-items: center; font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: .8rem; list-style: none; flex-wrap: wrap; }
.crumbs a { color: var(--cma-500); }
.crumbs .icon { width: .9rem; height: .9rem; }
@media (max-width: 899px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Programs page ---------- */
.component {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.component + .component { margin-top: clamp(48px, 7vw, 88px); }
.component:nth-child(even) .component__art { order: 2; }
.component__art {
  background: var(--tile-bg);
  border-radius: var(--r-xl);
  padding: clamp(18px, 3vw, 36px);
  display: grid; place-items: center;
}
.component__art img { width: 100%; max-width: 280px; filter: drop-shadow(0 18px 24px rgba(28, 66, 128, .16)); }
.component__art { background: linear-gradient(160deg, rgba(255, 255, 255, .9), var(--tile-bg)); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 20px 48px rgba(28, 66, 128, .08), inset 0 1px 0 #fff; aspect-ratio: 5 / 4; }
.component__num {
  font-family: var(--font-head); font-weight: 700; color: var(--tile-fg);
  font-size: .95rem; display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .3rem;
}
.component__num b {
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 1rem;
}
.t-yellow .component__num b { color: var(--cma-ink); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 1rem; }
.pill-list li {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: var(--tile-bg); color: var(--cma-ink); font-weight: 700; font-size: .9rem;
}
.pill-list .icon { width: 1rem; height: 1rem; color: var(--tile-fg); }
@media (max-width: 899px) {
  .component { grid-template-columns: minmax(0, 1fr); }
  .component:nth-child(even) .component__art { order: 0; }
}

.age-card { position: relative; padding-top: 30px; }
.age-badge {
  display: inline-flex; align-items: baseline; gap: .3rem;
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.9rem; line-height: 1; color: var(--tile-fg);
  margin-bottom: .5rem;
}
.age-badge small { font-size: .95rem; font-weight: 700; color: var(--muted); font-family: var(--font-body); }

/* Journey stepper */
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); position: relative; list-style: none; }
.journey::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 33px; height: 4px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--sky-200) 0 12px, transparent 12px 20px);
}
.journey li { position: relative; text-align: center; }
.journey__bead {
  width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14), 0 0 0 8px #fff, 0 8px 20px rgba(19, 38, 74, .12);
  position: relative;
}
.t-yellow .journey__bead { color: var(--cma-ink); }
.journey .card { height: calc(100% - 86px); }
@media (max-width: 767px) {
  .journey { grid-template-columns: minmax(0, 1fr); }
  .journey::before { left: 34px; right: auto; top: 20px; bottom: 20px; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--sky-200) 0 12px, transparent 12px 20px); }
  .journey li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; text-align: left; align-items: start; }
  .journey__bead { margin: 0; }
  .journey .card { height: auto; }
}

/* Before / after */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.ba .card h3 { display: flex; align-items: center; gap: .6rem; }
.ba ul { list-style: none; display: grid; gap: .6rem; }
.ba li { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); }
.ba li .icon { flex: none; width: 20px; height: 20px; margin-top: .2rem; }
.ba__before { background: var(--grey-50); }
.ba__before li .icon { color: #93a1b8; }
.ba__after { background: var(--green-50); border-color: #c4ecd8; }
.ba__after li { color: var(--text); }
.ba__after li .icon { color: var(--green); }
@media (max-width: 767px) { .ba { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About page ---------- */
.timeline { list-style: none; position: relative; display: grid; gap: 18px; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--sky-200); }
.timeline li { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: start; }
.timeline__dot {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; position: relative;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14), 0 0 0 6px var(--sky-50);
}
.t-yellow .timeline__dot { color: var(--cma-ink); }
.timeline__dot .icon { width: 24px; height: 24px; }
.timeline .card { padding: 18px 22px; }
@media (max-width: 479px) {
  .timeline::before { left: 19px; }
  .timeline li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .timeline__dot { width: 40px; height: 40px; }
  .timeline__dot .icon { width: 18px; height: 18px; }
  .timeline .card { padding: 16px; }
}
.timeline__year { font-family: var(--font-head); font-weight: 700; color: var(--tile-fg); font-size: 1.05rem; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .8rem;
  padding: 18px 20px; font-weight: 700; color: var(--cma-ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic-tile { width: 40px; height: 40px; margin: 0; border-radius: 12px; flex: none; }
.faq summary .ic-tile .icon { width: 20px; height: 20px; }
.faq summary .chev { margin-left: auto; width: 22px; height: 22px; color: var(--cma-500); transition: transform .25s ease; flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq__body { padding: 0 20px 18px 72px; color: var(--muted); }
.faq .faq__body p:last-child { margin-bottom: 0; }
@media (max-width: 479px) { .faq .faq__body { padding-left: 20px; } }

/* ---------- Competitions ---------- */
.comp-types .card { position: relative; }
.comp-types .card .ic-tile { width: 60px; height: 60px; }
.feature-photo { position: relative; }
.feature-photo .photo { aspect-ratio: 16 / 10; }
.feature-photo .sticker { left: 16px; bottom: -22px; }
.feature-photo .photo img { object-position: center 70%; }

/* ---------- Online practice ---------- */
.screen {
  width: 100%; max-width: 520px;
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); border: 1px solid var(--grey-100);
  overflow: hidden;
}
.screen__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--grey-100); font-weight: 700; font-size: .9rem; color: var(--cma); }
.screen__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.screen__bar i:nth-child(2) { background: var(--yellow); }
.screen__bar i:nth-child(3) { background: var(--green); margin-right: 8px; }
.screen__bar span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; }
.screen__body { background: var(--tile-bg); padding: clamp(14px, 3vw, 28px); }
.screen__body img { width: 100%; max-width: 400px; margin: 0 auto; }
.mini-ic {
  text-align: center;
}
.mini-ic .ic-tile { margin-inline: auto; width: 84px; height: 84px; border-radius: 22px; padding: 8px; }
.mini-ic .ic-tile img { width: 100%; height: 100%; object-fit: contain; }
.portal-teaser {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: #fff; border: 2px dashed var(--sky-200); border-radius: var(--r-xl);
  padding: clamp(22px, 3.5vw, 36px);
}
.portal-teaser h3 { margin-bottom: .3rem; }
.portal-teaser p { margin: 0; color: var(--muted); }
.soon {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 700; color: #9a6a00;
  background: var(--yellow-50); border: 1px solid #ffe08f;
  padding: .15rem .6rem; border-radius: 999px; margin-bottom: .5rem;
}
.soon .icon { width: .95rem; height: .95rem; }
@media (max-width: 767px) { .portal-teaser { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 559px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; color: var(--cma-ink); }
.field label .opt { font-weight: 600; color: var(--muted); }
.input {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border-radius: 14px;
  border: 2px solid var(--grey-100);
  background: var(--grey-50);
  font-size: 1rem;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:hover { border-color: var(--sky-200); }
.input:focus { outline: none; border-color: var(--cma-500); background: #fff; box-shadow: 0 0 0 4px rgba(46, 107, 208, .12); }
.input[aria-invalid="true"] { border-color: var(--red); background: #fff; }
.field__err { color: #c2362f; font-size: .88rem; font-weight: 700; min-height: 0; }
.field__err:empty { display: none; }
.input-wrap { position: relative; }
.input-wrap .input { padding-left: 2.9rem; }
.input-wrap > .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.2rem; height: 1.2rem; color: var(--muted); pointer-events: none; }
.input-wrap .reveal-pw {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.input-wrap .reveal-pw:hover { color: var(--cma); background: var(--sky-50); }
.input-wrap--pw .input { padding-right: 3.2rem; }

.notice {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px;
  font-weight: 600; font-size: .96rem; line-height: 1.5;
}
.notice .icon { flex: none; width: 22px; height: 22px; margin-top: .1rem; }
.notice--info { background: var(--sky-100); color: var(--cma-ink); }
.notice--info .icon { color: var(--cma-500); }
.notice--ok { background: var(--green-50); color: #0f5f3a; }
.notice--ok .icon { color: var(--green); }
.notice--warn { background: var(--yellow-50); color: #6b4a00; }
.notice--warn .icon { color: #d39a00; }
.notice--err { background: var(--red-50); color: #8f221e; }
.notice--err .icon { color: var(--red); }
.notice[hidden] { display: none; }
.notice a { font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 959px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-list { list-style: none; display: grid; gap: 18px; margin-bottom: 1.4rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ic-tile { width: 46px; height: 46px; border-radius: 14px; margin: 0; flex: none; }
.contact-list .ic-tile .icon { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--cma-ink); font-weight: 700; }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-list a:hover { color: var(--cma); }
.contact-quick { display: grid; gap: 10px; }
.map-card { overflow: hidden; padding: 0; }
.map-card iframe { display: block; width: 100%; height: 260px; border: 0; }

/* ---------- Login ---------- */
.auth {
  background: linear-gradient(180deg, var(--sky-100), var(--sky-50) 60%, #fff);
  padding: calc(var(--header-h) + clamp(20px, 3.5vw, 44px)) 0 clamp(48px, 7vw, 88px);
}
.auth__card {
  max-width: 420px; margin: 0 auto;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(28, 66, 128, .12); border: 1px solid rgba(255, 255, 255, .95);
  padding: clamp(24px, 4vw, 40px);
}
.auth__card h1 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.85rem); margin-bottom: .25rem; }
.auth__sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; }
.auth__view[hidden] { display: none; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .88rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--cma-500); }
.linkish { background: none; border: 0; padding: 0; color: var(--cma-500); font-weight: 600; cursor: pointer; font-size: inherit; }
.linkish:hover { color: var(--cma); text-decoration: underline; }
.auth__back { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-size: .9rem; margin-top: .2rem; }
.auth__back .icon { width: 1rem; height: 1rem; }
.auth__foot { text-align: center; color: var(--muted); font-size: .9rem; margin: 1.4rem 0 0; }
.auth__foot a { font-weight: 600; }
#portalStatus { padding: 10px 12px; font-size: .84rem; border-radius: 12px; margin-bottom: 1.4rem; }
#portalStatus .icon { width: 18px; height: 18px; }
.auth .field label { font-size: .86rem; font-weight: 600; }
/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--cma-ink);
  color: #b9c7df;
  padding: clamp(48px, 6vw, 72px) 0 0;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: .97rem;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(24px, 4vw, 48px); }
.footer__brand .footer__logo { display: inline-block; margin-bottom: 1.1rem; }
.footer__brand .footer__logo img { height: 84px; width: auto; }
.footer__brand p { color: #b9c7df; max-width: 22rem; }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: .9rem; }
.footer__links { list-style: none; display: grid; gap: .45rem; }
.footer__links a { color: #b9c7df; font-weight: 600; }
.footer__links a:hover, .footer__links a[aria-current="page"] { color: #fff; }
.footer__contact { list-style: none; display: grid; gap: .7rem; }
.footer__contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer__contact .icon { width: 1.1rem; height: 1.1rem; color: var(--yellow); margin-top: .25rem; flex: none; }
.footer__contact a { color: #dfe8f7; font-weight: 600; }
.footer__contact a:hover { color: #fff; }
.footer__social { display: flex; gap: 8px; margin-top: 1rem; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s ease, transform .2s ease;
}
.footer__social a:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); color: #fff; }
.footer__social .icon { width: 20px; height: 20px; }
.footer__cta { display: grid; gap: 10px; }
.footer__bottom {
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .88rem; color: #8fa2c4;
}
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer { padding-bottom: 72px; }
}

/* Floating WhatsApp (mobile only) */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--wa); color: #fff;
  display: none; place-items: center;
  box-shadow: 0 8px 24px rgba(18, 140, 74, .35);
}
.wa-fab .icon { width: 28px; height: 28px; }
.wa-fab:hover { color: #fff; }
@media (max-width: 767px) { .wa-fab { display: grid; } }

/* ---------- Motion ---------- */
.page-enter { animation: pageIn .45s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

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

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: .6rem; }
.muted { color: var(--muted); }

/* ---------- Photography as part of the layout ---------- */
/* Hero photo that bleeds off the right edge (inner pages) */
.page-hero--bleed { overflow: hidden; }
.page-hero--bleed .page-hero__art { display: block; margin-right: calc(-1 * (max(0px, (100vw - var(--maxw)) / 2) + var(--gutter))); }
.bleed-photo {
  height: clamp(320px, 50vh, 480px);
  border-radius: 40px 0 0 40px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(28, 66, 128, .16);
}
.bleed-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .page-hero--bleed .page-hero__art { margin-right: calc(var(--gutter) * -1); }
  .bleed-photo { height: clamp(240px, 56vw, 380px); border-radius: 28px 0 0 28px; }
}

/* Featured event: navy negative space on the left, real photo fading in from the right */
.photo-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--cma-ink);
  padding: clamp(72px, 9vw, 128px) 0;
  color: #dfe8f7;
}
.photo-band__img {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0;
  width: 64%; height: 100%; object-fit: cover; object-position: 55% 62%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.photo-band__panel { max-width: min(430px, 40%); }
.photo-band h2 { color: #fff; }
.photo-band .lead { color: #c9d6ee; }
.checklist--light li { color: #e7eefa; }
.checklist--light .tick { background: rgba(34, 181, 115, .22); color: #7ff0b8; }
@media (max-width: 899px) {
  .photo-band { padding: 0 0 56px; }
  .photo-band__img {
    position: relative; z-index: 0; width: 100%; height: 320px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
  }
  .photo-band .container { position: relative; z-index: 1; margin-top: -40px; }
  .photo-band__panel { max-width: none; }
}

/* About: the real photograph is the hero background */
.page-hero--photo { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(520px, 72vh, 680px); display: flex; align-items: center; }
.page-hero__bg {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0;
  width: 60%; height: 100%; object-fit: cover; object-position: 50% 72%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 16%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 16%, #000 40%);
}
.page-hero--photo .container { width: 100%; }
.page-hero__copy { max-width: 440px; }
@media (max-width: 899px) {
  .page-hero--photo { display: block; min-height: 0; padding-top: 0; }
  .page-hero__bg {
    position: relative; z-index: 0; width: 100%; height: 340px; display: block;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
    mask-image: linear-gradient(180deg, #000 60%, transparent);
  }
  .page-hero--photo .container { position: relative; z-index: 1; margin-top: -48px; }
  .page-hero__copy { max-width: none; }
}

/* Programs: age groups shown with photographs */
.age-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.age__photo { position: relative; aspect-ratio: 4 / 3.3; border-radius: 26px; overflow: hidden; margin-bottom: 1.1rem; box-shadow: 0 20px 44px rgba(28, 66, 128, .12); }
.age__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.age:hover .age__photo img { transform: scale(1.04); }
.age__range {
  position: absolute; left: 14px; bottom: 14px;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9);
  font-weight: 600; font-size: .82rem; color: var(--cma-ink);
}
.age h3 { margin-bottom: .25rem; }
.age p { color: var(--muted); margin: 0; }
@media (max-width: 899px) {
  .age-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .age-grid::-webkit-scrollbar { display: none; }
  .age { flex: 0 0 min(78%, 340px); scroll-snap-align: start; }
}

/* Educational icon set (open layout, no cards) */
.icon-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); text-align: center; }
.icon-item__art {
  display: grid; place-items: center;
  width: clamp(120px, 12vw, 150px); aspect-ratio: 1; margin: 0 auto 1.1rem;
  border-radius: 34px; padding: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(234, 242, 253, .8));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px rgba(28, 66, 128, .1), inset 0 1px 0 #fff;
  transition: transform .35s ease;
}
.icon-item:hover .icon-item__art { transform: translateY(-4px) rotate(-2deg); }
.icon-item__art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(28, 66, 128, .14)); }
.icon-item h3 { margin-bottom: .3rem; }
.icon-item p { color: var(--muted); margin: 0 auto; max-width: 15rem; font-size: .9rem; }
@media (max-width: 899px) { .icon-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }

.feature-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin-top: 1.6rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .ic-tile { width: 44px; height: 44px; border-radius: 14px; margin: 0; flex: none; }
.feature-list .ic-tile .icon { width: 22px; height: 22px; }
.feature-list h3 { font-size: 1rem; margin-bottom: .15rem; }
.feature-list p { color: var(--muted); margin: 0; font-size: .88rem; }
@media (max-width: 479px) { .feature-list { grid-template-columns: minmax(0, 1fr); } }
/* Home game section: photo background, content in the open right-hand space */
.play-section--photo { position: relative; isolation: isolate; overflow: hidden; background: #fbf8f2; }
.play-section__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: .42; }
.play-section__panel { margin-left: auto; width: min(100%, 600px); display: grid; gap: 22px; }
.play-section--photo h2 { margin-bottom: .4rem; }
.play-section--photo .lead { color: var(--text); }
.play-section--photo .play { background: rgba(255, 255, 255, .9); }
.play-section__more { margin-top: 16px; }
@media (max-width: 959px) {
  .play-section--photo { padding-top: 0; }
  .play-section__bg { position: relative; z-index: 0; height: 300px; object-position: 18% 50%; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .play-section--photo .container { position: relative; z-index: 1; margin-top: -40px; }
  .play-section__panel { width: 100%; }
}

/* Programs: the three core components as one compact row */
.components { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.components .component {
  display: flex; flex-direction: column; gap: 0;
  background: #fff; border: 1px solid var(--grey-100); border-radius: 24px;
  box-shadow: var(--shadow-sm); padding: 18px 20px 22px;
}
.components .component + .component { margin-top: 0; }
.components .component:nth-child(even) .component__art { order: 0; }
.components .component__art { aspect-ratio: auto; height: 132px; padding: 12px; border-radius: 18px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.components .component__art img { width: auto; height: 104px; max-width: 100%; object-fit: contain; }
.components .component h3 { font-size: 1.12rem; margin: .2rem 0 .35rem; }
.components .component .lead { font-size: .92rem; margin-bottom: .5rem; }
.components .component p { font-size: .88rem; line-height: 1.6; margin-bottom: .6rem; }
.components .component__num { font-size: .8rem; }
.components .component__num b { width: 24px; height: 24px; font-size: .82rem; }
.components .pill-list { margin-top: auto; padding-top: .4rem; gap: 6px; }
.components .pill-list li { font-size: .78rem; padding: .25rem .6rem; }
@media (max-width: 959px) {
  .components { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
/* About: the story timeline runs horizontally on larger screens to save space */
@media (min-width: 900px) {
  .timeline { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
  .timeline::before { left: 29px; right: 29px; top: 27px; bottom: auto; width: auto; height: 4px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 14px; }
  .timeline__dot { width: 54px; height: 54px; }
  .timeline .card { padding: 16px 18px; height: 100%; }
  .timeline .card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
  .timeline .card p { font-size: .86rem; line-height: 1.6; }
  .timeline__year { font-size: .9rem; }
}@media (min-width: 600px) and (max-width: 899px) {
  .timeline { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .timeline::before { display: none; }
  .timeline li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .timeline__dot { width: 44px; height: 44px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14); }
  .timeline .card { padding: 14px 16px; height: 100%; }
  .timeline .card h3 { font-size: 1rem; }
  .timeline .card p { font-size: .86rem; line-height: 1.55; }
}
@media (max-width: 599px) {
  .timeline { gap: 12px; }
  .timeline .card { padding: 12px 14px; }
  .timeline .card h3 { font-size: .98rem; margin-bottom: .2rem; }
  .timeline .card p { font-size: .84rem; line-height: 1.55; }
  .timeline__year { font-size: .85rem; }
}
/* About timeline: illustrated, 3D-style milestone icons */
.timeline__dot.timeline__dot--art,
.timeline__dot--art { background: var(--sky-50); box-shadow: 0 0 0 6px var(--sky-50); color: inherit; overflow: visible; }
.timeline__dot--art img { width: 128%; height: 128%; max-width: none; filter: drop-shadow(0 4px 6px rgba(28, 66, 128, .18)); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.timeline li:hover .timeline__dot--art img { transform: translateY(-3px) rotate(-4deg) scale(1.06); }

/* 3D illustrated icons inside the soft icon tiles */
.ic-tile--art img { width: 46px; height: 46px; filter: drop-shadow(0 3px 4px rgba(28, 66, 128, .16)); }


/* Home "Three ways of thinking": a more compact band */
.programs-feature.section { padding-block: clamp(44px, 5.5vw, 68px); }
.programs-feature .split-head { margin-bottom: 0; }
.programs-feature h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 1.95rem); }
.programs-feature .glass-grid { max-width: 820px; margin-inline: auto; gap: clamp(14px, 1.8vw, 22px); padding-top: 34px; }
.programs-feature .glass-tile { padding: 0 18px 20px; border-radius: 22px; }
.programs-feature .glass-tile__art { margin: -30px 0 16px; aspect-ratio: 16 / 9; padding: 12px; border-radius: 18px; }
.programs-feature .glass-tile h3 { font-size: 1rem; margin-bottom: .3rem; }
.programs-feature .glass-tile p { font-size: .84rem; line-height: 1.55; margin-bottom: .7rem; }
.programs-feature .glass-tile .link-arrow { font-size: .84rem; }
@media (min-width: 900px) { .programs-feature .split-head { max-width: 820px; margin-inline: auto; } }
/* tighter still: smaller art panels and icons */
.programs-feature.section { padding-block: clamp(36px, 4.5vw, 56px); }
.programs-feature .glass-grid { max-width: 720px; padding-top: 26px; gap: 16px; }
.programs-feature .split-head { max-width: 720px; }
.programs-feature .glass-tile { padding: 0 16px 16px; }
.programs-feature .glass-tile__art { margin: -22px 0 12px; aspect-ratio: 2 / 1; padding: 8px; }
.programs-feature .glass-tile__art img { width: 46%; height: 78%; }
.programs-feature .glass-tile h3 { font-size: .95rem; }
.programs-feature .glass-tile p { font-size: .8rem; margin-bottom: .55rem; }
.programs-feature .glass-tile .link-arrow { font-size: .8rem; }

/* Instagram: a mild pink-purple Instagram feel */
.hdr-pill--ig { background: linear-gradient(135deg, #fff1f8 0%, #f6efff 100%); border-color: rgba(214, 36, 159, .22); color: #8a2a8f; }
.hdr-pill--ig:hover { background: linear-gradient(135deg, #ffe4f2 0%, #efe4ff 100%); border-color: rgba(214, 36, 159, .4); color: #7a1f80; }
.hdr-pill--ig .icon { color: #fff; box-sizing: content-box; padding: 3px; border-radius: 7px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.footer__social a[href*="instagram"] { background: linear-gradient(135deg, rgba(253, 89, 73, .28), rgba(214, 36, 159, .3) 55%, rgba(40, 90, 235, .3)); }
.footer__social a[href*="instagram"]:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* Book a Free Demo: a stronger (still friendly) highlight */
.btn[href$="#demo"] { animation: demoGlow 2.2s ease-in-out infinite; }
.btn[href$="#demo"]::after { animation-duration: 3s; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); }
@keyframes demoGlow {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 20px rgba(var(--glow), .3), 0 0 0 0 rgba(var(--glow), .55); }
  50% { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--glow), .42), 0 0 0 11px rgba(var(--glow), 0); }
}
.btn[href$="#demo"]:hover { animation-play-state: paused; }

/* Demo button: glow without the bounce */
@keyframes demoGlow {
  0%, 100% { box-shadow: 0 8px 20px rgba(var(--glow), .3), 0 0 0 0 rgba(var(--glow), .5); }
  50% { box-shadow: 0 12px 26px rgba(var(--glow), .4), 0 0 0 10px rgba(var(--glow), 0); }
}

/* Call Us: a soft blue theme to match the CMA brand */
.hdr-pill[href^="tel:"] { background: linear-gradient(135deg, #eef5ff 0%, #e6f4ff 100%); border-color: rgba(46, 107, 208, .25); color: var(--cma); }
.hdr-pill[href^="tel:"]:hover { background: linear-gradient(135deg, #e0ecff 0%, #d6edff 100%); border-color: rgba(46, 107, 208, .45); color: var(--cma); }
.hdr-pill[href^="tel:"] .icon { color: #fff; box-sizing: content-box; padding: 3px; border-radius: 999px; background: linear-gradient(135deg, #38bdf8 0%, #2e6bd0 100%); }

/* Inner-page header photos: a much shorter fade so the photo stays clear */
.page-hero__bg {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .7) 6%, #000 14%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .7) 6%, #000 14%);
}
@media (max-width: 899px) {
  .page-hero__bg { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
}



/* About header: one round bead bouncing along behind "one bead at a time" */
.bead-title { position: relative; isolation: isolate; }
.hl-bead { position: absolute; z-index: -1; left: 0; bottom: .18em; width: .62em; height: .62em; animation: beadTravel 7s ease-in-out infinite alternate; }
.hl-bead::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 9%, #ffe58a 20%, #ffc21a 52%, #f08c00 100%);
  box-shadow: 0 6px 12px rgba(240, 140, 0, .28);
  opacity: .9;
  animation: beadBounce .8s cubic-bezier(.3, 0, .6, 1) infinite alternate;
}
@keyframes beadTravel { from { left: 0; } to { left: min(calc(100% - .62em), 6.3em); } }
@keyframes beadBounce { from { transform: translateY(0) scale(1.06, .94); } to { transform: translateY(-1.1em) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hl-bead, .hl-bead::before { animation: none; } }
/* Home hero: photos sit a little further to the right */
@media (min-width: 900px) { .hero__media { left: clamp(48px, 7vw, 120px); } }

/* About header photo: the group stays sharp on the right, and the photo carries on softly
   under the headline (a blurred, lightened copy), fading only to the left of the faces */
.page-hero__wash { display: none; }
@media (min-width: 900px) {
  .page-hero__bg {
    left: auto; right: 0; width: auto; height: 100%; max-width: none; aspect-ratio: 1600 / 1066;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 6%, #000 12%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 6%, #000 12%);
  }
  .page-hero__wash {
    display: block; position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 0% 40%; filter: blur(16px) saturate(.9); transform: scale(1.08); opacity: .7;
  }
  .page-hero--photo::before {
    content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background: linear-gradient(90deg, rgba(240, 246, 255, .93) 0%, rgba(240, 246, 255, .82) 34%, rgba(240, 246, 255, .35) 50%, rgba(240, 246, 255, 0) 62%);
  }
}
@media (min-width: 900px) {
  .page-hero__bg {
    width: 62%; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 4%, #000 8%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 4%, #000 8%);
  }
}

/* About header v3: the whole photo is the background (nothing cropped off the sides);
   the text sits on its own frosted-glass panel so every face stays visible */
@media (min-width: 900px) {
  .page-hero--photo { --cl: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); min-height: clamp(500px, 66vh, 620px); }
  .page-hero--photo::before { display: none; }
  .page-hero__bg {
    top: var(--header-h); bottom: 0; right: 0; left: calc(var(--cl) + 330px);
    width: auto; height: auto; aspect-ratio: auto;
    object-fit: cover; object-position: 50% 28%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%); mask-image: linear-gradient(90deg, transparent 0%, #000 4%);
  }
  .page-hero__wash { filter: blur(22px) saturate(.95); opacity: .85; object-position: 0% 30%; transform: scale(1.12); }
  .page-hero--photo .page-hero__copy {
    max-width: 380px; margin-top: calc(var(--header-h) / 2);
    padding: 22px 24px 24px; border-radius: 24px;
    background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 20px 44px rgba(28, 66, 128, .16);
  }
  .page-hero--photo h1 { font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.1rem); }
  .page-hero--photo .lead { font-size: .95rem; margin-bottom: 1.2rem; }
  .page-hero--photo .crumbs { font-size: .82rem; margin-bottom: .5rem; }
  .page-hero--photo .btn { padding-block: .6rem; font-size: .9rem; }
}
@media (min-width: 900px) {
  .page-hero__bg { width: calc(100% - var(--cl) - 330px); height: calc(100% - var(--header-h)); }
}
@media (min-width: 900px) {
  .page-hero__bg { left: calc(var(--cl) + 392px); width: calc(100% - var(--cl) - 392px); }
}
@media (min-width: 900px) { .page-hero__bg { object-position: 0% 28%; -webkit-mask-image: none; mask-image: none; } }

/* About header v4: full-bleed hall photo, text blended in with a soft light wash (no heavy glass) */
@media (min-width: 900px) {
  .page-hero__bg {
    top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 62%;
    -webkit-mask-image: none; mask-image: none;
  }
  .page-hero--photo::before {
    display: block; content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(240, 246, 255, .95) 0%, rgba(240, 246, 255, .88) 33%, rgba(240, 246, 255, .55) 46%, rgba(240, 246, 255, 0) 62%),
      linear-gradient(180deg, rgba(240, 246, 255, .55) 0%, rgba(240, 246, 255, 0) 22%);
  }
  .page-hero--photo .page-hero__copy {
    max-width: 440px; padding: 0; border: 0; box-shadow: none; border-radius: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .page-hero--photo h1 { font-size: clamp(1.85rem, 1.25rem + 2vw, 2.6rem); }
  .page-hero--photo .lead { font-size: 1rem; color: var(--text); }
}
@media (min-width: 900px) { .page-hero--photo .page-hero__bg { z-index: -2; } }

/* Programs: before / after pictures at the top of each card */
.ba .card { overflow: hidden; }
.ba__img { margin: calc(-1 * var(--ba-pad, 28px)) calc(-1 * var(--ba-pad, 28px)) 18px; height: clamp(170px, 18vw, 230px); }
.ba__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__before .ba__img img { filter: saturate(.85); }
.ba .card { --ba-pad: 28px; padding: var(--ba-pad); }
@media (max-width: 599px) { .ba .card { --ba-pad: 20px; } }

/* Zoomed-in photo that opens the full picture */
.photo--zoom { display: block; position: relative; overflow: hidden; cursor: zoom-in; }
.photo--zoom img { transform: scale(1.35); transform-origin: 50% 70%; transition: transform .5s ease; }
.photo--zoom:hover img { transform: scale(1.4); }
.photo__zoom-hint {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--cma-ink);
  font-size: .8rem; font-weight: 600; box-shadow: 0 6px 16px rgba(19, 38, 74, .18);
}
.photo__zoom-hint .icon { width: 15px; height: 15px; color: var(--cma-500); }
.lightbox__btn[hidden] { display: none; }
/* Singapore team photo: pre-cropped sharp image, everyone in frame */
.split .photo--zoom { aspect-ratio: 16 / 10; }
.photo--zoom img { transform: none; }
.photo--zoom:hover img { transform: scale(1.03); }
.ic-tile--art { overflow: visible; } .ic-tile--art img { max-width: 82%; max-height: 82%; width: auto; height: auto; filter: drop-shadow(0 4px 5px rgba(28, 66, 128, .22)); }

/* Programs: more compact component cards and before/after cards */
.components { max-width: 1020px; margin-inline: auto; gap: 16px; }
.components .component { padding: 18px 18px 18px; }
.components .component__art { height: 96px; padding: 8px; margin-bottom: 10px; max-width: 132px; margin-inline: auto; }
.components .component__art img { height: 76px; }
.components .component h3 { font-size: 1.02rem; margin: .15rem 0 .25rem; }
.components .component .lead { font-size: .86rem; margin-bottom: .4rem; }
.components .component p { font-size: .82rem; line-height: 1.55; margin-bottom: .5rem; }
.components .component__num { font-size: .74rem; }
.components .component__num b { width: 20px; height: 20px; font-size: .74rem; }
.components .pill-list li { font-size: .72rem; padding: .2rem .5rem; }
.components .pill-list .icon { width: .85rem; height: .85rem; }

.ba { max-width: 920px; margin-inline: auto; gap: 16px; }
.ba .card { --ba-pad: 20px; }
.ba__img { height: clamp(130px, 13vw, 165px); margin-bottom: 14px; }
.ba .card h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.ba ul { gap: .4rem; }
.ba li { font-size: .86rem; }
.ba li .icon { width: 17px; height: 17px; margin-top: .15rem; }
@media (max-width: 599px) { .ba .card { --ba-pad: 16px; } }

/* Stats: the little dots become glossy bouncing balls */
.stat__label::before {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85) 0 18%, var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, #000) 100%);
  box-shadow: 0 3px 4px rgba(19, 38, 74, .22);
  animation: statBounce 1.1s cubic-bezier(.3, 0, .6, 1) infinite alternate;
}
.stat:nth-child(2) .stat__label::before { animation-delay: -.28s; }
.stat:nth-child(3) .stat__label::before { animation-delay: -.55s; }
.stat:nth-child(4) .stat__label::before { animation-delay: -.82s; }
@keyframes statBounce {
  0% { transform: translateY(2px) scale(1.15, .85); }
  25% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-7px) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .stat__label::before { animation: none; } }

/* Before CMA: a gentle red tint */
.ba__before { background: #fff3f2; border-color: #f7d4d1; }
.ba__before li .icon, .ba__before h3 .icon { color: #e0716a !important; }
.ba__before li { color: #6b5a5e; }

/* Game: 3D mode icons */
.play__art-ic { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(28, 66, 128, .2)); }
.play__mode-ic .play__art-ic { width: 30px; height: 30px; }
.play--wide .play__mode-ic .play__art-ic { width: 32px; height: 32px; }
.play__intro-ic .play__art-ic { width: 44px; height: 44px; }

/* Stats balls: solid, realistic rubber-ball look */
.stat__label::before {
  --b1: #4f8dff; --b2: #1f5fe0; --b3: #123f9e;
  width: 14px; height: 14px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 9%, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 50% 45%, var(--b1) 0%, var(--b2) 58%, var(--b3) 100%);
  box-shadow: inset -2px -3px 4px rgba(0, 0, 0, .25), 0 4px 5px -1px rgba(19, 38, 74, .35);
}
.stat:nth-child(2) .stat__label::before { --b1: #3fd47f; --b2: #16a34a; --b3: #0c6b30; }
.stat:nth-child(3) .stat__label::before { --b1: #ffa047; --b2: #f26b0f; --b3: #b04600; }
.stat:nth-child(4) .stat__label::before { --b1: #a88bff; --b2: #7445ef; --b3: #4b22b0; }

/* Mobile header: Call Us next to Instagram; on narrow phones only Call Us */
.ig-pill.nav__call-mobile { display: none; }
@media (max-width: 1279px) {
  .ig-pill.nav__call-mobile {
    display: inline-flex; margin-left: auto;
    background: linear-gradient(135deg, #eef5ff 0%, #e6f4ff 100%); border-color: rgba(46, 107, 208, .25); color: var(--cma);
  }
  .ig-pill.nav__call-mobile .icon { color: #fff; box-sizing: content-box; padding: 3px; border-radius: 999px; background: linear-gradient(135deg, #38bdf8 0%, #2e6bd0 100%); width: .95rem; height: .95rem; }
  .ig-pill.nav__ig-mobile { margin-left: 0; background: linear-gradient(135deg, #fff1f8 0%, #f6efff 100%); border-color: rgba(214, 36, 159, .22); }
}
@media (max-width: 479px) {
  .ig-pill.nav__ig-mobile { display: none; }
}
/* Mobile menu: 3D page icons */
.mobile-menu__nav .dot--art { background: var(--tile-bg); }
.mobile-menu__nav .dot--art img { width: 28px; height: 28px; filter: drop-shadow(0 2px 3px rgba(28, 66, 128, .22)); }
