/* ==========================================================================
   Master of Mental Maths — Design 4, responsive build
   One stylesheet. Every breakpoint from 320 to 2560, no fixed artboards.
   Tokens first; nothing below uses a raw colour or a raw radius.
   ========================================================================== */

:root{
  /* --- the four action colours, each with its own audience -------------
     Ratios are against the text colour that sits on them, as the brand
     board states: blue 7.1:1 white, yellow 8.1:1 navy, green 5.0:1 white,
     orange 4.7:1 white.                                                 */
  --blue:        #1E4FC1;   /* primary, parents                          */
  --blue-deep:   #143A99;   /* hover / pressed                           */
  --blue-tint:   #EAF1FF;
  --blue-chip:   #DEEEFF;

  --yellow:      #F5B400;   /* franchise, highlight — carries navy text  */
  --yellow-deep: #D89F00;
  --yellow-ink:  #C48A00;   /* yellow as TEXT on white — 4.6:1           */
  --yellow-tint: #FFF8E6;
  --yellow-chip: #FFF3D6;

  --green:       #16804A;   /* schools, success                          */
  --green-deep:  #0F6339;
  --green-tint:  #E9F5EE;
  --green-chip:  #E4F5E9;

  --orange:      #C94A00;   /* Enquire Now, eyebrow labels               */
  --orange-deep: #A83D00;
  --orange-chip: #FFE9D6;

  /* --- ink & ground ---------------------------------------------------- */
  --navy:        #14264D;   /* ink, dark bands, footer — white 14.8:1    */
  --muted:       #5B6B8A;   /* secondary text — 5.4:1 on white           */
  --ground:      #F6F9FF;   /* page ground / alternating band            */
  --surface:     #FFFFFF;   /* cards                                     */
  --line:        #DCE4F2;   /* hairline                                  */

  /* --- on the navy band ------------------------------------------------ */
  --on-navy:     #FFFFFF;
  --on-navy-2:   #DCE7FA;   /* links            — 12.0:1                 */
  --on-navy-3:   #C7D6F5;   /* body copy        —  9.9:1                 */
  --on-navy-4:   #9FB3D9;   /* fine print       —  6.4:1                 */
  --navy-raised: #1E3260;   /* a surface inside the navy band            */
  --navy-line:   #2C4478;

  /* --- brand red: the wordmark and nothing else ------------------------ */
  --red:         #E8272D;   /* the wordmark red, sampled from the logo artwork */

  /* --- pastel icon chips: decorative, never behind body text ----------- */
  --chip-pink:   #FFECF2;
  --chip-violet: #EDE7FB;
  --chip-teal:   #E0F4F1;
  --icon-pink:   #C2185B;
  --icon-violet: #5B3DBB;
  --icon-teal:   #0F766E;

  /* --- confirmation pages: sampled from the client artwork ------------ */
  --sky-tint:    #F2F9FF;   /* the What-happens-next panel             */
  --sky-1:       #ECF7FD;   /* hero band, left                         */
  --sky-2:       #E3F4FE;   /* hero band, right                        */
  --cream:       #FDF9F0;   /* the Need-help panel                     */
  --sticky:      #FDF3B4;   /* marker highlight under a script line    */
  --mark-tint:   #CFF5CE;   /* the disc behind the tick                */
  --step-pink:   #FFCFE7;
  --step-blue:   #C9ECFF;
  --step-yellow: #FFF2AE;
  --step-green:  #D8F7CE;

  --focus:       #1E4FC1;

  /* --- radius: controls 12, media 16, cards 20 ------------------------- */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;

  --lift-card:  0 1px 2px rgba(20,38,77,.04);
  --lift-menu:  0 18px 40px -12px rgba(20,38,77,.28);
  --lift-stuck: 0 6px 20px -12px rgba(20,38,77,.35);

  /* --- layout ---------------------------------------------------------- */
  --wide: 1320px;
  --narrow: 760px;
  --pad: clamp(20px, 5vw, 60px);
  --section-y: clamp(44px, 6vw, 64px);
  --gap: clamp(16px, 2vw, 24px);

  /* --- type ------------------------------------------------------------ */
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: Caveat, "Segoe Script", cursive;
  --mark: Montserrat, system-ui, sans-serif;

  --t-hero: clamp(30px, 5.2vw, 44px);
  --t-h1:   clamp(26px, 4.2vw, 40px);
  --t-h2:   clamp(24px, 3.4vw, 34px);
  --t-h3:   clamp(19px, 1.7vw, 22px);
  --t-lead: clamp(15px, 1.25vw, 17px);
  --t-body: clamp(15px, 1.1vw, 16px);
  --t-sm:   14px;
  --t-xs:   13px;
  --t-eyebrow: clamp(11px, .85vw, 12px);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

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

body{
  margin: 0;
  background: var(--surface);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* belt and braces — nothing should overflow */
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

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

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

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap{ width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow{ max-width: calc(var(--narrow) + var(--pad) * 2); }

.section{ padding-block: var(--section-y); }
.section--ground{ background: var(--ground); }
.section--navy{ background: var(--navy); color: var(--on-navy); }
.section--blue-tint{ background: var(--blue-tint); }
.section--yellow-tint{ background: var(--yellow-tint); }
.section--green-tint{ background: var(--green-tint); }
.section--tight{ padding-block: clamp(32px, 4vw, 44px); }

.section--navy h1, .section--navy h2, .section--navy h3{ color: var(--on-navy); }
.section--navy p{ color: var(--on-navy-3); }

.stack > * + *{ margin-top: var(--flow, 16px); }

.grid{ display: grid; gap: var(--gap); }
.grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--6{ grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Split: a copy column beside a media column. Collapses at 900. */
.split{ display: grid; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (min-width: 900px){
  .split{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--copy-wide{ grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .split--media-wide{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .split--start{ align-items: start; }
}

@media (max-width: 1100px){ .grid--6{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px){ .grid--5{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px){ .grid--4{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px){ .grid--3, .grid--5{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px){ .grid--2{ grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px){
  .grid--3, .grid--4, .grid--5{ grid-template-columns: minmax(0, 1fr); }
  .grid--6{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Type helpers
   ========================================================================== */

.eyebrow{
  font-family: var(--display); font-weight: 800; font-size: var(--t-eyebrow);
  letter-spacing: .1em; text-transform: uppercase; color: var(--orange);
}
.eyebrow--blue{ color: var(--blue); }
.eyebrow--yellow{ color: var(--yellow-ink); }
.eyebrow--green{ color: var(--green); }
.eyebrow--on-navy{ color: var(--yellow); }

.h-hero{ font-size: var(--t-hero); line-height: 1.12; }
.h1{ font-size: var(--t-h1); }
.h2{ font-size: var(--t-h2); }
.h3{ font-size: var(--t-h3); font-weight: 700; line-height: 1.3; letter-spacing: 0; }

.lead{ font-size: var(--t-lead); line-height: 1.65; color: var(--muted); }
.body{ color: var(--muted); }
.fine{ font-size: var(--t-xs); color: var(--muted); }
.script{ font-family: var(--script); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--navy); }
.script--orange{ color: var(--orange); }

.section--navy .lead, .section--navy .body{ color: var(--on-navy-3); }
.section--navy .fine{ color: var(--on-navy-4); }
.section--navy .script{ color: var(--on-navy); }

.underline-script{ display: inline-block; }
.underline-script::after{
  content: ""; display: block; height: 5px; margin-top: -2px; border-radius: 3px;
  background: var(--yellow);
}

.measure{ max-width: 62ch; }
.center{ text-align: center; margin-inline: auto; }

/* A phrase that must never be broken across two lines — the product's name,
   mostly. It is the alternative to writing the breaks by hand: a hand-placed
   <br> is right at exactly one width and wrong at every other, and on a phone
   it leaves the line it protects sitting next to a line that has wrapped on
   its own. This lets the browser choose the breaks and only takes the one
   choice away that would read as a mistake.

   The guard never lifts, and that is deliberate. Two attempts at releasing it
   on the narrowest phones were both worse than the thing they were avoiding,
   because a released phrase does not fall back to a sensible break — it wraps
   wherever it happens to run out. At 380 it let go at 360, where the phrase
   would have fitted; at 350 it still let go at 344, and both times the result
   was "Find a Master of Mental / Maths", with one word alone on a line. What
   the narrow case actually needs is a little less type, not a broken name —
   see the floor under .bhero__text and .copypanel__text below. */
.nobreak{ white-space: nowrap; }

/* --t-h1 stops falling at 26px, which is right for a headline that may break
   anywhere and too big for the two that may not. Both measurements that
   decide this hold still across every phone — the headline is already pinned
   at its floor from 620px down, and --pad is already pinned at 20px a side —
   so the sum is simple: "Master of Mental Maths" is about 290px at 26px, and
   a 320px screen offers 280px. Three or four pixels off the type buys the
   margin, and nobody reads a hero headline and thinks it should have been
   26px rather than 23px. */
@media (max-width: 360px){
  .bhero__text .h1, .copypanel__text .h1{ font-size: clamp(22px, 7vw, 26px); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--text); font-size: var(--t-sm); font-weight: 700; line-height: 1.25;
  text-align: center; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active{ transform: translateY(1px); }
.btn svg{ flex: none; }

.btn--blue  { background: var(--blue);   color: #FFF; }
.btn--blue:hover  { background: var(--blue-deep);   color: #FFF; }
.btn--yellow{ background: var(--yellow); color: var(--navy); }
.btn--yellow:hover{ background: var(--yellow-deep); color: var(--navy); }
.btn--green { background: var(--green);  color: #FFF; }
.btn--green:hover { background: var(--green-deep);  color: #FFF; }
.btn--orange{ background: var(--orange); color: #FFF; }
.btn--orange:hover{ background: var(--orange-deep); color: #FFF; }
/* Destructive. The platform already uses --red for danger (.ract--danger,
   .pmenu__item--danger); this is the same signal as a filled button, for a
   confirm that ends in something irreversible. */
.btn--red   { background: var(--red);    color: #FFF; }
.btn--red:hover   { background: #B4181D;            color: #FFF; }
.btn--navy  { background: var(--navy);   color: #FFF; }
.btn--navy:hover  { background: #0C1833; color: #FFF; }

.btn--ghost{ background: var(--surface); border-color: var(--line); color: var(--navy); }
.btn--ghost:hover{ background: var(--ground); border-color: var(--muted); color: var(--navy); }

.btn--on-navy{ background: transparent; border-color: rgba(255,255,255,.34); color: #FFF; }
.btn--on-navy:hover{ background: rgba(255,255,255,.1); border-color: #FFF; color: #FFF; }

.btn--sm{ min-height: 38px; padding: 6px 16px; font-size: var(--t-xs); }
.btn--block{ display: flex; width: 100%; }

.btn-row{ display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--tight{ gap: 10px; }

/* Text link with an arrow and a rule under it */
.link-arrow{
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 5px; border-bottom: 2px solid var(--yellow);
  font-size: var(--t-sm); font-weight: 700; color: var(--navy);
}
.link-arrow:hover{ border-bottom-color: var(--orange); color: var(--navy); }
.section--navy .link-arrow{ color: #FFF; }
.section--navy .link-arrow:hover{ color: #FFF; border-bottom-color: #FFF; }

.link-plain{ display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); font-weight: 700; color: var(--blue); }
.link-plain:hover{ color: var(--blue-deep); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card{
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden;
}
.card__media{ width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.card__body{ flex: 1; display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 26px); }
.card__body > .btn{ margin-top: auto; }        /* every CTA on one line */
.card__body .h3{ margin-top: 10px; }
.card__body p{ margin: 10px 0 18px; color: var(--muted); }

.card--plain{ background: var(--surface); }
.card--pad{ padding: clamp(20px, 2.2vw, 28px); }
.card--ground{ background: var(--ground); border-color: var(--line); }

.section--ground .card{ background: var(--surface); }
.section--navy .card{ background: var(--navy-raised); border-color: rgba(255,255,255,.14); }
.section--navy .card .h3, .section--navy .card h3{ color: #FFF; }
.section--navy .card p{ color: var(--on-navy-3); }

/* Icon chip + label, used for the outcomes rail and feature lists */
.chip{ display: flex; align-items: center; justify-content: center; width: clamp(48px, 5vw, 56px); aspect-ratio: 1; border-radius: var(--r-pill); flex: none; }
.chip--yellow{ background: var(--yellow-chip); }
.chip--pink  { background: var(--chip-pink); }
.chip--violet{ background: var(--chip-violet); }
.chip--blue  { background: var(--blue-chip); }
.chip--green { background: var(--green-chip); }
.chip--orange{ background: var(--orange-chip); }
.chip--teal  { background: var(--chip-teal); }

.feature{ display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.feature__label{ font-size: var(--t-xs); font-weight: 700; line-height: 1.3; }

.feature-row{ display: flex; align-items: flex-start; gap: 14px; }
.feature-row .chip{ width: 44px; }

/* ==========================================================================
   Media
   ========================================================================== */

.media{ position: relative; border-radius: var(--r-xl); overflow: hidden; }
.media img{ width: 100%; height: 100%; object-fit: cover; }
.media--16x9{ aspect-ratio: 16 / 9; }
.media--4x3{ aspect-ratio: 4 / 3; }
.media--3x2{ aspect-ratio: 3 / 2; }
.media--1x1{ aspect-ratio: 1 / 1; }

/* The whole poster plays, so it reads as one button. */
.media[data-yt]{ cursor: pointer; }

/* Once the video is playing, the poster furniture steps out of its way. */
.media[data-playing] > img,
.media[data-playing] .play,
.media[data-playing] .media__tag,
.media[data-playing] .media__time{ display: none; }

.media__tag{
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 4px 14px; border-radius: var(--r-md);
  background: #FFF; color: var(--navy);
  font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.media__tag::before{ content: ""; width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--orange); flex: none; }
.media__time{
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px;
  border-radius: var(--r-md); background: rgba(20,38,77,.78); color: #FFF;
  font-size: 12px; font-weight: 700;
}

/* Floating pills over the hero photo */
.media__pills{ position: absolute; right: clamp(10px, 1.6vw, 18px); bottom: clamp(10px, 1.6vw, 18px); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
/* The same four words laid along the bottom instead of stacked in the corner,
   for a photograph with somebody standing in that corner. It takes the full
   width of the frame, so it wraps rather than running off the side. */
.media__pills--row{
  left: clamp(10px, 1.6vw, 18px);
  flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: center;
  gap: 8px 10px;
}
.media__pill{ padding: 6px 14px; border-radius: var(--r-sm); font-family: var(--display); font-size: clamp(10px, 1vw, 12px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.media__pill--blue{ background: var(--blue); color: #FFF; }
.media__pill--yellow{ background: var(--yellow); color: var(--navy); }
.media__pill--green{ background: var(--green); color: #FFF; }

/* White script in the corner of a photograph. A text-shadow alone only works
   while the corner behind it happens to be dark, and it is not something the
   photograph promises — the home hero's is a sunlit classroom wall, where the
   white went invisible and the yellow word with it. So the type sits in a
   wash of its own instead: anchored to the corner, padded out, and fading to
   nothing well before the middle of the picture. It is soft enough to leave
   the two photographs that were already dark there looking untouched. */
.media__script{
  position: absolute; left: 0; top: 0;
  padding: clamp(12px, 2vw, 20px) clamp(34px, 5vw, 64px) clamp(30px, 5vw, 58px) clamp(14px, 2vw, 24px);
  font-family: var(--script); font-weight: 700; font-size: clamp(18px, 2vw, 26px);
  line-height: 1.25; color: #FFF; text-shadow: 0 2px 12px rgba(20, 38, 77, .55);
  /* Radial from the corner, and fully transparent before it reaches the box's
     own edges — a linear one ran out of room and left a visible rectangle
     cut across the photograph. */
  background: radial-gradient(125% 125% at 0% 0%,
    rgba(20, 38, 77, .60) 0%,
    rgba(20, 38, 77, .34) 42%,
    rgba(20, 38, 77, .12) 62%,
    rgba(20, 38, 77, 0)   78%);
}
.media__script span{ color: var(--yellow); }

/* Play button */
.play{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border-radius: inherit;
}
.play__dot{
  display: flex; align-items: center; justify-content: center;
  width: clamp(54px, 6vw, 84px); aspect-ratio: 1; padding-left: 5px;
  border-radius: var(--r-pill); background: #FFF;
  transition: transform .2s ease;
}
.play:hover .play__dot{ transform: scale(1.06); }
.play--corner{ inset: auto; left: 16px; top: 16px; }
.play--corner .play__dot{ width: clamp(38px, 3.4vw, 46px); padding-left: 3px; }

/* ==========================================================================
   Horizontal snap rail — used where a row would otherwise crush on phones
   ========================================================================== */

.rail{
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(var(--rail-cols, 3), minmax(0, 1fr));
}
@media (max-width: 760px){
  .rail{
    display: flex; gap: 12px;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--pad);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar{ display: none; }
  .rail > *{ scroll-snap-align: start; flex: 0 0 var(--rail-w, 260px); }
  .rail--chips > *{ flex-basis: 116px; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header{
  position: sticky; top: 0; z-index: 60;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header.is-stuck{ box-shadow: var(--lift-stuck); }
.header__inner{ display: flex; align-items: center; gap: clamp(12px, 2vw, 40px); min-height: 64px; padding-block: 10px; }

.brand{ display: flex; align-items: center; gap: clamp(9px, 1vw, 12px); flex: none; color: var(--navy); }
.brand:hover{ color: var(--navy); }
.brand img{ width: clamp(36px, 3.4vw, 48px); height: auto; }
.brand__text{ display: flex; flex-direction: column; gap: 1px; }

/* The wordmark is one name, so both of its lines share one font, one size and
   one colour — the logo's own Montserrat ExtraBold in the logo's own red, every
   letter the same size. Only the line break differs between them, never the
   type, and "MASTER OF" is as red as "MENTAL MATHS". It stays on two lines: all
   22 characters on one line drops to 10px on a phone and still overflows 320. */
.brand__top,
.brand__name{
  font-family: var(--mark); font-weight: 800;
  font-size: clamp(14px, 1.45vw, 19px);
  letter-spacing: .03em; line-height: 1.12;
  color: var(--red);
  white-space: nowrap;
}
.brand__tag{ font-size: 9px; letter-spacing: .04em; line-height: 1; color: var(--muted); }

/* Use .wordmark anywhere the company name is set as a name rather than read as
   part of a sentence — it is the single place that decides how it looks. */
.wordmark{
  font-family: var(--mark); font-weight: 800;
  letter-spacing: .01em; line-height: 1.15;
  color: var(--red);
}

.header__right{ flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.header__utility{ display: flex; align-items: center; gap: 12px; }
.header__phone{ display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; font-size: var(--t-sm); font-weight: 700; color: var(--navy); white-space: nowrap; }

.nav{ display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.nav a{
  padding: 4px 0; border-bottom: 3px solid transparent;
  font-size: var(--t-sm); font-weight: 500; white-space: nowrap; color: var(--muted);
}
.nav a:hover{ color: var(--navy); }
.nav a[aria-current="page"]{ font-weight: 700; color: var(--navy); border-bottom-color: var(--orange); }

.header__mobile{ display: none; margin-left: auto; align-items: center; gap: 8px; }
.icon-btn{
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); flex: none; cursor: pointer;
}
.icon-btn--solid{ background: var(--navy); border-color: var(--navy); }

/* Below 1240 the nine-item nav cannot hold its line — go to the drawer.
   It was 1080 while the nav had eight items; Gallery is the ninth, and at
   1160 it pushed Contact and the Enquire button off the right-hand edge. */
@media (max-width: 1240px){
  .header__right{ display: none; }
  .header__mobile{ display: flex; }
  .brand__tag{ display: none; }
}

/* --- drawer ---------------------------------------------------------- */
.drawer{
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-columns: minmax(0, 1fr) min(86vw, 340px);
  visibility: hidden;
}
.drawer[data-open="true"]{ visibility: visible; }
.drawer__scrim{ background: rgba(20,38,77,.5); opacity: 0; transition: opacity .25s ease; }
.drawer[data-open="true"] .drawer__scrim{ opacity: 1; }
.drawer__panel{
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); padding: 16px 20px 28px;
  overflow-y: auto; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--lift-menu);
}
.drawer[data-open="true"] .drawer__panel{ transform: none; }
.drawer__head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer__nav{ display: flex; flex-direction: column; padding-block: 8px; }
.drawer__nav a{
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--navy);
}
.drawer__nav a[aria-current="page"]{ color: var(--orange); }
.drawer__actions{ display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
body.is-locked{ overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{ background: var(--ground); padding-block: clamp(36px, 5vw, 64px); }
.hero__grid{ display: grid; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (min-width: 900px){ .hero__grid{ grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
/* A shallow hero, for a page whose content is the point and whose head is
   only a label — the gallery. Same band, same type, less of it. */
.hero--slim{ padding-block: clamp(24px, 2.8vw, 38px); }

.hero h1 span.is-yellow{ color: var(--yellow-ink); }
.hero h1 span.is-blue{ color: var(--blue); }

/* ==========================================================================
   The 8-level arrow bar
   ========================================================================== */

.levels{ display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.levels__step{
  display: flex; align-items: center; justify-content: center;
  min-height: 76px; padding: 12px 24px 12px 20px;
  font-family: var(--display); font-size: clamp(12px, 1.1vw, 15px); font-weight: 700; text-align: center;
  color: #FFF;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
}
/* The two ends of the bar are capped with a curve rather than a corner — the
   client asked for both on 16 October 2026; the first had a small one and the
   last had none at all.

   clip-path and border-radius both clip, and what is drawn is their
   INTERSECTION: the polygon takes the chevron out of the inner edge and the
   radius rounds the outer one. Neither can do the other's half. */
.levels__step:first-child{
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  border-top-left-radius: var(--r-lg); border-bottom-left-radius: var(--r-lg);
}
.levels__step:last-child{
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%);
  border-top-right-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg);
}

/* Below 900 the arrows are unreadable side by side — become a stacked ladder */
@media (max-width: 900px){
  .levels{ grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .levels__step{
    justify-content: flex-start; min-height: 54px; padding: 10px 18px;
    border-radius: var(--r-md); clip-path: none; text-align: left;
  }
  .levels__step:first-child, .levels__step:last-child{ clip-path: none; border-radius: var(--r-md); }
}

/* ---- the About page's eight levels, bracketed into four named stages ----
   Used on About only; the home page's six-step bar is untouched. The stages
   are uneven — 2, 2, 3, 1 — so the columns are sized in fr to match, which
   keeps every step about the same width across the whole map. These rules
   must stay after the block above: several have the same specificity as the
   rules they override, so source order is what decides. */
.levelmap{
  display: grid; grid-template-columns: 2fr 2fr 3fr 1fr;
  gap: clamp(10px, 1.1vw, 16px); margin-top: 30px;
}
.levelmap__group{
  display: grid; grid-template-rows: auto auto minmax(20px, auto); align-content: start;
  gap: 10px; padding: 12px clamp(8px, .9vw, 12px) 10px;
  border: 1.6px dotted #AFC1DE; border-radius: 18px;
}
.levelmap__name{
  text-align: center; font-family: var(--display); font-weight: 800;
  font-size: clamp(12px, 1.05vw, 14px); letter-spacing: .03em; color: var(--navy);
}
.levelmap__note{ text-align: center; font-size: var(--t-xs); color: var(--muted); }
.levels--group{ grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }

/* Inside the map every step keeps the full arrow, including the last one —
   only the very first step of the first stage gets a flat left edge. */
.levelmap .levels__step:first-child,
.levelmap .levels__step:last-child{
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
  border-radius: 0;
}
.levelmap__group:first-child .levels__step:first-child{
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  border-top-left-radius: var(--r-md); border-bottom-left-radius: var(--r-md);
}

@media (max-width: 900px){
  /* Stacked, the stages become their own blocks — but the steps keep the
     arrow shape rather than falling back to the plain pills the home page's
     bar uses, so the phone shows the same design as the desktop. A stage's
     levels always stay on one row; only the notch and the type come down. */
  .levelmap{ grid-template-columns: minmax(0, 1fr); }
  .levelmap__group{ grid-template-rows: auto auto auto; }
  .levelmap .levels--group{ gap: 0; }
  .levelmap .levels__step{
    justify-content: center; text-align: left;
    min-height: 52px; padding: 10px 16px 10px 14px;
    font-size: clamp(11.5px, 3.1vw, 14px);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
    border-radius: 0;
  }
  /* Each stage now starts its own row, so its first step takes the flat edge —
     a leading notch there would be a wedge cut out of nothing. */
  .levelmap .levels--group > li:first-child{
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
    border-top-left-radius: var(--r-md); border-bottom-left-radius: var(--r-md);
  }
  .levelmap .levels--group > li:only-child{
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field{ display: flex; flex-direction: column; gap: 7px; }
.field__label{ font-size: var(--t-xs); line-height: 1.35; font-weight: 700; color: var(--navy); }
.field__hint{ font-size: 12px; color: var(--muted); }
.input, .select, .textarea{
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 16px;                       /* 16px stops iOS zooming on focus */
  color: var(--navy);
}
.input::placeholder, .textarea::placeholder{ color: var(--muted); }
.input:focus, .select:focus, .textarea:focus{ background: var(--surface); border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(30,79,193,.16); }
.textarea{ min-height: 120px; resize: vertical; }
.select{ appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6B8A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

.form-grid{ display: grid; gap: 16px; }
@media (min-width: 640px){ .form-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-grid .field--full{ grid-column: 1 / -1; }

/* Every label sits the same 7px above its control. When one label in a row
   wraps to a second line, the control beside it would be left hanging half a
   line high — so the spare height goes above the shorter field's control
   instead of below it, which puts the pair back on one line without padding
   the rows that do not wrap. A field carrying a hint is left alone: its own
   text sits under the control, so it has no spare height to give. */
@media (min-width: 640px){
  .form-grid--2 > .field > .input,
  .form-grid--2 > .field > .select,
  .form-grid--2 > .field > .textarea,
  .form-grid--2 > .field > .radio-row{ margin-top: auto; }
  .form-grid--2 > .field:has(.field__hint) > .select{ margin-top: 0; }
  /* And the field beside it must not take that hint's height either: the extra
     height is below the control, not above it, so pushing this control down
     would leave the two labels level but the two controls a line apart. */
  .form-grid--2 > .field:has(+ .field .field__hint) > .input,
  .form-grid--2 > .field:has(+ .field .field__hint) > .select,
  .form-grid--2 > .field:has(.field__hint) + .field > .input,
  .form-grid--2 > .field:has(.field__hint) + .field > .select{ margin-top: 0; }
}

/* A Yes/No pair standing in a grid row next to a select: give it the height
   of that select and centre the choices in it, so the two columns read as one
   row rather than two things that happen to be side by side. */
.radio-row{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; min-height: 48px; }

/* A field switched off because of an earlier answer. */
.field.is-locked{ opacity: .55; }
.input:disabled, .select:disabled, .textarea:disabled{ cursor: not-allowed; background: var(--ground); color: var(--muted); }

.check{ display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-xs); color: var(--muted); }
.check input{ width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }

/* ==========================================================================
   Auth pages — a centred panel on the ground colour
   ========================================================================== */

.auth{ background: var(--ground); padding-block: clamp(32px, 5vw, 72px); }
.auth__panel{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); }

/* ==========================================================================
   Stats, quotes, FAQ, steps
   ========================================================================== */

.stat__num{ font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; color: var(--navy); }
.stat__label{ margin-top: 4px; font-size: var(--t-xs); color: var(--muted); }
.section--navy .stat__num{ color: var(--yellow); }
.section--navy .stat__label{ color: var(--on-navy-3); }

.stars{ display: flex; gap: 3px; }

.quote{ margin: 0; }
.quote blockquote{ margin: 16px 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--navy); }
.quote figcaption{ margin-top: 16px; font-size: var(--t-sm); font-weight: 700; color: var(--muted); }

.faq{ border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq + .faq{ margin-top: 12px; }
.faq summary{ display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-family: var(--display); font-size: var(--t-body); font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{ content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq[open] summary::after{ transform: rotate(-135deg) translate(-3px, -3px); }
.faq__body{ padding: 0 20px 20px; color: var(--muted); }

.steps{ counter-reset: step; }
.step{ display: flex; gap: 16px; }
.step__num{
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; border-radius: var(--r-pill);
  background: var(--blue); color: #FFF; font-family: var(--display); font-weight: 800; font-size: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer{ background: var(--navy); color: var(--on-navy); }
.footer a{ color: var(--on-navy-2); }
.footer a:hover{ color: #FFF; }
.footer__grid{ display: grid; gap: clamp(28px, 3vw, 28px); padding-block: clamp(40px, 5vw, 56px) clamp(28px, 3vw, 40px); }
@media (min-width: 720px){ .footer__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px){ .footer__grid{ grid-template-columns: minmax(0,1.55fr) minmax(0,.95fr) minmax(0,1.05fr) minmax(0,1.4fr); } }
@media (min-width: 1240px){ .footer__grid{ grid-template-columns: minmax(0,1.55fr) minmax(0,.95fr) minmax(0,1.05fr) minmax(0,1.4fr) minmax(0,.95fr); } }

.footer__title{ font-family: var(--display); font-weight: 700; font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.footer__links{ display: flex; flex-direction: column; gap: 9px; margin-top: 16px; font-size: 15px; }
/* The wordmark keeps its red here too, but red on the navy band is 2.4:1 and
   genuinely hard to read — so the footer lockup sits on a light plaque rather
   than being recoloured off-brand. */
.footer .brand{
  display: inline-flex;
  padding: 13px 18px 13px 14px;
  border-radius: var(--r-lg);
  background: #FFF;
}
.footer .brand__tag{ display: none; }
.footer__tagline{
  margin-top: 14px; font-size: 12px; letter-spacing: .04em;
  color: var(--on-navy-4);
}
.footer__social{ display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.footer__social a{ display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--navy-raised); }
.footer__social a:hover{ background: var(--blue); }
.footer__sign{ display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 1240px){ .footer__sign{ align-items: flex-end; text-align: right; } }
.footer__rule{ margin-top: 8px; width: 150px; height: 3px; border-radius: 2px; background: var(--yellow); }
.footer__bar{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 18px; border-top: 1px solid var(--navy-line);
  font-size: var(--t-sm); color: var(--on-navy-4);
}
.footer__bar a{ color: var(--on-navy-4); }
.footer__legal{ display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* Build credit, sitting in the same line as the copyright */
.footer__dot{ margin-right: 8px; opacity: .5; }
.footer__credit{ text-decoration: underline; text-underline-offset: 2px; }
.footer__bar .footer__credit:hover{ color: #FFF; }
.authfooter .footer__credit:hover{ color: var(--navy); }

/* Contact block used in the footer and on the contact page */
.contact-line{ display: flex; align-items: center; gap: 10px; font-size: 15px; }
.contact-line--phone{ font-family: var(--display); font-size: clamp(17px, 1.6vw, 18px); font-weight: 700; color: #FFF; }
/* The opening hours carry no icon, so they would start in the icon column and
   sit out of line under three rows of text. Indent them by the icon and its
   gap instead. */
.contact-line__note{ padding-left: 26px; }

/* ==========================================================================
   Sticky mobile CTA — phones only, sits above the footer
   ========================================================================== */

.sticky-cta{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; gap: 10px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (max-width: 720px){
  .sticky-cta{ display: flex; }
  body{ padding-bottom: 76px; }
}
/* The primary action takes twice the width of "Call Us", which needs very
   little — without that, a longer label like "Start Your Own Centre" wraps to
   two lines on a phone and the whole bar grows to match. */
.sticky-cta .btn{ min-height: 46px; }
.sticky-cta .btn:first-child{ flex: 2; }
.sticky-cta .btn:last-child{ flex: 1; }
/* On the narrowest phones even two thirds of the bar is not quite enough for
   that label, so the padding comes in rather than letting it break. */
@media (max-width: 380px){
  .sticky-cta .btn{ padding-inline: 10px; font-size: 13px; }
}

/* ==========================================================================
   Entrance animation — opt-in, and off entirely for reduced motion
   ========================================================================== */

@keyframes riseIn{ from{ opacity: 0; transform: translateY(16px); } to{ opacity: 1; transform: none; } }
.rise{ animation: riseIn .6s ease-out both; }

/* Scroll reveal. site.js tags the rows of every band with [data-reveal] and
   a --rv-d stagger, then adds .is-in as each arrives.

   Two things keep this from ever stranding content out of sight: nothing is
   hidden until site.js has set [data-reveal-on] on <html>, which it only does
   once its observer is running; and the reveal is a transition, so even if
   the frame that would start it is never painted the element still lands on
   its end value. The card hover properties ride along in the same list,
   because a transition list holds one entry per property and this rule would
   otherwise replace the one on .card. */
html[data-reveal-on] [data-reveal]{ opacity: 0; transform: translateY(18px); }
html[data-reveal-on] [data-reveal].is-in{
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.22,.7,.3,1) var(--rv-d, 0ms),
              transform .6s cubic-bezier(.22,.7,.3,1) var(--rv-d, 0ms),
              translate .3s cubic-bezier(.22,.7,.3,1),
              box-shadow .3s ease-out, border-color .3s ease-out;
}

/* The band's two containers are triggers for their children's own motion —
   they must not also move themselves. */
html[data-reveal-on] .mtc-head[data-reveal],
html[data-reveal-on] .mtc-cards[data-reveal]{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  html[data-reveal-on] [data-reveal]{ opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print{
  .header, .drawer, .sticky-cta, .footer__social{ display: none !important; }
  body{ padding-bottom: 0; }
  .section, .hero{ padding-block: 12pt; break-inside: avoid; }
}

/* ==========================================================================
   Touch targets — on a phone every link has to be reachable with a thumb
   ========================================================================== */

@media (max-width: 768px){
  .footer__links{ gap: 2px; }
  .footer__links > a{ display: flex; align-items: center; min-height: 40px; }
  .footer__legal a{ display: inline-flex; align-items: center; min-height: 40px; }
  .link-arrow, .link-plain{ min-height: 40px; }
  .brand{ min-height: 44px; }
  .nav a{ min-height: 40px; }
}

/* ==========================================================================
   Refinements found while checking the real breakpoints
   ========================================================================== */

/* A copy column that is deliberately narrower than its partner (the outcomes
   row: a short intro beside six chips). */
@media (min-width: 900px){
  .split--copy-narrow{ grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); }
}

/* The hero's three CTAs need one line; give the copy column the extra width
   once there is room for it. */
@media (min-width: 1100px){
  .hero__grid{ grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
  .btn-row--hero > .btn{ padding-inline: 16px; }
}

/* The hero photo keeps the portrait-ish crop of the original board on desktop
   and a 3:2 crop on phones, where a tall image pushes the fold too far down. */
.media--hero{ aspect-ratio: 3 / 2; border-radius: 24px; }
@media (min-width: 900px){ .media--hero{ aspect-ratio: 620 / 512; } }

/* Hero CTAs on a phone: the primary action takes the full width, the two
   secondary ones share the line below it. */
@media (max-width: 560px){
  .btn-row--hero{ display: grid; grid-template-columns: 1fr 1fr; }
  .btn-row--hero > .btn{ width: 100%; padding-inline: 12px; }
  .btn-row--hero > .btn:first-child{ grid-column: 1 / -1; }
}

/* ==========================================================================
   Page furniture shared by the inner pages
   ========================================================================== */

/* A page heading: eyebrow, title, yellow rule, standfirst. */
.page-hero{ background: var(--ground); padding-block: clamp(32px, 4.5vw, 56px); }
.rule{ margin-top: 12px; width: 72px; height: 4px; border-radius: 2px; background: var(--yellow); }

/* h2 on the left, a note on the right that drops below it when it cannot fit */
.section-head{ display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.section-head > :last-child{ font-size: var(--t-sm); color: var(--muted); }

/* Icon + number + label, sitting in a row of three or five */
.stat-inline{ display: flex; align-items: center; gap: 12px; }
.stat-inline svg{ flex: none; }
.stat-inline b{ display: block; font-family: var(--display); font-size: clamp(19px, 1.9vw, 22px); font-weight: 800; line-height: 1; }
.stat-inline span{ display: block; margin-top: 3px; font-size: var(--t-xs); color: var(--muted); }
.stat-col{ display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.stat-col b{ font-family: var(--display); font-size: clamp(19px, 1.9vw, 22px); font-weight: 800; line-height: 1; }
.stat-col span{ font-size: var(--t-xs); line-height: 1.4; color: var(--muted); }

/* A tinted tile: icon, title, one line of copy */
.tile{ border-radius: var(--r-xl); padding: clamp(18px, 1.8vw, 22px) clamp(16px, 1.6vw, 20px); }
.tile h3, .tile .tile__title{ margin-top: 14px; font-family: var(--display); font-size: clamp(14px, 1.2vw, 15px); font-weight: 700; line-height: 1.3; color: var(--navy); }
.tile p{ margin-top: 8px; font-size: var(--t-xs); line-height: 1.55; color: var(--muted); }
/* Same problem as the split card: 13px suits six tiles across a desktop row,
   not two across a phone. */
@media (max-width: 620px){
  .tile h3, .tile .tile__title{ font-size: 15.5px; }
  .tile p{ font-size: 14.5px; line-height: 1.5; }
}
/* Each tile carries its own accent as --tile-ink; the icon inside is drawn in
   currentColor, so one variant class colours the whole icon. */
.tile--pink{ background: var(--chip-pink); --tile-ink: var(--icon-pink); }
.tile--green{ background: var(--green-chip); --tile-ink: var(--green); }
.tile--blue{ background: var(--blue-chip); --tile-ink: var(--blue); }
.tile--yellow{ background: var(--yellow-chip); --tile-ink: var(--yellow-ink); }
.tile--violet{ background: var(--chip-violet); --tile-ink: var(--icon-violet); }
.tile--orange{ background: var(--orange-chip); --tile-ink: var(--orange); }

/* The icon sits bare on the tint, no plate behind it, at the 26px it has
   always been. It carries its weight through colour rather than size: two-tone,
   a soft filled shape under a crisp stroke, drawn in currentColor from
   --tile-ink. A pass with 46px white chip plates behind them was rejected. */
.tile__icon{
  display: inline-flex; color: var(--tile-ink);
}
.tile__icon svg{ width: 26px; height: 26px; display: block; }
.tile--blue-tint{ background: var(--blue-tint); }


/* Image beside copy inside one card. Three of these share a row, so the copy
   column only has room to sit beside the image on a wide desktop — below 1280
   the image goes on top and the copy takes the full card width. Side by side
   under that, the column fell to ~95–175px, which broke every CTA label onto a
   second line and left the paragraphs four words wide. */
.split-card{ display: grid; grid-template-columns: clamp(110px, 10vw, 132px) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.split-card > img{ width: 100%; height: 100%; object-fit: cover; }
.split-card__body{ display: flex; flex-direction: column; align-items: flex-start; padding: clamp(18px, 2vw, 24px); }
/* The button is pinned to the bottom so the CTAs across a row line up however
   long each card's copy runs. The margin-bottom keeps a gap in the shortest
   card, where `auto` resolves to 0 — and the button must carry no inline
   margin-top, which would win over `auto` and break the alignment. */
.split-card__body p{ margin-bottom: 18px; }
.split-card__body .btn{ margin-top: auto; }

/* The card's type was sized for the narrow column it had when the image sat
   beside the copy. Once the card stacks it has the card's full width, so the
   copy steps up to a comfortable reading size on a phone instead of staying
   at the 14px that only ever made sense in a 170px column. */
.split-card__body h3{ font-size: 17px; }
.split-card__body p{ font-size: var(--t-sm); }
@media (max-width: 1279px){
  .split-card__body h3{ font-size: 18px; }
  .split-card__body p{ font-size: 15px; }
}
@media (max-width: 620px){
  .split-card__body h3{ font-size: 19px; }
  .split-card__body p{ font-size: 16px; line-height: 1.62; }
  .split-card__body .btn{ font-size: 14px; min-height: 44px; }
}
@media (max-width: 1279px){
  .split-card{ grid-template-columns: minmax(0, 1fr); }
  .split-card > img{ aspect-ratio: 16 / 9; }
}

/* Small tinted pill, used for the teaching-philosophy chain */
.pill{ display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: var(--r-sm); font-size: var(--t-xs); font-weight: 700; }
.pill-chain{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Where the client still owes us artwork */
.placeholder{
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px; border: 1px dashed #A9C2EE; border-radius: var(--r-lg);
  background: var(--blue-tint); font-size: 11px; line-height: 1.35; color: var(--muted); text-align: center;
}

/* A quote card with a decorative mark */
.pullquote{ background: var(--blue-tint); border-radius: 24px; padding: clamp(24px, 3vw, 36px); }
.pullquote blockquote{ margin: 14px 0 0; font-family: var(--script); font-weight: 600; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.35; color: var(--navy); }

/* Centred closing band with a script headline */
.closing{ text-align: center; }
.closing .script{ font-size: clamp(28px, 4vw, 40px); color: var(--yellow); }
.closing .btn-row{ justify-content: center; }

/* A hairline between two equal columns, dropped when they stack. */
@media (min-width: 900px){
  .rule-right{ padding-right: clamp(28px, 4vw, 60px); border-right: 1px solid var(--line); }
}

/* Milestone row: a connecting line behind the chips, drawn only while the
   six steps are actually on one line. */
.milestones{ position: relative; }
@media (min-width: 1100px){
  .milestones::before{
    content: ""; position: absolute; left: 8%; right: 8%; top: 28px; height: 2px;
    background: #C6D6F0; z-index: 0;
  }
  .milestones > li{ position: relative; z-index: 1; }
}

/* Values row: hairlines between items, but never a leading one. */
@media (min-width: 720px){
  .values > li + li{ border-left: 1px solid var(--line); }
}

/* Franchise "meaningful movement": copy, pull-quote and photo across the band. */
.movement{ display: grid; gap: clamp(24px, 3vw, 40px); align-items: center; }
@media (min-width: 1000px){
  .movement{ grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, .75fr); }
}

/* The franchise/schools hero puts a long form beside the pitch; give the form
   the narrower half once there is room, and let it lead on a phone. */
@media (min-width: 1120px){
  .split--form{ grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}

/* Numbered step heading inside a long form */
.form-step{ margin-top: 18px; font-family: var(--display); font-size: var(--t-sm); font-weight: 800; color: var(--navy); }
.form-step span{ color: var(--green); }

/* A row of checkboxes that wraps instead of overflowing */
.check-row{ display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* File picker styled as a dashed drop zone; the real input stays focusable. */
.file-drop{
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 10px;
  background: var(--ground); border: 1px dashed #A9C2EE; border-radius: var(--r-md);
  cursor: pointer;
}
.file-drop__btn{
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px;
  border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--navy); flex: none;
}
.file-drop input[type="file"]{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop:focus-within{ border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,79,193,.16); }

/* Breadcrumb */
.crumbs{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--muted); }
.crumbs a{ color: var(--muted); }
.crumbs a:hover{ color: var(--navy); }
.crumbs [aria-current]{ color: var(--navy); }

/* Bulleted list with a green dot */
.bullet{ display: flex; align-items: flex-start; gap: 10px; line-height: 1.55; color: var(--muted); }
.bullet::before{ content: ""; width: 7px; height: 7px; margin-top: 8px; border-radius: 4px; background: var(--green); flex: none; }

/* Time-slot picker: a radio dressed as a selectable chip */
.slot-grid{ display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.slot{
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ground);
  font-size: 15px; color: var(--navy); cursor: pointer;
}
.slot input{ width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.slot:has(input:checked){ background: var(--surface); border-color: var(--navy); font-weight: 600; }
.slot:has(input:disabled){ background: var(--blue-tint); color: var(--muted); cursor: not-allowed; }
.slot:focus-within{ border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,79,193,.16); }

/* ==========================================================================
   Find a centre — the hero promises, the search bar, the cards and the map
   ========================================================================== */
.sr-only{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.usp-row{ list-style: none; display: grid; gap: 16px 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.usp{ display: flex; flex-direction: column; gap: 9px; font-size: var(--t-sm); font-weight: 600; line-height: 1.4; color: var(--navy); }
.usp__icon{ display: inline-flex; align-items: center; justify-content: center; width: 44px; aspect-ratio: 1; border-radius: var(--r-pill); }

/* The search bar. It wraps to two rows on a tablet and stacks on a phone,
   and the input keeps the whole spare width at every size. */
.centre-search{
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px;
  padding: clamp(16px, 2vw, 20px); border-radius: var(--r-xl);
  background: var(--blue-tint); border: 1px solid #D5E2FB;
}
.centre-search__label{ font-family: var(--display); font-weight: 800; font-size: clamp(16px, 1.8vw, 19px); color: var(--navy); }
.centre-search .input{ flex: 1 1 260px; background: var(--surface); }

@media (max-width: 560px){
  .centre-search .chip{ display: none; }

  .centre-search .btn{ width: 100%; }
}

/* Type filter and the two selects. */
.filter-row{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.seg{ display: flex; flex-wrap: wrap; gap: 10px; }
.seg__btn{
  min-height: 42px; padding: 8px 18px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--display); font-size: var(--t-sm); font-weight: 700; color: var(--navy); cursor: pointer;
}
.seg__btn:hover{ border-color: var(--blue); }
.seg__btn.is-on{ background: var(--green-tint); border-color: var(--green); color: var(--green-deep); }
.seg__btn:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }
.filter-row__selects{ display: flex; flex-wrap: wrap; gap: 10px; }
.filter-row__selects .select{ min-width: 190px; background: var(--surface); }

/* Four compact tiles across on a desktop, stepping down to three, two and
   one as the window narrows. */
.centre-list{ display: grid; gap: clamp(12px, 1.4vw, 16px); grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
@media (min-width: 820px){ .centre-list{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px){ .centre-list{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.centre-card{ display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.centre-card__media{ position: relative; aspect-ratio: 16 / 10; background: var(--blue-tint); }
.centre-card__media img{ width: 100%; height: 100%; object-fit: cover; }
.centre-card__body{ display: flex; flex-direction: column; flex: 1; padding: 15px 16px 16px; }
/* The cards in a row are the same height, so the button sits on one line
   across all three however long the address above it runs. */
.centre-card__cta{ margin-top: auto; padding-top: 14px; }

.centre-meta{ list-style: none; margin-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.centre-meta li{ display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.centre-meta__dot{ display: inline-flex; align-items: center; justify-content: center; width: 22px; aspect-ratio: 1; border-radius: var(--r-pill); flex: none; }

/* ==========================================================================
   Thank-you page — one layout, six sets of words (see site.js)
   ========================================================================== */
/* --- The band the card floats on -----------------------------------------
   One photograph anchored left, fading into the sky wash on both edges, so
   the card can sit on the quiet right-hand side of it at any width. */
.conf-hero{
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(105deg, #F4FAFE 0%, var(--sky-1) 44%, var(--sky-2) 100%);
}
/* The banner: the same photograph blown up and thrown out of focus, so the
   band is a photograph edge to edge the way the artwork is. The artwork's
   own right-hand side is an out-of-focus room, and this is the only honest
   way to get it — the crops are 230-340px wide, because everything else in
   that band has hand-writing or the card drawn over it, and one stretched
   across 1300px sharp would be a smear. Out of focus, it reads as depth.
   An <img> rather than a background-image: a relative url() inside a custom
   property is resolved against the sheet that uses it in some engines and
   the document in others, and site.css sits a directory away from the page. */
.conf-hero__wash{
  position: absolute; inset: -8%; z-index: 0;
  width: 116%; height: 116%;
  object-fit: cover; object-position: 50% 30%;
  filter: blur(28px) saturate(.92) brightness(1.16);
}
/* and a wash over it, or the card's shadow and the hand-written lines have
   nothing quiet to sit on */
.conf-hero::after{
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg,
    rgba(248,252,255,.88) 0%, rgba(241,249,254,.52) 24%, rgba(236,247,253,.48) 52%, rgba(228,244,254,.76) 100%);
}
.conf-hero__photo{
  position: absolute; top: 0; bottom: 0; z-index: 1;
  left: clamp(0px, 12.6vw, 168px);
  width: clamp(240px, 25vw, 340px); height: 100%;
  object-fit: cover; object-position: 50% 42%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 64%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 64%, transparent 100%);
}
.conf-hero__inner{
  position: relative; z-index: 2;
  display: flex; justify-content: flex-end; align-items: center;
  min-height: clamp(330px, 32vw, 430px);
  padding-block: clamp(12px, 1.5vw, 20px);
  padding-inline: clamp(16px, 2.2vw, 28px) clamp(16px, 11vw, 144px);
}

/* --- The card ------------------------------------------------------------ */
.conf-card{
  width: min(580px, 53%);
  background: var(--surface);
  border-radius: clamp(20px, 2.2vw, 28px);
  padding: clamp(18px, 2vw, 24px) clamp(20px, 3vw, 40px) clamp(18px, 2vw, 26px);
  border-color: transparent;
  box-shadow: 0 26px 60px -26px rgba(20,38,77,.30), 0 2px 6px rgba(20,38,77,.05);
  text-align: center;
}
/* .card is a flex column, so text-align cannot centre the disc — the margin can. */
.conf-card__mark{
  display: inline-flex; align-items: center; justify-content: center; margin-inline: auto;
  width: clamp(58px, 5.6vw, 74px); aspect-ratio: 1;
  border-radius: var(--r-pill); background: var(--mark-tint);
}
.conf-card__mark svg{ width: 46%; height: 46%; }
.conf-card h1{
  margin-top: clamp(8px, .9vw, 11px);
  font-family: var(--display); font-weight: 800; line-height: 1.05;
  font-size: clamp(28px, 3.1vw, 40px); color: var(--navy);
}
.conf-card__sub{
  margin-top: clamp(8px, .9vw, 12px);
  font-family: var(--display); font-weight: 800; line-height: 1.25;
  font-size: clamp(17px, 1.65vw, 21px); color: var(--green-deep);
}
/* Both measures are held short on purpose: the artwork breaks this copy into
   two and three short centred lines, which a full-width measure will not do. */
.conf-card__lead{
  margin-top: clamp(10px, 1.1vw, 14px); max-width: 38ch; margin-inline: auto;
  font-size: clamp(14.5px, 1.25vw, 16.5px); line-height: 1.42; color: var(--navy);
  text-wrap: balance;
}

/* The confirmation line: a quiet green panel, not a second heading. */
.conf-note{
  display: flex; align-items: center; gap: clamp(14px, 2.3vw, 30px);
  margin-top: clamp(12px, 1.4vw, 18px);
  padding: clamp(12px, 1.3vw, 15px) clamp(16px, 1.9vw, 25px);
  border-radius: var(--r-lg); background: var(--green-tint); text-align: left;
}
.conf-note svg{ flex: none; width: clamp(36px, 3.6vw, 48px); height: auto; }
.conf-note p{ max-width: 29ch; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.5; color: var(--navy); }

/* --- The two hand-written notes on the band ------------------------------
   One handwritten line, in the corner beside the photograph. */
.conf-script{
  position: absolute; z-index: 3;
  font-family: var(--script); font-weight: 700; color: var(--navy);
}
.conf-script{
  left: clamp(16px, 2.6vw, 34px); top: clamp(30px, 4.4vw, 58px);
  max-width: clamp(140px, 16vw, 216px);
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.08; transform: rotate(-4deg);
}
/* These corners hold anything from "Great Choice!" to a five-line sentence,
   and one size cannot serve both — at the short one's 44px the long one runs
   clean across the photograph. site.js buckets them by length. */
.conf-script[data-len="medium"]{ font-size: clamp(21px, 2.3vw, 30px); line-height: 1.16; }
.conf-script[data-len="long"]  { font-size: clamp(17px, 1.85vw, 25px); line-height: 1.22; }
.conf-script .conf-heart{ margin: 8px 0 0 clamp(20px, 3.6vw, 48px); }
.conf-heart{ display: block; width: clamp(18px, 1.7vw, 23px); height: auto; color: var(--red); }


.conf-plane{
  position: absolute; z-index: 1; right: clamp(8px, 1.2vw, 16px);
  top: clamp(190px, 20.5vw, 268px); width: clamp(76px, 8vw, 106px); height: auto;
  color: var(--navy);
}

/* --- What happens next --------------------------------------------------- */
.conf-panel{ border-radius: var(--r-xl); padding: clamp(15px, 1.5vw, 20px) clamp(14px, 2.3vw, 30px); }
.conf-panel--sky{ background: var(--sky-tint); }
.conf-panel--cream{ background: var(--cream); }

.conf-steps__title{
  font-family: var(--display); font-weight: 800; text-align: center; color: var(--navy);
  font-size: clamp(23px, 2.6vw, 32px); line-height: 1.2;
}
.conf-steps{
  counter-reset: step; list-style: none;
  display: grid; gap: clamp(24px, 2.6vw, 30px) clamp(16px, 2vw, 26px);
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(10px, 1.1vw, 14px);
}
.conf-step{ counter-increment: step; text-align: center; }
.conf-step__icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(60px, 6.1vw, 80px); aspect-ratio: 1; border-radius: var(--r-pill);
}
.conf-step__icon svg{ width: 42%; height: 42%; }
.conf-step:nth-child(1) .conf-step__icon{ background: var(--step-pink);   color: var(--icon-pink); }
.conf-step:nth-child(2) .conf-step__icon{ background: var(--step-blue);   color: var(--blue); }
.conf-step:nth-child(3) .conf-step__icon{ background: var(--step-yellow); color: var(--navy); }
.conf-step:nth-child(4) .conf-step__icon{ background: var(--step-green);  color: var(--green); }
.conf-step h3{
  margin-top: clamp(9px, 1vw, 13px);
  font-family: var(--display); font-weight: 800; line-height: 1.3;
  font-size: clamp(16px, 1.4vw, 17.5px); color: var(--navy);
}
.conf-step h3::before{ content: counter(step) ". "; }
.conf-step p{
  margin-top: clamp(6px, .8vw, 10px); max-width: 27ch; margin-inline: auto;
  font-size: clamp(14.5px, 1.25vw, 15.5px); line-height: 1.45; color: var(--navy);
}

/* --- Need help ----------------------------------------------------------- */
.conf-help{ display: grid; gap: clamp(18px, 2.2vw, 28px); align-items: center; grid-template-columns: minmax(0, 1fr); }
/* Two dressings for the same strip: the demo artwork stands the illustrated
   girl next to the line, the other three fly a paper plane at it and run a
   marker highlight under the words. One of the pair is always hidden. */
.conf-help__art{ display: flex; align-items: flex-end; gap: clamp(8px, 1.4vw, 18px); }
.conf-help__art[data-art="girl"]  .conf-help__plane{ display: none; }
.conf-help__art[data-art="plane"] .conf-help__girl { display: none; }
.conf-help__art[data-art="plane"]{ align-items: center; gap: clamp(10px, 1.8vw, 26px); }
/* no illustration taking half the column, so the line can run wider — at the
   girl's 13ch these break into four stubs one or two words long */
.conf-help__art[data-art="plane"] .conf-help__script{ max-width: 19ch; }
.conf-help__plane{ width: clamp(76px, 8.4vw, 112px); height: auto; flex: none; color: var(--navy); }
/* box-decoration-break so the stroke runs under every line, not just the first */
.conf-help__art[data-art="plane"] .conf-help__script span{
  padding: 2px 10px;
  background: linear-gradient(var(--sticky), var(--sticky)) no-repeat center / 100% 78%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* A photograph has edges where the cut-out illustration did not, so it is
   framed instead of bled off the panel: a circle standing on the cream, sized
   to sit beside the handwriting rather than tower over it. The crop is set
   below, so the framing is retuned in this file and not by recutting the
   photograph. */
.conf-help__girl{
  width: clamp(112px, 12vw, 152px); aspect-ratio: 1; flex: none;
  position: relative; overflow: hidden; border-radius: 50%;
  border: 3px solid #FFFFFF; box-shadow: 0 6px 18px rgba(20, 38, 77, .16);
}
/* object-fit cannot zoom a 2:3 portrait into a circle — cover already fills the
   width, so there is no horizontal slack left to pan with and her head lands
   against the top edge. The picture is therefore laid out by hand: the frame
   shows the 480px square at (460,240) of the 1000x1500 original, which is her
   head and the top of the board. 1000/480 = 208.3% wide, offset by the same
   scale. Retune the crop by moving those three numbers together. */
.conf-help__girl img{
  position: absolute; width: 208.3%; height: auto;
  left: -95.8%; top: -50%;
  /* the base rule caps every image at 100% of its box; this one is
     deliberately wider than its frame, so it opts out. */
  max-width: none;
}
/* The illustration stood on the panel floor; a round portrait reads level with
   the line it sits next to. */
.conf-help__art[data-art="girl"]{ align-items: center; }
.conf-help__script{
  max-width: 13ch;
  font-family: var(--script); font-weight: 700; color: var(--navy);
  font-size: clamp(22px, 2.4vw, 31px); line-height: 1.32; transform: rotate(-3deg);
}
.conf-help__script .conf-heart{ margin: 2px 0 0 auto; }
.conf-help__lines h2{
  font-family: var(--display); font-weight: 800; color: var(--navy);
  font-size: clamp(21px, 2.2vw, 27px); line-height: 1.2;
}
.conf-help__lines > p{ margin-top: 6px; font-size: clamp(14.5px, 1.3vw, 16px); color: var(--navy); }

.conf-contacts{ display: grid; gap: clamp(14px, 1.6vw, 20px); grid-template-columns: minmax(0, 1fr); margin-top: clamp(10px, 1.2vw, 16px); }
.conf-contact{ display: flex; align-items: center; gap: clamp(10px, 1.1vw, 14px); }
.conf-contact__chip{
  display: flex; align-items: center; justify-content: center; flex: none;
  width: clamp(42px, 3.9vw, 50px); aspect-ratio: 1; border-radius: var(--r-pill);
}
.conf-contact__chip svg{ width: 46%; height: 46%; }
.conf-contact--phone .conf-contact__chip{ background: var(--green); }
.conf-contact--mail  .conf-contact__chip{ background: var(--blue); }
.conf-contact__label{ display: block; font-family: var(--display); font-weight: 800; font-size: clamp(14.5px, 1.3vw, 16.5px); color: var(--navy); }
.conf-contact__value{ display: block; margin-top: 2px; font-size: clamp(14px, 1.25vw, 16px); color: var(--navy); overflow-wrap: anywhere; }

/* --- Wider than the usual wrap: these panels sit close to the edge -------- */
.wrap--flush{ max-width: var(--wide); padding-inline: clamp(16px, 2.2vw, 28px); }

/* The three bands nearly touch in the artwork — a full --section-y between
   them reads as three unrelated sections rather than one continuous page. */
.section--conf{ padding-block: clamp(13px, 1.5vw, 19px) clamp(5px, .5vw, 6px); }
.section--conf + .section--conf{ padding-top: 0; }
.section--conf:last-of-type{ padding-bottom: clamp(12px, 1.3vw, 16px); }

/* --- Side by side, once there is room ------------------------------------ */
@media (min-width: 980px){
  .conf-steps{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .conf-step{ position: relative; }
  /* the arrow lives in the gutter, level with the middle of the icons */
  .conf-step + .conf-step::before{
    content: ""; position: absolute; width: 28px; height: 16px;
    top: clamp(26px, 3.1vw, 38px);
    left: calc(-1 * (clamp(16px, 2vw, 26px) / 2) - 14px);
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16' fill='none' stroke='%2314264D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h22M18.5 3.2L23.8 8l-5.3 4.8'/%3E%3C/svg%3E");
  }
  .conf-contacts > * + *{ padding-left: clamp(18px, 2.2vw, 30px); border-left: 1px solid rgba(20,38,77,.14); }
}
/* The email address is 243px and will not hyphenate sensibly, so the phone
   block is sized to its content and the address takes everything left over.
   Below 1080 there is not enough left over at any split, and they stack. */
@media (min-width: 1080px){
  .conf-contacts{ grid-template-columns: max-content minmax(0, 1fr); }
}
@media (min-width: 860px){
  .conf-help{ grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  .conf-help__lines{ padding-left: clamp(24px, 3vw, 44px); border-left: 1px solid rgba(20,38,77,.14); }
}

/* --- Stacked: the photo leads, the card follows -------------------------- */
@media (max-width: 979.98px){
  /* The band stops being a canvas and becomes a column: the greeting, the
     photograph, the card, then the note. Source order already reads that way
     except for the photo, so only it and the note need re-ordering. */
  .conf-hero{
    display: flex; flex-direction: column;
    padding: clamp(20px, 3vw, 28px) clamp(16px, 2.2vw, 28px);
  }
  .conf-script{ position: relative; transform: none; text-align: left; order: 1; margin-bottom: 12px; }
  .conf-script .conf-heart{ margin: 6px 0 0; }
  /* Kept at its own proportions and centred — stretched across a phone this
     portrait crop zooms to the child's face and loses the abacus entirely. */
  .conf-hero__photo{
    position: static; order: 2;
    width: min(100%, 300px); height: auto; aspect-ratio: 327 / 420;
    margin-inline: auto; border-radius: var(--r-xl); object-position: 50% 42%;
    -webkit-mask-image: none; mask-image: none;
  }
  .conf-hero__inner{
    order: 3; display: block; min-height: 0; padding: 0;
    margin-top: clamp(16px, 2.4vw, 22px);
  }
  .conf-card{ width: 100%; }
  .conf-plane{ display: none; }
}
@media (max-width: 859.98px){
  .conf-help__art{ flex-direction: column; align-items: center; text-align: center; }
  /* Stacked, she sits above the line rather than beside it, so the negative
     bottom margin that bled her off the panel now pulls the words under her. */
  .conf-help__girl{ margin-block: -22px 0; }
  .conf-help__script{ max-width: none; transform: none; }
  .conf-help__script .conf-heart{ margin-inline: auto; }
}
@media (max-width: 479.98px){
  .conf-note{ flex-direction: column; align-items: flex-start; gap: 10px; }
  .conf-card{ padding-inline: 18px; }
}
/* The help strip under the steps. */
.ty-help{ background: var(--yellow-tint); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px); display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (min-width: 860px){
  .ty-help{ grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .ty-help__lines{ padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid rgba(20, 38, 77, .14); }
}
.ty-contact{ display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 18px; }
.ty-contact__item{ display: flex; align-items: center; gap: 12px; }
.ty-contact__chip{ display: flex; align-items: center; justify-content: center; width: 44px; aspect-ratio: 1; border-radius: var(--r-pill); flex: none; }
.ty-contact__label{ display: block; font-size: 13px; font-weight: 700; color: var(--navy); }
.ty-contact__value{ display: block; margin-top: 2px; font-size: 15px; color: var(--muted); word-break: break-word; }

/* Hairlines between the three "after you book" steps, only when side by side */
@media (min-width: 860px){
  .after-grid > * + *{ padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid rgba(255,255,255,.28); }
}

/* Placeholder map panel — a real embed replaces this in the build. */
.map{ position: relative; width: 100%; aspect-ratio: 1200/368; background: var(--blue-tint); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
@media (max-width: 720px){ .map{ aspect-ratio: 4 / 3; } }
.map__grid{ position: absolute; inset: 0; width: 100%; height: 100%; }
/* The embed fills the frame; the address card and the link sit over it. */
.map__frame{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__card{ position: absolute; left: clamp(12px,2vw,24px); top: clamp(12px,2vw,24px); max-width: min(320px, calc(100% - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px 22px; }
.map__note{ position: absolute; right: clamp(12px,2vw,24px); bottom: clamp(12px,2vw,24px); display: inline-flex; align-items: center; min-height: 30px; padding: 4px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 560px){ .map__note{ display: none; } }

/* ==========================================================================
   Auth pages: a slim brand bar and a slim footer instead of the full chrome
   ========================================================================== */

.authbar{ background: var(--surface); border-bottom: 1px solid var(--line); }
.authbar__inner{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 72px; padding-block: 14px; }
.authbar__links{ display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 15px; }
.authbar__links a{ color: var(--muted); }
.authbar__links a:hover{ color: var(--navy); }
.authbar__back{ display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy) !important; }

.authfooter{ background: var(--surface); border-top: 1px solid var(--line); }
.authfooter__inner{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; font-size: var(--t-sm); color: var(--muted); }
.authfooter a{ color: var(--muted); }
.authfooter a:hover{ color: var(--navy); }

/* Segmented control (Mobile OTP / Password / Social) */
.segmented{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--blue-tint); border-radius: var(--r-md); }
.segmented > *{ display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: var(--r-md); font-size: var(--t-xs); color: var(--muted); text-align: center; }
.segmented > [aria-current]{ background: var(--surface); font-weight: 600; color: var(--navy); }

/* One-time-code boxes that shrink rather than overflow */
.otp{ display: flex; gap: clamp(6px, 1.4vw, 10px); }
.otp input{
  flex: 1 1 0; min-width: 0; max-width: 56px; height: 54px;
  text-align: center; font-size: 20px; font-weight: 600;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--navy);
}
.otp input:focus{ background: var(--surface); border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(30,79,193,.16); }
.otp--sm input{ height: 50px; max-width: 48px; font-size: 18px; }

.divider{ display: flex; align-items: center; gap: 14px; }
.divider::before, .divider::after{ content: ""; flex: 1; height: 1px; background: var(--line); }
.divider span{ font-size: var(--t-xs); color: var(--muted); }

/* Portal chooser cards on the login landing page */
.portal{ display: flex; flex-direction: column; min-height: 260px; padding: clamp(24px,3vw,36px); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.portal--dark{ background: var(--navy); border-color: var(--navy); }
.portal--dark *{ color: #F6F9FF; }
.portal__go{ display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 600; color: var(--navy); }

/* A numbered step card (account recovery) */
.step-card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px,2.4vw,28px); }
.step-card--now{ border-color: var(--navy); }
.step-card__head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-card__n{ display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-md); background: var(--blue-tint); border: 1px solid var(--line); font-family: var(--mark); font-weight: 800; font-size: 14px; color: var(--muted); }
.step-card--now .step-card__n{ background: var(--navy); border-color: var(--navy); color: #F6F9FF; }
.step-card__tag{ font-family: var(--mark); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.step-card--now .step-card__tag{ color: var(--navy); }

/* A left-accented note box */
.note{ background: var(--ground); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r-md); padding: 14px 16px; }
.note--yellow{ background: var(--surface); border-left-color: var(--yellow); padding: 20px 24px; }
/* Live answers from the API on the sign-in and recovery screens (30 Oct 2026). */
.note--red{ background: #FDECEC; border-left-color: var(--red); color: var(--navy); }
.note--red a, .note--green a{ color: inherit; font-weight: 600; text-decoration: underline; }
.note--green{ background: var(--green-tint); border-left-color: var(--green); color: var(--navy); }

/* A list of links separated by hairlines (404 shortcuts) */
.link-list{ display: flex; flex-direction: column; }
.link-list a{ display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--navy); }
.link-list a:last-child{ border-bottom: 1px solid var(--line); }

/* Auth pages have no sticky CTA, so no bottom padding reservation */
body.is-auth{ padding-bottom: 0 !important; }


/* ==========================================================================
   Single-column safety
   A grid track with no explicit template is auto-sized, and an auto track
   refuses to shrink below its content's min-content width — which is how a
   form control with an intrinsic size (an <input>'s default `size`) drags a
   whole column wider than the phone. Pin every stacked grid to minmax(0,1fr)
   and let the controls shrink.
   ========================================================================== */

.split, .hero__grid, .form-grid, .footer__grid, .grid{ grid-template-columns: minmax(0, 1fr); }

.input, .select, .textarea, .otp input{ min-width: 0; }

/* Re-assert the multi-column templates that the rule above would otherwise
   flatten, since they are declared earlier in the file. */
.grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--6{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--8{ grid-template-columns: repeat(8, minmax(0, 1fr)); }
.rail{ grid-template-columns: repeat(var(--rail-cols, 3), minmax(0, 1fr)); }
.segmented{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (min-width: 640px){ .form-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px){
  .split{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--copy-wide{ grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .split--media-wide{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .split--copy-narrow{ grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); }
  .split--copy-lead{ grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .hero__grid{ grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
@media (min-width: 1120px){
  .split--form{ grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
@media (min-width: 1000px){ .movement{ grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, .75fr); } }
@media (min-width: 1100px){ .hero__grid{ grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
@media (min-width: 720px){ .footer__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px){ .footer__grid{ grid-template-columns: minmax(0,1.55fr) minmax(0,.95fr) minmax(0,1.05fr) minmax(0,1.4fr); } }
@media (min-width: 1240px){ .footer__grid{ grid-template-columns: minmax(0,1.55fr) minmax(0,.95fr) minmax(0,1.05fr) minmax(0,1.4fr) minmax(0,.95fr); } }

@media (max-width: 1100px){ .grid--6{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px){ .grid--8{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px){ .grid--4{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1180px){ .grid--5{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px){ .grid--3, .grid--5{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px){ .grid--2{ grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px){
  .grid--3, .grid--4, .grid--5{ grid-template-columns: minmax(0, 1fr); }
  .grid--6, .grid--8{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px){ .rail{ grid-template-columns: none; } }

/* ==========================================================================
   Callout bubble + script underline
   Used by the "More than classes" band: a solid yellow speech bubble whose
   tail is a rotated square on ::after, and the hand-drawn rule that sits
   under a Caveat line. The tail overhangs the bubble, so anything below it
   needs room — the band gives it 18px.
   ========================================================================== */

.callout{
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--yellow); color: var(--navy);
  border-radius: var(--r-xl);
  padding: clamp(18px, 1.8vw, 22px) clamp(20px, 2vw, 26px);
}
.callout p{ margin: 0; color: var(--navy); font-size: var(--t-body); line-height: 1.55; }
.callout strong{ font-weight: 800; }
.callout__icon{
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill); background: #FFFFFF;
}
.callout::after{
  content: ""; position: absolute; left: 38px; bottom: -8px;
  width: 17px; height: 17px; background: var(--yellow);
  transform: rotate(45deg); border-radius: 3px;
}

.underscore{ display: inline-flex; flex-direction: column; max-width: 100%; }
.underscore svg{ margin-top: 2px; width: min(100%, 268px); height: auto; }

/* ==========================================================================
   Interaction — the same vocabulary the boards get from assets/anim.css
   The fixed boards load that shared motion layer, which reads the rendered
   page and tags what looks like a button, a card or a photograph. This
   build has real class names, so the same effects are written against them
   instead. The values are copied from anim.css so the two match: a button
   lifts while a highlight sweeps across it, a card lifts, a photo brightens.
   ========================================================================== */

.btn{ position: relative; overflow: hidden; isolation: isolate;
  transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out,
              transform .24s cubic-bezier(.22,.7,.3,1), box-shadow .24s ease-out, filter .24s ease-out; }
.btn::after{
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.5) 50%, transparent 62%);
  transform: translateX(-130%); transition: transform .62s cubic-bezier(.3,.7,.4,1);
}
/* a white sheen is invisible on a pale button, so pale ones get a dark one */
.btn--yellow::after, .btn--ghost::after{
  background: linear-gradient(105deg, transparent 38%, rgba(20,32,43,.10) 50%, transparent 62%);
}
.btn:focus-visible{ outline: 3px solid var(--focus, rgba(11,99,206,.65)); outline-offset: 3px; }

/* Cards lift with the "translate" property rather than "transform", because
   the reveal further down already owns "transform" on the same element, and
   a transition list holds one duration per property — the reveal's .52s with
   its stagger delay would otherwise make the hover feel sluggish. */
.card{ transition: translate .3s cubic-bezier(.22,.7,.3,1), box-shadow .3s ease-out, border-color .3s ease-out; }
.media img, .card__media{ transition: filter .35s ease-out, box-shadow .35s ease-out; }
/* Same reason as the card: the scroll reveal owns `transform` on the tile, so
   the tile lifts with `translate` and only the icon chip — which the reveal
   never touches — is free to use `transform`, on an overshooting curve. */
.tile{ transition: translate .3s cubic-bezier(.22,.7,.3,1), box-shadow .3s ease-out; }
.tile__icon{ transition: transform .36s cubic-bezier(.34,1.5,.64,1); }

/* An arrow step answers the pointer by stepping forward out of the bar, and a
   sheen sweeps across it. The sheen is clipped to the chevron for free, since
   the step is already clip-pathed into that shape. The lift is `translate`
   again — the scroll reveal owns `transform` on these steps, as it does on
   cards and tiles. A shadow would be pointless here: clip-path cuts it off. */
.levels__step{
  position: relative; overflow: hidden; isolation: isolate;
  transition: translate .28s cubic-bezier(.22,.7,.3,1), filter .28s ease-out;
}
.levels__step::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg,
    rgba(255,255,255,0) 36%, rgba(255,255,255,.34) 50%, rgba(255,255,255,0) 64%);
  transform: translateX(-130%);
  transition: transform .62s cubic-bezier(.22,.7,.3,1);
}

@media (hover: hover){
  .levels__step:hover{ translate: 0 -5px; filter: brightness(1.07) saturate(1.05); }
  .levels__step:hover::after{ transform: translateX(130%); }
  .btn:hover{ transform: translateY(-3px); box-shadow: 0 12px 26px -10px rgba(16,24,40,.45); filter: saturate(1.06); }
  .btn:hover::after{ transform: translateX(130%); }
  .btn:active{ transform: translateY(-1px) scale(.984); box-shadow: 0 5px 12px -8px rgba(16,24,40,.5); transition-duration: .08s; }
  .card:hover{ translate: 0 -6px; box-shadow: 0 24px 44px -26px rgba(16,24,40,.5); }
  .media:hover img, .card:hover .card__media{ filter: saturate(1.1) contrast(1.02) brightness(1.02); }
  /* The tile lifts, and its icon springs forward a beat behind it. */
  .tile:hover{ translate: 0 -6px; box-shadow: 0 22px 40px -26px rgba(16,24,40,.5); }
  .tile:hover .tile__icon{ transform: translateY(-2px) scale(1.12) rotate(-6deg); }
}

@media (prefers-reduced-motion: reduce){
  .btn, .card, .media img, .card__media, .tile, .tile__icon,
  .levels__step{ transition: none !important; }
  .btn::after, .levels__step::after{ display: none; }
  .btn:hover, .btn:active{ transform: none; }
  .card:hover, .tile:hover, .levels__step:hover{ translate: none; }
  .tile:hover .tile__icon{ transform: none; }
}

/* ==========================================================================
   "More than classes" motion
   The band introduces itself once: the headline arrives word by word, the
   rule draws itself under the script line, the five cards come in from the
   left and each icon pops in behind its card. The yellow bubble keeps a slow
   idle float, so the one sentence that sells the difference has some life.

   Two things make it safe for a stylesheet to hide content:
     · nothing is hidden until site.js has its reveal running and has set
       [data-reveal-on] on <html> — with JavaScript off, under reduced motion,
       or without IntersectionObserver the band is simply drawn;
     · the reveal is a transition, not an animation. An animation that is
       applied but never gets a start time holds its first keyframe under
       fill:both, i.e. invisible; a transition that never runs still leaves
       the element at its end value.
   ========================================================================== */

@keyframes mtcBob { 0%, 100%{ transform: translateY(0); } 50%{ transform: translateY(-5px); } }

.mtc-word{ display: inline-block; }
.mtc-rule path{ stroke-dasharray: 300; }   /* longer than the path: solid when still */
.mtc-bubble{ animation: mtcBob 5s ease-in-out infinite; }

/* the two containers carry the trigger, not the motion — their children do */
.mtc-head.is-in, .mtc-cards.is-in{ animation: none; }

html[data-reveal-on] .mtc-head[data-reveal] .mtc-word,
html[data-reveal-on] .mtc-head[data-reveal] .mtc-script{ opacity: 0; transform: translateY(14px); }
html[data-reveal-on] .mtc-head.is-in .mtc-word,
html[data-reveal-on] .mtc-head.is-in .mtc-script{
  opacity: 1; transform: none;
  transition: opacity .52s cubic-bezier(.22,.7,.3,1) var(--mtc-d, 0s),
              transform .52s cubic-bezier(.22,.7,.3,1) var(--mtc-d, 0s);
}

.mtc-head .mtc-word:nth-of-type(1){ --mtc-d: .06s; }
.mtc-head .mtc-word:nth-of-type(2){ --mtc-d: .16s; }
.mtc-head .mtc-word:nth-of-type(3){ --mtc-d: .24s; }
.mtc-head .mtc-word:nth-of-type(4){ --mtc-d: .32s; }
.mtc-head .mtc-word:nth-of-type(5){ --mtc-d: .40s; }
.mtc-head .mtc-script{ --mtc-d: .48s; }
.mtc-head .mtc-script--2{ --mtc-d: .62s; }

html[data-reveal-on] .mtc-head[data-reveal] .mtc-rule path{ stroke-dashoffset: 300; }
html[data-reveal-on] .mtc-head.is-in .mtc-rule path{
  stroke-dashoffset: 0; transition: stroke-dashoffset .8s ease-out .5s;
}

html[data-reveal-on] .mtc-cards[data-reveal] > li{ opacity: 0; transform: translateY(14px); }
html[data-reveal-on] .mtc-cards[data-reveal] > li .chip{ opacity: 0; transform: scale(.5) rotate(-14deg); }
html[data-reveal-on] .mtc-cards.is-in > li{
  opacity: 1; transform: none;
  transition: opacity .52s cubic-bezier(.22,.7,.3,1) var(--mtc-d, 0s),
              transform .52s cubic-bezier(.22,.7,.3,1) var(--mtc-d, 0s),
              translate .3s cubic-bezier(.22,.7,.3,1), box-shadow .3s ease-out;
}
html[data-reveal-on] .mtc-cards.is-in > li .chip{
  opacity: 1; transform: none;
  transition: opacity .42s ease-out var(--mtc-d, 0s),
              transform .55s cubic-bezier(.34,1.56,.64,1) var(--mtc-d, 0s);
}

.mtc-cards > li:nth-child(1){ --mtc-d: .04s; }
.mtc-cards > li:nth-child(2){ --mtc-d: .12s; }
.mtc-cards > li:nth-child(3){ --mtc-d: .20s; }
.mtc-cards > li:nth-child(4){ --mtc-d: .28s; }
.mtc-cards > li:nth-child(5){ --mtc-d: .36s; }
.mtc-cards > li:nth-child(1) .chip{ --mtc-d: .22s; }
.mtc-cards > li:nth-child(2) .chip{ --mtc-d: .30s; }
.mtc-cards > li:nth-child(3) .chip{ --mtc-d: .38s; }
.mtc-cards > li:nth-child(4) .chip{ --mtc-d: .46s; }
.mtc-cards > li:nth-child(5) .chip{ --mtc-d: .54s; }

/* The chip tips over when you point at its card. Only the chip: a lift on
   the card itself would have to share the transform the reveal is already
   transitioning, delay and all, and no other card in this build lifts. */
.mtc-cards > li .chip svg{ transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
@media (hover: hover){
  .mtc-cards > li:hover .chip svg{ transform: scale(1.14) rotate(-8deg); }
}

/* Scattered decor — the confetti from the client's poster, as flat shapes.
   Everything is absolute and pointer-events:none, so it never affects layout,
   and the band clips it so a shape can bleed off the edge without adding
   horizontal scroll. Anchored to the band's edges rather than positioned by
   percentage, because the band is ~620px tall at 1440 and ~1390px at 390.
   The two mid-height pieces sit in the side gutters, which all but vanish
   below 860, so they go with them. */
.mtc-band{ position: relative; overflow: hidden; }
.mtc-deco{ position: absolute; inset: 0; pointer-events: none; }
.mtc-deco i{ position: absolute; display: block; line-height: 0; }
.mtc-deco svg{ display: block; width: 100%; height: 100%; }

@keyframes mtcTwinkle{ 0%, 100%{ opacity: 1; } 50%{ opacity: .45; } }
.mtc-deco i{ animation: mtcTwinkle 6s ease-in-out infinite; }
.mtc-deco i:nth-child(2n){ animation-duration: 7.5s; animation-delay: -2.4s; }
.mtc-deco i:nth-child(3n){ animation-duration: 9s;   animation-delay: -4.8s; }
.mtc-deco i:nth-child(4n){ animation-duration: 5.2s; animation-delay: -1.2s; }

/* the side gutters all but vanish below 860, and the top and bottom strips
   get thin, so the pieces that live there go with them */
@media (max-width: 860px){ .mtc-deco i[data-wide]{ display: none; } }

@media (prefers-reduced-motion: reduce){
  .mtc-bubble{ animation: none; }
  .mtc-deco i{ animation: none; }
  .mtc-cards > li, .mtc-cards > li .chip, .mtc-cards > li .chip svg,
  .mtc-head .mtc-word, .mtc-head .mtc-script, .mtc-rule path{ transition: none !important; }
}

/* ==========================================================================
   Safari / older-engine fallbacks
   ========================================================================== */

/* :has() lands in Safari 15.4. Without it the selected time slot and the
   picked avatar simply keep the resting style — legible, just not highlighted
   — so nothing breaks; this only makes the resting state deliberate. */
@supports not selector(:has(*)){
  .slot input:checked ~ span{ font-weight: 600; }
}

/* iOS Safari counts the URL bar in 100vh. Nothing here depends on vh, but the
   drawer is full-height, so pin it to the small viewport unit where supported. */
@supports (height: 100dvh){
  .drawer{ height: 100dvh; }
}

/* Safari applies its own styling to date inputs; keep them the same height as
   the rest of the fields and left-aligned like every other control. */
input[type="date"]{ -webkit-appearance: none; appearance: none; text-align: left; }
input[type="date"]::-webkit-date-and-time-value{ text-align: left; }

/* ---- the enquiry honeypot ------------------------------------------
   Moved off-screen rather than display:none — a bot that checks computed
   styles skips hidden fields, and the whole point is that it fills this
   one. aria-hidden and tabindex="-1" keep it away from people. */
.hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Late overrides for the centre cards: `.btn` re-declares `position` further
   down this file, so the corner button needs the extra class to win, and the
   photo box must fill the row rather than keep its 4:3 box once the card is
   side by side. */
@media (min-width: 860px){ .usp-row{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* `hidden` must actually hide: .card and .centre-card both declare `display`,
   which would otherwise beat the user-agent rule and leave filtered-out cards
   and the empty-state note on screen. */
[hidden]{ display: none !important; }

/* A real map replaces the sketch once it is embedded. */

/* --- the design review index (/screens) -------------------------------
   Not a panel screen and not a page of the website: a way in to both, which
   exists only where APP_PREVIEW is on. Plain, dense and scannable — it is a
   contents page, and the least interesting thing on it should be itself. */
.sx{ padding-block: clamp(28px, 5vw, 56px) clamp(40px, 7vw, 80px); }
.sx__top h1{ margin: 0; font: 700 clamp(26px, 4vw, 38px)/1.15 var(--display); color: var(--navy); }
.sx__top p{ margin: 10px 0 0; max-width: 60ch; font: 400 var(--t-body)/1.6 var(--text); color: var(--muted); }

.sx__note{
  margin: clamp(20px, 3vw, 30px) 0 0; padding: 14px 16px;
  border: 1px solid var(--line); border-left: 3px solid var(--yellow);
  border-radius: var(--r-md); background: var(--yellow-tint);
}
.sx__note b{ display: block; font: 700 var(--t-sm)/1.4 var(--text); color: var(--navy); }
.sx__note p{ margin: 5px 0 0; max-width: 78ch; font: 400 var(--t-sm)/1.6 var(--text); color: var(--navy); }
.sx__note em{ font-style: normal; font-weight: 700; }

.sx__group{ margin-top: clamp(26px, 4vw, 40px); }
.sx__group h2{
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px;
  font: 700 11px/1.2 var(--mark); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.sx__group h2 span{
  padding: 2px 7px; border-radius: var(--r-pill);
  background: var(--ground); border: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: .04em;
}

.sx__list{ display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
/* The rows are two columns of unequal heights — a note makes one taller —
   so the card fills its grid cell rather than leaving a gap beside it. */
.sx__list li{ display: grid; }
@media (min-width: 900px){ .sx__list{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sx__list a, .sx__gone{
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #FFF; text-decoration: none; color: inherit;
}
.sx__list a:hover{ border-color: var(--blue); background: var(--blue-tint); }
.sx__list a:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }
.sx__gone{ background: var(--ground); opacity: .6; }

/* The plan's own reference, monospaced so a column of them lines up and a
   reviewer can run down it against their copy of the document. */
.sx__ref{
  min-width: 34px; padding: 2px 6px; border-radius: var(--r-sm);
  background: var(--ground); border: 1px solid var(--line);
  font: 700 10.5px/1.5 var(--mark); letter-spacing: .03em; color: var(--muted);
  text-align: center; white-space: nowrap;
}
.sx__what{ min-width: 0; }
.sx__what b{ display: block; font: 600 var(--t-sm)/1.35 var(--text); color: var(--navy); }
.sx__what small{ display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
/* The two screens that are asking the client something. */
.sx__ask{ color: var(--yellow-ink) !important; font-weight: 700; }
.sx__url{
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--muted); white-space: nowrap;
}
@media (max-width: 560px){
  .sx__list a, .sx__gone{ grid-template-columns: auto minmax(0, 1fr); }
  .sx__url{ display: none; }
}

/* ==========================================================================
   The head-office entrance — A1, /admin/login — MOVED 21 October 2026
   ==========================================================================
   The .alog block that lived here is gone. /admin/login and /franchise/login
   left this stylesheet that evening for layouts/gate and console.css §32: a
   staff door is now painted in the console it opens onto, which the rest of
   the console had moved to that morning.

   site.css keeps the three doors that are still on it — /login (the chooser),
   /student/login and /student/register, which the client drew himself, and
   /recovery. Those are untouched.
   ========================================================================== */

/* ==========================================================================
   The franchise landing page (/franchise)

   The hero, the fact strip and the three scenarios are built from parts that
   already existed. What is new here is the earnings calculator, the five
   photo cards and the closing band.
   ========================================================================== */

/* The eyebrow set in a grey plate, as the artwork has it. */
.pill--quiet{
  background: #E8EEF8; color: var(--navy);
  font-family: var(--display); font-size: var(--t-eyebrow); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}

/* ---- the earnings calculator ---------------------------------------
   A navy block: the pitch on one side, a white card with the three sliders
   and the running total on the other. The figures in the markup are what the
   default slider positions add up to, so the panel still reads correctly with
   JavaScript off — see the note on the page. */

.calc{
  background: var(--navy); color: var(--on-navy);
  border-radius: 24px; padding: clamp(18px, 2.2vw, 28px);
  display: grid; gap: clamp(20px, 2.4vw, 28px); align-items: center;
}
@media (min-width: 1040px){
  .calc{ grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}
.calc__intro h2{ color: var(--on-navy); }
.calc__intro p{ color: var(--on-navy-3); }

/* She is cut off below the waist in the artwork, so she sits on the baseline
   with the hand-written line and its arrow beside her. */
.calc__art{ margin-top: clamp(16px, 2vw, 24px); display: flex; align-items: flex-end; gap: 10px; }
/* A photograph, not a cutout: it needs a frame and a crop that keeps her face
   in it when the column narrows. */
/* The crop was tuned for the photograph that used to be here. This one is
   almost square and the boy sits to the left of it, with the rest of the
   frame empty blackboard; 25% holds him, his raised finger and the abacus
   in the box. The file is taller than the 3:4 window is wide, so nothing is
   cropped off the top or bottom and only the empty right is given up. */
.calc__art img{ width: clamp(112px, 13vw, 158px); aspect-ratio: 3 / 4; object-fit: cover; object-position: 25% 50%; border-radius: var(--r-lg); flex: none; }
.calc__hint{
  font-family: var(--script); font-weight: 700;
  font-size: clamp(16px, 1.6vw, 20px); line-height: 1.25; color: var(--yellow);
}
.calc__hint svg{ display: block; width: clamp(62px, 7vw, 86px); height: auto; margin-top: 4px; color: var(--on-navy-4); }
/* She stays on a phone — she is the one warm thing in a panel of numbers —
   so she narrows and the hand-written line beside her narrows with her. */
@media (max-width: 560px){
  .calc__art{ gap: 12px; }
  .calc__art img{ width: clamp(94px, 27vw, 128px); }
  .calc__hint{ font-size: clamp(15px, 4vw, 18px); }
  .calc__hint svg{ width: clamp(52px, 15vw, 70px); }
}

.calc__card{
  background: var(--surface); color: var(--navy);
  border-radius: var(--r-lg); padding: clamp(18px, 2vw, 24px);
  display: grid; gap: clamp(18px, 2vw, 24px); align-items: start;
}
@media (min-width: 780px){
  .calc__card{ grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
}
/* .btn sets display, which would otherwise beat the hidden attribute. */
.calc__card [hidden]{ display: none; }

.calc__field{ margin-top: 18px; }
.calc__row{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
/* The longest of the three labels is "Estimated monthly expenses (₹)", which
   runs out of room long before the card does. It takes the spare width and
   balances across two lines rather than dropping the unit on its own, and the
   box beside it never shrinks. */
.calc__label{ flex: 1 1 auto; min-width: 0; font-size: clamp(13px, 1.05vw, 14px); font-weight: 600; line-height: 1.35; text-wrap: balance; color: var(--navy); }
.calc__value{
  min-width: 68px; padding: 4px 10px; border-radius: var(--r-sm);
  background: var(--ground); border: 1px solid var(--line);
  font-family: var(--display); font-size: 14px; font-weight: 800; color: var(--navy); text-align: center;
}

/* The track and the thumb have to be drawn per engine; the accent comes in as
   --slider-ink so one modifier class colours both. */
.calc__slider{
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; margin-top: 10px;
  background: transparent; cursor: pointer;
}
.calc__slider:focus-visible{ outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--r-pill); }
.calc__slider::-webkit-slider-runnable-track{ height: 6px; border-radius: var(--r-pill); background: #E4EAF6; }
.calc__slider::-moz-range-track{ height: 6px; border-radius: var(--r-pill); background: #E4EAF6; }
.calc__slider::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: -7px; border-radius: var(--r-pill);
  background: var(--slider-ink, var(--blue)); border: 3px solid #FFF;
  box-shadow: 0 1px 4px rgba(20,38,77,.35);
}
.calc__slider::-moz-range-thumb{
  width: 20px; height: 20px; border-radius: var(--r-pill);
  background: var(--slider-ink, var(--blue)); border: 3px solid #FFF;
  box-shadow: 0 1px 4px rgba(20,38,77,.35);
}
.calc__slider--blue  { --slider-ink: var(--blue); }
.calc__slider--green { --slider-ink: var(--green); }
.calc__scale{ display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.calc__out{
  background: var(--green-tint); border: 1px solid #D4E9DC;
  border-radius: var(--r-md); padding: clamp(16px, 1.8vw, 20px);
}
.calc__out:focus{ outline: none; }
.calc__facts{ list-style: none; margin-top: 12px; display: grid; gap: 9px; }
.calc__facts li{
  display: grid; grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; font-size: var(--t-xs); color: var(--muted);
}
.calc__facts b{ font-family: var(--display); font-size: 14px; font-weight: 800; color: var(--navy); }

.calc__surplus-label{ margin-top: 16px; text-align: center; font-size: var(--t-xs); font-weight: 700; color: var(--navy); }
.calc__surplus{ margin-top: 2px; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; }
.calc__surplus svg{ flex: none; }
.calc__surplus b{ font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.1; white-space: nowrap; color: var(--green); }
/* "/ month" is two words and was breaking across two lines in a panel this
   narrow, which read as a second figure. */
.calc__surplus span{ font-size: var(--t-xs); white-space: nowrap; color: var(--muted); }

/* The figure runs from Rs 5,000 to Rs 2,50,00,000 — five times the width,
   in a panel that stays about 250px wide. At the one size the long end
   pushed the icon out of the box and broke the suffix onto its own line.
   CSS cannot size type by how long its text happens to be, so site.js —
   which is the thing that writes the number — counts its digits and says
   which of these three it is. The markup ships the default, Rs 60,000, and
   that is the plain rule above, so this is right with JavaScript off too. */
.calc__surplus[data-figure="long"]  b{ font-size: clamp(19px, 2.1vw, 25px); }
.calc__surplus[data-figure="xlong"] b{ font-size: clamp(17px, 1.8vw, 21px); }

/* The small print under the figure. It is the longest run of text in the
   panel and the least important, so it is set below everything else here:
   smaller than the facts list, muted, and off the full measure of the
   panel so it reads as a footnote rather than as more of the result. A
   hairline separates it from the figure, which is what the eye came for.
   It shrinks with the panel rather than at a breakpoint, and the floor is
   11px so it stays legible on a phone, where the panel is at its narrowest
   and this is four or five lines. */
.calc__note{
  margin-top: clamp(10px, 1.2vw, 14px); padding-top: clamp(8px, 1vw, 11px);
  border-top: 1px solid #D4E9DC;
  font-size: clamp(11px, .82vw, 12px); line-height: 1.45; color: var(--muted);
  text-wrap: pretty;
}

/* ---- the five "everything you need" cards --------------------------
   Photograph, then a round icon straddling its bottom edge.

   The five sources run from a 0.67 portrait to a 2.67 strip, so one shared
   window always throws something away. 3/2 is the window that costs least:
   it is tall enough that the portrait keeps a whole face, and still wide
   enough that the strip of artwork keeps its labelled books. 16/10 was too
   shallow for the portrait and cut foreheads. The ratio is fixed, so the
   window is the same shape at every screen width. */
.startcard__media{ position: relative; }
.startcard__media .card__media{
  aspect-ratio: 3 / 2; display: block;
  /* Faces sit near the top of a photograph, so what a vertical crop gives
     up is taken off the foot, not off the head. Any card that needs another
     window overrides this below, and has to match on two classes to do it —
     this selector is already two, so a bare modifier would lose. */
  object-position: 50% 12%;
}
.startcard__icon{
  position: absolute; left: 14px; bottom: -20px;
  width: 40px; border: 2px solid #FFF; box-shadow: var(--lift-card);
}
.startcard__media + .card__body{ padding-top: 30px; }


.quote-card{ margin: 0; background: var(--yellow-tint); border-color: #F2E3BC; text-align: center; align-items: center; }
.quote-card blockquote{ margin: 12px 0 0; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; font-weight: 600; color: var(--navy); }
.quote-card figcaption{ margin-top: 10px; }

/* ---- the closing band ---------------------------------------------- */
.closing-band{ display: grid; gap: clamp(20px, 3vw, 36px); align-items: center; }
@media (min-width: 900px){
  .closing-band{ grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, .55fr); }
}
.closing-band__script{ margin: 0; text-align: center; font-size: clamp(20px, 2.4vw, 28px); }
/* Flush with the right edge of the band, the way the heading is flush with the
   left, and square rather than tall — centred in its own column and taller
   than the copy, it read as a photograph floating in the middle of nothing.
   Pinned to the TOP of that square, not 26% down: the boy's head starts 30
   rows into a 496-row file, so a 26% offset opened the window below his
   crown and cut it. At 0% the whole head is held. The cost is the abacus
   along the foot, which a square window cannot reach from here. */
.closing-band__art{ width: clamp(140px, 15vw, 190px); aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 0%; border-radius: var(--r-xl); justify-self: end; }
/* On a phone the band stacks, so he sits centred under the copy rather than
   beside it. */
@media (max-width: 899.98px){ .closing-band__art{ width: clamp(150px, 44vw, 215px); justify-self: center; }
  .closing-band__script{ text-align: left; }
}

/* ---- solid icon discs ----------------------------------------------
   The franchise artwork fills its icon circles and draws the glyph in white,
   where the rest of the site uses a pale chip under a coloured glyph. White
   on yellow would be 1.9:1, so the yellow disc takes the navy glyph instead
   and the markup sets the stroke. */
.disc{
  display: flex; align-items: center; justify-content: center;
  width: 44px; aspect-ratio: 1; border-radius: var(--r-pill); flex: none;
}
.disc--blue  { background: var(--blue); }
.disc--green { background: var(--green); }
.disc--orange{ background: var(--orange); }
.disc--pink  { background: var(--icon-pink); }
.disc--violet{ background: var(--icon-violet); }
.disc--yellow{ background: var(--yellow); }

/* ---- the five facts under the hero ---------------------------------
   Hairlines between them, but only while all five sit on one line; once the
   row wraps a vertical rule in the middle of nothing is just a mark. */
.factstrip{ list-style: none; display: grid; gap: 22px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px){ .factstrip{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px){
  .factstrip{ grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .fact{ padding-inline: clamp(12px, 1.8vw, 26px); }
  .fact:first-child{ padding-left: 0; }
  .fact:last-child{ padding-right: 0; }
  .fact + .fact{ border-left: 1px solid var(--line); }
}
.fact{ display: flex; align-items: center; gap: 12px; }
.fact__text b{ display: block; font-family: var(--display); font-size: clamp(16px, 1.5vw, 18px); font-weight: 800; line-height: 1.15; color: var(--navy); }
.fact__text > span{ display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }

/* ---- the three scenarios -------------------------------------------
   One column per centre size: a heading, then a tinted box carrying the
   figure and its working. The columns are subgrids of the row, so the three
   headings share a height and the three boxes start and finish on the same
   line however long a heading runs. Where subgrid is missing the columns
   simply size themselves, which is what they did before. */
.scenario-grid{
  margin-top: 22px; display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto;
}
@media (max-width: 560px){ .scenario-grid{ grid-template-columns: minmax(0, 1fr); } }
.scenario-col{ display: grid; gap: 12px; grid-row: span 2; grid-template-rows: subgrid; }

.scenario__head{ display: flex; align-items: center; gap: 10px; }
.scenario__head svg{ flex: none; }
.scenario__head b{ display: block; font-family: var(--display); font-size: clamp(15px, 1.4vw, 17px); font-weight: 800; line-height: 1.2; color: var(--navy); }
.scenario__head > span > span{ display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }

/* The box itself: the figure and its caption, centred. */

.scenario{ display: flex; flex-direction: column; border-radius: var(--r-lg); padding: clamp(14px, 1.5vw, 18px); text-align: center; }
.scenario > b{ font-family: var(--display); font-size: clamp(20px, 2.2vw, 25px); font-weight: 800; line-height: 1.1; color: var(--scenario-ink); }
.scenario > span{ margin-top: 4px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.scenario--pink { background: var(--chip-pink);  --scenario-ink: var(--icon-pink); }
.scenario--green{ background: var(--green-chip); --scenario-ink: var(--green); }
.scenario--blue { background: var(--blue-chip);  --scenario-ink: var(--blue); }

/* The scenarios need the room, so this split runs about two to one rather
   than the even halves .split gives by default. */
@media (min-width: 1000px){
  .split--scenarios{ grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); }
}

/* The read-out doubles as a field, so it has to look and behave like one. */
/* When the row runs out of width the box drops below the label — still hard
   against the right edge, so the three rows keep one vertical line. */
.calc__value{ width: 84px; flex: 0 0 auto; margin-left: auto; cursor: text; -moz-appearance: textfield; appearance: textfield; }
.calc__value:hover{ border-color: #C3CFE6; }
.calc__value:focus{ outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,79,193,.16); background: var(--surface); }
/* Before site.js reaches them the boxes are read-only, so they must not
   advertise an edit the page cannot honour yet. */
.calc__value[readonly]{ cursor: default; }
.calc__value[readonly]:hover{ border-color: var(--line); }

/* A recalculated headline figure lights up for a moment: the three scenario
   figures are a long way below the slider that moved them, and a number that
   changes unseen may as well not have changed. */
@keyframes calcFlash{
  from{ background: rgba(245,180,0,.45); }
  to  { background: rgba(245,180,0,0); }
}
.calc__surplus b.is-new,
.scenario > b.is-new{ border-radius: 6px; animation: calcFlash .9s ease-out; }
@media (prefers-reduced-motion: reduce){
  .calc__surplus b.is-new, .scenario > b.is-new{ animation: none; }
}

/* photo-14 is a 508x190 strip of the client's artwork with the four labelled
   books at its left edge, and a centre crop slices the first letter off every
   label, so it is pinned to the left. */
.startcard__media .card__media.startcard__media--start{ object-position: 0% 50%; }

/* Two cards carry the client's own 1024x1536 portraits, the same files the
   enquiry-form columns use. A 3/2 window keeps 683 of their 1536 rows, so
   853 rows are given up and the percentage below is the offset into those
   853 — not a vague "towards the bottom" but the row the window opens on.
   Both of these compose the subject along the foot under a tall empty wall,
   which is why both numbers are high.

   --class   franchise-form-panel: the teacher's hair starts at y=680 and the
             children's chins end at y=1200. Opening at 660 (660/853 = 77%)
             holds the teacher, all four children and the big abacus.
   --portal  teacher-form-panel: her hair starts at y=790, the laptop runs
             from y=1140. Opening at 760 (760/853 = 89%) holds her whole head,
             the abacus in her hand and the laptop she is working at. */
.startcard__media .card__media.startcard__media--class{ object-position: 50% 77%; }
.startcard__media .card__media.startcard__media--portal{ object-position: 50% 89%; }

/* The lightbulb that sits with each hand-written line, as the artwork has it. */
.script-bulb{ display: block; width: 30px; height: 30px; margin-bottom: 3px; filter: drop-shadow(0 2px 6px rgba(20,38,77,.5)); }
/* In the closing caption the bulb sits beside the words on a white card, so
   it is pinned left and drops the shadow it needs only against the navy. */
.closing-band__script .script-bulb{ margin-inline: auto; }
@media (max-width: 899.98px){ .closing-band__script .script-bulb{ margin-left: 0; } }

/* ---- banner heroes ---------------------------------------------------
   A hero whose background IS the photograph, with the words on the part of
   it the photographer left empty. Everything over the picture — the badge,
   the headline, the points — is real text in the site's own faces and at the
   site's own sizes, not painted into the file: it is selectable, it is
   crawlable (the public site is server-rendered Blade precisely because it
   has to be, SOW §8), it translates, and it reflows instead of shrinking to
   twelve pixels on a phone.

   Two pages use this now, and both of their photographs were composed for it
   with a clear left-hand side. What the two do NOT share is where that clear
   side ends and where the picture has to be cropped once the band is too
   narrow to write on. So the structure is here and every number that depends
   on the file itself is on a modifier below.

   The wash is what makes the arrangement safe at every width. It lies in the
   photograph's own light colour over the side the words are on, is invisible
   where they actually are, and fades out before it reaches a face. Without
   it a wide screen and a narrow one crop to different places and the
   headline can end up on a bookshelf. */
.bhero{ position: relative; isolation: isolate; overflow: hidden; background: #FDFBF7; }
.bhero__bg{
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.bhero::before{ content: ""; position: absolute; inset: 0; z-index: -1; }

.bhero__inner{
  position: relative; display: flex; align-items: center;
  min-height: clamp(400px, 35vw, 530px); padding-block: clamp(28px, 3vw, 44px);
}
.bhero__text{ max-width: min(100%, 560px); }

/* Four columns, not a wrapping row: the labels and the gaps both grow with
   the viewport, so a flex row that held all four at 1280 dropped the last
   one onto a line of its own at 1600. Two columns on a phone, where the
   text has the full width and four would be 80px each. */
.bhero__points{
  list-style: none; margin-top: 22px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px;
}
@media (min-width: 900px){
  .bhero__points{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px clamp(10px, 1.1vw, 16px); }
}
.bhero__points li{ display: flex; align-items: center; gap: 10px; }
.bhero__points .disc{ width: 38px; }
.bhero__label{ font-size: clamp(12.5px, 1vw, 13.5px); font-weight: 700; line-height: 1.3; color: var(--navy); }

/* Below 900 there is no empty side left to write on — the column would be
   260px wide and the headline would be over the children. So the band comes
   apart: the words on the ground, the photograph under them, cropped to the
   side of it that has the class in it. WHICH crop that is belongs to the
   file, so the shape of the picture box is on the modifiers. */
@media (max-width: 900px){
  .bhero{ display: flex; flex-direction: column-reverse; background: var(--ground); }
  .bhero::before{ display: none; }
  .bhero__bg{ position: static; z-index: auto; height: auto; }
  .bhero__inner{ min-height: 0; padding-block: clamp(26px, 5vw, 36px); }
  .bhero__text{ max-width: none; }
}

/* ---- /franchise: 2048x768 -------------------------------------------
   Its left-hand THIRD is deliberately empty — a near-white wall, with the
   classroom all on the right — so the picture is cropped from the right and
   the clear side is the last thing to be given up. */
.bhero--franchise .bhero__bg{ object-position: 80% 50%; }
.bhero--franchise::before{
  background: linear-gradient(100deg,
    rgba(255, 253, 250, .97) 0%,
    rgba(255, 253, 250, .95) 32%,
    rgba(255, 253, 250, .74) 48%,
    rgba(255, 253, 250, 0)   66%);
}
/* Between the stacking breakpoint and about 1100 the band is still an overlay
   but the clear third is only a third of a narrow screen, so the text column
   runs past it onto the class. The wash is therefore carried further right
   here — it is the picture's own wall colour, so a wider wash costs nothing
   but a softer background, and it is the difference between a headline on a
   calm field and a headline on a bookshelf. */
@media (max-width: 1100px){
  .bhero--franchise::before{
    background: linear-gradient(100deg,
      rgba(255, 253, 250, .97) 0%,
      rgba(255, 253, 250, .95) 46%,
      rgba(255, 253, 250, .80) 62%,
      rgba(255, 253, 250, 0)   80%);
  }
}
/* The box's SHAPE is what crops the stacked band, not object-position, and
   the arithmetic is unforgiving. A cover crop that fills by height shows
   768 x (box ratio) pixels of the file's width; the empty wall runs to about
   x=820 of 2048, so to lose all of it the window can be at most 1228 wide,
   which needs a box no wider than 1228/768 = 1.6 : 1. At 16/9 it is 1.78 and
   even flush right the window opens at x≈680 — a third of the band is bare
   wall, which is exactly what it looked like. 3/2 leaves a margin: the
   window opens at about x=895, on the bookshelf beside the teacher. */
@media (max-width: 900px){
  .bhero--franchise .bhero__bg{ aspect-ratio: 3 / 2; object-position: 100% 50%; }
}

/* ---- /our-centres: 1672x940 -----------------------------------------
   Children walking in through the doors of a centre, with the teacher
   holding one open. The clear side is a soft wash of daylight and it runs to
   about x=950 — 57% of the file, a wider margin than the franchise band has,
   so this wash can be lighter and can stop sooner.

   Nothing comes off the SIDES on a desktop: the file is 16:9 and any band
   wider than that fills by width, so object-position's first number never
   gets used there and only the vertical crop matters. 30% keeps the ceiling
   out, holds all four faces and the abacuses they are carrying, and gives up
   the polished floor, which is the part of the picture with nothing in it. */
.bhero--centres .bhero__bg{ object-position: 50% 30%; }
.bhero--centres::before{
  background: linear-gradient(100deg,
    rgba(255, 253, 250, .93) 0%,
    rgba(255, 253, 250, .90) 34%,
    rgba(255, 253, 250, .66) 50%,
    rgba(255, 253, 250, 0)   64%);
}
@media (max-width: 1100px){
  .bhero--centres::before{
    background: linear-gradient(100deg,
      rgba(255, 253, 250, .95) 0%,
      rgba(255, 253, 250, .92) 46%,
      rgba(255, 253, 250, .74) 62%,
      rgba(255, 253, 250, 0)   80%);
  }
}
/* Stacked, the same arithmetic as above: a cover crop filling by height
   shows 940 x (box ratio) pixels of the file's width. 3/2 would show 1410 of
   1672 and so would still be nearly half daylight. A square box shows 940,
   and flush right it opens at x=732 — in the doorway, with all four children
   and the teacher inside it. */
@media (max-width: 900px){
  .bhero--centres .bhero__bg{ aspect-ratio: 1 / 1; object-position: 100% 50%; }
}
/* The four points here are sentences, not two-word labels, so auto-fit's
   150px minimum gives three columns in a 560px overlay and leaves the fourth
   alone on a line. Two by two, while the words are in the overlay at all. */
@media (min-width: 900px){
  .bhero--centres .usp-row{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---- /book-a-demo: 1983x793 -----------------------------------------
   Three children along a desk with their abacuses, all of them in the
   right-hand half. The clear side here is not white but the file's own warm
   cream, #FEF9F2, which is what the wash below is mixed from — a near-white
   wash like the other two would have left a pale panel sitting on top of a
   cream photograph with a visible seam where it faded out.

   It runs to x=944 at head height and to x=752 at the foot, where the near
   corner of the desk comes into the frame: 48% and 38%. That is a wider
   margin than the franchise band has and a narrower one than the centres
   band, so the wash is pitched between the two of them.

   The file is 2.5:1 and the band on a desktop is wider than that, so it
   fills by width and only the vertical number is used there. 42% rather
   than 50%: the foot of the frame is desk and the faces sit a little above
   centre, so the few pixels that have to go should come off the bottom. */
.bhero--demo .bhero__bg{ object-position: 0% 42%; }
.bhero--demo::before{
  background: linear-gradient(100deg,
    rgba(254, 249, 242, .95) 0%,
    rgba(254, 249, 242, .92) 32%,
    rgba(254, 249, 242, .68) 48%,
    rgba(254, 249, 242, 0)   64%);
}
/* Between about 900 and 1060 the band is NARROWER in ratio than the file,
   which is the one range where the first number above does anything: it
   crops horizontally, and 0% takes every one of those pixels off the right,
   where the third child's shoulder is, rather than off the clear side the
   headline is standing on. The wash still has to reach further right in
   that range, for the same reason it does on the other two bands — the
   clear half of a 950px screen is 460px and the text column is 560. */
@media (max-width: 1100px){
  .bhero--demo::before{
    background: linear-gradient(100deg,
      rgba(254, 249, 242, .96) 0%,
      rgba(254, 249, 242, .94) 46%,
      rgba(254, 249, 242, .76) 62%,
      rgba(254, 249, 242, 0)   80%);
  }
}
/* Stacked, the same arithmetic as the two bands above: a cover crop filling
   by height shows 793 x (box ratio) pixels of the file's width, and the
   class begins at x=944, so the box can be at most (1983-944)/793 = 1.31:1
   before daylight comes back into it. 4/3 is 1.333 — it shows 1057px and,
   flush right, opens at x=926, on the near edge of the desk with all three
   children inside it. 3/2 would open at x=793 and bring back a strip of
   empty cream down the left of a phone. */
@media (max-width: 900px){
  .bhero--demo .bhero__bg{ aspect-ratio: 4 / 3; object-position: 100% 50%; }
}

/* ---- /contact: how to reach us ----------------------------------------
   Two cards: everything that reaches a person in the office, and
   everything that reaches an inbox.

   It was three equal cards abreast and they were not equal — the e-mail
   card ran eight lines to the other two's four and the grid stretched
   all three to the tallest, leaving a third of the navy card empty.

   The whole band is set a step down from the page's usual card scale.
   It is reference, not argument: a reader comes to it already knowing
   what they want, and the form above is the thing on this page that
   should be carrying the weight. Two even halves: at the larger type
   this band started with, the left card had to be the wider of the two
   for the one-line address to fit, and at this size it no longer does. */
.reach__pair{ gap: clamp(14px, 1.6vw, 18px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px){
  .reach__pair{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.reachcard{ display: flex; flex-direction: column; padding: clamp(17px, 1.8vw, 22px); border-radius: var(--r-lg); }
.reachcard--details{ background: var(--navy); }
.reachcard--mail   { background: var(--surface); border: 1px solid var(--line); }

.reachcard__head{ display: flex; align-items: center; gap: clamp(10px, 1vw, 13px); }
.reachcard__chip{
  display: flex; align-items: center; justify-content: center; flex: none;
  align-self: flex-start;
  width: clamp(32px, 3vw, 38px); aspect-ratio: 1; border-radius: var(--r-pill);
}
.reachcard__chip svg{ width: 48%; height: 48%; }
.reachcard__chip--phone{ background: var(--green); }
.reachcard__chip--mail { background: var(--orange-chip); }
.mailcard__note{ margin-top: 3px; }

/* The three details stack with a hairline between them: they are one
   subject each, and without the rule the fine labels read as part of
   the line above. */
.reachrows{ margin-top: clamp(13px, 1.4vw, 17px); }
.reachrow + .reachrow{
  margin-top: clamp(11px, 1.2vw, 14px);
  padding-top: clamp(11px, 1.2vw, 14px);
  border-top: 1px solid var(--navy-line);
}
.reachrow .fine{ color: var(--on-navy-4); }
.reach__val{ margin-top: 2px; font-size: clamp(13.5px, 1.1vw, 15px); color: var(--on-navy-2); }

/* One line, and the size is what makes it one: 66 characters across a
   card this wide will not take the heading size it briefly had when the
   address was four stacked lines. Under 1100 there is no width for it
   either way and it wraps, as a postal address may. */
.reach__address{ margin-top: 3px; font-size: clamp(13.5px, 1.1vw, 15px); font-weight: 600; line-height: 1.45; color: #FFF; }
@media (min-width: 1100px){
  .reach__address{ white-space: nowrap; font-size: clamp(13px, 1.12vw, 15px); }
}

.reach__dir{
  display: inline-flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 13px; font-weight: 700; color: var(--on-navy-2);
  border-bottom: 1px solid rgba(255,255,255,.3);
}
.reach__dir:hover{ color: #FFF; border-bottom-color: #FFF; }
.reach__dir svg{ width: 13px; height: 13px; }

/* Bold and a step above the lines around it, but not set at heading
   size: at 30px it was the loudest thing on the page and left the
   address beside it looking like a footnote. */
.reach__num{
  display: inline-block; margin-top: 3px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(16px, 1.45vw, 18px); line-height: 1.3; letter-spacing: -.01em;
  color: #FFF;
}
.reach__num:hover{ color: var(--yellow); }

.reach__wa{
  display: flex; align-items: center; gap: 7px; width: max-content; max-width: 100%;
  margin-top: 9px; min-height: 32px; padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border: 1px solid var(--navy-line);
  font-size: 13px; font-weight: 700; color: var(--on-navy-2); white-space: nowrap;
}
.reach__wa svg{ width: 14px; height: 14px; }
.reach__wa:hover{ background: rgba(255,255,255,.15); color: #FFF; }

/* One column, so a 33-character address always has the card's full
   width and never hyphenates. The two cards are stretched to the taller
   of them by the grid, so the mailboxes space out to the foot of theirs
   rather than leaving a hand of empty card under the last one. */
.mailgrid{
  flex: 1; display: grid; align-content: space-between;
  gap: clamp(10px, 1.2vw, 14px); margin-top: clamp(13px, 1.4vw, 17px);
}
.mail{ display: block; min-width: 0; }
.mail__role{ display: block; font-family: var(--display); font-weight: 800; font-size: clamp(13.5px, 1.15vw, 15px); color: var(--navy); }
.mail__addr{ display: block; margin-top: 2px; font-size: clamp(12.5px, 1.05vw, 14px); line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.mail:hover .mail__addr{ color: var(--blue); }

/* The form above it is the same subject, so the band closes up to it
   rather than taking a full --section-y. */
.reach-section{ padding-top: clamp(28px, 3.4vw, 44px); }

/* ==========================================================================
   Gallery — the wall, and the photograph over the page
   ========================================================================== */

/* An even grid of identical tiles. The photographs are a mixed bag of shapes
   and sizes, and a uniform tile is the only thing that makes a set like that
   read as one wall rather than as a pile. auto-fill rather than a column
   count, so the row breaks where the page runs out instead of at a breakpoint
   somebody has to keep in step with the content; the min() is what stops a
   single tile overflowing a narrow phone. */
.gal{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}
.gal__item{
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg); background: var(--ground);
  box-shadow: var(--lift-card); cursor: zoom-in;
}
.gal__item img{ width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease-out; }
.gal__item:focus-visible{ outline: 3px solid var(--focus); outline-offset: 3px; }

/* The "load more" button under the wall. It is centred and given room above,
   so it reads as the end of what is shown rather than another tile. */
.gal__more{ display: flex; justify-content: center; margin-top: clamp(20px, 2.6vw, 30px); }


/* The magnifier says what the tile will do before it is touched. On a mouse it
   waits for the hover; on a touch screen there is no hover to wait for, so it
   simply sits there. */
.gal__zoom{
  position: absolute; right: 10px; bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-pill);
  background: rgba(20,38,77,.78); color: #FFF;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease-out, transform .25s ease-out;
}
.gal__item:focus-visible .gal__zoom{ opacity: 1; transform: none; }
@media (hover: hover){
  .gal__item:hover img{ transform: scale(1.06); }
  .gal__item:hover .gal__zoom{ opacity: 1; transform: none; }
}
@media (hover: none){ .gal__zoom{ opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){
  .gal__item img, .gal__zoom{ transition: none; }
  .gal__item:hover img{ transform: none; }
}

/* ---- the lightbox ---------------------------------------------------
   site.js builds this on the first click and then reuses it, so a page with
   no photographs on it carries none of this markup.

   The photograph is never scaled past its own pixels: max-width and
   max-height can only ever shrink it, and nothing sets a width. Several of
   these files are small, and a 576px photograph stretched across a 1600px
   screen looks worse than the same photograph shown honestly at its own size.
   The height cap leaves room underneath for the caption and, on a phone, for
   the two arrows that move down there out of the picture's way. */
.lb{
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(14px, 3vw, 40px);
  background: rgba(10, 20, 42, .96);
  animation: lbIn .18s ease-out;
}
.lb[hidden]{ display: none; }
@keyframes lbIn{ from{ opacity: 0; } to{ opacity: 1; } }

.lb__figure{ margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb__img{
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 74vh;
  border-radius: var(--r-md); box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.lb__cap{
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 2px 12px; max-width: 70ch; text-align: center;
  font-size: var(--t-sm); line-height: 1.5; color: rgba(255, 255, 255, .88);
}
.lb__cap small{ font-size: var(--t-xs); color: rgba(255, 255, 255, .55); white-space: nowrap; }

.lb__btn{
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(255, 255, 255, .13); color: #FFF;
  transition: background .2s ease-out;
}
.lb__btn:hover{ background: rgba(255, 255, 255, .26); }
.lb__btn:focus-visible{ outline: 3px solid #FFF; outline-offset: 3px; }
.lb__btn[hidden]{ display: none; }
.lb__close{ top: clamp(12px, 2vw, 22px); right: clamp(12px, 2vw, 22px); }
.lb__prev{ left: clamp(8px, 2vw, 26px); top: 50%; transform: translateY(-50%); }
.lb__next{ right: clamp(8px, 2vw, 26px); top: 50%; transform: translateY(-50%); }

/* On a phone the arrows would sit on top of the photograph, so they go to the
   bottom corners and the picture gives up the height they need. */
@media (max-width: 620px){
  .lb__prev, .lb__next{ top: auto; bottom: 14px; transform: none; }
  .lb__prev{ left: 14px; }
  .lb__next{ right: 14px; }
  .lb__img{ max-height: 60vh; }
}
@media (prefers-reduced-motion: reduce){
  .lb{ animation: none; }
  .lb__btn{ transition: none; }
}

/* ---- enquiry-form copy panels ----------------------------------------
   The column beside an enquiry form is a photograph carrying its own words.
   Two pages do this — /franchise-form and /school-partnership — and the
   client supplied a portrait for each, composed the same way, so everything
   below is shared except where in the band the class sits.

   THE PANEL TAKES THE PHOTOGRAPH'S SHAPE. That is what makes this work. The
   file is a portrait, 1024x1536, composed for exactly this job: the top half
   is bare sunlit wall and the class is along the foot. Give the panel that
   same 2:3 and the whole picture fits in it uncropped, the words land on the
   wall where there is nothing to cover, and the class is simply there below
   them at full size.

   The first attempt let the words decide the height instead. The panel came
   out at about three quarters of the picture's shape, the picture was cropped
   to fit, and the words — which are the same length either way — then sat over
   the teacher rather than over the wall and had to be given a wash heavy
   enough to hide her. The photograph became unreadable. A panel too short for
   its picture cannot be rescued by shading; it has to be the right shape.

   .copypanel is a grid item, so `min-height: auto` still applies and the ratio
   is a FLOOR, not a cage: where the words run longer than the wall — a narrow
   column, a phone — the panel grows past 2:3 and the photograph crops from the
   top, giving up the empty wall first because it is anchored to the bottom. */
.copypanel{
  position: relative; isolation: isolate;
  aspect-ratio: 1024 / 1536;
  border-radius: var(--r-xl); background: #FAF7F3;
}
.copypanel__bg{
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%;
  border-radius: inherit;
}

/* The wash belongs to the WORDS, not to the panel, and it is light — it is
   there to settle the type over the wall's shadows and the shelf in the top
   corner, not to blank the picture out. --reserve is the distance it has to
   fade over, and it is also the text block's bottom padding, so the fade can
   be stated in pixels from where the words actually end rather than as a
   percentage of a panel whose height changes with the content. */
.copypanel__text{
  --reserve: clamp(70px, 9vw, 120px);
  position: relative; border-radius: inherit;
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px) var(--reserve);
  background: linear-gradient(180deg,
    rgba(250, 247, 243, .90) 0%,
    rgba(250, 247, 243, .86) calc(100% - var(--reserve)),
    rgba(250, 247, 243, .52) calc(100% - var(--reserve) * .55),
    rgba(250, 247, 243, 0)   100%);
}

/* Four facts one under another made this column half as tall again, which
   pushed the words well past the wall and onto the class. Two by two keeps
   them on it. */
/* Where the column is narrow FOR THE LENGTH OF THE WORDS, the picture stops
   being the panel's background and becomes a band across its foot instead.

   Why a band and not simply a taller panel: while the panel is narrower than
   the picture's own shape, a cover crop fills by height and trims the sides,
   so the class sits at about two thirds down the panel however tall the panel
   is — and the words, which do not get shorter, keep landing on top of it. A
   taller shape only works at one width (2:5 was right at 390 and 1900 pixels
   tall at 760). A band of a stated height, cropped to where the class is, has
   no such dependency: the words' bottom padding is that same height, so they
   finish exactly where it begins.

   TWO ranges need it, and they are not next to each other, which is why this
   query reads oddly. The words fit on the wall whenever the column is roughly
   as wide as they are tall. It is, comfortably, from about 620 up to 900 —
   where the panel still has the whole page to itself — and again from 1120 up,
   where the form has moved beside it but the page is wide enough to give both
   of them room. It is not, in the two places between: a phone, and the band
   from 900 to 1120 where the split has just happened and the column is
   suddenly half of a screen that is not yet wide. */
@media (max-width: 620px), (min-width: 900px) and (max-width: 1119.98px){
  .copypanel{ aspect-ratio: auto; }
  .copypanel__bg{
    inset: auto 0 0 0; height: clamp(230px, 36vw, 330px);
  }
  .copypanel__text{ --reserve: clamp(230px, 36vw, 330px); }

  /* Where in the file the band is cut is the one thing the two pictures do
     not agree on, because the class is at a different height in each. In
     both cases flush to the bottom is wrong — it lands on the furniture.
     /franchise-form: 78% holds the three faces and the abacuses at every
     width in both ranges. /school-partnership: the four children sit lower
     in their frame and the abacuses are lower still, so the band has to come
     down with them or it cuts the beads off at the top. */
  .copypanel--franchise .copypanel__bg{ object-position: 50% 78%; }
  .copypanel--schools .copypanel__bg{ object-position: 50% 84%; }
}

/* ---- /join-our-team --------------------------------------------------
   The fourth panel, and the one whose picture is not a photograph of a
   room: the upper half is a flat wash of cream with a pale yellow shape
   drawn into the top-right corner, and the teacher, her abacus and her
   laptop are along the foot. The clear field runs to y=752 of 1536, so
   the words have very nearly the top half to themselves — the same half
   the other three give them, arrived at by illustration rather than by
   depth of field.

   It needs its own wash because the field is not the same colour as
   theirs. #FAF7F3 is a warm grey; this one is #FEFBF2, a cream, and the
   grey laid over it read as a dull patch with a visible edge where it
   faded out. The drawn yellow shape still shows through the top of it,
   which is the point — it is artwork, not a shadow to be hidden. */
.copypanel--teacher{ background: #FEFBF2; }
/* A deeper reserve and a slower fade than the other three, because this
   column's words run deeper into the picture than theirs do. Between
   1120 and about 1300 the panel is only 560 wide, the four labels wrap
   to two lines each, and the block ends about 60px past the clear field
   — on her hair, which is the darkest thing in the frame. At the shared
   120px reserve the wash was down to half strength by then. 150px and a
   fade that holds .66 through the middle of it keeps the labels on a
   field, and it is still clear of her face, which is 90px lower. */
.copypanel--teacher .copypanel__text{
  --reserve: clamp(90px, 11vw, 150px);
  background: linear-gradient(180deg,
    rgba(254, 251, 242, .92) 0%,
    rgba(254, 251, 242, .89) calc(100% - var(--reserve)),
    rgba(254, 251, 242, .66) calc(100% - var(--reserve) * .55),
    rgba(254, 251, 242, 0)   100%);
}

/* /contact and /join-our-team come apart below the split rather than
   becoming a band with the words still on them, and they do so at EVERY
   width below 1120, not only in the two ranges the first two use. Both
   differences come from the same two facts about those files.

   The first two panels carry a long column of text — eyebrow, headline,
   lead, four facts, a script line — so between 620 and 900, where the panel
   still has the page to itself, their words fill a 2:3 panel and showing
   the picture whole is right. /contact carries four short lines. At 760 it
   left a metre of photograph hanging under them: the panel came out 1030px
   tall and better than half of it was below the last word.

   And the subject of each is one person, not a class seated along a desk.
   On /contact her face and the abacus she is holding up run from y=480 to
   y=1150 of 1536; on /join-our-team the teacher, her abacus and the top of
   her laptop run from y=740 to y=1408. Two thirds of the frame either way,
   where the seated classes need barely a third. A band of a STATED height
   cannot hold two thirds of a portrait at more than one width: 300px was
   right on a phone and at 880, where the panel is 840 wide and the picture
   is scaled up to match, the same 300px showed a third of what it had shown
   at 390 and cut the subject at both ends. The height has to grow with the
   width, so what is stated here is the SHAPE — 3:2, which holds a 668px
   window of a 1024-wide file at every width in the range — and the words
   come off the picture and sit on the panel's own ground above it, which is
   the same thing .bhero does when it stacks.

   Only WHERE the 668px window sits differs, and that is the one line each
   file keeps for itself below. */
@media (max-width: 1119.98px){
  .copypanel--contact,
  .copypanel--teacher{ aspect-ratio: auto; display: flex; flex-direction: column; }
  .copypanel--contact .copypanel__bg,
  .copypanel--teacher .copypanel__bg{
    position: static; z-index: auto; order: 2;
    width: 100%; height: auto; aspect-ratio: 3 / 2;
    /* They inherit all four corners from the panel, which in flow leaves a
       notch of ground at each top corner where the words end. Only the two
       at the foot of the panel are theirs now. */
    border-radius: 0 0 var(--r-xl) var(--r-xl);
  }
  /* No wash: there is nothing under the words to settle them over now. The
     reserve goes back to being ordinary padding. */
  .copypanel--contact .copypanel__text,
  .copypanel--teacher .copypanel__text{
    --reserve: clamp(18px, 2.2vw, 26px);
    background: none;
  }

  .copypanel--contact .copypanel__bg{ object-position: 50% 56%; }
  /* 85%: the window is 668 of 1536 and the overflow it slides across is the
     other 868, so 85% opens it at y=740 — a dozen pixels above her hair. */
  .copypanel--teacher .copypanel__bg{ object-position: 50% 85%; }
}

/* Four facts in a row need about 110px each; below 760 the column cannot give
   them that, and two by two is shorter than four deep. */
@media (max-width: 760px){
  .copypanel .grid--4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   S0 — the student sign-in screen
   Built from the client's artwork of 13 October 2026
   ("WhatsApp Image 2026-10-13 at 8.22.57 AM.jpeg"), then reworked on
   16 October on three notes from Yogesh: proper fields, the drawing filling
   its own side of the screen, no wordmark (the header already carries it),
   and THE PAGE MUST NOT SCROLL.

   Those four pull in one direction, so the whole block is laid out for a
   fixed height rather than a fixed width. It is the only portal entrance
   that does not take .auth; the other four — /login, /student/register,
   /franchise/login, /admin/login — are untouched.

   Three of the colours are sampled from that file rather than taken from the
   palette, for the same reason --sky-1 and --cream are: they have to meet the
   drawing's own sky where it stops, and no palette blue does. They are scoped
   to this block and used nowhere else.
   ========================================================================== */

/* One screen, no scrollbar. The page becomes a column, the header and the
   footer keep whatever height they need, and this section takes the rest —
   so the card is sized against the space that is actually left, not against
   a guess at the chrome. svh, not vh: on a phone vh is the tallest the
   viewport ever gets, which is a scrollbar's worth too tall. */
body.is-slog{ display: flex; flex-direction: column; min-height: 100svh; }
body.is-slog > .slog{ flex: 1 1 auto; min-height: 0; }

/* The header and the footer are 140px of the screen the card has to fit in,
   which on a 1366x768 laptop is a fifth of it. The footer keeps its links and
   gives back a third of its height; the header is not touched, because it now
   carries the only wordmark on the page. */
body.is-slog .authfooter__inner{ padding-block: 9px; font-size: var(--t-xs); }

.slog{
  --slog-sky-1:  #80C9FE;   /* the top of the artwork's sky                  */
  --slog-sky-2:  #BDE6FC;   /* the band the castle stands in                 */
  --slog-sky-3:  #E9F6FF;   /* the haze at the horizon                       */
  --slog-field:  #EDF3FD;   /* the fill of the three input boxes             */
  --slog-lift:   #2D6BE0;   /* the light stop of Login — white on it is 4.8:1 */

  position: relative;
  overflow: hidden;
  display: grid;
  /* The drawing is 598x999 — very portrait — and the half it is given is
     nearly square, so cover has to throw a lot away. Capping the column near
     the file's own width keeps the zoom close to 1:1, which is the
     difference between the whole scene and two enormous faces. */
  grid-template-columns: min(46%, 660px) minmax(0, 1fr);
  background: linear-gradient(180deg,
              var(--slog-sky-1) 0%, var(--slog-sky-2) 38%, var(--slog-sky-3) 100%);
}

/* ---- the left half: the drawing, full bleed ---------------------------- */

.slog__art{ position: relative; min-height: 0; }

/* It fills its half corner to corner — no gutter, no box, no shadow. The
   window is opened at 8% from the top: both heads start about 4% down the
   file and a centred crop takes the boy's hair off, which is the oldest
   mistake in this folder. The right edge is the one place the drawing meets
   the page's own sky, so that edge alone is faded out. */
.slog__scene{
  position: absolute; z-index: 0; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 5%;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%);
}

/* Nothing is written on the drawing. The wordmark went on 16 October because
   the header already carries it, and "Practice • Improve • Grow Brighter"
   went with it the same day — so the wash that used to sit under that line,
   holding it legible over the sky and the treetops, went too. */

/* ---- the right half: the card, centred in the sky ---------------------- */

/* Decoration, never read, so it is out of the accessibility tree and out of
   the way of the pointer. It hangs off .slog and sits under the card column,
   which is where the artwork has it — its base is behind the card there too.
   The file carries a fade on three edges already, but its own sky is a shade
   lighter than the sky it is being put on, so a radial mask takes the corners
   out altogether and leaves the towers, which is all that is wanted off it. */
.slog__castle{
  position: absolute; z-index: 0; top: 0; right: 0;
  width: clamp(170px, 21vw, 325px); height: auto;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(66% 70% at 54% 30%, #000 0 44%, transparent 100%);
          mask-image: radial-gradient(66% 70% at 54% 30%, #000 0 44%, transparent 100%);
}

.slog__side{
  position: relative; z-index: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(10px, 1.6vh, 28px) clamp(20px, 3.4vw, 56px);
}

.slog__card{
  width: 100%; max-width: 500px;
  background: var(--surface);
  border-radius: clamp(16px, 2.2vh, 28px);
  padding: clamp(14px, 2.5vh, 30px);
  box-shadow: 0 24px 60px -24px rgba(20,38,77,.40), 0 2px 10px rgba(20,38,77,.08);
}

/* The preview note. It is not in the artwork; it is in the product, because
   nothing on this screen signs anybody in yet (design standards 5.3). On a
   screen that may not scroll it is the one thing that has to earn its height,
   so it is one short line. */
.slog__preview{
  margin: 0 0 clamp(8px, 1.35vh, 16px);
  background: var(--yellow-tint); border-left: 3px solid var(--yellow);
  border-radius: var(--r-sm);
  padding: clamp(6px, .85vh, 10px) 12px;
  font-size: clamp(11.5px, 1.4vh, 13px); line-height: 1.45; color: var(--navy);
}

.slog__msg{
  border-left: 3px solid var(--blue); border-radius: var(--r-sm);
  padding: clamp(6px, .85vh, 10px) 12px;
  font-size: clamp(11.5px, 1.4vh, 13px); line-height: 1.45; color: var(--navy);
  background: var(--blue-tint);
}
.slog__msg--bad{ border-left-color: var(--red); background: #FDECEC; }
.slog__msg a{ color: inherit; font-weight: 600; text-decoration: underline; }
.slog__who-list{ display: grid; gap: 8px; margin-top: 8px; }
.slog__who-list button{
  display: flex; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #FFF; font: inherit; color: var(--navy); text-align: left; cursor: pointer;
}
.slog__who-list button:hover{ border-color: var(--blue); }
.slog__who-list small{ color: var(--muted); }

.slog__head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.slog__hi{
  margin: 0;
  font-size: clamp(23px, 4.3vh, 46px); font-weight: 800; letter-spacing: -.02em;
  line-height: 1.05; color: var(--navy);
}
.slog__who{
  margin: 2px 0 0;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(14px, 2vh, 23px); line-height: 1.2; color: var(--navy);
}
.slog__star{ flex: none; width: clamp(50px, 8.4vh, 92px); height: auto; margin-top: -4px; }

.slog__intro{
  margin: clamp(6px, 1.25vh, 16px) 0 0;
  text-align: center;
  font-size: clamp(12.5px, 1.7vh, 17px); line-height: 1.5; color: var(--navy);
}

/* ---- the three fields --------------------------------------------------
   The artwork sets the field's NAME in the big type and its hint in the
   small, which works on a drawing and not on a form: what a child types
   would then arrive in the smaller of the two lines. So the two weights are
   swapped and nothing else is — the name is the caption, the hint is the
   placeholder it replaces, and the typed value is the line you read. */

.slog__form{ margin-top: clamp(8px, 1.6vh, 20px); display: flex; flex-direction: column; gap: clamp(6px, 1.05vh, 12px); }

.slogf{
  display: flex; align-items: center; gap: clamp(10px, 1.2vw, 14px);
  background: var(--slog-field);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: clamp(6px, 1vh, 11px) clamp(12px, 1.3vw, 16px);
}
.slogf:focus-within{ background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,79,193,.16); }

.slogf__ico{ flex: none; display: flex; color: var(--blue); }
.slogf__ico svg{ width: clamp(20px, 2.7vh, 26px); height: auto; }
.slogf__body{ flex: 1; min-width: 0; display: flex; flex-direction: column; }

.slogf__label{
  font-family: var(--display); font-weight: 700; letter-spacing: .01em;
  font-size: clamp(11px, 1.35vh, 13px); line-height: 1.3; color: var(--muted);
  cursor: pointer;
}
/* The hint is the placeholder, which cannot wrap, so the longest one
   ("Enter the 6-digit OTP") decides the size. If a
   wider font or a translation still overruns it ends in an ellipsis rather
   than stopping mid-letter. */
.slogf__in{
  width: 100%; padding: 0; border: 0; background: none;
  font-family: var(--text); font-weight: 500;
  font-size: clamp(13.5px, 1.85vh, 17px); line-height: 1.45; color: var(--navy);
  text-overflow: ellipsis;
}
.slogf__in::placeholder{ font-weight: 400; color: var(--muted); opacity: 1; }
.slogf__in:focus{ outline: none; }

/* Send OTP. A real button inside the mobile field, so it keeps a focus ring
   of its own — the box's ring belongs to the field. It sends nothing yet:
   there is no SMS gateway until M15. */
.slogf__send{
  flex: none; padding: clamp(6px, .9vh, 9px) clamp(10px, 1.1vw, 14px);
  background: var(--surface); border: 0; border-radius: var(--r-md);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(12px, 1.5vh, 14px); color: var(--blue); white-space: nowrap;
  cursor: pointer;
}
.slogf__send:hover{ background: var(--blue-chip); color: var(--navy); }
.slogf__send:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- Login, help ------------------------------------------------------- */

/* A gradient, which the standards allow the student surface and nowhere else:
   two stops, it paints and carries no state, and white on the LIGHTER stop is
   4.8:1. The artwork draws this button this way. */
.slog__go{
  /* width, because a <button> shrink-to-fits even as a block-level flex box
     and the sign-in screen only ever showed an <a> here on the review copy —
     the live one is a real submit and was quietly half the width. */
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: clamp(4px, .9vh, 10px);
  min-height: clamp(40px, 5.8vh, 58px);
  border: 0; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--slog-lift) 0%, var(--blue) 100%);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(15px, 2vh, 20px); color: #FFF;
  text-align: center; cursor: pointer;
}
.slog__go:hover{ background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%); color: #FFF; }
.slog__go:focus-visible{ outline: 3px solid var(--navy); outline-offset: 3px; }
.slog__go svg{ width: clamp(16px, 2.2vh, 20px); height: auto; }

.slog__help{
  display: flex; align-items: center; gap: clamp(10px, 1.2vw, 14px);
  margin-top: clamp(8px, 1.35vh, 16px);
  background: var(--blue-tint); border-radius: var(--r-lg);
  padding: clamp(6px, 1.05vh, 12px) clamp(12px, 1.3vw, 16px);
}
.slog__help__txt{ min-width: 0; }
.slog__help__txt b{ display: block; font-family: var(--display); font-weight: 700; font-size: clamp(12px, 1.6vh, 14px); line-height: 1.35; color: var(--navy); }
.slog__help__txt span{ display: block; font-size: clamp(12px, 1.6vh, 14px); line-height: 1.35; color: var(--muted); }
.slog__qmark{
  flex: none; display: flex; align-items: center; justify-content: center;
  width: clamp(26px, 3.6vh, 34px); height: clamp(26px, 3.6vh, 34px);
  border-radius: var(--r-pill);
  background: var(--blue); color: #FFF;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(14px, 2vh, 18px); line-height: 1;
}

/* The two feet the artwork does not draw but the product needs: the way to
   register, and the way out when the code is the thing that is lost. */
.slog__feet{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 16px;
  margin-top: clamp(7px, 1.25vh, 16px); padding-top: clamp(6px, 1.05vh, 13px);
  border-top: 1px solid var(--line);
  font-size: clamp(12px, 1.6vh, 14px); color: var(--muted);
}
.slog__feet a{ font-weight: 600; color: var(--navy); }
.slog__feet a:hover{ color: var(--blue); }


/* ---- the register screen ------------------------------------------------
   The same shell as the sign-in screen, carrying a card with about twice the
   content: six fields, a referral code, an avatar, a consent box and a real
   submit. So the drawing gives up a little of its half and the card takes it.

   Unlike the sign-in screen this form is REAL — it posts to EnquiryController
   with every field name that controller's label map knows, and it keeps the
   honeypot. Nothing here may change a name attribute.                       */

.slog--reg{ grid-template-columns: min(38%, 560px) minmax(0, 1fr); }
.slog--reg .slog__card{ max-width: 620px; }

/* Two to a row, because three rows of two fit the height a laptop has and six
   rows of one do not. */
.slog__grid{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 1.05vh, 12px) clamp(10px, 1.2vw, 14px);
  margin-top: clamp(8px, 1.6vh, 20px);
}
.slogf--wide{ grid-column: 1 / -1; }

.slogf__req{ color: var(--red); }

/* A select and a date field are the same box as a text field: the caption on
   top, the control under it, no second border inside the first. */
select.slogf__in{
  -webkit-appearance: none; appearance: none;
  cursor: pointer; padding-right: 2px;
}
.slogf__caret{ flex: none; display: flex; color: var(--muted); pointer-events: none; }
.slogf__caret svg{ width: clamp(16px, 2.2vh, 20px); height: auto; }
input[type="date"].slogf__in::-webkit-calendar-picker-indicator{ opacity: .5; cursor: pointer; }

/* Read-only, because the centre decides where a child starts (SOW §4.2) and
   no form on this site may look as though it is being asked. */
.slogf--locked{ opacity: .72; }
.slogf--locked .slogf__in{ cursor: default; }

.slog__hint{
  margin: clamp(4px, .7vh, 8px) 0 0;
  font-size: clamp(11px, 1.35vh, 12.5px); line-height: 1.4; color: var(--muted);
}


.slog__ok{
  margin-top: clamp(8px, 1.3vh, 16px);
  font-size: clamp(11.5px, 1.5vh, 13px); line-height: 1.4;
}
.slog__ok input{ width: clamp(16px, 2.2vh, 20px); height: clamp(16px, 2.2vh, 20px); }
/* ---- stacked ------------------------------------------------------------
   Below 1020 the drawing cannot stand beside the card and stay big enough to
   read, so it becomes a band across the top and the page scrolls like any
   other. One screen with no scrollbar is a promise this layout cannot keep
   and should not try to: a phone would have to shrink the card to the point
   where the fields are no longer comfortably tappable. */
@media (max-width: 1020px){
  body.is-slog{ display: block; min-height: 0; }

  .slog,
  .slog--reg{ grid-template-columns: minmax(0, 1fr); padding-top: clamp(16px, 4vw, 30px); }
  /* Capped at the file's own 598px and centred, NOT stretched across the
     page: cover scales by whichever ratio is larger, and on an 885px band a
     598px drawing is blown up half as big again — which is two enormous faces
     and no abacus. At 598 the zoom is 1:1 and the band is a window onto the
     scene rather than a crop of one child. */
  .slog__art{
    width: 100%; max-width: 520px; justify-self: center;
    height: clamp(205px, 42vw, 380px);
  }
  .slog__scene{
    object-position: 50% 10%;
    border-radius: var(--r-xl);
    -webkit-mask-image: none; mask-image: none;
  }
  .slog__side{ padding: clamp(18px, 4vw, 34px) var(--pad); }
  .slog__card{ max-width: 520px; }

  /* Every size inside the card was tied to the viewport's HEIGHT so the
     desktop screen could hold still. Once the page scrolls that is the wrong
     measure — a short landscape phone would shrink the type for no reason —
     so the card goes back to fixed sizes here. */
  .slog__hi{ font-size: clamp(30px, 7vw, 42px); }
  .slog__who{ font-size: clamp(17px, 3.6vw, 22px); }
  .slog__star{ width: clamp(58px, 13vw, 86px); }
  .slog__intro{ font-size: clamp(14px, 3.4vw, 17px); margin-top: 12px; }
  .slog__card{ padding: clamp(18px, 4.4vw, 28px); border-radius: clamp(18px, 4vw, 26px); }
  .slog__form{ margin-top: 16px; gap: 10px; }
  .slogf{ padding: 10px clamp(12px, 3.4vw, 16px); }
  /* The glyphs were sized against the viewport's height for the desktop
     screen; here that is the wrong measure and it is the width the longest
     hint is fighting for. */
  .slogf__ico svg{ width: 22px; }
  .slogf__label{ font-size: 12.5px; }
  /* 16px, and not a tenth less: iOS Safari zooms the page in on any input it
     is asked to focus below that, and it does not zoom back out. The HINT is
     allowed to be smaller, because a placeholder's size is not what triggers
     it — and the mobile hint shares its row with Send OTP at 390. */
  .slogf__in{ font-size: 16px; }
  .slogf__in::placeholder{ font-size: 13px; }
  .slog__go{ min-height: 52px; font-size: clamp(16px, 4.2vw, 19px); margin-top: 8px; }
  .slog__help__txt b, .slog__help__txt span, .slog__feet{ font-size: 13.5px; }

  /* The register card is wider than the sign-in one; the band matches it so
     the two edges line up down the page. */
  .slog--reg .slog__card{ max-width: 560px; }
  .slog--reg .slog__art{ max-width: 560px; }

  .slog__grid{ margin-top: 14px; gap: 10px 12px; }
  .slog__ok{ font-size: 13px; }
  .slog__hint{ font-size: 12.5px; }

  /* The card is the width of the column now, so the castle has no sky to
     stand in that is not already somebody's words. */
  .slog__castle{ display: none; }
}

/* Two fields side by side need about 190px each; below 560 the card cannot
   give them that and a date field starts truncating its own placeholder. */
@media (max-width: 560px){
  .slog__grid{ grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   The avatar picker
   Twenty illustrated characters from config/avatars.php, drawn by the client
   and delivered on 13 October 2026. Shared by two screens on two different
   shells — /student/register, which is public and takes site.css, and S2 in
   the student portal, which takes site.css as well — so it lives here and not
   in panel.css or student-play.css.

   The register card has to fit one screen, so it shows the chosen character
   and opens the twenty in a dialog. S2 scrolls, so it shows all twenty flat.
   Same partial, same radiogroup, same keys either way.
   ========================================================================== */

.avpick{ position: relative; }

/* ---- Boys / Girls -------------------------------------------------------
   The client asked for the two tabs on 16 October, so that ten are on screen
   at a time and the dialog does not scroll.

   They are two radios and an attribute selector, not script: the partial is
   shared by the public register page and by S2 inside the portal, and those
   two load different bundles. Matching on [value=] rather than on an id is
   what lets one static rule drive every instance, however its ids are
   prefixed. */
.avpick__tab{ position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.avpick__tabs{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
  margin-bottom: clamp(12px, 1.8vh, 18px);
}
.avpick__tabbtn{
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: clamp(44px, 5.4vh, 56px); padding-inline: 12px;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(14px, 1.8vh, 18px); color: var(--muted);
  cursor: pointer;
}
.avpick__tabbtn img{
  flex: none; width: clamp(26px, 3.6vh, 34px); height: auto; aspect-ratio: 1;
  border-radius: var(--r-pill); background: var(--surface);
}
.avpick__tabbtn:hover{ border-color: var(--blue); color: var(--navy); }

/* Chosen is the filled pill AND the only panel on screen — the colour is not
   carrying the state on its own. Blue for the boys and the wordmark pink for
   the girls is the mockups own pairing; white is 7.1:1 on the first and
   5.6:1 on the second. */
.avpick__tab[value="boys"]:checked ~ .avpick__tabs .avpick__tabbtn--boys{
  background: var(--blue); border-color: var(--blue); color: #FFF;
}
.avpick__tab[value="girls"]:checked ~ .avpick__tabs .avpick__tabbtn--girls{
  background: var(--icon-pink); border-color: var(--icon-pink); color: #FFF;
}
.avpick__tab:focus-visible ~ .avpick__tabs .avpick__tabbtn{ outline: 2px solid var(--focus); outline-offset: 2px; }

/* Only the chosen group is in the document at all, so nothing underneath it
   is reachable by Tab while it is hidden. */
.avpick__group{ display: none; }
.avpick__tab[value="boys"]:checked  ~ .avpick__group--boys,
.avpick__tab[value="girls"]:checked ~ .avpick__group--girls{ display: block; }

.avpick__row{
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
}

.avtile{ position: relative; display: block; cursor: pointer; text-align: center; }
.avtile input{ position: absolute; width: 1px; height: 1px; opacity: 0; }

/* The drawings are 220px square and are never shown bigger than that. */
.avtile__art{
  width: 100%; height: auto; aspect-ratio: 1;
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  background: var(--ground);
  transition: transform .14s ease;
}
.avtile:hover .avtile__art{ transform: translateY(-2px); }
.avtile input:checked + .avtile__art{
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,79,193,.18);
}
.avtile input:focus-visible + .avtile__art{ outline: 3px solid var(--focus); outline-offset: 3px; }

.avtile__name{
  display: block; margin-top: 5px;
  font-family: var(--display); font-weight: 600; font-size: var(--t-xs);
  line-height: 1.3; color: var(--navy);
}
.avtile input:checked ~ .avtile__name{ color: var(--blue); }

/* The tick the mockups put on the chosen tile. It is decoration — the border,
   the ring and the name's colour already say which one is picked, and the
   radio says it to a screen reader. */
.avtile__tick{
  position: absolute; top: 6px; right: 6px;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: var(--r-pill);
  background: var(--blue); color: #FFF;
  opacity: 0; transform: scale(.6);
  transition: opacity .14s ease, transform .14s ease;
  pointer-events: none;
}
.avtile input:checked ~ .avtile__tick{ opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce){
  .avtile__art, .avtile__tick{ transition: none; }
  .avtile:hover .avtile__art{ transform: none; }
}

/* ---- the chosen one, on a card that has no room for twenty -------------- */

.avnow{
  display: flex; align-items: center; gap: clamp(10px, 1.2vw, 14px);
  margin-top: clamp(8px, 1.4vh, 16px);
  background: var(--slog-field, var(--blue-tint));
  border-radius: var(--r-lg);
  padding: clamp(6px, .9vh, 10px) clamp(10px, 1.2vw, 14px);
}
.avnow__art{
  flex: none; width: clamp(38px, 5.4vh, 54px); height: auto; aspect-ratio: 1;
  border-radius: var(--r-md); background: var(--surface);
}
.avnow__txt{ flex: 1; min-width: 0; }
.avnow__txt b{
  display: block;
  font-family: var(--display); font-weight: 700; letter-spacing: .01em;
  font-size: clamp(11px, 1.35vh, 13px); line-height: 1.3; color: var(--muted);
}
.avnow__txt span{
  display: block;
  font-family: var(--text); font-weight: 500;
  font-size: clamp(13.5px, 1.85vh, 17px); line-height: 1.45; color: var(--navy);
}
.avnow__btn{
  flex: none;
  min-height: clamp(32px, 4.2vh, 40px); padding-inline: clamp(12px, 1.4vw, 18px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(12px, 1.5vh, 14px); color: var(--navy); cursor: pointer;
}
.avnow__btn:hover{ border-color: var(--blue); color: var(--blue); }
.avnow__btn:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- the twenty, in a dialog ------------------------------------------- */

/* 720, not 860: five tiles across a wider box are 150px each, and two rows of
   those is what pushed the Done button off the bottom of a 768px laptop. */
.avdlg{
  width: min(720px, calc(100vw - 32px));
  max-height: min(880px, calc(100svh - 40px));
  padding: 0; border: 0; border-radius: var(--r-xl);
  background: var(--surface); color: var(--navy);
  box-shadow: 0 40px 90px -30px rgba(20,38,77,.55);
  overflow: auto;
}
.avdlg::backdrop{ background: rgba(20,38,77,.55); }
/* Without showModal() a dialog is an ordinary box in the flow; this keeps it
   where a modal would be, so the fallback is usable rather than merely
   present. */
.avdlg[open]{ position: fixed; inset: 0; margin: auto; }

.avdlg__in{ padding: clamp(16px, 2.4vh, 26px); }
.avdlg__head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.avdlg__head h2{ margin: 0; font-size: clamp(20px, 3.4vh, 28px); font-weight: 800; letter-spacing: -.01em; }
.avdlg__head p{ margin: 4px 0 0; font-size: var(--t-sm); color: var(--muted); }
.avdlg__x{
  flex: none; width: 36px; height: 36px; padding: 0;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer;
}
.avdlg__x:hover{ background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }
.avdlg__x:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }

.avdlg .avpick{ margin-top: clamp(12px, 2vh, 20px); }
/* A pill the width of its own words, centred — the mockups Continue button.
   It was full width, which on a short laptop was 70px of the height the
   twenty drawings needed. */
.avdlg__done{
  display: flex; width: fit-content; margin: clamp(12px, 2vh, 20px) auto 0;
  min-height: clamp(40px, 5.2vh, 48px); padding-inline: clamp(30px, 5vw, 46px);
  font-size: clamp(14px, 1.9vh, 16px);
}

/* Four across below 760 and three below 520: five 220px drawings need about
   560px of card before the names start wrapping mid-word. */
@media (max-width: 760px){
  .avpick__row{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .avpick__row{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .avtile__tick{ width: 18px; height: 18px; }

  /* Three across is four rows, so the heading gives back what it can — sized
     in px here, because vh on a tall phone makes a title BIGGER than it is on
     a laptop, which is the wrong way round and was the last three pixels
     between ten drawings and a scrollbar. */
  .avdlg__in{ padding: 16px; }
  .avdlg__head h2{ font-size: 22px; }
  .avdlg__head p{ font-size: 12.5px; }
  .avdlg__x{ width: 32px; height: 32px; font-size: 18px; }

  /* Four rows multiply everything: a pixel off a name is four off the
     dialog. The girls' tab is the one that decides it — "Sportsperson" and
     "Unicorn Friend" are the two longest names in the set, so measure on
     that tab and not on the one that opens. */
  .avpick__row{ gap: 7px; }
  .avtile__name{ font-size: 12px; margin-top: 3px; }
  .avpick__tabs{ margin-bottom: 10px; }
}
