/* ==== tokens.css ==== */
/* Bright Starts - design tokens.  Concept "First light": capsules + circles, warm daylight, navy ink, red for action, sun for joy.
   Layout concept: floating pill chrome over rounded photo heroes; calm alternating paper/cream bands; one bold band per page. */
:root {
  /* ---- brand colour ---- */
  --red: #E52520;
  --red-deep: #B31917;
  --red-text: #C81E1A;   /* red for text/links on light surfaces (5.6:1 on paper) */
  --red-soft: #FDE8E7;
  --sun: #FFDD00;
  --sun-deep: #F5B800;
  --sun-soft: #FFF3B0;
  --sun-mist: #FFFAE0;
  --orange: #FF8A3D;
  --orange-soft: #FFE1CC;
  --peach: #FFE3B8;
  --cream: #FFF8EC;
  --paper: #FFFDF9;
  --white: #FFFFFF;
  --navy: #1B2250;
  --navy-deep: #121738;
  --navy-soft: #2C3470;
  --ink: #2A3160;
  --muted: #636990;
  --line: rgba(27, 34, 80, 0.10);
  --line-strong: rgba(27, 34, 80, 0.18);

  /* rooms (from the printed brochure) */
  --room-baby: #6F4793;
  --room-baby-soft: #EFE7F6;
  --room-tweenies: #D9559A;
  --room-tweenies-soft: #FBE6F1;
  --room-twos: #F08A62;
  --room-twos-soft: #FDEADF;
  --room-preschool: #F5A623;
  --room-preschool-soft: #FEF1D6;
  /* after school / school-age rooms (tone "afterschool"; not in the printed brochure) */
  --room-afterschool: #2A9BC4;
  --room-afterschool-soft: #DFF2F9;
  /* nature accents */
  --sky: #5FCDE3;
  --sky-soft: #E2F6FA;
  --leaf: #7DB948;
  --leaf-soft: #EAF4DF;

  /* semantic */
  --bg: var(--paper);
  --surface: var(--white);
  --text: var(--ink);
  --heading: var(--navy);
  --accent: var(--red);
  --accent-contrast: #FFFFFF;
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--navy);
  --success: #2E8B57;
  --grad-sunrise: linear-gradient(135deg, #FFDD00 0%, #FFB52E 55%, #FF8A3D 100%);
  --glow-sun: radial-gradient(closest-side, rgba(255, 221, 0, 0.55), rgba(255, 221, 0, 0) 70%);

  /* ---- type ---- */
  --font-display: "Gabarito", "Figtree", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-accent: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display-weight: 600;
  --display-tracking: -0.018em;   /* r4: less squashed */

  --fs-display: clamp(2.6rem, 1.5rem + 3.4vw, 4.6rem);   /* r4: "zoomed out" scale with air */
  --fs-h1: clamp(2.2rem, 1.4rem + 2.3vw, 3.5rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 1.6vw, 2.75rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
  --fs-h4: 1.2rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;
  --lh-tight: 1.1;
  --lh-snug: 1.28;
  --lh-body: 1.7;

  /* ---- space ---- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(80px, 8.6vw, 132px);   /* r4: generous air between sections */
  --container: 1240px;
  --container-wide: 1440px;
  --container-narrow: 820px;
  --header-h: 74px;   /* r4: calm, balanced pill (logo 56px) */
  --header-top: 16px;

  /* ---- shape ---- */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* ---- depth (navy-tinted, layered) ---- */
  --shadow-1: 0 1px 2px rgba(27, 34, 80, 0.05), 0 6px 20px -6px rgba(27, 34, 80, 0.10);
  --shadow-2: 0 2px 4px rgba(27, 34, 80, 0.05), 0 18px 44px -12px rgba(27, 34, 80, 0.20);
  --shadow-3: 0 4px 10px rgba(27, 34, 80, 0.06), 0 30px 70px -18px rgba(27, 34, 80, 0.30);
  --shadow-sun: 0 10px 30px -8px rgba(245, 184, 0, 0.55);
  --shadow-red: 0 10px 28px -10px rgba(229, 37, 32, 0.55);
  --glass-bg: rgba(255, 255, 255, 0.74);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-blur: blur(18px) saturate(1.4);

  /* ---- motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.25, 0.6, 0.3, 1);
  --t-1: 140ms;
  --t-2: 240ms;
  --t-3: 420ms;
  --t-4: 700ms;
  --t-5: 1100ms;

  --z-base: 1; --z-raised: 10; --z-sticky: 50; --z-header: 100; --z-overlay: 200; --z-modal: 300; --z-lab: 400; --z-toast: 500;

  color-scheme: light;
}

/* Design Lab - type pairings (site-wide). Default = "sunny" (no attribute). */
:root[data-type="storybook"] {
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-accent: "Fraunces", "Iowan Old Style", Georgia, serif;
  --display-weight: 500;
  --display-tracking: -0.025em;
}
:root[data-type="brochure"] {
  --font-display: "Capriola", "Gabarito", ui-rounded, system-ui, sans-serif;
  --font-body: "Poppins", "Figtree", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.02em;
}
/* Design Lab - mood (site-wide). Default = "daylight". */
:root[data-mood="sunshine"] {
  --paper: #FFFBEA;
  --cream: #FFF1B8;
  --bg: var(--paper);
}
:root[data-mood="navy"] {
  --accent: var(--navy);
  --cream: #F2F3FA;
  --paper: #FFFFFF;
  --bg: var(--paper);
}

@media (max-width: 720px) {
  :root { --header-h: 60px; --header-top: 10px; --r-xl: 28px; --r-lg: 22px; }
}
/* Phones: calmer band rhythm (64px, brief: 56-72) and a display/h1 scale that keeps big headings to a few lines.
   Body stays 17px / 1.7. Desktop values above are untouched.
   r11: the client asked for "a bit more gap, maybe each section" on the phone: 64 → 76px. */
@media (max-width: 599px) {
  :root {
    --section-y: 76px;
    --fs-display: clamp(2.25rem, 1.2rem + 4.6vw, 2.6rem);
    --fs-h1: clamp(2rem, 1.25rem + 3vw, 2.2rem);
    --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 1.9rem);
  }
}

/* ==== base.css ==== */
/* base.css - reset, document defaults, headings, links, focus, a11y helpers, view transitions.
   Only tokens from tokens.css are used. Single (light) theme by design. */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + var(--header-top) + var(--s-5));
  tab-size: 2;
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: clip;
}

/* Phones/tablets: mobile browsers widen the layout viewport to fit anything that pokes past the right edge (a decorative
   sun, a marquee track), even with body { overflow-x: clip }. Clipping <main> and the footer themselves stops that, without
   making them scroll containers (position: sticky inside keeps working). */
@media (max-width: 1279px) {
  main, .site-footer { overflow-x: clip; }
}

/* ---------- headings & text ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--heading);
  line-height: var(--lh-snug);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.016em; }
h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; }
h5, h6 { font-size: var(--fs-body); line-height: 1.35; letter-spacing: -0.005em; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
strong, b { font-weight: 700; color: var(--heading); }
small { font-size: var(--fs-small); }
em, i, cite { font-style: italic; }
address { font-style: normal; }
sup, sub { font-size: 0.7em; line-height: 0; }
hr { border: 0; height: 1px; background: var(--line); }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; cursor: help; }

/* ---------- links ---------- */
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: color var(--t-2) var(--ease-out), text-decoration-color var(--t-2) var(--ease-out);
}
a:hover { text-decoration-color: currentColor; }
a[class] { text-decoration-line: none; }            /* component links style themselves */
a[href^="tel:"] { white-space: nowrap; }

/* ---------- lists ---------- */
ul[class], ol[class] { list-style: none; padding: 0; }

/* ---------- media ---------- */
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
img { font-style: italic; }        /* alt text reads as a caption while a photo loads */
svg { flex-shrink: 0; }
iframe { border: 0; }

/* ---------- forms (resets only - look lives in components/forms.css) ---------- */
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
summary { cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }
th { text-align: left; font-weight: 700; }
:target { scroll-margin-top: calc(var(--header-h) + var(--header-top) + var(--s-5)); }

/* ---------- selection ---------- */
::selection { background: var(--sun); color: var(--navy); text-shadow: none; }

/* ---------- focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid transparent;          /* stays visible in forced-colors mode */
  outline-offset: 2px;
  box-shadow: var(--focus);
  border-radius: var(--r-sm);
}
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { transition: box-shadow var(--t-1) var(--ease-out); }
/* containers that only receive programmatic focus (skip-link target, dialogs' roots) show no ring */
main:focus-visible, [tabindex="-1"]:focus-visible { box-shadow: none; }
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
}

/* ---------- accessibility helpers ---------- */
[hidden] { display: none !important; }
.visually-hidden:not(:focus):not(:active):not(:focus-within) {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: var(--s-3);
  left: var(--s-3);
  z-index: calc(var(--z-toast) + 1);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-3);
  transform: translateY(calc(-100% - var(--s-5)));
  transition: transform var(--t-2) var(--ease-out);
}
.skip-link:focus { transform: none; box-shadow: var(--shadow-3), var(--focus); }

/* Inline icons from the icon() macro: sized by the surrounding text. */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  vertical-align: -0.25em;
}
.icon--sm { width: 1em; height: 1em; vertical-align: -0.14em; }
.icon--lg { width: 1.6em; height: 1.6em; }
.icon--xl { width: 2.25em; height: 2.25em; stroke-width: 1.75; }
.icon--fill { fill: currentColor; }

/* Missing photo placeholder emitted by the img() macro - deliberately loud so gaps get noticed. */
.img-missing {
  --ar: 4 / 3;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--ar);
  padding: var(--s-4);
  background:
    repeating-linear-gradient(-45deg, var(--peach) 0 14px, var(--cream) 14px 28px);
  color: var(--navy);
  border-radius: inherit;
  overflow: hidden;
}
.img-missing > span {
  max-width: 100%;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--white);
  font: 600 var(--fs-micro) / 1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-1);
}

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

/* ---------- page-to-page view transitions (progressive enhancement) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: bs-vt-out 180ms var(--ease-soft) both; }
  ::view-transition-new(root) { animation: bs-vt-in 340ms var(--ease-soft) 60ms both; }
  ::view-transition-group(*) { animation-duration: var(--t-3); animation-timing-function: var(--ease-in-out); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@keyframes bs-vt-out { to { opacity: 0; } }
@keyframes bs-vt-in { from { opacity: 0; } }

/* ==== layout.css ==== */
/* layout.css - containers, sections (bands), surface contexts, split / grid / stack / cluster / bleed. */

/* ---------- surface contexts ----------
   A navy or sun surface re-points the semantic tokens (--heading, --text, --muted, --line…) and a few --ctx-* hooks that
   buttons, eyebrows and links read. Any light surface nested inside (a white card on a navy band) resets them again.
   Use .on-navy / .on-sun / .on-light on your own wrappers (e.g. a hero panel) to opt in. */
:root {
  --base-heading: var(--heading);
  --base-text: var(--text);
  --base-muted: var(--muted);
  --base-line: var(--line);
  --base-line-strong: var(--line-strong);
}
.card, .glass, .on-light {
  --heading: var(--base-heading);
  --text: var(--base-text);
  --muted: var(--base-muted);
  --line: var(--base-line);
  --line-strong: var(--base-line-strong);
  --ctx-fg: initial;
  --ctx-inverse: initial;
  --ctx-ring: initial;
  --ctx-link: initial;
  --ctx-sun-bg: initial;
  --ctx-dot: initial;
  --ctx-accent: initial;
  color: var(--text);
}
.section--navy, .card--navy, .glass--dark, .on-navy {
  --heading: var(--white);
  --text: color-mix(in srgb, var(--white) 84%, var(--navy));
  --muted: color-mix(in srgb, var(--white) 64%, var(--navy));
  --line: color-mix(in srgb, var(--white) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--white) 30%, transparent);
  --ctx-fg: var(--white);
  --ctx-inverse: var(--navy);
  --ctx-ring: color-mix(in srgb, var(--white) 36%, transparent);
  --ctx-link: var(--white);
  --ctx-sun-bg: initial;
  --ctx-dot: var(--sun);
  --ctx-accent: var(--sun);
  color: var(--text);
}
.section--sun, .card--sun, .on-sun {
  --heading: var(--navy);
  --text: var(--navy);
  --muted: color-mix(in srgb, var(--navy) 78%, var(--sun));
  --line: color-mix(in srgb, var(--navy) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--navy) 34%, transparent);
  --ctx-fg: var(--navy);
  --ctx-inverse: var(--white);
  --ctx-ring: color-mix(in srgb, var(--navy) 40%, transparent);
  --ctx-link: var(--navy);
  --ctx-sun-bg: var(--white);
  --ctx-dot: var(--white);
  --ctx-accent: var(--navy);
  color: var(--text);
}

/* ---------- container ---------- */
.container {
  --container-max: var(--container);
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container--wide { --container-max: var(--container-wide); }
.container--narrow { --container-max: var(--container-narrow); }

/* ---------- section (a page band) ---------- */
.section {
  position: relative;
  isolation: isolate;               /* decorative z-index:-1 children stay above the band's own background */
  padding-block: var(--section-y);
}
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); }
.section--sun { background: var(--sun); }
/* r4 polish: the footer sheet slides up over the last --footer-r of the page (footer.css), so the closing band gets that back
   and every page keeps a full --section-y of air between its last card and the footer. :where() keeps the weight at one
   class, so a page rule on its own closing band still wins. */
.section:where(main > section:last-of-type) { padding-bottom: calc(var(--section-y) + var(--footer-r, 56px)); }
.section--tight { padding-block: calc(var(--section-y) * 0.56); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--clip { overflow: clip; }  /* for bands with decorations that poke outside */

/* Rounded bands.  .section--rounded = a floating rounded panel inset from the viewport edge.
   .section--rounded-top / -bottom = full-bleed band with big soft corners; the colour revealed behind the corners
   follows the neighbouring band automatically (or set --behind / --ahead yourself). */
.section--rounded {
  margin-inline: clamp(8px, 1.2vw, 20px);
  border-radius: var(--r-xl);
}
.section--rounded-top {
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  box-shadow: 0 calc(var(--r-xl) * -1) 0 0 var(--behind, transparent);
}
.section--rounded-bottom {
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
  box-shadow: 0 var(--r-xl) 0 0 var(--ahead, transparent);
}
.section--rounded-top.section--rounded-bottom {
  box-shadow: 0 calc(var(--r-xl) * -1) 0 0 var(--behind, transparent), 0 var(--r-xl) 0 0 var(--ahead, transparent);
}
.section--cream + .section--rounded-top { --behind: var(--cream); }
.section--navy + .section--rounded-top { --behind: var(--navy); }
.section--sun + .section--rounded-top { --behind: var(--sun); }
.section--rounded-bottom:has(+ .section--cream) { --ahead: var(--cream); }
.section--rounded-bottom:has(+ .section--navy) { --ahead: var(--navy); }
.section--rounded-bottom:has(+ .section--sun) { --ahead: var(--sun); }

/* ---------- split: two columns that stack under 900px ---------- */
.split {
  --gap: clamp(var(--s-6), 6vw, var(--s-9));
  --split-a: 1fr;
  --split-b: 1fr;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, var(--split-a)) minmax(0, var(--split-b)); }
  .split--40-60 { --split-a: 2fr; --split-b: 3fr; }
  .split--60-40 { --split-a: 3fr; --split-b: 2fr; }
  .split--center { align-items: center; }
  .split--end { align-items: end; }
  .split--stretch { align-items: stretch; }
  .split--reverse > :first-child { order: 2; }   /* DOM order (text first) is kept for small screens and screen readers */
  .split--tight { --gap: clamp(var(--s-5), 3vw, var(--s-7)); }
}

/* ---------- grid ---------- */
.grid {
  --gap: clamp(var(--s-4), 2.2vw, var(--s-6));
  --cols: 1;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
}
.grid > * { min-width: 0; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { --cols: 2; }
}
@media (min-width: 980px) {
  .grid--3 { --cols: 3; }
  .grid--4 { --cols: 4; }
}
/* auto-fit: as many columns as fit, each at least --min wide */
.grid--auto {
  --min: 280px;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min), 100%), 1fr));
}
.grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 280px), 100%), 1fr)); }
.grid--center { align-items: center; }
.grid--tight { --gap: var(--s-4); }

/* ---------- stack: vertical flow ---------- */
.stack { --gap: var(--s-4); }
.stack > * + * { margin-block-start: var(--gap); }
.stack--xs { --gap: var(--s-2); }
.stack--sm { --gap: var(--s-3); }
.stack--md { --gap: var(--s-5); }
.stack--lg { --gap: var(--s-6); }
.stack--xl { --gap: var(--s-7); }

/* ---------- cluster: wrapping inline row ---------- */
.cluster {
  --gap: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
}
.cluster--sm { --gap: var(--s-2); }
.cluster--lg { --gap: var(--s-5); }
.cluster--center { justify-content: center; }
.cluster--between { justify-content: space-between; }
.cluster--end { justify-content: flex-end; }
.cluster--top { align-items: flex-start; }
.cluster--nowrap { flex-wrap: nowrap; }

/* ---------- bleed: break out of the container to the viewport edges ---------- */
.bleed {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
}

/* ---------- r3 · soft fades between bands (client: "faded in instead of straight white to colour") ----------
   Put on any band: its top (and/or bottom) melts from the neighbouring colour into the band's own colour.
     .section--fade-top | --fade-bottom | --fade-both
     --fade-from  colour above the band   (default: the page background; or the band right before it when that is a solid
                  .section--cream / --navy / --sun / --peach / --room that does not fade at its own bottom)
     --fade-to    colour below the band   (same rule, with the band right after it)
     --fade-h     fade depth               (default clamp(72px, 9vw, 140px))
   Works on every band colour: cream, sun, navy, peach, any room band (.section--room inside [data-room]) or a page's own
   background colour, because the fade is a gradient OVER the band's background-color (not a replacement for it).
   The selectors carry one extra class of weight (:not(.no-fade)) so a later page rule written as the `background:`
   shorthand still keeps the fade (the shorthand only resets the image if it is MORE specific). .no-fade switches it off.
   The curve is eased (5 stops) so there is no visible "edge" where the gradient ends, even on navy. */
.section--peach { background: var(--peach); }
.section--room { background: var(--room-soft, var(--cream)); }
.section--fade-top, .section--fade-bottom, .section--fade-both {
  --fade-h: clamp(72px, 9vw, 140px);
  --fade-a: var(--fade-from, var(--bg));
  --fade-b: var(--fade-to, var(--bg));
}
/* navy band on a light page: a long white→navy blend passes through a greyish lavender, so keep that fade short.
   :where() keeps the weight at one class, so a page can still set its own --fade-h. */
.section--navy:where(.section--fade-top, .section--fade-bottom, .section--fade-both) { --fade-h: clamp(36px, 3.6vw, 56px); }
.section--fade-top:not(.no-fade) { background-image: var(--fade-grad-top); }
.section--fade-bottom:not(.no-fade) { background-image: var(--fade-grad-bottom); }
.section--fade-both:not(.no-fade) { background-image: var(--fade-grad-top), var(--fade-grad-bottom); }
.section--fade-top, .section--fade-both {
  --fade-grad-top: linear-gradient(to bottom,
    var(--fade-a) 0,
    color-mix(in srgb, var(--fade-a) 78%, transparent) calc(var(--fade-h) * 0.22),
    color-mix(in srgb, var(--fade-a) 44%, transparent) calc(var(--fade-h) * 0.5),
    color-mix(in srgb, var(--fade-a) 14%, transparent) calc(var(--fade-h) * 0.78),
    transparent var(--fade-h));
}
.section--fade-bottom, .section--fade-both {
  --fade-grad-bottom: linear-gradient(to top,
    var(--fade-b) 0,
    color-mix(in srgb, var(--fade-b) 78%, transparent) calc(var(--fade-h) * 0.22),
    color-mix(in srgb, var(--fade-b) 44%, transparent) calc(var(--fade-h) * 0.5),
    color-mix(in srgb, var(--fade-b) 14%, transparent) calc(var(--fade-h) * 0.78),
    transparent var(--fade-h));
}
/* neighbouring bands: fade from / to the colour that is actually there. Only when that neighbour does NOT fade on the
   shared edge itself - two fading edges both meet at the page background, so the seam is always continuous.
   A page can still set --fade-from / --fade-to. */
.section--cream:not(.section--fade-bottom, .section--fade-both) + :is(.section--fade-top, .section--fade-both) { --fade-a: var(--fade-from, var(--cream)); }
.section--navy:not(.section--fade-bottom, .section--fade-both) + :is(.section--fade-top, .section--fade-both) { --fade-a: var(--fade-from, var(--navy)); }
.section--sun:not(.section--fade-bottom, .section--fade-both) + :is(.section--fade-top, .section--fade-both) { --fade-a: var(--fade-from, var(--sun)); }
.section--peach:not(.section--fade-bottom, .section--fade-both) + :is(.section--fade-top, .section--fade-both) { --fade-a: var(--fade-from, var(--peach)); }
.section--room:not(.section--fade-bottom, .section--fade-both) + :is(.section--fade-top, .section--fade-both) { --fade-a: var(--fade-from, var(--room-soft, var(--cream))); }
:is(.section--fade-bottom, .section--fade-both):has(+ .section--cream:not(.section--fade-top, .section--fade-both)) { --fade-b: var(--fade-to, var(--cream)); }
:is(.section--fade-bottom, .section--fade-both):has(+ .section--navy:not(.section--fade-top, .section--fade-both)) { --fade-b: var(--fade-to, var(--navy)); }
:is(.section--fade-bottom, .section--fade-both):has(+ .section--sun:not(.section--fade-top, .section--fade-both)) { --fade-b: var(--fade-to, var(--sun)); }
:is(.section--fade-bottom, .section--fade-both):has(+ .section--peach:not(.section--fade-top, .section--fade-both)) { --fade-b: var(--fade-to, var(--peach)); }
:is(.section--fade-bottom, .section--fade-both):has(+ .section--room:not(.section--fade-top, .section--fade-both)) { --fade-b: var(--fade-to, var(--room-soft, var(--cream))); }

/* ==== motion.css ==== */
/* motion.css - states for the declarative motion engine (src/js/core/motion.js).
   The animations themselves are Web Animations started by the engine; this file only holds:
   1. the hidden "before" state - screen only, only with JS (html.js), only when motion is welcome;
   2. a no-engine failsafe (if site.js never runs, everything fades in after 3s);
   3. small helpers for split text, counters, parallax wrappers and the spinning sun. */

@media screen and (prefers-reduced-motion: no-preference) {
  html.js [data-reveal]:not([data-reveal="none"]):not(.is-revealed),
  html.js [data-stagger] > :not([data-reveal="none"]):not(.is-revealed),
  html.js [data-split]:not(.is-revealed),
  html.js [data-count]:not(.is-revealed),
  html.js [data-draw]:not(.is-revealed) {
    opacity: 0;
  }

  /* engine never started (script blocked / failed): show everything after 3s */
  html.js:not(.bs-motion) [data-reveal],
  html.js:not(.bs-motion) [data-stagger] > *,
  html.js:not(.bs-motion) [data-split],
  html.js:not(.bs-motion) [data-count],
  html.js:not(.bs-motion) [data-draw] {
    animation: bs-motion-failsafe 1ms linear 3s both;
  }
}
@keyframes bs-motion-failsafe { from { opacity: 0; } to { opacity: 1; } }

/* promoted only while the entrance is running */
.is-revealing { will-change: transform, opacity; }

/* ---------- split text (built by the engine at reveal time) ---------- */
.split__w,
.split__i { display: inline-block; }
/* the mask: clip-path (not overflow) so baselines and line boxes stay exactly as plain text → no layout shift */
.is-split:not(.is-split-done) .split__w { clip-path: inset(-0.3em -0.2em -0.18em -0.2em); }
.is-splitting .split__i { will-change: transform; }
.split__sr,
.count__sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- counters ---------- */
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- parallax ---------- */
/* <div class="media" data-parallax-clip> <img data-parallax="0.1" data-parallax-scale> </div> */
[data-parallax-clip] { overflow: hidden; }
[data-parallax-scale] { transform-origin: 50% 50%; }

/* ---------- sun spin: the rays turn around the middle of the artwork ---------- */
[data-sun-spin] .sun__rays,
[data-sun-spin] .c-sun__rays,
[data-sun-spin] [data-sun-rays] {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* ---------- tilt: keep children flat unless a page opts into depth ---------- */
[data-tilt] { transform-style: flat; }

@media (prefers-reduced-motion: reduce) {
  [data-parallax], [data-parallax-scale], [data-magnetic], [data-tilt] { translate: none !important; scale: none !important; }
}

/* ==== components/accordion.css ==== */
/* accordion.css - soft stacked items built on <details>. Works closed/open without JS; JS adds the height animation.
   <div class="accordion" data-accordion="single"> <details class="accordion__item"> <summary class="accordion__summary">
   <span class="accordion__title">…</span><span class="accordion__icon"></span></summary>
   <div class="accordion__panel"><div class="accordion__body">…</div></div></details> … </div>
   Hooks: --accordion-bg, --accordion-radius, --accordion-pad; modifier .accordion--flush (hairlines instead of cards). */
.accordion {
  --accordion-bg: var(--surface);
  --accordion-radius: var(--r-md);
  --accordion-pad: clamp(20px, 2vw, 30px);   /* r4: airier rows (client: "the questions look a bit small") */
  display: grid;
  gap: 16px;
}
.accordion__item {
  border-radius: var(--accordion-radius);
  background: var(--accordion-bg);
  box-shadow: var(--shadow-1);
  color: var(--text);
  transition: box-shadow var(--t-2) var(--ease-out);
}
.accordion__item.is-open,
.accordion__item[open] { box-shadow: var(--shadow-2); }

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 76px;
  padding: 18px var(--accordion-pad);
  border-radius: var(--accordion-radius);
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::marker { content: ""; }
.accordion__title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.25rem);   /* 20px at 1440 */
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--heading);
  text-wrap: balance;
}

/* plus → minus: two bars, the upright one lies down */
.accordion__icon {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  transition: background-color var(--t-2) var(--ease-out), transform var(--t-1) var(--ease-out);
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-2) var(--ease-out), opacity var(--t-2) var(--ease-out);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__item.is-open .accordion__icon,
html:not(.js) .accordion__item[open] .accordion__icon { background: var(--sun); }
.accordion__item.is-open .accordion__icon::before,
html:not(.js) .accordion__item[open] .accordion__icon::before { transform: rotate(180deg); }
.accordion__item.is-open .accordion__icon::after,
html:not(.js) .accordion__item[open] .accordion__icon::after { transform: rotate(180deg); opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .accordion__summary:hover .accordion__icon { background: var(--sun-soft); }
  .accordion__item.is-open .accordion__summary:hover .accordion__icon { background: var(--sun); }
}
.accordion__summary:active .accordion__icon { transform: scale(0.92); }

.accordion__body {
  padding: 0 var(--accordion-pad) calc(var(--accordion-pad) + 4px);
  padding-right: calc(var(--accordion-pad) + 40px + var(--s-5));
  max-width: 74ch;
  color: var(--text);
  font-size: var(--fs-body);   /* 17px */
  line-height: 1.7;
}
.accordion__body > * + * { margin-top: var(--s-4); }
.accordion__body a { color: var(--heading); font-weight: 600; }

/* flush: a quiet list for use inside cards / narrow columns */
.accordion--flush { gap: 0; }
.accordion--flush .accordion__item { border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--line); }
.accordion--flush .accordion__item:last-child { border-bottom: 1px solid var(--line); }
.accordion--flush .accordion__summary { padding-inline: 0; border-radius: var(--r-sm); }
.accordion--flush .accordion__body { padding-inline: 0; padding-right: calc(40px + var(--s-5)); }

@media (max-width: 560px) {
  .accordion__body { padding-right: var(--accordion-pad); }
  .accordion--flush .accordion__body { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .accordion__icon, .accordion__icon::before, .accordion__icon::after { transition: none; }
}

/* ==== components/ask-us.css ==== */
/* ask-us.css - "Questions? Ask us": floating pill bottom right + its help panel.
   The three floating things share the bottom edge without touching: picker pill (centre, preview only),
   this pill (right), and the back-to-top sun stacked just above it (see back-to-top.css). */
:root {
  --float-edge: clamp(14px, 1.8vw, 24px);  /* distance of floating buttons from the viewport edges */
  --ask-us-h: 50px;   /* r4: r3 46 */
}
.ask-us {
  position: fixed;
  right: calc(var(--float-edge) + var(--scrollbar-comp, 0px));
  bottom: var(--float-edge);
  z-index: var(--z-sticky);
  font-family: var(--font-body);
}
.no-js .ask-us { display: none; }

/* ---------- the pill ---------- */
.ask-us__button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--ask-us-h);
  padding: 0 20px 0 16px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--white) 18%, transparent), var(--shadow-3);   /* the light ring keeps it visible on the navy footer */
  transition: background-color var(--t-2) ease, transform 160ms var(--ease-out);
}
.ask-us__icon { position: relative; display: grid; place-items: center; width: 24px; height: 24px; color: var(--sun); }
.ask-us__icon .icon { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity var(--t-2) var(--ease-out), transform var(--t-2) var(--ease-out); }
.ask-us__icon-close { opacity: 0; transform: rotate(-45deg) scale(0.8); }
.ask-us__button[aria-expanded="true"] .ask-us__icon-open { opacity: 0; transform: rotate(45deg) scale(0.8); }
.ask-us__button[aria-expanded="true"] .ask-us__icon-close { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .ask-us__button:hover { background: var(--navy-soft); }
}
.ask-us__button:active { transform: scale(0.97); }
.ask-us__button:focus-visible { border-radius: var(--r-pill); box-shadow: var(--focus), var(--shadow-3); }
@media (max-width: 1180px) {               /* leave the bottom centre to the picker: icon only */
  .ask-us__button { width: var(--ask-us-h); padding: 0; justify-content: center; }
  .ask-us__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- the panel (grows from the pill) ---------- */
.ask-us__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + var(--s-3));
  display: grid;
  gap: var(--s-4);
  width: 352px;
  max-width: calc(100vw - 2 * var(--float-edge));
  max-height: calc(100dvh - var(--ask-us-h) - var(--float-edge) - var(--header-h) - var(--s-7));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-3);
  transform-origin: calc(100% - 40px) 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96) translateY(8px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms;
}
.ask-us__panel[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s;
}
.ask-us__panel[data-instant] { transition: none; }

.ask-us__head { display: flex; align-items: center; gap: var(--s-4); }
.ask-us__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 3px var(--sun); }
.ask-us__title { margin: 0; color: var(--navy); font-size: 1.1875rem; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.ask-us__title:focus-visible { box-shadow: none; }
.ask-us__sub { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }

.ask-us__contact { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ask-us__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: var(--s-3);
  min-height: 54px;
  padding: 8px var(--s-4) 8px 8px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--navy);
  text-decoration: none;
  transition: background-color var(--t-1) ease;
}
.ask-us__row-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--red); box-shadow: var(--shadow-1); }
.ask-us__row-icon .icon { width: 18px; height: 18px; }
.ask-us__row-text { display: grid; min-width: 0; line-height: 1.25; }
.ask-us__row-text span { color: var(--muted); font-size: var(--fs-micro); font-weight: 600; }
.ask-us__row-text strong { overflow: hidden; color: var(--navy); font-size: 1rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .ask-us__row:hover { background: var(--sun-soft); }
}

.ask-us__answers { display: grid; }
.ask-us__label-small { margin: 0 0 2px; color: var(--muted); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ask-us__qa { box-shadow: inset 0 -1px 0 var(--line); }
.ask-us__qa:last-child { box-shadow: none; }
.ask-us__qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 46px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
  border-radius: var(--r-sm);
}
.ask-us__qa summary::-webkit-details-marker { display: none; }
.ask-us__qa summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform var(--t-2) var(--ease-out); }
.ask-us__qa[open] summary .icon { transform: rotate(180deg); }
.ask-us__qa p { margin: 0; padding: 0 var(--s-5) var(--s-4) 0; font-size: var(--fs-small); line-height: 1.6; }
.ask-us__qa p a { color: var(--red); font-weight: 700; white-space: nowrap; }

.ask-us__nurseries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ask-us__nursery {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s-4);
  border-radius: var(--r-pill);
  background: var(--cream);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-1) ease;
}
@media (hover: hover) and (pointer: fine) {
  .ask-us__nursery:hover { background: var(--sun-soft); }
}
.ask-us .ask-us__cta { --btn-h: 44px; width: 100%; }

/* stepping aside for forms (r10): ask-us.js sets html.float-tucked while a form field passes under the pill or the
   back-to-top sun, or while a field is being typed in on a touch screen; both slide off the right edge until it has gone by */
.ask-us { transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out), visibility 0s; }
.float-tucked .ask-us:not(:focus-within) {
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(100% + var(--float-edge) + 8px));
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out), visibility 0s linear 220ms;
}
.float-tucked .to-top.is-visible:not(:focus-visible) { opacity: 0; visibility: hidden; transform: translateX(calc(100% + var(--float-edge, 20px) + 8px)); }
@media (prefers-reduced-motion: reduce) {
  .ask-us { transition: opacity 120ms linear, visibility 0s; }
  .float-tucked .ask-us:not(:focus-within) { transition: opacity 120ms linear, visibility 0s linear 120ms; }
  .float-tucked .ask-us:not(:focus-within), .float-tucked .to-top.is-visible:not(:focus-visible) { transform: none; }
}

@media print { .ask-us { display: none; } }
/* phones: a smaller 44px round button, tucked closer to the corner, so it covers less of the page */
@media (max-width: 599px) {
  :root { --ask-us-h: 44px; --float-edge: 12px; }
  .ask-us__button .icon { width: 18px; height: 18px; }
}
/* full-screen viewers (lightbox, brochure reader) own the screen: the floating buttons step aside */
body:has(.lightbox:not([hidden]), .brochure-reader:not([hidden])) :is(.ask-us, .to-top) { visibility: hidden; }

/* ==== components/back-to-top.css ==== */
/* back-to-top.css - a small sun, bottom right, stacked above the "Ask us" pill. Its rays turn with scroll progress (set by back-to-top.js). */
.to-top {
  --to-top-size: 56px;   /* r3: was 68 */
  position: fixed;
  right: calc(var(--float-edge, 20px) + var(--scrollbar-comp, 0px) - 8px);
  bottom: calc(var(--float-edge, 20px) + var(--ask-us-h, 0px) + 14px);   /* stacked above the "Ask us" pill, with clear air (r4: was 6px - the rays touched the pill) */
  z-index: var(--z-sticky);
  display: grid;
  place-items: center;
  width: var(--to-top-size);
  height: var(--to-top-size);
  border-radius: 50%;
  color: var(--sun);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.8);
  transition: opacity var(--t-2) var(--ease-out), transform var(--t-2) var(--ease-out), visibility 0s linear var(--t-2);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-3) var(--ease-out), transform var(--t-3) var(--ease-spring), visibility 0s;
}
.ask-open .to-top { opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.8); }   /* the help panel opens here */
.to-top::before {                           /* warm glow, so the sun reads on photos and on navy alike */
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: var(--glow-sun);
  opacity: 0.55;
  pointer-events: none;
}
.to-top > * { grid-area: 1 / 1; }
.to-top__sun { position: relative; display: grid; place-items: center; width: 100%; height: 100%; transition: transform var(--t-3) var(--ease-spring); }
.to-top__sun::after {                       /* the face of the sun: a plain disc, so the arrow reads */
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--navy) 22%, transparent);
}
.to-top__sun .sun__rays { will-change: transform; }
.to-top__arrow { position: relative; display: grid; place-items: center; color: var(--navy); transition: transform var(--t-2) var(--ease-out); }
.to-top__arrow .icon { width: 18px; height: 18px; stroke-width: 2.5; }
@media (hover: hover) and (pointer: fine) {
  .to-top:hover .to-top__sun { transform: scale(1.1); }
  .to-top:hover .to-top__arrow { transform: translateY(-2px); }
}
.to-top:active .to-top__sun { transform: scale(0.95); }
.to-top:focus-visible { border-radius: 50%; box-shadow: var(--focus); }
@media print { .to-top { display: none; } }

/* ==== components/brochure.css ==== */
/* brochure.css - the Thornliebank brochure: leafable book, page thumbnails + full-screen reader.  Markup: partials/brochure.njk
   R5: one layout, .brochure--split ("Book & pages": copy, thumbnails and buttons left; the book right).
   JS: js/components/brochure.js.  Prefix: .brochure (section) · .brochure-reader (overlay, built by JS). Desktop first. */

.brochure {
  --pw: clamp(300px, 28vw, 410px);          /* one page's width; the spread is two of these */
  --ph: calc(var(--pw) * 1.4142);           /* A4 */
  --flip-ms: 900ms;
  position: relative;
  overflow: clip;
}
.brochure__title { margin-block: var(--s-3) var(--s-5); }
.brochure__title .accent { display: inline-block; }
.brochure__lead { max-width: 40ch; margin: 0 0 var(--s-6); color: var(--text); font-size: 1.0625rem; line-height: 1.7; }

/* ---------- Book & pages (split) ---------- */
.brochure--split .brochure__grid {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--s-7), 4vw, var(--s-8));
}

/* ---------- page thumbnails ---------- */
.brochure__thumbs { margin: 0 0 var(--s-6); }
.brochure__thumb-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-4) var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.brochure__thumb {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
}
.brochure__thumb-img {
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1 / 1.4142;
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px rgba(27, 34, 80, 0.35);
  transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out);
}
.brochure__thumb-pic { display: block; width: 100%; height: 100%; object-fit: cover; }
.brochure__thumb-n {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding-inline: 6px;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--t-2) ease, color var(--t-2) ease;
}
@media (hover: hover) and (pointer: fine) {
  .brochure__thumb:hover .brochure__thumb-img { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 14px 24px -12px rgba(27, 34, 80, 0.4); }
}
.brochure__thumb.is-current .brochure__thumb-img { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--sun), 0 14px 24px -12px rgba(27, 34, 80, 0.4); }
.brochure__thumb.is-current .brochure__thumb-n { background: var(--sun); color: var(--navy); }
.brochure__thumb:focus-visible { outline: none; }
.brochure__thumb:focus-visible .brochure__thumb-img { box-shadow: var(--focus); }

.brochure__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.brochure__meta { margin: var(--s-4) 0 0; color: var(--muted); font-size: var(--fs-small); }

/* ---------- the book ---------- */
.brochure__viewer { display: grid; justify-items: center; gap: var(--s-3); }
.brochure__desk {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding-block: var(--s-4) var(--s-2);
}
/* a soft sunny glow under the book */
.brochure__desk::before {
  content: "";
  position: absolute;
  inset: 8% 4% 2%;
  background: var(--glow-sun);
  opacity: 0.55;
  pointer-events: none;
}
.brochure__book {
  position: relative;
  width: calc(var(--pw) * 2);
  height: var(--ph);
  perspective: 2400px;
  transform: translateX(calc(var(--pw) * -0.5));       /* closed on the cover: the single page sits in the centre */
  transition: transform var(--flip-ms) var(--ease-in-out);
  border-radius: 4px;
}
.brochure__book[data-state="mid"] { transform: none; }
.brochure__book[data-state="end"] { transform: translateX(calc(var(--pw) * 0.5)); }
.brochure__book:focus-visible { outline: none; }
.brochure__book:focus-visible .brochure__leaf { box-shadow: none; }
.brochure__book:focus-visible::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 12px;
  box-shadow: var(--focus);
  pointer-events: none;
}

.brochure__leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform var(--flip-ms) var(--ease-in-out);
}
.brochure__leaf.is-turned { transform: rotateY(-180deg); }

.brochure__face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: var(--white);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 0 1px 2px rgba(27, 34, 80, 0.10), 0 16px 34px -14px rgba(27, 34, 80, 0.32);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.brochure__face--back {
  transform: rotateY(180deg);
  border-radius: 6px 2px 2px 6px;
}
.brochure__img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the gutter: a little shadow along the spine side of every page, and a sheen that moves while a page turns */
.brochure__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(27, 34, 80, 0.16), rgba(27, 34, 80, 0) 9%);
}
.brochure__face--back .brochure__shade { background: linear-gradient(to left, rgba(27, 34, 80, 0.16), rgba(27, 34, 80, 0) 9%); }
.brochure__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background-color var(--t-2) ease;
  pointer-events: none;
}
@media (hover: hover) {
  .brochure__face:hover::after { background: rgba(255, 255, 255, 0.08); }
}
.brochure__face:focus-visible { outline: none; box-shadow: var(--focus); }
.brochure__leaf.is-moving .brochure__shade { animation: brochure-sheen var(--flip-ms) var(--ease-in-out); }
@keyframes brochure-sheen {
  0%, 100% { opacity: 1; }
  50% { opacity: 1; background: linear-gradient(to right, rgba(27, 34, 80, 0.28), rgba(27, 34, 80, 0.04) 60%); }
}
/* a thin edge of the remaining pages under the open book */
.brochure__book::before {
  content: "";
  position: absolute;
  inset: 4px -3px -4px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
  opacity: 0;
  transition: opacity var(--t-3) ease;
}
.brochure__book[data-state="mid"]::before { opacity: 1; }

/* controls */
.brochure__controls { display: flex; align-items: center; gap: var(--s-4); }
.brochure__btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
  cursor: pointer;
  transition: background-color var(--t-2) ease, transform var(--t-1) var(--ease-out), opacity var(--t-2) ease;
}
.brochure__btn:hover { background: var(--sun); }
.brochure__btn:active { transform: scale(0.94); }
.brochure__btn:focus-visible { outline: none; box-shadow: var(--focus); }
.brochure__btn[disabled] { opacity: 0.35; cursor: default; background: var(--white); }
.brochure__status {
  min-width: 15ch;
  margin: 0;
  color: var(--heading);
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.brochure__hint { margin: 0; color: var(--muted); font-size: var(--fs-micro); }

@media (max-width: 899px) {
  .brochure { --pw: min(44vw, 300px); }
  .brochure--split .brochure__grid { grid-template-columns: minmax(0, 1fr); }
}
/* r10: below desktop the open spread (two pages) must fit its own column: from 900 to 1279 the 28vw page was wider
   than half the column (at 1024 the open book ran off the right edge). The viewer is a size container and each page
   is at most half of it. Desktop (1280+) keeps its approved size. */
@media (max-width: 1279px) {
  .brochure__viewer { container-type: inline-size; width: 100%; min-width: 0; }
  .brochure__desk { --pw: min(clamp(300px, 28vw, 410px), calc(50cqi - 4px)); --ph: calc(var(--pw) * 1.4142); }
}
@media (max-width: 899px) {
  .brochure__desk { --pw: min(44vw, 300px, calc(50cqi - 4px)); }
}
/* touch screens say "Tap", mouse screens keep "Click" */
.brochure__hint-touch { display: none; }
@media (hover: none) {
  .brochure__hint-mouse { display: none; }
  .brochure__hint-touch { display: inline; }
}
/* phones: the ten thumbnails become one swipeable row (bigger targets, half the height), the buttons go full width */
@media (max-width: 599px) {
  .brochure__lead { margin-bottom: var(--s-5); }
  .brochure__thumbs {
    margin-inline: calc(-1 * var(--gutter));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .brochure__thumbs::-webkit-scrollbar { display: none; }
  .brochure__thumbs .brochure__thumb-list {   /* r10: two classes, so the global ol[class] { padding: 0 } reset cannot strip the gutter */
    display: flex;
    gap: var(--s-3);
    width: max-content;
    padding: 6px var(--gutter) 4px;
  }
  .brochure__thumb-list > li { flex: 0 0 64px; scroll-snap-align: start; }
  .brochure__actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .brochure__actions .btn { width: 100%; }
  .brochure__meta { text-align: center; }
}

/* without JS: the pages lie in a row, each a link to its full-size image */
html.no-js .brochure__book { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: auto; height: auto; transform: none; perspective: none; }
html.no-js .brochure__leaf { position: static; display: contents; }
html.no-js .brochure__face { position: relative; width: 120px; height: 170px; transform: none; }
html.no-js .brochure__controls, html.no-js .brochure__hint, html.no-js .brochure__book::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  .brochure { --flip-ms: 1ms; }
  .brochure__leaf.is-moving .brochure__shade { animation: none; }
}

/* ================================================= full-screen reader ================================================= */
.brochure-reader {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-lab, 400) + 1);     /* a full-screen takeover, like the lightbox */
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: var(--white);
}
.brochure-reader[hidden] { display: none; }
.brochure-reader__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--navy-deep) 94%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.brochure-reader__top, .brochure-reader__stage, .brochure-reader__strip { position: relative; }
.brochure-reader__top {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
}
.brochure-reader__title { margin: 0; font-weight: 600; font-size: var(--fs-small); }
.brochure-reader__count { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.brochure-reader__spacer { flex: 1; }
.brochure-reader__tool {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-2) ease;
}
a.brochure-reader__tool { text-decoration: none; }
.brochure-reader__tool:hover { background: rgba(255, 255, 255, 0.2); }
.brochure-reader__tool--icon { width: 40px; padding: 0; justify-content: center; }
.brochure-reader__tool svg { width: 20px; height: 20px; }
.brochure-reader__tool:focus-visible, .brochure-reader__nav:focus-visible, .brochure-reader__thumb:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

.brochure-reader__stage {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.brochure-reader__page {
  display: block;
  height: calc(100% - 8px);
  width: auto;
  max-width: none;
  margin: 0 auto;
  aspect-ratio: 2400 / 3394;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
}
.brochure-reader.is-zoomed .brochure-reader__page {
  height: auto;
  width: min(1180px, calc(100vw - 180px));
  margin-block: 4px 24px;
  cursor: zoom-out;
}
.brochure-reader__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  translate: 0 -50%;
  transition: background-color var(--t-2) ease, opacity var(--t-2) ease;
}
.brochure-reader__nav:hover { background: var(--sun); color: var(--navy); }
.brochure-reader__nav[disabled] { opacity: 0.25; cursor: default; background: rgba(255, 255, 255, 0.12); color: var(--white); }
.brochure-reader__nav--prev { left: var(--s-5); }
.brochure-reader__nav--next { right: var(--s-5); }
.brochure-reader__nav svg { width: 22px; height: 22px; }

.brochure-reader__strip {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  padding: var(--s-3) var(--s-5) var(--s-4);
}
.brochure-reader__thumb {
  position: relative;
  width: 38px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--white);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--t-2) ease, transform var(--t-2) var(--ease-out);
}
/* r12: auto margins centre the strip when it fits and fall back to the start when it overflows (unlike justify-content:
   center, which pushed page 1 out of reach on older Safari where "safe center" is not supported) */
.brochure-reader__thumb:first-child { margin-left: auto; }
.brochure-reader__thumb:last-child { margin-right: auto; }
.brochure-reader__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brochure-reader__thumb:hover { opacity: 0.85; }
.brochure-reader__thumb[aria-current="true"] { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 2px var(--sun); }

@media (prefers-reduced-motion: no-preference) {
  .brochure-reader.is-entering .brochure-reader__backdrop { animation: brochure-fade 260ms ease both; }
  .brochure-reader.is-entering .brochure-reader__page { animation: brochure-rise 420ms var(--ease-out) both; }
}
@keyframes brochure-fade { from { opacity: 0; } }
@keyframes brochure-rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* the Design Lab picker (preview-only) would sit on the reader's thumbnail strip: hide it while the reader is open */
body:has(.brochure-reader:not([hidden])) .proto-picker { visibility: hidden; }

/* ---------- reader on phones / small tablets: one clean bar, the page fits the width, the strip swipes ---------- */
@media (max-width: 719px) {
  .brochure-reader__top { gap: var(--s-2); padding: max(var(--s-2), env(safe-area-inset-top, 0px)) var(--s-3) var(--s-2) var(--s-4); }
  .brochure-reader__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .brochure-reader__count { white-space: nowrap; }
  .brochure-reader__tool { height: 44px; padding: 0; width: 44px; justify-content: center; }
  .brochure-reader__tool > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .brochure-reader__stage { display: grid; place-items: center; }
  .brochure-reader__page { width: calc(100vw - 2 * var(--s-4)); height: auto; max-height: calc(100% - 8px); object-fit: contain; }
  .brochure-reader.is-zoomed .brochure-reader__page { width: 200vw; max-height: none; margin-inline: var(--s-4); }
  .brochure-reader.is-zoomed .brochure-reader__stage { place-items: start; }
  .brochure-reader__nav { width: 44px; height: 44px; background: rgba(18, 23, 56, 0.55); }
  .brochure-reader__nav--prev { left: var(--s-2); }
  .brochure-reader__nav--next { right: var(--s-2); }
  .brochure-reader__strip {
    justify-content: flex-start;   /* r12: centred by the thumbs' auto margins below (safe: page 1 never clipped off the start) */
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--s-3) var(--s-4) max(var(--s-4), env(safe-area-inset-bottom, 0px));
  }
  .brochure-reader__strip::-webkit-scrollbar { display: none; }
  .brochure-reader__thumb { flex: none; }
}

/* r11 phones: the brochure's words centre (eyebrow, title, lead, buttons, page count) like the rest of the phone layout */
@media (max-width: 599px) {
  .brochure__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  /* r12: the thumbnail row must fill the column (edge to edge) and scroll; centred as a flex item it grew to its full
     width and hung off both sides, so the row opened somewhere in the middle/end (page 9 or 10 on iPhone) and page 1
     could not be reached. Stretched, it is a real scroller that starts on page 1. */
  .brochure__thumbs { align-self: stretch; max-width: none; text-align: left; }
  .brochure__title, .brochure__lead { margin-inline: auto; }
  .brochure__lead { text-wrap: balance; }
  .brochure__actions { justify-items: center; width: 100%; }
  .brochure__actions .btn { justify-content: center; }
  .brochure__controls { justify-content: center; }
  .brochure__hint { text-align: center; }
}

/* ==== components/buttons.css ==== */
/* buttons.css - .btn (pill) + variants, sizes, icon, states.
   Markup:  <a class="btn btn--primary" href="…"><span class="btn__label">Book a visit</span><span class="btn__icon">…svg…</span></a>
   Every variant is driven by a few --btn-* properties, so contexts (navy / sun bands) only re-point colours. */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-bg-hover: var(--btn-bg);
  --btn-fg-hover: var(--btn-fg);
  --btn-ring: transparent;
  --btn-ring-hover: var(--btn-ring);
  --btn-shadow: 0 0 0 0 transparent;
  --btn-shadow-hover: var(--shadow-2);
  --btn-h: 50px;   /* r4: comfortable again (r3 46) */
  --btn-px: 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: var(--btn-h);
  padding: 0.5em var(--btn-px);
  border: 0;
  border-radius: var(--r-pill);
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: inset 0 0 0 1.5px var(--btn-ring), var(--btn-shadow);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition:
    background-color var(--t-2) var(--ease-out),
    color var(--t-2) var(--ease-out),
    box-shadow var(--t-2) var(--ease-out),
    translate var(--t-2) var(--ease-out),
    scale var(--t-1) var(--ease-out);
}
.btn:has(> .btn__icon:last-child) { padding-inline-end: calc(var(--btn-px) - 5px); }
.btn:has(> .btn__icon:first-child) { padding-inline-start: calc(var(--btn-px) - 5px); }
.btn__label { min-width: 0; }
.btn__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  transition: translate var(--t-2) var(--ease-spring);
}
.btn__icon .icon { width: 1.2em; height: 1.2em; vertical-align: 0; }

@media (hover: hover) {
  .btn:hover {
    background-color: var(--btn-bg-hover);
    color: var(--btn-fg-hover);
    box-shadow: inset 0 0 0 1.5px var(--btn-ring-hover), var(--btn-shadow-hover);
    translate: 0 -1px;
  }
  .btn:hover > .btn__icon:last-child { translate: 4px 0; }
  .btn:hover > .btn__icon--ne:last-child { translate: 2px -2px; }
  .btn:hover > .btn__icon--down:last-child { translate: 0 3px; }
  .btn:hover > .btn__icon--back:first-child { translate: -4px 0; }
}
.btn:active { scale: 0.97; translate: 0 0; }
.btn:focus-visible {
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--btn-ring), var(--btn-shadow), var(--focus);
}

/* ---------- variants ---------- */
.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  --btn-bg-hover: color-mix(in srgb, var(--accent) 88%, var(--navy-deep));
  --btn-shadow-hover: var(--shadow-red);
}
:root[data-mood="navy"] .btn--primary { --btn-shadow-hover: var(--shadow-2); }
.btn--sun {
  --btn-bg: var(--ctx-sun-bg, var(--sun));
  --btn-fg: var(--navy);
  --btn-shadow-hover: var(--shadow-sun);
}
.btn--navy {
  --btn-bg: var(--ctx-fg, var(--navy));
  --btn-fg: var(--ctx-inverse, var(--white));
  --btn-bg-hover: color-mix(in srgb, var(--ctx-fg, var(--navy)) 88%, var(--ctx-inverse, var(--white)));
}
.btn--white {
  --btn-bg: var(--white);
  --btn-fg: var(--navy);
  --btn-shadow: var(--shadow-1);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ctx-fg, var(--navy));
  --btn-ring: var(--ctx-ring, var(--line-strong));
  --btn-bg-hover: var(--ctx-fg, var(--navy));
  --btn-fg-hover: var(--ctx-inverse, var(--white));
  --btn-ring-hover: var(--ctx-fg, var(--navy));
  --btn-shadow-hover: 0 0 0 0 transparent;
}
.btn--glass {
  --btn-bg: var(--glass-bg);
  --btn-fg: var(--navy);
  --btn-bg-hover: var(--white);
  --btn-ring: var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
/* text + arrow, no pill */
.btn--link {
  --btn-bg: transparent;
  --btn-fg: var(--ctx-link, color-mix(in srgb, var(--accent) 88%, var(--navy-deep)));   /* a touch deeper than --red: AA on paper and cream */
  --btn-fg-hover: var(--ctx-link, color-mix(in srgb, var(--accent) 70%, var(--navy-deep)));
  --btn-shadow-hover: 0 0 0 0 transparent;
  --btn-h: 44px;
  --btn-px: 0px;
  border-radius: var(--r-sm);
  gap: 0.45em;
}
.btn--link:has(> .btn__icon) { padding-inline: 0; }
.btn--link .btn__label {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-block: 0.2em;
  transition: background-size var(--t-3) var(--ease-out);
}
@media (hover: hover) {
  .btn--link:hover { translate: 0 0; }
  .btn--link:hover .btn__label { background-size: 100% 2px; }
}
.btn--link:focus-visible { border-radius: var(--r-sm); box-shadow: var(--focus); }

/* ---------- sizes ---------- */
.btn--lg { --btn-h: 56px; --btn-px: 30px; font-size: 1.0625rem; }   /* r4: one calm step above the 50px default */
.btn--sm { --btn-h: 42px; --btn-px: 20px; font-size: var(--fs-small); }
@media (pointer: coarse) { .btn--sm { --btn-h: 44px; } }   /* r10: a full 44px tap target on touch screens */
.btn--block { display: flex; width: 100%; }
/* round, icon-only (always give it an aria-label) */
.btn--icon { width: var(--btn-h); padding: 0; flex: none; }
.btn--icon:has(> .btn__icon) { padding: 0; }
.btn--icon .btn__icon .icon { width: 1.35em; height: 1.35em; }
@media (hover: hover) { .btn--icon:hover > .btn__icon { translate: 0 0; } }

/* ---------- states ---------- */
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled {
  opacity: 0.45;
  box-shadow: inset 0 0 0 1.5px var(--btn-ring);
  translate: 0 0;
  scale: 1;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==== components/cards.css ==== */
/* cards.css - .card surface + modifiers. Hover lift ONLY when the whole card is a link:
   <a class="card card--link">…</a>   or   <article class="card card--link"> … <a class="card__link" href>Title</a> … </article>
   (.card__link stretches over the card, so the card has one real link and stays a normal article for assistive tech). */
.card {
  --card-pad: clamp(24px, 2.5vw, 36px);   /* r4: comfortable 28-36px at desktop (r3 max 28) */
  --card-bg: var(--surface);
  --card-shadow: var(--shadow-1);
  --card-shadow-hover: var(--shadow-2);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--card-pad);
  border-radius: var(--r-lg);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  text-decoration: none;
}
.card > * + * { margin-block-start: var(--card-gap, var(--s-4)); }   /* r4 polish: 14 → 16px */
.card > .card__media {
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) var(--card-pad);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
}
.card > .card__media--inset {
  margin: calc(var(--card-pad) * -1 + 10px) calc(var(--card-pad) * -1 + 10px) var(--s-5);
  border-radius: calc(var(--r-lg) - 10px);
}
.card__media + * { margin-block-start: 0; }
.card__eyebrow { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: max(1.25rem, var(--fs-h4)); line-height: 1.28; letter-spacing: -0.01em; }
.card__title--lg { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.016em; }
.card__text { color: var(--text); font-size: var(--fs-body); line-height: 1.65; }
.card__footer { margin-block-start: auto; padding-block-start: var(--s-5); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-block-end: var(--s-3);
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
}
.card__icon .icon { width: 24px; height: 24px; }
.card__icon--soft { background: var(--sun-soft); }
.card__icon--navy { background: var(--navy); color: var(--sun); }
.card__icon--cream { background: var(--cream); }

/* modifiers */
.card--raised { --card-shadow: var(--shadow-2); --card-shadow-hover: var(--shadow-3); }
.card--flat { --card-shadow: 0 0 0 0 transparent; --card-bg: color-mix(in srgb, var(--navy) 5%, transparent); }
.card--cream { --card-bg: var(--cream); --card-shadow: 0 0 0 0 transparent; }
.card--peach { --card-bg: var(--peach); --card-shadow: 0 0 0 0 transparent; }
.card--navy { --card-bg: var(--navy); --card-shadow: 0 0 0 0 transparent; }
.card--sun { --card-bg: var(--sun); --card-shadow: 0 0 0 0 transparent; --card-shadow-hover: var(--shadow-sun); }
.card--glass {
  --card-bg: var(--glass-bg);
  --card-shadow: inset 0 0 0 1px var(--glass-border), var(--shadow-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.card--outline { --card-shadow: inset 0 0 0 1.5px var(--line); --card-bg: transparent; }
.card--sm { --card-pad: var(--s-5); border-radius: var(--r-md); }
.card--lg { --card-pad: clamp(28px, 3.2vw, 48px); border-radius: var(--r-xl); }
.card--lg > .card__media { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.card--center { align-items: center; text-align: center; }
.card--row { flex-direction: row; align-items: center; gap: var(--s-6); }
.card--row > * + * { margin-block-start: 0; }

/* the card as one link */
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__link:focus-visible { box-shadow: none; }
.card__link:focus-visible::after { box-shadow: var(--focus); }
.card--link, a.card {
  cursor: pointer;
  transition: translate var(--t-3) var(--ease-out), box-shadow var(--t-3) var(--ease-out), background-color var(--t-2) var(--ease-out);
}
a.card:focus-visible { border-radius: var(--r-lg); box-shadow: var(--card-shadow), var(--focus); }
@media (hover: hover) {
  :is(.card--link, a.card):hover { translate: 0 -4px; box-shadow: var(--card-shadow-hover); }
  :is(.card--link, a.card):hover .media--zoom > :is(img, picture, video),
  :is(.card--link, a.card):hover .card__media > :is(img, picture) { scale: 1.045; }
}
:is(.card--link, a.card):active { translate: 0 -1px; transition-duration: var(--t-1); }
.card__media > :is(img, picture) { transition: scale var(--t-4) var(--ease-out); }
/* anything inside a linked card that must stay clickable on its own (a phone number, a second button) */
.card--link :is(a, button):not(.card__link) { position: relative; z-index: 2; }

/* ==== components/carousel.css ==== */
/* carousel.css - a scroll-snap row with quiet controls.
   .carousel[data-carousel] > .carousel__viewport > .carousel__track > .carousel__slide
   Slides per view: set --per-view yourself at any breakpoint, or pass perView / perViewMd / perViewSm to the macro
   (they set --pv / --pv-md / --pv-sm). Fractions give a "peek" of the next card (e.g. 2.4).
   Other hooks: --carousel-gap, --carousel-pad-block (room for card shadows). Modifier: .carousel--bleed (run to the page edge). */
.carousel {
  --per-view: var(--pv-sm, 1.15);
  --carousel-gap: var(--s-5);
  --carousel-pad-block: var(--s-5);
  position: relative;
  display: grid;
  gap: var(--s-3);
  min-width: 0;
}
@media (min-width: 720px) { .carousel { --per-view: var(--pv-md, 2); } }
@media (min-width: 1100px) { .carousel { --per-view: var(--pv, 3); } }

.carousel__viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* shadows of the cards need air inside the scroller */
  margin-block: calc(-1 * var(--carousel-pad-block));
  padding-block: var(--carousel-pad-block);
  border-radius: var(--r-sm);
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track {
  display: flex;
  gap: var(--carousel-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.carousel__slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--carousel-gap)) / var(--per-view));
  min-width: 0;
  scroll-snap-align: start;
}
.carousel[data-carousel-align="center"] .carousel__slide { scroll-snap-align: center; }
/* slides stretch to equal height; a direct child card fills the slide */
.carousel__slide > * { height: 100%; }

/* run off the container edge to the page edge: the first card still lines up with the container, cards scroll out to
   the window edge. JS measures the exact distance per side (--carousel-bleed-l / -r); without JS it is the page gutter. */
.carousel--bleed .carousel__viewport {
  margin-left: calc(-1 * var(--carousel-bleed-l, var(--gutter)));
  margin-right: calc(-1 * var(--carousel-bleed-r, var(--gutter)));
  padding-left: var(--carousel-bleed-l, var(--gutter));
  padding-right: var(--carousel-bleed-r, var(--gutter));
  scroll-padding-left: var(--carousel-bleed-l, var(--gutter));
  scroll-padding-right: var(--carousel-bleed-r, var(--gutter));
  border-radius: 0;
}

/* while JS drives (button press, drag, inertia) snapping would fight the animation */
.carousel.is-animating .carousel__viewport,
.carousel.is-dragging .carousel__viewport { scroll-snap-type: none; }
@media (hover: hover) and (pointer: fine) {
  .carousel.is-scrollable .carousel__viewport { cursor: grab; }
  .carousel.is-dragging .carousel__viewport { cursor: grabbing; }
}
.carousel.is-dragging { user-select: none; }
.carousel.is-dragging .carousel__slide { pointer-events: none; }

/* ---------- controls ---------- */
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-5);
  margin-top: var(--s-4);
}
html:not(.js) .carousel__controls,
.carousel.is-ready:not(.is-scrollable) .carousel__controls { display: none; }
.carousel__buttons { display: flex; gap: var(--s-2); flex: none; }
.carousel__btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-1) var(--ease-out), background-color var(--t-2) ease, opacity var(--t-2) ease, box-shadow var(--t-2) var(--ease-out);
}
.carousel__btn .w-icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .carousel__btn:not(:disabled):hover { background: var(--sun); box-shadow: var(--shadow-sun); }
}
.carousel__btn:not(:disabled):active { transform: scale(0.94); }
.carousel__btn:disabled { opacity: 0.38; box-shadow: none; cursor: default; }
.carousel__btn:focus-visible { border-radius: 50%; }

.carousel__progress {
  flex: 1 1 auto;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.carousel__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--heading);
  transform-origin: 0 50%;
  transform: scaleX(0.3);
}

.carousel__dots { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 2px; }
.carousel__dot {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.carousel__dot::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: transform var(--t-2) var(--ease-out), background-color var(--t-2) ease;
}
.carousel__dot.is-active::before { background: var(--red); transform: scale(1.35); }
@media (hover: hover) and (pointer: fine) { .carousel__dot:not(.is-active):hover::before { background: var(--heading); } }

@media (prefers-reduced-motion: reduce) {
  .carousel__btn, .carousel__dot::before { transition: none; }
}

/* ==== components/chips.css ==== */
/* chips.css - .chip (pill label), room tones, .badge (tiny status label), .link-arrow (inline text link with a sun arrow). */
.chip {
  --chip-bg: color-mix(in srgb, var(--heading) 7%, transparent);
  --chip-fg: var(--heading);
  --chip-dot: var(--room, currentColor);   /* inside [data-room] the dot takes the room colour */
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 34px;
  padding: 0.3em 1em;
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.chip .icon { width: 1.15em; height: 1.15em; margin-inline-start: -0.15em; }
.chip--sm { min-height: 28px; padding: 0.22em 0.8em; font-size: var(--fs-micro); }
.chip--lg { min-height: 40px; padding: 0.4em 1.15em; font-size: 1rem; }

/* dot - a small colour key before the label (room chips use it) */
.chip--dot::before, .chip[class*="chip--room-"]::before {
  content: "";
  flex: none;
  width: 0.6em;
  height: 0.6em;
  margin-inline-start: -0.1em;
  border-radius: 50%;
  background: var(--chip-dot);
}

/* tones */
.chip--white { --chip-bg: var(--white); --chip-fg: var(--navy); box-shadow: var(--shadow-1); }
.chip--cream { --chip-bg: var(--cream); --chip-fg: var(--navy); }
.chip--sun { --chip-bg: var(--sun); --chip-fg: var(--navy); }
.chip--sun-soft { --chip-bg: var(--sun-soft); --chip-fg: var(--navy); }
.chip--peach { --chip-bg: var(--peach); --chip-fg: var(--navy); }
.chip--navy { --chip-bg: var(--navy); --chip-fg: var(--white); }
.chip--red { --chip-bg: var(--red-soft); --chip-fg: var(--red-deep); }
.chip--leaf { --chip-bg: var(--leaf-soft); --chip-fg: var(--navy); --chip-dot: var(--leaf); }
.chip--sky { --chip-bg: var(--sky-soft); --chip-fg: var(--navy); --chip-dot: var(--sky); }
.chip--outline { --chip-bg: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.chip--glass {
  --chip-bg: var(--glass-bg);
  --chip-fg: var(--navy);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}
/* room tones: soft tint + navy label + the room's colour as a dot (AA on every tint) */
.chip--room-baby { --chip-bg: var(--room-baby-soft); --chip-fg: var(--navy); --chip-dot: var(--room-baby); }
.chip--room-tweenies { --chip-bg: var(--room-tweenies-soft); --chip-fg: var(--navy); --chip-dot: var(--room-tweenies); }
.chip--room-twos { --chip-bg: var(--room-twos-soft); --chip-fg: var(--navy); --chip-dot: var(--room-twos); }
.chip--room-preschool { --chip-bg: var(--room-preschool-soft); --chip-fg: var(--navy); --chip-dot: var(--room-preschool); }
.chip--room-afterschool { --chip-bg: var(--room-afterschool-soft); --chip-fg: var(--navy); --chip-dot: var(--room-afterschool); }

/* interactive chips (a.chip / button.chip) */
a.chip, button.chip {
  cursor: pointer;
  transition: background-color var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out), scale var(--t-1) var(--ease-out);
}
@media (hover: hover) {
  :is(a, button).chip:hover { --chip-bg: var(--navy); --chip-fg: var(--white); }
}
:is(a, button).chip:active { scale: 0.97; }
:is(a, button).chip:focus-visible { border-radius: var(--r-pill); }
.chip[aria-pressed="true"], .chip[aria-current="true"], .chip.is-active { --chip-bg: var(--navy); --chip-fg: var(--white); }

/* ---------- badge: tiny uppercase status label ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 26px;
  padding: 0.2em 0.8em;
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--navy { background: var(--navy); color: var(--white); }
.badge--red { background: var(--red); color: var(--white); }
.badge--soft { background: color-mix(in srgb, var(--heading) 8%, transparent); color: var(--heading); }
.badge--white { background: var(--white); color: var(--navy); box-shadow: var(--shadow-1); }
.badge--leaf { background: var(--leaf-soft); color: var(--navy); }
/* live dot, e.g. "Open now" */
.badge--live::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
}

/* ---------- link-arrow: inline text link with a small round sun arrow ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: var(--r-pill);
}
.link-arrow__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.9em;
  height: 1.9em;
  padding: 0.38em;
  border-radius: 50%;
  background: var(--ctx-sun-bg, var(--sun));
  color: var(--navy);
  transition: translate var(--t-2) var(--ease-spring), background-color var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out);
}
.link-arrow__icon .icon { width: 100%; height: 100%; }
@media (hover: hover) {
  .link-arrow:hover .link-arrow__icon,
  .card--link:hover .link-arrow__icon { translate: 4px 0; background: var(--ctx-fg, var(--navy)); color: var(--ctx-inverse, var(--white)); }
}
.link-arrow--sm { font-size: var(--fs-small); }

/* r10: large chips are 44px tall tap targets on touch screens */
@media (pointer: coarse) { .chip--lg { min-height: 44px; } }

/* ==== components/footer.css ==== */
/* footer.css - navy sheet with big rounded top corners; the sun rises behind an oversized "Bright Starts" on the horizon. */
:root { --footer-r: clamp(28px, 4vw, 56px); }   /* corner radius = how far the footer slides over the last section */
.site-footer {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--footer-r));   /* the sheet slides over the tail of the last section, so its corners show that section's colour */
  border-radius: var(--footer-r) var(--footer-r) 0 0;
  background: var(--navy);
  color: color-mix(in srgb, var(--white) 78%, var(--navy));
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.site-footer__inner {
  position: relative;
  z-index: 2;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(56px, 5.4vw, 84px) var(--gutter) 0;   /* r4: roomy again (r3 max 56) */
}

/* ---------- columns ---------- */
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 2.8fr) minmax(0, 2.8fr) minmax(0, 3.6fr);   /* r3 fix: link lists run in two short columns, so the footer is about half as tall */
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: var(--s-7);
  align-items: start;
}
.site-footer__brand { display: grid; justify-items: start; gap: var(--s-5); }
.site-footer__logo { --logo-h: 84px; margin: -8px 0 0 -6px; }
.site-footer__lede {
  max-width: 17ch;
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.65vw, 1.6rem);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.2;
  text-wrap: balance;
}

.site-footer__heading {
  margin: 0 0 var(--s-4);
  color: color-mix(in srgb, var(--white) 56%, var(--navy));
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.site-footer__links { display: grid; grid-template-columns: repeat(2, max-content); grid-auto-flow: row; gap: 4px var(--s-7); margin: 0; padding: 0; list-style: none; }
.site-footer__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: color-mix(in srgb, var(--white) 88%, var(--navy));
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-2) ease, transform var(--t-2) var(--ease-out);
}
.site-footer__link[aria-current] { color: var(--white); font-weight: 600; }
.site-footer__link[aria-current]::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--sun);
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__link:hover { color: var(--sun); transform: translateX(3px); }
}

/* ---------- contact ---------- */
/* one flowing address ("8 Spiersbridge Way, Spiersbridge Business Park, …") instead of five stacked lines */
.site-footer__address span:not(:last-child)::after { content: ", "; }
.site-footer__address { display: block; max-width: 34ch; margin: 0 0 var(--s-4); color: color-mix(in srgb, var(--white) 88%, var(--navy)); font-size: 1rem; font-style: normal; line-height: 1.6; }
.site-footer__details { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.site-footer__detail {
  display: inline-grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  column-gap: var(--s-3);
  min-height: 28px;
  color: color-mix(in srgb, var(--white) 88%, var(--navy));
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--t-2) ease;
}
.site-footer__detail .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--sun); }
a.site-footer__detail { font-weight: 600; color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  a.site-footer__detail:hover { color: var(--sun); }
}
.site-footer__prompt { max-width: 32ch; margin: 0 0 var(--s-5); color: color-mix(in srgb, var(--white) 88%, var(--navy)); font-size: 1rem; line-height: 1.6; }
.site-footer__cta + .site-footer__details { margin-top: var(--s-5); }

/* ---------- socials ---------- */
.site-footer__social { display: flex; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.site-footer__social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 9%, transparent);
  color: var(--white);
  transition: background-color var(--t-2) ease, color var(--t-2) ease, transform 160ms var(--ease-out);
}
.site-footer__social-link .icon { width: 18px; height: 18px; }
/* the real brand marks (filled): white on the navy chip, each in its own brand colour on a white chip on hover */
.site-footer__social-link .icon--brand { width: 20px; height: 20px; vertical-align: 0; }
@media (hover: hover) and (pointer: fine) {
  .site-footer__social-link:hover { background: var(--sun); color: var(--navy); }
  .site-footer__social-link:has(.icon--brand):hover { background: var(--white); }
  .site-footer__social-link:hover .icon--brand-instagram { color: #E4405F; }
  .site-footer__social-link:hover .icon--brand-facebook { color: #0866FF; }
  .site-footer__social-link:hover .icon--brand-tiktok { color: #000; }
}
.site-footer__social-link:active { transform: scale(0.95); }

/* ---------- small print ---------- */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  margin-top: clamp(40px, 4vw, 64px);
  padding-top: var(--s-5);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 12%, transparent);
  color: color-mix(in srgb, var(--white) 62%, var(--navy));
  font-size: var(--fs-micro);
}
.site-footer__legal p { margin: 0; }
.site-footer__family { display: inline-flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--white) 88%, var(--navy)); font-weight: 600; text-decoration: none; transition: color var(--t-2) ease; }
.site-footer__family .icon { width: 15px; height: 15px; transition: transform var(--t-2) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .site-footer__family:hover { color: var(--sun); }
  .site-footer__family:hover .icon { transform: translateX(3px); }
}
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--sun); }

/* ---------- the horizon: the sun coming up, and the oversized wordmark beside it ----------
   Everything here is sized in vw so the two keep their relationship at every width.
   r3: smaller, and the sun + wordmark pair is centred (sun 12vw + 1.5vw + ~36.4vw of wordmark ≈ 50vw → starts at 25vw). */
.site-footer__horizon {
  position: relative;
  z-index: 1;
  margin-top: clamp(20px, 2.4vw, 40px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.site-footer__wordmark {
  margin: 0 0 -0.1em 37vw;                   /* starts after the sun (r4: sun 12vw + 1.5vw + ~39.5vw wordmark ≈ 53vw → starts at 23.5vw); the footer edge clips the feet of the letters */
  color: color-mix(in srgb, var(--white) 7%, var(--navy));
  font-family: var(--font-display);
  font-size: 7.6vw;   /* r4: a touch more presence (r3 7vw) */
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.86;
  white-space: nowrap;
}
.site-footer__sun {
  position: absolute;
  left: 23.5vw;                           /* left, like the logo - and clear of the floating buttons bottom right */
  bottom: 0;
  width: 12vw;                            /* the shared "half" sun: already cropped to its top half */
}
.site-footer__sun::before {                 /* soft glow on the horizon */
  content: "";
  position: absolute;
  inset: -40% -20% -140%;
  border-radius: 50%;
  background: var(--glow-sun);
  opacity: 0.16;
}
.site-footer__sun .sun { position: relative; }

/* ---------- narrower ---------- */
@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__links { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
/* r10: from 1024 to 1279 the two-up link lists were wider than their columns and ran into the next one
   ("Bridge of Allan" over "For parents", "Our curriculum" into Find us): one list per column, sized to its links */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) max-content max-content minmax(0, 1.7fr); }
  .site-footer__links { grid-template-columns: max-content; }
}
@media (max-width: 560px) {
  .site-footer__contact { grid-column: 1 / -1; }
}
/* touch: every footer link is a full 44px row (the lists were 34px rows with 4px gaps) */
@media (max-width: 1023px) {
  .site-footer__links { row-gap: 0; }
  .site-footer__link { min-height: 44px; min-width: 44px; }
  .site-footer__details { gap: 0; }
  .site-footer__detail { min-height: 44px; align-items: center; padding-block: 6px; }
  .site-footer__detail .icon { margin-top: 0; }
  .site-footer__family { min-height: 44px; }
  .site-footer__cta { --btn-h: 44px; }
}
/* phones: the horizon was sized for wide screens (sun 12vw); scale the pair up so it still reads as a sunrise */
@media (max-width: 599px) {
  .site-footer__wordmark { margin-left: 33vw; font-size: 12.4vw; }
  .site-footer__sun { left: 8vw; width: 21vw; }
  .site-footer__legal { flex-direction: column; align-items: flex-start; }
}
/* touch tablets in landscape keep the desktop footer layout, with 44px link rows */
@media (min-width: 1024px) and (max-width: 1279px) and (pointer: coarse) {
  .site-footer__links { row-gap: 0; }
  .site-footer__link { min-height: 44px; min-width: 44px; }
  .site-footer__details { gap: 0; }
  .site-footer__detail { min-height: 44px; align-items: center; padding-block: 6px; }
  .site-footer__detail .icon { margin-top: 0; }
  .site-footer__cta { --btn-h: 44px; }
  .site-footer__family { min-height: 44px; }
}

/* r11 phones: the footer centres like the rest of the phone layout (logo, line, socials, link lists, contact, small print).
   The two link lists stay side by side, each centred in its half. */
@media (max-width: 599px) {
  .site-footer__grid { text-align: center; }
  .site-footer__brand { justify-items: center; }
  .site-footer__logo { margin: -8px auto 0; }
  .site-footer__lede { margin-inline: auto; }
  .site-footer__social { justify-content: center; }
  .site-footer__links { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .site-footer__address, .site-footer__prompt { margin-inline: auto; }
  .site-footer__details { justify-items: center; }
  .site-footer__detail { text-align: left; }
  .site-footer__legal { align-items: center; text-align: center; }
}

/* ==== components/form-state.css ==== */
/* form-state.css - states added by forms.js to a [data-form]: honeypot, sending, and the in-place success panel.
   (The look of fields, labels and inline errors lives in components/forms.css.) */
.form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* sending: the button shows a quick spinner, the fields calm down */
.form.is-sending, [data-form].is-sending { pointer-events: none; }
[data-form].is-sending .field,
[data-form].is-sending .fieldset { opacity: 0.6; transition: opacity var(--t-2) ease; }
[data-form] [type="submit"].is-loading { position: relative; color: transparent !important; }
[data-form] [type="submit"].is-loading > * { visibility: hidden; }
[data-form] [type="submit"].is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2.5px solid var(--white);
  border-right-color: transparent;
  animation: form-spin 0.55s linear infinite;
}
[data-form] .btn--sun[type="submit"].is-loading::after,
[data-form] .btn--white[type="submit"].is-loading::after,
[data-form] .btn--ghost[type="submit"].is-loading::after { border-color: var(--navy); border-right-color: transparent; }
@keyframes form-spin { to { transform: rotate(360deg); } }

/* success */
.form-success {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--s-3);
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: var(--r-lg);
  background: var(--sun-mist);
  color: var(--ink);
}
.form-success:focus { outline: none; }
.form-success:focus-visible { box-shadow: var(--focus); }
.form-success__tick {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--s-2);
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
}
.form-success__tick svg { width: 56px; height: 56px; overflow: visible; }
.form-success__ring { stroke: color-mix(in srgb, var(--navy) 18%, transparent); stroke-dasharray: 1; stroke-dashoffset: 0; }
.form-success__check { stroke-dasharray: 1; stroke-dashoffset: 0; }
.form-success__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.form-success__text { max-width: 52ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.form-success__summary {
  display: grid;
  gap: 0;
  width: 100%;
  margin: var(--s-3) 0 0;
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-md);
  background: var(--white);
}
.form-success__summary > div {
  display: grid;
  grid-template-columns: minmax(96px, 0.38fr) minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-3) 0;
}
.form-success__summary > div + div { border-top: 1px solid var(--line); }
.form-success__summary dt { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.form-success__summary dd { margin: 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; white-space: pre-line; }
.form-success__again {
  margin-top: var(--s-2);
  min-height: 44px;
  padding: 0 2px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.24em;
  text-decoration-color: color-mix(in srgb, var(--navy) 35%, transparent);
  transition: text-decoration-color var(--t-2) ease;
}
.form-success__again:hover { text-decoration-color: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  .form-success.is-in .form-success__tick { animation: form-pop 520ms var(--ease-spring) both; }
  .form-success.is-in .form-success__ring { animation: form-draw 600ms var(--ease-in-out) 120ms both; }
  .form-success.is-in .form-success__check { animation: form-draw 420ms var(--ease-out) 420ms both; }
  .form-success.is-in .form-success__title { animation: form-rise 520ms var(--ease-out) 160ms both; }
  .form-success.is-in .form-success__text { animation: form-rise 520ms var(--ease-out) 220ms both; }
  .form-success.is-in .form-success__summary { animation: form-rise 520ms var(--ease-out) 290ms both; }
  .form-success.is-in .form-success__again { animation: form-rise 520ms var(--ease-out) 350ms both; }
}
@keyframes form-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes form-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes form-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ==== components/forms.css ==== */
/* forms.css - large, calm controls (52px), labels above, helper + error text.
   <div class="field"> <label class="field__label" for="x">Your name</label> <input class="input" id="x" …> <p class="field__hint">…</p> </div>
   Error state: add .is-invalid to .field (or aria-invalid="true" on the control) and show <p class="field__error">…</p>. */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid > .field--full, .form-grid > .form-grid__full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.field__label, .field > label:not(.check):not(.choice) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading);
}
.field__optional { font-size: var(--fs-micro); font-weight: 500; color: var(--muted); }
.field__hint { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.field__error {
  display: none;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
  color: var(--red-deep);
}
.field__error .icon { width: 1.15em; height: 1.15em; margin-top: 0.1em; }
.field.is-invalid .field__error, .field--error .field__error, .field__error.is-visible { display: flex; }

/* ---------- text controls ---------- */
.input, .select, .textarea,
.field > :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="hidden"]), select, textarea) {
  --control-ring: var(--line-strong);
  display: block;
  width: 100%;
  min-height: 46px;   /* r3: was 52 - r4 kept compact (client: contact + book-a-visit should feel smaller) */
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-md);
  background-color: var(--white);
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--control-ring);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  caret-color: var(--red);
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow var(--t-2) var(--ease-out), background-color var(--t-2) var(--ease-out);
}
:is(.input, .select, .textarea, .field > :is(input, select, textarea))::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
@media (hover: hover) {
  :is(.input, .select, .textarea):hover,
  .field > :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea):hover { --control-ring: color-mix(in srgb, var(--navy) 42%, transparent); }
}
:is(.input, .select, .textarea):focus,
.field > :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea):focus {
  outline: 2px solid transparent;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px var(--sun-soft);
}
.textarea, .field > textarea { min-height: 120px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.select, .field > select {
  padding-inline-end: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2250' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  cursor: pointer;
}
:is(.input, .field > input)[type="date"], :is(.input, .field > input)[type="time"] { padding-inline-end: 14px; }
:is(.input, .field > input)::-webkit-calendar-picker-indicator { padding: 6px; margin-inline-end: -4px; border-radius: 50%; cursor: pointer; opacity: 0.75; }
:is(.input, .field > input)::-webkit-calendar-picker-indicator:hover { opacity: 1; background-color: var(--cream); }
:is(.input, .field > input)::-webkit-date-and-time-value { text-align: left; }
:is(.input, .select, .textarea):disabled, .field > :is(input, select, textarea):disabled {
  background-color: color-mix(in srgb, var(--navy) 5%, var(--white));
  color: var(--muted);
  cursor: not-allowed;
}
/* autofill keeps our surface */
:is(.input, .field > input):-webkit-autofill { -webkit-text-fill-color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--control-ring), inset 0 0 0 100px var(--sun-mist); }

/* invalid */
.field.is-invalid :is(.input, .select, .textarea, input, select, textarea),
.field--error :is(.input, .select, .textarea, input, select, textarea),
:is(.input, .select, .textarea)[aria-invalid="true"],
.field > :is(input, select, textarea)[aria-invalid="true"] { --control-ring: var(--red); background-color: color-mix(in srgb, var(--red-soft) 45%, var(--white)); }
.field.is-invalid :is(.input, .select, .textarea, input, select, textarea):focus,
:is(.input, .select, .textarea)[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 4px var(--red-soft); }

/* ---------- checkbox & radio ---------- */
.check {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: 44px;
  padding-block: 10px;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}
.check > input, .checkbox, .radio {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 8px;
  background: var(--white) center / 0 no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  cursor: pointer;
  transition: background-color var(--t-1) var(--ease-out), box-shadow var(--t-1) var(--ease-out), background-size var(--t-2) var(--ease-spring);
}
.check > input[type="radio"], .radio { border-radius: 50%; }
@media (hover: hover) {
  .check:hover > input:not(:checked), :is(.checkbox, .radio):hover:not(:checked) { box-shadow: inset 0 0 0 1.5px var(--navy); }
}
.check > input[type="checkbox"]:checked, .checkbox:checked {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 7.8'/%3E%3C/svg%3E");
  background-size: 18px;
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.check > input[type="radio"]:checked, .radio:checked {
  background-color: var(--navy);
  background-image: radial-gradient(circle, var(--white) 0 4.5px, transparent 5px);
  background-size: 100%;
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.check > input:focus-visible, :is(.checkbox, .radio):focus-visible { box-shadow: inset 0 0 0 1.5px var(--navy), var(--focus); }
.check > input:disabled, :is(.checkbox, .radio):disabled { opacity: 0.45; cursor: not-allowed; }
.check a { color: var(--heading); font-weight: 600; text-decoration-line: underline; }

/* ---------- choice pills: radios / checkboxes that look like selectable chips ----------
   <div class="choice-group" role="radiogroup"> <label class="choice"><input type="radio" name="t" value="am"><span>Morning</span></label> … </div> */
.choice-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice > span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: background-color var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out), scale var(--t-1) var(--ease-out);
}
@media (hover: hover) { .choice:hover > span { box-shadow: inset 0 0 0 1.5px var(--navy); } }
.choice > input:checked + span { background: var(--navy); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--navy); }
.choice > input:focus-visible + span { box-shadow: inset 0 0 0 1.5px var(--navy), var(--focus); }
.choice:active > span { scale: 0.97; }

/* fieldset as a group of checks */
.fieldset { display: flex; flex-direction: column; gap: var(--s-2); }
.fieldset > legend { margin-bottom: var(--s-2); font-size: var(--fs-small); font-weight: 700; color: var(--heading); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-note { font-size: var(--fs-small); color: var(--muted); }

/* r10: "Choose a date" placeholder over an empty date field (forms.js places it; it hides on focus or once a date is set) */
.date-ph {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-inline: 16px;
  background: var(--white);
  font-size: 1rem;
  line-height: 24px;
  color: color-mix(in srgb, var(--muted) 82%, var(--white));
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}
.date-ph[hidden] { display: none; }
/* it takes the field's pink error tint with it, so it never reads as a white block inside an invalid field */
.field.is-invalid .date-ph, .field--error .date-ph, [aria-invalid="true"] + .date-ph { background: color-mix(in srgb, var(--red-soft) 45%, var(--white)); }

/* r10: single-line fields get a fixed text line (11 + 24 + 11 = 46) so typed text and placeholders sit in the middle in
   Safari as well as Chrome (with line-height: normal, Safari used the font's tall ascent and the text sat high) */
.input:where(:not(textarea)), .field > :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="hidden"])) { padding-block: 11px; line-height: 24px; }   /* one class, the same weight as the base rule above, so page-level form rules still win */
:is(.input, .textarea, .field > input, .field > textarea)::placeholder { line-height: inherit; }

/* ==== components/handmade.css ==== */
/* handmade.css - sparing hand-drawn touches (partials/handmade.njk): squiggle underline, scribbled note + arrow, ring, sparks.
   At most ONE per section. */

/* squiggle: wraps a word; the stroke sits just under the baseline and stretches to the word's width */
.squiggle { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.squiggle__svg {
  position: absolute;
  z-index: -1;
  left: -3%;
  bottom: -0.2em;
  width: 106%;
  height: 0.34em;
  overflow: visible;
  color: var(--squiggle, var(--ctx-dot, var(--sun)));
  pointer-events: none;
}
.squiggle__svg path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.squiggle--red { --squiggle: var(--red); }
.squiggle--navy { --squiggle: var(--navy); }
.squiggle--deep { --squiggle: var(--sun-deep); }
.squiggle--thin .squiggle__svg path { stroke-width: 4.5; }

/* ring: a wobbly hand-drawn loop around a word */
.ring { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.ring__svg {
  position: absolute;
  z-index: -1;
  left: -12%;
  top: -20%;
  width: 124%;
  height: 144%;
  overflow: visible;
  color: var(--ring, var(--ctx-dot, var(--sun)));
  pointer-events: none;
}
.ring__svg path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ring--red { --ring: var(--red); }

/* hand arrows */
.hand-arrow { display: block; width: var(--arrow-size, 88px); height: auto; color: var(--ctx-fg, var(--navy)); overflow: visible; pointer-events: none; }
.hand-arrow path { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hand-arrow--red { color: var(--red); }
.hand-arrow--sun { color: var(--sun-deep); }
.hand-arrow--white { color: var(--white); }
.hand-arrow--flip { scale: -1 1; }
.hand-arrow--up { scale: 1 -1; }
.hand-arrow--flip.hand-arrow--up { scale: -1 -1; }

/* sparks: little bursts near a headline or photo corner */
.spark { display: block; width: var(--spark-size, 44px); height: auto; color: var(--ctx-dot, var(--sun-deep)); overflow: visible; pointer-events: none; }
.spark path { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.spark--fill path { fill: currentColor; stroke-width: 2; }
.spark--red { color: var(--red); }
.spark--navy { color: var(--navy); }
.spark--sun { color: var(--sun); }

/* scribble: a short hand-written note (≤ 6 words) with an arrow pointing at something */
.scribble {
  --scribble-tilt: -4deg;
  display: inline-flex;
  align-items: flex-end;
  gap: var(--s-2);
  font-family: var(--font-hand);
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ctx-fg, var(--navy));
  rotate: var(--scribble-tilt);
  white-space: nowrap;
  pointer-events: none;
}
.scribble__text { padding-block-end: 0.5em; }
.scribble .hand-arrow { --arrow-size: 2.7em; flex: none; }
.scribble .hand-arrow path { stroke-width: 4.2; }
.scribble--arrow-start { flex-direction: row-reverse; }
.scribble--stack { flex-direction: column; align-items: flex-start; gap: 0; }
.scribble--stack .scribble__text { padding-block-end: 0.1em; }
.scribble--stack .hand-arrow { margin-block-start: -0.1em; margin-inline-start: 1.6em; }
.scribble--right { --scribble-tilt: 4deg; }
.scribble--red { color: var(--red); }
.scribble--white { color: var(--white); }

/* ==== components/header.css ==== */
/* header.css - the floating glass pill (logo · nursery switcher · links · CTA) and the chrome geometry tokens.
   States (set on <html> by components/header.js):  .is-scrolled  .header-hidden  .menu-open */

/* ---------- chrome geometry (public: pages use these to clear the header) ---------- */
:root {
  --strip-h: 0px;                          /* the utility strip was removed in round 3 (G1); kept at 0 so page/hero maths still resolve */
  --header-h-min: 62px;                    /* pill height once condensed (r4: 62, logo ~48px) */
  --header-top-min: 10px;                  /* pill offset from the viewport top once condensed */
  --header-gutter: var(--gutter);
  --header-clear: calc(var(--header-top) + var(--header-h));              /* top of <main> → bottom edge of the pill */
  --chrome-top: calc(var(--strip-h) + var(--header-top) + var(--header-h)); /* top of the page → bottom edge of the pill */
}
@media (max-width: 720px) {
  :root { --strip-h: 0px; --header-h-min: 58px; --header-top-min: 8px; --header-gutter: 10px; }   /* 58px keeps the CTA and menu button 44px tall */
}

/* ---------- shell ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  padding-inline: var(--header-gutter) calc(var(--header-gutter) + var(--scrollbar-comp, 0px));
  pointer-events: none;                     /* only the pill itself takes clicks */
  transform: translate3d(0, calc(var(--strip-h) + var(--header-top)), 0);
}
.site-header[data-ready] { transition: transform 300ms var(--ease-out); }
.no-js .site-header { position: absolute; }
.is-scrolled .site-header,
.menu-open .site-header { transform: translate3d(0, var(--header-top-min), 0); }
.header-hidden .site-header { transform: translate3d(0, calc(-100% - 40px), 0); }

/* ---------- the pill ---------- */
.site-header__bar {
  --bar-h: var(--header-h);
  --bar-inset: 12px;                        /* gap between the pill edge and the CTA, all the way round (74 − 24 = 50px CTA) */
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  column-gap: var(--s-4);
  max-width: var(--container);
  height: var(--bar-h);
  margin-inline: auto;
  padding-inline: 22px var(--bar-inset);
  border-radius: var(--r-pill);
  color: var(--navy);
  font-family: var(--font-body);
  line-height: 1;
  pointer-events: auto;
  transition: height 300ms var(--ease-out), padding 300ms var(--ease-out);
}
.is-scrolled .site-header__bar { --bar-h: var(--header-h-min); --bar-inset: 9px; }
/* Group pages: links sit dead-centre in the pill. Nursery pages carry the switcher chip on the left, so there the links
   are centred in the space that is left between the chip and the CTA (equal air on both sides). */
.chrome-nursery .site-header__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
/* Round 3 (G3): the switcher chip is off by default; the Design Lab "Aa" popover turns it on (html[data-switcher="on"]).
   With it off, nursery headers lay out exactly like group headers (links dead-centre). */
:root:not([data-switcher="on"]) .site-header .nursery-switcher { display: none; }
:root:not([data-switcher="on"]) .chrome-nursery .site-header__bar { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }

/* glass surface and its two shadow weights live on pseudo-elements, so nothing inside the pill sits on a backdrop root */
.site-header__bar::before,
.site-header__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.site-header__bar::before {
  z-index: -1;
  background: color-mix(in srgb, var(--white) 90%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--navy) 6%, transparent),
    0 1px 2px rgba(27, 34, 80, 0.04),
    0 8px 24px -10px rgba(27, 34, 80, 0.14);   /* r4: short, soft shadow - no grey band under the pill */
  transition: background-color 300ms var(--ease-soft);
}
.site-header__bar::after {
  z-index: -2;
  box-shadow: 0 12px 32px -14px rgba(27, 34, 80, 0.22);
  opacity: 0;
  transition: opacity 300ms var(--ease-soft);
}
.is-scrolled .site-header__bar::before { background: color-mix(in srgb, var(--white) 97%, transparent); }   /* r4: content no longer shows through the condensed pill */
.is-scrolled .site-header__bar::after { opacity: 1; }
/* On a plain light page there is nothing to blur at the top, so the pill starts as a calm solid card. */
.header-over-light:not(.is-scrolled *) .site-header__bar::before { background: var(--white); }

@media (prefers-reduced-transparency: reduce) {
  .site-header__bar::before { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header__bar::before { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 2px var(--navy); }
}

/* ---------- logo ---------- */
.logo { display: inline-flex; flex: none; align-items: center; border-radius: var(--r-md); text-decoration: none; }
.logo__img { display: block; width: auto; height: var(--logo-h, 64px); max-width: none; }

.site-header__start { justify-self: start; display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.site-header__logo {
  /* Round 2 (S1): the mark sits inside the pill now - 58px in the 72px pill at rest (7px of air top and bottom),
     48px in the 60px condensed pill (scale, so the swap is a single composited transform). */
  --logo-h: 56px;   /* r4: 56px in the 74px pill (9px of air top and bottom) */
  margin-block: 0;
  view-transition-name: logo;
  transform-origin: 0 50%;
  transition: transform 300ms var(--ease-out);
}
.site-header__logo .logo__img { translate: 0 1px; }   /* the wordmark sits high in the artwork: 1px down centres the lettering optically */
.is-scrolled .site-header__logo { transform: scale(0.86); }   /* ≈48px in the 62px pill */
@media (hover: hover) and (pointer: fine) {
  .site-header__logo .logo__img { transition: transform var(--t-3) var(--ease-spring); transform-origin: 32% 50%; }
  .site-header__logo:hover .logo__img { transform: rotate(-4deg) scale(1.04); }
}

/* ---------- link row ---------- */
.site-nav { justify-self: center; min-width: 0; }
.site-nav__list { display: flex; align-items: center; gap: clamp(2px, 0.4vw, 6px); margin: 0; padding: 0; list-style: none; }
.site-nav__item { position: relative; flex: none; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 42px;
  padding-inline: clamp(9px, 0.95vw, 15px);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 1rem;   /* r4 polish: 15.5 → 16px */
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--t-1) ease, color var(--t-1) ease;
}
.site-nav__link[aria-current="page"] { color: var(--navy); }
/* the current page wears a small sun */
.site-nav__link[aria-current="page"]::after,
.site-nav__more-toggle[data-has-current]::after,
.site-nav__trigger[data-has-current]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--sun-deep) 70%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .site-nav__link:hover { background: color-mix(in srgb, var(--navy) 6%, transparent); color: var(--navy); }
}
.site-nav__link:active { background: color-mix(in srgb, var(--navy) 10%, transparent); }
@media (max-width: 1279px) {
  .site-nav__link { font-size: 0.90625rem; padding-inline: 9px; }
  /* first-paint guess for long navs (header.js then measures and takes over): the logo already links home */
  .site-nav--long:not([data-measured]) [data-nav-item="home"] { display: none; }
}

/* "More" - links that did not fit; the grouped-menu triggers share its chevron */
.site-nav__trigger .icon,
.site-nav__more-toggle .icon { width: 16px; height: 16px; margin-right: -3px; color: var(--muted); transition: transform var(--t-2) var(--ease-out); }
.site-nav__trigger[aria-expanded="true"],
.site-nav__more-toggle[aria-expanded="true"] { background: color-mix(in srgb, var(--navy) 6%, transparent); color: var(--navy); }
.site-nav__trigger[aria-expanded="true"] .icon,
.site-nav__more-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-nav__more-panel {
  position: absolute;
  top: calc(100% + (var(--bar-h) - 40px) / 2 + 10px);
  right: -10px;
  min-width: 208px;
  padding: var(--s-2);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-3);
  transform-origin: calc(100% - 40px) 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96) translateY(-4px);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s linear 150ms;
}
.site-nav__more-panel[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
}
.site-nav__more-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav__more-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s-4);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__more-link[aria-current="page"] { color: var(--navy); background: var(--sun-mist); }
@media (hover: hover) and (pointer: fine) {
  .site-nav__more-link:hover { background: var(--cream); color: var(--navy); }
}

/* ---------- grouped menus (nursery pages, round 7) ----------
   One panel per group (About, Parents). The same markup serves all three header styles (html[data-header]):
   A = small dropdown card under the trigger (labels only) · B = wide mega panel under the pill (photo, links with a line each,
   visit card) · C = card hanging from the docked bar (labels with a line each). Panels are absolutely positioned and only fade
   and lift, so opening one never moves anything else. */
.site-nav__trigger { cursor: pointer; }
.nav-panel {
  --panel-gap: calc((var(--bar-h) - 42px) / 2 + 10px);      /* trigger bottom → panel top (10px below the pill) */
  position: absolute;
  top: calc(100% + var(--panel-gap));
  left: 50%;
  z-index: 2;
  width: max-content;
  min-width: 248px;
  padding: var(--s-2);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-3);
  color: var(--ink);
  line-height: 1.4;
  text-align: left;
  transform-origin: 50% 0;
  opacity: 0;
  visibility: hidden;
  translate: -50% 0;
  transform: scale(0.97) translateY(-6px);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s linear 150ms;
}
.nav-panel[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
}
/* an invisible bridge over the gap, so the pointer can travel from the trigger to the panel without closing it */
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--panel-gap) + 4px); }
.nav-panel__inner { display: block; }
.nav-panel__feature,
.nav-panel__visit,
.nav-panel__desc { display: none; }
.nav-panel__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 48px;
  padding: 10px 14px 10px var(--s-4);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-1) ease, color var(--t-1) ease;
}
.nav-panel__text { display: grid; gap: 3px; min-width: 0; }
.nav-panel__label { color: inherit; }
.nav-panel__desc { color: var(--muted); font-size: 0.9375rem; font-weight: 500; line-height: 1.5; white-space: normal; }
.nav-panel__arrow { flex: none; width: 18px; height: 18px; color: var(--red-text, var(--accent)); opacity: 0; transform: translateX(-4px); transition: opacity var(--t-2) var(--ease-out), transform var(--t-2) var(--ease-out); }
.nav-panel__link[aria-current="page"] { background: var(--sun-mist); color: var(--navy); }
.nav-panel__link:focus-visible .nav-panel__arrow { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-panel__link:hover { background: var(--cream); color: var(--navy); }
  .nav-panel__link[aria-current="page"]:hover { background: var(--sun-mist); }
  .nav-panel__link:hover .nav-panel__arrow { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-panel[data-open] { transform: none; transition: opacity 120ms linear, visibility 0s linear 120ms; }
  .nav-panel[data-open] { transition: opacity 120ms linear, visibility 0s; }
}

/* ---------- B: mega panel ---------- */
:root[data-header="b"] .site-nav__item--menu { position: static; }      /* the panel is placed against the whole pill */
:root[data-header="b"] .nav-panel {
  --panel-gap: 12px;
  top: calc(100% + var(--panel-gap));
  width: min(1080px, 100%);
  padding: var(--s-3);
  border-radius: var(--r-lg);
}
:root[data-header="b"] .nav-panel__inner { display: grid; grid-template-columns: 272px minmax(0, 1fr) 248px; gap: var(--s-3); align-items: stretch; }
:root[data-header="b"] .nav-panel__feature { display: grid; align-content: start; gap: 6px; padding: 0 0 var(--s-2); }
.nav-panel__photo { overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: var(--s-3); border-radius: var(--r-md); background: var(--cream); }
.nav-panel__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 50%); }
.nav-panel__title { margin: 0; padding-inline: var(--s-2); color: var(--navy); font: 700 1.25rem / 1.3 var(--font-display); letter-spacing: var(--display-tracking, 0); }
.nav-panel__blurb { margin: 0; padding-inline: var(--s-2); color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
:root[data-header="b"] .nav-panel__list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: var(--s-2); padding: var(--s-2) 0; }
:root[data-header="b"] .nav-panel__link { align-items: flex-start; min-height: 0; height: 100%; padding: 16px 12px 16px 18px; border-radius: var(--r-md); white-space: normal; }
:root[data-header="b"] .nav-panel__arrow { margin-top: 4px; }
:root[data-header="b"] .nav-panel__label { font-size: 1.125rem; font-weight: 700; color: var(--navy); }
:root[data-header="b"] .nav-panel__desc { display: block; }
:root[data-header="b"] .nav-panel__visit {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-5) var(--s-5);
  border-radius: var(--r-md);
  background: var(--sun-mist);
}
.nav-panel__visit-title { margin: 0 0 var(--s-1); color: var(--navy); font: 700 1.25rem / 1.3 var(--font-display); }
.nav-panel__visit-line { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--ink); font-size: 0.9375rem; line-height: 1.5; }
.nav-panel__visit-line .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--navy); }
.nav-panel__visit-line a { color: inherit; font-weight: 700; text-decoration: none; }
.nav-panel__visit-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--s-2);
  color: var(--red-text, var(--accent));
  font-weight: 700;
  text-decoration: none;
}
.nav-panel__visit-cta .icon { width: 18px; height: 18px; transition: transform var(--t-2) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nav-panel__visit-line a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
  .nav-panel__visit-cta:hover .icon { transform: translateX(3px); }
}

/* ---------- C: docked two-row bar (navy utility row over a full-width white bar) ---------- */
.site-header__util { display: none; }
:root[data-header="c"] {
  --util-h: 42px;
  --main-h: 78px;
  --header-top: 0px;
  --header-top-min: 0px;
  --header-h: calc(var(--util-h) + var(--main-h));
  --header-h-min: 66px;
}
:root[data-header="c"] .site-header { padding-inline: 0 var(--scrollbar-comp, 0px); transform: none; }
:root[data-header="c"].is-scrolled .site-header,
:root[data-header="c"].menu-open .site-header { transform: translate3d(0, calc(-1 * var(--util-h)), 0); }
:root[data-header="c"].header-hidden .site-header { transform: translate3d(0, calc(-100% - 24px), 0); }
:root[data-header="c"] .site-header__util {
  display: block;
  height: var(--util-h);
  background: var(--navy);
  color: var(--white);
  pointer-events: auto;
}
.site-header__util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  max-width: calc(var(--container) + 2 * var(--gutter));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  font-size: 0.9375rem;
  line-height: 1;
}
.site-header__util-note { display: flex; align-items: center; gap: 8px; margin: 0; color: color-mix(in srgb, var(--white) 88%, transparent); white-space: nowrap; }
.site-header__util-links { display: flex; align-items: center; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.site-header__util-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; border-radius: var(--r-sm); color: var(--white); font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header__util .icon { width: 16px; height: 16px; color: var(--sun); }
@media (hover: hover) and (pointer: fine) {
  .site-header__util-links a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
}
:root[data-header="c"] .site-header__bar {
  --bar-h: var(--main-h);
  --bar-inset: 15px;
  max-width: none;
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  border-radius: 0;
}
:root[data-header="c"].is-scrolled .site-header__bar { --bar-h: var(--header-h-min); --bar-inset: 9px; }
:root[data-header="c"] .site-header__bar::before {
  background: var(--white);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 0 var(--line);
}
:root[data-header="c"] .site-header__bar::after { box-shadow: 0 10px 28px -16px rgba(27, 34, 80, 0.28); }
:root[data-header="c"] .site-header .site-header__cta { border-radius: var(--r-md); }
/* the dropdown hangs from the bottom edge of the bar, squared off where it meets it */
:root[data-header="c"] .nav-panel {
  --panel-gap: calc((var(--bar-h) - 42px) / 2);
  left: 0;
  translate: 0 0;
  width: 380px;
  padding: var(--s-3);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: 0 1px 0 var(--line) inset, 0 0 0 1px var(--line), var(--shadow-3);
  transform-origin: 0 0;
  transform: translateY(-6px);
}
:root[data-header="c"] .nav-panel[data-open] { transform: none; }
:root[data-header="c"] .nav-panel__desc { display: block; }
:root[data-header="c"] .nav-panel__link { padding-block: 12px; white-space: normal; }
:root[data-header="c"] .nav-panel__label { color: var(--navy); font-weight: 700; }
@media (max-width: 1023px) {
  :root[data-header="c"] { --util-h: 0px; --main-h: 66px; }
  :root[data-header="c"] .site-header__util { display: none; }
}

/* ---------- right side: CTA + menu button ---------- */
.site-header__end { justify-self: end; display: flex; align-items: center; gap: var(--s-2); }
.site-header .site-header__cta {            /* a .btn.btn--primary, sized to sit concentric inside the pill */
  --btn-h: calc(var(--bar-h) - 2 * var(--bar-inset));
  --btn-px: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  min-height: 0;
  padding-block: 0;
  border-radius: var(--r-pill);
  background-color: var(--accent);
  color: var(--accent-contrast);
  padding-inline: var(--btn-px);
  font: 700 1rem / 1 var(--font-body);
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  transition:
    height 300ms var(--ease-out),
    background-color var(--t-2) var(--ease-out),
    box-shadow var(--t-2) var(--ease-out),
    translate var(--t-2) var(--ease-out),
    scale var(--t-1) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .site-header .site-header__cta:hover { background-color: color-mix(in srgb, var(--accent) 86%, var(--navy-deep)); }
}
.site-header .site-header__cta:active { scale: 0.97; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--navy) 6%, transparent);
  color: var(--navy);
}
.menu-toggle__lines { position: relative; display: block; width: 18px; height: 10px; }
.menu-toggle__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-2) var(--ease-out);
}
.menu-toggle__lines span:first-child { top: 0; }
.menu-toggle__lines span:last-child { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- below 1024px: links and switcher move into the menu sheet ---------- */
/* touch tablets in landscape (1024 to 1279): the link row stays, the links grow to a 44px tap height */
@media (max-width: 1279px) and (pointer: coarse) {
  .site-nav__link { height: 44px; }
}
@media (max-width: 1023px) {
  /* logo left, CTA + menu button right. The nursery selectors repeat the weight of the desktop rules above, so the
     menu button never lands in the middle column on nursery pages. */
  .site-header__bar,
  .chrome-nursery .site-header__bar,
  :root:not([data-switcher="on"]) .chrome-nursery .site-header__bar { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 14px var(--bar-inset); }
  .site-nav, .site-header .nursery-switcher { display: none; }
  .menu-toggle { display: grid; }
  .site-header__logo { --logo-h: 48px; margin-block: 0; }
  .site-header .site-header__cta { --btn-px: 20px; }
}
@media (max-width: 720px) {
  /* 60px pill at rest, 58px once condensed: CTA and menu button both stay 44px tall (tap target) */
  .site-header__bar { --bar-inset: 8px; }
  .is-scrolled .site-header__bar { --bar-inset: 7px; }
  .site-header__end { gap: 6px; }
  .site-header .site-header__cta { --btn-px: 16px; font-size: 0.9375rem; }
  .site-header__logo { --logo-h: 46px; }
}
@media (max-width: 359px) {
  .site-header .site-header__cta { display: none; }
}

/* ==== components/lightbox.css ==== */
/* lightbox.css - full-screen gallery overlay (built by lightbox.js on first use).
   Thumbnails: any <a>/<button> with data-lightbox="group". Give the trigger a border-radius; the zoom starts from it. */
[data-lightbox] { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-lab) + 1);          /* a full-screen takeover: above the floating chrome, below toasts */
  display: grid;
  grid-template: "top" auto "stage" minmax(0, 1fr) "caption" minmax(var(--s-6), auto) / minmax(0, 1fr);
  color: var(--white);
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}
.lightbox:focus { outline: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--navy-deep) 94%, transparent);
}
.lightbox__stage {
  grid-area: stage;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: var(--s-3) clamp(16px, 7vw, 112px);
  cursor: zoom-out;
}
.lightbox__figure { margin: 0; display: grid; place-items: center; max-width: 100%; max-height: 100%; }
.lightbox__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--white) 6%, transparent);
  box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--navy-deep) 80%, transparent);
  cursor: default;
  transform-origin: 50% 50%;
  will-change: transform;
}
.lightbox__media {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__top {
  grid-area: top;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 72px;
  padding: var(--s-3) clamp(12px, 2vw, 24px) var(--s-2);
}
.lightbox__counter {
  margin: 0;
  padding-left: var(--s-3);
  font-size: var(--fs-small);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--white) 78%, transparent);
}
.lightbox__caption {
  grid-area: caption;
  position: relative;
  margin: 0 auto;
  max-width: 68ch;
  padding: var(--s-4) var(--gutter) clamp(18px, 3vh, 32px);
  font-size: var(--fs-body);
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
  color: color-mix(in srgb, var(--white) 88%, transparent);
}

.lightbox__btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 12%, transparent);
  color: var(--white);
  transition: background-color var(--t-2) ease, color var(--t-2) ease, transform var(--t-1) var(--ease-out);
}
.lightbox__close { margin-left: auto; }
@media (hover: hover) and (pointer: fine) {
  .lightbox__btn:hover { background: var(--white); color: var(--navy); }
}
.lightbox__btn:active { transform: scale(0.94); }
.lightbox__btn:focus-visible { border-radius: 50%; box-shadow: 0 0 0 3px var(--navy-deep), 0 0 0 6px var(--sun); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  margin-top: -26px;
}
.lightbox__nav--prev { left: clamp(10px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(10px, 2vw, 28px); }
.lightbox.is-closing { pointer-events: none; }

/* preview builds: keep the caption clear of the Design Lab picker (bottom-centre, always on top) */
:root:has([data-lab]:not([hidden])) .lightbox { padding-bottom: 60px; }

@media (max-width: 700px) {
  .lightbox__stage { padding-inline: var(--s-3); }
  .lightbox__nav { top: auto; bottom: clamp(14px, 3vh, 28px); margin-top: 0; }
  .lightbox__caption { padding-inline: 76px; min-height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox__btn { transition: none; }
}
/* touch: lightbox.js handles swipes (left/right = next/previous, down = close); pinch-zoom stays with the browser */
.lightbox { touch-action: pinch-zoom; }

/* ==== components/map.css ==== */
/* map.css - the two self-contained SVG maps (partials/map.njk · js/components/map.js · tools/make-maps.cjs).
   Markup:  .bs-map.bs-map--regional | .bs-map--local  >  .bs-map__frame  >  .bs-map__canvas (inline SVG) + HTML overlays (labels, pins, cards)
   The SVG carries only shapes; every colour below is a token (or a mix of tokens), every label is HTML so it stays crisp and legible.
   Overlay sizes use container units (cqw) of the frame, so label/pin proportions hold at any rendered width. */

.bs-map {
  /* palette - re-point these to restyle both maps */
  --map-land: color-mix(in srgb, var(--peach) 38%, var(--paper));
  --map-sea: var(--sky-soft);
  --map-shore: color-mix(in srgb, var(--peach) 70%, var(--map-land));
  --map-coast: color-mix(in srgb, var(--orange) 24%, var(--peach));
  --map-river: color-mix(in srgb, var(--sky) 48%, var(--white));
  --map-green: color-mix(in srgb, var(--leaf-soft) 62%, var(--map-land));
  --map-park: var(--leaf-soft);
  --map-tree: color-mix(in srgb, var(--leaf) 62%, var(--leaf-soft));
  --map-road: var(--white);
  --map-road-edge: color-mix(in srgb, var(--orange) 20%, var(--peach));
  --map-motorway: color-mix(in srgb, var(--sun) 58%, var(--white));
  --map-motorway-edge: color-mix(in srgb, var(--orange) 62%, var(--sun));
  --map-quiet: color-mix(in srgb, var(--navy) 16%, var(--map-land));
  --map-halo: var(--map-land);
  --halo: 0 0 2px var(--map-halo), 0 0 2px var(--map-halo), 0 0 4px var(--map-halo), 0 0 6px var(--map-halo), 0 1px 3px var(--map-halo);

  position: relative;
  display: grid;
  gap: var(--s-3);
  margin: 0;
  min-width: 0;
}

.bs-map__frame {
  position: relative;
  container-type: inline-size;
  width: 100%;
  border: 6px solid var(--white);          /* a white keyline, like a printed map card: reads on paper and on cream bands */
  border-radius: var(--r-xl);
  background: var(--map-land);
  box-shadow: var(--shadow-1);
  isolation: isolate;
}
.bs-map__canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - 6px);
}
.bs-map__svg { display: block; width: 100%; height: 100%; }

/* ---------- SVG layers (classes written by tools/make-maps.cjs) ---------- */
.bs-map .bsm-land { fill: var(--map-land); }
.bs-map .bsm-shore { stroke: var(--map-shore); stroke-opacity: 0.6; }
.bs-map .bsm-coast { stroke: var(--map-coast); }
.bs-map .bsm-water { fill: var(--map-sea); }
.bs-map .bsm-river,
.bs-map .bsm-stream { stroke: var(--map-river); }
.bs-map .bsm-river--minor { stroke-opacity: 0.75; }
.bs-map .bsm-river--body { fill: var(--map-river); }
.bs-map .bsm-motorway { stroke: var(--navy); stroke-opacity: 0.14; stroke-width: 1.5; }

.bs-map .bsm-green { fill: var(--map-green); fill-opacity: 1; }
.bs-map .bsm-park { fill: var(--map-park); }
.bs-map .bsm-estate { fill: var(--peach); fill-opacity: 0.5; }
.bs-map--local .bsm-water { fill: var(--map-sea); stroke: var(--map-river); stroke-width: 1; }
.bs-map .bsm-building { fill: var(--navy); fill-opacity: 0.07; }
.bs-map .bsm-road { stroke: var(--map-road); }
.bs-map .bsm-case { stroke: var(--map-road-edge); }
.bs-map .bsm-case--tertiary { stroke-opacity: 0.7; }
.bs-map .bsm-case--motorway { stroke: var(--map-motorway-edge); }
.bs-map .bsm-road--motorway,
.bs-map .bsm-road--link { stroke: var(--map-motorway); }
.bs-map .bsm-rail { stroke: var(--navy); stroke-opacity: 0.45; }
.bs-map .bsm-rail-dash { stroke: var(--map-land); }
.bs-map .bsm-stations { fill: var(--white); stroke: var(--navy); stroke-opacity: 0.45; }
.bs-map .bsm-trees { fill: var(--map-tree); fill-opacity: 1; }
.bs-map .bsm-route { stroke: var(--red); }
.bs-map--no-route .bsm-route { display: none; }
.bs-map .bsm-nursery { fill: var(--sun); stroke: var(--navy); }

/* ---------- attribution (required by the OpenStreetMap licence) ---------- */
.bs-map__attribution {
  margin: 0;
  padding-inline: var(--s-2);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: end;
}
.bs-map__attribution a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.bs-map__attribution a:hover { color: var(--navy); }
.bs-map__attribution a:focus-visible { outline: none; border-radius: 4px; box-shadow: var(--focus); }

/* =====================================================================================================================
   MAP A - "Our nurseries" (central Scotland)
   ===================================================================================================================== */

/* quiet orientation labels */
.bs-map__places,
.bs-map__roads {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.bs-map__place {
  position: absolute;
  translate: -50% -50%;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: clamp(10.5px, 1.42cqw, 14.5px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-shadow: var(--halo);
}
.bs-map__place--city { translate: 0 -50%; padding-inline-start: 0.85em; }
.bs-map__place--city[data-side="left"] { translate: -100% -50%; padding-inline: 0 0.85em; }
.bs-map__place--city::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0.5em; height: 0.5em;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--map-land);
  box-shadow: inset 0 0 0 1.5px var(--muted);
}
.bs-map__place--city[data-side="left"]::before { left: auto; right: 0; translate: 50% -50%; }
.bs-map__place--water {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(11px, 1.62cqw, 18px);
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--sky) 58%, var(--navy));
  text-shadow: none;
}
.bs-map__place--small { font-size: clamp(10px, 1.3cqw, 14.5px); }
.bs-map__mway {
  position: absolute;
  translate: -50% -50%;
  padding: 0.18em 0.5em;
  border-radius: var(--r-pill);
  background: var(--map-land);
  font-family: var(--font-body);
  font-size: clamp(8px, 0.95cqw, 10.5px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--navy) 42%, var(--map-land));
}

/* pins */
.bs-map__pins,
.bs-map__pois {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bs-map__item {
  --pin: clamp(14px, 1.9cqw, 21px);
  position: absolute;
  width: 0; height: 0;
  z-index: 1;
}
.bs-map__item.is-selected { z-index: 2; }
.bs-map__item:hover,
.bs-map__item:focus-within,
.bs-map__item.is-hover { z-index: 3; }
.bs-map__item.is-open { z-index: 4; }

.bs-map__pin {
  position: absolute;
  left: 0; top: 0;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: max(44px, calc(var(--pin) + 26px));   /* invisible hit area: at least 44px */
  aspect-ratio: 1;
  margin: 0; padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bs-map__pin:focus-visible { outline: none; box-shadow: none; }   /* the ring is drawn on the dot instead */
.bs-map__dot {
  position: relative;
  display: block;
  width: var(--pin);
  aspect-ratio: 1;
  border: max(2px, calc(var(--pin) * 0.14)) solid var(--navy);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 2px var(--white), var(--shadow-2);
  transition: scale var(--t-2) var(--ease-spring), box-shadow var(--t-2) var(--ease-out);
}
.bs-map__dot::after {            /* the red dot of the selected nursery */
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--red);
  scale: 0;
  transition: scale var(--t-3) var(--ease-spring);
}
.bs-map__item.is-selected .bs-map__dot { scale: 1.22; }
.bs-map__item.is-selected .bs-map__dot::after { scale: 1; }
.bs-map__item.is-hover .bs-map__dot,
.bs-map__pin:focus-visible .bs-map__dot { scale: 1.3; }
.bs-map__pin:focus-visible .bs-map__dot { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--navy), var(--shadow-2); }
.bs-map__pin:active .bs-map__dot { scale: 1.08; transition-duration: var(--t-1); }
@media (hover: hover) {
  .bs-map__pin:hover .bs-map__dot { scale: 1.3; }
  .bs-map__pin:active .bs-map__dot { scale: 1.12; }
}

.bs-map__name {
  --off: calc(var(--pin) / 2 + 0.3em);
  position: absolute;
  padding: 0.16em 0.55em 0.2em;
  border-radius: var(--r-pill);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(11.5px, 1.7cqw, 17.5px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--navy);
  text-shadow: var(--halo);
  transition: background-color var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out);
}
[data-label="right"] > .bs-map__pin .bs-map__name { left: calc(50% + var(--off)); top: 50%; translate: 0 -50%; }
[data-label="left"] > .bs-map__pin .bs-map__name { right: calc(50% + var(--off)); top: 50%; translate: 0 -50%; }
[data-label="top"] > .bs-map__pin .bs-map__name { left: 50%; bottom: calc(50% + var(--off)); translate: -50% 0; }
[data-label="bottom"] > .bs-map__pin .bs-map__name { left: 50%; top: calc(50% + var(--off)); translate: -50% 0; }
[data-label="top-right"] > .bs-map__pin .bs-map__name { left: calc(50% + var(--pin) * 0.3); bottom: calc(50% + var(--off) * 0.8); }
[data-label="top-left"] > .bs-map__pin .bs-map__name { right: calc(50% + var(--pin) * 0.3); bottom: calc(50% + var(--off) * 0.8); }
[data-label="bottom-right"] > .bs-map__pin .bs-map__name { left: calc(50% + var(--pin) * 0.3); top: calc(50% + var(--off) * 0.8); }
[data-label="bottom-left"] > .bs-map__pin .bs-map__name { right: calc(50% + var(--pin) * 0.3); top: calc(50% + var(--off) * 0.8); }

.bs-map__item.is-hover .bs-map__name,
.bs-map__pin:focus-visible .bs-map__name {
  background: var(--white);
  box-shadow: var(--shadow-1);
  text-shadow: none;
}
@media (hover: hover) {
  .bs-map__pin:hover .bs-map__name { background: var(--white); box-shadow: var(--shadow-1); text-shadow: none; }
}
.bs-map__item.is-selected .bs-map__name,
.bs-map__item.is-open .bs-map__name {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-1);
  text-shadow: none;
}

/* info card (one per pin, anchored to it; map.js keeps it inside the frame) */
.bs-map__card {
  --gap: calc(var(--pin) / 2 + 16px);
  --nudge: 0px;
  --ax: -50%;
  --cx: 50%;
  --rise: 8px;
  position: absolute;
  left: 0;
  width: max-content;
  min-width: 13.5rem;
  max-width: min(18rem, 78cqw);
  padding: 1rem 1.15rem 1.05rem;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-3);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.4;
  text-align: start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  translate: calc(var(--ax) + var(--nudge)) var(--rise);
  scale: 0.96;
  transition: opacity var(--t-1) var(--ease-out), translate var(--t-2) var(--ease-out), scale var(--t-2) var(--ease-out), visibility 0s linear var(--t-2);
}
[data-card="above"] > .bs-map__card { bottom: var(--gap); transform-origin: calc(var(--cx) - var(--nudge)) 100%; }
[data-card="below"] > .bs-map__card { top: var(--gap); --rise: -8px; transform-origin: calc(var(--cx) - var(--nudge)) 0; }
[data-align="start"] > .bs-map__card { --ax: -30px; --cx: 30px; }
[data-align="end"] > .bs-map__card { --ax: calc(-100% + 30px); --cx: calc(100% - 30px); }
.bs-map__card::before {            /* caret pointing at the pin */
  content: "";
  position: absolute;
  left: calc(var(--cx) - var(--nudge));
  width: 14px; height: 14px;
  translate: -50% 0;
  rotate: 45deg;
  border-radius: 3px;
  background: inherit;
}
[data-card="above"] > .bs-map__card::before { bottom: -6px; }
[data-card="below"] > .bs-map__card::before { top: -6px; }
/* no hover bridge is needed: the card's edge sits inside the pin's 44px hit area, and map.js waits 160ms before closing */

.bs-map__item.is-open > .bs-map__card,
.no-js .bs-map__item:hover > .bs-map__card,
.no-js .bs-map__item:focus-within > .bs-map__card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  translate: calc(var(--ax) + var(--nudge)) 0;
  scale: 1;
  transition-delay: 0s;
}
.bs-map__card.is-measuring { transition: none !important; translate: calc(var(--ax) + var(--nudge)) 0 !important; scale: 1 !important; }

.bs-map__card p { margin: 0; }
.bs-map__card-kicker {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bs-map__card-kicker::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 1.5px var(--navy); }
.bs-map__card-title {
  margin-top: 0.45rem !important;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: var(--display-weight);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.bs-map__card-town { margin-top: 0.2rem !important; font-size: var(--fs-micro); color: var(--muted); white-space: normal; }
.bs-map__card-phone,
.bs-map__card-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: fit-content;
  margin-top: 0.7rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
}
.bs-map__card-phone { color: var(--navy); font-variant-numeric: tabular-nums; }
.bs-map__card-phone .icon { width: 1.05em; height: 1.05em; color: var(--muted); }
.bs-map__card-link { margin-top: 0.55rem; font-size: 1rem; color: var(--red); }
.bs-map__card-link .icon { width: 1.1em; height: 1.1em; transition: translate var(--t-2) var(--ease-spring); }
.bs-map__card-link:hover .icon { translate: 4px 0; }
.bs-map__card-phone:hover span,
.bs-map__card-link:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
.bs-map__card-phone:focus-visible,
.bs-map__card-link:focus-visible { outline: none; box-shadow: var(--focus); }
.bs-map__card-soon {
  display: inline-block;
  margin-top: 0.75rem !important;
  padding: 0.35em 0.8em;
  border-radius: var(--r-pill);
  background: var(--cream);
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--navy);
}

/* staggered drop-in - only with JS, only when motion is welcome; map.js adds .is-inview when the map scrolls into view */
@media screen and (prefers-reduced-motion: no-preference) {
  html.js .bs-map--regional:not(.is-inview) .bs-map__item { opacity: 0; }
  html.js .bs-map--regional:not(.is-ready) .bs-map__item { animation: bs-map-failsafe 1ms linear 4s both; }   /* map.js never ran */
  html.js .bs-map--regional.is-inview .bs-map__dot { animation: bs-map-drop 0.75s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 75ms + 120ms); }
  html.js .bs-map--regional.is-inview .bs-map__name { animation: bs-map-fade 0.45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 75ms + 380ms); }
  html.js .bs-map--local.is-inview .bs-map__sun { animation: bs-map-drop 0.8s var(--ease-spring) 0.15s both; }
  html.js .bs-map--local.is-inview .bs-map__pulse { animation: bs-map-pulse 2.4s var(--ease-out) 0.9s 4 both; }
  html.js .bs-map--local.is-inview .bs-map__frame:hover .bs-map__pulse { animation: bs-map-pulse-again 2.4s var(--ease-out) 3 both; }
}
@keyframes bs-map-failsafe { from { opacity: 0; } to { opacity: 1; } }
@keyframes bs-map-drop { 0% { opacity: 0; translate: 0 -26px; scale: 0.3; } 55% { opacity: 1; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes bs-map-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bs-map-pulse { 0% { opacity: 0.55; scale: 1; } 80%, 100% { opacity: 0; scale: 2.7; } }
@keyframes bs-map-pulse-again { 0% { opacity: 0.55; scale: 1; } 80%, 100% { opacity: 0; scale: 2.7; } }

/* =====================================================================================================================
   MAP B - "Find us" (one nursery's neighbourhood)
   ===================================================================================================================== */
.bs-map__road {
  position: absolute;
  translate: -50% -50%;
  rotate: var(--a, 0deg);
  transform: translateY(-0.95em);          /* sit just above the road it names (applied after the rotation) */
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: clamp(9.5px, 1.52cqw, 14.5px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-shadow: var(--halo);
}
.bs-map__road--shield {
  rotate: none;
  transform: none;
  padding: 0.3em 0.65em;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: none;
  box-shadow: 0 0 0 2px var(--map-motorway);
}

.bs-map__pois { pointer-events: none; }
.bs-map__poi {
  --mark: 1.95em;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55em;
  translate: calc(var(--mark) / -2) -50%;
  white-space: nowrap;
  font-size: clamp(11px, 1.9cqw, 17.5px);
  line-height: 1.15;
  color: var(--navy);
}
.bs-map__poi[data-side="left"] { flex-direction: row-reverse; translate: calc(-100% + var(--mark) / 2) -50%; text-align: end; }
.bs-map__poi-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--mark);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 0 0 2px var(--white), var(--shadow-1);
}
.bs-map__poi-mark .icon { width: 58%; height: 58%; vertical-align: 0; }
.bs-map__poi-mark--text { font-family: var(--font-body); font-size: 0.72em; font-weight: 800; letter-spacing: 0.02em; }
.bs-map__poi-text { display: grid; gap: 0.12em; translate: 0 var(--dy, 0); text-shadow: var(--halo); }   /* --dy: optional nudge from map.json so a label clears the road beside it */
.bs-map__poi-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; }
.bs-map__poi-note { font-family: var(--font-body); font-size: 0.82em; font-weight: 500; color: var(--muted); }

.bs-map__poi--park { translate: -50% -50%; text-align: center; --map-halo: var(--map-park); }
.bs-map__poi--park .bs-map__poi-name { font-size: 1.12em; color: color-mix(in srgb, var(--leaf) 48%, var(--navy)); }
.bs-map__poi--park .bs-map__poi-note { color: color-mix(in srgb, var(--leaf) 30%, var(--muted)); }
.bs-map__poi--place { translate: calc(-100% - 1.5em) -50%; font-size: clamp(9.5px, 1.52cqw, 14.5px); }
.bs-map__poi--place .bs-map__poi-name { font-family: var(--font-body); font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.bs-map__poi--edge {
  translate: -50% 0.8em;
  gap: 0.4em;
  padding: 0.3em 0.85em 0.3em 0.35em;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.bs-map__poi--edge .bs-map__poi-mark { --mark: 1.6em; width: 1.6em; background: var(--sun); color: var(--navy); box-shadow: none; }
.bs-map__poi--edge .bs-map__poi-text { display: flex; align-items: baseline; gap: 0.45em; text-shadow: none; }

/* "you are here": the brand sun, with a pulse */
.bs-map__here {
  --sun-size: clamp(34px, 6.2cqw, 60px);
  position: absolute;
  width: 0; height: 0;
  z-index: 2;
}
.bs-map__pulse,
.bs-map__sun {
  position: absolute;
  left: 0; top: 0;
  width: var(--sun-size);
  aspect-ratio: 1;
  margin: calc(var(--sun-size) / -2) 0 0 calc(var(--sun-size) / -2);
  border-radius: 50%;
}
.bs-map__pulse { background: var(--sun); opacity: 0; }
.bs-map__sun {
  display: grid;
  place-items: center;
  background: var(--navy);
  box-shadow: 0 0 0 3px var(--white), var(--shadow-2);
}
.bs-map__sun svg { width: 76%; height: 76%; }
.bs-map__sun-rays,
.bs-map__sun-core { fill: var(--sun); }
.bs-map__here-label {
  position: absolute;
  left: calc(var(--sun-size) / 2 + 0.6em);
  top: 0;
  translate: 0 -50%;
  padding: 0.42em 0.9em 0.46em;
  border-radius: var(--r-pill);
  background: var(--navy);
  box-shadow: var(--shadow-2);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(11px, 1.8cqw, 17.5px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
}
.bs-map__here-label b { font-weight: 700; color: var(--sun); }

.bs-map__scale {
  position: absolute;
  right: clamp(14px, 3.4cqw, 30px);
  bottom: clamp(26px, 6.4cqw, 54px);
  height: 0.5em;
  border: 1.5px solid color-mix(in srgb, var(--navy) 55%, var(--map-land));
  border-top: 0;
  font-size: clamp(9px, 1.3cqw, 12px);
  pointer-events: none;
}
.bs-map__scale span {
  position: absolute;
  left: 50%; bottom: 0.75em;
  translate: -50% 0;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  text-shadow: var(--halo);
}

/* no street map: a photo of the nursery in the map's place (localMap opts.photo), framed like the map card */
.bs-map__photo { --ar: 4 / 3; border: 6px solid var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-1); }
.bs-map__photo > img { border-radius: calc(var(--r-xl) - 6px); }

/* address + Google Maps button under the map */
.bs-map__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-5);
  padding: var(--s-2) var(--s-2) 0;
}
.bs-map__address {
  display: flex;
  align-items: flex-start;
  flex: 1 1 15rem;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  max-width: 44ch;
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink);
}
.bs-map__address .icon { flex: none; width: 1.4em; height: 1.4em; margin-top: 0.1em; color: var(--red); }
.bs-map__address b { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.bs-map__cta { flex: none; }

/* small frames: drop the secondary labels so nothing collides (the card stays anchored to its pin; map.js keeps it inside the frame) */
@container (max-width: 560px) {
  .bs-map__place--city,
  .bs-map__mway,
  .bs-map__road:not(.bs-map__road--shield),
  .bs-map__poi--place,
  .bs-map__scale { display: none; }
}
@container (max-width: 440px) {
  .bs-map__place--water { display: none; }
}
@media (max-width: 560px) {
  .bs-map__frame { border-radius: var(--r-lg); }
  .bs-map__mway { display: none; }
  .bs-map__foot { align-items: stretch; flex-direction: column; }
  .bs-map__address { flex-basis: auto; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bs-map__dot, .bs-map__dot::after, .bs-map__name, .bs-map__card { transition-duration: 1ms; }
}

/* =====================================================================================================================
   r3 · numbered map-pin markers - maps.nurseryMap(…, { markers: true }) (contact page: "there should be a point for it")
   The disc becomes a small shadow on the ground; a teardrop pin stands on it with the nursery's number.
   ===================================================================================================================== */
.bs-map--markers .bs-map__item { --pin: clamp(14px, 1.8cqw, 20px); --mk: calc(var(--pin) * 2.05); }
.bs-map--markers .bs-map__dot {
  width: calc(var(--pin) * 0.9);
  height: calc(var(--pin) * 0.38);
  aspect-ratio: auto;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--navy) 30%, transparent);
  box-shadow: none;
  transform-origin: 50% 50%;
}
.bs-map--markers .bs-map__dot::after { display: none; }
.bs-map__marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--mk);
  height: var(--mk);
  margin: calc(var(--mk) * -1.2) 0 0 calc(var(--mk) / -2);
  display: grid;
  place-items: center;
  border: max(2px, calc(var(--mk) * 0.09)) solid var(--white);
  border-radius: 50% 50% 50% 0;
  background: var(--navy);
  box-shadow: var(--shadow-2);
  rotate: -45deg;
  transform-origin: 50% 50%;
  transition: background-color var(--t-2) ease, scale var(--t-2) var(--ease-spring);
}
.bs-map__marker b {
  rotate: 45deg;
  font-family: var(--font-display);
  font-size: calc(var(--mk) * 0.5);
  font-weight: 700;
  line-height: 1;
  color: var(--sun);
}
.bs-map--markers .bs-map__item.is-selected .bs-map__dot,
.bs-map--markers .bs-map__item.is-hover .bs-map__dot,
.bs-map--markers .bs-map__pin:focus-visible .bs-map__dot { scale: 1.15; }
.bs-map--markers .bs-map__pin:focus-visible .bs-map__dot { box-shadow: none; }
.bs-map--markers .bs-map__pin:focus-visible .bs-map__marker { box-shadow: 0 0 0 3px var(--navy), var(--shadow-2); }
.bs-map--markers .bs-map__item.is-selected .bs-map__marker { background: var(--red); }
.bs-map--markers .bs-map__item.is-selected .bs-map__marker b { color: var(--white); }
@media (hover: hover) {
  .bs-map--markers .bs-map__pin:hover .bs-map__marker { background: var(--navy-soft); }
  .bs-map--markers .bs-map__item.is-selected .bs-map__pin:hover .bs-map__marker { background: var(--red); }
}
/* labels sit level with the pin's head, not its tip */
.bs-map--markers .bs-map__name { --off: calc(var(--mk) / 2 + 0.35em); margin-top: calc(var(--mk) * -0.75); }
.bs-map--markers [data-label="top"] > .bs-map__pin .bs-map__name,
.bs-map--markers [data-label="top-left"] > .bs-map__pin .bs-map__name,
.bs-map--markers [data-label="top-right"] > .bs-map__pin .bs-map__name { margin-top: 0; margin-bottom: calc(var(--mk) * 1.05); }
.bs-map--markers [data-label="bottom"] > .bs-map__pin .bs-map__name,
.bs-map--markers [data-label="bottom-left"] > .bs-map__pin .bs-map__name,
.bs-map--markers [data-label="bottom-right"] > .bs-map__pin .bs-map__name { margin-top: 0; }
/* the card opens clear of the pin's head (the head itself keeps the hover bridge: it is part of the pin button) */
.bs-map--markers [data-card="above"] > .bs-map__card { --gap: calc(var(--mk) * 1.55 + 8px); }

/* r11 phones: the address and the directions button under the map centre (the address icon sits above the words) */
@media (max-width: 599.98px) {
  .bs-map__foot { align-items: center; text-align: center; }
  .bs-map__address { flex-direction: column; align-items: center; }
  .bs-map__address .icon { margin-top: 0; }
  .bs-map__cta { align-self: center; }
}

/* ==== components/marquee.css ==== */
/* marquee.css - seamless ticker.  .marquee[data-marquee] > .marquee__track > .marquee__item
   Hooks: --marquee-gap, --marquee-duration (one full set), --marquee-fade (edge fade width; 0 to switch off).
   Modifiers: .marquee--lg (big display type), .marquee--plain (no separator dots). */
.marquee {
  --marquee-gap: clamp(28px, 4vw, 64px);
  --marquee-fade: clamp(32px, 8vw, 120px);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, var(--navy) var(--marquee-fade), var(--navy) calc(100% - var(--marquee-fade)), transparent);
  mask-image: linear-gradient(to right, transparent, var(--navy) var(--marquee-fade), var(--navy) calc(100% - var(--marquee-fade)), transparent);
}
.marquee__track {
  display: flex;
  flex-wrap: wrap;                       /* no JS / reduced motion: a tidy wrapping row */
  justify-content: center;
  align-items: center;
  gap: var(--s-3) var(--marquee-gap);
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.marquee__item {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--heading);
  white-space: nowrap;
}
.marquee__item a { color: inherit; text-decoration: none; }
.marquee__item a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* a small sun dot between names */
.marquee:not(.marquee--plain) .marquee__item::after {
  content: "";
  position: absolute;
  left: calc(100% + var(--marquee-gap) / 2 - 0.19em);
  top: 50%;
  width: 0.38em;
  height: 0.38em;
  margin-top: -0.19em;
  border-radius: 50%;
  background: var(--sun-deep);
}
.marquee--lg .marquee__item { font-size: clamp(2rem, 1.2rem + 3.4vw, 4.25rem); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.1; }

/* running: one long row, translated by exactly one set of items */
.marquee.is-running .marquee__track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  max-width: none;
  margin: 0;
  animation: marquee-run var(--marquee-duration, var(--marquee-auto-duration, 40s)) linear infinite;
  will-change: transform;
}
.marquee.is-running[data-marquee-reverse] .marquee__track { animation-direction: reverse; }
.marquee.is-running:hover .marquee__track,
.marquee.is-running:focus-within .marquee__track,
.marquee.is-running.is-offscreen .marquee__track,
.marquee.is-running.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee-run {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
}
.marquee:not(.is-running) { -webkit-mask-image: none; mask-image: none; }
.marquee:not(.is-running):not(.marquee--plain) .marquee__item:last-child::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee.is-running .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; max-width: 100%; margin: 0 auto; }
  .marquee [data-marquee-clone] { display: none; }
}

/* ==== components/media.css ==== */
/* media.css - .media image wrapper + the photo mask shapes. Photos are never plain square-cornered rectangles.
   <div class="media mask-blob-2" style="--ar: 4 / 5">{{ ui.img(…) }}</div>
   --ar sets the aspect ratio (default 4 / 3); the img() macro sets --focus-pos from the manifest so crops keep the subject. */
.media {
  --ar: 4 / 3;
  position: relative;
  display: block;
  aspect-ratio: var(--ar);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}
.media > :is(img, video), .media > picture, .media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
}
.media > :is(img, video), .media > picture > img {
  object-fit: cover;
  object-position: var(--focus-pos, 50% 50%);
}
.media > .img-missing { width: 100%; height: 100%; aspect-ratio: auto; }
.media--auto { aspect-ratio: auto; }
.media--auto > :is(img, video), .media--auto > picture > img { height: auto; }
.media--sm { border-radius: var(--r-md); }
.media--xl { border-radius: var(--r-xl); }
.media--square { --ar: 1 / 1; }
.media--portrait { --ar: 4 / 5; }
.media--wide { --ar: 16 / 9; }
.media--shadow { box-shadow: var(--shadow-2); }

/* optional hover zoom (also triggered by a parent .card--link) */
.media--zoom > :is(img, picture, video) { transition: scale var(--t-4) var(--ease-out); }
@media (hover: hover) {
  .media--zoom:hover > :is(img, picture, video),
  a:hover > .media--zoom > :is(img, picture, video) { scale: 1.045; }
}

/* soft gradient at the bottom for captions / chips placed over the photo */
.media--scrim::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--navy-deep) 62%, transparent), transparent);
  pointer-events: none;
}
.media__caption {
  position: absolute;
  z-index: 1;
  left: var(--s-4);
  bottom: var(--s-4);
  max-width: calc(100% - var(--s-6));
}

/* ---------- mask shapes ----------
   Blobs are hand-cut organic outlines (160-point polygons in %, so they stretch with the box at any size or ratio).
   Shadows: clip-path also clips box-shadow - wrap in .mask-shadow to get a soft drop shadow that follows the shape. */
.mask-blob-1 { clip-path: polygon(49.9% 2.5%, 51.7% 2.2%, 53.5% 1.8%, 55.3% 1.4%, 57.1% 1.1%, 59.1% .7%, 61% .4%, 63% .2%, 65.1% .1%, 67.1% 0%, 69.2% 0%, 71.4% .2%, 73.5% .4%, 75.6% .8%, 77.7% 1.4%, 79.8% 2%, 81.8% 2.9%, 83.8% 3.9%, 85.7% 5%, 87.5% 6.3%, 89.2% 7.7%, 90.8% 9.3%, 92.3% 11%, 93.6% 12.8%, 94.8% 14.7%, 95.9% 16.7%, 96.8% 18.8%, 97.6% 20.9%, 98.3% 23.1%, 98.8% 25.3%, 99.3% 27.5%, 99.6% 29.7%, 99.8% 31.9%, 100% 34.1%, 100% 36.3%, 99.9% 38.5%, 99.8% 40.6%, 99.6% 42.7%, 99.3% 44.8%, 99% 46.9%, 98.7% 48.9%, 98.3% 50.9%, 97.8% 52.8%, 97.4% 54.8%, 96.9% 56.7%, 96.4% 58.6%, 95.9% 60.4%, 95.3% 62.3%, 94.8% 64.2%, 94.2% 66%, 93.6% 67.9%, 93% 69.7%, 92.4% 71.6%, 91.8% 73.4%, 91.1% 75.3%, 90.4% 77.2%, 89.6% 79.1%, 88.8% 81%, 87.8% 82.8%, 86.8% 84.6%, 85.7% 86.4%, 84.5% 88.1%, 83.2% 89.7%, 81.8% 91.3%, 80.3% 92.7%, 78.7% 94%, 77% 95.2%, 75.2% 96.2%, 73.4% 97.2%, 71.5% 97.9%, 69.6% 98.6%, 67.6% 99.1%, 65.6% 99.5%, 63.6% 99.8%, 61.6% 99.9%, 59.6% 100%, 57.6% 100%, 55.7% 99.9%, 53.7% 99.8%, 51.8% 99.6%, 49.9% 99.4%, 48% 99.2%, 46.1% 98.9%, 44.3% 98.7%, 42.4% 98.4%, 40.5% 98.2%, 38.7% 97.9%, 36.8% 97.6%, 34.9% 97.3%, 33% 97%, 31.1% 96.6%, 29.1% 96.1%, 27.2% 95.7%, 25.2% 95.1%, 23.3% 94.4%, 21.4% 93.7%, 19.5% 92.8%, 17.6% 91.8%, 15.9% 90.6%, 14.2% 89.3%, 12.7% 87.9%, 11.2% 86.4%, 9.9% 84.7%, 8.7% 82.9%, 7.7% 81%, 6.7% 79.1%, 5.9% 77.1%, 5.3% 75.1%, 4.7% 73%, 4.2% 70.9%, 3.8% 68.9%, 3.5% 66.8%, 3.2% 64.8%, 3% 62.8%, 2.8% 60.7%, 2.6% 58.8%, 2.4% 56.8%, 2.1% 54.8%, 1.9% 52.9%, 1.7% 50.9%, 1.4% 48.9%, 1.2% 46.9%, .9% 44.9%, .7% 42.8%, .4% 40.7%, .2% 38.5%, .1% 36.4%, 0% 34.2%, 0% 31.9%, .1% 29.7%, .4% 27.4%, .8% 25.2%, 1.3% 23%, 2% 20.8%, 2.9% 18.7%, 4% 16.7%, 5.2% 14.9%, 6.6% 13.1%, 8.2% 11.6%, 9.9% 10.1%, 11.7% 8.9%, 13.7% 7.9%, 15.7% 7%, 17.8% 6.2%, 19.9% 5.7%, 22.1% 5.3%, 24.2% 4.9%, 26.3% 4.7%, 28.3% 4.6%, 30.3% 4.4%, 32.3% 4.4%, 34.2% 4.3%, 36% 4.2%, 37.8% 4.1%, 39.6% 4%, 41.4% 3.8%, 43.1% 3.6%, 44.8% 3.4%, 46.5% 3.2%, 48.2% 2.9%); }
.mask-blob-2 { clip-path: polygon(48.1% 4.3%, 50% 4.9%, 51.9% 5.5%, 53.7% 6%, 55.5% 6.6%, 57.2% 7.1%, 59% 7.5%, 60.8% 8%, 62.5% 8.4%, 64.3% 8.8%, 66.1% 9.2%, 68% 9.6%, 69.8% 10.1%, 71.7% 10.5%, 73.6% 11%, 75.6% 11.5%, 77.5% 12.1%, 79.5% 12.8%, 81.4% 13.6%, 83.3% 14.4%, 85.2% 15.4%, 87% 16.5%, 88.8% 17.7%, 90.4% 19%, 92% 20.5%, 93.4% 22.1%, 94.7% 23.7%, 95.9% 25.5%, 96.9% 27.3%, 97.8% 29.2%, 98.5% 31.2%, 99.1% 33.2%, 99.5% 35.2%, 99.8% 37.3%, 100% 39.4%, 100% 41.5%, 99.9% 43.5%, 99.7% 45.5%, 99.5% 47.6%, 99.1% 49.5%, 98.7% 51.5%, 98.3% 53.4%, 97.8% 55.3%, 97.3% 57.2%, 96.8% 59%, 96.2% 60.8%, 95.6% 62.6%, 94.9% 64.3%, 94.2% 66.1%, 93.4% 67.8%, 92.7% 69.4%, 91.8% 71.1%, 91% 72.7%, 90.1% 74.3%, 89.1% 75.9%, 88.1% 77.5%, 87% 79%, 85.9% 80.5%, 84.7% 81.9%, 83.5% 83.3%, 82.2% 84.7%, 80.9% 86%, 79.5% 87.2%, 78% 88.4%, 76.5% 89.5%, 74.9% 90.5%, 73.3% 91.5%, 71.7% 92.4%, 70% 93.2%, 68.3% 94%, 66.5% 94.7%, 64.8% 95.4%, 63% 95.9%, 61.2% 96.5%, 59.4% 96.9%, 57.5% 97.4%, 55.7% 97.7%, 53.8% 98.1%, 51.9% 98.4%, 50.1% 98.7%, 48.1% 98.9%, 46.2% 99.2%, 44.3% 99.4%, 42.3% 99.7%, 40.3% 99.8%, 38.2% 99.9%, 36.2% 100%, 34.1% 100%, 32% 99.9%, 29.9% 99.7%, 27.8% 99.4%, 25.6% 99%, 23.5% 98.5%, 21.5% 97.9%, 19.4% 97.1%, 17.4% 96.2%, 15.5% 95.2%, 13.7% 94%, 12% 92.7%, 10.3% 91.3%, 8.8% 89.8%, 7.5% 88.1%, 6.2% 86.3%, 5.1% 84.5%, 4.2% 82.6%, 3.4% 80.6%, 2.7% 78.6%, 2.2% 76.6%, 1.8% 74.5%, 1.5% 72.4%, 1.3% 70.4%, 1.1% 68.4%, 1.1% 66.4%, 1.1% 64.4%, 1.1% 62.5%, 1.2% 60.6%, 1.3% 58.7%, 1.4% 56.9%, 1.4% 55.1%, 1.5% 53.3%, 1.5% 51.5%, 1.4% 49.7%, 1.3% 47.9%, 1.2% 46.1%, 1% 44.2%, .8% 42.3%, .6% 40.4%, .4% 38.4%, .2% 36.3%, .1% 34.2%, 0% 32.1%, 0% 29.9%, .1% 27.7%, .3% 25.4%, .6% 23.1%, 1.1% 20.9%, 1.7% 18.6%, 2.5% 16.4%, 3.4% 14.3%, 4.6% 12.3%, 5.9% 10.3%, 7.3% 8.5%, 9% 6.9%, 10.8% 5.4%, 12.7% 4%, 14.8% 2.9%, 17% 1.9%, 19.2% 1.2%, 21.5% .6%, 23.9% .2%, 26.3% 0%, 28.6% 0%, 31% .1%, 33.3% .4%, 35.6% .7%, 37.9% 1.2%, 40.1% 1.7%, 42.2% 2.3%, 44.2% 3%, 46.2% 3.6%); }
.mask-blob-3 { clip-path: polygon(50.5% .1%, 52.7% 0%, 54.9% 0%, 57% 0%, 59.2% .1%, 61.4% .2%, 63.6% .4%, 65.8% .6%, 68% .9%, 70.3% 1.3%, 72.5% 1.8%, 74.7% 2.3%, 76.9% 2.9%, 79.1% 3.7%, 81.2% 4.5%, 83.3% 5.5%, 85.3% 6.7%, 87.1% 8%, 88.9% 9.4%, 90.5% 11%, 91.9% 12.8%, 93.2% 14.6%, 94.3% 16.6%, 95.2% 18.6%, 96% 20.6%, 96.7% 22.7%, 97.3% 24.7%, 97.9% 26.8%, 98.3% 28.8%, 98.7% 30.8%, 99.1% 32.8%, 99.4% 34.8%, 99.6% 36.8%, 99.8% 38.7%, 99.9% 40.6%, 100% 42.5%, 100% 44.4%, 99.9% 46.3%, 99.8% 48.1%, 99.6% 50%, 99.4% 51.8%, 99.1% 53.6%, 98.9% 55.4%, 98.6% 57.2%, 98.3% 58.9%, 98% 60.7%, 97.8% 62.5%, 97.7% 64.4%, 97.5% 66.2%, 97.5% 68.2%, 97.5% 70.2%, 97.5% 72.2%, 97.5% 74.4%, 97.5% 76.6%, 97.4% 78.9%, 97.3% 81.3%, 96.9% 83.6%, 96.4% 86%, 95.7% 88.2%, 94.7% 90.4%, 93.5% 92.3%, 92% 94.1%, 90.2% 95.6%, 88.2% 96.9%, 86.1% 98%, 83.8% 98.7%, 81.4% 99.3%, 78.9% 99.6%, 76.5% 99.8%, 74% 99.9%, 71.6% 99.8%, 69.3% 99.7%, 67% 99.5%, 64.7% 99.3%, 62.6% 99.2%, 60.5% 99%, 58.4% 98.9%, 56.4% 98.8%, 54.5% 98.7%, 52.5% 98.7%, 50.5% 98.8%, 48.6% 98.8%, 46.6% 98.9%, 44.6% 99.1%, 42.6% 99.2%, 40.5% 99.4%, 38.4% 99.5%, 36.2% 99.7%, 34% 99.8%, 31.7% 99.9%, 29.4% 100%, 27% 100%, 24.6% 99.9%, 22.1% 99.7%, 19.6% 99.5%, 17.1% 99%, 14.7% 98.4%, 12.3% 97.6%, 10.1% 96.5%, 8% 95.3%, 6.1% 93.7%, 4.5% 92%, 3.1% 90.1%, 2% 88%, 1.1% 85.7%, .5% 83.4%, .2% 80.9%, 0% 78.5%, 0% 76.1%, .2% 73.7%, .4% 71.4%, .8% 69.1%, 1.1% 67%, 1.5% 64.9%, 1.8% 62.9%, 2.1% 60.9%, 2.4% 59%, 2.5% 57.2%, 2.7% 55.4%, 2.7% 53.6%, 2.7% 51.8%, 2.6% 50%, 2.4% 48.2%, 2.3% 46.4%, 2.1% 44.6%, 2% 42.7%, 1.8% 40.8%, 1.8% 38.8%, 1.8% 36.9%, 1.9% 34.9%, 2.1% 32.9%, 2.4% 30.9%, 2.9% 28.9%, 3.5% 27%, 4.3% 25%, 5.1% 23.2%, 6.2% 21.4%, 7.3% 19.7%, 8.6% 18%, 10.1% 16.5%, 11.6% 15%, 13.2% 13.7%, 14.9% 12.4%, 16.7% 11.3%, 18.5% 10.2%, 20.3% 9.1%, 22.2% 8.1%, 24.1% 7.2%, 26% 6.3%, 27.9% 5.5%, 29.9% 4.7%, 31.8% 3.9%, 33.8% 3.2%, 35.8% 2.6%, 37.9% 2%, 39.9% 1.5%, 42% 1.1%, 44.1% .8%, 46.3% .5%, 48.4% .3%); }
.mask-blob-4 { clip-path: polygon(51.9% 2.9%, 53.8% 2.4%, 55.7% 1.9%, 57.6% 1.4%, 59.6% 1%, 61.7% .6%, 63.8% .3%, 65.9% .1%, 68.1% 0%, 70.3% .1%, 72.4% .3%, 74.6% .6%, 76.7% 1.2%, 78.7% 1.9%, 80.7% 2.8%, 82.6% 3.8%, 84.4% 5.1%, 86.1% 6.5%, 87.6% 8%, 89.1% 9.7%, 90.3% 11.5%, 91.5% 13.3%, 92.5% 15.3%, 93.3% 17.3%, 94.1% 19.3%, 94.8% 21.3%, 95.4% 23.4%, 95.9% 25.4%, 96.3% 27.4%, 96.7% 29.4%, 97% 31.4%, 97.4% 33.3%, 97.7% 35.2%, 98% 37.1%, 98.2% 39%, 98.5% 40.9%, 98.8% 42.8%, 99% 44.6%, 99.2% 46.5%, 99.5% 48.4%, 99.6% 50.3%, 99.8% 52.2%, 99.9% 54.1%, 100% 56%, 100% 57.9%, 99.9% 59.9%, 99.7% 61.8%, 99.4% 63.8%, 99% 65.7%, 98.5% 67.6%, 97.8% 69.4%, 97.1% 71.3%, 96.3% 73.1%, 95.3% 74.8%, 94.3% 76.5%, 93.2% 78.1%, 92.1% 79.7%, 90.9% 81.3%, 89.6% 82.7%, 88.3% 84.2%, 86.9% 85.6%, 85.5% 86.9%, 84% 88.2%, 82.6% 89.5%, 81% 90.7%, 79.5% 91.9%, 77.9% 93%, 76.2% 94.1%, 74.5% 95.1%, 72.8% 96%, 71% 96.9%, 69.2% 97.6%, 67.4% 98.3%, 65.5% 98.9%, 63.6% 99.3%, 61.6% 99.7%, 59.7% 99.9%, 57.7% 100%, 55.8% 100%, 53.8% 99.9%, 51.9% 99.7%, 50% 99.4%, 48.1% 99.1%, 46.2% 98.7%, 44.4% 98.2%, 42.5% 97.7%, 40.7% 97.1%, 39% 96.5%, 37.2% 95.9%, 35.5% 95.2%, 33.7% 94.5%, 32% 93.8%, 30.3% 93.1%, 28.5% 92.3%, 26.8% 91.6%, 25% 90.8%, 23.3% 90%, 21.5% 89.2%, 19.7% 88.3%, 17.9% 87.4%, 16.1% 86.4%, 14.3% 85.3%, 12.6% 84.1%, 10.9% 82.9%, 9.3% 81.5%, 7.8% 80%, 6.3% 78.4%, 5% 76.7%, 3.9% 74.9%, 2.8% 73.1%, 2% 71.1%, 1.3% 69.1%, .7% 67%, .3% 64.9%, .1% 62.8%, 0% 60.7%, 0% 58.5%, .2% 56.4%, .5% 54.3%, .8% 52.3%, 1.2% 50.3%, 1.7% 48.3%, 2.1% 46.3%, 2.7% 44.4%, 3.2% 42.5%, 3.8% 40.6%, 4.4% 38.7%, 5% 36.9%, 5.6% 35.1%, 6.3% 33.3%, 7% 31.5%, 7.8% 29.7%, 8.6% 28%, 9.4% 26.2%, 10.3% 24.5%, 11.3% 22.9%, 12.3% 21.3%, 13.5% 19.7%, 14.7% 18.2%, 16% 16.7%, 17.3% 15.4%, 18.8% 14.1%, 20.3% 13%, 21.9% 11.9%, 23.6% 10.9%, 25.3% 10%, 27% 9.3%, 28.8% 8.6%, 30.5% 8%, 32.3% 7.4%, 34.1% 6.9%, 35.9% 6.5%, 37.7% 6.1%, 39.4% 5.7%, 41.2% 5.3%, 43% 5%, 44.7% 4.6%, 46.5% 4.2%, 48.3% 3.8%, 50.1% 3.3%); }
[class*="mask-blob-"] { border-radius: 0; }
/* arch: a true half-circle top at the box's own aspect ratio (set --ar; .media does). Percent radii avoid the
   browser's corner-overlap scaling that a big px radius would trigger. */
.mask-arch { --ar: 4 / 5; border-radius: 50% 50% var(--r-lg) var(--r-lg) / calc(50% * (var(--ar))) calc(50% * (var(--ar))) var(--r-lg) var(--r-lg); }
.mask-pill { border-radius: var(--r-pill); }
.mask-sun { border-radius: 50%; }
.mask-sun.media { --ar: 1 / 1; }
.mask-leaf { border-radius: 14% 86% 14% 86% / 18% 82% 18% 82%; }
.mask-shadow { filter: drop-shadow(0 22px 26px color-mix(in srgb, var(--navy) 16%, transparent)); }

/* ---------- framed: a masked photo with brand decorations around it ----------
   <div class="framed"> {{ sun(class="framed__sun") }} <div class="media mask-blob-1">…</div> <div class="framed__sticker">…</div> </div> */
.framed { position: relative; isolation: isolate; }
.framed__sun {
  position: absolute;
  z-index: -1;
  top: -15%;
  right: -11%;
  width: 42%;
}
.framed__sun--left { right: auto; left: -11%; }
.framed__sun--bottom { top: auto; bottom: -15%; }
.framed__sticker { position: absolute; z-index: 2; left: -4%; bottom: 6%; }
.framed__sticker--right { left: auto; right: -4%; }
.framed__sticker--top { bottom: auto; top: 4%; }
.framed__note { position: absolute; z-index: 2; right: 0; bottom: -15%; }
.framed__card { position: absolute; z-index: 2; left: -6%; bottom: 8%; max-width: min(280px, 70%); }
.framed__card--right { left: auto; right: -6%; }
@media (max-width: 720px) {
  .framed__sticker, .framed__card { left: 2%; }
  .framed__sticker--right, .framed__card--right { left: auto; right: 2%; }
  .framed__sun { right: -2%; }
}

/* ==== components/mobile-menu.css ==== */
/* mobile-menu.css - the menu under 1024px (partials/mobile-menu.njk, components/mobile-menu.js).
   Round 12: one layout, the client's pick from round 11 (B "Drop card"): a floating frosted glass card dropping under
   the header pill, rows with small sun-tinted icon tiles. The pill stays on top; its menu button closes the menu.
   Rows that open a page have no arrow; accordion rows have a down chevron that turns over when open.
   State: .mobile-menu[data-open] (set a frame after [hidden] is removed, so the card can transition in). */

.mobile-menu {
  --mm-glass: color-mix(in srgb, var(--white) 84%, transparent);
  --mm-blur: blur(28px) saturate(1.5);
  --mm-edge: color-mix(in srgb, var(--white) 70%, transparent);
  --mm-hair: color-mix(in srgb, var(--navy) 9%, transparent);
  --mm-row-h: 50px;
  --mm-ico: 34px;
  --mm-dur: 440ms;
  --mm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header) - 1);       /* the header pill stays on top; its menu button closes the menu */
  color: var(--navy);
  font-family: var(--font-body);
}
.mobile-menu[hidden] { display: none; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- scrim: the page dimmed and softly blurred behind the glass ---------- */
.mobile-menu__scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--navy-deep) 16%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--mm-dur) var(--mm-ease);
}
.mobile-menu[data-open] .mobile-menu__scrim { opacity: 1; }

/* ---------- the glass surface ---------- */
.mobile-menu__panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--mm-glass);
  -webkit-backdrop-filter: var(--mm-blur);
  backdrop-filter: var(--mm-blur);
  box-shadow:
    inset 0 0 0 1px var(--mm-edge),
    0 2px 6px rgba(18, 23, 56, 0.06),
    0 30px 70px -20px rgba(18, 23, 56, 0.38);
  transition: transform var(--mm-dur) var(--mm-ease), opacity var(--mm-dur) var(--mm-ease);
}
@media (prefers-reduced-transparency: reduce) {
  .mobile-menu { --mm-glass: var(--white); }
  .mobile-menu__panel, .mobile-menu__scrim { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .mobile-menu { --mm-glass: var(--white); --mm-edge: var(--navy); --mm-hair: var(--line-strong); }
}

.mobile-menu__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 8px 6px; -webkit-overflow-scrolling: touch; }
.mobile-menu__links { display: grid; margin: 0; padding: 0; list-style: none; }
.mm-item { position: relative; }

/* ---------- rows ---------- */
.mm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: var(--mm-row-h);
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--navy);
  font: 600 1.0625rem / 1.25 var(--font-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-1) var(--ease-out);
}
.mm-row:active { background: color-mix(in srgb, var(--navy) 6%, transparent); }
@media (hover: hover) and (pointer: fine) { .mm-row:hover { background: color-mix(in srgb, var(--navy) 4%, transparent); } }
.mm-label { flex: 1; min-width: 0; }
.mm-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--mm-ico);
  height: var(--mm-ico);
  border-radius: 11px;
  background: color-mix(in srgb, var(--sun) 28%, var(--white));
  color: var(--navy);
}
.mm-ico .icon { width: 18px; height: 18px; stroke-width: 2; }
.mm-chev { flex: none; width: 18px; height: 18px; color: var(--muted); stroke-width: 2.2; transition: transform var(--mm-dur) var(--mm-ease); }
.mm-row[aria-current="page"],
.mm-toggle[data-has-current] { font-weight: 700; }
.mm-row[aria-current="page"] { background: color-mix(in srgb, var(--sun) 16%, var(--white)); }
.mm-row[aria-current="page"] .mm-ico,
.mm-toggle[data-has-current] .mm-ico { background: var(--sun); box-shadow: none; }

/* hairlines between top-level rows, inset to the label */
.mm-item + .mm-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(10px + var(--mm-ico) + 14px);
  right: 10px;
  height: 1px;
  background: var(--mm-hair);
}

/* ---------- accordions (smooth height: grid rows 0fr → 1fr) ---------- */
.mm-sub {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--mm-dur) var(--mm-ease), visibility 0s linear var(--mm-dur);
}
.mm-group[data-open] > .mm-sub { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.mm-group[data-open] > .mm-toggle .mm-chev { transform: rotate(180deg); }
.mobile-menu .mm-sub__list {
  display: grid;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 0 0 calc(var(--mm-ico) + 14px);
  list-style: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-2) var(--ease-out), transform var(--mm-dur) var(--mm-ease);
}
.mm-group[data-open] .mm-sub__list { opacity: 1; transform: none; transition-delay: 60ms; }
.mm-sub__list > li:last-child { padding-bottom: 8px; }
.mm-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mm-sublink:active { background: color-mix(in srgb, var(--navy) 6%, transparent); }
.mm-sublink[aria-current="page"] { background: color-mix(in srgb, var(--sun) 16%, var(--white)); color: var(--navy); font-weight: 700; }
.mm-sublink[aria-current="page"]::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-deep); }
/* the nursery lists: two tidy columns of names, "see them all" across both */
.mm-sub__list--nurseries { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; }
.mm-sub__list--nurseries > li:nth-last-child(2) { padding-bottom: 0; }
.mm-sub__all { grid-column: 1 / -1; }
.mm-sublink--all { color: var(--red-text); }

/* ---------- actions: Book button, and on nursery pages Call / Email / Directions ---------- */
.mobile-menu__actions { container-type: inline-size; display: grid; gap: 10px; flex: none; padding: 10px 12px 12px; border-top: 1px solid var(--mm-hair); }
.mobile-menu__actions:empty { display: none; }
.mobile-menu__cta { display: none; width: 100%; }        /* the header's own Book button stays in view above */
@media (max-width: 359px) { .mobile-menu__cta { display: inline-flex; } }
@media (min-width: 360px) { .mobile-menu__actions:not(:has(.mobile-menu__quick)) { display: none; } }   /* group pages: nothing left to show */
.mobile-menu__quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mobile-menu__quick a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 6px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 65%, transparent);
  box-shadow: inset 0 0 0 1px var(--mm-hair);
  color: var(--navy);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.mobile-menu__quick a:active { background: color-mix(in srgb, var(--navy) 7%, transparent); }
.mobile-menu__quick .icon { width: 17px; height: 17px; flex: none; }
/* narrow card: icon over label, so "Directions" never clips */
@container (max-width: 330px) {
  .mobile-menu__quick a { flex-direction: column; gap: 3px; min-height: 52px; border-radius: 16px; font-size: var(--fs-micro); }
}

/* ---------- the card: floating under the header pill ---------- */
.mobile-menu__panel {
  --mm-top: calc(var(--header-top-min) + var(--header-h) + 10px);
  top: var(--mm-top);
  left: var(--header-gutter);
  right: var(--header-gutter);
  max-height: calc(100dvh - var(--mm-top) - 14px);
  border-radius: 26px;
  transform-origin: calc(100% - 30px) 0;
  opacity: 0;
  transform: translate3d(0, -8px, 0) scale(0.96);
  transition: transform 360ms var(--mm-ease), opacity 220ms var(--ease-out);
}
.mobile-menu[data-open] .mobile-menu__panel { opacity: 1; transform: none; }
@media (min-width: 600px) { .mobile-menu__panel { left: auto; width: 400px; } }
.menu-open .site-header .site-header__cta { visibility: visible; }

/* ---------- reduced motion: a quick fade, no sliding ---------- */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { --mm-dur: 1ms; }
  .mobile-menu__panel { transform: none !important; opacity: 0; transition: opacity 160ms linear; }
  .mobile-menu[data-open] .mobile-menu__panel { opacity: 1; }
  .mm-sub__list { transform: none; }
}

/* ==== components/modal.css ==== */
/* modal.css - native <dialog> modal: centred panel, dimmed page, soft enter / quicker exit.
   <dialog class="modal modal--md" data-modal id="x"><div class="modal__panel"><header class="modal__head">…</header><div class="modal__body">…</div></div></dialog> */
.modal {
  width: min(100% - 2 * var(--s-4), var(--modal-w, 620px));
  max-width: none;
  max-height: min(100dvh - 2 * var(--s-5), 860px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.modal--sm { --modal-w: 440px; }
.modal--lg { --modal-w: 880px; }
.modal:not([open]) { display: none; }
.modal::backdrop { background: color-mix(in srgb, var(--navy-deep) 56%, transparent); }
.modal__panel {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  border-radius: inherit;
  background: var(--paper);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-5) var(--s-3) clamp(20px, 3vw, 32px);
}
.modal__title {
  padding-top: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--navy);
}
.modal__close {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  transition: background-color var(--t-2) ease, transform var(--t-1) var(--ease-out);
}
.modal__close .w-icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .modal__close:hover { background: var(--sun); } }
.modal__close:active { transform: scale(0.94); }
.modal__close:focus-visible { border-radius: 50%; }
.modal__body {
  padding: var(--s-2) clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal__body > * + * { margin-top: var(--s-4); }

@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in 260ms var(--ease-out) both; }
  .modal[open]::backdrop { animation: modal-fade 260ms ease both; }
  .modal.is-closing { animation: modal-out 180ms ease both; }
  .modal.is-closing::backdrop { animation: modal-fade 180ms ease reverse both; }
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes modal-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.97); } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

/* ==== components/nursery-card.css ==== */
/* nursery-card.css - one of the eight nurseries.  {{ ui.nurseryCard(nursery, root) }} */
.nursery-card {
  --card-pad: 10px;
  --card-gap: 0px;
  height: 100%;
  border-radius: var(--r-lg);
}
.nursery-card__media {
  --ar: 4 / 3;
  border-radius: calc(var(--r-lg) - 10px);
}
.nursery-card__area { position: absolute; z-index: 1; left: 12px; top: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.nursery-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: var(--s-5) clamp(14px, 1.6vw, 22px) var(--s-4);
}
.nursery-card__name { font-size: clamp(1.45rem, 1.3rem + 0.6vw, 1.75rem); line-height: 1.18; letter-spacing: -0.016em; }
.nursery-card__town { display: flex; align-items: center; gap: 0.4em; font-size: var(--fs-small); color: var(--muted); line-height: 1.35; }
.nursery-card__town .icon { width: 1.1em; height: 1.1em; }
.nursery-card__blurb { margin-block: var(--s-1) var(--s-3); font-size: 1rem; line-height: 1.65; color: var(--text); }
.nursery-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1.5px solid var(--line);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  color: var(--heading);
}
.nursery-card__facts li { display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; }
.nursery-card__facts .icon { width: 1.15em; height: 1.15em; color: var(--muted); }
.nursery-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-3); }
.nursery-card__body > .nursery-card__foot:nth-last-child(1):not(.nursery-card__facts + *) { margin-top: auto; }
.nursery-card .link-arrow { min-height: 44px; font-size: 1rem; }
/* compact row version for lists beside a map */
.nursery-card--row { flex-direction: row; align-items: stretch; }
.nursery-card--row .nursery-card__media { flex: none; width: clamp(120px, 34%, 200px); aspect-ratio: auto; }
.nursery-card--row .nursery-card__body { padding-block: var(--s-3); }
.nursery-card--row .nursery-card__blurb, .nursery-card--row .nursery-card__area { display: none; }

/* ==== components/nursery-switcher.css ==== */
/* nursery-switcher.css - chip after the logo ("Thornliebank ⌄") and its panel of all eight nurseries.
   The same list markup is reused, un-floated, inside the menu sheet (see mobile-menu.css). */
.nursery-switcher { position: relative; flex: none; }

.nursery-switcher__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 10px 0 16px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--navy) 6%, transparent);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color var(--t-1) ease, transform 160ms var(--ease-out);
}
.nursery-switcher__chip .icon { width: 18px; height: 18px; color: var(--muted); transition: transform var(--t-2) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nursery-switcher__chip:hover { background: color-mix(in srgb, var(--navy) 10%, transparent); }
}
.nursery-switcher__chip:active { transform: scale(0.97); }
.nursery-switcher__chip[aria-expanded="true"] { background: var(--sun-soft); }
.nursery-switcher__chip[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--navy); }

/* ---------- panel (opaque: it floats over the glass pill, and glass on glass is mud) ---------- */
.nursery-switcher__panel {
  position: absolute;
  top: calc(100% + (var(--bar-h, 72px) - 40px) / 2 + 12px);
  left: -18px;
  width: 404px;
  max-width: calc(100vw - 2 * var(--header-gutter));
  max-height: calc(100dvh - var(--chrome-top) - var(--s-6));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-2);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-3);
  color: var(--navy);
  transform-origin: 64px 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96) translateY(-6px);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s linear 150ms;
}
.nursery-switcher__panel[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
}
.nursery-switcher__panel[data-instant] { transition: none; }

.nursery-switcher__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin: 0;
  padding: 14px var(--s-4) 10px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--display-weight);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.nursery-switcher__count { font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0; color: var(--muted); }

.nursery-switcher__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nursery-switcher__option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--s-3);
  min-height: 56px;
  padding: 8px var(--s-3) 8px 10px;
  border-radius: 18px;
  color: var(--navy);
  line-height: 1.25;
  text-decoration: none;
  transition: background-color var(--t-1) ease;
}
.nursery-switcher__marker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--muted);
  transition: background-color var(--t-1) ease, color var(--t-1) ease;
}
.nursery-switcher__marker .icon { width: 18px; height: 18px; }
.nursery-switcher__text { display: grid; min-width: 0; }
.nursery-switcher__option-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.nursery-switcher__town { overflow: hidden; color: var(--muted); font-size: var(--fs-micro); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.nursery-switcher__tag,
.nursery-switcher__here {
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nursery-switcher__tag { color: var(--muted); }
.nursery-switcher__here { display: inline-flex; align-items: center; height: 24px; padding-inline: 10px; border-radius: var(--r-pill); background: var(--sun); color: var(--navy); }
.nursery-switcher__go { display: grid; place-items: center; width: 28px; height: 28px; color: var(--red); }
.nursery-switcher__go .icon { width: 18px; height: 18px; transition: transform var(--t-2) var(--ease-out); }

.nursery-switcher__option.is-current { background: var(--sun-mist); }
.nursery-switcher__option.is-current .nursery-switcher__marker { background: var(--sun); color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .nursery-switcher__option:hover { background: var(--cream); }
  .nursery-switcher__option.is-current:hover { background: var(--sun-soft); }
  .nursery-switcher__option:hover .nursery-switcher__marker { background: var(--sun-soft); color: var(--navy); }
  .nursery-switcher__option.is-current:hover .nursery-switcher__marker { background: var(--sun); }
  .nursery-switcher__option:hover .nursery-switcher__go .icon { transform: translateX(3px); }
}
.nursery-switcher__option:focus-visible,
.nursery-switcher__all:focus-visible { box-shadow: inset 0 0 0 2px var(--navy); }

.nursery-switcher__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  margin-top: var(--s-2);
  border-radius: 18px;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--t-1) ease;
}
.nursery-switcher__all .icon { width: 18px; height: 18px; transition: transform var(--t-2) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nursery-switcher__all:hover { background: var(--sun-soft); }
  .nursery-switcher__all:hover .icon { transform: translateX(3px); }
}

/* ==== components/open-status.css ==== */
/* open-status.css - "Open now · closes 6:00pm" with a live dot. Works on the macro markup and on a bare [data-open-status]. */
[data-open-status] { white-space: nowrap; }
.open-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.open-status--pill {
  min-height: 36px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--navy);
}
.open-status__dot {
  position: relative;
  display: none;
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 0.55em;
  border-radius: 50%;
  background: var(--sun-deep);
  vertical-align: 0.08em;
}
.open-status .open-status__dot { margin-right: 0; }
[data-open-status][data-state] .open-status__dot { display: inline-block; }
[data-open-status][data-state="open"] .open-status__dot { background: var(--leaf); }
[data-open-status][data-state="open"][data-closing-soon] .open-status__dot { background: var(--sun-deep); }
[data-open-status][data-state="closed"] .open-status__dot { background: var(--orange); }

/* a soft pulse while open */
[data-open-status][data-state="open"] .open-status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  [data-open-status][data-state="open"] .open-status__dot::after { animation: open-status-pulse 2.4s var(--ease-out) infinite; }
}
@keyframes open-status-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(3); opacity: 0; }
}
/* opts.quiet: nothing to show until the script has worked out "Open now…" (the hours are printed next to it) */
.open-status--quiet:not([data-state]) { display: none; }

/* ==== components/page-hero.css ==== */
/* page-hero.css - hero for inner pages.  {{ hero.pageHero({ eyebrow, title, accent, lead, image, imageAlt, mask, tone, crumbs }) }}
   Clears the floating header: --header-clear (set by header.css) = top of <main> → bottom edge of the header pill. */
.page-hero {
  --hero-bg: transparent;
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--header-clear, 96px) + clamp(40px, 4vw, 64px)) clamp(72px, 7vw, 112px);   /* r4: more air under the hero before the first section */
  background: var(--hero-bg);
  overflow: clip;
}
.page-hero--cream { --hero-bg: var(--cream); }
.page-hero--sun { --hero-bg: var(--sun); }
.page-hero--navy { --hero-bg: var(--navy); }
.page-hero--peach { --hero-bg: var(--peach); }
.page-hero--room { --hero-bg: var(--room-soft, var(--cream)); }
/* tinted heroes end in big soft corners; the colour behind them follows the next band (or set --ahead) */
.page-hero:not(.page-hero--paper) { border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: 0 var(--r-xl) 0 0 var(--ahead, transparent); }
.page-hero:has(+ .section--cream) { --ahead: var(--cream); }
.page-hero:has(+ .section--navy) { --ahead: var(--navy); }
.page-hero:has(+ .section--sun) { --ahead: var(--sun); }
.page-hero--demo { padding-block-start: clamp(var(--s-7), 6vw, var(--s-9)); border-radius: var(--r-xl) !important; }   /* styleguide only: no header to clear */
.page-hero--paper { padding-block-end: clamp(56px, 5.4vw, 88px); }
/* r4: on a plain paper hero nothing marks the hero's bottom edge, so clipping the sun glow there drew a hard line.
   Clip sideways only; the glow melts into the next band (the rising sun is masked out before the edge, see .page-hero__rise). */
.page-hero--paper { overflow-x: clip; overflow-y: visible; }
/* soft sun glow in the top-right corner of light heroes */
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22%;
  right: -8%;
  width: min(760px, 62vw);
  aspect-ratio: 1;
  background: var(--glow-sun);
  opacity: 0.55;
  pointer-events: none;
}
.page-hero--sun::before, .page-hero--navy::before { opacity: 0.16; }
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(var(--s-6), 4.4vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .page-hero--has-image .page-hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.page-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }   /* r4 polish: 20 → 24, the big title gets air */
.page-hero__title { max-width: 15ch; font-size: var(--fs-h1); line-height: 1.08; }
.page-hero:not(.page-hero--has-image) .page-hero__title { max-width: 18ch; }
.page-hero__lead { max-width: 54ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-block-start: var(--s-3); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block-start: var(--s-1); }

/* breadcrumbs */
.crumbs { font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); list-style: none; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: var(--s-2); }
.crumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ctx-dot, var(--sun-deep));
}
.crumbs a { color: inherit; text-decoration: none; border-radius: var(--r-sm); transition: color var(--t-2) var(--ease-soft); }
.crumbs a:hover { color: var(--heading); text-decoration: underline; text-underline-offset: 0.22em; }
.crumbs [aria-current="page"] { color: var(--heading); font-weight: 600; }

/* photo with a blob mask and a small sun peeking out behind it */
.page-hero__figure { position: relative; justify-self: end; width: min(100%, 560px); margin-block: calc(var(--s-5) * -1); }
.page-hero__figure .media { --ar: 5 / 4.6; }
.page-hero__sun { position: absolute; z-index: -1; top: -7%; right: -13%; width: 42%; }
.page-hero--sun .page-hero__sun { color: var(--white); }
/* no photo: a large quiet sun rises from the right edge */
.page-hero__rise {
  position: absolute;
  z-index: -1;
  right: clamp(-140px, -6vw, -40px);
  bottom: clamp(-200px, -12vw, -90px);
  width: clamp(280px, 34vw, 520px);
  color: var(--sun);
  pointer-events: none;
  /* r4: the hero clips the sun's lower half; melt it out before that edge so there is no hard cut line */
  -webkit-mask-image: linear-gradient(to top, transparent 0, transparent 34%, #000 62%);
  mask-image: linear-gradient(to top, transparent 0, transparent 34%, #000 62%);
}
.page-hero--sun .page-hero__rise { color: var(--white); opacity: 0.55; }
.page-hero--cream .page-hero__rise, .page-hero--peach .page-hero__rise { color: var(--sun); }
@media (max-width: 899.98px) {
  .page-hero__figure { justify-self: center; margin-block: 0; }
  .page-hero__rise { opacity: 0.5; }
}
/* touch: breadcrumb links get a 44px tall hit area without moving the row (padding out, margin back in) */
@media (max-width: 1023px), (max-width: 1279px) and (pointer: coarse) {
  .crumbs a { display: inline-block; padding-block: 12px; margin-block: -12px; }
}
/* phones: the rising sun sits low in the corner, small and quiet, so it never runs under the lead text */
@media (max-width: 599px) {
  .page-hero__rise { right: -56px; bottom: -112px; width: 180px; opacity: 0.4; }
  .page-hero::before { width: 80vw; top: -12%; right: -30%; }
}

/* r10: short breadcrumb names ("Perth") still get a 44px-wide tap area on touch screens */
@media (pointer: coarse) {
  .crumbs a { position: relative; }
  .crumbs a::after { content: ""; position: absolute; top: -12px; bottom: -12px; left: 50%; width: max(100%, 44px); transform: translateX(-50%); }
}

/* r11 phones: inner-page heroes centre (eyebrow, crumbs, title, lead, buttons, pills) like the rest of the phone layout */
@media (max-width: 599px) {
  .page-hero__copy { align-items: center; text-align: center; }
  .page-hero__title, .page-hero__lead { margin-inline: auto; }
  .page-hero__lead { text-wrap: balance; }
  .page-hero__actions, .page-hero__meta, .crumbs ol { justify-content: center; }
}

/* ==== components/review.css ==== */
/* review.css - parent review card.  {{ ui.reviewCard(review) }}
   Sources are named in plain text badges; third-party logos are never reproduced. */
.review {
  --card-gap: var(--s-5);
  height: 100%;
}
.review__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); min-height: 40px; }
.review__rating { display: grid; justify-items: end; gap: 6px; padding-block-start: 3px; }
.review__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
}
.review__mark .icon { width: 22px; height: 22px; fill: currentColor; stroke-width: 1.5; }
.review__quote {
  font-size: 1.125rem;   /* r4: quotes readable at 18px */
  line-height: 1.7;
  color: var(--text);
  quotes: "\201C" "\201D";
}
.review__quote > p + p { margin-top: 0.8em; }
.review__by {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-block-start: auto;
  padding-block-start: var(--s-6);
}
.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.review__who { display: grid; gap: 2px; min-width: 0; margin-inline-end: auto; line-height: 1.35; }
.review__author { font-weight: 700; color: var(--heading); }
.review__relation { font-size: var(--fs-small); color: var(--muted); }
.review__source {
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}

/* stars */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--sun-deep); line-height: 1; }
.stars .icon { width: 19px; height: 19px; vertical-align: 0; }
.stars__off { color: color-mix(in srgb, var(--heading) 14%, transparent); }
.stars--lg .icon { width: 24px; height: 24px; }
.stars--sm .icon { width: 16px; height: 16px; }

/* feature: one big pull quote (use once per page) */
.review--feature { --card-pad: clamp(28px, 3.4vw, 52px); border-radius: var(--r-xl); }
.review--feature .review__quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.8rem);
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--heading);
  text-wrap: balance;
}
.review--plain { padding: 0; background: none; box-shadow: none; }

/* ==== components/room-card.css ==== */
/* room-card.css - a playroom, tinted with its own colour.  {{ ui.roomCard(room, root) }}
   Any element can adopt a room's colours with data-room="baby|tweenies|twos|preschool" → --room / --room-soft. */
[data-room="baby"], .room-card--baby { --room: var(--room-baby); --room-soft: var(--room-baby-soft); }
[data-room="tweenies"], .room-card--tweenies { --room: var(--room-tweenies); --room-soft: var(--room-tweenies-soft); }
[data-room="twos"], .room-card--twos { --room: var(--room-twos); --room-soft: var(--room-twos-soft); }
[data-room="preschool"], .room-card--preschool { --room: var(--room-preschool); --room-soft: var(--room-preschool-soft); }
[data-room="afterschool"], .room-card--afterschool { --room: var(--room-afterschool); --room-soft: var(--room-afterschool-soft); }

.room-card {
  --card-pad: 10px;
  --card-gap: 0px;
  --card-bg: var(--room-soft, var(--cream));
  --card-shadow: 0 0 0 0 transparent;
  --card-shadow-hover: 0 26px 46px -22px color-mix(in srgb, var(--room, var(--navy)) 60%, transparent);
  height: 100%;
}
.room-card__media { --ar: 4 / 3; border-radius: calc(var(--r-lg) - 10px); }
.room-card__ages { position: absolute; z-index: 1; left: 12px; bottom: 12px; }
.room-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: var(--s-5) clamp(14px, 1.6vw, 22px) var(--s-4);
}
.room-card__name { font-size: clamp(1.45rem, 1.3rem + 0.6vw, 1.75rem); line-height: 1.18; letter-spacing: -0.016em; }
.room-card__blurb { font-size: 1rem; line-height: 1.65; color: var(--text); }
.room-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); }
.room-card__ratio { display: flex; align-items: baseline; gap: 0.5em; font-size: var(--fs-small); line-height: 1.35; color: var(--text); }
.room-card__ratio b { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.02em; color: var(--heading); font-variant-numeric: tabular-nums; }
.room-card__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  transition: background-color var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out), translate var(--t-2) var(--ease-spring);
}
.room-card__go .icon { width: 20px; height: 20px; }
@media (hover: hover) {
  .room-card.card--link:hover .room-card__go { background: var(--navy); color: var(--white); translate: 3px 0; }
}

/* ==== components/section-head.css ==== */
/* section-head.css - eyebrow + title + lead that opens a section.  {{ ui.sectionHead({ eyebrow, title, accent, lead, align }) }} */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  margin-block-end: clamp(var(--s-7), 5.2vw, 80px);
}
.section-head:last-child { margin-block-end: 0; }
.section-head__title { max-width: 22ch; font-size: var(--fs-h2); line-height: 1.12; }
.section-head__lead { margin-block-start: var(--s-2); max-width: 60ch; }
.section-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-block-start: var(--s-4); }
.section-head--center { align-items: center; text-align: center; margin-inline: auto; }
.section-head--center .section-head__title { max-width: 24ch; }
.section-head--tight { margin-block-end: var(--s-7); }
.section-head--wide .section-head__title { max-width: 28ch; }
/* split: title on the left, lead + action on the right (bottom-aligned) */
@media (min-width: 900px) {
  .section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(var(--s-6), 6vw, var(--s-9));
    align-items: end;
  }
  /* r4 polish: the aside spans the eyebrow row too and any extra height goes ABOVE the eyebrow, so eyebrow + title stay one unit
     (before, a tall aside pushed the title away from its eyebrow) */
  .section-head--split:has(> .eyebrow) { grid-template-rows: 1fr auto; }
  .section-head--split > .eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
  .section-head--split:has(> .eyebrow) .section-head__title { grid-row: 2; }
  .section-head--split:has(> .eyebrow) .section-head__aside { grid-row: 1 / span 2; }
  .section-head--split .section-head__title { grid-column: 1; }
  .section-head--split .section-head__aside { grid-column: 2; align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); padding-block-end: 0.35em; }
  .section-head--split .section-head__lead { margin-block-start: 0; }
  .section-head--split .section-head__actions { margin-block-start: 0; }
}
.section-head__aside { display: contents; }
@media (min-width: 900px) { .section-head--split .section-head__aside { display: flex; } }

/* r11 phones: the client asked for everything centred on the phone ("align all the text to the middle in the whole website"),
   so every section head (eyebrow, title, lead, actions) centres below 600px, whatever its desktop alignment. */
@media (max-width: 599.98px) {
  .section-head,
  .section-head--split { align-items: center; text-align: center; margin-inline: auto; }
  .section-head__title { margin-inline: auto; }
  .section-head__lead { margin-inline: auto; }
  .section-head__actions { justify-content: center; }
}

/* ==== components/stat.css ==== */
/* stat.css - big number + small label.  {{ ui.stat("51", "Weeks open every year") }} */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-width: 0;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.2rem, 1.6rem + 1.7vw, 3.25rem);   /* r4: r3 max 2.75rem */
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__affix { font-size: 0.5em; letter-spacing: -0.02em; margin-inline: 0.1em; }
.stat__label {
  max-width: 24ch;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}
/* long values ("12 wks - 5 yrs") get a calmer size and may wrap */
.stat--text .stat__value { font-size: clamp(1.55rem, 1.25rem + 0.9vw, 2.05rem); line-height: 1.12; letter-spacing: -0.02em; white-space: normal; text-wrap: balance; }
.stat--sm .stat__value { font-size: clamp(1.55rem, 1.3rem + 0.6vw, 1.9rem); letter-spacing: -0.02em; }
.stat--lg .stat__value { font-size: var(--fs-h1); }
.stat--center { align-items: center; text-align: center; }
.stat--sun .stat__value { color: var(--sun); }           /* on navy only */

/* a row of stats separated by soft lines */
.stats {
  --stats-gap: clamp(var(--s-5), 3vw, var(--s-7));
  --stats-min: 150px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--stats-min), 100%), 1fr));
  gap: var(--s-6) var(--stats-gap);
  overflow: hidden;                 /* clips the divider of the first stat in every row */
}
/* values share a baseline and labels a top edge, whatever their sizes */
.stats > .stat { position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: var(--s-3); }
.stats > .stat > .stat__value { align-self: end; }
.stats > .stat::before {
  content: "";
  position: absolute;
  inset-block: 2px;
  left: calc(var(--stats-gap) / -2);
  width: 1.5px;
  border-radius: 2px;
  background: var(--line);
}
.stats--plain > .stat::before { content: none; }

/* r11 phones: stats centre in their cells, like the rest of the phone layout */
@media (max-width: 599.98px) {
  .stat { align-items: center; text-align: center; }
  .stats > .stat { justify-items: center; }
  .stat__label { margin-inline: auto; }
}

/* ==== components/sticker.css ==== */
/* sticker.css - round, slightly rotated badge with optional text set on a circle.  {{ ui.sticker({ text: "Open 51 weeks a year", big: "51", small: "weeks" }) }} */
.sticker {
  --sticker-size: 128px;   /* r4: r3 116, r2 136 */
  --sticker-bg: var(--sun);
  --sticker-fg: var(--navy);
  --sticker-tilt: -9deg;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--sticker-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sticker-bg);
  color: var(--sticker-fg);
  rotate: var(--sticker-tilt);
  box-shadow: var(--shadow-2);
  text-align: center;
  text-decoration: none;
  isolation: isolate;
}
.sticker__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: rotate var(--t-5) var(--ease-out);
}
.sticker__ring text {
  fill: currentColor;
  font-family: var(--font-body);
  font-size: 10.6px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sticker__center {
  display: grid;
  justify-items: center;
  gap: 0.1em;
  max-width: 58%;
  line-height: 1;
}
.sticker__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(var(--sticker-size) * 0.3);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.sticker__big--long { font-size: calc(var(--sticker-size) * 0.215); letter-spacing: -0.045em; }
.sticker--plain .sticker__big--long { font-size: calc(var(--sticker-size) * 0.26); }
.sticker__small {
  font-size: calc(var(--sticker-size) * 0.095);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.sticker__center .icon, .sticker__center .sun { width: calc(var(--sticker-size) * 0.34); height: auto; }
/* without ring text the centre can use the whole disc */
.sticker--plain .sticker__center { max-width: 78%; }
.sticker--plain .sticker__big:not(.sticker__big--long) { font-size: calc(var(--sticker-size) * 0.34); }
.sticker--plain .sticker__small { font-size: calc(var(--sticker-size) * 0.115); }

.sticker--sm { --sticker-size: 100px; }
.sticker--lg { --sticker-size: 160px; }
.sticker--red { --sticker-bg: var(--red); --sticker-fg: var(--white); }
.sticker--navy { --sticker-bg: var(--navy); --sticker-fg: var(--white); }
.sticker--navy .sticker__big { color: var(--sun); }
.sticker--white { --sticker-bg: var(--white); --sticker-fg: var(--navy); }
.sticker--peach { --sticker-bg: var(--peach); }
.sticker--tilt-right { --sticker-tilt: 8deg; }
.sticker--flat { box-shadow: none; }
@media (hover: hover) {
  .sticker:hover .sticker__ring { rotate: 40deg; }
}

/* ==== components/sticky-steps.css ==== */
/* sticky-steps.css - pinned media column + scrolling text steps.
   Hooks: --steps-media (media column share, default 46%), --steps-gap, --steps-top (sticky offset),
          --steps-min (min height of one step, default 62vh), --steps-ar (media aspect ratio).
   The rail reads --step-progress (set by JS). */
.sticky-steps {
  --steps-media: 46%;
  --steps-gap: clamp(32px, 6vw, 96px);
  --steps-top: calc(var(--header-h) + var(--header-top) + var(--s-6));
  --steps-min: 62vh;
  --steps-ar: 4 / 5;
  --step-progress: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--steps-media)) minmax(0, 1fr);
  column-gap: var(--steps-gap);
  align-items: start;
}
.sticky-steps--reverse .sticky-steps__media { order: 2; }

.sticky-steps__media {
  position: sticky;
  top: var(--steps-top);
  align-self: start;
}
.sticky-steps__frame {
  position: relative;
  display: grid;
  aspect-ratio: var(--steps-ar);
  max-height: calc(100dvh - var(--steps-top) - var(--s-6));
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}
.sticky-steps__visual {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 520ms var(--ease-soft), transform 900ms var(--ease-out);
}
.sticky-steps__visual > :is(img, svg, picture, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.sticky-steps__visual picture > img { width: 100%; height: 100%; object-fit: cover; }
.sticky-steps__visual.is-active { opacity: 1; transform: none; z-index: 1; }
/* before JS marks anything: show the first visual */
.sticky-steps:not(.is-ready) .sticky-steps__visual:first-child { opacity: 1; transform: none; }

.sticky-steps > .sticky-steps__list {      /* (two classes: base.css resets padding on ul[class] / ol[class]) */
  --steps-indent: clamp(28px, 3vw, 44px);
  position: relative;
  display: grid;
  margin: 0;
  padding: 0 0 0 var(--steps-indent);
  list-style: none;
  counter-reset: step;
}
/* rail: a quiet line that fills as you move through the steps */
.sticky-steps__list::before,
.sticky-steps__list::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--steps-min) / 2);
  bottom: calc(var(--steps-min) / 2);
  width: 3px;
  border-radius: var(--r-pill);
  background: var(--line);
}
.sticky-steps__list::after {
  background: var(--red);
  transform-origin: 50% 0;
  transform: scaleY(var(--step-progress));
}
.sticky-steps__step {
  position: relative;
  display: grid;
  align-content: center;
  gap: var(--s-3);
  min-height: var(--steps-min);
  padding-block: var(--s-6);
  counter-increment: step;
  opacity: 0.32;
  transition: opacity 420ms var(--ease-soft);
}
.sticky-steps__step.is-active,
.sticky-steps:not(.is-ready) .sticky-steps__step { opacity: 1; }
/* dot on the rail */
.sticky-steps__step::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--steps-indent) - 6px);
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 3px var(--line-strong);
  transition: box-shadow var(--t-2) ease, background-color var(--t-2) ease, transform var(--t-3) var(--ease-spring);
}
.sticky-steps__step.is-past::before { background: var(--red); box-shadow: inset 0 0 0 3px var(--red); }
.sticky-steps__step.is-active::before { background: var(--sun); box-shadow: inset 0 0 0 3px var(--red); transform: scale(1.35); }
.sticky-steps__kicker {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sticky-steps__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--heading);
}
.sticky-steps__text { max-width: 46ch; color: var(--text); }
/* each step may carry its own inline visual for narrow screens / no sticky */
.sticky-steps__inline { display: none; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.sticky-steps__inline > :is(img, svg, picture) { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .sticky-steps { grid-template-columns: minmax(0, 1fr); }
  .sticky-steps__media { display: none; }
  .sticky-steps__inline { display: block; }
  .sticky-steps__step { min-height: 0; opacity: 1; padding-block: var(--s-5); }
  .sticky-steps__list::before, .sticky-steps__list::after { top: var(--s-6); bottom: var(--s-6); }
  .sticky-steps__step::before { top: calc(var(--s-5) + 0.6em); margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-steps__visual { transition: opacity 200ms ease; transform: none; }
  .sticky-steps__step { transition: none; opacity: 1; }
  .sticky-steps__step::before { transition: none; }
}
@media print {
  .sticky-steps__step { opacity: 1; min-height: 0; }
}

/* r11 phones: the steps centre. The rail down the left gives way to each step's own dot, centred above its words; the dot
   still fills as the step becomes active and stays filled once passed, so the progress cue is kept. */
@media (max-width: 599.98px) {
  .sticky-steps > .sticky-steps__list { padding-inline-start: 0; }
  .sticky-steps__list::before, .sticky-steps__list::after { display: none; }
  .sticky-steps__step { justify-items: center; text-align: center; }
  .sticky-steps__step::before { position: static; justify-self: center; margin: 0 0 var(--s-1); }
  .sticky-steps__inline { justify-self: stretch; }
  .sticky-steps__text { margin-inline: auto; }
}

/* ==== components/sun.css ==== */
/* sun.css - the brand sun (partials/sun.njk).  Rays and core are separate groups so the rays can turn on their own. */
:where(.sun) {
  display: block;
  width: var(--sun-size, 100%);   /* zero specificity: your own class may set width / color directly */
  height: auto;
  color: var(--sun);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
:where(.sun--full, .sun--rays, .sun--dot) { aspect-ratio: 1; overflow: visible; }
.sun .sun__rays, .sun .sun__core,
[data-sun-spin] .sun .sun__rays, [data-sun-spin].sun .sun__rays {
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.sun.sun--half .sun__rays, .sun.sun--half .sun__core,
[data-sun-spin] .sun.sun--half .sun__rays, [data-sun-spin].sun.sun--half .sun__rays { transform-origin: 50% 92.6%; }   /* the sun's centre sits at y=100 of the 108-tall half viewBox */
/* colours */
.sun--deep { color: var(--sun-deep); }
.sun--soft { color: var(--sun-soft); }
.sun--white { color: var(--white); }
.sun--navy { color: var(--navy); }
.sun--orange { color: var(--orange); }
.sun--peach { color: var(--peach); }
.sun--inherit { color: inherit; }
/* inline bullet sun, sized by the text */
:where(.sun--dot) { display: inline-block; width: var(--sun-size, 1.1em); vertical-align: -0.18em; }
/* soft glow behind a hero sun */
.sun--glow { filter: drop-shadow(0 0 calc(var(--sun-glow, 48px)) color-mix(in srgb, var(--sun) 55%, transparent)); }
/* optional slow idle turn (the only endless loop besides the marquee); stops for reduced motion and when not hovered-over content needs calm */
.sun--turn .sun__rays { animation: bs-sun-turn 80s linear infinite; }
.sun--turn.sun--fast .sun__rays { animation-duration: 36s; }
@keyframes bs-sun-turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .sun--turn .sun__rays { animation: none; } }
/* playful hello on hover-capable parents: add .sun-hello to a link/button that contains a sun */
@media (hover: hover) {
  .sun-hello .sun__rays { transition: rotate var(--t-4) var(--ease-spring); }
  .sun-hello:hover .sun__rays { rotate: 32deg; }
}

/* ==== components/table.css ==== */
/* table.css - clean fee table.  <div class="table-wrap"><table class="table"> … <td class="table__num">£35</td> … </table></div>
   Desktop first: under ~640px the wrapper scrolls sideways (a soft fade hints at more). */
.table-wrap {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.table caption {
  caption-side: top;
  padding: var(--s-5) var(--s-6) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--display-weight);
  letter-spacing: -0.015em;
  color: var(--heading);
}
.table th, .table td {
  padding: 20px var(--s-5);
  text-align: left;
  vertical-align: middle;
  line-height: 1.35;
}
.table :is(th, td):first-child { padding-inline-start: clamp(var(--s-5), 2.6vw, 36px); }
.table :is(th, td):last-child { padding-inline-end: clamp(var(--s-5), 2.6vw, 36px); }
.table thead th {
  padding-block: 18px 14px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.table tbody :is(th, td) { border-top: 1.5px solid var(--line); }
.table tbody th, .table__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--heading);
}
.table__sub { display: block; margin-top: 2px; font-family: var(--font-body); font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.table__num, .table :is(th, td).table__num { text-align: right; white-space: nowrap; }
.table__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--display-weight);
  letter-spacing: -0.03em;
  color: var(--heading);
}
.table tbody tr { transition: background-color var(--t-2) var(--ease-soft); }
@media (hover: hover) { .table tbody tr:hover { background-color: color-mix(in srgb, var(--sun-mist) 70%, transparent); } }
/* highlighted row, e.g. the most popular session */
.table tr.is-featured { background-color: var(--sun-mist); }
.table tfoot td { border-top: 1.5px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.table--compact :is(th, td) { padding-block: 14px; }
.table--flat { min-width: 0; }
.table-wrap--flat { background: none; box-shadow: none; border-radius: 0; }

/* ==== components/tabs.css ==== */
/* tabs.css - pill tabs with a sliding selection and cross-fading panels.
   Hooks: --tabs-bg (rail), --tabs-fg (idle label), --tabs-active-bg / --tabs-active-fg (the pill), --tabs-gap (rail → panels).
   Modifiers: .tabs--center (centre the rail), .tabs--stretch (tabs share the full width). */
.tabs {
  --tabs-bg: color-mix(in srgb, var(--heading) 7%, transparent);
  --tabs-fg: var(--heading);
  --tabs-active-bg: var(--navy);
  --tabs-active-fg: var(--white);
  --tabs-gap: var(--s-6);
  display: grid;
  gap: var(--tabs-gap);
  min-width: 0;
}
.section--navy .tabs, .on-navy .tabs { --tabs-active-bg: var(--white); --tabs-active-fg: var(--navy); }

.tabs__nav {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* room for focus rings that would otherwise be clipped by the scroller */
  margin: -8px;
  padding: 8px;
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs--center .tabs__nav { justify-self: center; }

.tabs__list {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--tabs-bg);
  vertical-align: top;
}
.tabs--stretch .tabs__nav { justify-self: stretch; }
.tabs--stretch .tabs__list { display: flex; }
.tabs--stretch .tabs__tab { flex: 1 1 0; }

.tabs__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: 0 clamp(16px, 1.6vw, 24px);
  border-radius: var(--r-pill);
  color: var(--tabs-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-2) ease, scale var(--t-1) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tabs__list > .tabs__tab:not(.is-active):hover { background-color: color-mix(in srgb, var(--heading) 7%, transparent); }
}
.tabs__list > .tabs__tab:active { scale: 0.97; }
.tabs__list > .tabs__tab:focus-visible { border-radius: var(--r-pill); }

/* before JS (and without it) the active tab is a plain filled pill */
.tabs:not(.is-ready) .tabs__list > .tabs__tab.is-active { background: var(--tabs-active-bg); color: var(--tabs-active-fg); }

/* the pill: a "selected" copy of the rail, clipped to the active tab. Only clip-path animates. */
.tabs__ghost {
  position: absolute;
  inset: 0;
  display: inherit;
  gap: inherit;
  padding: inherit;
  border-radius: inherit;
  background: var(--tabs-active-bg);
  pointer-events: none;
  clip-path: inset(0 100% 0 0 round 999px);
  transition: clip-path 260ms var(--ease-out);
  will-change: clip-path;
}
.tabs__ghost.is-instant { transition: none; }
.tabs__ghost .tabs__tab { color: var(--tabs-active-fg); }
.tabs--stretch .tabs__ghost .tabs__tab { flex: 1 1 0; }

/* panels share one grid cell so they can cross-fade */
.tabs__panels { display: grid; min-width: 0; }
.tabs__panel { grid-area: 1 / 1; min-width: 0; }
.tabs__panel.is-leaving { pointer-events: none; }
.tabs__panel:focus-visible { border-radius: var(--r-md); }
/* with JS on, only the active panel shows from the first paint; without JS they are stacked and all readable */
html.js .tabs:not(.is-ready) .tabs__panel:not(.is-active) { display: none; }
html:not(.js) .tabs__panels { gap: var(--s-7); }
html:not(.js) .tabs__panel { grid-area: auto; }

@media (prefers-reduced-motion: reduce) {
  .tabs__ghost { transition: none; }
}

/* ==== components/toast.css ==== */
/* toast.css - small confirmations, stacked bottom-centre. Created by BS.toast(). */
.toasts {
  position: fixed;
  left: 50%;
  bottom: max(var(--s-5), env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  width: max-content;
  max-width: calc(100vw - 2 * var(--s-4));
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  max-width: min(520px, 100%);
  min-height: 48px;
  padding: var(--s-3) var(--s-5) var(--s-3) var(--s-4);
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-3), inset 0 0 0 1px color-mix(in srgb, var(--white) 18%, transparent);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(100%) scale(0.96);
  transition: opacity 400ms ease, transform 400ms ease;
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(40%) scale(0.96); transition-duration: 240ms; }
.toast__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.toast--success .toast__dot { background: var(--leaf); }
.toast--error .toast__dot { background: var(--red); }
/* preview builds: sit above the Design Lab picker (bottom-centre) */
:root:has([data-lab]:not([hidden])) .toasts { bottom: 84px; }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; transform: none; }
}

/* ==== components/tooltip.css ==== */
/* tooltip.css - the shared bubble for [data-tooltip]. */
[data-tooltip]:not(a):not(button):not(input):not(select):not(textarea) { cursor: help; }
.tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: var(--z-toast);
  width: max-content;
  max-width: min(300px, calc(100vw - 16px));
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 125ms var(--ease-out), transform 125ms var(--ease-out);
}
.tooltip.is-in { opacity: 1; transform: none; }
.tooltip.is-instant { transition: none; }
@media (prefers-reduced-motion: reduce) { .tooltip { transition: none; transform: none; } }

/* ==== components/typography.css ==== */
/* typography.css - eyebrow, display + heading classes, lead, accent word, marker highlight, prose, small lists. */

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--heading) 70%, transparent);
  text-wrap: balance;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-inline-start: 3px;
  border-radius: 50%;
  background: var(--ctx-dot, var(--sun));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ctx-dot, var(--sun)) 32%, transparent);
}
.eyebrow--plain::before { content: none; }
.eyebrow--accent { color: var(--ctx-link, color-mix(in srgb, var(--accent) 88%, var(--navy-deep))); }

/* ---------- display & heading classes (use on any element) ---------- */
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  color: var(--heading);
  text-wrap: balance;
}
.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: var(--display-tracking);
}
.h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--display-tracking); }
.h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: var(--display-tracking); }
.h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.016em; }
.h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; }

/* ---------- lead, small print ---------- */
.lead {
  max-width: 60ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}
.text-center > .lead, .lead.text-center { margin-inline: auto; }
.small { font-size: var(--fs-small); line-height: 1.6; }
.micro { font-size: var(--fs-micro); line-height: 1.5; }
.caption { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }

/* ---------- accent: ONE italic serif word (or short phrase) per headline ---------- */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.04em;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 100;
  color: var(--ctx-accent, var(--accent));
  padding-inline-end: 0.04em;       /* keeps the italic overhang inside reveal masks */
}
.accent--ink { color: inherit; }
.accent--sun { color: var(--sun); }  /* only on navy or over photos */

/* ---------- mark: sun marker swipe behind a word or short phrase ---------- */
.mark {
  --mark: var(--sun);
  position: relative;
  z-index: 0;
  display: inline-block;
  padding-inline: 0.12em;
  margin-inline: -0.04em;
  color: var(--navy);
  white-space: nowrap;
  background: none;
}
.mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.14em -0.06em 0.04em;
  border-radius: 0.5em 0.28em 0.6em 0.3em / 0.36em 0.6em 0.32em 0.55em;
  background: var(--mark);
  transform: rotate(-1.4deg);
}
.mark--low::before { inset-block-start: 52%; }          /* highlighter under the lower half only */
.mark--peach { --mark: var(--peach); }
.mark--soft { --mark: var(--sun-soft); }
.mark--white { --mark: var(--white); }

/* ---------- small content lists ---------- */
.list-sun, .list-check { display: grid; gap: var(--s-3); }
.list-sun > li, .list-check > li { position: relative; padding-inline-start: 2.1em; }
.list-sun > li::before, .prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.26em;
  width: 1.1em;
  height: 1.1em;
  background: var(--sun-deep);
  -webkit-mask: var(--bullet-sun) center / contain no-repeat;
  mask: var(--bullet-sun) center / contain no-repeat;
}
.list-check > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: var(--sun);
}
.list-check > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 1.35em;
  height: 1.35em;
  background: var(--navy);
  -webkit-mask: var(--bullet-check) center / 62% no-repeat;
  mask: var(--bullet-check) center / 62% no-repeat;
}
.list-check--2 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); column-gap: var(--s-6); }
:root {
  --bullet-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.9'/%3E%3Cpath d='M12.3 3.9L12.4 1.4M16.9 5.5L18.1 3.9M20 11L22.6 10.7M19.2 15.8L21 16.8M14.2 19.8L14.9 22.2M9.6 19.7L9 21.7M4.8 15.8L2.6 17M3.9 11.2L1.9 10.9M7.1 5.5L5.7 3.6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --bullet-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4.5 12.8 5 5L19.5 7' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- prose: long-form text ---------- */
.prose { max-width: 62ch; color: var(--text); }
.prose > * + * { margin-block-start: 1.15em; }
.prose > :first-child { margin-block-start: 0; }
.prose h2 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.016em; margin-block-start: 2.1em; }
.prose h3 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; margin-block-start: 1.9em; }
.prose h4 { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 700; letter-spacing: 0; margin-block-start: 1.7em; }
.prose :is(h2, h3, h4) + * { margin-block-start: 0.6em; }
.prose a:not([class]) {
  color: var(--heading);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: var(--ctx-dot, var(--accent));
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
}
.prose a:not([class]):hover { color: var(--ctx-link, var(--accent)); }
.prose ul, .prose ol { list-style: none; padding: 0; display: grid; gap: 0.6em; }
.prose li { position: relative; padding-inline-start: 2.1em; }
.prose ol { counter-reset: prose; }
.prose ol > li { counter-increment: prose; }
.prose ol > li::before {
  content: counter(prose);
  position: absolute;
  left: 0;
  top: 0.12em;
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--sun-soft);
  color: var(--navy);
  font-size: 0.82em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.prose li > :is(ul, ol) { margin-block-start: 0.6em; }
.prose blockquote {
  position: relative;
  margin-block: 1.8em;
  padding-inline-start: 1.5em;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--fs-lead);
  font-variation-settings: "SOFT" 100;
  line-height: 1.5;
  color: var(--heading);
}
.prose blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  border-radius: var(--r-pill);
  background: var(--sun);
}
.prose blockquote cite, .prose blockquote footer {
  display: block;
  margin-block-start: 0.7em;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}
.prose hr { margin-block: 2.2em; }
.prose img, .prose .media { border-radius: var(--r-lg); margin-block: 1.8em; }
.prose figcaption { margin-block-start: 0.7em; font-size: var(--fs-small); color: var(--muted); }
.prose--wide { max-width: 74ch; }
.prose--center { margin-inline: auto; }

/* r11 phones: inside a centred block, small lists centre as a block but keep their text left, so the bullets and ticks
   still line up one under another */
@media (max-width: 599.98px) {
  /* an eyebrow that wraps to two lines keeps its dot beside the first word (it used to sit out at the far left of the
     full-width box once the text was centred) */
  .eyebrow { display: inline-block; }
  .eyebrow::before { display: inline-block; margin-inline-end: 0.75em; vertical-align: 0.12em; }
  .list-sun, .list-check { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
}

/* ==== sections/about-a.css ==== */
/* about-a.css - About Bright Starts (group page), part 1 (builder about-a), round 4 "zoom out, don't squash".
   r6: one layout per section, no option groups: mission (Navy photo), what we do (Green bento), what we follow (Framework cards),
   numbers (Big and calm). Markup: src/sections/about/{mission-m6,provision-p5,follow-w4,stats-s5}.njk, included from src/pages/about.njk.
   Type: body copy 17px / 1.7, card titles ≥ 20px, labels 13px; consistent card padding (32-48px) and gaps (24-32px). */

/* ---------- page-scoped deep green (the client's hubbatraining green, used for the bento's intro tile only) ---------- */
.page-about {
  --about-green: #0B3A29;
  --about-green-glow: #155C40;
}
.about-on-green {
  --heading: var(--white);
  --text: color-mix(in srgb, var(--white) 86%, var(--about-green));
  --muted: color-mix(in srgb, var(--white) 66%, var(--about-green));
  --line: color-mix(in srgb, var(--white) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--white) 28%, transparent);
  --ctx-fg: var(--white);
  --ctx-inverse: var(--about-green);
  --ctx-ring: color-mix(in srgb, var(--white) 36%, transparent);
  --ctx-link: var(--white);
  --ctx-sun-bg: initial;
  --ctx-dot: var(--sun);
  --ctx-accent: var(--sun);
  color: var(--text);
}

/* photos that fill a box: the box, not the photo's own aspect ratio, decides the size */
.about-m6__photo, .about-p5__intro-photo, .about-p5__key-photo, .about-p5__out-photo { aspect-ratio: auto; }
:is(.about-m6__photo, .about-p5__intro-photo, .about-p5__key-photo, .about-p5__out-photo) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 50%);
}

/* ============================================================ mission · Navy photo (the only layout) ============================================================
   The mission on a navy panel whose right half is a sharp real photo melting into the navy. r4: more room for the words
   (wider column, calmer statement size, 1.7 line-height), a taller panel, the photo requested at ≥ 1.5× its size. */
.about-m6__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 560px;
  border-radius: var(--r-xl);
  background: var(--navy);
  box-shadow: var(--shadow-2);
}
.about-m6__photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 50%;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.55) 18%, #000 36%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.55) 18%, #000 36%);
}
.about-m6__copy {
  display: grid;
  gap: var(--s-5);
  align-content: center;
  justify-items: start;
  padding: clamp(var(--s-8), 6vw, 88px) var(--s-7) clamp(var(--s-8), 6vw, 88px) clamp(var(--s-7), 5.6vw, 80px);
}
.about-m6__statement {
  max-width: 19em;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.15rem + 1.25vw, 2.35rem);
  font-weight: var(--display-weight);
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--white);
  text-wrap: balance;
}
.about-m6__lead { max-width: 42ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--white); }
.about-m6__more { max-width: 46ch; font-size: var(--fs-body); line-height: 1.7; }

/* ============================================================ what we do · Green bento (the only layout) ============================================================ */
.about-p5__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(252px, 1fr));
  gap: var(--s-5);
}
.about-p5__intro {
  grid-column: 1 / 6;
  grid-row: 1 / 4;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(var(--s-6), 3.4vw, var(--s-7));
  border-radius: var(--r-xl);
  background: var(--about-green);
}
.about-p5__intro-copy { display: grid; gap: var(--s-5); justify-items: start; }
.about-p5__intro-copy .h2 { max-width: 13ch; }
.about-p5__lead { max-width: 44ch; font-size: var(--fs-body); line-height: 1.7; }
.about-p5__intro-photo {
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  height: 48%;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 55%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 55%);
}
.about-p5__intro-foot {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  align-self: flex-start;
  margin-block-start: auto;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--navy);
}
.about-p5__intro-foot .icon { color: var(--red); }
.about-p5__tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-6) 36px;
  border-radius: var(--r-lg);
  background: var(--white);
}
.about-p5__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-block-end: auto; border-radius: 50%; background: var(--white); color: var(--navy); }
.about-p5__icon .icon { width: 22px; height: 22px; }
.about-p5__name { margin-block-start: var(--s-5); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.005em; color: var(--heading); text-wrap: balance; }
.about-p5__text { font-size: var(--fs-body); line-height: 1.6; max-width: 34ch; }
.about-p5__tile--play { grid-column: 6 / 9; grid-row: 1; background: var(--sun); }
.about-p5__tile--play .about-p5__text { color: var(--navy); }
/* the keyworker tile: a real photo fills its left part, edge to edge (no small thumbnail) */
.about-p5__tile--key { grid-column: 9 / 13; grid-row: 1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 0; padding: 0; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.about-p5__tile--key > div:last-child { display: flex; flex-direction: column; gap: var(--s-2); justify-content: flex-end; padding: var(--s-6) 28px var(--s-6) var(--s-5); }
.about-p5__tile--key .about-p5__icon { display: none; }
.about-p5__tile--key .about-p5__name { margin-block-start: 0; }
.about-p5__key-photo { height: 100%; border-radius: 0; }
.about-p5__tile--out { grid-column: 6 / 10; grid-row: 2; justify-content: flex-end; background: var(--navy); }
.about-p5__out-photo { position: absolute; inset: 0; border-radius: 0; }
.about-p5__out-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--navy-deep) 84%, transparent) 0, color-mix(in srgb, var(--navy-deep) 30%, transparent) 55%, transparent 80%); }
.about-p5__out-copy { position: relative; display: grid; gap: var(--s-2); }
.about-p5__tile--out .about-p5__name { margin: 0; color: var(--white); }
.about-p5__tile--out .about-p5__text { color: var(--white); }
.about-p5__tile--meals { grid-column: 10 / 13; grid-row: 2; background: var(--peach); }
.about-p5__tile--famly { grid-column: 6 / 10; grid-row: 3; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: var(--s-3); padding-block-end: 0; padding-inline-end: var(--s-5); background: var(--leaf-soft); }
.about-p5__tile--famly > div:first-child { display: flex; flex-direction: column; gap: var(--s-2); padding-block-end: var(--s-6); }
.about-p5__phones { align-self: end; width: 132px; }   /* polish: a touch larger (the file is 240px wide, still ≥1.8×) */
.about-p5__phones img { display: block; width: 100%; height: auto; }
.about-p5__tile--safe { grid-column: 10 / 13; grid-row: 3; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.about-p5__tile--safe .about-p5__icon { background: var(--navy); color: var(--sun); }

/* ============================================================ what we follow · shared ============================================================ */
.about-w4__card--sun { --tone-bg: var(--sun-mist); --tone-ink: var(--sun); }
.about-w4__card--peach { --tone-bg: color-mix(in srgb, var(--peach) 38%, var(--white)); --tone-ink: var(--peach); }
.about-w4__card--leaf { --tone-bg: color-mix(in srgb, var(--leaf-soft) 70%, var(--white)); --tone-ink: color-mix(in srgb, var(--leaf) 38%, var(--white)); }

/* ============================================================ what we follow · Framework cards (the only layout) ============================================================ */
.about-w4__head {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  max-width: 780px;
  margin: 0 auto clamp(var(--s-7), 5vw, 72px);
  text-align: center;
}
.about-w4__lead { max-width: 50ch; font-size: var(--fs-lead); line-height: 1.6; }
.about-w4__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); gap: 0 var(--s-6); }
/* r5 "more oomph": each card opens with a real photo (tag on it, icon overlapping its foot), then name, sentence, an
   "In our nurseries" note and the key words; rows are shared (subgrid) so the parts line up across the three cards */
.about-w4__card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: var(--s-4);
  padding: 12px 12px 40px;
  border-radius: var(--r-xl);
  background: var(--tone-bg);
  transition: translate var(--t-3) var(--ease-out), box-shadow var(--t-3) ease;
}
.about-w4__card:hover { translate: 0 -4px; box-shadow: var(--shadow-2); }
.about-w4__card > :not(.about-w4__visual) { margin-inline: 28px; }
.about-w4__visual { position: relative; margin-block-end: var(--s-4); }
.about-w4__photo { --ar: 16 / 10; border-radius: calc(var(--r-xl) - 10px); }
.about-w4__tag {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.about-w4__icon {
  position: absolute;
  left: 28px;
  bottom: -28px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--tone-ink);
  color: var(--navy);
  box-shadow: 0 0 0 6px var(--tone-bg);
}
.about-w4__icon .icon { width: 26px; height: 26px; }
.about-w4__name { padding-block-start: var(--s-3); font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.008em; color: var(--heading); text-wrap: balance; }
.about-w4__text { font-size: var(--fs-body); line-height: 1.7; }
.about-w4__practice { display: grid; align-content: start; gap: var(--s-2); padding: 20px 24px 22px; border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-1); }
.about-w4__practice-label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-text); }
.about-w4__practice-label .icon { width: 15px; height: 15px; }
.about-w4__practice-text { font-size: 1rem; line-height: 1.65; color: var(--text); }
.about-w4__words { display: grid; align-content: start; gap: var(--s-3); margin-block-start: var(--s-2); }
.about-w4__words-label { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.about-w4__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.about-w4__chips li { padding: 6px 14px; border-radius: var(--r-pill); background: var(--white); font-size: var(--fs-small); font-weight: 600; line-height: 1.4; color: var(--heading); }
@media (prefers-reduced-motion: reduce) { .about-w4__card { transition: none; } .about-w4__card:hover { translate: none; } }

/* ============================================================ numbers · Big and calm (the only layout) ============================================================ */
.about-s5 .container { display: grid; justify-items: center; }
.about-s5__eyebrow { margin-block-end: clamp(var(--s-7), 5vw, 72px); }
.about-s5__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7); width: 100%; text-align: center; }
.about-s5__item { display: grid; justify-items: center; align-content: start; gap: var(--s-5); }
.about-s5__value {
  position: relative;
  padding-block-end: 26px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 1.8rem + 3vw, 4.75rem);
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}
.about-s5__value .about-stats__num { vertical-align: top; line-height: 1; }
.about-s5__value::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 8px;
  translate: -50% 0;
  border-radius: var(--r-pill);
  background: var(--sun);
}
.about-s5__item:nth-child(2) .about-s5__value::after { background: var(--orange); }
.about-s5__item:nth-child(3) .about-s5__value::after { background: var(--leaf); }
.about-s5__item:nth-child(4) .about-s5__value::after { background: var(--sky); }
.about-s5__item:nth-child(2) .about-s5__label { max-width: 24ch; }
.about-s5__label { max-width: 19ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--text); text-wrap: balance; }
.about-s5__names { width: 100%; margin-block-start: clamp(var(--s-8), 6vw, var(--s-9)); padding-block-start: var(--s-7); border-top: 1px solid var(--line); }
.about-s5__names ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) 0; }
.about-s5__names li { display: inline-flex; align-items: center; }
.about-s5__names li + li::before { content: ""; width: 6px; height: 6px; margin-inline: var(--s-5); border-radius: 50%; background: var(--sun-deep); }
.about-s5__names a { font-size: var(--fs-body); font-weight: 600; color: var(--muted); text-decoration: none; transition: color var(--t-2) ease; }
@media (hover: hover) and (pointer: fine) {
  .about-s5__names a:hover { color: var(--heading); }
}

/* ============================================================ r9 mobile + tablet pass (≤1279px only; desktop untouched) ============================================================ */
@media (max-width: 1279px) {
  .about-s5__row { gap: var(--s-6); }
  .about-s5__value { font-size: clamp(2.5rem, 1.1rem + 3.6vw, 4.75rem); }
}

/* tablet: the bento becomes six columns (the green intro across the top, the tiles two by two, the photo tiles wide) */
@media (max-width: 1099px) {
  .about-p5__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(240px, auto); grid-auto-flow: row dense; gap: var(--s-4); }
  .about-p5__grid > * { grid-row: auto; }
  .about-p5__intro { grid-column: 1 / -1; min-height: 520px; }
  .about-p5__intro-copy { max-width: 36rem; }
  .about-p5__intro-photo { height: 52%; }
  .about-p5__tile--play, .about-p5__tile--out, .about-p5__tile--meals, .about-p5__tile--safe { grid-column: span 3; }
  .about-p5__tile--key, .about-p5__tile--famly { grid-column: 1 / -1; }
  .about-p5__tile--key { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); min-height: 280px; }
  .about-p5__tile--out { min-height: 300px; }
  .about-p5__text { max-width: 46ch; }
}

/* below 900px: mission photo above the words; frameworks one card per row; numbers two by two */
@media (max-width: 899px) {
  .about-m6__panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .about-m6__photo {
    position: relative;
    z-index: 0;
    inset: auto;
    height: clamp(240px, 46vw, 360px);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .about-m6__copy { margin-block-start: -20px; padding: 0 clamp(24px, 6vw, 48px) clamp(40px, 7vw, 56px); }
  .about-m6__statement { max-width: none; font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2rem); }

  .about-w4__head { margin-block-end: var(--s-7); }
  .about-w4__cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: var(--s-5); max-width: 640px; margin-inline: auto; }
  .about-w4__card { grid-row: auto; grid-template-rows: none; padding-block-end: 32px; }
  .about-w4__photo { --ar: 16 / 9; }

  .about-s5__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
  .about-s5__item { gap: var(--s-4); }
  .about-s5__value { font-size: clamp(2.4rem, 1.2rem + 5vw, 3.6rem); padding-block-end: 20px; }
  .about-s5__value::after { width: 48px; height: 6px; }
  .about-s5__label { font-size: var(--fs-body); }
  .about-s5__names a { display: inline-block; min-width: 44px; padding-block: 11px; }
  .about-s5__names ul { gap: 0; }
  .about-s5__names li + li::before { margin-inline: 14px; }
}

/* phones: everything in one column */
@media (max-width: 639px) {
  .about-m6__copy { gap: var(--s-4); }
  .about-p5__grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .about-p5__grid > * { grid-column: 1 / -1; }
  .about-p5__intro { min-height: 0; padding: 32px 24px 24px; }
  .about-p5__intro-copy { padding-block-end: 210px; }
  .about-p5__intro-photo { height: 300px; }
  .about-p5__tile { padding: 28px 24px; }
  .about-p5__tile--play, .about-p5__tile--meals, .about-p5__tile--safe { min-height: 0; }
  .about-p5__tile--play .about-p5__icon, .about-p5__tile--meals .about-p5__icon, .about-p5__tile--safe .about-p5__icon { margin-block-end: 0; }
  .about-p5__tile--key { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .about-p5__key-photo { height: auto; aspect-ratio: 16 / 10; }
  .about-p5__key-photo img { object-position: 70% 40%; }
  .about-p5__tile--key > div:last-child { padding: 24px 24px 28px; }
  .about-p5__tile--out { min-height: 280px; }
  .about-p5__tile--famly { grid-template-columns: minmax(0, 1fr) 96px; padding: 28px 16px 0 24px; }
  .about-p5__tile--famly > div:first-child { padding-block-end: 28px; }
  .about-p5__phones { width: 96px; }
  .about-p5__name { font-size: 1.25rem; }

  .about-w4__card { padding: 10px 10px 28px; }
  .about-w4__card > :not(.about-w4__visual) { margin-inline: 16px; }
  .about-w4__icon { left: 18px; width: 54px; height: 54px; bottom: -26px; }
  .about-w4__name { font-size: 1.35rem; }
  .about-w4__practice { padding: 18px 18px 20px; }
  .about-w4__chips li { padding: 8px 14px; }
}

/* r10 QA: the eight names wrapped with a stray dot at the start of the second line. On phones and tablets they sit in a
   tidy centred grid instead, each name with its own dot (4 across on tablets, 2 on phones). */
@media (max-width: 1100px) {
  .about-s5__names ul { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 0 var(--s-6); }
  .about-s5__names li::before,
  .about-s5__names li + li::before { content: ""; flex: none; width: 6px; height: 6px; margin-inline: 0 10px; border-radius: 50%; background: var(--sun-deep); }
  .about-s5__names a { display: inline-block; min-width: 44px; padding-block: 11px; }
}
@media (max-width: 599px) {
  .about-s5__names ul { grid-template-columns: repeat(2, auto); gap: 0 var(--s-5); }
}
/* r13 (client, iPhone): the list of names under the numbers is hidden on phones; it stays on tablets and desktop. */
@media (max-width: 599px) {
  .about-s5__names { display: none; }
}

/* ==== sections/about-managers.css ==== */
/* about-managers.css - group About "Our team": the managers of every nursery (src/sections/about/team-t3.njk), r10.
   Design Lab group "about-managers": 1 Portrait grid (default) · 2 Story rail (shared carousel) · 3 Pick a nursery (tabs,
   js/sections/about-managers.js). Data: team.manager of each src/data/nurseries/<slug>.json. */

/* ---------- shared ---------- */
.about-mgr { margin-block-start: clamp(8px, 1vw, 16px); }
.about-mgr__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3) var(--s-6);
  margin-block-end: clamp(40px, 4vw, 56px);
  padding-block-end: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.about-mgr__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: var(--lh-snug); color: var(--heading); text-wrap: balance; }
.about-mgr__lead { max-width: 46ch; color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.about-mgr__initials { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-size: 1.6em; color: var(--navy); background: var(--sun-soft); }

/* =====================================================================================================================
   1 · Portrait grid - eight arched portraits, 4 × 2 (2 × 4 on phones); the whole card links to that nursery's team page
   ===================================================================================================================== */
.about-mgr1__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 56px) clamp(20px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-mgr1__card { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; }
.about-mgr1__photo-wrap { position: relative; width: 100%; margin-block-end: var(--s-6); }
.about-mgr1__photo {
  width: 100%;
  --ar: 4 / 5;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
}
.about-mgr1__photo > img { transition: scale var(--t-4) var(--ease-out); }
.about-mgr1__pin {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 16px);
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
  white-space: nowrap;
}
.about-mgr1__pin .icon { flex: none; width: 15px; height: 15px; color: var(--red-text); }
.about-mgr1__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: var(--display-weight); line-height: 1.25; color: var(--heading); }
.about-mgr1__role { margin-block-start: 2px; font-size: var(--fs-small); color: var(--muted); }
.about-mgr1__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-block-start: var(--s-1);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading);
  text-decoration: none;
  text-wrap: balance;
}
.about-mgr1__link .icon { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--sun); color: var(--navy); transition: translate var(--t-2) var(--ease-out); }
/* the whole card is the link */
.about-mgr1__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.about-mgr1__link:focus-visible { outline: none; box-shadow: none; }
.about-mgr1__link:focus-visible::after { box-shadow: var(--focus); }
@media (hover: hover) and (pointer: fine) {
  .about-mgr1__card:hover .about-mgr1__photo > img { scale: 1.04; }
  .about-mgr1__card:hover .about-mgr1__link .icon { translate: 3px 0; }
  .about-mgr1__card:hover .about-mgr1__link span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--sun-deep); }
}

/* =====================================================================================================================
   2 · Story rail - larger portrait cards in a swipeable row (shared carousel: buttons, progress, drag, keys)
   ===================================================================================================================== */
.about-mgr2 .carousel__slide { display: flex; }
.about-mgr2__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
}
.about-mgr2__photo { --ar: 1 / 1; border-radius: 0; }
.about-mgr2__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5) var(--s-6) var(--s-6); }
.about-mgr2__nursery { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-text); }
.about-mgr2__nursery .icon { flex: none; width: 15px; height: 15px; }
.about-mgr2__name { margin-block-start: var(--s-3); font-family: var(--font-display); font-size: 1.45rem; font-weight: var(--display-weight); line-height: 1.2; color: var(--heading); }
.about-mgr2__role { margin-block-start: 2px; font-size: var(--fs-small); color: var(--muted); }
.about-mgr2__line { margin-block: var(--s-4) var(--s-5); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.about-mgr2__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-block-start: auto; padding-block-start: var(--s-4); border-top: 1px dashed var(--line-strong); }
.about-mgr2__fact { display: grid; gap: 0; font-size: var(--fs-micro); line-height: 1.35; color: var(--muted); }
.about-mgr2__fact b { font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--display-weight); line-height: 1.1; color: var(--heading); }
.about-mgr2__link {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  transition: translate var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out);
}
.about-mgr2__link .icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .about-mgr2__link:hover { translate: 3px 0; box-shadow: var(--shadow-sun); }
}
.about-mgr2 .carousel__controls { margin-block-start: var(--s-5); }

/* =====================================================================================================================
   3 · Pick a nursery - tap a nursery, meet its manager (tabs; one manager on stage at a time)
   ===================================================================================================================== */
.about-mgr3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-7) clamp(48px, 6vw, 96px);
  align-items: center;
}
.about-mgr3__side .about-mgr__title { font-size: var(--fs-h3); }
.about-mgr3__side .about-mgr__lead { margin-block-start: var(--s-3); }
.about-mgr3__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-block-start: var(--s-6);
}
.about-mgr3__tab {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  align-items: center;
  gap: var(--s-3);
  min-height: 72px;
  padding: 9px 14px 9px 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--heading);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out);
}
.about-mgr3__tab-face { --ar: 1 / 1; width: 52px; border-radius: 50%; }
.about-mgr3__tab-text { display: grid; gap: 1px; min-width: 0; line-height: 1.25; }
.about-mgr3__tab-text b { color: inherit; font-family: var(--font-display); font-size: 1.05rem; font-weight: var(--display-weight); }
.about-mgr3__tab-text span { font-size: var(--fs-micro); color: var(--muted); transition: color var(--t-2) var(--ease-out); }
.about-mgr3__tab-arrow { display: grid; place-items: center; color: var(--muted); opacity: 0; transition: opacity var(--t-2) var(--ease-out); }
.about-mgr3__tab-arrow .icon { width: 18px; height: 18px; }
.about-mgr3__tab[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: var(--shadow-2); }
.about-mgr3__tab[aria-selected="true"] .about-mgr3__tab-text span { color: color-mix(in srgb, var(--white) 78%, transparent); }
.about-mgr3__tab[aria-selected="true"] .about-mgr3__tab-arrow { opacity: 1; color: var(--sun); }
.about-mgr3__tab[aria-selected="true"] .about-mgr3__tab-face { box-shadow: 0 0 0 3px var(--sun); }
.about-mgr3__tab:focus-visible { outline: none; box-shadow: var(--focus); }
@media (hover: hover) and (pointer: fine) {
  .about-mgr3__tab[aria-selected="false"]:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-1); }
  .about-mgr3__tab[aria-selected="false"]:hover .about-mgr3__tab-arrow { opacity: 0.6; }
}

/* the stage: every panel sits in the same grid cell, so its height never jumps as you switch */
.about-mgr3__stage { display: grid; }
.about-mgr3__panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-6);
  align-items: center;
  visibility: hidden;
  opacity: 0;
  translate: 0 10px;
  transition: opacity var(--t-3) var(--ease-out), translate var(--t-3) var(--ease-out), visibility 0s linear var(--t-3);
}
.about-mgr3__panel.is-on { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
.about-mgr3__figure { position: relative; padding: var(--s-4); }
.about-mgr3__blob {
  position: absolute;
  inset: 0 0 8% 8%;
  z-index: -1;
  border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%;
  background: var(--sun-soft);
}
.about-mgr3__photo {
  --ar: 4 / 5;
  border-radius: 50% 50% var(--r-lg) var(--r-lg) / 40% 40% var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-2);
}
.about-mgr3__text { display: grid; justify-items: start; }
.about-mgr3__nursery { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-text); }
.about-mgr3__nursery .icon { flex: none; width: 15px; height: 15px; }
.about-mgr3__name { margin-block-start: var(--s-3); font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.15; color: var(--heading); }
.about-mgr3__role { margin-block-start: var(--s-1); color: var(--muted); }
.about-mgr3__line { margin-block: var(--s-5) var(--s-6); max-width: 40ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--text); text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .about-mgr1__photo > img, .about-mgr3__panel, .about-mgr3__tab { transition: none; }
  .about-mgr3__panel { translate: none; }
}

/* ---------- tablet + phone (desktop untouched) ---------- */
@media (max-width: 1099px) {
  .about-mgr3 { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .about-mgr3__side { display: grid; }
  .about-mgr3__panel { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .about-mgr3__figure { max-width: 340px; }
  /* the nurseries become a row of faces you swipe and tap, running to the screen edge */
  .about-mgr3__tabs {
    display: flex;
    justify-content: space-between;   /* spreads the faces when they all fit; a scrolling row starts at the left */
    gap: var(--s-2);
    margin-inline: calc(-1 * var(--gutter));
    padding: var(--s-2) var(--gutter) var(--s-3);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .about-mgr3__tabs::-webkit-scrollbar { display: none; }
  .about-mgr3__tab {
    flex: none;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: start;
    gap: var(--s-2);
    width: 92px;
    min-height: 0;
    padding: 6px 4px 8px;
    border-radius: var(--r-md);
    background: transparent;
    box-shadow: none;
    text-align: center;
    scroll-snap-align: start;
  }
  .about-mgr3__tab-face { width: 64px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line-strong); }
  .about-mgr3__tab-text b { font-size: var(--fs-micro); font-family: var(--font-body); font-weight: 700; line-height: 1.25; text-wrap: balance; }
  .about-mgr3__tab-text span, .about-mgr3__tab-arrow { display: none; }
  .about-mgr3__tab[aria-selected="true"] { background: var(--sun-soft); color: var(--heading); box-shadow: none; }
  .about-mgr3__tab[aria-selected="true"] .about-mgr3__tab-face { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--sun-deep); }
  .about-mgr3__tab:focus-visible { box-shadow: var(--focus); }
}
@media (max-width: 1199px) {
  /* the nursery is on the pin just above: below 1200px the cards read a short "Meet the team" (screen readers still hear the name) */
  .about-mgr1__nur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 999px) {
  .about-mgr1__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--s-4); }
  .about-mgr1__name { font-size: 1.12rem; }
  .about-mgr1__pin { padding: 6px 10px 6px 8px; }
}
@media (max-width: 719px) {
  .about-mgr__head { margin-block-end: var(--s-6); }
  .about-mgr1__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-4); }
  .about-mgr1__link { font-size: var(--fs-small); }
  .about-mgr2__body { padding: var(--s-5); }
  .about-mgr3__panel { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; align-content: start; }
  .about-mgr3__figure { width: min(70%, 280px); }
  .about-mgr3__line { margin-block: var(--s-4) var(--s-5); font-size: var(--fs-body); }
}
/* small laptops / landscape tablets: three cards and a peek, so the portraits stay a sensible size */
@media (min-width: 900px) and (max-width: 1099px) {
  .about-mgr2 { --per-view: 3.1; }
  .about-mgr2__body { padding: var(--s-5); }
}

/* ==== sections/home-approach.css ==== */
/* sections/home-approach.css - "Our provision" on the group home (src/sections/home/approach-a6.njk, .hpa6).
   r5: the client went with "Photo + points"; every other layout (Six boxes, Photo cards, Learning + people, Navy approach)
   and Hide were deleted. Large rounded photo left, a calm section head and 2 × 2 points right, on the page white. */

.hpa6__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(var(--s-7), 6vw, 96px); }
.hpa6__art { position: relative; }
.hpa6__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; background: var(--cream); box-shadow: var(--shadow-2); }
.hpa6__photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 45% 50%); }
.hpa6__sun { position: absolute; z-index: -1; top: -7%; left: -8%; width: 30%; color: var(--sun); }
.hpa6__sun .sun { width: 100%; }
.hpa6__copy { display: flex; flex-direction: column; align-items: flex-start; }
/* r5: a standard section head (the client found the old three-line h2 "a bit big"): fs-h2 on two lines, the lead at the
   usual lead size and a comfortable measure, like the promise and chooser heads */
.hpa6__title { max-width: 20ch; margin-block-start: var(--s-4); font-size: var(--fs-h2); line-height: 1.12; text-wrap: balance; }
.hpa6__lead { max-width: 44ch; margin-block-start: var(--s-5); font-size: var(--fs-lead); line-height: 1.65; color: var(--text); text-wrap: pretty; }
.hpa6__copy .hpa6__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) clamp(var(--s-6), 3vw, 44px); margin: clamp(var(--s-6), 3vw, 44px) 0 0; padding: clamp(var(--s-6), 3vw, 40px) 0 0; border-top: 1px solid var(--line); list-style: none; }
.hpa6__point { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: var(--s-4); }
.hpa6__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sun-soft); color: var(--navy); }
.hpa6__ico .icon { width: 22px; height: 22px; }
.hpa6__name { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.hpa6__text { margin-block-start: var(--s-2); font-size: var(--fs-body); line-height: 1.65; color: var(--text); text-wrap: pretty; }
.hpa6__more { margin-block-start: clamp(var(--s-6), 3vw, 40px); }

@media (max-width: 960px) {
  .hpa6__grid, .hpa6__copy .hpa6__points { grid-template-columns: minmax(0, 1fr); }
}

/* r9 mobile + tablet: one column (photo above the copy); the photo is landscape so it does not fill the whole screen */
@media (max-width: 960px) {
  .hpa6__grid { gap: var(--s-7); }
  .hpa6__photo { aspect-ratio: 4 / 3; }
  .hpa6__photo > img { object-position: 30% 40%; }  /* r10: framed for play-5 (girl, practitioner and boy) */
  .hpa6__sun { width: clamp(84px, 22%, 140px); top: -26px; left: -18px; }
}
/* r10 QA: on tablet the four points sit 2 x 2 again (one column left long lines ending in a lone word or two) */
@media (min-width: 600px) and (max-width: 960px) {
  .hpa6__copy .hpa6__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599.98px) {
  .hpa6__grid { gap: var(--s-6); }
  .hpa6__photo { aspect-ratio: 1 / 1; }
  .hpa6 { overflow-x: clip; }
  .hpa6__copy .hpa6__points { gap: var(--s-5); margin-block-start: var(--s-6); padding-block-start: var(--s-6); }
  .hpa6__point { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); }
  .hpa6__ico { width: 44px; height: 44px; }
  .hpa6__name { font-size: 1.125rem; }
  .hpa6__text { margin-block-start: var(--s-1); }
}

/* r11 phones: centred like the rest of the phone layout; each point puts its icon above its words */
@media (max-width: 599.98px) {
  .hpa6__copy { align-items: center; text-align: center; }
  .hpa6__title, .hpa6__lead { margin-inline: auto; }
  .hpa6__copy .hpa6__points { width: 100%; gap: var(--s-6); }
  .hpa6__point { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-3); }
  .hpa6__text { max-width: 34ch; margin-inline: auto; text-wrap: balance; }
}

/* ==== sections/home-believe.css ==== */
/* sections/home-believe.css - "What we believe" on the group home (src/sections/home/believe-b5.njk).
   r4: the client chose the Photo wall; every other option was removed. The wall fades in from white at the top and back
   into white at the bottom, and the section keeps a generous band of plain white below it before the next section. */

.hb5 {
  --wall-gap: clamp(12px, 1.1vw, 18px);
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: clamp(640px, 52vw, 780px);
  /* the bottom padding is the white space under the wall: the wall stops (and has faded out) well before it */
  padding-block: calc(var(--section-y) * 0.9) calc(var(--section-y) * 1.15);
}
.hb5__wall {
  position: absolute;
  inset: 0 -2% calc(var(--section-y) * 0.7);
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--wall-gap);
  pointer-events: none;
  /* soft in at the top, a long melt into the page white at the bottom: no edge, no colour band */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 52%, rgba(0, 0, 0, 0.35) 74%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 52%, rgba(0, 0, 0, 0.35) 74%, transparent 96%);
}
.hb5__col { display: flex; flex-direction: column; gap: var(--wall-gap); }
.hb5__col:nth-child(even) { margin-block-start: -12%; }
.hb5__col:nth-child(3n) { margin-block-start: 5%; }
.hb5__tile { flex: none; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--cream); }
.hb5__col:nth-child(odd) .hb5__tile:nth-child(2) { aspect-ratio: 1; }
.hb5__col:nth-child(even) .hb5__tile:nth-child(1) { aspect-ratio: 3 / 4; }
.hb5__tile > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 40%); }
/* a soft white glow behind the card so the wall stays calm around the words */
.hb5::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 calc(var(--section-y) * 0.7);
  background: radial-gradient(ellipse 40% 50% at 50% 50%, color-mix(in srgb, var(--paper) 94%, transparent) 30%, color-mix(in srgb, var(--paper) 0%, transparent) 100%);
  pointer-events: none;
}
.hb5__center { display: grid; place-items: center; }
.hb5__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
  width: min(100%, 640px);
  padding: clamp(var(--s-7), 4vw, 60px) clamp(var(--s-6), 4.2vw, 64px) clamp(var(--s-6), 3.4vw, 52px);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-3);
  text-align: center;
}
.hb5__sun {                                   /* rising from behind the card's top edge */
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: calc(100% - 10px);
  width: 150px;
  translate: -50% 0;
  color: var(--sun);
}
.hb5__sun .sun { width: 100%; display: block; }
.hb5__statement {
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--heading);
  text-wrap: balance;
}
.hb5__statement .accent { font-weight: 400; }
.hb5__text { max-width: 44ch; font-size: var(--fs-body); line-height: 1.7; color: var(--text); text-wrap: pretty; }
.hb5__card .link-arrow { margin-block-start: var(--s-1); }

@media (max-width: 960px) {
  .hb5__wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hb5__col:nth-child(n + 4) { display: none; }
}

/* r9 mobile: on phones the card would cover the whole wall, so the wall becomes a band of photos across the top of the
   section (fading into the page) and the card rises over its lower half. */
@media (max-width: 599.98px) {
  .hb5 { --wall-gap: 10px; display: block; min-height: 0; padding-block: 0 var(--section-y); }
  .hb5__wall {
    inset: 0 -14% auto;
    height: 360px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 50%, transparent 92%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 50%, transparent 92%);
  }
  .hb5::before { display: none; }
  .hb5__center { padding-block-start: 236px; }
  .hb5__card { gap: var(--s-4); padding: var(--s-7) var(--s-5) var(--s-6); }
  .hb5__sun { width: 120px; }
  .hb5__statement { font-size: clamp(1.75rem, 1.1rem + 3vw, 2.1rem); }
  .hb5__text { font-size: 1.0625rem; line-height: 1.65; }
}

/* r11 phones: the client: "the pictures of people are just at the top half. They should be at the bottom half as well.
   Plus there should be a bigger gap between the next section." The wall now frames the card top AND bottom: columns 1-3
   form the band above it (as before) and columns 4-6, which were hidden on phones, form a matching band below it (no photo
   is used twice on the page). The middle of the wall, behind the card, is masked away, and a longer stretch of plain
   white follows before the next section. */
@media (max-width: 599.98px) {
  .hb5 { --band: 360px; --after: calc(var(--section-y) * 1.35); padding-block-end: var(--after); }
  .hb5__wall {
    inset: 0 -14% var(--after);
    height: auto;
    grid-template-rows: var(--band) minmax(0, 1fr) var(--band);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 58px, #000 180px, transparent 330px, transparent calc(100% - 330px), #000 calc(100% - 190px), #000 calc(100% - 110px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 58px, #000 180px, transparent 330px, transparent calc(100% - 330px), #000 calc(100% - 190px), #000 calc(100% - 110px), transparent 100%);
  }
  .hb5__col { min-height: 0; overflow: hidden; }
  .hb5__col:nth-child(-n + 3) { grid-row: 1; }
  .hb5__col:nth-child(n + 4) { display: flex; grid-row: 3; justify-content: flex-end; margin-block-start: 0; }
  .hb5__col:nth-child(4) { grid-column: 1; }
  .hb5__col:nth-child(5) { grid-column: 2; }
  .hb5__col:nth-child(6) { grid-column: 3; }
  /* the lower band mirrors the upper one: the middle column sits a little lower than its neighbours */
  .hb5__col:nth-child(5) { padding-block-end: 0; margin-block-end: -12%; }
  .hb5__center { padding-block: 236px 236px; }
}

/* ==== sections/home-chooser.css ==== */
/* ============================================================================================================
   sections/home-chooser.css - the home page's "Find the nursery near you" section   (src/sections/home-chooser.njk)

   .section.home-chooser
     .home-chooser__head      eyebrow + two-line title (left) · lead (right)
     .home-grid8              r9: the only layout, a 4 × 2 grid of small photo cards (the other five were deleted)

   Tokens only. Desktop first (designed at 1440, checked 1280-1920); below 980px the grid goes to two columns.
   ============================================================================================================ */

.home-chooser {
  --chooser-gap: clamp(var(--s-6), 4vw, var(--s-8));
  --chooser-side: clamp(440px, 40%, 520px);
  overflow-x: clip;
}

/* ---------- section head ---------- */
.home-chooser__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--chooser-side);
  column-gap: var(--chooser-gap);
  align-items: end;
  margin-block-end: var(--s-6);
}
.home-chooser__head-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  min-width: 0;
}
.home-chooser__title {
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: var(--display-tracking);
  text-wrap: nowrap;                                       /* the break is written: one thought, two lines */
}
.home-chooser__lead {
  max-width: 40ch;
  padding-block-end: 0.35em;                               /* sits on the title's last baseline */
}

/* ---------- the grid of eight ---------- */
.home-grid8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 3vw, 44px) clamp(24px, 2.2vw, 32px); }
.home-grid8__item { min-width: 0; }
.home-grid8__card { display: grid; gap: 16px; color: inherit; text-decoration: none; border-radius: var(--r-lg); }
.home-grid8__photo { --ar: 4 / 3; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.home-grid8__photo img { transition: scale var(--t-4) var(--ease-out); }
.home-grid8__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 4px; }
.home-grid8__text { display: grid; gap: 2px; min-width: 0; }
.home-grid8__name { font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--display-weight); line-height: 1.15; letter-spacing: var(--display-tracking); color: var(--heading); }
.home-grid8__where { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.home-grid8__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  transition: background-color var(--t-2) ease, translate var(--t-2) var(--ease-out);
}
.home-grid8__go .icon { width: 18px; height: 18px; }
.home-grid8__card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .home-grid8__card:hover .home-grid8__photo img { scale: 1.05; }
  .home-grid8__card:hover .home-grid8__go { background: var(--sun); translate: 4px 0; }
}
@media (max-width: 979.98px) {
  .home-chooser__head { grid-template-columns: 1fr; row-gap: var(--s-4); }
  .home-grid8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* r9 mobile: on phones the eight become a calm one-column list (a small photo, the name and area, the arrow), so every
   name fits on one line and the whole list reads at a glance; the whole row is the tap target. */
@media (max-width: 599.98px) {
  .home-chooser__head { margin-block-end: var(--s-5); }
  .home-chooser__title { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 2.2rem); }
  .home-grid8 { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin: 0; padding: 0; }
  .home-grid8__card {
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: var(--s-4);
    padding: 8px;
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-1);
  }
  .home-grid8__photo { --ar: 4 / 3; border-radius: calc(var(--r-lg) - 8px); box-shadow: none; }
  .home-grid8__row { padding-inline: 0 6px; }
  .home-grid8__name { font-size: 1.2rem; }
  .home-grid8__where { font-size: 0.9375rem; }
  .home-grid8__go { width: 40px; height: 40px; }
  .home-grid8__card:active { scale: 0.985; }
}

@media (prefers-reduced-motion: reduce) {
  .home-grid8__photo img { transition: none; }
}

/* r11 phones: the head centres (the client: "centre everything in the middle"); the list rows stay as they are */
@media (max-width: 599.98px) {
  .home-chooser__head { text-align: center; justify-items: center; }
  .home-chooser__head-main { align-items: center; }
  .home-chooser__lead { margin-inline: auto; text-wrap: balance; }
}

/* ==== sections/home-faq.css ==== */
/* sections/home-faq.css - group-home section "Questions parents ask" (src/sections/home/faq.njk). Prefix .hq
   r4: bigger and airier (client: "the questions look a bit small"): larger question titles, roomier rows and answers.
   The accordion overrides are scoped to .hq__faq; the shared accordion component is untouched. */
.hq__grid { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: clamp(var(--s-7), 6vw, 104px); align-items: start; }
.hq__aside { position: sticky; top: calc(var(--header-clear, 88px) + var(--s-5)); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.hq__lead { max-width: 34ch; font-size: var(--fs-lead); line-height: 1.65; color: var(--text); }
.hq__card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: var(--s-5);
  row-gap: var(--s-2);
  width: 100%;
  max-width: 28rem;
  margin-block-start: var(--s-3);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--sun-mist);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun-deep) 30%, transparent);
}
.hq__card-ico { grid-row: span 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: var(--navy); }
.hq__card-ico .icon { width: 24px; height: 24px; }
.hq__card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.hq__card-text { font-size: var(--fs-body); line-height: 1.65; color: var(--text); }
.hq__card .btn { justify-self: start; margin-block-start: var(--s-3); }
.hq__faq { width: 100%; --accordion-pad: clamp(24px, 2.2vw, 32px); gap: var(--s-4); }
.hq__faq .accordion__item { border-radius: var(--r-lg); }
.hq__faq .accordion__summary { min-height: 76px; padding-block: var(--s-4); border-radius: var(--r-lg); }
.hq__faq .accordion__title { font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem); line-height: 1.35; letter-spacing: -0.01em; }
.hq__faq .accordion__icon { width: 40px; height: 40px; }
.hq__faq .accordion__body { padding-block-end: calc(var(--accordion-pad) + 4px); font-size: var(--fs-body); line-height: 1.7; }
@media (max-width: 960px) {
  .hq__grid { grid-template-columns: minmax(0, 1fr); }
  .hq__aside { position: static; }
}

/* r9 mobile: a little tighter on phones (the rows stay well over 44px tall) */
@media (max-width: 599.98px) {
  .hq__grid { gap: var(--s-6); }
  .hq__card { grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-5); }
  .hq__card-ico { width: 44px; height: 44px; }
  .hq__card-title { font-size: 1.125rem; }
  .hq__faq { --accordion-pad: 20px; gap: var(--s-3); }
  .hq__faq .accordion__summary { min-height: 64px; }
  .hq__faq .accordion__title { font-size: 1.0625rem; }
  .hq__faq .accordion__icon { width: 36px; height: 36px; }
}

/* r11 phones: the heading, intro and "Still wondering" card centre ("Questions asked, middle it as well"); the question rows
   stay left so they read as a list */
@media (max-width: 599.98px) {
  .hq__aside { align-items: center; text-align: center; }
  .hq__lead { margin-inline: auto; text-wrap: balance; }
  .hq__card { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: var(--s-2); text-align: center; }
  .hq__card-ico { grid-row: auto; margin-block-end: var(--s-2); }
  .hq__card-text { max-width: 30ch; text-wrap: balance; }
  .hq__card .btn { justify-self: center; }
}

/* ==== sections/home-funded.css ==== */
/* sections/home-funded.css - group home "Funded hours" teaser (src/sections/home/funded-teaser.njk). Prefix .hf2
   r4: the only option left (the client chose "Teaser"). Calm and roomy: copy on the left on the page's own paper, one
   white card for the little tool on the right (no box inside a box). The age choice never changes the height: the three
   age notes are stacked in one grid cell and only their visibility changes. */

.hf2__grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5.4fr);
  gap: clamp(var(--s-8), 7vw, 112px);
  align-items: center;
}

/* ---------- copy ---------- */
.hf2__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.hf2__title { max-width: 14ch; margin-block-start: var(--s-1); }
.hf2__lead { max-width: 44ch; font-size: var(--fs-lead); line-height: 1.65; color: var(--text); }
.hf2__lead strong { color: var(--navy); }
/* r5: the plain "funded = free" line, as a soft sunny note */
.hf2__free {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  max-width: 560px;
  padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--sun-soft) 70%, var(--paper));
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
}
.hf2__free strong { display: block; color: var(--navy); }
.hf2__free-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--navy); }
.hf2__free-ico .icon { width: 18px; height: 18px; }
.hf2__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 620px;
  margin: var(--s-4) 0 0;
  border-block: 1px solid var(--line);
}
.hf2__fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-2); padding: var(--s-5) var(--s-5) var(--s-5) 0; }
.hf2__fact + .hf2__fact { padding-inline-start: var(--s-5); border-inline-start: 1px solid var(--line); }
.hf2__fact dt { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.hf2__fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.hf2__note { max-width: 52ch; font-size: var(--fs-small); line-height: 1.65; color: var(--muted); }

/* ---------- the tool: one white card on a soft sunny glow ---------- */
.hf2__tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: clamp(var(--s-6), 3.2vw, 48px);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.hf2__grid::before {                                /* a quiet sunrise glow behind the card */
  content: "";
  position: absolute;
  z-index: -1;
  top: -14%;
  bottom: -14%;
  right: -10%;
  width: 62%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sun-soft) 80%, transparent), transparent);
  pointer-events: none;
}
.hf2__tool .btn { align-self: flex-start; }
.hf2__field { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.hf2__label { padding: 0; font-size: var(--fs-body); font-weight: 700; line-height: 1.4; color: var(--navy); }
.hf2__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }

/* age: a calm segmented control */
.hf2__ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-pill); background: var(--cream); }
.hf2__age { position: relative; cursor: pointer; }
.hf2__age input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.hf2__age span {
  display: grid;
  place-items: center;
  min-height: 50px;
  border-radius: var(--r-pill);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--navy);
  transition: background-color var(--t-2) ease, box-shadow var(--t-2) ease, color var(--t-2) ease, transform var(--t-1) ease;
}
.hf2__age input:checked + span { background: var(--navy); color: var(--white); box-shadow: var(--shadow-1); }
.hf2__age input:focus-visible + span { box-shadow: var(--focus); }
.hf2__age:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .hf2__age:hover input:not(:checked) + span { background: color-mix(in srgb, var(--white) 70%, transparent); }
}
/* the three notes share one cell, so the box is always as tall as the longest one */
.hf2__age-notes { display: grid; }
.hf2__age-note { grid-area: 1 / 1; font-size: var(--fs-small); line-height: 1.6; color: var(--text); }
.is-live .hf2__age-note { visibility: hidden; opacity: 0; transition: opacity var(--t-2) var(--ease-out), visibility 0s linear var(--t-2); }
.is-live .hf2__age-note.is-on { visibility: visible; opacity: 1; transition: opacity var(--t-2) var(--ease-out); }

/* hours: slider */
.hf2__need { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.hf2__range {
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.hf2__range::-webkit-slider-runnable-track { height: 8px; border-radius: var(--r-pill); background: linear-gradient(to right, var(--sun-deep) var(--fill, 50%), color-mix(in srgb, var(--navy) 10%, var(--white)) var(--fill, 50%)); }
.hf2__range::-moz-range-track { height: 8px; border-radius: var(--r-pill); background: linear-gradient(to right, var(--sun-deep) var(--fill, 50%), color-mix(in srgb, var(--navy) 10%, var(--white)) var(--fill, 50%)); }
.hf2__range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); box-shadow: var(--shadow-1); transition: transform var(--t-1) ease; }
.hf2__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); box-shadow: var(--shadow-1); }
.hf2__range:active::-webkit-slider-thumb { transform: scale(1.08); }
.hf2__range:focus-visible { outline: none; }
.hf2__range:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }

/* answer */
.hf2__result { display: flex; flex-direction: column; gap: var(--s-4); padding-block-start: var(--s-6); border-top: 1px solid var(--line); }
.hf2__big { display: flex; align-items: center; gap: var(--s-5); }
.hf2__num {
  flex: none;
  min-width: 2.5ch;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 2.4rem + 2vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.hf2__unit { max-width: 22ch; font-size: var(--fs-body); font-weight: 600; line-height: 1.45; color: var(--text); }
.hf2__bar { position: relative; height: 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--navy) 6%, var(--white)); overflow: hidden; }
.hf2__bar-funded, .hf2__bar-rest {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: var(--r-pill);
  transform-origin: 0 50%;
  transition: transform var(--t-3) var(--ease-out), translate var(--t-3) var(--ease-out);
}
.hf2__bar-funded { background: var(--sun); transform: scaleX(var(--w)); }
.hf2__bar-rest { background: color-mix(in srgb, var(--navy) 20%, var(--white)); translate: calc(var(--l) * 100%) 0; transform: scaleX(var(--w)); }
.hf2__rest { min-height: calc(2 * 1.6em); font-size: var(--fs-small); line-height: 1.6; color: var(--text); }
.hf2__rest b { color: var(--navy); }

@media (max-width: 960px) {
  .hf2__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hf2__bar-funded, .hf2__bar-rest, .is-live .hf2__age-note { transition: none; }
}
section.section.hf2 { overflow-x: clip; }

/* r9 mobile + tablet */
@media (max-width: 960px) {
  .hf2__grid { gap: var(--s-7); }
  /* r10 QA: one shared right edge on tablet (callout, facts and the tool card used to stop at 560/620/640px) */
  .hf2__free, .hf2__facts { align-self: stretch; max-width: none; }
  .hf2__tool { max-width: none; }
}
/* r10 QA: touch tablets get the same 44px slider target as phones */
@media (max-width: 960px), (pointer: coarse) {
  .hf2__range { height: 44px; }
}
/* r10 QA: at 961-1199px the tool card is narrow and the button label ran into its arrow; let it span the card and wrap */
@media (min-width: 960.02px) and (max-width: 1199.98px) {
  .hf2__tool .btn { align-self: stretch; justify-content: center; height: auto; min-height: 50px; padding-block: 12px; white-space: normal; text-align: center; line-height: 1.3; }
}
@media (max-width: 599.98px) {
  .hf2__grid { gap: var(--s-6); }
  .hf2__grid::before { right: -30%; width: 100%; }
  .hf2__copy { gap: var(--s-4); }
  .hf2__free { grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4); }
  .hf2__free-ico { width: 32px; height: 32px; }
  .hf2__facts { margin-block-start: var(--s-2); }
  .hf2__fact { padding: var(--s-4) var(--s-3) var(--s-4) 0; }
  .hf2__fact + .hf2__fact { padding-inline-start: var(--s-3); }
  .hf2__fact dd { font-size: clamp(1.5rem, 0.9rem + 2.6vw, 1.8rem); white-space: nowrap; }
  .hf2__fact dt { font-size: 0.875rem; }
  .hf2__tool { gap: var(--s-5); padding: var(--s-5) var(--s-4) var(--s-5); border-radius: var(--r-lg); }
  .hf2__label-row { align-items: center; }
  .hf2__need { white-space: nowrap; }
  .hf2__age span { min-height: 48px; padding-inline: 4px; font-size: 0.9375rem; white-space: nowrap; }
  .hf2__range { height: 44px; }
  .hf2__big { gap: var(--s-4); }
  .hf2__num { font-size: 3rem; }
  .hf2__tool .btn { align-self: stretch; justify-content: center; height: auto; min-height: 50px; padding-block: 12px; white-space: normal; text-align: center; line-height: 1.3; }
}

/* r11 phones: centred ("the funded hours in the middle as well") with a little more air around the section. The "free"
   note puts its tick above the words, the three facts centre in their cells; the tool's form labels stay left. */
@media (max-width: 599.98px) {
  .hf2 { padding-block: calc(var(--section-y) * 1.15); }
  .hf2__grid { gap: var(--s-7); }
  .hf2__copy { align-items: center; text-align: center; }
  .hf2__title, .hf2__lead, .hf2__note { margin-inline: auto; }
  .hf2__lead { text-wrap: balance; }
  .hf2__free { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-2); padding: var(--s-5) var(--s-4); text-align: center; }
  .hf2__fact { align-items: center; padding-inline: var(--s-2); text-align: center; }
  .hf2__fact + .hf2__fact { padding-inline-start: var(--s-2); }
  .hf2__note { text-wrap: balance; }
}

/* =====================================================================================================================
   r12 phones and tablets (≤960px, the single-column range; desktop unchanged). The client: "not really in the middle
   properly... doesn't look that nice... change the layout a bit on the phone". One centred column:
     head (eyebrow, title, lead) · the free-hours note · THE TOOL CARD · the three facts as tiles · the small print.
   .hf2__copy dissolves (display: contents) so the card can sit right under the note. In the card: big segmented age
   pills (the number large), the hours value large above its slider, the answer as one big centred number, a full-width
   button. Tablets keep the same column at a comfortable width.
   ===================================================================================================================== */
.hf2__age-n { display: contents; font: inherit; color: inherit; }     /* desktop: reads exactly as before ("3 years old") */

@media (max-width: 960px) {
  .hf2__grid { --hf2-w: 600px; display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .hf2__grid::before { top: 28%; bottom: 18%; right: -30%; width: 100%; }
  .hf2__copy { display: contents; }
  .hf2__copy > *, .hf2__free, .hf2__facts { align-self: center; width: 100%; max-width: var(--hf2-w); }
  .hf2__copy .eyebrow { width: auto; justify-content: center; }
  .hf2__title { max-width: 16ch; margin: var(--s-4) auto 0; text-wrap: balance; }
  .hf2__lead { max-width: 40ch; margin: var(--s-4) auto 0; text-wrap: balance; }

  /* the "free" note: a slim centred band, tick above the words */
  .hf2__free { order: 1; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-2); margin-top: var(--s-6); padding: var(--s-5); text-align: center; }

  /* the tool card */
  .hf2__tool { order: 2; width: 100%; max-width: var(--hf2-w); margin-top: var(--s-6); gap: var(--s-6); padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--r-xl); text-align: center; }
  .hf2__label { width: 100%; font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; }
  .hf2__field { gap: var(--s-3); }
  .hf2__ages { gap: 6px; padding: 6px; border-radius: 22px; }
  .hf2__age span { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; min-height: 72px; padding: 6px 4px; border-radius: 17px; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
  .hf2__age-n { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
  .hf2__age input:not(:checked) + span { color: var(--navy); }
  .hf2__age-note { text-align: center; text-wrap: balance; }

  .hf2__label-row { flex-direction: column; align-items: center; gap: var(--s-1); }
  .hf2__need { font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
  .hf2__range { height: 44px; }

  .hf2__result { align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-4) var(--s-4); border-top: 0; border-radius: var(--r-lg); background: color-mix(in srgb, var(--sun-soft) 55%, var(--white)); }
  .hf2__big { flex-direction: column; align-items: center; gap: var(--s-2); }
  .hf2__num { min-width: 0; font-size: clamp(3.75rem, 2.8rem + 4vw, 4.5rem); }
  .hf2__unit { max-width: none; font-size: var(--fs-body); }
  .hf2__bar { width: 100%; }
  .hf2__rest { min-height: calc(2 * 1.6em); text-align: center; text-wrap: balance; }
  .hf2__tool .btn { align-self: stretch; justify-content: center; height: auto; min-height: 52px; padding-block: 12px; white-space: normal; text-align: center; line-height: 1.3; }

  /* the three facts: three neat tiles under the card */
  .hf2__facts { order: 3; gap: 10px; margin: var(--s-6) 0 0; border: 0; }
  .hf2__fact,
  .hf2__fact + .hf2__fact { align-items: center; justify-content: flex-end; gap: var(--s-2); padding: var(--s-4) var(--s-2); border: 0; border-radius: var(--r-md); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
  .hf2__fact dd { font-size: clamp(1.5rem, 1rem + 2vw, 2rem); white-space: nowrap; }
  .hf2__fact dt { font-size: 0.8125rem; line-height: 1.4; text-wrap: balance; }
  .hf2__note { order: 4; max-width: 52ch; margin: var(--s-5) auto 0; text-wrap: balance; }
}
@media (max-width: 599.98px) {
  .hf2__grid { gap: 0; }
  .hf2__free { margin-top: var(--s-5); padding: var(--s-4); }
  .hf2__tool { margin-top: var(--s-5); gap: var(--s-5); padding: var(--s-5) var(--s-4) var(--s-4); border-radius: var(--r-lg); }
  .hf2__result { padding: var(--s-4) var(--s-3); }
  .hf2__facts { gap: 8px; margin-top: var(--s-5); }
}
@media (max-width: 374.98px) {
  .hf2__age span { min-height: 66px; font-size: 0.75rem; }
  .hf2__age-n { font-size: 1.5rem; }
  .hf2__fact,
  .hf2__fact + .hf2__fact { padding-inline: 6px; }
}

/* ==== sections/home-grow.css ==== */
/* sections/home-grow.css - "Growing with us" on the group home (src/sections/home/grow-g1.njk).
   r6: the client chose the Butterfly branch; the other five versions were deleted.
   The drawing (.home-grow__art, partial grow-art.njk, grown by js/pages/home.js), the head (.hg-head) and .hg1: the
   branch in a soft rounded panel at the content width, photo cards overlapping its lower edge. */

/* one tint per stage: the playroom colours, then the sun for school-ready */
.hg-tone--baby      { --tone: var(--room-baby);      --tone-soft: var(--room-baby-soft); }
.hg-tone--tweenies  { --tone: var(--room-tweenies);  --tone-soft: var(--room-tweenies-soft); }
.hg-tone--twos      { --tone: var(--room-twos);      --tone-soft: var(--room-twos-soft); }
.hg-tone--preschool { --tone: var(--room-preschool); --tone-soft: var(--room-preschool-soft); }
.hg-tone--sun       { --tone: var(--sun-deep);       --tone-soft: var(--sun-soft); }

/* shared head: title left, lead right */
.hg-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: var(--s-5) clamp(var(--s-7), 6vw, var(--s-9));
  margin-block-end: clamp(var(--s-7), 4.4vw, var(--s-8));
}
.hg-head__title { max-width: 16ch; margin-block-start: var(--s-4); font-size: var(--fs-h2); text-wrap: balance; }
.hg-head__lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--text); text-wrap: pretty; }

/* =====================================================================================================================
   The drawing (shared by g1, g9, g10). viewBox 0 0 2100 600. Scaled to 115% of the stage and shifted left 5%, so each
   creature sits over the centre of its column in a five-column grid with 24px gaps and the butterfly's wings stay inside. The branch runs in from the left edge
   of its clipping box ([data-grow-clip]); the far twig runs out of the right edge.
   States (set by home.js; nothing is hidden unless the script armed the stage):
     .is-armed  the script is driving it    .is-on (per item) the branch has reached it    .is-done fully grown
   ===================================================================================================================== */
.home-grow__stage { --stops-gap: 24px; position: relative; }
.home-grow__art {
  display: block;
  width: 115%;
  max-width: none;
  height: auto;
  margin-inline-start: -5%;
  overflow: visible;
  pointer-events: none;
}
.home-grow__art :is(path, ellipse) { stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; fill-rule: evenodd; }
.home-grow__art .home-grow__wood { fill: color-mix(in srgb, var(--peach) 62%, var(--paper)); stroke: var(--orange); }
.home-grow__art .home-grow__leaf { fill: var(--leaf-soft); stroke: var(--leaf); }
.home-grow__art .home-grow__leaf-line { stroke: var(--leaf); }
.home-grow__art .home-grow__sky { fill: var(--sky-soft); stroke: color-mix(in srgb, var(--sky) 84%, var(--navy)); }
.home-grow__art .home-grow__sky-line { stroke: color-mix(in srgb, var(--sky) 84%, var(--navy)); }
.home-grow__art .home-grow__body { fill: var(--white); }
.home-grow__art .home-grow__body-line { stroke: color-mix(in srgb, var(--navy) 42%, var(--white)); stroke-width: 3.4; }

.home-grow__bug, .home-grow__wing { transform-box: view-box; }
.home-grow__bug--1 { transform-origin: 280px 372px; }
.home-grow__bug--2 { transform-origin: 624px 292px; }
.home-grow__bug--3 { transform-origin: 1000px 292px; }
.home-grow__bug--4 { transform-origin: 1300px 312px; }
.home-grow__bug--5 { transform-origin: 1734px 140px; }
.home-grow__wing { transform-origin: 1734px 130px; }
.home-grow__stage .home-grow__bug--5 { pointer-events: auto; }

/* stops: one column per creature */
.home-grow__stops {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--stops-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-grow__stop { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.home-grow__age { position: relative; z-index: 1; margin-block-end: -21px; }
.home-grow__age-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 42px;
  padding: 0 1.15em 0 0.85em;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-2);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--navy);
  white-space: nowrap;
}
.home-grow__age-pill .sun { --sun-size: 1.2em; vertical-align: 0; }
.home-grow__card { width: 100%; }

/* ---------- motion (only when home.js armed the stage) ---------- */
@media screen and (prefers-reduced-motion: no-preference) {
  .home-grow__stage.is-armed .home-grow__bug { opacity: 0; transform: scale(0.7) rotate(-7deg); }
  .home-grow__stage.is-armed .home-grow__bug.is-on {
    opacity: 1;
    transform: none;
    transition: opacity var(--t-2) var(--ease-out), transform 620ms var(--ease-spring), translate 1200ms var(--ease-out), filter var(--t-3) var(--ease-out);
  }
  .home-grow__stage.is-armed .home-grow__age-pill { opacity: 0; scale: 0.7; }
  .home-grow__stage.is-armed .home-grow__stop.is-on .home-grow__age-pill {
    opacity: 1;
    scale: 1;
    transition: opacity var(--t-2) var(--ease-out) 90ms, scale 520ms var(--ease-spring) 90ms, background-color var(--t-2) ease, color var(--t-2) ease, translate var(--t-2) var(--ease-out);
  }
  .home-grow__stage.is-armed .home-grow__card { opacity: 0; translate: 0 18px; }
  .home-grow__stage.is-armed .home-grow__stop.is-on .home-grow__card {
    opacity: 1;
    translate: 0 0;
    transition: opacity var(--t-3) var(--ease-out) 140ms, translate var(--t-4) var(--ease-out) 140ms;
  }
  /* fully grown: the butterfly lifts a little and stretches its wings three times, then rests */
  .home-grow__stage.is-done .home-grow__bug--5 { translate: 0 -14px; }
  .home-grow__stage.is-done:not(.is-settled) .home-grow__wing { animation: home-grow-flap 1500ms var(--ease-in-out) 380ms 1 both; }
  .home-grow__stage.is-done .home-grow__bug--5.is-waving .home-grow__wing { animation: home-grow-flap-again 1100ms var(--ease-in-out) 1 both; }
}
@keyframes home-grow-flap {
  0%, 100% { transform: scaleX(1); }
  16% { transform: scaleX(0.42); }
  33% { transform: scaleX(1); }
  50% { transform: scaleX(0.5); }
  66% { transform: scaleX(1); }
  83% { transform: scaleX(0.66); }
}
@keyframes home-grow-flap-again {
  0%, 100% { transform: scaleX(1); }
  25% { transform: scaleX(0.45); }
  50% { transform: scaleX(1); }
  75% { transform: scaleX(0.6); }
}

/* =====================================================================================================================
   g1 · Butterfly branch, contained: the drawing in a soft rounded panel at the content width; the photo cards rise over
   the panel's lower edge
   ===================================================================================================================== */
.hg1__sky {
  position: relative;
  padding-block: clamp(var(--s-4), 1.6vw, var(--s-5)) clamp(88px, 7.4vw, 108px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 88% 8%, color-mix(in srgb, var(--sun-soft) 70%, transparent), transparent 70%),
    radial-gradient(50% 70% at 8% 100%, color-mix(in srgb, var(--leaf-soft) 80%, transparent), transparent 70%),
    var(--cream);
}
.hg1__stops { position: relative; z-index: 1; margin-block-start: calc(clamp(88px, 7.4vw, 108px) * -1 + var(--s-5)); padding-inline: 0; }
.hg1__card {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: calc(21px + 6px) 0 clamp(var(--s-5), 2vw, 28px);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-2);
  text-align: left;
  overflow: hidden;
}
.hg1__photo { aspect-ratio: 4 / 3; margin: 0 8px var(--s-5); border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: var(--cream); }
.hg1__photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 40%); }
.hg1__name { padding-inline: clamp(18px, 1.6vw, var(--s-5)); font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
/* polish: plain greedy wrapping - in these narrow cards "pretty" re-flowed the last lines into a ragged staircase */
.hg1__text { margin-block-start: var(--s-3); padding-inline: clamp(18px, 1.6vw, var(--s-5)); font-size: 1rem; line-height: 1.65; color: var(--text); text-wrap: wrap; }

/* r10 QA: at 961-1199px the lead runs to six lines; top-align it with the eyebrow instead of hanging below it */
@media (min-width: 960.02px) and (max-width: 1199.98px) {
  .hg-head { align-items: start; }
}
@media (max-width: 960px) {
  .hg-head { grid-template-columns: minmax(0, 1fr); }
  .home-grow__art { width: 100%; margin-inline-start: 0; }
  .home-grow__stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================================================================
   r9 mobile + tablet: the five stages become one clean vertical path. The drawing stays on top in its panel; under it the
   stages stack in a single column, each age pill sitting on a thin dashed "branch" that runs down the left and links one
   stage to the next. Tablet: photo left, words right. Phone: a small square photo beside the heading, words underneath.
   The cards and pills are simply there (only the drawing still grows with the scroll): stages far below the drawing
   would otherwise appear while nobody can see them.
   ===================================================================================================================== */
@media (max-width: 960px) {
  .hg-head { gap: var(--s-4); margin-block-end: var(--s-6); }
  .hg1__sky { padding-block: var(--s-4) var(--s-7); }
  .hg1__stops {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
    margin-block-start: calc(var(--s-6) * -1);
  }
  .hg1__stops::before {                            /* the thin branch linking the stages */
    content: "";
    position: absolute;
    z-index: -1;
    top: 24px;
    bottom: 48px;
    left: 31px;
    border-inline-start: 3px dashed color-mix(in srgb, var(--orange) 55%, var(--paper));
  }
  .home-grow__stop { align-items: flex-start; }
  .home-grow__age { margin-inline-start: var(--s-3); }
  .hg1__card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--s-5);
    padding: calc(21px + 12px) var(--s-5) var(--s-5) 10px;
  }
  .hg1__photo { grid-row: 1 / span 2; margin: 0; }
  .hg1__name { align-self: end; padding-inline: 0; font-size: 1.25rem; }
  .hg1__text { align-self: start; margin-block-start: var(--s-2); padding-inline: 0; font-size: 1.0625rem; }
}
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .home-grow__stage.is-armed .home-grow__card,
  .home-grow__stage.is-armed .home-grow__age-pill { opacity: 1; scale: none; translate: none; }
}
@media (max-width: 599.98px) {
  .hg1__sky { padding-block: var(--s-3) var(--s-6); }
  .hg1__stops { gap: var(--s-5); margin-block-start: calc(var(--s-5) * -1); }
  .hg1__stops::before { left: 27px; }
  .home-grow__age { margin-inline-start: var(--s-2); }
  .home-grow__age-pill { min-height: 40px; font-size: 1rem; }
  .hg1__card {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: var(--s-4);
    padding: calc(20px + 12px) var(--s-4) var(--s-5) 10px;
  }
  .hg1__photo { grid-row: 1; aspect-ratio: 1; align-self: center; }
  .hg1__name { align-self: center; font-size: 1.125rem; line-height: 1.3; }
  .hg1__text { grid-column: 1 / -1; margin-block-start: var(--s-4); padding-inline: 6px 0; }
}

/* r11 phones: the client did not want the animation on the phone ("I don't think we need the animation for the phone"):
   home.js shows the finished drawing straight away below 600px, and everything is centred. Each stage is a centred card:
   its age pill on the top edge, a wide photo, then the heading and words; the dashed branch links the pills down the middle. */
@media (max-width: 599.98px) {
  .hg-head { justify-items: center; text-align: center; }
  .hg-head > div { display: flex; flex-direction: column; align-items: center; }
  .hg-head__title { margin-inline: auto; }
  .hg-head__lead { max-width: 36ch; margin-inline: auto; text-wrap: balance; }
  .hg1__stops::before { left: 50%; translate: -1.5px 0; }
  .home-grow__stop { align-items: center; }
  .home-grow__age { margin-inline-start: 0; }
  .hg1__card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: center;
    padding: calc(20px + 12px) 10px var(--s-5);
    text-align: center;
  }
  .hg1__photo { width: 100%; aspect-ratio: 16 / 10; }
  .hg1__name { max-width: 24ch; margin-block-start: var(--s-4); padding-inline: var(--s-3); text-wrap: balance; }
  .hg1__text { grid-column: auto; max-width: 34ch; margin-block-start: var(--s-3); padding-inline: var(--s-3); text-wrap: pretty; }
}
/* no motion on the phone at all, even before home.js runs */
@media (max-width: 599.98px) and (prefers-reduced-motion: no-preference) {
  .home-grow__stage.is-armed .home-grow__bug { opacity: 1; transform: none; }
  .home-grow__stage.is-done .home-grow__bug--5 { translate: none; }
  .home-grow__stage .home-grow__wing { animation: none !important; }
}

/* ==== sections/home-promise.css ==== */
/* sections/home-promise.css - "Bright Starts promise" on the group home (src/sections/home/promise-p4.njk).
   r4: the client kept the Card rail only; every other option was removed. The rail now drifts slowly on its own
   (js/sections/home-promise.js), pausing while the pointer is over it or a card has focus. Cards are larger, with body-size
   text and roomy padding; the band fades in and out of the page white and has extra air above it. */

/* tints per pillar */
.hp-tone--sun    { --tone: var(--sun);    --tone-soft: var(--sun-soft);    --tone-ink: var(--navy); }
.hp-tone--peach  { --tone: var(--red);    --tone-soft: var(--red-soft);    --tone-ink: var(--white); }
.hp-tone--leaf   { --tone: var(--leaf);   --tone-soft: var(--leaf-soft);   --tone-ink: var(--navy); }
.hp-tone--orange { --tone: var(--orange); --tone-soft: var(--orange-soft); --tone-ink: var(--navy); }
.hp-tone--sky    { --tone: var(--sky);    --tone-soft: var(--sky-soft);    --tone-ink: var(--navy); }
.hp-tone--navy   { --tone: var(--navy);   --tone-soft: color-mix(in srgb, var(--navy) 9%, var(--white)); --tone-ink: var(--sun); }

.hp4 {
  --card-w: clamp(290px, 24vw, 350px);
  --rail-gap: 24px;
  --fade-h: clamp(96px, 10vw, 150px);
  overflow-x: clip;
  /* extra air above: the band never sits close to whatever comes before it (client: "more space needed below the navy") */
  padding-block: calc(var(--section-y) * 1.3) calc(var(--section-y) * 1.15);
}
.hp4__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-7); margin-block-end: clamp(var(--s-6), 3.4vw, var(--s-7)); }
.hp4__title { max-width: 20ch; margin-block-start: var(--s-4); font-size: var(--fs-h2); text-wrap: balance; }
.hp4__meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-5); text-align: right; }
.hp4__lead { max-width: 36ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--text); }
.hp4__nav { display: flex; align-items: center; gap: var(--s-3); }
.hp4__arrow { width: 52px; height: 52px; min-height: 0; padding: 0; }
.hp4__arrow .icon { width: 20px; height: 20px; }
.hp4__arrow:disabled { opacity: 0.35; pointer-events: none; }
.no-js .hp4__nav .hp4__arrow { display: none; }
.hp4__rail { position: relative; }
.hp4__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));   /* % not vw: a classic scrollbar must not push the last card past the content edge */
  padding-block: var(--s-3) var(--s-6);
  scrollbar-width: none;
}
.hp4__viewport::-webkit-scrollbar { display: none; }
.hp4__viewport:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-lg); }
.hp4.has-js .hp4__viewport { scroll-snap-type: none; }   /* the drift, the arrows and the edge glide move it themselves */
.hp4 .hp4__track {
  display: flex;
  gap: var(--rail-gap);
  width: max-content;
  margin: 0;
  padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2));
  list-style: none;
}
.hp4__card {
  scroll-snap-align: start;
  flex: none;
  display: flex;
  flex-direction: column;
  width: var(--card-w);
  border-radius: var(--r-xl);
  background: var(--tone-soft, var(--white));
  overflow: hidden;
  transition: translate var(--t-3) var(--ease-out);
}
.hp4__media { position: relative; flex: none; aspect-ratio: 4 / 3; margin: 10px 10px 0; border-radius: calc(var(--r-xl) - 10px); overflow: hidden; background: var(--white); }
.hp4__media > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 40%); }
.hp-tone--sky .hp4__media { background: var(--sun-soft); }
.hp4__phone { position: absolute; left: 50%; top: 9%; translate: -50% 0; rotate: -5deg; }
.hp4__phone .sec-phone { --phone-w: 170px; }
.hp4__body { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: calc(var(--s-6) + 8px) clamp(var(--s-5), 2vw, 30px) clamp(var(--s-6), 2.4vw, 36px); }
.hp4__ico {
  position: absolute;
  top: -26px;
  left: clamp(var(--s-5), 2vw, 30px);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tone);
  color: var(--tone-ink);
  box-shadow: 0 0 0 6px var(--tone-soft);
}
.hp4__ico .icon { width: 22px; height: 22px; }
.hp4__name { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.hp4__text { font-size: var(--fs-body); line-height: 1.65; color: var(--text); text-wrap: pretty; }
.hp4__card--end { position: relative; justify-content: flex-end; gap: var(--s-5); padding: var(--s-7) clamp(var(--s-5), 2vw, 30px); background: var(--navy); color: var(--white); }
/* a big sun rising out of the top of the closing card */
.hp4__end-sun { position: absolute; top: -18%; right: -16%; width: 78%; color: var(--sun); opacity: 0.95; pointer-events: none; }
.hp4__end-sun .sun { width: 100%; }
.hp4__card--end > :not(.hp4__end-sun) { position: relative; }
.hp4__end-title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--white); }
.hp4__end-title .accent { color: var(--sun); }
.hp4__card--end .btn { align-self: flex-start; }
@media (hover: hover) and (pointer: fine) { .hp4__card:not(.hp4__card--end):hover { translate: 0 -4px; } }
/* hover zones at either edge of the rail: resting the pointer here glides the rail that way */
.hp4__edge { position: absolute; top: 0; bottom: var(--s-6); z-index: 2; width: clamp(64px, 7vw, 120px); pointer-events: none; opacity: 0; transition: opacity var(--t-2) ease; }
.hp4__edge--l { left: 0; background: linear-gradient(to right, color-mix(in srgb, var(--cream) 85%, transparent), transparent); }
.hp4__edge--r { right: 0; background: linear-gradient(to left, color-mix(in srgb, var(--cream) 85%, transparent), transparent); }
.hp4.has-js .hp4__edge { pointer-events: auto; cursor: e-resize; }
.hp4.has-js .hp4__edge--l { cursor: w-resize; }
.hp4.has-js .hp4__edge.is-on { opacity: 1; }
.hp4.has-js .hp4__edge.is-end { pointer-events: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hp4__card { transition: none; }
}

@media (max-width: 960px) {
  .hp4__head { flex-direction: column; align-items: flex-start; }
  .hp4__meta { align-items: flex-start; text-align: left; }
}

/* r9 mobile + tablet: touch screens get a plain swipe rail with snap points (home-promise.js adds .is-touch and never
   drifts there); the edge glide zones are for mice only, so they are gone (they would block a swipe that starts on them) */
.hp4.has-js.is-touch .hp4__viewport { scroll-snap-type: x mandatory; }
.hp4.is-touch .hp4__edge { display: none; }
@media (max-width: 960px) {
  .hp4__head { gap: var(--s-5); }
}
@media (max-width: 599.98px) {
  .hp4 { --card-w: min(300px, calc(100vw - 2 * var(--gutter) - 40px)); --rail-gap: 16px; }
  .hp4__head { margin-block-end: var(--s-5); }
  .hp4__meta { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; gap: var(--s-4); }
  .hp4__lead { font-size: 1.0625rem; }
  .hp4__arrow { width: 48px; height: 48px; }
  .hp4__body { padding: calc(var(--s-6) + 8px) var(--s-5) var(--s-6); }
  .hp4__ico { left: var(--s-5); }
  .hp4__name { font-size: 1.2rem; }
}

/* r11 phones: centred like the rest of the phone layout. The head centres with the arrows under the lead, and each
   card centres its icon, name and text. */
@media (max-width: 599.98px) {
  .hp4__head { align-items: center; text-align: center; }
  .hp4__head > :first-child { display: flex; flex-direction: column; align-items: center; }
  .hp4__title { margin-inline: auto; }
  .hp4__meta { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .hp4__lead { margin-inline: auto; text-wrap: balance; }
  .hp4__body { align-items: center; text-align: center; }
  .hp4__ico { left: 50%; translate: -50% 0; }
  .hp4__card--end { align-items: center; text-align: center; }
  .hp4__card--end .btn { align-self: center; }
}

/* ==== sections/home-team.css ==== */
/* sections/home-team.css - group home "Meet the team" (src/sections/home/team-t2.njk).
   r6: the client chose "Photo + intro"; Qualifications was deleted. Speaks for every Bright Starts nursery.
   .ht2  arched photo + round inset + nursery-count note, warm intro and three points */

/* =====================================================================================================================
   t2 · Photo + intro
   ===================================================================================================================== */
.ht2__grid { display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: clamp(var(--s-8), 7vw, 112px); align-items: center; }
.ht2__art { position: relative; padding: var(--s-6) clamp(var(--s-7), 6vw, 88px) clamp(var(--s-8), 6vw, 88px) 0; }
/* a soft sun-coloured blob behind the photos */
.ht2__art::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 0;
  top: 0;
  bottom: 10%;
  border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sun-soft) 85%, transparent), transparent);
  pointer-events: none;
}
.ht2__photo {
  aspect-ratio: 5 / 5.6;
  border-radius: 999px 999px var(--r-xl) var(--r-xl);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-2);
}
.ht2__photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 40%); }
.ht2__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(190px, 17vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 0 10px var(--paper), var(--shadow-3);
}
.ht2__inset > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 45%); }
.ht2__note {
  position: absolute;
  left: calc(var(--s-5) * -1);
  top: 16%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--s-4);
  row-gap: var(--s-1);
  width: 260px;
  padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-3);
  rotate: -3deg;
}
.ht2__note-sun { display: block; width: 48px; }
.ht2__note-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--navy); }
.ht2__note-text { grid-column: 1 / -1; font-size: var(--fs-small); font-weight: 600; line-height: 1.45; color: var(--text); }
.ht2__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.ht2__title { max-width: 15ch; }
.ht2__lede { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.7; color: var(--text); }
.ht2__points { display: grid; gap: 0; width: 100%; margin: var(--s-3) 0 var(--s-2); padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ht2__point { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-5); align-items: center; padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.ht2__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sun-soft); color: var(--navy); }
.ht2__ico .icon { width: 24px; height: 24px; }
.ht2__name { font-size: 1.25rem; line-height: 1.3; }
.ht2__text { margin-block-start: var(--s-1); font-size: var(--fs-body); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.ht2__cta { margin-block-start: var(--s-2); }

@media (max-width: 960px) {
  .ht2__grid { grid-template-columns: minmax(0, 1fr); }
  .ht2__note { left: 0; }
}

/* r9 mobile + tablet: the photo group keeps its shape but stops growing past a comfortable size; on phones the round
   inset and the note shrink so they never cover the faces */
@media (max-width: 960px) {
  .ht2__grid { gap: var(--s-7); }
  .ht2__art { width: 100%; max-width: 580px; justify-self: center; }
}
@media (max-width: 599.98px) {
  .ht2__art { padding: var(--s-5) var(--s-7) var(--s-7) 0; }
  .ht2__inset { width: clamp(130px, 38vw, 170px); box-shadow: 0 0 0 7px var(--paper), var(--shadow-3); }
  .ht2__note { top: 10%; left: -4px; width: 220px; padding: var(--s-3) var(--s-4); column-gap: var(--s-3); }
  .ht2__note-sun { width: 38px; }
  .ht2__note-num { font-size: 1.9rem; }
  .ht2__point { grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-4); }
  .ht2__ico { width: 48px; height: 48px; }
  .ht2__name { font-size: 1.125rem; }
}

/* r11 phones: centred ("Our people … middle it"). The photo group sits in the middle of the column, the intro centres and
   each point puts its icon above its words. */
@media (max-width: 599.98px) {
  .ht2__art { padding-inline: var(--s-6); }
  .ht2__copy { align-items: center; text-align: center; }
  .ht2__title, .ht2__lede { margin-inline: auto; }
  .ht2__lede { text-wrap: balance; }
  .ht2__point { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-3); padding-block: var(--s-5); }
  .ht2__text { max-width: 32ch; margin-inline: auto; text-wrap: balance; }
}

/* ==== sections/home-why.css ==== */
/* sections/home-why.css - group home "Why parents choose Bright Starts" (src/sections/home/why-w2.njk).
   r6: the client chose "Around a photo" (Big numbers and Checklist + review were deleted): three reasons either side of
   one round photo, now a gentle slideshow of sharp real photos (js/sections/home-why.js). */

/* =====================================================================================================================
   w2 · Around a photo
   ===================================================================================================================== */
.hw2__head { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); margin-block-end: clamp(var(--s-7), 4vw, 64px); text-align: center; }
.hw2__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 400px) minmax(0, 1fr); gap: clamp(var(--s-6), 3.4vw, 56px); align-items: center; }
.hw2__side { display: grid; gap: clamp(var(--s-6), 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.hw2__item { display: grid; align-items: center; gap: var(--s-5); }
.hw2__side--l .hw2__item { grid-template-columns: minmax(0, 1fr) 56px; text-align: right; }
.hw2__side--r .hw2__item { grid-template-columns: 56px minmax(0, 1fr); }
/* the middle reason on each side leans out towards the photo's curve; the outer two tuck in */
.hw2__side--l .hw2__item:nth-child(odd) { margin-inline-end: clamp(var(--s-5), 3vw, 44px); }
.hw2__side--r .hw2__item:nth-child(odd) { margin-inline-start: clamp(var(--s-5), 3vw, 44px); }
.hw2__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: var(--navy); box-shadow: var(--shadow-sun); }
.hw2__ico .icon { width: 24px; height: 24px; }
.hw2__name { font-size: 1.25rem; line-height: 1.3; }
.hw2__text { margin-block-start: var(--s-2); font-size: var(--fs-body); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.hw2__side--l .hw2__text { margin-inline-start: auto; max-width: 30ch; }
.hw2__side--r .hw2__text { max-width: 30ch; }
.hw2__centre { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hw2__rays { position: absolute; inset: -9%; color: var(--sun); opacity: 0.85; }
.hw2__rays .sun { width: 100%; height: 100%; }
.hw2__photo { position: relative; width: 84%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--peach); box-shadow: 0 0 0 8px var(--white), var(--shadow-2); }
/* the slideshow: the photos are stacked; the one showing fades in over ~1.4s and drifts very slightly closer */
.hw2__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1400ms var(--ease-in-out); }
.hw2__slide.is-on { opacity: 1; }
.hw2__slide > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 40%); scale: 1.06; transition: scale 0s linear 1400ms; }
.hw2__slide.is-on > img { scale: 1; transition: scale 7s linear; }
html:not(.js) .hw2__slide > img { scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .hw2__slide { transition: opacity 400ms ease; }
  .hw2__slide > img, .hw2__slide.is-on > img { scale: 1; transition: none; }
}
.hw2__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin-block-start: clamp(var(--s-7), 4vw, 64px); }

@media (max-width: 960px) {
  .hw2__grid { grid-template-columns: minmax(0, 1fr); }
  .hw2__side--l .hw2__item { grid-template-columns: 56px minmax(0, 1fr); text-align: left; }
  .hw2__side--l .hw2__item > div { order: 2; }
  .hw2__side .hw2__item { margin-inline: 0 !important; }
}

/* r9 mobile + tablet. Tablet: the round photo leads, the six reasons sit under it in two columns. Phone: one column,
   three reasons, the photo, three reasons. The text column of the left-hand reasons no longer hugs the right edge. */
@media (max-width: 960px) {
  .hw2 { overflow-x: clip; }
  .hw2__side--l .hw2__text { margin-inline-start: 0; }
  .hw2__side .hw2__text { max-width: 40ch; }
  .hw2__centre { width: min(100%, 360px); justify-self: center; }
}
@media (min-width: 600px) and (max-width: 960px) {
  .hw2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "photo photo" "l r"; row-gap: var(--s-7); align-items: start; }
  .hw2__centre { grid-area: photo; }
  .hw2__side--l { grid-area: l; }
  .hw2__side--r { grid-area: r; }
}
@media (max-width: 599.98px) {
  .hw2__head { margin-block-end: var(--s-6); }
  .hw2__grid { gap: var(--s-6); }
  .hw2__side { gap: var(--s-5); }
  .hw2__centre { width: min(100%, 290px); margin-block: var(--s-4); }
  .hw2__item { gap: var(--s-4); }
  .hw2__side .hw2__item { grid-template-columns: 48px minmax(0, 1fr); }
  .hw2__ico { width: 48px; height: 48px; }
  .hw2__name { font-size: 1.125rem; }
  .hw2__text { margin-block-start: var(--s-1); }
  .hw2__actions { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .hw2__actions .btn { justify-content: center; }
}

/* r11 phones: centred ("Why parents choose us, middle it"): each reason puts its icon above its words */
@media (max-width: 599.98px) {
  .hw2__side .hw2__item { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-3); text-align: center; }
  .hw2__side .hw2__item > div { order: 2; }
  .hw2__side .hw2__text { max-width: 32ch; margin-inline: auto; text-wrap: balance; }
  .hw2__side { gap: var(--s-6); }
}

/* ==== sections/shared.css ==== */
/* ============================================================================================================
   sections/shared.css - the three shared sections in src/sections/shared.njk   (docs/COMPONENTS-SHARED-SECTIONS.md)
     1. .sec-cta      the closing card with the sun rising from its lower-right edge     sec.ctaCard(opts)
     2. .sec-reviews  parent reviews as a big-quote carousel                             sec.reviews(reviews, opts)
     3. .sec-phone    CSS phone mock-up of the parent app's daily feed                   sec.famlyPhone(opts)
   Tokens only. Desktop first; everything stacks simply below 900-1000px.
   ============================================================================================================ */

/* ============================================================================================================
   1. CTA CARD
   .section.sec-cta.sec-cta--navy|sun > .container > .sec-cta__card.on-navy|on-sun > .sec-cta__sky + .sec-cta__copy
   The sun is a zero-height "horizon" box on the card's bottom edge (.sec-cta__sun, data-scroll-progress): the motion
   engine writes --progress on it (how far the card's bottom edge has travelled up the viewport) and the sun rises
   with it. The rays turn through data-sun-spin. Without JS / with reduced motion the sun simply sits risen.
   ============================================================================================================ */
.sec-cta__card {
  --cta-bg: var(--navy);
  --cta-sun: var(--sun);
  --cta-glow: var(--orange);                    /* dawn: orange over navy reads as a warm dusk-rose, never muddy */
  --cta-glow-o: 0.38;
  --cta-pad: clamp(var(--s-6), 6vw, 88px);
  --cta-sun-w: clamp(320px, 55%, 700px);
  --cta-sun-right: -5.5%;
  --cta-sun-drop: clamp(70px, 10vw, 150px);     /* how far below its resting place the sun starts */
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 39vw, 560px);
  padding: var(--cta-pad);
  border-radius: var(--r-xl);
  background: var(--cta-bg);
  box-shadow: var(--shadow-3);
}
.sec-cta--sun .sec-cta__card {
  --cta-bg: var(--sun);
  --cta-sun: var(--white);
  --cta-glow: var(--white);
  --cta-glow-o: 0.7;
  box-shadow: var(--shadow-sun);
}

/* the clipped layer that holds the sun */
.sec-cta__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.sec-cta__sun {
  position: absolute;
  right: var(--cta-sun-right);
  bottom: 0;
  width: var(--cta-sun-w);
  height: 0;
}
/* soft warm glow, centred on the sun and travelling with it */
.sec-cta__sun::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 180%;
  aspect-ratio: 1;
  translate: -50% -52%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    var(--cta-glow),
    color-mix(in srgb, var(--cta-glow) 56%, transparent) 30%,
    color-mix(in srgb, var(--cta-glow) 22%, transparent) 60%,
    color-mix(in srgb, var(--cta-glow) 6%, transparent) 82%,
    transparent);
  opacity: var(--cta-glow-o);
}
.sec-cta__art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  color: var(--cta-sun);
  translate: 0 43%;
}
@media screen and (prefers-reduced-motion: no-preference) {
  /* --progress: 0 when the card's bottom edge enters the viewport → the rise is finished once it is a fifth of the way up */
  html.js .sec-cta__sun {
    --cta-p: min(1, calc(var(--progress, 1) / 0.2));
    translate: 0 calc((1 - var(--cta-p)) * (1 - var(--cta-p)) * var(--cta-sun-drop));
  }
}

/* copy */
.sec-cta__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
  width: 100%;
  max-width: min(35rem, 55%);
}
.sec-cta__title {
  font-size: calc(var(--fs-h2) * 1.14);
  line-height: 1.02;
}
.sec-cta__text { max-width: none; text-wrap: balance; }
.sec-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-block-start: var(--s-3);
}
.sec-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--muted);
  line-height: 1.3;
}
.sec-cta__phone-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--heading);
}
.sec-cta__phone-icon .icon { width: 18px; height: 18px; vertical-align: 0; }
.sec-cta__phone a {
  color: var(--heading);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--heading) 34%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.26em;
  border-radius: var(--r-sm);
  transition: text-decoration-color var(--t-2) ease;
}
.sec-cta--navy .sec-cta__phone a { text-decoration-color: var(--sun); }
@media (hover: hover) {
  .sec-cta__phone a:hover { text-decoration-color: var(--heading); }
}
/* touch: the phone number gets a 44px tall hit area without moving the line */
@media (max-width: 1023px), (max-width: 1279px) and (pointer: coarse) {
  .sec-cta__phone a { display: inline-block; padding-block: 11px; margin-block: -11px; }
}

@media (max-width: 899px) {
  .sec-cta__card {
    --cta-sun-w: clamp(220px, 66%, 420px);
    --cta-sun-right: -8%;
    align-items: flex-start;
    padding-block-end: calc(var(--cta-pad) + clamp(110px, 30vw, 190px));
  }
  .sec-cta__copy { max-width: none; }
  .sec-cta__br { display: none; }
}
/* r10 phones: a shorter reserve under the buttons (30vw left an empty navy band), a slightly bigger sun to fill it,
   and a shorter rise, since a phone rarely scrolls the card far enough up to finish a long one */
@media (max-width: 599px) {
  .sec-cta__card {
    --cta-sun-w: clamp(240px, 74%, 440px);
    --cta-sun-drop: clamp(50px, 8vw, 90px);
    padding-block-end: calc(var(--cta-pad) + clamp(90px, 24vw, 140px));
    /* r11: everything centres on the phone, so the sun rises from the middle of the card's lower edge */
    --cta-sun-right: calc((100% - var(--cta-sun-w)) / 2);
    justify-content: center;
  }
  .sec-cta__copy { align-items: center; text-align: center; }
  .sec-cta__actions { justify-content: center; }
  .sec-cta__phone { justify-content: center; text-align: left; }
}

/* ============================================================================================================
   2. REVIEWS - big-quote carousel
   .section.sec-reviews > .container.sec-reviews__inner > header.sec-reviews__head + .sec-reviews__stage
   stage > .sec-reviews__mark (giant soft quote mark rising behind the cards) + .carousel.sec-reviews__carousel
   Desktop: head in a fixed left column, the row of cards runs off the right edge of the screen, the stock
   carousel controls (progress + arrows) sit at the foot of the head column.
   ============================================================================================================ */
.sec-reviews { overflow-x: clip; }
.sec-reviews--cream { background: var(--cream); }
.sec-reviews__inner {
  --head-w: clamp(280px, 30vw, 400px);
  --col-gap: clamp(var(--s-6), 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7) var(--col-gap);
}
.sec-reviews__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
}
.sec-reviews__title { font-size: calc(var(--fs-h2) * 0.94); line-height: 1.06; }
.sec-reviews__lead { max-width: 34ch; color: var(--text); text-wrap: pretty; }
.sec-reviews__stage { position: relative; min-width: 0; }

/* the giant soft quote mark: rises from behind the top edge of the cards */
.sec-reviews__mark {
  position: absolute;
  z-index: -1;
  left: clamp(var(--s-2), 1.6vw, var(--s-5));
  top: 0;
  width: clamp(170px, 17vw, 250px);
  translate: 0 -60%;
  color: var(--sun);
  opacity: 0.5;               /* on the element, so the icon's fill and stroke flatten into one soft shape */
  clip-path: inset(0 0 calc(40% - var(--r-xl)) 0);   /* nothing shows in the gap between two cards below their corners */
  line-height: 0;
  pointer-events: none;
}
.sec-reviews__mark .icon { display: block; width: 100%; height: auto; fill: currentColor; stroke-width: 1.4; }

.sec-reviews__carousel { --carousel-gap: var(--s-5); --carousel-pad-block: var(--s-6); --bleed-r: var(--gutter); }
/* end spacer: the last card comes to rest against the container's right edge, not the edge of the screen */
.sec-reviews__carousel .carousel__track::after {
  content: "";
  flex: 0 0 calc(var(--bleed-r) - var(--carousel-gap));
}
.sec-reviews__slide { display: flex; }
.sec-reviews__card {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  width: 100%;
  padding: clamp(var(--s-6), 3.8vw, 56px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.sec-reviews__card > * { transition: opacity var(--t-3) var(--ease-out); }
.sec-reviews__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
  min-height: 28px;
}
.sec-reviews__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 0.85rem + 1vw, 1.75rem);
  line-height: 1.32;
  letter-spacing: -0.018em;
  color: var(--heading);
  quotes: "\201C" "\201D";
}
.sec-reviews__quote p { text-indent: -0.44em; text-wrap: pretty; }   /* the opening mark hangs outside the text edge */
.sec-reviews__quote p::before { content: open-quote; }
.sec-reviews__quote p::after { content: close-quote; }
.sec-reviews__by {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-block-start: auto;
  padding-block-start: var(--s-4);
}
.sec-reviews__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sec-reviews__who { display: grid; min-width: 0; margin-inline-end: auto; line-height: 1.3; }
.sec-reviews__author { font-weight: 700; color: var(--heading); }
.sec-reviews__relation { font-size: var(--fs-small); color: var(--muted); }
.sec-reviews__source {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 30px;
  padding: 0.2em 0.85em;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

/* with JS: the card you are reading is at full strength, its neighbours wait quietly (click one to bring it forward).
   Only the content fades; the card itself stays solid so nothing behind it shows through. */
.sec-reviews.is-live .sec-reviews__slide:not(.is-current) .sec-reviews__card > * { opacity: 0.4; }
@media (hover: hover) and (pointer: fine) {
  .sec-reviews.is-live .carousel:not(.is-dragging) .sec-reviews__slide:not(.is-current) { cursor: pointer; }
  .sec-reviews.is-live .sec-reviews__slide:not(.is-current):hover .sec-reviews__card > * { opacity: 0.72; }
}

@media (min-width: 1000px) {
  .sec-reviews__inner { grid-template-columns: var(--head-w) minmax(0, 1fr); }
  /* room at the foot of the column for the carousel controls */
  .sec-reviews__head { padding-block: var(--s-2) calc(48px + var(--s-7)); }
  .sec-reviews__carousel {
    --pv: 1.12;
    --fade-l: var(--s-7);
    --bleed-r: max(var(--gutter), calc((100vw - var(--container)) / 2));
  }
  /* cards leave through a short fade on the left and run off the screen edge on the right */
  .sec-reviews__carousel .carousel__viewport {
    margin-left: calc(-1 * var(--fade-l));
    padding-left: var(--fade-l);
    scroll-padding-left: var(--fade-l);
    margin-right: calc(-1 * var(--bleed-r));
    padding-right: var(--bleed-r);
    border-radius: 0;
    -webkit-mask-image: linear-gradient(to right, transparent, var(--navy) var(--fade-l));
    mask-image: linear-gradient(to right, transparent, var(--navy) var(--fade-l));
  }
  .sec-reviews__carousel .carousel__controls {
    position: absolute;
    left: calc(-1 * (var(--head-w) + var(--col-gap)));
    bottom: 0;
    width: var(--head-w);
    margin: 0;
  }
}
@media (max-width: 999px) {
  /* stacked: the mark moves to the right so it never sits behind the title */
  .sec-reviews__mark { left: auto; right: var(--s-5); width: clamp(110px, 20vw, 170px); }
  /* the review-site chip drops under the name when the row is narrow (it was squeezing "Father of child" to one word a line) */
  .sec-reviews__by { flex-wrap: wrap; row-gap: var(--s-2); }
  .sec-reviews__who { flex: 1 1 8em; }
  /* r10: every card is as tall as the longest review; a short one now sits its quote in the middle of the card,
     between the stars and the author, instead of leaving one big gap above the name */
  .sec-reviews__quote { margin-block: auto; }
  .sec-reviews__by { margin-block-start: 0; }
}
@media (max-width: 599px) {
  /* r11: the head ("Parents say / In parents' own words") centres on the phone; the long quotes stay left in their cards */
  .sec-reviews__head { align-items: center; text-align: center; }
  .sec-reviews__lead { margin-inline: auto; text-wrap: balance; }
  .sec-reviews__card { gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-6); }
  .sec-reviews__quote { font-size: 1.1875rem; line-height: 1.42; }
}
@media (prefers-reduced-motion: reduce) {
  .sec-reviews__card > * { transition: none; }
}

/* ============================================================================================================
   3. PHONE - the parent app's daily feed
   .sec-phone > .sec-phone__float > .sec-phone__body > .sec-phone__screen > status + bar + feed (.sec-phone__item × 4)
   ONE custom property sizes it: --phone-w (default 300px). Set it on the phone or on any ancestor.
   Every inner length is in em of the root, whose font-size is --phone-w / 18.75 (= 16px at 300px).
   ============================================================================================================ */
.sec-phone {
  --_w: var(--phone-w, 300px);
  position: relative;
  flex: none;
  width: var(--_w);
  font-family: var(--font-body);
  font-size: calc(var(--_w) / 18.75);
  line-height: 1.25;
  color: var(--navy);
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}
.sec-phone__body {
  position: relative;
  aspect-ratio: 300 / 612;
  padding: 0.6em;
  border-radius: 3em;
  background: var(--navy-deep);
  box-shadow:
    inset 0 0 0 0.08em color-mix(in srgb, var(--white) 26%, transparent),
    inset 0 0 0 0.24em var(--navy),
    0 0.4em 0.9em color-mix(in srgb, var(--navy) 10%, transparent),
    0 2.6em 4.2em -1.5em color-mix(in srgb, var(--navy) 44%, transparent);
}
/* side keys */
.sec-phone__key {
  position: absolute;
  width: 0.22em;
  border-radius: 0.11em;
  background: var(--navy-deep);
}
.sec-phone__key--a { left: -0.15em; top: 17%; height: 4.4%; }
.sec-phone__key--b { left: -0.15em; top: 24.4%; height: 8%; }
.sec-phone__key--c { right: -0.15em; top: 21.5%; height: 11.5%; }
.sec-phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 2.42em;
  background: var(--cream);
  overflow: hidden;
}
.sec-phone__status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 2.85em;
  padding: 0.5em 1.6em 0;
}
.sec-phone__time { font-size: 0.78em; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sec-phone__island {
  position: absolute;
  left: 50%;
  top: 0.62em;
  width: 5.1em;
  height: 1.55em;
  translate: -50% 0;
  border-radius: 1em;
  background: var(--navy-deep);
}
.sec-phone__signal { display: block; width: 2.6em; height: 0.72em; fill: currentColor; }
.sec-phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: 0.6em 1.1em 0.6em 1.2em;
}
.sec-phone__app {
  font-family: var(--font-display);
  font-size: 1.42em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.sec-phone__today {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.95em 0.5em 0.8em;
  border-radius: 2em;
  background: var(--white);
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1;
}
.sec-phone__today::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0.22em var(--leaf-soft);
}
.sec-phone__feed {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5em;
  min-height: 0;
  padding: 0.1em 0.7em 2.05em;
}
/* photo post */
.sec-phone__post {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.55em;
  min-height: 0;
  padding: 0.6em 0.6em 0.72em;
  border-radius: 1.3em;
  background: var(--white);
  box-shadow: 0 0.05em 0.1em color-mix(in srgb, var(--navy) 5%, transparent), 0 0.5em 1.1em -0.5em color-mix(in srgb, var(--navy) 16%, transparent);
}
.sec-phone__post-head { display: flex; flex: none; align-items: center; gap: 0.5em; padding-inline: 0.1em; }
.sec-phone__dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
}
.sec-phone__dot .sun { width: 1.15em; color: inherit; vertical-align: 0; }
.sec-phone__meta { display: grid; min-width: 0; margin-inline-end: auto; line-height: 1.2; }
.sec-phone__meta b { font-size: 0.78em; font-weight: 700; }
.sec-phone__meta span { font-size: 0.64em; color: var(--muted); }
.sec-phone__heart {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}
.sec-phone__heart .icon { width: 0.95em; height: 0.95em; fill: currentColor; vertical-align: 0; }
.sec-phone__photo {
  flex: 1 1 0;
  min-height: 0;              /* the photo takes whatever height the rows leave, so the feed always fills the screen */
  border-radius: 0.9em;
  background: var(--peach);
  overflow: hidden;
}
.sec-phone__photo > img, .sec-phone__photo > .img-missing {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 50%);
}
.sec-phone__photo > .img-missing { aspect-ratio: auto; padding: 0.5em; }
.sec-phone__line { flex: none; padding-inline: 0.15em; font-size: 0.82em; font-weight: 600; line-height: 1.3; text-wrap: balance; }
/* compact rows */
.sec-phone__row {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 0.7em 0.5em 0.6em;
  border-radius: 1.05em;
  background: var(--white);
  box-shadow: 0 0.05em 0.1em color-mix(in srgb, var(--navy) 5%, transparent);
}
.sec-phone__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--leaf-soft);
}
.sec-phone__ico--sky { background: var(--sky-soft); }
.sec-phone__ico--sun { background: var(--sun); }
.sec-phone__ico .icon { width: 1.05em; height: 1.05em; vertical-align: 0; }
.sec-phone__txt { display: grid; min-width: 0; margin-inline-end: auto; line-height: 1.22; }
.sec-phone__txt b { font-size: 0.78em; font-weight: 700; }
.sec-phone__txt span { font-size: 0.66em; color: var(--muted); }
.sec-phone__aside { flex: none; font-size: 0.64em; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-phone__tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--white);
}
.sec-phone__tick .icon { width: 0.8em; height: 0.8em; stroke-width: 3; vertical-align: 0; }
/* the parent's reply */
.sec-phone__reply {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.4em;
  padding-block-start: 0.15em;
  transform-origin: 100% 100%;
}
.sec-phone__bubble {
  padding: 0.62em 1em;
  border-radius: 1.4em 1.4em 0.4em 1.4em;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1.25;
}
.sec-phone__reply .sec-phone__ico { width: 1.7em; height: 1.7em; }
.sec-phone__reply .sec-phone__ico .icon { width: 0.92em; height: 0.92em; }
.sec-phone__home {
  position: absolute;
  left: 50%;
  bottom: 0.5em;
  width: 34%;
  height: 0.3em;
  translate: -50% 0;
  border-radius: 1em;
  background: color-mix(in srgb, var(--navy) 26%, transparent);
}

/* motion: the feed arrives one item after another once the phone is properly in view (.is-on, set by shared.js),
   then the phone floats very gently while it is on screen (.is-inview). */
@media screen and (prefers-reduced-motion: no-preference) {
  html.js .sec-phone:not(.is-on) .sec-phone__item { opacity: 0; translate: 0 0.85em; }
  html.js .sec-phone:not(.is-on) .sec-phone__reply { translate: 0 0; scale: 0.86; }
  html.js .sec-phone.is-on .sec-phone__item {
    transition:
      opacity var(--t-3) var(--ease-out) calc(var(--i, 0) * 130ms + 120ms),
      translate var(--t-4) var(--ease-out) calc(var(--i, 0) * 130ms + 120ms);
  }
  /* the reply lands a beat later, with a small pop */
  html.js .sec-phone.is-on .sec-phone__reply {
    transition:
      opacity var(--t-2) var(--ease-out) calc(var(--i, 0) * 130ms + 420ms),
      scale var(--t-3) var(--ease-spring) calc(var(--i, 0) * 130ms + 420ms);
  }
  /* engine never started: show the feed anyway (same failsafe as motion.css) */
  html.js:not(.bs-motion) .sec-phone:not(.is-on) .sec-phone__item { animation: bs-motion-failsafe 1ms linear 3s both; }

  .sec-phone.is-inview:not(.sec-phone--still) .sec-phone__float { animation: sec-phone-float 8s var(--ease-in-out) infinite; }
}
@keyframes sec-phone-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -0.55em; rotate: 0.5deg; }
}

/* ==== sections/tb-about-a.css ==== */
/* sections/tb-about-a.css - Thornliebank About: mission (navy card), activities (timeline), the "Parents say" quote strip slideshow (qs),
   our provision (card stack, pv) and the settling-in overrides. r6: one layout per section, no Design Lab groups left on this page.
   Markup: src/sections/tb-about/{mission,activities,break,provision}.njk + the settling-in block in pages/thornliebank/about.njk.
   NB this file loads BEFORE pages/tb-about.css (build order: sections → pages), so overrides of page rules are scoped with .page-tb-about.
   r4 rules: generous padding, ≥15px text (16-17px for reading), line-height ≥1.6, contained colour blocks, soft fades to white. */

/* ============================================================ mission · navy card ============================================================
   One contained navy card: the copy block (.tb-about-mi__…) beside one arched photo (.tb-about-mi1__…).
   r5: the photo stays INSIDE the card (client: "the picture on Navy card is too tall"). */
.tb-about-mi {
  --mi-pad: clamp(56px, 6vw, 92px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
  padding: var(--mi-pad) clamp(28px, 6vw, 92px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--navy-soft) 85%, transparent), transparent 70%),
    var(--navy);
  box-shadow: var(--shadow-2);
}
.tb-about-mi__copy { display: grid; justify-items: start; align-content: center; gap: var(--s-5); }
.tb-about-mi__title { max-width: 18ch; }
.tb-about-mi__quote { position: relative; margin: 0; padding-inline-start: var(--s-7); }
.tb-about-mi__quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.12em;
  font-family: var(--font-accent);
  font-size: 4rem;
  line-height: 1;
  color: var(--sun);
}
.tb-about-mi__quote p {
  max-width: 40ch;
  font-family: var(--font-accent);
  font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.5rem);
  line-height: 1.6;
  color: var(--white);
  text-wrap: pretty;
}
.tb-about-mi__values { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.tb-about-mi__values li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 8px 20px 8px 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 16%, transparent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.tb-about-mi__value-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
}
.tb-about-mi__value-icon .icon { width: 17px; height: 17px; }
.tb-about-mi__copy .tb-about-mi__values { margin-inline-start: var(--s-7); }
.tb-about-mi__with {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  max-width: 58ch;
  padding-block-start: var(--s-5);
  border-block-start: 1px solid color-mix(in srgb, var(--white) 16%, transparent);
  line-height: 1.7;
  color: color-mix(in srgb, var(--white) 84%, var(--navy));
}
.tb-about-mi__copy .tb-about-mi__with { margin: var(--s-3) 0 0 var(--s-7); }
.tb-about-mi__with strong { color: var(--sun); }
.tb-about-mi__with-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: var(--white); }
.tb-about-mi__with-icon .icon { width: 19px; height: 19px; fill: currentColor; }

/* ---------------------------------------------------------------- mi1 · Navy card (default): one arched photo inside the card */
@media (min-width: 900px) { .tb-about-mi1__card { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr); gap: clamp(var(--s-7), 5vw, var(--s-9)); } }
.tb-about-mi1__figure { position: relative; margin: 0; isolation: isolate; }
.tb-about-mi1__photo { --ar: 1 / 1.02; border-radius: 999px 999px var(--r-xl) var(--r-xl); box-shadow: var(--shadow-3); }
.tb-about-mi1__sun { position: absolute; z-index: 2; right: -30px; top: -26px; width: 104px; color: var(--sun); }
.tb-about-mi1__cap {
  position: absolute;
  z-index: 2;
  left: -28px;
  bottom: var(--s-7);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-2);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--navy);
}
.tb-about-mi1__cap .icon { color: var(--red); }

/* ============================================================ activities · shared head + graduation tile (r5) ============================================================ */
.tb-about-act-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5) clamp(var(--s-7), 7vw, var(--s-10));
  align-items: end;
  margin-block-end: clamp(var(--s-8), 6vw, 88px);
}
@media (min-width: 900px) { .tb-about-act-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tb-about-act-head .eyebrow { margin-block-end: var(--s-4); }
.tb-about-act-head__intro { display: grid; gap: var(--s-3); max-width: 52ch; }
.tb-about-act-head__intro p:not(.lead) { color: var(--muted); }
.tb-about-act-grad {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(70% 60% at 50% 45%, var(--navy-soft), var(--navy));
}
.tb-about-act-grad__rays { position: absolute; z-index: -1; left: 50%; top: 50%; width: 78%; translate: -50% -50%; color: var(--sun); opacity: 0.95; }
.tb-about-act-grad__cap { display: grid; place-items: center; width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: var(--sun); }
.tb-about-act-grad__cap .icon { width: 52%; height: 52%; stroke-width: 1.6; }
.tb-about-act-grad__spark { position: absolute; right: 12%; top: 10%; }

/* ============================================================ activities t1 · Timeline (default, r5 redesign) ============================================================
   A dashed wave joins four numbered stops; stops 2 and 4 sit lower, so the path rises and falls. Tall rounded photos, words left-aligned. */
.tb-about-t1 { --t1-drop: clamp(56px, 6vw, 88px); --t1-node: 48px; }
.tb-about-t1__wrap { position: relative; }
.tb-about-t1__wave { display: none; }
.tb-about-t1__track { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) {
  .tb-about-t1__track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(var(--s-6), 3.2vw, 48px); }
  .tb-about-t1__stop:nth-child(even) { margin-block-start: var(--t1-drop); }
  .tb-about-t1__wave {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--t1-node) / 2);
    width: 100%;
    height: var(--t1-drop);
    overflow: visible;
    stroke: color-mix(in srgb, var(--red) 55%, transparent);
    stroke-width: 2;
    stroke-dasharray: 2 9;
    stroke-linecap: round;
  }
}
.tb-about-t1__stop { position: relative; display: grid; align-content: start; justify-items: start; gap: var(--s-5); }
.tb-about-t1__node {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: var(--t1-node);
  height: var(--t1-node);
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--red), 0 0 0 8px var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-text);
}
.tb-about-t1__node--last { background: var(--sun); box-shadow: inset 0 0 0 2px var(--sun-deep), 0 0 0 8px var(--paper); color: var(--navy); }
.tb-about-t1__photo { --ar: 4 / 4.8; width: 100%; aspect-ratio: 4 / 4.8; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.tb-about-t1__photo > img { transition: scale 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tb-about-t1__stop:hover .tb-about-t1__photo > img { scale: 1.04; } }
.tb-about-t1__words { display: grid; gap: var(--s-2); padding-inline: var(--s-1); }
.tb-about-t1__kicker { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-text); }
.tb-about-t1__kicker .icon { width: 17px; height: 17px; }
.tb-about-t1__name { font-size: 1.35rem; line-height: 1.3; text-wrap: balance; }
.tb-about-t1__text { font-size: 1rem; line-height: 1.7; color: var(--text); text-wrap: pretty; }

/* ============================================================ break · "Parents say" quote strip slideshow ============================================================
   r6: a soft YELLOW band (client: "maybe have that as a yellow background, so we've already got purple earlier on"), fading in and out
   of white. The italic half of each quote, the dots and the eyebrow use a deep warm gold (never red on yellow); the sun is a deeper amber
   so it still reads against the band. With JS the slides and photo pairs share one grid cell each (steady height) and cross-fade. */
.tb-about-qs { --qs-bg: color-mix(in srgb, var(--sun-soft) 62%, var(--sun-mist)); --qs-ink: #7A5300; background-color: var(--qs-bg); }
.tb-about-qs__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); align-items: center; }
@media (min-width: 900px) { .tb-about-qs__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(var(--s-7), 7vw, var(--s-10)); } }
.tb-about-qs__words { display: grid; justify-items: start; gap: var(--s-6); }
.tb-about-qs__eyebrow { color: var(--qs-ink); }
.tb-about-qs__slides { display: grid; width: 100%; }
.tb-about-qs__slide { display: grid; justify-items: start; align-content: center; gap: var(--s-5); margin: 0; }
html.js .tb-about-qs__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity 400ms var(--ease-soft), translate 550ms var(--ease-out), visibility 0s linear 400ms; }
html.js .tb-about-qs__slide.is-active { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 80ms, 80ms, 0s; }
html:not(.js) .tb-about-qs__slide:not(:first-child) { display: none; }
.tb-about-qs__quote { margin: 0; }
.tb-about-qs__quote p { max-width: 30ch; font-family: var(--font-accent); font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.2rem); line-height: 1.38; color: var(--navy); text-wrap: balance; }
.tb-about-qs__quote em { color: var(--qs-ink); }
.tb-about-qs__who { font-size: var(--fs-small); color: var(--muted); }
.tb-about-qs__who strong { color: var(--heading); }
.tb-about-qs__dots { display: flex; gap: var(--s-2); margin-block-start: var(--s-2); }
html:not(.js) .tb-about-qs__dots { display: none; }
.tb-about-qs__dot { position: relative; display: grid; place-items: center; width: 40px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: width 500ms var(--ease-out); }
.tb-about-qs__dot.is-active { width: 72px; }
.tb-about-qs__dot > span { position: relative; display: block; width: 100%; height: 4px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--qs-ink) 22%, transparent); overflow: hidden; }
.tb-about-qs__dot > span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--qs-ink); transform-origin: 0 50%; transform: scaleX(0); }
.tb-about-qs__dot.is-active > span::after { transform: scaleX(1); }
.tb-about-qs.is-playing .tb-about-qs__dot.is-active > span::after { animation: tb-about-qs-dot var(--qs-dur, 4000ms) linear both; }
.tb-about-qs.is-paused .tb-about-qs__dot.is-active > span::after { animation-play-state: paused; }
@keyframes tb-about-qs-dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tb-about-qs__dot:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
@media (hover: hover) and (pointer: fine) { .tb-about-qs__dot:hover > span { background: color-mix(in srgb, var(--qs-ink) 40%, transparent); } }

.tb-about-qs__photos { position: relative; display: grid; height: clamp(340px, 29vw, 420px); isolation: isolate; }
.tb-about-qs__pair { position: relative; grid-area: 1 / 1; }
html.js .tb-about-qs__pair { opacity: 0; transition: opacity 450ms var(--ease-soft); }
html.js .tb-about-qs__pair.is-active { opacity: 1; }
html:not(.js) .tb-about-qs__pair:not(:first-of-type) { display: none; }
.tb-about-qs__photo { position: absolute; box-shadow: var(--shadow-2); }
.tb-about-qs__photo--a { --ar: 4 / 5; left: 0; top: 0; width: 50%; }
.tb-about-qs__photo--b { --ar: 4 / 3.2; right: 0; bottom: 0; width: 58%; border-radius: var(--r-lg); box-shadow: 0 0 0 8px var(--qs-bg), var(--shadow-3); }
.tb-about-qs__photo > img { scale: 1.04; transition: scale 1100ms var(--ease-out); }
.tb-about-qs__pair.is-active .tb-about-qs__photo > img { scale: 1; }
.tb-about-qs__sun { position: absolute; z-index: 2; right: 4%; top: -6%; width: 25%; color: var(--sun-deep); }

/* ============================================================ provision · card stack (r6) ============================================================
   Heading + chapter links on top; four white cards (an inset photo beside the full detail) pin one after another. Each new card slides
   up over the last; the cards underneath ease back (scaled from their top edge, faintly dimmed: --depth from tb-about.js) and their top
   edges peek out above, so you can see the deck build. One calm palette: white cards, ONE soft accent each (red · sun · leaf · sky). */
.tb-about-pv {
  --pv-top: calc(var(--header-h) + var(--header-top) + var(--s-5));
  --pv-peek: 16px;
  /* every card is the same height, and the whole deck (card + the peeking edges) fits the screen */
  --pv-h: min(680px, calc(100dvh - var(--pv-top) - (var(--n, 4) - 1) * var(--pv-peek) - var(--s-5)));
}
.tb-about-pv-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5) clamp(var(--s-7), 7vw, var(--s-10));
  align-items: end;
  margin-block-end: clamp(var(--s-7), 5vw, 72px);
}
@media (min-width: 900px) { .tb-about-pv-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tb-about-pv-head .eyebrow { margin-block-end: var(--s-4); }
.tb-about-pv-head__intro { max-width: 54ch; line-height: 1.7; color: var(--text); }
/* the four chapter links: one calm row under the heading, a short rule above it */
.tb-about-pv-head .tb-about-pv__chips { grid-column: 1 / -1; margin-block-start: var(--s-4); padding-block-start: var(--s-6); border-block-start: 1px solid var(--line); }

/* the four tones: a soft tint (icon chips, number), a readable ink (kicker, number, the italic word) */
.tb-about-pv__card--red, .tb-about-pv__chip--red { --pv-tint: var(--red-soft); --pv-ink: var(--red-text); --pv-dot: var(--red); }
.tb-about-pv__card--sun, .tb-about-pv__chip--sun { --pv-tint: var(--sun-soft); --pv-ink: #8A5F00; --pv-dot: var(--sun-deep); }
.tb-about-pv__card--leaf, .tb-about-pv__chip--leaf { --pv-tint: var(--leaf-soft); --pv-ink: #3D7420; --pv-dot: var(--leaf); }
.tb-about-pv__card--sky, .tb-about-pv__chip--sky { --pv-tint: var(--sky-soft); --pv-ink: #1A6F84; --pv-dot: var(--sky); }

.tb-about-pv__chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.tb-about-pv__chips a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 9px 18px 9px 10px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  transition: background-color var(--t-2) ease, box-shadow var(--t-2) ease;
}
.tb-about-pv__chips a span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding-inline: 6px;
  border-radius: var(--r-pill);
  background: var(--pv-tint);
  font-size: var(--fs-micro);
  font-variant-numeric: tabular-nums;
  color: var(--pv-ink);
}
@media (hover: hover) and (pointer: fine) { .tb-about-pv__chips a:hover { background: var(--pv-tint); box-shadow: inset 0 0 0 1px transparent; } }
.tb-about-pv__chips a:focus-visible { outline: none; box-shadow: var(--focus); }

.tb-about-pv__stack { display: grid; gap: var(--s-7); margin: 0; padding: 0; list-style: none; }
.tb-about-pv__item { scroll-margin-top: calc(var(--pv-top) + var(--i, 0) * var(--pv-peek)); }
.tb-about-pv__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
  padding: 14px;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 -12px 32px -20px rgba(27, 34, 80, 0.22), var(--shadow-2);
  transform-origin: 50% 0;
  scale: calc(1 - var(--depth, 0) * 0.035);
  will-change: scale;
}
/* the cards underneath dim a touch as the deck builds */
.tb-about-pv__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--navy);
  opacity: calc(var(--depth, 0) * 0.045);
  pointer-events: none;
}
.tb-about-pv__photo { --ar: 4 / 3; border-radius: calc(var(--r-xl) - 14px); }
.tb-about-pv__body { display: grid; justify-items: start; align-content: center; gap: var(--s-4); padding: clamp(var(--s-5), 2.4vw, 36px) clamp(var(--s-4), 3.4vw, 52px); }
.tb-about-pv__kicker {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-ink);
}
.tb-about-pv__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pv-tint);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.tb-about-pv__of { margin-inline-start: auto; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.tb-about-pv__title { font-size: calc(var(--fs-h3) * 1.08); line-height: 1.22; text-wrap: balance; }
.tb-about-pv__title .accent { color: var(--pv-ink); }
.tb-about-pv__lead { max-width: 58ch; font-size: var(--fs-body); line-height: 1.65; color: var(--muted); }
.tb-about-pv__items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  width: 100%;
  margin: var(--s-1) 0 0;
  border-block-start: 1px solid var(--line);
  list-style: none;
}
.tb-about-pv__body > .tb-about-pv__items { padding: var(--s-5) 0 0; }   /* beats the base ul[class] reset */
.tb-about-pv__items li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.tb-about-pv__items li > span:last-child { display: grid; gap: 3px; font-size: 1rem; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.tb-about-pv__items strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--heading); }
.tb-about-pv__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pv-tint); color: var(--pv-ink); }
.tb-about-pv__icon .icon { width: 18px; height: 18px; }
.tb-about-pv__body .link-arrow { margin-block-start: var(--s-1); }

@media (min-width: 900px) {
  .tb-about-pv__card { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: 0; min-height: var(--pv-h); }
  .tb-about-pv__photo { --ar: auto; height: 100%; min-height: 100%; }
  .tb-about-pv__photo > img { position: absolute; inset: 0; }
  .tb-about-pv__items--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); }
  /* an odd last point takes the full width (Our team: five points → 2 · 2 · 1) */
  .tb-about-pv__items--two li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tb-about-pv__items--two li:last-child:nth-child(odd) > span:last-child { max-width: 62ch; }
}
/* the deck pins and stacks only when a whole card fits on screen */
@media (min-width: 900px) and (min-height: 760px) {
  .tb-about-pv__stack { gap: clamp(var(--s-7), 9vh, var(--s-9)); padding-block-end: var(--s-3); }
  .tb-about-pv__item { position: sticky; top: calc(var(--pv-top) + var(--i, 0) * var(--pv-peek)); }
  /* the deck's height, but a card with more points than fit (e.g. five or six frameworks) grows instead of spilling out */
  .tb-about-pv__card { height: auto; min-height: var(--pv-h); }
}
/* laptop-height screens (e.g. 1280 × 800): the same card, a little tighter inside so every card's full text still fits */
@media (min-width: 900px) and (min-height: 760px) and (max-height: 860px) {
  .tb-about-pv { --pv-peek: 13px; }
  .tb-about-pv__body { gap: var(--s-3); padding-block: 20px; }
  .tb-about-pv__items { gap: 20px; }
  .tb-about-pv__body > .tb-about-pv__items { padding-block-start: 20px; }
  .tb-about-pv__items--two { gap: 20px var(--s-6); }
  .tb-about-pv__body .link-arrow { margin-block-start: 0; }
}
@media (prefers-reduced-motion: reduce) { .tb-about-pv__card { scale: none; } }

/* ============================================================ settling in - r4: slower, larger, on white ============================================================
   Client: "Meet your key worker should be a bit slower because I can easily go through them all." Each step now takes ~76% of the
   viewport of scrolling (was 36vh), the pinned photo is back to a generous size, and the type is reading size. */
.page-tb-about .tb-about-settle__head { gap: var(--s-4); margin-block-end: clamp(var(--s-8), 6vw, var(--s-9)); }
.page-tb-about .tb-about-settle__head .lead { max-width: 54ch; }
.page-tb-about .tb-about-settle__steps { --steps-media: 47%; --steps-ar: 5 / 5.2; --steps-min: 76vh; --steps-gap: clamp(48px, 6vw, 96px); }
.page-tb-about .tb-about-settle .sticky-steps__frame { max-height: min(640px, calc(100dvh - var(--steps-top) - var(--s-8))); }
.page-tb-about .tb-about-settle .sticky-steps__list { margin-block: 0; }
.page-tb-about .tb-about-settle .sticky-steps__step { padding-block: var(--s-6); gap: var(--s-3); }
.page-tb-about .tb-about-settle .sticky-steps__title { max-width: 18ch; font-size: calc(var(--fs-h3) * 1.15); line-height: 1.2; }
.page-tb-about .tb-about-settle .sticky-steps__text { max-width: 44ch; font-size: var(--fs-lead); line-height: 1.7; }
/* r5: "a tinsy bit lower" - more air above the section; the free note sits under the heading (cream pill, link to fees#included) */
.page-tb-about .tb-about-settle { padding-block-start: calc(var(--section-y) + clamp(32px, 3.4vw, 56px)); }
/* r6: the last step already leaves half a screen of calm air under it (it sits centred in its tall slot), so the section adds no more */
.page-tb-about .tb-about-settle { padding-block-end: 0; }
.page-tb-about .tb-about-settle__head { max-width: 62rem; }
.page-tb-about .tb-about-settle__free { flex-wrap: nowrap; margin: var(--s-3) auto 0; padding: var(--s-3) var(--s-6) var(--s-3) var(--s-3); background: var(--cream); box-shadow: none; text-align: start; }
.page-tb-about .tb-about-settle__free p { font-size: 1rem; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .tb-about-t1__photo > img { transition: none; }
  html.js .tb-about-qs__slide { translate: none; }
  .tb-about-qs__photo > img { scale: 1; transition: none; }
}

/* ==== sections/tb-about-b.css ==== */
/* tb-about-b.css - Thornliebank About, part 2 (round 4, tb-about-b): outdoor, food, peace of mind, community, closing CTA.
   Markup: src/sections/tb-about/{outdoor,food,safety,community}.njk + the CTA block in src/pages/thornliebank/about.njk.
   This file loads BEFORE css/pages/tb-about.css, so overrides of its round-2 rules are scoped with .page-tb-about (body class).
   Round 4: every option the client did not keep is gone; no rule here shrinks the global spacing / type tokens. */

/* =====================================================================================================================
   Garden split - shared by Outdoor play & learning (words left, photos right) and Nutrition & food (.tb-about-gs--mirror)
   ===================================================================================================================== */
.tb-about-gs__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); align-items: center; }
@media (min-width: 900px) {
  .tb-about-gs__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(var(--s-8), 7vw, var(--s-10)); }
  .tb-about-gs--mirror .tb-about-gs__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .tb-about-gs--mirror .tb-about-gs__collage { order: -1; }
}
.tb-about-gs__copy { display: grid; justify-items: start; gap: var(--s-5); }
.tb-about-gs__copy .h2 { margin-block-start: calc(-1 * var(--s-2)); }
.tb-about-gs__copy .lead { max-width: 40ch; }
.tb-about-gs__points { display: grid; gap: var(--s-4); margin-block-start: var(--s-2); max-width: 36rem; }
.tb-about-gs__points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); align-items: center; font-size: var(--fs-body); line-height: 1.6; color: var(--text); }
.tb-about-gs__points b { font-weight: 700; color: var(--heading); }
.tb-about-gs__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--leaf-soft); color: var(--navy); }
.tb-about-gs__icon .icon { width: 1.15em; height: 1.15em; }
.tb-about-gs--food .tb-about-gs__icon { background: var(--peach); color: var(--red-text, var(--red)); }
.tb-about-gs__chip { display: inline-flex; align-items: center; gap: var(--s-2); margin-block-start: var(--s-3); padding: 10px 20px 10px 16px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--shadow-1); font-size: var(--fs-small); line-height: 1.4; color: var(--text); }
.tb-about-gs__chip > .icon { flex: none; color: var(--leaf); }
.tb-about-gs--food .tb-about-gs__chip > .icon { color: var(--red); }
.tb-about-gs__chip b { color: var(--heading); }

/* the collage: one tall arch photo, overlapping white "prints" with a handwritten caption */
.tb-about-gs__collage { position: relative; height: clamp(460px, 38vw, 560px); }
.tb-about-gs__tall { position: absolute; left: 4%; top: 0; width: 50%; margin: 0; }
.tb-about-gs__tall .media { --ar: 4 / 5.2; box-shadow: var(--shadow-2); }
.tb-about-gs__print { position: absolute; z-index: 2; width: 46%; max-width: 300px; margin: 0; padding: 10px 10px var(--s-3); border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-3); }
.tb-about-gs__print .media { border-radius: calc(var(--r-md) - 6px); }
.tb-about-gs__print figcaption { padding: var(--s-3) var(--s-2) 0; font-family: var(--font-hand); font-size: 1.3rem; line-height: 1.1; text-align: center; color: var(--heading); }
.tb-about-gs__print--a { right: 0; top: 6%; rotate: 3deg; }
.tb-about-gs__print--b { right: 12%; bottom: 0; rotate: -2.5deg; }
.tb-about-gs__sun { position: absolute; z-index: -1; left: -2%; bottom: 2%; width: 20%; color: var(--sun); }

/* mirror (food): the arch sits on the right of the collage, the print + sticker on the left */
.tb-about-gs--mirror .tb-about-gs__tall { left: auto; right: 4%; width: 52%; }
.tb-about-gs--mirror .tb-about-gs__print--a { right: auto; left: 0; top: auto; bottom: 4%; width: 54%; max-width: 340px; rotate: -3deg; }
.tb-about-gs__sticker { position: absolute; z-index: 3; left: calc(44% - 64px); top: 5%; rotate: -8deg; }
.tb-about-gs--food .tb-about-gs__tall .media { --ar: 4 / 5.4; }

/* the breastfeeding-friendly note under the food split: one calm two-column card */
.tb-about-feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-block-start: clamp(var(--s-8), 7vw, var(--s-9)); padding: var(--s-7) var(--s-6); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
@media (min-width: 900px) {
  .tb-about-feed { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s-7), 5vw, var(--s-9)); align-items: center; padding: var(--s-7) clamp(var(--s-7), 5vw, var(--s-9)); }
}
.tb-about-feed__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.tb-about-feed__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.tb-about-feed__icon .icon { width: 1.6em; height: 1.6em; }
.tb-about-feed__kicker { margin-block-end: var(--s-2); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tb-about-feed__title { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.85rem); line-height: 1.2; text-wrap: balance; }
.tb-about-feed__text { display: grid; gap: var(--s-3); padding-inline-start: 0; }
@media (min-width: 900px) { .tb-about-feed__text { padding-inline-start: clamp(var(--s-6), 4vw, var(--s-8)); border-inline-start: 1px solid var(--line); } }
.tb-about-feed__text p { font-size: var(--fs-body); line-height: 1.7; color: var(--text); text-wrap: pretty; }

/* =====================================================================================================================
   Peace of mind - Collection steps (.tb-about-s3) + the CCTV card (.tb-about-cctv). The band fades in/out (section--fade-both).
   ===================================================================================================================== */
.page-tb-about .tb-about-s3 { --fade-h: clamp(110px, 10vw, 150px); padding-block: calc(var(--section-y) + var(--s-6)); }
.page-tb-about .tb-about-s3__head { gap: var(--s-4); margin-block-end: clamp(var(--s-7), 5vw, var(--s-8)); }
.page-tb-about .tb-about-s3__grid { gap: clamp(var(--s-7), 6vw, var(--s-9)); align-items: stretch; }
@media (min-width: 900px) { .page-tb-about .tb-about-s3__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tb-about-s3__visual { position: relative; display: grid; margin: 0; }
.page-tb-about .tb-about-s3__photo { --ar: auto; aspect-ratio: auto; height: 100%; min-height: 440px; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.tb-about-s3__cap { position: absolute; left: var(--s-5); bottom: var(--s-5); display: inline-flex; align-items: center; gap: var(--s-2); padding: 10px 18px 10px 14px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--shadow-2); font-size: var(--fs-small); font-weight: 600; color: var(--heading); }
.tb-about-s3__cap .icon { color: var(--red); }
.tb-about-s3__steps { display: grid; align-content: center; gap: var(--s-2); }
.page-tb-about .tb-about-s3__step { gap: var(--s-5); padding: var(--s-5) var(--s-5) var(--s-5) var(--s-4); }
.page-tb-about .tb-about-s3__step-title { font-size: 1.3rem; line-height: 1.3; }
.page-tb-about .tb-about-s3__step p { margin-block-start: var(--s-1); font-size: var(--fs-body); line-height: 1.6; }
.page-tb-about .tb-about-s3__num { width: 48px; height: 48px; background: var(--white); }
.page-tb-about .tb-about-s3__step--pass { margin-block-start: var(--s-3); padding-block: var(--s-5); background: color-mix(in srgb, var(--white) 55%, transparent); }
.page-tb-about .tb-about-s3__pass { margin-block-start: var(--s-3) !important; }

/* CCTV: two faces stacked in one grid cell → the card is always as tall as the taller face, so opening it moves nothing */
.tb-about-cctv { margin-block-start: clamp(var(--s-7), 5vw, var(--s-8)); padding: var(--s-6); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-1); }
@media (min-width: 900px) { .tb-about-cctv { padding: var(--s-7) clamp(var(--s-7), 4vw, var(--s-8)); } }
.tb-about-cctv__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.tb-about-cctv__cam { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: var(--navy); }
.tb-about-cctv__cam .icon { width: 1.35em; height: 1.35em; }
.tb-about-cctv__title { flex: 1 1 auto; font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem); line-height: 1.2; }
.tb-about-cctv__btn { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 6px 8px 6px 22px; border: 0; border-radius: var(--r-pill); background: var(--cream); font: inherit; font-size: var(--fs-small); font-weight: 700; color: var(--heading); cursor: pointer; transition: background-color var(--t-2, 180ms) ease, transform 160ms ease; }
@media (hover: hover) and (pointer: fine) { .tb-about-cctv__btn:hover { background: var(--sun-soft); } }
.tb-about-cctv__btn:active { transform: scale(0.97); }
.tb-about-cctv__btn:focus-visible { outline: none; box-shadow: var(--focus); }
.tb-about-cctv__btn-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-1); transition: rotate 280ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease; }
.tb-about-cctv[data-open="true"] .tb-about-cctv__btn-icon { rotate: 45deg; background: var(--sun); }
.tb-about-cctv__btn-label--less, .tb-about-cctv[data-open="true"] .tb-about-cctv__btn-label--more { display: none; }
.tb-about-cctv[data-open="true"] .tb-about-cctv__btn-label--less { display: inline; }
.tb-about-cctv:not([data-open]) .tb-about-cctv__btn { display: none; }   /* no JS: both faces simply show */

.tb-about-cctv__faces { display: grid; gap: var(--s-5); margin-block-start: var(--s-6); }
.tb-about-cctv[data-open] .tb-about-cctv__faces { grid-template-areas: "face"; gap: 0; }
.tb-about-cctv[data-open] .tb-about-cctv__face { grid-area: face; transition: opacity 320ms ease, translate 420ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s; }
.tb-about-cctv[data-open="true"] .tb-about-cctv__facts,
.tb-about-cctv[data-open="false"] .tb-about-cctv__full { opacity: 0; translate: 0 8px; visibility: hidden; pointer-events: none; transition: opacity 200ms ease, translate 200ms ease, visibility 0s linear 200ms; }
@media (prefers-reduced-motion: reduce) { .tb-about-cctv[data-open] .tb-about-cctv__face { translate: none !important; } }
.tb-about-cctv__facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-content: center; }
@media (min-width: 900px) { .tb-about-cctv__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
.tb-about-cctv__facts li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); align-items: start; font-size: var(--fs-body); line-height: 1.6; color: var(--text); }
.tb-about-cctv__facts b { display: block; margin-block-end: 2px; font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--display-weight); line-height: 1.3; color: var(--heading); }
.tb-about-cctv__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--navy); }
.tb-about-cctv__full { align-self: center; }
.tb-about-cctv__full p { max-width: 82ch; font-size: var(--fs-body); line-height: 1.7; color: var(--text); text-wrap: pretty; }

/* =====================================================================================================================
   In the community - 1 · Map & distances (c2)
   ===================================================================================================================== */
.page-tb-about .tb-about-c2__grid { align-items: start; row-gap: clamp(var(--s-7), 5vw, var(--s-8)); }
.page-tb-about .tb-about-c2__copy { gap: var(--s-5); }
.page-tb-about .tb-about-c2__copy .h2 { margin-block-end: 0; }
.tb-about-c2__lead { max-width: 42ch; margin-block-end: var(--s-2); }
.page-tb-about .tb-about-c2__place { gap: var(--s-4); padding: var(--s-5) var(--s-3); }
.page-tb-about .tb-about-c2__place:nth-child(2) .tb-about-c2__icon { background: var(--sun-soft); }
.page-tb-about .tb-about-c2__place:nth-child(3) .tb-about-c2__icon { background: var(--peach); }
.page-tb-about .tb-about-c2__icon { width: 48px; height: 48px; }
.page-tb-about .tb-about-c2__words { gap: var(--s-1); }
.page-tb-about .tb-about-c2__name { font-size: 1.3rem; line-height: 1.3; }
.page-tb-about .tb-about-c2__words p { font-size: var(--fs-body); line-height: 1.6; color: var(--text); }
.page-tb-about .tb-about-c2__dist b { font-size: 1.85rem; }
.page-tb-about .tb-about-c2__dist span { margin-block-start: var(--s-1); }
@media (min-width: 900px) { .tb-about-c2__side { padding-block-start: var(--s-2); } }

/* places: a fixed value column so every row's text lines up; word values ("Weekly") a calmer size */
.page-tb-about .tb-about-c2__place { grid-template-columns: 48px minmax(0, 1fr) minmax(6.5rem, max-content); }
/* a place with no distance (no street map) lets its words run under the empty distance column */
.page-tb-about .tb-about-c2__place:not(:has(.tb-about-c2__dist)) .tb-about-c2__words { grid-column: 2 / -1; }
.page-tb-about .tb-about-c2__dist--word b { font-size: 1.35rem; letter-spacing: 0; }

/* getting here: under the map, three small cards (hover lights the place up on the map too) */
.tb-about-c2__side { display: grid; gap: var(--s-6); }
.tb-about-c2__reach { display: grid; gap: var(--s-4); }
.tb-about-c2__reach-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }
.tb-about-c2__reach-title b { font-family: var(--font-display); font-size: 1.3rem; font-weight: var(--display-weight); line-height: 1.3; color: var(--heading); }
.tb-about-c2__reach-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
@media (min-width: 900px) { .tb-about-c2__reach-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
.tb-about-c2__stop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: center; padding: var(--s-4); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease, translate 200ms ease; }
.tb-about-c2__stop.is-hl { box-shadow: var(--shadow-2); translate: 0 -2px; }
.tb-about-c2__stop:focus-visible { outline: none; box-shadow: var(--focus); }
.tb-about-c2__stop > span:last-child { display: grid; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.tb-about-c2__stop b { font-size: var(--fs-body); line-height: 1.35; color: var(--heading); }
.tb-about-c2__stop-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sky-soft); color: var(--navy); }
.tb-about-c2__stop:nth-child(2) .tb-about-c2__stop-icon { background: var(--red-soft); color: var(--red); }
.tb-about-c2__stop:nth-child(3) .tb-about-c2__stop-icon { background: var(--sun-soft); }

/* no street map (every nursery but Thornliebank, .tb-about-c2--photo): the places list beside an outdoor photo with the
   address and Google Maps under it. The photo keeps pace with a long list (Glasgow has six places); each place gets a
   tone from what it is (icon), and the icon sits with the place's name rather than floating in the middle of its text. */
.tb-about-c2--photo .tb-about-c2__place { align-items: start; }
.tb-about-c2--photo .tb-about-c2__icon { margin-block-start: 2px; color: var(--navy); }
.page-tb-about .tb-about-c2--photo .tb-about-c2__place .tb-about-c2__icon { background: var(--cream); }
.page-tb-about .tb-about-c2--photo .tb-about-c2__place .tb-about-c2__icon--tree { background: var(--leaf-soft); }
.page-tb-about .tb-about-c2--photo .tb-about-c2__place .tb-about-c2__icon--navigation { background: var(--sky-soft); }
.page-tb-about .tb-about-c2--photo .tb-about-c2__place .tb-about-c2__icon--car { background: var(--red-soft); color: var(--red); }
.page-tb-about .tb-about-c2--photo .tb-about-c2__place .tb-about-c2__icon--sparkles { background: var(--peach); }
.page-tb-about .tb-about-c2--photo .tb-about-c2__place .tb-about-c2__icon--book { background: var(--sun-soft); }
.page-tb-about .tb-about-c2--photo .tb-about-c2__place .tb-about-c2__icon--map-pin { background: var(--sun-soft); color: var(--red); }
.tb-about-c2--photo .bs-map__photo { --ar: 5 / 4; border: 0; box-shadow: var(--shadow-2); }
.tb-about-c2--photo .bs-map__photo > img { border-radius: var(--r-xl); }
@media (min-width: 900px) {
  .tb-about-c2--photo .tb-about-c2__side { position: sticky; top: calc(var(--header-h, 72px) + var(--header-top, 16px) + var(--s-6)); align-self: start; padding-block-start: var(--s-8); }
}

/* In the community on phones and tablets (r9 mobile pass; max-width queries only, desktop untouched) */
@media (max-width: 899px) {
  /* the photo (no street map) wider and shorter on tablets */
  .tb-about-c2--photo .bs-map__photo { --ar: 16 / 10; }
  .page-tb-about .tb-about-c2__grid { row-gap: var(--s-7); }
}
@media (max-width: 560px) {
  /* the map's address and button stack in a column here (map.css): the address must not keep its 15rem flex-basis as a height */
  .tb-about-c2 .bs-map__address { flex: 0 0 auto; max-width: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .tb-about-c2__reach-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-about-c2__stop { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 599px) {
  /* places: icon beside the name, the words full width under it, the distance as a small line after the words */
  .page-tb-about .tb-about-c2__place { grid-template-columns: 44px minmax(0, 1fr); align-items: start; column-gap: var(--s-4); row-gap: var(--s-2); padding: var(--s-5) 0; }
  .page-tb-about .tb-about-c2__icon { width: 44px; height: 44px; }
  .page-tb-about .tb-about-c2__name { font-size: 1.1875rem; }
  .page-tb-about .tb-about-c2__words p { font-size: 1rem; }
  .page-tb-about .tb-about-c2__dist { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; justify-items: start; gap: 0.4em; text-align: start; }
  .page-tb-about .tb-about-c2__dist b, .page-tb-about .tb-about-c2__dist--word b { font-size: 1.25rem; letter-spacing: 0; }
  .page-tb-about .tb-about-c2__dist span { margin: 0; font-size: var(--fs-small); }
  .tb-about-c2--photo .bs-map__photo { --ar: 4 / 3; }
  .tb-about-c2--photo .bs-map__photo > img { border-radius: var(--r-lg); }
  .tb-about-c2__reach-title { display: grid; gap: var(--s-1); }
  /* the street map at phone width: the station label drops under its mark and the nursery's label sits under its sun,
     so neither runs past the frame's right edge */
  .tb-about-c2 .bs-map__poi--station[data-side="right"] { flex-direction: column; align-items: flex-end; gap: 0.3em; translate: calc(-100% + var(--mark) / 2) calc(var(--mark) / -2); text-align: end; }
  .tb-about-c2 .bs-map__here-label { left: 50%; top: calc(var(--sun-size) / 2 + 0.5em); translate: -50% 0; }
}

/* ==== heroes/g6.css ==== */
/* g6.css - group home hero "1 · Sunrise" (src/heroes/group/g6.njk · src/js/heroes/g6.js).
   Rounded inset panel under the floating header, headline low on the photo (bottom-left), the sun at the top-right, a quick
   cross-fading slideshow that always plays, and only a small feathered veil behind the copy (no dark corner pool).
   The nurseries ticker strip (partials/sunrise-card.njk; round 6: no longer a Design Lab group) lives in .sunrise-slot, styled by
   src/css/heroes/sunrise-card.css; this file only places the slot. */

.hero-g6 {
  --g6-inset: var(--s-4);
  --g6-top: var(--s-2);
  --g6-pad-x: max(calc(var(--gutter) - var(--g6-inset)), calc((100% - var(--container)) / 2));
  --g6-pad-b: calc(var(--float-edge, 24px) + var(--ask-us-h, 52px) + var(--s-1));   /* content ends clear of the "Ask us" pill */
  --g6-fade: 900ms;
  --g6-veil: 1;                                      /* per slide (data-veil), set by g6.js */
  position: relative;
  padding: var(--g6-top) var(--g6-inset) 0;
  overflow-x: clip;                                  /* r4: nothing (sun, drift) can widen the page */
}

/* ---------- the panel ---------- */
.hero-g6__panel {
  position: relative;
  isolation: isolate;
  height: clamp(600px, calc(100dvh - var(--strip-h, 0px) - var(--g6-top) - var(--g6-inset)), 936px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy-deep);
  container: g6-panel / size;
}

/* ---------- slides: the incoming slide fades in OVER the outgoing one (which stays opaque), so there is never a dip ---------- */
.hero-g6__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: 50% 0%;
}
.hero-g6__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  z-index: 0;
}
.hero-g6__slide.is-prev { opacity: 1; z-index: 1; }
.hero-g6__slide.is-active {
  opacity: 1;
  z-index: 2;
  transition: opacity var(--g6-fade) var(--ease-soft);
}
html.no-js .hero-g6__slide:not(:first-child) { display: none; }
.hero-g6__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 30%);
  transform-origin: 50% 0%;                        /* the Ken Burns zoom grows down from the top edge, so faces never slide up under the header */
  will-change: transform;
}

/* ---------- legibility: one soft shade, only behind the copy ----------
   Round 2 fix: this used to be a backdrop-blurred box, which smeared the photo up to a hard vertical line beside the copy.
   Now it is only colour: a wide elliptical navy gradient that reaches full transparency well inside its own box (so it has
   no edge anywhere, and no mask is needed), helped by a tight text-shadow on the type. It lives on .hero-g6__copy::before, so
   it follows the text block; the photo's top and left edges stay clear. Its strength follows the slide (data-veil → --g6-veil)
   and fades with the photo. Measured: the lead holds ≥ 4.5:1 on every slide (see the round-2 report). */
.hero-g6__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -38% -36% -24% -26%;
  background:
    radial-gradient(closest-side at 38% 50%,
      color-mix(in srgb, var(--navy-deep) 74%, transparent) 0%,
      color-mix(in srgb, var(--navy-deep) 72%, transparent) 50%,
      color-mix(in srgb, var(--navy-deep) 60%, transparent) 66%,
      color-mix(in srgb, var(--navy-deep) 38%, transparent) 78%,
      color-mix(in srgb, var(--navy-deep) 15%, transparent) 90%,
      color-mix(in srgb, var(--navy-deep) 4%, transparent) 96%,
      transparent 100%);
  opacity: var(--g6-veil);
  transition: opacity var(--g6-fade) var(--ease-soft);
  pointer-events: none;
}
/* a whisper along the bottom edge, so the floating pills always sit on something calm */
.hero-g6__veil {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--navy-deep) 22%, transparent), transparent);
}

/* ---------- the sun ---------- */
.hero-g6__sun {
  --g6-sun: clamp(190px, 15.5vw, 290px);
  position: absolute;
  z-index: 2;
  top: calc(var(--header-clear, 88px) - var(--g6-top) + var(--s-5));
  right: calc(var(--g6-sun) * -0.42);
  width: var(--g6-sun);
  pointer-events: none;
}
.hero-g6__sun::before {
  content: "";
  position: absolute;
  inset: -34%;
  border-radius: 50%;
  background: var(--glow-sun);
  opacity: 0.5;
}
.hero-g6__sun-art { position: relative; }

/* ---------- content ---------- */
.hero-g6__inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-clear, 88px) + var(--s-5)) var(--g6-pad-x) var(--g6-pad-b);
  pointer-events: none;
}
.hero-g6__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  pointer-events: auto;
}
.hero-g6__title {
  display: grid;
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: var(--display-tracking);
  color: var(--white);
  text-shadow: 0 1px 3px color-mix(in srgb, var(--navy-deep) 35%, transparent), 0 2px 30px color-mix(in srgb, var(--navy-deep) 40%, transparent);
}
.hero-g6__line {
  display: block;
  overflow: hidden;
  /* the mask reaches well past the glyphs sideways, so it never crops the title's soft shadow into a visible vertical edge */
  padding: 0.08em 0.9em 0.16em 0.9em;
  margin: -0.08em -0.9em -0.16em -0.9em;
}
.hero-g6__line-in { display: block; white-space: nowrap; }
.hero-g6__lead {
  max-width: 26.5em;
  margin-block-start: var(--s-5);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--navy-deep) 55%, transparent), 0 1px 18px color-mix(in srgb, var(--navy-deep) 55%, transparent);
  text-wrap: balance;
}
.hero-g6__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-block-start: var(--s-6); }
.hero-g6__action { display: inline-flex; }

/* ---------- the nurseries slot: the band beside the copy, bottom-right ---------- */
.hero-g6 .sunrise-slot {
  --sc-w: min(40rem, calc(100cqw - 2 * var(--g6-pad-x) - 33rem));
  right: var(--g6-pad-x);
  bottom: var(--g6-pad-b);
  top: calc(var(--header-clear, 88px) + var(--s-6));
}
/* ---------- load choreography: the "before" frame (only with JS and motion; g6.js adds .is-live) ---------- */
@media screen and (prefers-reduced-motion: no-preference) {
  html.js .hero-g6:not(.is-live) .hero-g6__panel { clip-path: inset(22px round calc(var(--r-xl) + var(--s-5))); }
  html.js .hero-g6:not(.is-live) .hero-g6__slides { scale: 1.08; }
  html.js .hero-g6:not(.is-live) .hero-g6__line-in { translate: 0 110%; }
  html.js .hero-g6:not(.is-live) :is([data-g6-rise], [data-sc-enter]) { opacity: 0; }
  html.js .hero-g6:not(.is-live) .hero-g6__copy::before { opacity: 0; }
  html.js .hero-g6:not(.is-live) .hero-g6__sun { translate: 64% -46%; }
  html.js .hero-g6:not(.is-live) :is(.hero-g6__panel, .hero-g6__slides, .hero-g6__line-in, [data-g6-rise], [data-sc-enter], .hero-g6__sun) {
    animation: hero-g6-failsafe 700ms var(--ease-out) 4s forwards;
  }
}
@keyframes hero-g6-failsafe {
  to { opacity: 1; translate: none; scale: none; clip-path: inset(0 round var(--r-xl)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-g6 { --g6-fade: 500ms; }
}
@media (prefers-contrast: more) {
  .hero-g6__copy::before { opacity: 1; background: color-mix(in srgb, var(--navy-deep) 72%, transparent); }
}

/* ---------- r9 mobile + tablet (below 900px; desktop untouched) ----------
   The panel is taller than it is wide here, so only a slice of each 3:2 photo shows: each slide's --focus-m (mfocus in
   partials/home-heroes.njk) puts a face in that slice. The ticker strip leaves its slot beside the copy (there is no room
   beside it) and runs full width along the bottom of the panel, under the buttons. */
@media (max-width: 899.98px) {
  .hero-g6 {
    --g6-inset: 10px;
    --g6-pad-x: clamp(20px, 4.4vw, 36px);
    --g6-strip: 52px;
  }
  .hero-g6__img { object-position: var(--focus-m, var(--focus-pos, 50% 30%)); }
  .hero-g6__inner { padding-bottom: calc(var(--g6-pad-b) + var(--g6-strip) + var(--s-5)); }
  .hero-g6 .sunrise-slot {
    --sc-w: auto;
    left: var(--g6-pad-x);
    right: var(--g6-pad-x);
    top: auto;
    bottom: var(--g6-pad-b);
    width: auto;
    height: var(--g6-strip);
  }
  .hero-g6__sun { --g6-sun: clamp(130px, 30vw, 200px); }
}
@media (max-width: 599.98px) {
  .hero-g6__panel { height: clamp(560px, calc(100svh - var(--g6-top) - var(--g6-inset)), 860px); }
  .hero-g6__title { font-size: clamp(2.05rem, 1.1rem + 4.6vw, 2.5rem); }
  .hero-g6__lead { margin-block-start: var(--s-4); font-size: 1.0625rem; }
  /* r11: the client did not like the two buttons "taking up the full thing": they keep their natural width now, centred
     (side by side when both fit, otherwise one above the other at the same width) */
  .hero-g6__actions { justify-content: center; gap: var(--s-3); margin-block-start: var(--s-5); width: 100%; }
  .hero-g6__action { flex: none; }
  .hero-g6__action .btn { min-width: 232px; min-height: 50px; justify-content: center; }
  /* r11: the copy centres on the phone, like the rest of the site; its soft shade moves to sit evenly behind it */
  .hero-g6__copy { width: 100%; align-items: center; text-align: center; }
  .hero-g6__title { justify-items: center; }
  .hero-g6__lead { margin-inline: auto; }
  .hero-g6__copy::before {
    inset: -38% -30% -24%;
    background:
      radial-gradient(closest-side at 50% 50%,
        color-mix(in srgb, var(--navy-deep) 74%, transparent) 0%,
        color-mix(in srgb, var(--navy-deep) 72%, transparent) 50%,
        color-mix(in srgb, var(--navy-deep) 60%, transparent) 66%,
        color-mix(in srgb, var(--navy-deep) 38%, transparent) 78%,
        color-mix(in srgb, var(--navy-deep) 15%, transparent) 90%,
        color-mix(in srgb, var(--navy-deep) 4%, transparent) 96%,
        transparent 100%);
  }
}

/* ==== heroes/sunrise-card.css ==== */
/* sunrise-card.css - the "eight nurseries" ticker strip of the Sunrise hero (partials/sunrise-card.njk).
   Round 6: the client kept only the Ticker strip; the other four options and the Design Lab group were deleted.
   It sits in the .sunrise-slot, which g6.css places bottom-right beside the copy (--sc-w). The slot is a size container (sc). */

.sunrise-slot {
  position: absolute;
  z-index: 4;
  width: var(--sc-w, 36rem);
  container: sc / size;
  pointer-events: none;
}
.sunrise-card { position: absolute; inset: 0; }
.sunrise-card [data-sc-enter] { pointer-events: auto; }

/* ============================ Ticker strip: a slim glass strip, the names drift past ============================ */
.sc-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 52px;
  padding: 6px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-2);
}
.sc-ticker__tag {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  height: 40px;
  align-items: center;
  padding: 0 var(--s-4) 0 var(--s-4);
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--navy);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-2) ease, color var(--t-2) ease, scale var(--t-1) var(--ease-out);
}
.sc-ticker__num { font-family: var(--font-display); font-size: 1.35rem; font-weight: var(--display-weight); letter-spacing: -0.02em; line-height: 1; }
.sc-ticker__tag:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) {
  .sc-ticker__tag:hover { background: var(--navy); color: var(--white); }
}
.sc-ticker__marquee {
  flex: 1;
  min-width: 0;
  --marquee-gap: var(--s-6);
  --marquee-fade: var(--s-6);
}
.sc-ticker__marquee .marquee__track { flex-wrap: nowrap; justify-content: flex-start; margin: 0; max-width: none; }
.sc-ticker__marquee .marquee__item { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--navy); }
.sc-ticker__marquee .marquee__item a { display: inline-block; padding: 0.55em 0.1em; }
/* reduced motion / no JS: no drift, so the strip shows as many names as fit and the tag leads to the full list */
@media (prefers-reduced-motion: reduce) {
  .sc-ticker__marquee { overflow: hidden; }
}

/* ---------- materials ---------- */
@media (prefers-reduced-transparency: reduce) {
  .sunrise-card .glass { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .sunrise-card .glass { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--navy); }
}

/* ==== heroes/t2.css ==== */
/* t2.css - Thornliebank hero "Blob & badges": copy left on cream, a scrapbook photo cluster right.
   Markup: src/heroes/thornliebank/t2.njk · behaviour: src/js/heroes/t2.js
   The stage is a square-ish box; every piece is placed in % of it (--x / --y / --w), so the whole composition scales as one. */

.hero-t2 {
  --t2-stage-h: clamp(440px, calc(100dvh - var(--strip-h) - var(--header-clear) - 128px), 660px);
  --t2-bleed: clamp(24px, calc(24px + (100vw - 1280px) * 0.2), 120px);   /* how far the stage leans past the container, to the right */
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(640px, calc(100dvh - var(--strip-h)), 900px);
  padding-block: calc(var(--header-clear) + var(--s-7)) var(--s-8);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: var(--cream);
  color: var(--text);
  overflow: clip;
}
/* r4: on the Thornliebank home the "at a glance" ribbon rests ON the hero's colour ("a bit higher on the yellow
   background"): the hero keeps extra room at its foot and the ribbon is pulled up into it (pages/tb-home.css,
   --tb-ribbon-lift). Not on the lab harness page, which has no ribbon. */
.page-tb-home:not(.page-lab) .hero-t2 { padding-block-end: calc(var(--s-8) + var(--tb-ribbon-room, 136px)); }
.hero-t2__inner {
  display: grid;
  grid-template-columns: minmax(0, 37.5rem) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(var(--s-5), 3vw, var(--s-7));
}

/* Design Lab mood "sunshine" turns the cream surface yellow: the paper cut-out and the phone dot go light so they still read */
:root[data-mood="sunshine"] .hero-t2 { --t2-paper: var(--paper); --t2-dot: var(--paper); }

/* ---------- copy ---------- */
.hero-t2__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.hero-t2__title {
  margin-block-start: var(--s-5);
  font-size: calc(var(--fs-h2) * 1.06);      /* the largest size at which line two still fits the column */
  line-height: 1.06;
  letter-spacing: var(--display-tracking);
}
:root[data-type="brochure"] .hero-t2__title { font-size: calc(var(--fs-h2) * 0.9); }   /* Capriola runs wide */
.hero-t2__line,
.hero-t2__line-in { display: block; white-space: nowrap; }
.hero-t2__squiggle { --squiggle: var(--sun-deep); }
/* hand-drawn strokes: one dash as long as the path (+ a gap wide enough to hide the round cap before it draws) */
.hero-t2__squiggle .squiggle__svg path { --t2-len: 208; stroke-dasharray: 200 220; }
.hero-t2__lead {
  max-width: 36rem;
  margin-block-start: var(--s-5);
}
.hero-t2__lead > span { display: block; text-wrap: balance; }      /* one thought per line group: where it is, then when it is open */
.hero-t2__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-block-start: var(--s-6);
}
.hero-t2__call {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  margin-block-start: var(--s-5);
  font-size: var(--fs-small);
  color: var(--muted);
}
.hero-t2__call-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--t2-dot, var(--sun-soft));
  color: var(--navy);
}
.hero-t2__call-icon .icon { width: 18px; height: 18px; }
.hero-t2__tel {
  color: var(--heading);
  font-size: var(--fs-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
  border-radius: var(--r-sm);
  transition: text-decoration-color var(--t-2) ease;
}
@media (hover: hover) and (pointer: fine) {
  .hero-t2__tel:hover { text-decoration-color: var(--sun-deep); }
}

/* ---------- stage ---------- */
.hero-t2__stage {
  container-type: inline-size;        /* stickers, tags and the note are sized in cqw so they scale with the composition */
  position: relative;
  justify-self: end;
  width: min(calc(100% + var(--t2-bleed)), calc(var(--t2-stage-h) * 1.04));
  aspect-ratio: 1.04;
  margin-inline-end: calc(var(--t2-bleed) * -1);
}
/* soft daylight behind the cluster, centred on the sun */
.hero-t2__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 28%;
  top: -42%;
  width: 112%;
  aspect-ratio: 1;
  background: var(--glow-sun);
  opacity: 0.5;
  pointer-events: none;
}
.hero-t2__piece {
  position: absolute;
  left: var(--x, 0%);
  top: var(--y, 0%);
  width: var(--w, auto);
  z-index: var(--z, 1);
}
.hero-t2__badges { margin: 0; }

/* the sun, half-hidden behind the big photo */
.hero-t2__piece--sun { --x: 64%; --y: 0%; --w: 38%; --z: 0; }
.hero-t2 .sun--turn .sun__rays { animation-duration: 64s; }

/* a peach paper cut-out peeking out behind the big photo */
.hero-t2__piece--paper { --x: 25%; --y: 5%; --w: 62%; --z: 1; }
.hero-t2__paper {
  aspect-ratio: 39 / 50;
  background: var(--t2-paper, var(--peach));
  rotate: -7deg;
  scale: 1.04;
  translate: -3% 3%;
}

/* photos */
.hero-t2__photo { background: var(--peach); transform-origin: var(--t2-at, 50% 50%); }
/* --t2-at: where each photo opens from (the toddler's face · the foot of the arch · the middle of the circle);
   --t2-r0 → --t2-r1: the opening circle's radius, ending just past the frame, its ring and its shadow */
.hero-t2__piece--main { --x: 25%; --y: 5%; --w: 62%; --z: 2; --t2-at: 60% 42%; --t2-r0: 14%; --t2-r1: 88%; --t2-s0: 0.93; }
.hero-t2__piece--main .hero-t2__photo { --ar: 39 / 50; }
.hero-t2__piece--arch { --x: 4%; --y: 61%; --w: 30%; --z: 3; --t2-at: 50% 100%; --t2-s0: 0.88; }
.hero-t2__piece--circle { --x: 72%; --y: 57%; --w: 26%; --z: 3; --t2-at: 50% 50%; --t2-r0: 0%; --t2-r1: 86%; --t2-s0: 0.84; }
.hero-t2__piece--arch .hero-t2__photo,
.hero-t2__piece--circle .hero-t2__photo {
  box-shadow: 0 0 0 6px var(--cream), var(--shadow-2);
}
/* frame the two faces in the round photo (a 3:2 landscape original) */
.hero-t2__piece--circle img { transform: scale(1.2); transform-origin: 50% 0%; }

/* the hand-written note */
.hero-t2__piece--note { --x: -1.5%; --y: 27%; --z: 4; }
.hero-t2__note { position: relative; }
.hero-t2__note-text {
  display: block;
  font-size: clamp(1.3rem, 4.6cqw, 1.9rem);
  max-width: 6em;
  white-space: normal;
  text-align: center;
  line-height: 0.92;
}
.hero-t2__note-text .scribble__text { padding-block-end: 0; }
.hero-t2__note-arrow {
  --arrow-size: clamp(60px, 13cqw, 88px);
  position: absolute;
  left: 44%;
  top: 96%;
  rotate: -32deg;
}
.hero-t2__note-arrow path { --t2-len: 129; stroke-dasharray: 121 140; }
.hero-t2__note-arrow path:last-child { --t2-len: 59; stroke-dasharray: 51 70; }

/* stickers */
.hero-t2__badge { --z: 5; }
.hero-t2__badge--weeks { --x: 14%; --y: 1%; --t2-d: 720ms; --t2-bob: 7.2s; }
.hero-t2__badge--ages { left: auto; right: 0; --y: 43%; --t2-d: 790ms; --t2-bob: 8.1s; --t2-tilt: 4deg; }       /* hangs off the stage's right edge */
.hero-t2__badge--funded { --x: 55%; --y: 84.5%; transform: translateX(-50%); --t2-d: 860ms; --t2-bob: 6.6s; --t2-tilt: -3deg; }   /* centred between the two small photos */
.hero-t2__sticker { --sticker-size: clamp(96px, 19cqw, 132px); }
.hero-t2__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.95em;
  padding: 0.4em 1.2em 0.4em 0.45em;
  border-radius: var(--r-pill);
  font-size: clamp(var(--fs-micro), 2.3cqw, var(--fs-small));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: var(--shadow-2);
  rotate: var(--t2-tilt, 0deg);
}
.hero-t2__tag--white { background: var(--white); color: var(--navy); }
.hero-t2__tag--navy { background: var(--navy); color: var(--white); }
.hero-t2__tag-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.15em;
  height: 2.15em;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
}
.hero-t2__tag-icon .icon { width: 1.2em; height: 1.2em; }

/* ---------- narrower than the desktop range: simple stack (not designed in this phase, just kept tidy) ---------- */
@media (max-width: 1099px) {
  .hero-t2 { min-height: 0; }
  .hero-t2__inner { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-7); }
  .hero-t2__title { font-size: var(--fs-h1); }
  .hero-t2__line,
  .hero-t2__line-in { white-space: normal; }
  .hero-t2__stage { justify-self: center; width: min(100%, 560px); margin-inline: 0; }
}

/* ---------- entrance (CSS only: starts at first paint, t2.js restarts it for the picker's replay) ----------
   copy 0-0.45s · photos open out of their masks from 0.06s · the sun rises at 0.3s · stickers pop last, 0.72-1.4s */
@media screen and (prefers-reduced-motion: no-preference) {
  .hero-t2__eyebrow { animation: hero-t2-up var(--t-4) var(--ease-out) backwards; }
  .hero-t2__line { animation: hero-t2-mask 1200ms linear; }
  .hero-t2__line-in { animation: hero-t2-rise 900ms var(--ease-out) 60ms backwards; }
  .hero-t2__line + .hero-t2__line .hero-t2__line-in { animation-delay: 150ms; }
  .hero-t2__squiggle .squiggle__svg path { animation: hero-t2-draw var(--t-4) var(--ease-in-out) 560ms backwards; }
  .hero-t2__lead { animation: hero-t2-up var(--t-4) var(--ease-out) 280ms backwards; }
  .hero-t2__actions { animation: hero-t2-up var(--t-4) var(--ease-out) 370ms backwards; }
  .hero-t2__call { animation: hero-t2-up var(--t-4) var(--ease-out) 450ms backwards; }

  /* each photo: the mask opens (clip, in-out) while the frame settles up to size and the picture eases back from a slight zoom */
  .hero-t2__bloom { animation: hero-t2-bloom var(--t-4) var(--ease-in-out) var(--t2-d, 0ms) backwards; }
  .hero-t2__photo { animation: hero-t2-settle var(--t-5) var(--ease-out) var(--t2-d, 0ms) backwards; }
  .hero-t2__photo img { animation: hero-t2-dezoom 1400ms var(--ease-out) var(--t2-d, 0ms) backwards; }
  .hero-t2__piece--main { --t2-d: 60ms; }
  .hero-t2__piece--main .hero-t2__bloom { animation-duration: 800ms; }
  .hero-t2__piece--arch { --t2-d: 240ms; }
  .hero-t2__piece--arch .hero-t2__bloom { animation-name: hero-t2-bloom-arch; }
  .hero-t2__piece--circle { --t2-d: 340ms; }
  .hero-t2__piece--circle .hero-t2__bloom { animation-name: hero-t2-bloom, hero-t2-fade; animation-duration: var(--t-4), var(--t-2); }   /* no hard dot at the very start of the iris */
  .hero-t2__paper { animation: hero-t2-paper 900ms var(--ease-out) 260ms backwards; }
  .hero-t2__sun { animation: hero-t2-sunrise var(--t-5) var(--ease-spring) 300ms backwards; }

  .hero-t2__pop {
    animation: hero-t2-pop 520ms var(--ease-spring) var(--t2-d, 0ms) backwards, hero-t2-bob var(--t2-bob, 7s) var(--ease-in-out) calc(var(--t2-d, 0ms) + 520ms) infinite;
  }
  .hero-t2__note-text { animation: hero-t2-up 460ms var(--ease-out) 800ms backwards; }
  .hero-t2__note-arrow path { animation: hero-t2-draw 340ms var(--ease-in-out) 940ms backwards; }
  .hero-t2__note-arrow path:last-child { animation-duration: 180ms; animation-delay: 1230ms; }

  /* loops rest while the hero is off screen */
  .hero-t2.is-away .hero-t2__pop,
  .hero-t2.is-away .sun__rays { animation-play-state: paused; }
  /* replay: one frame with every animation removed, then they all start again */
  .hero-t2.is-rewinding :is(.hero-t2__eyebrow, .hero-t2__line, .hero-t2__line-in, .hero-t2__lead, .hero-t2__actions, .hero-t2__call, .hero-t2__bloom, .hero-t2__photo, .hero-t2__paper, .hero-t2__sun, .hero-t2__pop, .hero-t2__note-text, img, path) { animation: none; }
}
@media screen and (prefers-reduced-motion: reduce) {
  .hero-t2__copy,
  .hero-t2__stage { animation: hero-t2-fade var(--t-2) ease backwards; }
  .hero-t2.is-rewinding :is(.hero-t2__copy, .hero-t2__stage) { animation: none; }
}

@keyframes hero-t2-fade { from { opacity: 0; } }
@keyframes hero-t2-up { from { opacity: 0; translate: 0 18px; } }
@keyframes hero-t2-mask { from, to { clip-path: inset(-0.14em -0.12em -0.3em -0.12em); } }
@keyframes hero-t2-rise { from { translate: 0 118%; } }
@keyframes hero-t2-draw { from { stroke-dashoffset: var(--t2-len, 208); } to { stroke-dashoffset: 0; } }
@keyframes hero-t2-bloom {
  from { clip-path: circle(var(--t2-r0, 0%) at var(--t2-at, 50% 50%)); }
  to { clip-path: circle(var(--t2-r1, 90%) at var(--t2-at, 50% 50%)); }
}
/* the arch rises like a little door: a round-topped window that grows upward (and ends past its ring and shadow) */
@keyframes hero-t2-bloom-arch {
  from { clip-path: inset(134% -14% -34% -14% round 999px 999px 0 0); }
  to { clip-path: inset(-14% -14% -34% -14% round 999px 999px 0 0); }
}
@keyframes hero-t2-settle { from { scale: var(--t2-s0, 0.9); } }
@keyframes hero-t2-dezoom { from { scale: 1.16; } }
@keyframes hero-t2-paper { from { opacity: 0; scale: 0.86; rotate: -22deg; } }
@keyframes hero-t2-sunrise { from { opacity: 0; scale: 0.55; rotate: -80deg; translate: -24% 28%; } }
@keyframes hero-t2-pop { from { opacity: 0; scale: 0.7; rotate: -12deg; } }
@keyframes hero-t2-bob { 50% { translate: 0 -4px; } }

/* ---------- r9 · phones: the hand-written note scales with the stage again (its 1.3rem floor pushed "Rouken Glen" onto the photo) ---------- */
@media (max-width: 599px) {
  .hero-t2__piece--note { --x: -2%; --y: 26%; }
  .hero-t2__note-text { font-size: max(14px, 4.6cqw); max-width: 5.6em; }
  .hero-t2__note-arrow { --arrow-size: 13cqw; }
}
/* the phone number is a 44px tall tap target on touch screens, without moving the line it sits in */
@media (max-width: 1279px) and (pointer: coarse) {
  .hero-t2__tel { display: inline-block; padding-block: 12px; margin-block: -12px; }
}

/* ---------- r11 · phones: the copy sits on the middle line ("centre everything"); the photo cluster is already centred ---------- */
@media (max-width: 599.98px) {
  .hero-t2__copy { align-items: center; text-align: center; }
  .hero-t2__lead { margin-inline: auto; }
  /* the eyebrow wraps on a phone: the dot rides on the first line instead of hanging off the left edge */
  .hero-t2__eyebrow { display: block; text-wrap: balance; }
  .hero-t2__eyebrow::before { display: inline-block; margin-inline: 0 0.75em; vertical-align: 0.12em; }
  .hero-t2__actions { justify-content: center; }
  .hero-t2__call { justify-content: center; }
}

/* ==== pages/about-story.css ==== */
/* about-story.css - About Bright Starts, part 2 (round 4, about-b): the journey, a day in pictures, the Famly app, our team and
   the closing invitation. Markup: src/sections/about/{journey-*,pictures-*,famly-*,team-*}.njk, included from src/pages/about.njk.
   Sorted after about.css by the build.
   Round 4 brief: "zoom out, don't squash" - every section keeps the global --section-y padding (no page-scoped shrinking),
   white page backgrounds with one soft faded band (Famly), short text at comfortable sizes (body ≥ 15px, card titles ≥ 20px,
   paragraphs line-height ≥ 1.6), large photos requested at ≥ 1.5× their CSS width. */

.about-anchor { display: block; height: 0; scroll-margin-top: var(--s-6); }

/* ============================================================ about-journey · shared centred heading ============================================================ */
.about-jhead {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  max-width: 46rem;
  margin: 0 auto clamp(56px, 5.5vw, 88px);
  text-align: center;
}
.about-jhead__lead { max-width: 58ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--text); text-wrap: balance; }

/* ============================================================ about-journey · j2 stage timeline (the only layout) ============================================================
   A centred rail; each stage is photo | dot | text, alternating sides. The rail runs from the first dot to the last. */
.about-j2__track { --ph: clamp(260px, 21vw, 310px); --dot: 22px; position: relative; }
.about-j2__rail {
  position: absolute;
  left: 50%;
  top: calc(var(--ph) / 2);
  bottom: calc(var(--ph) / 2);
  width: 3px;
  margin-inline-start: -1.5px;
  border-radius: 3px;
  background: var(--line);
}
.about-j2__rail-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, var(--sun), var(--sun-deep));
  transform-origin: 50% 0;
  transform: scaleY(var(--j2-p, 1));
}
.about-j2__rail-sun {
  position: absolute;
  left: 50%;
  top: 0;
  width: 48px;
  height: 100%;
  margin-inline-start: -24px;
  pointer-events: none;
  transform: translateY(calc(var(--j2-p, 1) * 100%));
}
.about-j2__rail-sun::before { content: ""; position: absolute; left: 2px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); }
.about-j2__rail-sun .sun { position: absolute; left: 0; top: -24px; width: 48px; color: var(--sun); filter: drop-shadow(0 2px 6px rgb(245 184 0 / 0.35)); }
html.no-js .about-j2__rail-sun { display: none; }

.about-j2__list { position: relative; display: grid; gap: clamp(48px, 4.6vw, 72px); }
.about-j2__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(88px, 8vw, 128px) minmax(0, 1fr);
  align-items: center;
}
.about-j2__photo { grid-column: 1; grid-row: 1; height: var(--ph); aspect-ratio: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-1); }
.about-j2__dot {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: relative;
  z-index: 1;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 4px var(--sun-deep), 0 0 0 6px var(--bg);
}
.about-j2__text { grid-column: 3; grid-row: 1; display: grid; justify-items: start; gap: var(--s-4); max-width: 27rem; }
.about-j2__stage--flip .about-j2__photo { grid-column: 3; }
.about-j2__stage--flip .about-j2__text { grid-column: 1; justify-self: end; }
.about-j2__age {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: var(--display-weight);
  line-height: 1.2;
  color: var(--navy);
}
.about-j2__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sun);
  font-size: 1rem;
  color: var(--navy);
}
.about-j2__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.15rem + 0.75vw, 1.85rem);
  font-weight: var(--display-weight);
  line-height: 1.25;
  color: var(--heading);
  text-wrap: balance;
}
.about-j2__body { max-width: 40ch; font-size: var(--fs-body); line-height: 1.7; color: var(--text); text-wrap: pretty; }
.about-j2__help { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; margin-block-start: var(--s-1); line-height: 1.65; }
.about-j2__help b { display: block; margin-block-end: 2px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.about-j2__help-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.about-j2__help-ico .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .about-j2__rail-fill { transform: none; }
  .about-j2__rail-sun { display: none; }
}

/* ============================================================ about-pictures · o5 one line ============================================================ */
/* the "little name" at the bottom of each photo */
.about-pic-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  max-width: calc(100% - 24px);
  padding: 6px 14px 7px 12px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 94%, transparent);
  box-shadow: var(--shadow-1);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  white-space: nowrap;
}
.about-pic-cap::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-deep); }

/* r5: "a soft fade" - the section sits on a soft warm band that melts into the page at both ends (.section--fade-both) */
.about-o5 {
  --fade-h: clamp(110px, 11vw, 170px);
  background-color: color-mix(in srgb, var(--sun-soft) 42%, var(--paper));
  padding-block: calc(var(--section-y) + clamp(24px, 3vw, 48px));
}
.about-o5__row {
  --h: clamp(280px, 23vw, 340px);
  --gap: var(--s-5);
  display: flex;
  overflow-x: clip;
  /* the row melts into the page at both ends instead of being cut off */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.about-o5__track { display: flex; flex: none; width: max-content; animation: about-run 90s linear infinite; animation-play-state: paused; }
.about-o5__set { display: flex; flex: none; gap: var(--gap); padding-inline-end: var(--gap); }
.about-o5__item figure { position: relative; margin: 0; }
.about-o5__photo { height: var(--h); aspect-ratio: 4 / 3.2; border-radius: var(--r-lg); }
.about-o5__item--port .about-o5__photo { aspect-ratio: 3 / 4; }
/* runs only while on screen (about-story.js); never pauses on hover - the client asked for that */
[data-about-run].is-inview .about-o5__track { animation-play-state: running; }
@keyframes about-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html.no-js .about-o5__track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .about-o5__track { animation: none; transform: none; }
  .about-o5__row { justify-content: center; }
}
.about-o5__head {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  max-width: 44rem;
  margin: clamp(48px, 4.5vw, 72px) auto 0;
  text-align: center;
}
.about-o5__lead { max-width: 48ch; font-size: var(--fs-lead); line-height: 1.6; text-wrap: balance; }

/* ============================================================ about-famly · k2 "Clean split" (the only design) ============================================================
   r7 (client): "a LIGHT purple with soft fades": a pale lilac band that melts out of the page and back into it
   (.section--fade-both). r9: the client chose "Clean split"; Phone and boxes, Live feed, Day of updates and the option
   group were deleted. Markup: sections/about/famly-k2.njk + _famly-data.njk. */
.about-fk {
  --famly: #581db5;                 /* Famly's own purple, sampled from its logo */
  --famly-ink: #2a0d5e;
  --famly-deep: #3a1486;
  --famly-soft: #efe8fa;
  --famly-lilac: #efe7fc;           /* the band: a pale lilac */
  --heading: var(--famly-ink);
  --text: #43376a;
  --muted: #6c5f8f;
  --line: color-mix(in srgb, var(--famly) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--famly) 26%, transparent);
  --ctx-accent: var(--famly);
  --fade-h: clamp(110px, 11vw, 170px);
  overflow-x: clip;
  background-color: var(--famly-lilac);
  padding-block: calc(var(--section-y) + clamp(16px, 2vw, 32px));   /* r8: "slightly smaller" */
  color: var(--text);
}
.about-fk-title { max-width: 18ch; text-wrap: balance; color: var(--heading); }
.about-fk-lead { max-width: 46ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--text); text-wrap: pretty; }
/* ---------- the Famly-style feed (phone screen and standalone posts); 1em = the phone's --phone-w / 18.75, or set below ---------- */
.about-feed, .about-feed__post { --heading: #241a3a; --text: #241a3a; --muted: #7b7391; }
.about-feed .sec-phone__screen { background: #f4f2f8; }
.about-feed .sec-phone__status { background: var(--famly-deep); color: var(--white); }
.about-feed .sec-phone__island { background: #12082a; }
.about-feed .sec-phone__home { background: rgba(36, 26, 58, 0.28); }
.about-feed .sec-phone__body { background: #160733; box-shadow: inset 0 0 0 0.08em color-mix(in srgb, var(--white) 26%, transparent), inset 0 0 0 0.24em #241050, 0 2.6em 4.2em -1.2em rgba(8, 0, 24, 0.6); }
.about-feed .sec-phone__key { background: #160733; }
.about-feed__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.35em 1em 0.7em 1.05em;
  background: var(--famly-deep);
  color: var(--white);
}
.about-feed__logo { display: block; width: auto; height: 1.42em; filter: brightness(0) invert(1); }
.about-feed__tools { display: inline-flex; align-items: center; gap: 0.85em; }
.about-feed__tools .icon { width: 1.12em; height: 1.12em; vertical-align: 0; }
.about-feed__bell { position: relative; display: inline-grid; }
.about-feed__bell i { position: absolute; top: -0.12em; right: -0.14em; width: 0.5em; height: 0.5em; border-radius: 50%; background: #ff5a5f; box-shadow: 0 0 0 0.14em var(--famly-deep); }
.about-feed__feed { display: flex; flex: 1 1 auto; flex-direction: column; gap: 0.5em; min-height: 0; padding: 0.6em 0.6em 0.55em; }
.about-feed__post {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.7em 0.7em 0.55em;
  border-radius: 0.95em;
  background: var(--white);
  box-shadow: 0 0.05em 0.12em rgba(40, 20, 80, 0.06), 0 0.5em 1.1em -0.6em rgba(40, 20, 80, 0.18);
  font-family: var(--font-body);
  line-height: 1.25;
  color: #241a3a;
  text-align: left;
}
.about-feed .about-feed__post { flex: 1 1 auto; }
.about-feed__head { display: flex; flex: none; align-items: center; gap: 0.55em; }
.about-feed__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  box-shadow: 0 0 0 0.14em var(--white), 0 0 0 0.26em var(--famly-soft);
}
.about-feed__avatar .sun { width: 1.25em; color: inherit; vertical-align: 0; }
.about-feed__avatar .icon { width: 1.05em; height: 1.05em; vertical-align: 0; }
.about-feed__who { display: grid; min-width: 0; margin-inline-end: auto; line-height: 1.22; color: #241a3a; }
.about-feed__who b { font-size: 0.8em; font-weight: 700; }
.about-feed__who span { font-size: 0.64em; color: #7b7391; }
.about-feed__more { display: inline-flex; gap: 0.16em; padding: 0.4em 0.1em; }
.about-feed__more i { width: 0.24em; height: 0.24em; border-radius: 50%; background: #a59fb8; }
.about-feed__text { flex: none; max-width: none; margin: 0.6em 0.05em 0.55em; font-size: 0.72em; font-weight: 500; line-height: 1.4; color: #241a3a; text-wrap: pretty; }
.about-feed__grid { display: grid; gap: 0.22em; min-height: 0; border-radius: 0.6em; overflow: hidden; }
.about-feed .about-feed__grid { flex: 1 1 0; }
.about-feed__grid--3 { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1.7fr) minmax(0, 1fr); }
.about-feed__grid--3 .about-feed__shot:first-child { grid-column: 1 / -1; }
.about-feed__grid--1 { aspect-ratio: 4 / 3; }
.about-feed__shot { display: block; min-height: 0; overflow: hidden; background: var(--famly-soft); }
.about-feed__shot > img, .about-feed__shot > .img-missing { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 40%); }
.about-feed__tag { display: flex; align-items: center; gap: 0.45em; margin-block-start: 0.6em; padding: 0.45em 0.65em; border-radius: 0.6em; background: var(--famly-soft); font-size: 0.66em; font-weight: 700; color: var(--famly); }
.about-feed__tag .icon { width: 1.3em; height: 1.3em; vertical-align: 0; }
.about-feed__acts { display: flex; flex: none; align-items: center; gap: 0.9em; margin-block-start: 0.6em; padding: 0.55em 0.15em 0; border-top: 1px solid #eeebf4; color: #6c6484; }
.about-feed__act { display: inline-flex; align-items: center; gap: 0.32em; font-size: 0.68em; font-weight: 700; }
.about-feed__act .icon { width: 1.35em; height: 1.35em; vertical-align: 0; }
.about-feed__act--on { color: var(--famly); }
.about-feed__act--on .icon { fill: currentColor; }
.about-feed__likes { margin-inline-start: auto; font-size: 0.62em; font-weight: 600; color: #9790aa; }
.about-feed__note { display: flex; flex: none; align-items: center; gap: 0.6em; padding: 0.5em 0.75em 0.5em 0.55em; border-radius: 0.95em; background: var(--white); box-shadow: 0 0.05em 0.12em rgba(40, 20, 80, 0.06); }
.about-feed__ico { display: grid; place-items: center; flex: none; width: 2em; height: 2em; border-radius: 50%; background: var(--famly-soft); color: var(--famly); }
.about-feed__ico .icon { width: 1.05em; height: 1.05em; vertical-align: 0; }
.about-feed__time { flex: none; font-size: 0.62em; font-weight: 600; color: #9790aa; font-variant-numeric: tabular-nums; }
.about-feed__tabs { display: flex; flex: none; align-items: center; justify-content: space-around; padding: 0.6em 0.8em 1.45em; background: var(--white); box-shadow: 0 -1px 0 #ebe7f2; color: #a59fb8; }
.about-feed__tabs > span { position: relative; display: inline-grid; place-items: center; width: 2.2em; height: 1.7em; border-radius: 0.85em; }
.about-feed__tabs .icon { width: 1.15em; height: 1.15em; vertical-align: 0; }
.about-feed__tabs .is-on { background: var(--famly-soft); color: var(--famly); }
.about-feed__msg i {
  position: absolute;
  top: -0.2em;
  right: 0.05em;
  display: grid;
  place-items: center;
  min-width: 1.15em;
  height: 1.15em;
  border-radius: 1em;
  background: #ff5a5f;
  color: var(--white);
  font-size: 0.6em;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

/* ---------- r8: the small facts under the points ---------- */
.about-fk-extras { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.about-fk-extras li {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.5em 1em 0.5em 0.8em;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 72%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--famly) 14%, transparent);
  font-size: var(--fs-small); font-weight: 600; line-height: 1.4; color: var(--famly-deep);
}
.about-fk-extras .icon { width: 17px; height: 17px; color: var(--famly); }

/* ---------- k2 "Clean split": the phone on a lilac circle with a logo badge (left), points as icon + text (right) ---------- */
.about-k2 { background-color: #f5f0fd; }
.about-k2 .eyebrow { --ctx-dot: var(--famly); color: var(--famly); }
.about-k2 .about-fk-title .accent { color: var(--famly); }
.about-k2__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s-7), 5.5vw, 96px); align-items: center; }
.about-k2__stage { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 560px; }
.about-k2__stage::before { content: ""; position: absolute; z-index: -1; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%; background: #e4d8f8; }
.about-k2__stage::after { content: ""; position: absolute; z-index: -1; right: 8%; top: 9%; width: 60px; aspect-ratio: 1; border-radius: 50%; background: var(--sun); opacity: 0.85; }
.about-k2__badge {
  position: absolute; z-index: 2; left: 4%; bottom: 14%;
  display: grid; place-items: center; padding: 14px 20px;
  border-radius: var(--r-lg); background: var(--white);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--famly) 12%, transparent), var(--shadow-2);
  rotate: -4deg;
}
.about-k2__badge img { display: block; width: 96px; height: auto; }
.about-k2__copy .about-fk-title { margin-block-start: var(--s-4); }
.about-k2__copy .about-fk-lead { margin-block-start: var(--s-5); }
.about-k2__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) clamp(var(--s-6), 3vw, 44px); margin: var(--s-7) 0 0; padding: 0; list-style: none; }
.about-k2-point { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.about-k2-point__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--white); color: var(--famly); box-shadow: 0 0 0 1px color-mix(in srgb, var(--famly) 12%, transparent), 0 10px 22px -16px color-mix(in srgb, var(--famly-ink) 55%, transparent); }
.about-k2-point__ico .icon { width: 21px; height: 21px; }
.about-k2-point__body { display: grid; gap: 3px; padding-block-start: 1px; font-size: 1rem; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.about-k2-point__body b { font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--display-weight); line-height: 1.3; color: var(--heading); }
.about-k2__extras { margin-block-start: var(--s-7); }

/* ============================================================ about-team · t3 faces (the only option) ============================================================ */
.about-t3__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-5) clamp(var(--s-7), 7vw, 112px);
  align-items: end;
  margin-block-end: clamp(56px, 5.5vw, 88px);
}
.about-t3__head .eyebrow { margin-block-end: var(--s-4); }
.about-t3__intro { display: grid; gap: var(--s-4); max-width: 56ch; }
.about-t3__lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--heading); text-wrap: pretty; }
.about-t3__more { line-height: 1.7; text-wrap: pretty; }
.about-t3__body {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: var(--s-7) clamp(var(--s-8), 7vw, 112px);
  align-items: center;
}
.about-t3__portrait { display: grid; gap: var(--s-5); width: min(100%, 380px); margin: 0; }
.about-t3__photo { width: 100%; }
.about-t3__name { display: grid; justify-items: start; gap: var(--s-1); padding-inline-start: var(--s-2); font-size: 1rem; line-height: 1.5; color: var(--muted); }
.about-t3__name b { font-family: var(--font-display); font-size: 1.4rem; font-weight: var(--display-weight); line-height: 1.25; color: var(--heading); }
.about-t3__years { margin-block-start: var(--s-2); padding: 5px 14px 6px; border-radius: var(--r-pill); background: var(--sun-soft); font-size: var(--fs-micro); font-weight: 700; color: var(--navy); }
.about-t3__team-k { margin-block-end: var(--s-7); text-align: center; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.about-t3__faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
.about-t3__face { display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center; }
.about-t3__face-photo {
  display: block;
  width: min(100%, 128px);
  margin-block-end: var(--s-4);
  --ar: 1 / 1;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line), var(--shadow-1);
}
.about-t3__face b { font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--display-weight); line-height: 1.3; color: var(--heading); }
.about-t3__face > span:last-child { margin-block-start: 2px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); text-wrap: balance; }
.about-t3 .about-t3__values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6) clamp(var(--s-6), 5vw, 80px);
  margin-block-start: clamp(64px, 6.5vw, 104px);
  padding-block-start: clamp(40px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.about-t3__values li { display: grid; justify-items: start; gap: var(--s-2); align-content: start; line-height: 1.65; }
.about-t3__values b { margin-block-start: var(--s-2); font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--display-weight); line-height: 1.3; color: var(--heading); }
.about-t3__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sun-soft); color: var(--navy); }
.about-t3__ico .icon { width: 20px; height: 20px; }
.about-t3__join { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-3) var(--s-4); margin-block-start: clamp(48px, 4.5vw, 72px); color: var(--muted); }

/* ============================================================ closing invitation: airy, centred, no box ============================================================ */
.about-end {
  overflow: clip;
  padding-block: calc(var(--section-y) * 0.4) calc(var(--section-y) + var(--s-6) + var(--footer-r, 48px));
  text-align: center;
}
.about-end__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: min(1100px, 96vw);
  height: 520px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sun-soft) 80%, transparent) 0, color-mix(in srgb, var(--sun-mist) 60%, transparent) 50%, transparent 100%);
}
.about-end__inner { display: grid; justify-items: center; gap: var(--s-5); max-width: 60rem; }
.about-end__sun { display: block; width: 72px; margin-block-end: var(--s-2); color: var(--sun); }
.about-end__lead { max-width: 52ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--text); text-wrap: balance; }
.about-end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin-block-start: var(--s-3); }

/* below 1000px everything simply stacks (desktop-first site) */
@media (max-width: 999px) {
  .about-k2__grid, .about-t3__head, .about-t3__body { grid-template-columns: minmax(0, 1fr); }
  .about-j2__stage, .about-j2__stage--flip { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .about-j2__stage .about-j2__photo, .about-j2__stage .about-j2__text { grid-column: 1; grid-row: auto; justify-self: start; }
  .about-j2__dot, .about-j2__rail { display: none; }
  .about-t3__faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================ r9 mobile + tablet pass (≤999px only; desktop untouched) ============================================================ */
@media (max-width: 999px) {
  /* Stage timeline → a rail down the left: each stage is photo, then its number on the rail, then the words */
  .about-j2__track { --ph: clamp(220px, 44vw, 360px); --rail-x: 13px; padding-inline-start: 44px; }
  .about-j2__rail { display: block; left: var(--rail-x); top: calc(var(--ph) + 34px); bottom: 160px; }
  .about-j2__list { gap: 56px; }
  .about-j2__stage, .about-j2__stage--flip { position: relative; gap: var(--s-4); }
  .about-j2__stage .about-j2__photo { width: 100%; }
  .about-j2__stage .about-j2__text { max-width: 36rem; }
  .about-j2__dot { display: block; position: absolute; grid-column: auto; grid-row: auto; left: calc(var(--rail-x) - 44px - var(--dot) / 2); top: calc(var(--ph) + 16px + 18px - var(--dot) / 2); }

  .about-o5 { padding-block: var(--section-y); }
  .about-k2__grid { gap: var(--s-6); }
  .about-k2__stage { min-height: 500px; }
  .about-k2__copy { max-width: 40rem; }
  .about-t3__head { gap: var(--s-4); margin-block-end: var(--s-7); }
  .about-t3__body { gap: var(--s-7); }
  .about-t3__portrait { justify-self: center; }
}

/* A day in pictures on touch screens: a row you swipe yourself (scroll snap), the next photo peeking in as the hint */
@media (max-width: 767px) {
  .about-o5__row {
    --h: clamp(220px, 58vw, 300px);
    --gap: var(--s-3);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
    justify-content: flex-start;
  }
  .about-o5__row::-webkit-scrollbar { display: none; }
  .about-o5__track { animation: none; transform: none; }
  .about-o5__row .about-o5__set { padding-inline: var(--gutter); }
  .about-o5__set[aria-hidden="true"] { display: none; }
  .about-o5__item { scroll-snap-align: start; }
  .about-o5__photo { max-width: 78vw; }
  .about-o5__head { margin-block-start: var(--s-6); }
}

@media (max-width: 639px) {
  .about-k2__stage { min-height: 460px; }
  .about-k2__badge { left: 0; bottom: 10%; }
  .about-k2__points { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-block-start: var(--s-6); }
  .about-k2__extras { margin-block-start: var(--s-6); }
  .about-t3__faces { gap: var(--s-6) var(--s-3); }
  .about-t3__face b { font-size: 1.05rem; }
  .about-t3 .about-t3__values { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .about-t3__values li { grid-template-columns: 46px minmax(0, 1fr); column-gap: var(--s-4); }
  .about-t3__values li > .about-t3__ico { grid-row: span 2; }
  .about-t3__values b { margin-block-start: 0; }
  .about-end__actions { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
}

/* r10 QA: when "Join our team" wraps under the question on phones, the question is centred too (it was left-aligned) */
@media (max-width: 767px) {
  .about-t3__join { text-align: center; }
}

/* ==== pages/about.css ==== */
/* about.css - About Bright Starts (group page).  Classes are prefixed .about-…  Markup: src/pages/about.njk
   Section order: hero (white, collage) → mission (Navy photo) → what we do → what we follow → how children learn → numbers →
   journey → a day in pictures → Famly → team → CTA.
   The option layouts of mission / provision / follow / numbers live in src/css/sections/about-a.css (round 4, builder about-a);
   journey, pictures, Famly and team (about-b) live in about-story.css. */

/* ============================================================ 1 · hero ============================================================
   r4: "About Us - I'd like it to be white": a paper hero (page-hero--paper) with only the soft sun glow in the corner. */
.about-hero.page-hero--paper { padding-block-end: clamp(var(--s-7), 4.4vw, 72px); }
@media (min-width: 900px) {
  .about-hero .about-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(var(--s-7), 5vw, var(--s-9)); }
}
.about-hero__title { max-width: none; }
.about-hero .page-hero__copy { gap: var(--s-5); }
.about-hero .page-hero__lead { max-width: 46ch; }

/* three overlapping pieces: the big story-time photo, a small print tucked under its corner, and a sun whose core is a photo */
.about-hero__collage {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: min(100%, 600px);
  aspect-ratio: 1 / 0.99;
}
.about-hero__main {
  --ar: 5 / 4.15;
  position: absolute;
  top: 8%;
  right: 0;
  width: 88%;
  box-shadow: var(--shadow-2);
}
/* load: the photo settles from a slight zoom. It is never hidden (LCP), and stays put without JS or with reduced motion. */
.about-hero__main > img { transition: scale 1600ms var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.is-loaded) .about-hero__main > img { scale: 1.09; }
}
.about-hero__side {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 37%;
}
.about-hero__side-photo {
  --ar: 4 / 4.9;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 6px var(--white), var(--shadow-3);
  rotate: -3deg;
}
.about-hero__sun {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 33%;
  aspect-ratio: 1;
}
.about-hero__sun-inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.about-hero__rays { position: absolute; inset: 0; }
.about-hero__sun-photo { width: 56%; box-shadow: 0 0 0 5px var(--sun); background: var(--sun); }
/* the sun turns slowly and for ever (r3 AA1) */
@media (prefers-reduced-motion: no-preference) {
  .about-hero__rays .sun__rays { animation: bs-sun-turn 40s linear infinite; }
}

/* ============================================================ 3 · how children learn ============================================================
   r4: back to full size (round 3 had squeezed the photo, the lead and the list). */
.about-learn__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
}
@media (min-width: 900px) {
  .about-learn__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s-7), 6vw, var(--s-9)); }
}
.about-learn__figure { justify-self: center; width: min(100%, 460px); }
.about-learn__sticker.framed__sticker { right: -5%; bottom: 3%; }
.about-learn__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.about-learn__copy .h2 { max-width: 13ch; }
.about-learn__copy .lead { max-width: 52ch; }
.about-learn__list { gap: var(--s-3); font-weight: 500; color: var(--heading); }
/* the one leaf-green moment on the page: outdoor learning */
.about-learn__outdoor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  margin-block-start: var(--s-3);
  padding: var(--s-6) var(--s-7) var(--s-6) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--leaf-soft);
}
.about-learn__outdoor-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--navy);
}
.about-learn__outdoor .h4 { font-size: 1.3rem; }
.about-learn__outdoor p { margin-block-start: var(--s-2); font-size: var(--fs-body); line-height: 1.7; }

/* numbers count up (about.js) */
.about-stats__num { display: inline-block; font-variant-numeric: tabular-nums; }

/* r10 QA: on phones the outdoor card's text was squeezed into a narrow column beside the icon; the icon now sits above */
@media (max-width: 599px) {
  .about-learn__outdoor { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-6) var(--s-5); }
}

/* r10 QA: on phones the "Learning through play" sticker reached the screen edge; it now sits inside the 20px gutter */
@media (max-width: 599px) {
  .about-learn__figure { padding-inline-end: 12px; }
  .about-learn .framed__sticker--right { right: 0; }
}

/* =====================================================================================================================
   r11 phones: the client: "About Us. Center it again." Every section's words centre on the phone; icon + text blocks put
   the icon above the words. The journey timeline keeps its rail down the left (its head is already centred).
   This file is the last About stylesheet in the bundle, so these rules follow the r9/r10 phone rules they adjust.
   ===================================================================================================================== */
@media (max-width: 599px) {
  /* How children learn with us */
  .about-learn__copy { align-items: center; text-align: center; }
  .about-learn__copy .h2, .about-learn__copy .lead { margin-inline: auto; }
  .about-learn__copy .lead { text-wrap: balance; }
  .about-learn__outdoor { justify-items: center; text-align: center; }

  /* Our mission (navy panel) */
  .about-m6__copy { justify-items: center; text-align: center; }
  .about-m6__lead, .about-m6__more { margin-inline: auto; }

  /* What we do (green intro + tiles) */
  .about-p5__intro-copy { justify-items: center; text-align: center; }
  .about-p5__intro-foot { align-self: center; }
  .about-p5__tile { align-items: center; text-align: center; }
  .about-p5__text { margin-inline: auto; }
  .about-p5__tile--key > div:last-child { align-items: center; }
  .about-p5__out-copy { justify-items: center; }
  .about-p5__tile--famly { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 28px 24px 0; }
  .about-p5__tile--famly > div:first-child { align-items: center; padding-block-end: var(--s-4); }
  .about-p5__phones { width: 112px; }

  /* The Famly app */
  .about-k2__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .about-k2__copy .about-fk-title, .about-k2__copy .about-fk-lead { margin-inline: auto; }
  .about-k2__copy .about-fk-lead { text-wrap: balance; }
  .about-k2__points { width: 100%; gap: var(--s-6); }
  .about-k2-point { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-3); }
  .about-k2-point__body { justify-items: center; max-width: 32ch; text-wrap: balance; }
  .about-fk-extras { justify-content: center; }

  /* Our team */
  .about-t3__head { justify-items: center; text-align: center; }
  .about-t3__head > div { display: flex; flex-direction: column; align-items: center; }
  .about-t3__intro { justify-items: center; }
  .about-t3__lead, .about-t3__more { text-wrap: balance; }
  .about-mgr__head { flex-direction: column; align-items: center; text-align: center; }
  .about-mgr__lead { margin-inline: auto; text-wrap: balance; }
  .about-t3__values li { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .about-t3__values li > .about-t3__ico { grid-row: auto; }
  .about-t3__values li > span:not(.about-t3__ico), .about-t3__values li > p { max-width: 34ch; text-wrap: balance; }
  .about-t3__join { text-wrap: balance; }
}

/* ==== pages/contact.css ==== */
/* contact.css - Contact (group page).  Markup: pages/contact.njk · behaviour: js/pages/contact.js
   r4 ("a bit weird, too blodged up"): clean, airy, one idea per band.
     1. .contact-find   head (question | lead) · "1 Choose a nursery" tiles + details card | "2 Send an enquiry" form card
     2. .contact-map    "From the Clyde to the Tay": key + read-out | the map (the one cream band, faded both ends)
     3. .contact-more   Book a visit · Careers - two cards with room
   Section padding comes from the global --section-y. Desktop-first (1280-1920); below 980px the columns stack. */

/* =====================================================================================================================
   1. find
   ===================================================================================================================== */
.contact-find {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-clear, 82px) + clamp(36px, 3.4vw, 52px));
  overflow: clip;
}
.contact-find__glow {
  position: absolute;
  z-index: -1;
  top: -26%;
  right: -10%;
  width: min(760px, 56vw);
  aspect-ratio: 1;
  background: var(--glow-sun);
  opacity: 0.45;
  pointer-events: none;
}
.contact-find__head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr);
  gap: var(--s-5) clamp(40px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 3.6vw, 56px);
}
.contact-find__title { margin-top: var(--s-4); font-size: clamp(2.2rem, 1.4rem + 2vw, 3.2rem); line-height: 1.1; }
/* r5: "the text is a bit too big on the top right" - plain body-size text in body colour (polish: 17px, was 18px), so the heading leads */
.contact-find__lead { max-width: 42ch; padding-bottom: 0.5em; font-size: var(--fs-body); line-height: 1.65; color: var(--text); text-wrap: pretty; }

.contact-find__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(40px, 4.4vw, 64px);
  align-items: start;
}
.contact-find__who { display: flex; flex-direction: column; min-width: 0; }

/* the two numbered steps */
.contact-find__step {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
.contact-find__step > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sun);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- the eight tiles: a radio group in a 2 × 4 grid with real gaps ---------- */
.contact-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.contact-pill { display: flex; min-width: 0; }
.contact-pill > span {
  flex: 1;
  justify-content: flex-start;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px 0 18px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-pill__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-pill__pin {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--sun);
  transition: background-color var(--t-2) ease, scale var(--t-2) var(--ease-out);
}
.contact-pill__pin::after {               /* the red centre of the chosen pin, same as on the map */
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--red);
  scale: 0.2;
  opacity: 0;
  transition: scale var(--t-3) var(--ease-out), opacity var(--t-2) ease;
}
.contact-pill__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  opacity: 0;
  scale: 0.6;
  transition: opacity var(--t-2) ease, scale var(--t-3) var(--ease-out);
}
.contact-pill__tick .icon { width: 15px; height: 15px; stroke-width: 2.6; }
/* chosen: white tile, navy ring, red pin, tick (nothing changes size) */
.contact-pill > input:checked + span { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy), var(--shadow-2); }
.contact-pill > input:checked + span .contact-pill__pin { background: var(--white); }
.contact-pill > input:checked + span .contact-pill__pin::after { scale: 1; opacity: 1; }
.contact-pill > input:checked + span .contact-pill__tick { opacity: 1; scale: 1; }
.contact-pill > input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px color-mix(in srgb, var(--sun) 70%, transparent); }
/* hovering a pin on the map (or the tile itself) warms the tile */
.contact-pill.is-hover > input:not(:checked) + span { background: var(--sun-mist); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun-deep) 45%, transparent), var(--shadow-2); }
@media (hover: hover) and (pointer: fine) {
  .contact-pill:hover > input:not(:checked) + span { background: var(--sun-mist); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun-deep) 45%, transparent), var(--shadow-2); }
  .contact-pill:hover > input:not(:checked) + span .contact-pill__pin { scale: 1.15; }
}

/* ---------- details card: the eight panels share one grid cell, so the card never changes height ---------- */
.contact-card {
  display: grid;
  margin-top: 24px;
  padding: 28px 32px 26px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.contact-card__panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
  min-width: 0;
}
/* with JS every panel is laid out; the inactive ones are invisible and out of the accessibility tree */
.contact-card.is-enhanced .contact-card__panel {
  opacity: 0;
  visibility: hidden;
  translate: 0 6px;
  transition: opacity 160ms var(--ease-soft), translate 160ms var(--ease-soft), visibility 0s linear 160ms;
}
.contact-card.is-enhanced .contact-card__panel.is-active {
  opacity: 1;
  visibility: visible;
  translate: none;
  transition: opacity 320ms var(--ease-out) 60ms, translate 420ms var(--ease-out) 60ms, visibility 0s;
}
.contact-card.is-instant .contact-card__panel { transition: none !important; }

.contact-card__head { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 22px; align-items: center; }
.contact-card__photo { --ar: 1 / 1; border-radius: var(--r-md); }
.contact-card__id { display: grid; gap: 10px; min-width: 0; }
.contact-card__name { display: grid; gap: 2px; font-size: var(--fs-h3); line-height: 1.15; }
.contact-card__kicker {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__facts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); line-height: 1.55; color: var(--ink); }
.contact-card__facts li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.contact-card__facts .icon { width: 18px; height: 18px; color: var(--muted); }

.contact-card__details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 40px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-card__item { min-width: 0; }
.contact-card__item--address { grid-column: 1 / -1; }
.contact-card__details dt { margin-bottom: 4px; font-size: var(--fs-micro); font-weight: 700; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-card__details dd { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--ink); }
.contact-card__phone,
.contact-card__email {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--t-2) ease;
}
.contact-card__phone {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--display-weight);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.contact-card__email { font-size: var(--fs-body); line-height: 1.75; overflow-wrap: anywhere; text-decoration-color: var(--line-strong); }
@media (hover: hover) {
  .contact-card__phone:hover { text-decoration-color: var(--sun-deep); }
  .contact-card__email:hover { text-decoration-color: var(--red); }
}
.contact-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 40px; }
.contact-card__maps { font-size: var(--fs-small); white-space: nowrap; }
.contact-card__soon { display: inline-flex; align-items: center; gap: 0.6em; margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.contact-card__soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-deep); }

/* ---------- the enquiry form card ---------- */
.contact-find__form { position: relative; min-width: 0; }
.contact-form {
  --card-pad: clamp(32px, 3vw, 44px);
  --card-shadow: var(--shadow-2);
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2);
  scroll-margin-top: calc(var(--header-h) + var(--header-top) + var(--s-5));
}
.contact-form:focus { outline: none; }
.contact-form__form { display: grid; gap: 28px; }
.contact-form__head .contact-find__step { margin-bottom: 14px; }
.contact-form__title { font-size: var(--fs-h3); line-height: 1.2; }
.contact-form__grid { gap: 20px 20px; }
.contact-form .field { gap: 8px; }
.contact-form .field__label { flex-wrap: wrap; column-gap: 10px; }
.contact-form .field__optional { font-size: var(--fs-micro); }
.contact-form__message .textarea { min-height: 128px; }
.contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.contact-form__call { margin: 0; font-size: var(--fs-small); }
.contact-form__call a {
  color: var(--navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
}
.contact-form__call a:hover { text-decoration-color: var(--red); }
/* success panel (built by forms.js): fill the card and keep the long title calm */
.contact-form > .form-success {
  align-content: start;
  margin: calc(var(--card-pad) * -1 + 10px);
  padding: clamp(28px, 2.8vw, 40px);
  border-radius: calc(var(--r-xl) - 10px);
}
.contact-form > .form-success .form-success__title { font-size: clamp(1.4rem, 1.15rem + 0.7vw, 1.75rem); line-height: 1.2; }
.contact-form > .form-success .form-success__text { font-size: var(--fs-body); }


/* =====================================================================================================================
   2. map - numbered map-pin markers + a numbered key
   ===================================================================================================================== */
.contact-map { --fade-h: clamp(100px, 9vw, 140px); padding-block: calc(var(--section-y) * 1.05); }
.contact-map__grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.4fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
.contact-map__stage { position: relative; min-width: 0; }
.contact-map__hint { position: absolute; z-index: 5; top: -48px; right: 2.5%; pointer-events: none; }
.contact-map__copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.contact-map__title { margin-top: var(--s-4); font-size: var(--fs-h2); }
.contact-map__lead { margin-top: var(--s-4); color: var(--ink); max-width: 38ch; text-wrap: pretty; }

.contact-map__key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; width: 100%; margin-top: var(--s-6); }
.contact-map__keybtn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 6px 14px 6px 8px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: left;
  color: var(--navy);
  cursor: pointer;
  transition: background-color var(--t-2) ease, color var(--t-2) ease, scale var(--t-1) var(--ease-out);
}
.contact-map__keynum {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--sun);
  transition: background-color var(--t-2) ease, color var(--t-2) ease;
}
.contact-map__keyname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-map__keybtn.is-hover { background: var(--sun-soft); }
@media (hover: hover) { .contact-map__keybtn:hover { background: var(--sun-soft); } }
.contact-map__keybtn:active { scale: 0.98; }
.contact-map__keybtn:focus-visible { outline: none; box-shadow: var(--focus); }
.contact-map__keybtn.is-active { background: var(--navy); color: var(--white); }
.contact-map__keybtn.is-active .contact-map__keynum { background: var(--red); color: var(--white); }

.contact-map__picked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-strong);
}
.contact-map__picked-label { font-size: var(--fs-micro); font-weight: 700; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-map__picked-name { margin-top: 4px; font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--display-weight); line-height: 1.25; color: var(--navy); }
.contact-map__picked-town { font-size: var(--fs-small); color: var(--ink); }


/* =====================================================================================================================
   3. Book a visit · Careers
   ===================================================================================================================== */
.contact-more { padding-bottom: calc(var(--section-y) + var(--footer-r, 56px)); }   /* the footer sheet slides over the last --footer-r */
.contact-more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 2.6vw, 40px); }
.contact-more__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(36px, 3.6vw, 52px);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.contact-more__card--visit { background: var(--sun-mist); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun-deep) 22%, transparent); }
.contact-more__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: var(--sun);
  color: var(--navy);
}
.contact-more__icon--soft { background: var(--cream); }
.contact-more__icon .icon { width: 26px; height: 26px; }
.contact-more__title { margin-top: var(--s-4); font-size: var(--fs-h3); line-height: 1.25; text-wrap: balance; }
.contact-more__text { margin-top: var(--s-4); max-width: 44ch; color: var(--ink); text-wrap: pretty; }
.contact-more__action { margin-top: auto; }
.contact-more__text + .contact-more__action { margin-top: 32px; }

/* the visit-request form in the modal */
.contact-visit__intro { margin-bottom: var(--s-5); font-size: var(--fs-small); color: var(--ink); }
.contact-visit__actions { margin-top: var(--s-5); }


/* =====================================================================================================================
   narrower windows (desktop is the brief; this only keeps things tidy) · reduced motion
   ===================================================================================================================== */
@media (max-width: 979.98px) {
  .contact-find__head, .contact-find__grid, .contact-map__grid, .contact-more__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .contact-pills, .contact-map__key { grid-template-columns: minmax(0, 1fr); }
  .contact-card__details { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-card.is-enhanced .contact-card__panel,
  .contact-card.is-enhanced .contact-card__panel.is-active { translate: none; transition: opacity 160ms ease, visibility 0s linear 160ms; }
  .contact-card.is-enhanced .contact-card__panel.is-active { transition: opacity 160ms ease, visibility 0s; }
  .contact-pill__pin, .contact-pill__pin::after, .contact-pill__tick { transition: none; }
}

/* Thornliebank's label sits under its pin here, clear of Inchinnan's "3" just above-left of it */
.contact-map .bs-map--markers .bs-map__item[data-slug="thornliebank"] > .bs-map__pin .bs-map__name {
  right: auto;
  left: 50%;
  top: calc(50% + 6px);
  margin-top: 0;
  translate: -50% 0;
}

/* r5: "the placeholder for child's birth or due date is a bit too high". With appearance:none some browsers (Safari, Chrome
   on macOS) put a date field's text at the top of the box instead of centring it. Give it an explicit line box and equal
   padding so the text (or mm/dd/yyyy) sits in the middle of the 46px field, like the text inputs beside it. */
.page-contact input[type="date"] {
  height: 46px;
  padding-block: 12px;
  line-height: 22px;
}
.page-contact input[type="date"]::-webkit-datetime-edit,
.page-contact input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding: 0; line-height: 22px; }
.page-contact input[type="date"]::-webkit-date-and-time-value { min-height: 22px; line-height: 22px; }
.page-contact input[type="date"]::-webkit-calendar-picker-indicator { margin-block: -6px; }

/* =====================================================================================================================
   r9 mobile + tablet pass (≤979px only; desktop untouched)
   ===================================================================================================================== */
@media (max-width: 979.98px) {
  .contact-find__head { gap: var(--s-4); }
  .contact-find__grid { gap: 48px; }
  .contact-find__form { max-width: 640px; }
  .contact-map__grid { gap: 40px; }
  .contact-more__grid { gap: 20px; }
}
@media (max-width: 560px) {
  .contact-find__head { margin-bottom: 32px; }
  .contact-pills { gap: 10px; }
  .contact-pill > span { min-height: 52px; }
  .contact-card__head { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
  .contact-card__facts { gap: 4px 14px; }
  .contact-card__facts li { white-space: normal; align-items: flex-start; }
  .contact-card__facts .icon { flex: none; margin-top: 3px; }
  /* phone and email are real tap targets */
  .contact-card__phone, .contact-card__email { display: inline-block; padding-block: 8px; margin-block: -8px; }
  .contact-card__foot .btn, .contact-map .btn { min-height: 44px; }
  .contact-form { --card-pad: 24px; }
  .contact-form__form { gap: 24px; }
  .contact-form__actions .btn { flex: 1 1 100%; justify-content: center; }
  .contact-form__call a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .contact-card { padding: 24px 20px 22px; }
  .contact-more__card { padding: 32px 24px; }
}

/* r10 QA: on tablets the form card is as wide as the nursery card above it (640px left a ragged right edge), and the
   phone, email and buttons are full tap targets on touch tablets as well as phones */
@media (max-width: 979.98px) {
  .contact-find__form { max-width: none; }
  .contact-card__phone, .contact-card__email { display: inline-block; padding-block: 8px; margin-block: -8px; }
  .contact-card__foot .btn, .contact-map .btn { min-height: 44px; }
  .contact-form__call a { display: inline-block; padding-block: 10px; margin-block: -10px; }
}
@media (max-width: 979.98px) {
  .contact-card__phone { padding-block: 9px; margin-block: -9px; }
}

/* r10 QA: below 1280px the map key's half-width pills cut "Thornliebank" and "Bridge of Allan" to "Thornlieba…"; the name
   now wraps onto a second line instead of being truncated */
@media (max-width: 1279px) {
  .contact-map__keyname { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.25; }
}

/* r10 QA: on phones the map is too small for eight labels (Inchinnan's sat under Greenock's pin, Dunfermline's under Bridge
   of Allan's). The numbered pins match the numbered list above, so only the chosen nursery keeps its label there. */
@media (max-width: 599px) {
  .contact-map .bs-map--markers .bs-map__item:not(.is-selected):not(.is-hover) .bs-map__name { display: none; }
}

/* r12 phones (≤767px): the client, on this page: "Take away the bottom bit for 8 nurseries... Take away the back. We don't
   need that... Just keep it on the computer version." The whole "Eight nurseries / From the Clyde to the Tay" band (its
   cream backing, the numbered key, the "You've chosen" read-out and the map) is hidden on phones; the nursery tiles and
   the form above already do the choosing. Tablets from 768px and desktop keep it. */
@media (max-width: 767px) {
  .contact-map { display: none; }
}

/* r12: Visits and Careers cards centred on phones, like the rest of the site */
@media (max-width: 599.98px) {
  .contact-more__card { text-align: center; align-items: center; }
  .contact-more__icon { margin-inline: auto; }
  .contact-more__action { margin-inline: auto; }
}

/* r13: the consent box is gone from the message form; a short muted line under the button says how the details are used */
.contact-form__privacy { margin: -10px 0 0; }

/* ==== pages/curriculum.css ==== */
/* curriculum.css - "Our curriculum" (group page, round 6).  Classes are prefixed .curr-…  Markup: src/sections/curriculum/body.njk
   Markup: src/sections/curriculum/body.njk (shared by every "Our curriculum" page; the page sets bodyClass "page-curriculum").
   Sections: hero → jump pills → how it fits (rings) → Being Me → Curriculum for Excellence (soft sky band) → eight areas (white,
   one soft colour per tile) → GIRFEC wheel (multi-colour) → standards (white) → food, feeding and families → funded hours
   (soft leaf band) → who registers and inspects us (logos, white) → FAQ → CTA card.
   R7 "a lot of yellow": mostly white/paper, a different soft colour per section, yellow only as small accents.
   Spacious "zoomed-out" layouts: section tokens untouched, body ≥ 16px, card titles ≥ 20px. */

/* ---------- shared bits ---------- */
.page-curriculum, .curr-fits {
  --curr-card-pad: clamp(28px, 2.6vw, 40px);
}
.curr-tone--sky { --tone: var(--sky); --tone-soft: var(--sky-soft); --tone-ink: #1C7C90; }
.curr-tone--sun { --tone: var(--sun-deep); --tone-soft: var(--sun-mist); --tone-ink: #8A6100; }
.curr-tone--red { --tone: var(--red); --tone-soft: var(--red-soft); --tone-ink: var(--red-text); }
.curr-tone--baby { --tone: var(--room-baby); --tone-soft: var(--room-baby-soft); --tone-ink: var(--room-baby); }
.curr-tone--leaf { --tone: var(--leaf); --tone-soft: var(--leaf-soft); --tone-ink: #4A7F22; }
.curr-tone--orange { --tone: var(--orange); --tone-soft: var(--orange-soft); --tone-ink: #B4531A; }
.curr-tone--tweenies { --tone: var(--room-tweenies); --tone-soft: var(--room-tweenies-soft); --tone-ink: #B23577; }
.curr-tone--preschool { --tone: var(--room-preschool); --tone-soft: var(--room-preschool-soft); --tone-ink: #9A6200; }
.curr-tone--twos { --tone: var(--room-twos); --tone-soft: var(--room-twos-soft); --tone-ink: #B2502B; }
.curr-tone--slate { --tone: #7C86C2; --tone-soft: #ECEEF8; --tone-ink: #3C4590; }

.curr-text { font-size: var(--fs-lead); line-height: 1.7; color: var(--text); max-width: 60ch; text-wrap: pretty; }
.curr-label {
  margin: 0 0 var(--s-4);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* official logos: never recoloured, never stretched */
.curr-logo { display: block; width: auto; height: 44px; max-width: 100%; object-fit: contain; }
.curr-logo--scottish-government { height: 36px; }
.curr-logo--education-scotland { height: 52px; }
.curr-logo--care-inspectorate { height: 46px; }
.curr-logo--sssc { height: 40px; }
.curr-logo--breastfeeding-friendly-scotland { height: 64px; border-radius: 6px; }
.curr-logo--famly { height: 40px; }

.curr-by { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-block-start: var(--s-6); }
.curr-by__label { font-size: 1rem; font-weight: 600; color: var(--muted); }

/* Being Me: its note ticks pick up the section's peach instead of yellow */
.curr-rta .list-check > li::before { background: var(--orange-soft); }
.curr-rta .list-check > li::after { background: #B4531A; }

/* "In our nurseries" note: a soft white card with a heart label */
.curr-note {
  margin-block-start: var(--s-6);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.curr-note__label {
  display: flex; align-items: center; gap: var(--s-2);
  margin: 0 0 var(--s-3);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red-text);
}
.curr-note__label .icon { width: 18px; height: 18px; }
.curr-note__text { margin: 0; font-size: var(--fs-body); line-height: 1.7; }
.curr-note__list { margin: 0; gap: var(--s-3); }
.curr-note--wide { max-width: 860px; margin-inline: auto; margin-block-start: var(--s-8); display: flex; gap: var(--s-6); align-items: baseline; }
.curr-note--wide .curr-note__label { flex: none; margin: 0; }
.curr-note--card { margin-block-start: auto; background: var(--tone-soft, var(--sky-soft)); border: 0; box-shadow: none; padding: var(--s-5) var(--s-6); }

.curr-center-head { max-width: 760px; margin: 0 auto var(--s-8); text-align: center; display: grid; justify-items: center; gap: var(--s-4); }
.curr-center-head .eyebrow, .curr-center-head .h2 { margin: 0; }
.curr-center-head__lead { margin: 0; font-size: var(--fs-lead); line-height: 1.7; color: var(--text); max-width: 60ch; }

/* ============================================================ 1 · hero ============================================================ */
.curr-hero.page-hero { padding-block-end: clamp(var(--s-7), 4vw, 64px); }
.curr-hero .page-hero__lead { max-width: 50ch; }
.curr-hero .page-hero__title { max-width: 13ch; }

/* jump pills */
.curr-jump { padding-block: 0 var(--s-4); }
.curr-jump__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.curr-jump .chip { box-shadow: var(--shadow-1); }

/* ============================================================ 2 · how it fits (rings) ============================================================ */
.curr-fits { padding-block-start: calc(var(--section-y) * 0.75); }
.curr-fits__grid { display: grid; gap: clamp(var(--s-7), 5vw, var(--s-9)); align-items: center; }
@media (min-width: 1000px) { .curr-fits__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

.curr-rings { position: relative; margin: 0; width: min(100%, 600px); justify-self: center; aspect-ratio: 1; }
.curr-rings__svg { display: block; width: 100%; height: auto; overflow: visible; }
.curr-ring { --c: var(--line); --ink-c: var(--navy); transform-box: view-box; transform-origin: 50% 50%; transition: opacity var(--t-3) var(--ease-out), scale var(--t-4) var(--ease-out); }
.curr-ring > circle { fill: none; stroke: var(--c); transition: stroke var(--t-3) var(--ease-out); }
.curr-ring text { fill: var(--ink-c); font-family: var(--font-body); font-weight: 700; font-size: 14.5px; letter-spacing: 0.14em; text-transform: uppercase; text-anchor: middle; }
/* r7: one crisp colour per framework, matching its section further down (yellow only for the small accents) */
.curr-ring[data-ring="girfec"] { --c: #E3D8F2; --c-on: #CBB6EA; }
.curr-ring[data-ring="rta"] { --c: #FFDCC4; --c-on: #FFC29B; }
.curr-ring[data-ring="cfe"] { --c: #C8ECF5; --c-on: #98DCEB; }
.curr-ring[data-ring="standards"] { --c: #D7EDC6; --c-on: #B7DE9C; }
.curr-ring__letter circle { fill: var(--white); stroke: none; }
.curr-ring__letter text { fill: var(--navy); font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0; text-transform: none; }
/* white hairlines between the rings */
.curr-rings__svg .curr-ring > circle { paint-order: stroke; }

.curr-rings__child { position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; }
.curr-rings__photo { width: 100%; height: 100%; --ar: 1; box-shadow: 0 0 0 6px var(--white), var(--shadow-2); }
.curr-rings__you {
  position: absolute; bottom: -12px; left: 50%; translate: -50% 0;
  padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--navy); color: var(--white);
  font-size: var(--fs-micro); font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow-1);
}

/* focus: one ring lit, the others step back */
.curr-rings.is-focus .curr-ring { opacity: 0.32; }
.curr-rings.is-focus .curr-ring.is-on { opacity: 1; }
.curr-ring.is-on > circle { stroke: var(--c-on); }

/* entrance: rings grow out from the child, one after another */
@media (prefers-reduced-motion: no-preference) {
  html.js .curr-rings:not(.is-drawn) .curr-ring { opacity: 0; scale: 0.82; }
  html.js .curr-rings:not(.is-drawn) .curr-rings__child { opacity: 0; scale: 0.8; }
  .curr-rings__child { transition: opacity var(--t-4) var(--ease-out), scale var(--t-4) var(--ease-spring); }
  .curr-ring[data-ring="girfec"] { transition-delay: 120ms; }
  .curr-ring[data-ring="rta"] { transition-delay: 240ms; }
  .curr-ring[data-ring="cfe"] { transition-delay: 360ms; }
  .curr-ring[data-ring="standards"] { transition-delay: 480ms; }
  .curr-rings.is-ready .curr-ring { transition-delay: 0ms; }
}

.curr-fits__copy .eyebrow { margin: 0 0 var(--s-4); }
.curr-fits__copy .h2 { margin: 0 0 var(--s-5); }
.curr-fits__lead { margin: 0 0 var(--s-7); font-size: var(--fs-lead); line-height: 1.7; max-width: 52ch; }

.curr-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.curr-legend__item { --c: var(--line); }
.curr-legend__item[data-layer="girfec"] { --c: #CBB6EA; }
.curr-legend__item[data-layer="rta"] { --c: #FFC29B; }
.curr-legend__item[data-layer="cfe"] { --c: #98DCEB; }
.curr-legend__item[data-layer="standards"] { --c: #B7DE9C; }
.curr-legend__link {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  color: inherit; text-decoration: none;
  transition: background-color var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out);
}
.curr-legend__link:hover, .curr-legend__link:focus-visible, .curr-legend__item.is-on .curr-legend__link { background: var(--white); box-shadow: var(--shadow-1); }
.curr-legend__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.55); }
.curr-legend__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); }
.curr-legend__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; color: var(--heading); line-height: 1.3; }
.curr-legend__tag { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.curr-legend__text { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.6; color: var(--text); }
.curr-legend__arrow { color: var(--muted); opacity: 0; translate: 0 -4px; transition: opacity var(--t-2), translate var(--t-2) var(--ease-out); }
.curr-legend__link:hover .curr-legend__arrow, .curr-legend__link:focus-visible .curr-legend__arrow { opacity: 1; translate: 0 0; color: var(--red-text); }

/* ============================================================ 3 · Being Me ============================================================ */
.curr-split { display: grid; gap: clamp(var(--s-7), 6vw, var(--s-10)); align-items: center; }
@media (min-width: 1000px) { .curr-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.curr-split__media { position: relative; }
.curr-rta__photo { --ar: 5 / 4.9; }
.curr-split__copy .eyebrow { margin: 0 0 var(--s-4); }
.curr-split__copy .h2 { margin: 0 0 var(--s-5); }
.curr-split__copy .curr-text { margin: 0; }

.curr-ideas { margin-block-start: var(--s-6); }
.curr-ideas__list { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.curr-ideas__list li {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 8px 20px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--orange-soft);
  font-weight: 700; color: var(--navy); font-size: 1.0625rem;
}
.curr-ideas__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); font-size: 0.875rem; color: #B4531A; }

/* ============================================================ 4 · Curriculum for Excellence ============================================================
   A soft sky band that fades in from the page and out again; the capacities card stays white with four soft tiles. */
.curr-cfe { background-color: #E6F6FA; --fade-h: clamp(96px, 10vw, 150px); padding-block: calc(var(--section-y) + 24px); }
.curr-cfe__top { display: grid; gap: clamp(var(--s-7), 5vw, var(--s-9)); align-items: center; }
@media (min-width: 1000px) { .curr-cfe__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }  /* r8: tiles left, text right */
.curr-cfe__intro .eyebrow { margin: 0 0 var(--s-4); }
.curr-cfe__intro .h2 { margin: 0 0 var(--s-5); }
.curr-cfe__intro .curr-text { margin: 0; }

.curr-cap { padding: var(--curr-card-pad); border-radius: var(--r-xl); background: var(--white); box-shadow: 0 1px 2px rgba(27, 34, 80, 0.04), 0 18px 40px -18px rgba(28, 124, 144, 0.28); }
.curr-cap__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.curr-cap__item {
  display: grid; gap: var(--s-4); align-content: start;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--leaf-soft);
}
.curr-cap__item:nth-child(2) { background: var(--room-baby-soft); }
.curr-cap__item:nth-child(3) { background: var(--red-soft); }
.curr-cap__item:nth-child(4) { background: var(--room-twos-soft); }
.curr-cap__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--navy); }
.curr-cap__item:nth-child(1) .curr-cap__icon { color: #4A7F22; }
.curr-cap__item:nth-child(2) .curr-cap__icon { color: var(--room-baby); }
.curr-cap__item:nth-child(3) .curr-cap__icon { color: var(--red-text); }
.curr-cap__item:nth-child(4) .curr-cap__icon { color: #B2502B; }
.curr-cap__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.3rem; line-height: 1.25; color: var(--heading); }
.curr-cap__foot { margin: var(--s-5) 0 0; font-size: 1rem; color: var(--muted); }

/* eight areas: on white, every tile in its own soft brand colour */
.curr-areas-sec { padding-block-start: clamp(var(--s-8), 6vw, 96px); }
.curr-areas__head { max-width: 760px; margin: 0 auto var(--s-8); text-align: center; display: grid; justify-items: center; gap: var(--s-4); }
.curr-areas__title { margin: 0; }
.curr-areas__lead { margin: 0; font-size: var(--fs-lead); line-height: 1.7; max-width: 60ch; }
.curr-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
@media (max-width: 1000px) { .curr-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.curr-area {
  display: grid; align-content: start; gap: var(--s-3);
  padding: var(--s-7) var(--s-6);
  border-radius: var(--r-xl);
  background: var(--tone-soft);
  transition: translate var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out);
}
.curr-area:hover { translate: 0 -3px; box-shadow: 0 16px 32px -18px color-mix(in srgb, var(--tone) 70%, transparent); }
.curr-area__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-block-end: var(--s-3); border-radius: 50%; background: var(--white); color: var(--tone-ink); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--tone) 80%, transparent); }
.curr-area__icon .icon { width: 26px; height: 26px; }
.curr-area__title { margin: 0; font-size: 1.25rem; line-height: 1.3; text-wrap: balance; }
.curr-area__text { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text); }

/* ============================================================ 5 · GIRFEC wheel ============================================================ */
.curr-gf__head { max-width: 780px; margin: 0 auto var(--s-8); text-align: center; display: grid; justify-items: center; }
.curr-gf__head .eyebrow { margin: 0 0 var(--s-4); }
.curr-gf__head .h2 { margin: 0 0 var(--s-5); }
.curr-gf__head .curr-text { margin: 0; }
.curr-gf__head .curr-by { justify-content: center; }

.curr-gf__grid { display: grid; gap: clamp(var(--s-7), 5vw, var(--s-9)); align-items: center; }
@media (min-width: 1000px) { .curr-gf__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }

.curr-wheel { position: relative; width: min(100%, 580px); justify-self: center; aspect-ratio: 1; }
.curr-wheel__svg { display: block; width: 100%; height: auto; overflow: visible; }
.curr-seg { cursor: pointer; outline: none; transition: translate var(--t-3) var(--ease-spring); }
.curr-seg__shape { fill: color-mix(in srgb, var(--tone) 30%, white); stroke: var(--paper); stroke-width: 0; transition: fill var(--t-2) var(--ease-out); }
.curr-seg__letter { fill: var(--tone-ink); font-family: var(--font-display); font-weight: 700; font-size: 34px; text-anchor: middle; pointer-events: none; }
.curr-seg__word { fill: var(--navy); font-family: var(--font-body); font-weight: 700; font-size: 16px; text-anchor: middle; pointer-events: none; }
.curr-seg:hover .curr-seg__shape { fill: color-mix(in srgb, var(--tone) 46%, white); }
.curr-seg.is-active { translate: calc(var(--dx) * 12px) calc(var(--dy) * 12px); }
.curr-seg.is-active .curr-seg__shape { fill: color-mix(in srgb, var(--tone) 72%, white); filter: drop-shadow(0 10px 18px rgba(27, 34, 80, 0.18)); }
.curr-seg.is-active .curr-seg__letter { fill: var(--navy); }
.curr-seg:focus-visible .curr-seg__shape { stroke: var(--navy); stroke-width: 3px; }

.curr-wheel__hub {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 36%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 6px;
  background: var(--white); box-shadow: var(--shadow-2);
}
.curr-wheel__hub-k { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 0.9rem + 0.6vw, 1.55rem); letter-spacing: 0.06em; color: var(--navy); }
.curr-wheel__hub-t { font-size: 1rem; line-height: 1.4; color: var(--muted); }

.curr-gf__side { display: grid; gap: var(--s-5); max-width: 560px; }
.curr-gf__hint { display: flex; gap: var(--s-2); align-items: flex-start; line-height: 1.6; margin: 0; font-size: 1rem; color: var(--muted); }
.curr-gf__cards { display: grid; }
.curr-ind {
  grid-area: 1 / 1;
  padding: var(--curr-card-pad);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-2);
  border-top: 8px solid var(--tone);
}
html.js .curr-ind { opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity var(--t-3) var(--ease-out), translate var(--t-3) var(--ease-out), visibility 0s linear var(--t-3); }
html.js .curr-ind.is-active { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
html.no-js .curr-gf__cards { gap: var(--s-4); }
html.no-js .curr-ind { grid-area: auto; }
.curr-ind__count { display: flex; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-3); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.curr-ind__letter { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tone-soft); color: var(--tone-ink); font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0; }
.curr-ind__word { margin: 0 0 var(--s-5); font-size: var(--fs-h2); line-height: 1.1; }
.curr-ind__label { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-2); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.curr-ind__label .icon { width: 16px; height: 16px; color: var(--red-text); }
.curr-ind__text { margin: 0 0 var(--s-5); font-size: 1.0625rem; line-height: 1.7; }
.curr-ind__text:last-child { margin-bottom: 0; }

.curr-gf__hint .icon { flex: none; margin-top: 0.15em; }
.curr-gf__nav { display: flex; align-items: center; gap: var(--s-4); }
html.no-js .curr-gf__nav { display: none; }
.curr-gf__words { display: flex; gap: 6px; flex: 1; justify-content: center; }
.curr-gf__words span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--muted); background: transparent; transition: background-color var(--t-2), color var(--t-2); }
.curr-gf__words span.is-active { background: var(--navy); color: var(--white); }

/* ============================================================ 6 · standards ============================================================ */
/* r7: on white, no cream panel; each principle has its own soft colour number */
.curr-st__panel { padding: 0; }
.curr-st__head { display: grid; gap: var(--s-6) var(--s-9); align-items: end; margin-block-end: var(--s-8); }
@media (min-width: 1000px) { .curr-st__head { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.curr-st__head .eyebrow { margin: 0 0 var(--s-4); }
.curr-st__head .h2 { margin: 0; }
.curr-st__intro .curr-text { margin: 0; font-size: 1.0625rem; }
.curr-st__intro .curr-by { margin-block-start: var(--s-5); }
.curr-st__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
@media (max-width: 1100px) { .curr-st__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.curr-st__item {
  display: grid; align-content: start; gap: var(--s-3);
  padding: var(--s-6) var(--s-5) var(--s-7);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -24px rgba(27, 34, 80, 0.35);
}
.curr-st__item::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--tone); }
.curr-st__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tone-soft); font-family: var(--font-accent); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--tone-ink); }
.curr-st__title { margin: var(--s-2) 0 0; font-size: 1.25rem; line-height: 1.3; }
.curr-st__text { margin: 0; font-size: 1rem; line-height: 1.65; }

/* ============================================================ 7 · food, feeding and families ============================================================ */
.curr-ev__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
/* a nursery page with fewer cards (no Breastfeeding Friendly card): the same card width, centred */
@media (min-width: 1001px) {
  .curr-ev__cards--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc((100% - 2 * var(--s-6)) * 2 / 3 + var(--s-6)); margin-inline: auto; }
  .curr-ev__cards--n1 { grid-template-columns: minmax(0, 1fr); max-width: calc((100% - 2 * var(--s-6)) / 3); margin-inline: auto; }
}
@media (max-width: 1000px) { .curr-ev__cards { grid-template-columns: 1fr; } }
.curr-ev__card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--curr-card-pad);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.curr-ev__logo { display: flex; align-items: center; height: 72px; margin-block-end: var(--s-4); }
.curr-ev__tag { margin: 0; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.curr-ev__name { margin: 0; font-size: 1.5rem; line-height: 1.25; }
.curr-ev__text { margin: 0 0 var(--s-5); font-size: 1.0625rem; line-height: 1.7; }
.curr-ev__card .curr-note { margin-block-start: auto; }

/* ============================================================ 8 · funded hours ============================================================ */
.curr-fund { background-color: #EEF7E6; --fade-h: clamp(96px, 10vw, 150px); }
.curr-fund .list-check > li::before { background: var(--white); box-shadow: 0 0 0 1px rgba(74, 127, 34, 0.18); }
.curr-fund .list-check > li::after { background: #4A7F22; }
.curr-fund__grid { display: grid; gap: clamp(var(--s-7), 6vw, var(--s-10)); align-items: center; }
@media (min-width: 1000px) { .curr-fund__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.curr-fund__figure { position: relative; padding-inline-end: var(--s-8); }
.curr-fund__photo { --ar: 4 / 4.6; }
.curr-fund__num {
  position: absolute; right: 0; bottom: 10%;
  display: grid; justify-items: center; gap: 2px;
  padding: var(--s-6) var(--s-6);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-3);
  text-align: center;
}
.curr-fund__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 1.8rem + 2vw, 3.6rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.curr-fund__unit { font-size: 1rem; font-weight: 600; color: var(--muted); }
.curr-fund__copy .eyebrow { margin: 0 0 var(--s-4); }
.curr-fund__copy .h2 { margin: 0 0 var(--s-5); }
.curr-fund__copy .curr-text { margin: 0 0 var(--s-6); }
.curr-fund__points { margin: 0 0 var(--s-6); gap: var(--s-3); }
.curr-fund__note { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0 0 var(--s-6); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--white); font-size: 1rem; line-height: 1.6; max-width: 56ch; }
.curr-fund__note .icon { flex: none; margin-top: 3px; color: var(--navy); }
.curr-fund__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-7); }
.curr-fund__actions .curr-by { margin: 0; }

/* ============================================================ 9 · who registers and inspects us ============================================================ */
.curr-bodies__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
@media (max-width: 1100px) { .curr-bodies__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.curr-body {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--curr-card-pad) var(--s-6);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.curr-body__logo {
  display: flex; align-items: center; justify-content: flex-start;
  height: 64px; margin-block-end: var(--s-4);
  padding-block-end: var(--s-5);
  box-sizing: content-box;
  border-bottom: 1px solid var(--line);
}
.curr-body__name { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.curr-body__role { margin: 0; font-size: 1rem; line-height: 1.65; }
.curr-body__us { display: flex; gap: var(--s-2); align-items: flex-start; margin: var(--s-2) 0 0; font-size: 1rem; line-height: 1.55; font-weight: 600; color: var(--navy); }
.curr-body__us .icon { flex: none; margin-top: 2px; color: var(--success); }
.curr-body__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s-4); font-weight: 700; font-size: 1rem; color: var(--red-text); text-decoration: none; }
.curr-body__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.curr-body__link .icon { width: 18px; height: 18px; }

.curr-bodies__reports {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6);
  max-width: 980px; margin: var(--s-8) auto 0;
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-pill);
  background: #ECEEF8;
}
.curr-bodies__reports p { flex: 1; margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--navy); }
.curr-bodies__reports-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--navy); }

/* ============================================================ 10 · FAQ ============================================================ */
.curr-faq__grid { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 1000px) { .curr-faq__grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: var(--s-10); } }
.curr-faq__side { display: grid; justify-items: start; gap: var(--s-5); }
@media (min-width: 1000px) { .curr-faq__side { position: sticky; top: calc(var(--chrome-top, 128px) + var(--s-6)); } }
.curr-faq__side .eyebrow, .curr-faq__side .h2 { margin: 0; }
.curr-faq__lead { margin: 0; font-size: var(--fs-lead); line-height: 1.7; max-width: 40ch; }

/* ============================================================ r9 mobile + tablet pass (≤999px only; desktop untouched) ============================================================ */
@media (max-width: 999px) {
  .curr-fits__grid > *, .curr-gf__grid > *, .curr-split > *, .curr-cfe__top > *, .curr-fund__grid > * { min-width: 0; }
  .curr-gf__side { justify-self: center; width: 100%; }
  .curr-st__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curr-center-head, .curr-areas__head, .curr-gf__head { margin-block-end: var(--s-7); }
  .curr-st__head { margin-block-end: var(--s-7); }
}
@media (max-width: 767px) {
  /* jump pills: proper tap targets */
  .curr-jump .chip { min-height: 44px; }
  .curr-jump__list { gap: var(--s-2); }

  /* rings: the labels grow so they stay readable when the figure is phone-sized (the legend below is the accessible version) */
  .curr-rings { width: min(100%, 440px); }
  .curr-ring text { font-size: 22px; letter-spacing: 0.06em; }
  .curr-ring__letter circle { r: 21px; }
  .curr-ring__letter text { font-size: 23px; }
  .curr-rings__you { bottom: -16px; }
  .curr-legend__link { padding: var(--s-4); gap: var(--s-3); }
  .curr-legend__arrow { opacity: 1; translate: none; }

  /* GIRFEC wheel: bigger letters and words, nav fits the width */
  .curr-seg__letter { font-size: 40px; }
  .curr-seg__word { font-size: 21px; }
  .curr-seg.is-active { translate: calc(var(--dx) * 8px) calc(var(--dy) * 8px); }
  .curr-wheel__hub-k { font-size: 1.05rem; letter-spacing: 0.04em; }
  .curr-wheel__hub-t { font-size: 0.875rem; }
  .curr-gf__nav { gap: var(--s-2); }
  .curr-gf__words { gap: 2px; }
  .curr-gf__words span { width: 26px; height: 26px; font-size: 0.875rem; }
  .curr-ind { padding: 28px 24px; }
  .curr-ind__word { margin-block-end: var(--s-4); }

  .curr-note--wide { display: block; margin-block-start: var(--s-7); }
  .curr-note--wide .curr-note__label { margin-block-end: var(--s-3); }
  .curr-note { padding: var(--s-5); }

  .curr-cap { padding: 20px; }
  .curr-cap__grid { gap: var(--s-3); }
  .curr-cap__item { padding: 18px 16px; gap: var(--s-3); }
  .curr-cap__icon { width: 40px; height: 40px; }
  .curr-cap__title { font-size: 1.1rem; hyphens: auto; }

  .curr-areas { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .curr-area { grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-5); }
  .curr-area__icon { grid-row: span 2; margin: 0; }

  .curr-st__list { grid-template-columns: minmax(0, 1fr); }
  .curr-st__item { grid-template-columns: 52px minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-6); }
  .curr-st__n { grid-row: span 2; }
  .curr-st__title { margin: 0; align-self: center; }

  .curr-ev__cards { gap: var(--s-4); }
  .curr-fund__figure { padding-inline-end: var(--s-6); }
  .curr-fund__num { padding: var(--s-4) var(--s-5); }

  .curr-bodies__list { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .curr-body { padding: var(--s-6) var(--s-5); }
  .curr-body__logo { height: 52px; padding-block-end: var(--s-4); }
  .curr-body__link { min-height: 44px; }
  .curr-bodies__reports { flex-direction: column; align-items: flex-start; margin-block-start: var(--s-7); padding: var(--s-5); border-radius: var(--r-xl); }
  .curr-faq__grid { gap: var(--s-6); }
}

/* ============================================================ r10 QA (phones and tablets only) ============================================================ */
/* the five standards: 3 + 2 on tablets instead of 2 + 2 + 1 (a lone card on the last row) */
@media (min-width: 768px) and (max-width: 1100px) {
  .curr-st__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .curr-st__item { grid-column: span 2; }
  .curr-st__item:nth-child(n+4) { grid-column: span 3; }
}
/* touch tablets: the jump pills and "Visit website" links are full 44px tap targets too */
@media (max-width: 1023px), (max-width: 1279px) and (pointer: coarse) {
  .curr-jump .chip { min-height: 44px; }
  .curr-body__link { min-height: 44px; }
}
/* phones: the letters grow, so the "Your child" label is smaller and tucked up into the photo, clear of the R and N beside it */
@media (max-width: 767px) {
  .curr-rings__you { bottom: 4px; padding: 3px 9px; font-size: 0.6875rem; }
}
/* r10 QA: card headings break evenly instead of leaving one word alone on the last line ("Health and / wellbeing") */
@media (max-width: 1279px) {
  .curr-area__title, .curr-st__title, .curr-ev__name, .curr-body__name { text-wrap: balance; }
}

/* ============================================================ r11 phones: centred (group + every nursery curriculum page) ============================================================
   The client: "centre everything in the middle, for all the pages". Section copy, "Published by" rows, pills, the cards
   (icon or number above the words) and the "In our nurseries" notes centre; tick lists centre as a block with their ticks
   still lined up; the rings legend and the questions stay as rows. */
@media (max-width: 599.98px) {
  .curr-fits__copy, .curr-split__copy, .curr-cfe__intro, .curr-st__head, .curr-st__intro, .curr-fund__copy, .curr-faq__side { text-align: center; }
  .curr-faq__side { justify-items: center; }
  .curr-text, .curr-faq__lead, .curr-areas__lead { margin-inline: auto; text-wrap: pretty; }
  .curr-by, .curr-ideas__list, .curr-fund__actions { justify-content: center; }
  .curr-fund__actions { flex-direction: column; }
  .curr-label { text-align: center; }

  .curr-note { text-align: center; }
  .curr-note__label { justify-content: center; }
  .curr-note--wide { text-align: center; }

  .curr-cap__item { justify-items: center; text-align: center; }
  .curr-cap__foot { text-align: center; }

  .curr-area { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .curr-area__icon { grid-row: auto; margin-block-end: var(--s-2); }
  .curr-area__text { max-width: 32ch; }

  .curr-st__item { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .curr-st__n { grid-row: auto; }
  .curr-st__title { margin-block-start: var(--s-2); }

  .curr-ev__card { align-items: center; text-align: center; }
  .curr-ev__card .curr-note { align-self: stretch; }

  .curr-body { align-items: center; text-align: center; }
  .curr-body__logo { justify-content: center; align-self: stretch; }
  .curr-body__us { justify-content: center; text-align: left; }
  .curr-bodies__reports { align-items: center; text-align: center; }

  /* the rings legend stays a list of rows */
  .curr-legend { text-align: left; }
  /* SHANARRI: the word card and its hint centre; the letter nav already does */
  .curr-ind { text-align: center; }
  .curr-ind__count, .curr-ind__label { justify-content: center; }
  .curr-gf__hint { justify-content: center; text-align: center; }
}

/* r12 phones and tablets: the client: "We need a bit more gap between the [Questions] parents ask on the Our Curriculum
   page". The FAQ sat flush under the "who inspects us" card (76px); it now has clear air above it, a little more room
   between its heading block and the questions, and a touch more between the questions themselves. Desktop unchanged. */
@media (max-width: 999px) {
  .curr-faq { padding-top: var(--s-7); }
  .curr-faq__grid { gap: var(--s-7); }
  .curr-faq .accordion { gap: 18px; }
}

/* ==== pages/home.css ==== */
/* pages/home.css - group home page (src/pages/index.njk). Prefix: .home-
   3 .home-believe   centred statement with photo pills inside the sentence
   4 .home-promise   bento of five unequal tiles (.home-tile--team / --famly / --safe / --outdoor / --meals)
   5 .home-grow      r5: moved to css/sections/home-grow.css
   Sections 1, 2, 7 and 8 come from the hero builders, sections/home-chooser.njk and sections/shared.njk.
   r3: .home-grow is now option 1 of the "home-grow" group (options 2-4: css/sections/home-grow.css).
   r4: the funded "Sun band" is gone (the client kept the Teaser: css/sections/home-funded.css); the round-3 shrinking of
   "Parents say" and the closing card is gone; page rhythm for the lower half of the page is at the end of this file. */

/* =====================================================================================================================
   3. WHAT WE BELIEVE
   ===================================================================================================================== */
.home-believe__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
  text-align: center;
}
.home-believe__text {
  max-width: 20.5em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 1.05rem + 2.75vw, 3.5rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--heading);
  text-wrap: balance;
}
.home-believe__text .accent { font-weight: 400; }
/* the photo pills sit inside the sentence like words */
.home-believe__pill {
  --tilt: -3deg;
  position: relative;
  display: inline-block;
  width: 1.72em;
  height: 0.88em;
  margin-inline: 0.06em;
  vertical-align: -0.09em;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-1);
  rotate: var(--tilt);
  transition: scale var(--t-3) var(--ease-spring), rotate var(--t-3) var(--ease-spring), box-shadow var(--t-2) var(--ease-out);
}
.home-believe__pill--b { --tilt: 2.5deg; }
.home-believe__pill--c { --tilt: -2deg; }
.home-believe__pill--d { --tilt: 3deg; }
.home-believe__pill > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 30%);
  scale: var(--zoom, 1.5);                      /* come in close: a face has to read at 90px wide */
  transform-origin: var(--focus-pos, 50% 30%);
}
.home-believe__pill--a > img { --zoom: 1.9; }
.home-believe__pill--b > img { --zoom: 1.75; }
.home-believe__pill--c > img { --zoom: 1.2; }
.home-believe__pill--d > img { --zoom: 1.7; }
/* a pill leans in and grows when you point at it */
@media (hover: hover) and (pointer: fine) {
  .home-believe__text .split__w:has(> .split__i > .home-believe__pill) { position: relative; }
  .home-believe__text .split__w:has(> .split__i > .home-believe__pill:hover) { z-index: 2; }
  .home-believe__pill:hover { scale: 2.1; rotate: 0deg; box-shadow: var(--shadow-3); z-index: 2; }
}
.home-believe__keep { white-space: nowrap; }
.home-believe__more { margin-block-start: var(--s-2); }

/* =====================================================================================================================
   4. THE BRIGHT STARTS PROMISE - bento
   12 columns, two rows: 7 | 5 over 3 | 4 | 5, so the middle seam of row two lines up with the seam of row one
   (round 2 tidy: the seams used to miss each other by one column, which read as a mistake).
   ===================================================================================================================== */
.home-promise__head .section-head__title { max-width: 16ch; }
.home-promise__grid {
  --tile-gap: clamp(var(--s-4), 1.5vw, var(--s-5));
  --tile-pad: clamp(var(--s-5), 2.3vw, 36px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: clamp(420px, 34vw, 500px) clamp(300px, 24.5vw, 356px);
  gap: var(--tile-gap);
}
.home-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--tile-pad);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
}
.home-tile__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
.home-tile__title {
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.home-tile__text {
  max-width: 34ch;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

/* ---- 1 · caring teams: a photo with a paper label tucked into its corner ---- */
.home-tile--team { grid-column: 1 / span 7; grid-row: 1; padding: 0; background: var(--peach); }
.home-tile__photo { position: absolute; inset: 0; z-index: -1; }
.home-tile__photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 30%);
}
.home-tile__tag { position: absolute; top: var(--s-5); left: var(--s-5); }
.home-tile__label {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  width: min(25rem, calc(100% - 2 * var(--s-4)));
  padding: var(--s-5) clamp(var(--s-5), 2vw, var(--s-6));
  border-radius: calc(var(--r-lg) - var(--s-3));
  background: var(--white);
  box-shadow: var(--shadow-2);
}

/* ---- 2 · the parent app: copy left, the phone rising out of the tile on the right ---- */
.home-tile--famly { grid-column: 8 / span 5; grid-row: 1; background: var(--sun-soft); }
.home-tile--famly .home-tile__copy { max-width: 47%; }
.home-tile--famly .home-tile__text { font-size: var(--fs-small); line-height: 1.55; }
.home-tile__phone {
  --phone-w: clamp(196px, 16.4vw, 244px);
  position: absolute;
  top: clamp(var(--s-6), 3.4vw, 52px);
  right: clamp(var(--s-4), 2.2vw, 34px);
  rotate: 4deg;
  transform-origin: 50% 100%;
  /* round 2 tidy: the phone used to be sliced through the middle of the reply bubble; it now fades into the tile */
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 64%, transparent 90%);
}
/* a soft sun behind the phone */
.home-tile--famly::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -16%;
  top: 14%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glow-sun);
  pointer-events: none;
}

/* ---- 3 · safe & secure: the one navy tile ---- */
.home-tile--safe { grid-column: 1 / span 3; grid-row: 2; gap: var(--s-4); background: var(--navy); }
.home-tile__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
}
.home-tile__icon .icon { width: 26px; height: 26px; }
.home-tile--safe .home-tile__title { margin-block-start: auto; }
.home-tile__list { gap: var(--s-2); font-size: var(--fs-small); font-weight: 500; line-height: 1.45; color: var(--text); }

/* ---- 4 · outdoor play: leaf tint, a blob-masked photo growing out of the corner ---- */
.home-tile--outdoor { grid-column: 4 / span 4; grid-row: 2; background: var(--leaf-soft); }
.home-tile--outdoor .home-tile__copy { max-width: 100%; }
.home-tile--outdoor .home-tile__text { max-width: 13.5rem; }
/* the note sits just above the boots and its arrow lands on them (round 2 tidy: it used to point at empty space) */
.home-tile__note {
  position: absolute;
  z-index: 1;
  left: clamp(var(--s-5), 2.3vw, 36px);
  bottom: 15%;
  color: var(--navy);
}
.home-tile__note .scribble { --scribble-tilt: -5deg; font-size: clamp(1.4rem, 1.1rem + 0.7vw, 1.75rem); }
.home-tile__blob {
  position: absolute;
  z-index: 0;
  right: -6%;
  bottom: -14%;
  width: 52%;
  aspect-ratio: 1;
  background: var(--leaf);
}
.home-tile__blob > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 60%);
}

/* ---- 5 · meals: a round plate you could reach for, turning a little as you scroll ---- */
.home-tile--meals { grid-column: 8 / span 5; grid-row: 2; background: var(--peach); }
.home-tile--meals .home-tile__copy { max-width: 15rem; }
.home-tile--meals .home-tile__text { max-width: 12.5rem; font-size: var(--fs-small); line-height: 1.55; }
.home-tile__plate {
  position: absolute;
  z-index: 0;
  right: -10%;
  bottom: -21%;
  width: 57%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-2);
}
.home-tile__plate > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  transform: scale(1.5);
  transform-origin: 52% 64%;
}

/* 5. GROWING WITH US: all of its styles live in css/sections/home-grow.css (r5). */

/* ---------- narrower than the desktop design: stack simply ---------- */
@media (max-width: 960px) {
  .home-promise__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: minmax(320px, auto); }
  .home-promise__grid > .home-tile { grid-column: auto; grid-row: auto; }
  .home-tile--team { min-height: 420px; }
}

/* #reviews anchor (index.njk, before "Parents say"): zero-height, lands the section below the floating header */
.home-anchor { display: block; height: 0; scroll-margin-top: 96px; }

/* ---------- r3 fix (HB6): Reviews carousel polish (page-scoped; the shared macro and CSS are untouched)
   1. cards that have moved past the active one fade right out, so no faint white strip of the previous card is left
      showing through the left-edge fade beside the "In parents' own words" column.
   2. the big quote mark is no longer half buried behind the active card: smaller, fully visible, sitting on the card's
      top edge in front of it like a badge. ---------- */
.home-reviews .sec-reviews__slide { transition: opacity var(--t-3, 0.3s) var(--ease-out, ease-out); }
.home-reviews.is-live .sec-reviews__slide:has(~ .is-current) { opacity: 0; pointer-events: none; }
.home-reviews .sec-reviews__mark {
  z-index: 2;
  left: calc(clamp(var(--s-6), 3.8vw, 56px) - 4px);
  width: clamp(64px, 5.6vw, 84px);
  translate: 0 -46%;
  opacity: 1;
  clip-path: none;
}

/* =====================================================================================================================
   r4 · page rhythm, lower half (Day → Funded → Team → Why → Parents say → Questions → Come and see)
   Every section keeps at least the --section-y token top and bottom. Cream bands that fade at both edges get a little
   extra padding so their text never sits inside the fade, and the fade itself is long and soft.
   ===================================================================================================================== */
.page-home :is(.hd, .hw2, .home-reviews).section--fade-both {
  --fade-h: clamp(96px, 9vw, 140px);
  padding-block: calc(var(--section-y) + clamp(16px, 2vw, 32px));
}
/* "Parents say": the shared macro at its full r4 size again (only the polish below stays page-scoped) */
.home-reviews .sec-reviews__quote { font-size: clamp(1.2rem, 0.95rem + 0.6vw, 1.45rem); line-height: 1.6; }
/* "Come and see": real air above (after Questions) and below (the footer's curved top rises 56px into this section) */
.home-cta.section { padding-block: var(--section-y) calc(var(--section-y) + 56px); }

/* =====================================================================================================================
   r9 mobile + tablet (page-scoped; desktop untouched)
   ===================================================================================================================== */
@media (max-width: 599.98px) {
  /* r11: the page-scoped 64px was removed; the home uses the site-wide phone gap (76px, tokens.css), "a bit more gap" */
  /* "Parents say": the source chip drops under the name instead of squeezing it */
  .home-reviews .sec-reviews__by { flex-wrap: wrap; row-gap: var(--s-3); }
  .home-reviews .sec-reviews__source { order: 3; flex-basis: 100%; width: fit-content; max-width: max-content; }
  .home-reviews .sec-reviews__quote { font-size: 1.125rem; line-height: 1.6; }
  .home-reviews .sec-reviews__mark { width: 56px; }
}

/* r10 QA: touch screens - the hero's nursery ticker links were 35px tall; give them a 44px target without moving the pill */
@media (pointer: coarse) {
  .page-home .sc-ticker__marquee .marquee__item a { padding: calc(0.55em + 5px) 4px; margin: -5px -4px; }
  .page-home .sc-ticker__tag { min-height: 44px; }
}

/* ==== pages/nurseries.css ==== */
/* nurseries.css - "Our nurseries" (pages/nurseries.njk · sections/nurseries/*.njk · js/pages/nurseries.js).
   Round 4 ("needs to be a bit more white", "zoom out, don't squash"). Round 8: the finder (map + list) was deleted; the page
   opens with the cards. r9: the client chose Wide cards, the only layout now (no Design Lab group).
     1. .nurseries-dir      h1 head + .nurseries-wide (two to a row, photo left, details right)
     2. .nurseries-family   the navy statement card                          (paper around it)
     3. .nurseries-x-*      offers (the one cream band, faded) · 3 steps · FAQ (paper)
   Section padding comes from the global --section-y; nothing here shrinks it. Desktop first (1280-1920). */

/* =====================================================================================================================
   Kit: status tag, icon fact list, small links (sections/nurseries/kit.njk)
   ===================================================================================================================== */
.nurseries-kit__nowrap { white-space: nowrap; }
.nurseries-kit__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  width: max-content;
  min-height: 30px;
  padding: 0.2em 0.9em;
  border-radius: var(--r-pill);
  background: var(--cream);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--navy);
  white-space: nowrap;
}
.nurseries-kit__tag--new { background: var(--sun); }
.nurseries-kit__tag .icon { width: 1.1em; height: 1.1em; margin-inline-start: -0.15em; }

.nurseries-kit__facts { display: grid; gap: 12px; font-size: var(--fs-small); line-height: 1.55; color: var(--ink); }
.nurseries-kit__facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; }
.nurseries-kit__facts .icon { width: 20px; height: 20px; margin-top: 0.1em; color: var(--muted); }
.nurseries-kit__facts a {
  justify-self: start;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.24em;
  transition: text-decoration-color var(--t-2) ease;
  overflow-wrap: anywhere;
}
@media (hover: hover) { .nurseries-kit__facts a:hover { text-decoration-color: var(--red); } }


/* =====================================================================================================================
   1. The nursery cards: head (h1) + the Wide cards.
   ===================================================================================================================== */
.nurseries-dir {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-clear, 82px) + clamp(40px, 3.8vw, 60px));
  overflow: clip;
}
.nurseries-dir__glow {                  /* the soft morning sun, top right */
  position: absolute;
  z-index: -1;
  top: -22%;
  right: -8%;
  width: min(820px, 60vw);
  aspect-ratio: 1;
  background: var(--glow-sun);
  opacity: 0.5;
  pointer-events: none;
}
.nurseries-dir__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: var(--s-5) clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 3.6vw, 56px);
}
.nurseries-dir__title { margin-top: var(--s-4); font-size: var(--fs-h1); line-height: 1.06; }
.nurseries-dir__lead { justify-self: end; max-width: 42ch; padding-bottom: 0.3em; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); text-wrap: pretty; }

/* ---------- Wide cards (r9: the only layout): two to a row, photo left, details right ---------- */
.nurseries-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 2.6vw, 36px); }
.nurseries-wide__item { min-width: 0; }
.nurseries-wide__card {
  --card-r: var(--r-lg);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  height: 100%;
  padding: 10px;
  border-radius: var(--card-r);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  transition: box-shadow var(--t-3) var(--ease-out), translate var(--t-3) var(--ease-out);
}
.nurseries-wide__photo { --ar: auto; min-height: 280px; border-radius: calc(var(--card-r) - 10px); }
.nurseries-wide__photo > img { position: absolute; inset: 0; transition: scale var(--t-4) var(--ease-out); }
.nurseries-wide__body { display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 18px 30px; }
.nurseries-wide__where { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nurseries-wide__name { margin-top: 6px; font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.75rem); line-height: 1.12; }
.nurseries-wide__facts { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); gap: 10px; }
.nurseries-wide__actions { margin-top: auto; padding-top: 24px; }
@media (hover: hover) and (pointer: fine) {
  .nurseries-wide__card:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
  .nurseries-wide__card:hover .nurseries-wide__photo img { scale: 1.035; }
}

/* the #hash sun ring on the card that was just jumped to */
.nurseries-wide__card::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--card-r) + 6px);
  box-shadow: 0 0 0 4px var(--sun);
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}
.nurseries-wide__card:focus { outline: none; }
.nurseries-wide__card:focus-visible::after { opacity: 1; box-shadow: 0 0 0 3px var(--navy); }
.nurseries-wide__card.is-target::after { opacity: 1; transition-duration: var(--t-2); }


/* =====================================================================================================================
   3. One big family - the navy statement card
   ===================================================================================================================== */
.nurseries-family { padding-top: calc(var(--section-y) * 0.5); }   /* the directory above already ends with a full gap */
.nurseries-family__card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
  padding: clamp(56px, 6vw, 96px) clamp(48px, 6vw, 96px);
  border-radius: var(--r-xl);
  background: var(--navy);
  color: var(--white);
  overflow: clip;
}
.nurseries-family__card::before {        /* a faint warm light behind the sun, so the navy is never flat */
  content: "";
  position: absolute;
  z-index: -2;
  right: -12%;
  bottom: -55%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sun) 22%, transparent), transparent 75%);
  pointer-events: none;
}
.nurseries-family__sun { position: absolute; z-index: -1; right: -70px; bottom: -120px; width: 260px; pointer-events: none; }
.nurseries-family__sun .sun { width: 100%; }
.nurseries-family__main { min-width: 0; }
.nurseries-family__lead { margin-top: var(--s-5); font-size: var(--fs-lead); line-height: 1.6; color: color-mix(in srgb, var(--white) 74%, var(--navy)); }
.nurseries-family__title {
  margin-top: var(--s-3);
  font-size: clamp(2.1rem, 1.4rem + 1.9vw, 3.1rem);
  line-height: 1.14;
  color: var(--white);
  text-wrap: balance;
}
.nurseries-family__side { min-width: 0; }
.nurseries-family__text { max-width: 44ch; font-size: var(--fs-body); line-height: 1.75; color: color-mix(in srgb, var(--white) 86%, var(--navy)); text-wrap: pretty; }
.nurseries-family__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  max-width: 420px;
  margin-top: var(--s-6);
}
.nurseries-family__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 12%, transparent);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-2) ease, color var(--t-2) ease, box-shadow var(--t-2) ease;
}
.nurseries-family__list a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); transition: background-color var(--t-2) ease; }
@media (hover: hover) {
  .nurseries-family__list a:hover { background: var(--sun); box-shadow: none; color: var(--navy); }
  .nurseries-family__list a:hover::before { background: var(--navy); }
}
.nurseries-family__list a:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--sun); }
.nurseries-family__more { margin-top: var(--s-6); }


/* =====================================================================================================================
   4. Extras - offers (the cream band) · 3 steps · FAQ
   ===================================================================================================================== */
/* What every nursery offers: extra air above and below, and the fades are deeper than the type is close */
.nurseries-x-offer {
  --fade-h: clamp(100px, 9vw, 140px);
  padding-block: calc(var(--section-y) * 1.2);
}
/* polish: a little more width for the six boxes, so their titles and text are not squeezed into narrow columns */
.nurseries-x-offer__grid { display: grid; grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.7fr); gap: clamp(40px, 4.6vw, 80px); align-items: center; }
.nurseries-x-offer__title { margin-top: var(--s-4); font-size: var(--fs-h2); }
.nurseries-x-offer__lead { margin-top: var(--s-5); color: var(--ink); max-width: 36ch; text-wrap: pretty; }
.nurseries-x-offer__facts { display: grid; gap: 12px; margin-top: var(--s-6); }
.nurseries-x-offer__facts li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-body); font-weight: 600; color: var(--navy); }
.nurseries-x-offer__facts .icon { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--sun); color: var(--navy); }
.nurseries-x-offer__frame { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line-strong); font-size: var(--fs-small); line-height: 1.65; color: var(--muted); max-width: 40ch; }
.nurseries-x-offer__frame span { display: block; margin-bottom: 6px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.nurseries-x-offer__boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nurseries-x-offer__box {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 32px 28px 34px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: translate var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nurseries-x-offer__box:hover { translate: 0 -3px; box-shadow: var(--shadow-2); } }
.nurseries-x-offer__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 16px; background: var(--sun-soft); color: var(--navy); }
.nurseries-x-offer__box:nth-child(3n+2) .nurseries-x-offer__ico { background: var(--red-soft); color: var(--red-text); }
.nurseries-x-offer__box:nth-child(3n) .nurseries-x-offer__ico { background: var(--cream); }
.nurseries-x-offer__ico .icon { width: 24px; height: 24px; }
.nurseries-x-offer__name { font-size: 1.25rem; line-height: 1.3; text-wrap: balance; }
.nurseries-x-offer__text { font-size: 1rem; line-height: 1.65; color: var(--ink); text-wrap: pretty; }

/* Book a visit in 3 steps: more space above and below */
.nurseries-x-steps { padding-block: calc(var(--section-y) * 0.85) calc(var(--section-y) * 1.2); }
.nurseries-x-steps__head { text-align: center; margin-bottom: clamp(48px, 4.4vw, 72px); }
.nurseries-x-steps__title { margin-top: var(--s-4); font-size: var(--fs-h2); }
.nurseries-x-steps__track { position: relative; }   /* the path runs through the number discs' centre line */
.nurseries-x-steps__list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4.4vw, 72px); }
.nurseries-x-steps__step { position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; text-align: center; min-width: 0; }
.nurseries-x-steps__num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 10px var(--bg);
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--navy);
}
.nurseries-x-steps__step:nth-child(3) .nurseries-x-steps__num { background: var(--red); color: var(--white); }
.nurseries-x-steps__name { font-size: var(--fs-h3); line-height: 1.2; }
.nurseries-x-steps__text { max-width: 32ch; font-size: var(--fs-body); line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.nurseries-x-steps__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--cream);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background-color var(--t-2) ease, scale var(--t-1) var(--ease-out);
}
.nurseries-x-steps__link .icon { width: 17px; height: 17px; color: var(--red-text); }
@media (hover: hover) { .nurseries-x-steps__link:hover { background: var(--sun-soft); } }
.nurseries-x-steps__link:active { scale: 0.97; }
.nurseries-x-steps__link:focus-visible { box-shadow: var(--focus); outline: none; }
.nurseries-x-steps__note { margin-top: 10px; color: var(--red-text); font-size: 1.1rem; rotate: -3deg; }
.nurseries-x-steps__path {
  position: absolute;
  z-index: 0;
  left: 16.6%;
  top: 12px;
  width: 66.8%;
  height: 40px;
  fill: none;
  stroke: color-mix(in srgb, var(--sun-deep) 70%, transparent);
  stroke-width: 2.5;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  pointer-events: none;
}

/* FAQ: on the plain page, the questions are white cards with a hairline */
.nurseries-x-faq { padding-top: calc(var(--section-y) * 0.4); }
.nurseries-x-faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(40px, 5.6vw, 96px); align-items: start; }
.nurseries-x-faq__aside { position: sticky; top: calc(var(--header-clear, 82px) + 32px); display: grid; justify-items: start; gap: var(--s-5); }
.nurseries-x-faq__title { font-size: var(--fs-h2); }
.nurseries-x-faq__lead { color: var(--ink); max-width: 34ch; }
.nurseries-x-faq__list { min-width: 0; }
.nurseries-x-faq .accordion { gap: 14px; }
.nurseries-x-faq .accordion__item { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.nurseries-x-faq .accordion__item[open],
.nurseries-x-faq .accordion__item.is-open { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.nurseries-x-faq .accordion__summary { min-height: 64px; }


/* =====================================================================================================================
   narrower windows: stack (desktop is the target; this only keeps things tidy)
   ===================================================================================================================== */
@media (max-width: 1100px) {
  .nurseries-dir__head, .nurseries-wide__card,
  .nurseries-family__card, .nurseries-x-offer__grid, .nurseries-x-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .nurseries-dir__lead { justify-self: start; }
  .nurseries-wide { grid-template-columns: minmax(0, 1fr); }
  .nurseries-x-faq__aside { position: static; }
}
@media (max-width: 700px) {
  .nurseries-x-offer__boxes, .nurseries-x-steps__list, .nurseries-family__list { grid-template-columns: minmax(0, 1fr); }
  .nurseries-x-steps__path { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nurseries-wide__card, .nurseries-wide__photo img { transition: none; }
}

/* =====================================================================================================================
   r9 mobile + tablet pass (≤1100px only; desktop untouched)
   ===================================================================================================================== */
@media (max-width: 1100px) {
  /* Wide cards: two to a row on tablets, photo on top (a full-width banner per nursery was far too tall) */
  .nurseries-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .nurseries-wide__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .nurseries-wide__body { padding: 22px 18px 18px; }
  .nurseries-wide__facts { margin-top: 14px; padding-top: 14px; }
  .nurseries-wide__actions { padding-top: 20px; }
  .nurseries-family__card { gap: var(--s-6); }
  .nurseries-family__list { max-width: none; }
}
@media (max-width: 700px) {
  .nurseries-dir__head { margin-bottom: 32px; }
  .nurseries-wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .nurseries-wide__body { padding: 20px 14px 14px; }
  /* phone numbers and buttons are real tap targets */
  .nurseries-wide__facts { font-size: 1rem; }
  .nurseries-wide__facts a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .nurseries-wide__actions .btn, .nurseries-x-faq .btn { min-height: 44px; }
  .nurseries-x-steps__link { min-height: 44px; }

  .nurseries-family__card { padding: 44px 24px 132px; }
  .nurseries-family__sun { width: 190px; right: -48px; bottom: -92px; }
  .nurseries-family__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.4rem); }
  .nurseries-family__list { gap: 10px; }

  .nurseries-x-offer { padding-block: var(--section-y); }
  .nurseries-x-offer__grid { gap: 32px; }
  .nurseries-x-offer__boxes { gap: 16px; }
  .nurseries-x-offer__box { padding: 26px 24px 28px; }
  .nurseries-x-offer__text, .nurseries-x-offer__frame { font-size: 1rem; }
  .nurseries-x-steps { padding-block: calc(var(--section-y) * 0.7) var(--section-y); }
  .nurseries-x-steps__list { gap: 44px; }
  .nurseries-x-faq__grid { gap: 32px; }
}
@media (min-width: 480px) and (max-width: 700px) {
  .nurseries-family__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .nurseries-x-offer__boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* r10 QA (≤1100px): the stacked card's spare height went partly into the photo row, so in a pair with a shorter address the
   text started lower than its neighbour's. The body row now takes it all, and the phone links and buttons are full tap
   targets on tablets too. */
@media (max-width: 1100px) {
  .nurseries-wide__card { grid-template-rows: auto 1fr; }
  .nurseries-wide__facts a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .nurseries-wide__actions .btn, .nurseries-x-faq .btn { min-height: 44px; }
  .nurseries-x-steps__link { min-height: 44px; }
}

/* =====================================================================================================================
   r12 phones (≤599px): the client: "It's not centred in the middle either, that page. Some stuff isn't. Fix all that."
   The round 11 rule: headings, leads, card text, short facts and buttons centre; icon + text facts put the icon above the
   words; the FAQ questions stay left (only its heading centres). Desktop and tablets untouched.
   ===================================================================================================================== */
@media (max-width: 599px) {
  /* 1. head + the nursery cards */
  .nurseries-dir__head { justify-items: center; text-align: center; }
  .nurseries-dir__lead { justify-self: center; text-wrap: balance; }
  .nurseries-wide__body { align-items: center; text-align: center; padding-inline: 16px; }
  .nurseries-wide__facts { width: 100%; justify-items: center; gap: 14px; }
  .nurseries-wide__facts li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; }
  .nurseries-wide__facts .icon { margin-top: 0; }
  .nurseries-wide__facts a { justify-self: center; }
  .nurseries-wide__actions { display: flex; justify-content: center; }

  /* 2. One big family */
  .nurseries-family__card { text-align: center; }
  .nurseries-family__main, .nurseries-family__side { display: grid; justify-items: center; }
  .nurseries-family__title { text-wrap: balance; }
  .nurseries-family__text { margin-inline: auto; }
  .nurseries-family__list { width: 100%; }
  .nurseries-family__list a { justify-content: center; }
  .nurseries-family__more { display: flex; justify-content: center; }

  /* 3. What every nursery offers */
  .nurseries-x-offer__intro { display: grid; justify-items: center; text-align: center; }
  .nurseries-x-offer__lead { text-wrap: balance; }
  .nurseries-x-offer__facts { justify-items: center; }
  .nurseries-x-offer__facts li { flex-direction: column; gap: 8px; }
  .nurseries-x-offer__frame { width: 100%; max-width: none; text-wrap: balance; }
  .nurseries-x-offer__box { justify-items: center; text-align: center; }

  /* 4. FAQ: the heading, lead and button centre; the questions stay left */
  .nurseries-x-faq__aside { justify-items: center; text-align: center; }
  .nurseries-x-faq__lead { text-wrap: balance; }
}

/* ==== pages/tb-about.css ==== */
/* tb-about.css - Thornliebank About.  Classes are prefixed .tb-about-…  Markup: src/pages/thornliebank/about.njk
   Section order: hero (collage) → mission → activities bento → settling in (sticky steps, signature) → outdoor →
   food → safe and secure → in the community → shared CTA card. */

/* ============================================================ 1 · hero ============================================================ */
/* r4 (tb-about-a): white hero (page-hero--paper keeps the soft sun glow top-right), a bigger title and collage, two sentences + three
   facts, and generous room below before the mission card. */
.tb-about-hero { padding-block-end: clamp(80px, 7.5vw, 120px); }
@media (min-width: 900px) {
  .tb-about-hero .tb-about-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(var(--s-7), 5vw, 88px); }
}
.tb-about-hero .page-hero__copy { gap: var(--s-5); }
.tb-about-hero__title { max-width: none; font-size: clamp(2.6rem, 1.6rem + 2.8vw, 4.1rem); line-height: 1.04; }
.tb-about-hero .page-hero__lead { max-width: 46ch; }
.tb-about-hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-4) 0; max-width: 100%; margin: var(--s-1) 0 var(--s-2); padding: 0; list-style: none; }
.tb-about-hero__facts li { display: grid; gap: 2px; padding-inline: clamp(16px, 1.5vw, 24px); border-inline-start: 1px solid var(--line-strong); }
.tb-about-hero__facts li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.tb-about-hero__facts strong { white-space: nowrap; font-family: var(--font-display); font-size: 1.3rem; font-weight: var(--display-weight); line-height: 1.2; color: var(--heading); }
.tb-about-hero__facts span { font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.tb-about-hero .crumbs { margin-block-end: calc(var(--s-1) * -1); }

/* the real building large, a real playroom print tucked under its lower-left corner, the leaves in a small arch */
.tb-about-hero__collage {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: min(100%, 700px);
  aspect-ratio: 1 / 0.88;
}
.tb-about-hero__main {
  position: absolute;
  top: 4%;
  right: 0;
  width: 86%;
  margin: 0;
}
.tb-about-hero__main .media { --ar: 4 / 3.25; box-shadow: var(--shadow-2); }
.tb-about-hero__main .media > img { transition: scale 1600ms var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.is-loaded) .tb-about-hero__main .media > img { scale: 1.08; }
}
.tb-about-hero__cap {
  position: absolute;
  z-index: 1;
  right: var(--s-5);
  top: var(--s-5);
  gap: 0.45em;
  box-shadow: var(--shadow-1);
}
.tb-about-hero__cap .icon { color: var(--red); }
.tb-about-hero__side {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 36%;
}
.tb-about-hero__side-photo {
  --ar: 4 / 5;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 6px var(--white), var(--shadow-3);
  rotate: -3deg;
}
.tb-about-hero__leaf {
  position: absolute;
  z-index: 3;
  right: 6%;
  bottom: -4%;
  width: 24%;
}
.tb-about-hero__leaf-photo {
  --ar: 4 / 5.2;
  box-shadow: 0 0 0 6px var(--white), var(--shadow-2);
}
.tb-about-hero__sun {
  position: absolute;
  z-index: -1;
  top: -9%;
  left: 2%;
  width: 30%;
}

/* (r4: mission + activities styles moved to css/sections/tb-about-a.css - tb-about-a) */

/* ============================================================ 4 · settling in (sticky steps) ============================================================
   Pinned: a rounded photo per step + a plate on its lower edge whose numeral and label roll to the active step (tb-about.js).
   Without JS: step one's photo, "1 · Your keyworker" on the plate, every step fully readable. */
.tb-about-settle__head {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  max-width: 46rem;
  margin: 0 auto clamp(var(--s-7), 5vw, var(--s-9));
  text-align: center;
}
.tb-about-settle__head .lead { max-width: 50ch; }
.tb-about-settle__steps {
  --steps-media: 48%;
  --steps-ar: 5 / 5.4;
  --steps-min: 64vh;
}
.tb-about-settle .sticky-steps__frame {
  max-height: calc(100dvh - var(--steps-top) - var(--s-9));
  overflow: visible;
  background: none;
  border-radius: 0;
}
.tb-about-settle .sticky-steps__frame::before {
  content: "";
  grid-area: 1 / 1;
  border-radius: var(--r-xl);
  background: var(--peach);
  box-shadow: var(--shadow-2);
}
.tb-about-settle .sticky-steps__visual { grid-area: 1 / 1; transform: none; transition: opacity 560ms var(--ease-soft); }
.tb-about-settle__photo { --ar: auto; width: 100%; height: 100%; border-radius: var(--r-xl); }
.tb-about-settle__photo > img { scale: 1.07; transition: scale 1300ms var(--ease-out); }
.tb-about-settle .sticky-steps__visual.is-active .tb-about-settle__photo > img,
.tb-about-settle .sticky-steps:not(.is-ready) .sticky-steps__visual:first-child .tb-about-settle__photo > img { scale: 1; }

.tb-about-settle__plate {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-inline-start: var(--s-6);
  padding: var(--s-3) var(--s-6) var(--s-3) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-2);
  translate: 0 40%;
}
.tb-about-settle__nums {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sun);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: var(--display-weight);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.tb-about-settle__plate-copy { display: grid; gap: 2px; }
.tb-about-settle__plate-kicker {
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tb-about-settle__labels {
  display: grid;
  overflow: hidden;
  padding-block: 0.08em;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--display-weight);
  line-height: 1.15;
  color: var(--navy);
}
.tb-about-settle__num,
.tb-about-settle__label {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  translate: 0 90%;
  transition: opacity 200ms ease, translate 560ms var(--ease-out);
}
.tb-about-settle__num.is-past,
.tb-about-settle__label.is-past { translate: 0 -90%; }
.tb-about-settle__num.is-active,
.tb-about-settle__label.is-active { opacity: 1; translate: 0 0; transition-delay: 90ms; }

/* a thin bar on the frame's top edge: how far through settling in you are */
.tb-about-settle__progress {
  grid-area: 1 / 1;
  align-self: start;
  z-index: 3;
  height: 6px;
  margin: var(--s-5) var(--s-6) 0;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 55%, transparent);
  overflow: hidden;
}
.tb-about-settle__progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sun);
  transform-origin: 0 50%;
  transform: scaleX(calc((var(--step, 0) + 1) / var(--steps, 3)));
  transition: transform 600ms var(--ease-out);
}

.tb-about-settle .sticky-steps__list { margin-block-end: 8vh; }
.tb-about-settle .sticky-steps__title { max-width: 15ch; font-size: calc(var(--fs-h3) * 1.12); }
.tb-about-settle .sticky-steps__text { max-width: 42ch; font-size: var(--fs-lead); line-height: 1.55; }
.tb-about-settle__chip { margin-block-start: var(--s-2); }

.tb-about-settle__free {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3) var(--s-5);
  width: fit-content;
  max-width: 100%;
  margin: clamp(var(--s-6), 4vw, var(--s-8)) auto 0;
  padding: var(--s-4) var(--s-6) var(--s-4) var(--s-4);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.tb-about-settle__free-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}
.tb-about-settle__free strong { color: var(--heading); }

@media (prefers-reduced-motion: reduce) {
  .tb-about-settle__photo > img { scale: 1; transition: none; }
  .tb-about-settle__num, .tb-about-settle__label,
  .tb-about-settle__num.is-past, .tb-about-settle__label.is-past { translate: 0 0; transition: opacity 200ms ease; }
  .tb-about-settle__progress > span { transition: none; }
}

/* (r4: the old outdoor / food / safe / community blocks and the round-2 food f2-f4, safety s2 and community c3-c4 options are gone;
   outdoor + food live in css/sections/tb-about-b.css. What follows are the base rules for the two kept layouts.) */

/* ---------------------------------------------------------------- safety · Collection steps (refined in tb-about-b.css) ---------------------------------------------------------------- */
.tb-about-s3__head { display: grid; justify-items: center; gap: var(--s-4); max-width: 46rem; margin: 0 auto clamp(var(--s-7), 5vw, var(--s-8)); text-align: center; }
.tb-about-s3__head .lead { max-width: 54ch; }
.tb-about-s3__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); align-items: start; }
@media (min-width: 900px) { .tb-about-s3__grid { grid-template-columns: minmax(0, 5.4fr) minmax(0, 6fr); gap: clamp(var(--s-6), 5vw, var(--s-9)); } }
.tb-about-s3__visual { position: relative; }
.tb-about-s3__photo { --ar: 4 / 4.4; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.tb-about-s3__steps { display: grid; gap: var(--s-2); }
.tb-about-s3__step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4);
  border-radius: var(--r-lg);
}
.tb-about-s3__step p { margin-block-start: 2px; font-size: var(--fs-small); line-height: 1.55; color: var(--text); }
.tb-about-s3__step-title { font-size: var(--fs-h4); line-height: 1.25; }
.tb-about-s3__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--display-weight);
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color var(--t-3) ease, box-shadow var(--t-3) ease;
}
.tb-about-s3__step--pass { margin-block-start: var(--s-3); border: 1.5px dashed var(--line-strong); }
.tb-about-s3__step--pass .tb-about-s3__num { background: var(--red-soft); color: var(--red); box-shadow: none; }
.tb-about-s3__pass { display: inline-flex; align-items: center; gap: var(--s-3); margin-block-start: var(--s-3) !important; padding: 6px 6px 6px 14px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--shadow-1); }
.tb-about-s3__pass span { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tb-about-s3__pass b { padding: 4px 14px; border-radius: var(--r-pill); background: var(--navy); letter-spacing: 0.1em; color: var(--sun); }

/* ---------------------------------------------------------------- community · Map & distances (refined in tb-about-b.css) ---------------------------------------------------------------- */
.tb-about-c2__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); align-items: center; }
@media (min-width: 900px) { .tb-about-c2__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: clamp(var(--s-6), 5vw, var(--s-9)); } }
.tb-about-c2__copy { display: grid; gap: var(--s-4); }
.tb-about-c2__copy .h2 { margin-block-end: var(--s-4); }
.tb-about-c2__list { display: grid; border-block-start: 1px solid var(--line); }
.tb-about-c2__place {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) var(--s-3);
  border-block-end: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background-color var(--t-2) ease;
}
.tb-about-c2__place[data-c2-poi] { cursor: default; }
.tb-about-c2__place.is-hl { background: var(--white); box-shadow: var(--shadow-1); }
.tb-about-c2__place:focus-visible { outline: none; box-shadow: var(--focus); }
.tb-about-c2__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--leaf-soft); color: var(--navy); }
.tb-about-c2__place:nth-child(2) .tb-about-c2__icon { background: var(--sun-soft); }
.tb-about-c2__place:nth-child(3) .tb-about-c2__icon { background: var(--sky-soft); }
.tb-about-c2__words { display: grid; gap: 2px; }
.tb-about-c2__name { font-size: 1.125rem; line-height: 1.25; }
.tb-about-c2__words p { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.tb-about-c2__dist { display: grid; justify-items: end; text-align: end; }
.tb-about-c2__dist b { font-family: var(--font-display); font-size: 1.75rem; font-weight: var(--display-weight); line-height: 1; letter-spacing: -0.02em; color: var(--heading); font-variant-numeric: tabular-nums; }
.tb-about-c2__dist span { font-size: var(--fs-micro); font-weight: 600; color: var(--muted); white-space: nowrap; }
.tb-about-c2__map .bs-map__frame { border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.tb-about-c2 .bs-map__poi { transition: opacity var(--t-2) ease; }
.tb-about-c2 .bs-map__poi-mark { transition: scale var(--t-3) var(--ease-spring); }
.tb-about-c2 .has-hl .bs-map__poi:not(.is-hl) { opacity: 0.28; }
.tb-about-c2 .bs-map__poi.is-hl { z-index: 3; }
.tb-about-c2 .bs-map__poi.is-hl .bs-map__poi-mark { scale: 1.3; }
.tb-about-c2 .bs-map__poi.is-hl .bs-map__poi-name { color: var(--red-text); }

/* =====================================================================================================================
   r9 · PHONES + TABLETS. Every rule below sits inside a max-width query under 1280px (this file loads after
   css/sections/tb-about-a.css and -b.css, so it can tidy their sections too); the approved desktop is untouched.
   The community section (.tb-about-c2 / .tb-about-cm) is left to its own pass.
   ===================================================================================================================== */

/* ---------- 1 · hero: the three facts become a short list; the collage keeps its shape ---------- */
@media (max-width: 599px) {
  .tb-about-hero { padding-block-end: var(--s-9); }
  .tb-about-hero__title { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 2.6rem); }
  .tb-about-hero__facts { grid-template-columns: minmax(0, 1fr); gap: 0; width: 100%; margin-block: 0; border-block: 1px solid var(--line); }
  .tb-about-hero__facts li,
  .tb-about-hero__facts li:first-child { grid-template-columns: 8.2rem minmax(0, 1fr); align-items: baseline; gap: var(--s-3); padding: 10px 0; border-inline-start: 0; }
  .tb-about-hero__facts li + li { border-block-start: 1px solid var(--line); }
  .tb-about-hero__facts strong { font-size: 1.125rem; }
  .tb-about-hero__facts span { font-size: var(--fs-body); }
  .tb-about-hero .page-hero__actions { gap: var(--s-2) var(--s-5); }
  .tb-about-hero__collage { margin-block-start: var(--s-3); }
  .tb-about-hero__cap { left: var(--s-3); right: auto; top: var(--s-3); max-width: calc(100% - 2 * var(--s-3)); }
  .tb-about-hero__cap { white-space: normal; line-height: 1.25; }
  .tb-about-hero__cap .icon { flex: none; }
}

/* ---------- 2 · mission: the navy card keeps its quote, values and photo, with phone-sized insets ---------- */
@media (max-width: 899px) {
  .tb-about-mi1__figure { width: min(100%, 520px); justify-self: center; }
}
@media (max-width: 599px) {
  .tb-about-mi { padding: var(--s-8) 22px var(--s-7); gap: var(--s-7); }
  .tb-about-mi__quote { padding-inline-start: var(--s-6); }
  .tb-about-mi__quote::before { font-size: 3rem; }
  .tb-about-mi__quote p { font-size: 1.2rem; line-height: 1.55; }
  .tb-about-mi__copy .tb-about-mi__values { margin-inline-start: 0; }
  .tb-about-mi__values li { min-height: 44px; padding-inline-end: 16px; }
  .tb-about-mi__copy .tb-about-mi__with { margin: var(--s-2) 0 0; gap: var(--s-3); line-height: 1.65; }
  .tb-about-mi1__sun { right: -12px; top: -22px; width: 76px; }
  .tb-about-mi1__cap { left: -8px; bottom: var(--s-5); }
}

/* ---------- 3 · activities timeline: two-up on tablets, shorter photos on phones ---------- */
@media (min-width: 600px) and (max-width: 899px) {
  .tb-about-t1__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
  .tb-about-t1__photo { --ar: 4 / 4.4; aspect-ratio: 4 / 4.4; }
}
@media (max-width: 599px) {
  .tb-about-act-head { margin-block-end: var(--s-7); }
  .tb-about-t1__track { gap: var(--s-7); }
  .tb-about-t1__stop { gap: var(--s-4); }
  .tb-about-t1__photo { --ar: 4 / 3.4; aspect-ratio: 4 / 3.4; }
  .tb-about-t1__words { padding-inline: 0; }
  .tb-about-t1__name { font-size: 1.25rem; }
}

/* r10: on a laptop/tablet landscape (900-1279) the breastfeeding head column is narrow: put the icon above the title so
   "A breastfeeding-friendly" stays together on one line instead of leaving a lone "A" */
@media (min-width: 900px) and (max-width: 1279px) {
  .tb-about-feed__head { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .tb-about-feed__icon { width: 56px; height: 56px; }
}

/* r10: a short nursery name (Perth) made the breadcrumb link narrower than a 44px tap target */
@media (max-width: 1279px) {
  .tb-about-hero .crumbs a { display: inline-block; min-width: 44px; }
}

/* ---------- 3a · parents say: bigger dot targets, photos sized to the phone ---------- */
@media (max-width: 899px) {
  .tb-about-qs__grid { gap: var(--s-7); }
  .tb-about-qs__dot { height: 44px; width: 44px; padding-inline: 2px; }
  .tb-about-qs__dot.is-active { width: 76px; }
  .tb-about-qs__photos { width: min(100%, 520px); justify-self: center; height: auto; aspect-ratio: 1 / 0.86; }
}
@media (max-width: 599px) {
  .tb-about-qs__words { gap: var(--s-5); }
  .tb-about-qs__quote p { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.6rem); text-wrap: pretty; }
  /* r10: each dot is a full 44px tap target; the visible bar stays 36px (60px active), the extra is invisible padding */
  .tb-about-qs__dots { gap: 0; margin-block-start: 0; margin-inline-start: -4px; }
  .tb-about-qs__dot { width: 44px; padding-inline: 4px; }
  .tb-about-qs__dot.is-active { width: 68px; }
  .tb-about-qs__photo--b { box-shadow: 0 0 0 6px var(--qs-bg), var(--shadow-3); }
  .tb-about-qs__sun { width: 22%; top: -4%; }
}

/* ---------- 3b · provision card stack: pinned only where a whole card fits the screen ----------
   Narrower than 1280 the cards are taller (the two columns wrap more), so on a short tablet screen (1024 × 768 landscape) a pinned
   card's foot would sit under the next card for good. There the deck simply stacks; tb-about.js sees no sticky and leaves --depth. */
@media (min-width: 900px) and (max-width: 1279px) and (max-height: 959px) {
  .tb-about-pv__item { position: static; }
  .tb-about-pv__stack { gap: var(--s-6); }
}
@media (max-width: 899px) {
  .tb-about-pv__chips a { min-height: 44px; }
  .tb-about-pv__stack { gap: var(--s-6); }
  .tb-about-pv__photo { --ar: 16 / 10; }
}
@media (max-width: 599px) {
  .tb-about-pv-head .tb-about-pv__chips { padding-block-start: var(--s-5); }
  .tb-about-pv__chips { gap: var(--s-2); }
  .tb-about-pv__card { padding: 10px; }
  .tb-about-pv__photo { border-radius: calc(var(--r-xl) - 10px); }
  .tb-about-pv__body { gap: var(--s-3); padding: var(--s-5) 12px var(--s-4); }
  .tb-about-pv__title { font-size: 1.45rem; }
  .tb-about-pv__lead { font-size: var(--fs-body); }
  .tb-about-pv__items { gap: var(--s-4); }
  .tb-about-pv__items li { gap: var(--s-3); }
  .tb-about-pv__icon { width: 36px; height: 36px; }
  .tb-about-pv__icon .icon { width: 16px; height: 16px; }
}

/* ---------- 4 · settling in: on phones and small tablets the steps simply stack (sticky-steps.css); keep them inside the gutter ---------- */
@media (max-width: 899px) {
  .page-tb-about .tb-about-settle { padding-block-start: var(--section-y); padding-block-end: var(--s-7); }
  .page-tb-about .tb-about-settle__head { margin-block-end: var(--s-7); }
  .tb-about-settle .sticky-steps__list { grid-template-columns: minmax(0, 1fr); }
  .page-tb-about .tb-about-settle .sticky-steps__step { padding-block: var(--s-5); }
  .page-tb-about .tb-about-settle .sticky-steps__text { font-size: var(--fs-body); line-height: 1.7; }
  .tb-about-settle .sticky-steps__inline { aspect-ratio: 3 / 2; border-radius: var(--r-lg); }
  .tb-about-settle__chip .chip { white-space: normal; text-align: start; }
}
@media (max-width: 599px) {
  /* a heading over several lines reads better ragged-left than centred */
  .page-tb-about .tb-about-settle__head { justify-items: start; text-align: start; }
  .page-tb-about .tb-about-settle__free {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: var(--s-2) var(--s-3);
    width: 100%;
    margin-inline: 0;
    padding: var(--s-4);
    border-radius: var(--r-lg);
  }
  .page-tb-about .tb-about-settle__free .link-arrow { grid-column: 2; min-height: 44px; }
  .page-tb-about .tb-about-settle .sticky-steps__title { font-size: 1.4rem; }
  .tb-about-settle .sticky-steps > .sticky-steps__list { --steps-indent: 24px; }
}

/* ---------- 5 + 6 · Garden split (outdoor + food): the collage keeps its proportions instead of a fixed height ---------- */
@media (max-width: 899px) {
  .tb-about-gs__grid { gap: var(--s-7); }
  .tb-about-gs__collage { width: min(100%, 620px); height: auto; aspect-ratio: 1 / 0.82; justify-self: center; }
}
@media (max-width: 599px) {
  .tb-about-gs__collage { aspect-ratio: 1 / 1; }
  .tb-about-gs__tall { left: 0; width: 58%; }
  .tb-about-gs__print { width: 52%; padding: 6px 6px var(--s-2); }
  .tb-about-gs__print figcaption { padding-block-start: var(--s-2); font-size: 1.05rem; }
  .tb-about-gs__print--a { top: 4%; }
  .tb-about-gs__print--b { right: 4%; }
  .tb-about-gs__sun { left: -1%; bottom: 0; width: 17%; }
  .tb-about-gs--mirror .tb-about-gs__tall { right: 0; width: 60%; }
  .tb-about-gs--mirror .tb-about-gs__print--a { bottom: 2%; width: 56%; }
  .tb-about-gs__sticker { left: calc(40% - 52px); top: 2%; scale: 0.82; }
  .tb-about-gs__points li { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
  .tb-about-gs__icon { width: 40px; height: 40px; }
  .tb-about-gs__chip { padding: 10px 16px 10px 14px; }
  /* breastfeeding note: icon above the title, so the long word has the full width */
  .tb-about-feed { padding: var(--s-6) var(--s-5); }
  .tb-about-feed__head { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .tb-about-feed__icon { width: 52px; height: 52px; }
  .tb-about-feed__title .nowrap { white-space: normal; }
}

/* ---------- 7 · peace of mind: a shorter photo, steps and CCTV with phone insets ---------- */
@media (max-width: 899px) {
  .page-tb-about .tb-about-s3__photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 599px) {
  .page-tb-about .tb-about-s3__head { justify-items: start; text-align: start; }
  .page-tb-about .tb-about-s3__step { gap: var(--s-4); padding: var(--s-4) var(--s-2); }
  .page-tb-about .tb-about-s3__step--pass { padding: var(--s-4); }
  .tb-about-s3__cap { left: var(--s-3); right: var(--s-3); bottom: var(--s-3); }
  .tb-about-cctv { padding: var(--s-5); }
  .tb-about-cctv__btn { width: 100%; justify-content: space-between; }
  .tb-about-cctv__faces { margin-block-start: var(--s-5); }
  /* r10: the longer statement sets the card height on a phone; spread the three short facts evenly through it
     instead of leaving one big empty band between the button and the first fact */
  .tb-about-cctv__facts { align-content: space-evenly; }
}

/* =====================================================================================================================
   r11 · PHONES: CENTRE EVERYTHING ("I think everything just needs aligned"). The site-wide phone rule (under 600px, as the
   shared section heads); tablets and the desktop are untouched. It replaces the r9 "ragged-left" heads on this page.
   Centred: crumbs, eyebrows, headings, leads, facts, buttons, pills, captions, every small icon + text block (icon above).
   Kept left, in a centred column: the long breastfeeding paragraphs and the CCTV statement. The settling-in steps (the
   shared sticky steps, components) and the brochure viewer (partials/brochure.njk) are styled outside this file.
   Every rule is scoped to .page-tb-about so it outranks the r9/r10 phone rules in sections/tb-about-a.css and -b.css.
   ===================================================================================================================== */
@media (max-width: 599.98px) {
  /* 1 · hero */
  .page-tb-about .tb-about-hero .page-hero__copy { align-items: center; text-align: center; }
  .page-tb-about .tb-about-hero .crumbs ol { justify-content: center; }
  .page-tb-about .tb-about-hero .page-hero__title, .page-tb-about .tb-about-hero .page-hero__lead { margin-inline: auto; }
  .page-tb-about .tb-about-hero__facts li,
  .page-tb-about .tb-about-hero__facts li:first-child { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: var(--s-3); }
  .page-tb-about .tb-about-hero .page-hero__actions { justify-content: center; }

  /* 2 · mission (navy card): the quote mark sits above the words, the values and the families note centre */
  .page-tb-about .tb-about-mi__copy { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-mi__title { margin-inline: auto; }
  .page-tb-about .tb-about-mi__quote { padding-inline-start: 0; padding-block-start: 2.2rem; }
  .page-tb-about .tb-about-mi__quote::before { left: 50%; top: -0.1em; translate: -50% 0; }
  .page-tb-about .tb-about-mi__quote p { margin-inline: auto; }
  .page-tb-about .tb-about-mi__values { justify-content: center; }
  .page-tb-about .tb-about-mi__copy .tb-about-mi__with { grid-template-columns: minmax(0, 1fr); justify-items: center; }

  /* 3 · activities timeline */
  .page-tb-about .tb-about-act-head { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-act-head__intro { margin-inline: auto; }
  .page-tb-about .tb-about-t1__stop { justify-items: center; }
  .page-tb-about .tb-about-t1__words { justify-items: center; text-align: center; }

  /* 3a · parents say (quote strip) */
  .page-tb-about .tb-about-qs__words { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-qs__slide { justify-items: center; }
  .page-tb-about .tb-about-qs__quote p { margin-inline: auto; }
  .page-tb-about .tb-about-qs__dots { justify-content: center; margin-inline-start: 0; }

  /* 3b · provision: head, chips and each card's words centred; each point icon above */
  .page-tb-about .tb-about-pv-head { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-pv-head__intro { margin-inline: auto; }
  .page-tb-about .tb-about-pv__chips { justify-content: center; }
  .page-tb-about .tb-about-pv__body { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-pv__kicker { justify-content: center; }
  .page-tb-about .tb-about-pv__of { margin-inline-start: var(--s-1); }
  .page-tb-about .tb-about-pv__items li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-2); }
  .page-tb-about .tb-about-pv__items li > span:last-child { justify-items: center; }

  /* 4 · settling in: the head centres again; the free note becomes a centred block, heart above */
  .page-tb-about .tb-about-settle__head { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-settle__free { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .page-tb-about .tb-about-settle__free .link-arrow { grid-column: auto; }
  .page-tb-about .tb-about-settle__chip { display: flex; justify-content: center; }
  .page-tb-about .tb-about-settle__chip .chip { justify-content: center; text-align: center; }

  /* 5 + 6 · outdoor and food: words centred; each point icon above; the chip centred */
  .page-tb-about .tb-about-gs__copy { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-gs__points { margin-inline: auto; }
  .page-tb-about .tb-about-gs__points li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-2); }
  /* breastfeeding: icon, kicker, title and (r12, client: "that needs to be centre aligned") both paragraphs centred */
  .page-tb-about .tb-about-feed { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-feed__head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .page-tb-about .tb-about-feed__text { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-feed__text p { max-width: 34ch; margin-inline: auto; text-wrap: balance; }

  /* 7 · peace of mind: head centred again; the collection steps become centred blocks, number above */
  .page-tb-about .tb-about-s3__head { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-s3__step { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-3); text-align: center; }
  .page-tb-about .tb-about-s3__cap { justify-content: center; text-align: center; }
  .page-tb-about .tb-about-cctv__head { flex-direction: column; text-align: center; }
  .page-tb-about .tb-about-cctv__facts li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-2); text-align: center; }
  .page-tb-about .tb-about-cctv__full { text-align: start; }

  /* 8 · in the community: words centred; each place a centred block (icon, name, distance); the "easy to reach" stops too */
  .page-tb-about .tb-about-c2__copy { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-c2__lead { margin-inline: auto; }
  .page-tb-about .tb-about-c2__list { width: 100%; }
  .page-tb-about .tb-about-c2__place { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-2); padding-block: var(--s-5); text-align: center; }
  .page-tb-about .tb-about-c2__words { justify-items: center; }
  .page-tb-about .tb-about-c2__dist { grid-column: auto; justify-content: center; justify-items: center; text-align: center; }
  .page-tb-about .tb-about-c2__place:not(:has(.tb-about-c2__dist)) .tb-about-c2__words { grid-column: auto; }
  .page-tb-about .tb-about-c2__reach { justify-items: center; text-align: center; }
  .page-tb-about .tb-about-c2__reach-title { justify-items: center; }
  .page-tb-about .tb-about-c2__reach-list { width: 100%; }
  .page-tb-about .tb-about-c2__stop { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .page-tb-about .tb-about-c2__stop > span:last-child { justify-items: center; }
}

/* ==== pages/tb-contact.css ==== */
/* tb-contact.css - nursery "Contact" (src/nursery/contact.njk), round 8 redo. Behaviour: js/pages/tb-contact.js
   The card, the form and the contact strip are shared with the Book a visit page (src/nursery/visit.njk, tb-visit.css).
   1. .tb-contact-head    centred crumbs, title and one-line lead
   2. .tb-contact-box     the one white card: .tb-contact-switch (Send a message | Book a visit) + two panels, each a form
   2b. form controls      one height, one text line, one placeholder colour for every input, date, select and textarea
   2c. .tb-contact-layout the card + the details: r10, the client chose the Navy card (two columns from 1000px, the navy
                          panel right and sticky). .tb-contact-brand = the real Instagram / Facebook / TikTok logos.
   3. .tb-contact-strip   slim row under the visit page card: phone, email (+ copy), address, social logos
   4. .tb-contact-find    "Come and find us": building photo | address, Google Maps, how to find us
   Desktop-first (1280-1920); below 900px everything stacks. */

/* =====================================================================================================================
   1. head
   ===================================================================================================================== */
.tb-contact-main {
  padding-block: calc(var(--header-clear, 96px) + clamp(32px, 3.2vw, 52px)) var(--section-y);
  background: linear-gradient(180deg, var(--sun-mist), var(--bg) 520px);
}
.tb-contact-head {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  max-width: 40rem;
  margin: 0 auto clamp(32px, 3vw, 44px);
  text-align: center;
}
.tb-contact-head__title {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: var(--display-tracking);
  text-wrap: balance;
}
.tb-contact-head__lead { margin: 0; max-width: 34rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); text-wrap: pretty; }

/* =====================================================================================================================
   2. the card
   ===================================================================================================================== */
.tb-contact-box {
  --card-pad: clamp(28px, 3vw, 44px);
  --tbc-ctl: 50px;
  position: relative;
  width: min(100%, 760px);
  margin-inline: auto;
  padding: var(--card-pad);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  scroll-margin-top: calc(var(--header-h) + var(--header-top) + var(--s-5));
}

/* --- switcher --- */
.tb-contact-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 58px;
  margin-block-end: clamp(28px, 2.6vw, 36px);
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.tb-contact-switch__thumb {
  position: absolute;
  inset: 5px auto 5px 5px;
  width: calc(50% - 5px);
  border-radius: var(--r-pill);
  background: var(--navy);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--navy) 60%, transparent);
  transition: transform 460ms var(--ease-spring);
}
.tb-contact-switch[data-active="visit"] .tb-contact-switch__thumb { transform: translateX(100%); }
.tb-contact-switch__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: color 260ms var(--ease-out), scale var(--t-1) var(--ease-out);
}
.tb-contact-switch__tab .icon { width: 1.15em; height: 1.15em; color: var(--red); transition: color 260ms var(--ease-out); }
.tb-contact-switch__tab[aria-selected="true"] { color: var(--white); }
.tb-contact-switch__tab[aria-selected="true"] .icon { color: var(--sun); }
.tb-contact-switch__tab:active { scale: 0.98; }
.tb-contact-switch__tab:focus-visible { outline: none; box-shadow: var(--focus); }
.no-js .tb-contact-switch { display: none; }
.no-js .tb-contact-panel[hidden] { display: block; margin-block-start: var(--s-8); }

.tb-contact-panel:focus { outline: none; }
.tb-contact-panel.is-entering { animation: tbc-panel-in 320ms var(--ease-out) both; }
@keyframes tbc-panel-in { from { opacity: 0; transform: translateY(6px); } }

/* --- the form --- */
.tb-contact-form__head { display: grid; gap: var(--s-2); margin-block-end: var(--s-5); }
.tb-contact-form__title { margin: 0; font-size: var(--fs-h3); line-height: 1.2; }
.tb-contact-form__intro { margin: 0; font-size: var(--fs-body); line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.tb-contact-form__intro a { color: var(--heading); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.tb-contact-form__intro a:hover { text-decoration-color: var(--red); }
.tb-contact-form__grid { gap: 18px 16px; }
.tb-contact-form .field__label > span { display: inline; }
.tb-contact-form .field__optional { margin-inline-start: 0.3em; font-weight: 500; color: var(--muted); }
.tb-contact-form__date { font-variant-numeric: tabular-nums; }

/* email or phone, one is enough */
.tb-contact-either { display: grid; gap: var(--s-2); margin: 0; padding: 0; border: 0; }
.tb-contact-either__label { margin: 0; font-size: var(--fs-small); font-weight: 700; color: var(--heading); }
.tb-contact-either__label span { margin-inline-start: 0.35em; font-weight: 500; color: var(--muted); }
.tb-contact-either__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; }
.tb-contact-either__or {
  align-self: start;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  /* the label above each control is one line of --fs-small at line-height 1.3, then the field gap (--s-2) */
  margin-block-start: calc(var(--fs-small) * 1.3 + var(--s-2) + (var(--tbc-ctl) - 30px) / 2);
  border-radius: 50%;
  background: var(--sun-soft);
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--navy);
}

/* preferred day + morning / afternoon */
.tb-contact-time { margin: 0; padding: 0; border: 0; min-width: 0; }
/* a legend is not a flex item, so the field gap never reached it: the same gap as a label, so the bar lines up with the date */
.tb-contact-time > legend { margin-block-end: var(--s-2); padding: 0; }
.tb-contact-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--tbc-ctl);
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.tb-contact-seg__thumb {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: calc(var(--r-md) - 4px);
  background: var(--navy);
  opacity: 0;
  transform: scale(0.92);
  transition: transform 460ms var(--ease-spring), opacity 180ms var(--ease-out);
}
.tb-contact-seg:has(input:checked) .tb-contact-seg__thumb { opacity: 1; transform: scale(1); }
.tb-contact-seg:has(.tb-contact-seg__opt:nth-of-type(2) input:checked) .tb-contact-seg__thumb { transform: translateX(100%); }
.tb-contact-seg__opt { position: relative; z-index: 1; display: flex; cursor: pointer; }
.tb-contact-seg__opt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tb-contact-seg__opt > span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: calc(var(--r-md) - 4px);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--navy);
  transition: color 240ms var(--ease-out);
}
.tb-contact-seg__opt .icon { width: 1.1em; height: 1.1em; color: var(--sun-deep); }
.tb-contact-seg__opt > input:checked + span { color: var(--white); }
.tb-contact-seg__opt > input:checked + span .icon { color: var(--sun); }
.tb-contact-seg__opt > input:focus-visible + span { box-shadow: var(--focus); }
@supports not selector(:has(*)) { .tb-contact-seg__opt > input:checked + span { background: var(--navy); } }
.tb-contact-time.is-invalid .tb-contact-seg { box-shadow: inset 0 0 0 1.5px var(--red); }

.tb-contact-hint {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: -6px 0 var(--s-2);
  font-size: var(--fs-small);
  color: var(--muted);
}
.tb-contact-hint .icon { width: 1.05em; height: 1.05em; color: var(--sun-deep); }
.tb-contact-hint.is-good { color: var(--success, var(--leaf)); font-weight: 600; }
.tb-contact-hint.is-good .icon { color: currentColor; }

/* footer: consent + actions */
.tb-contact-form__foot {
  display: grid;
  gap: 18px;
  margin-block-start: var(--s-5);
  padding-block-start: var(--s-5);
  border-top: 1px solid var(--line);
}
.tb-contact-consent .check { min-height: 0; padding-block: 0; font-size: var(--fs-small); line-height: 1.6; }
.tb-contact-consent .field__error { padding-inline-start: calc(24px + var(--s-3)); }
.tb-contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); }
.tb-contact-form__call { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.tb-contact-form__call a {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
}
.tb-contact-form__call a:hover { text-decoration-color: var(--red); }

/* message confirmation (forms.js) sits calmly in the card */
.tb-contact-box .form-success { text-align: center; justify-items: center; }
.tb-contact-box .form-success__title { max-width: 24ch; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.2; text-wrap: balance; }

/* =====================================================================================================================
   2b. form controls - every input, date, select and textarea shares one height, one text line and one placeholder look,
   so labels, typed text and placeholders line up the same in Chrome, Safari and Firefox (r9: "out of touch" fields).
   ===================================================================================================================== */
.tb-contact-form :is(.input, .select) {
  height: var(--tbc-ctl);
  min-height: var(--tbc-ctl);
  padding-block: 13px;
  font-size: 1rem;           /* 16px: no zoom on focus in iOS Safari */
  line-height: 24px;         /* r10: one fixed text line (13 + 24 + 13 = 50) so Safari sits the text and placeholder in the
                                middle like Chrome; "normal" took Figtree's tall ascent and pushed the text up in Safari */
  font-family: inherit;
}
/* forms.css sets 11px on .field > input (0,2,1), which beat the rule above and left 28px for a 24px line, so the text sat
   off-centre in Safari: this one (0,3,0) keeps 13 + 24 + 13 = 50 */
.tb-contact-form .field > :is(.input, .select) { padding-block: 13px; line-height: 24px; }
.tb-contact-form .select { padding-inline-end: 48px; }
.tb-contact-form .textarea {
  min-height: 132px;
  padding: 13px 16px;        /* first line sits where the single-line fields put their text (13 + 24) */
  font-size: 1rem;
  line-height: 24px;
  font-family: inherit;
}
.tb-contact-form :is(.input, .textarea)::placeholder {
  line-height: inherit;
  color: color-mix(in srgb, var(--muted) 82%, var(--white));
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 1;
}
/* dates: no extra inner padding (Chrome), a real line height when empty (iOS Safari collapses it), the calendar button
   centred, and an empty date reads as a placeholder, not as a value (tb-contact.js sets data-empty) */
.tb-contact-form .input[type="date"] { padding-inline-end: 10px; }
.tb-contact-form .input[type="date"]::-webkit-datetime-edit,
.tb-contact-form .input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.tb-contact-form .input[type="date"]::-webkit-date-and-time-value { min-height: 1.3em; margin: 0; text-align: left; }
.tb-contact-form .input[type="date"]::-webkit-calendar-picker-indicator { width: 18px; height: 18px; margin: 0; padding: 7px; }
.tb-contact-form .input[type="date"][data-empty]:not(:focus)::-webkit-datetime-edit { color: color-mix(in srgb, var(--muted) 82%, var(--white)); font-weight: 400; }
.tb-contact-form .input[type="date"][data-empty]:not(:focus) { color: color-mix(in srgb, var(--muted) 82%, var(--white)); font-weight: 400; }

/* =====================================================================================================================
   2c. the card and the contact details (Design Lab group "tb-contact-layout"; the wrappers sit inside .tb-contact-layout)
   ===================================================================================================================== */
.tb-contact-layout { --tbc-gap: clamp(28px, 3vw, 48px); display: grid; gap: var(--tbc-gap); width: min(100%, 1180px); margin-inline: auto; }
.tb-contact-layout > .tb-contact-box { width: 100%; max-width: 760px; }
.tb-contact-layout__side { min-width: 0; }

@media (min-width: 1000px) {
  /* the form card LEFT, the navy details card RIGHT */
  .tb-contact-layout:has(> .tb-contact-layout__side:not([hidden])) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .tb-contact-layout:has(> .tb-contact-layout__side:not([hidden])) > .tb-contact-box { max-width: none; margin: 0; }
  .tb-contact-layout__side { position: sticky; top: calc(var(--header-h, 72px) + var(--header-top, 16px) + var(--s-5)); }
}

/* ---------- the details panel (base look; the navy card below is the one in use) ---------- */
.tb-contact-info {
  --info-pad: clamp(28px, 2.6vw, 40px);
  --info-line: var(--line);
  --info-label: var(--muted);
  --info-value: var(--navy);
  --info-icon-bg: var(--white);
  --info-icon: var(--red);
  display: grid;
  gap: var(--s-5);
  padding: var(--info-pad);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--cream) 60%, var(--white));
  box-shadow: inset 0 0 0 1px var(--line);
}
.tb-contact-info__title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--info-value);
}
.tb-contact-info__sun { width: 0.9em; height: 0.9em; color: var(--sun); }
.tb-contact-info__list { display: grid; margin: 0; padding: 0; list-style: none; }
.tb-contact-info__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding-block: var(--s-5);
  border-top: 1px solid var(--info-line);
}
.tb-contact-info__row:last-child { padding-block-end: 0; }
.tb-contact-info__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--info-icon-bg);
  box-shadow: var(--shadow-1);
  color: var(--info-icon);
}
.tb-contact-info__icon .icon { width: 20px; height: 20px; }
.tb-contact-info__body { display: grid; gap: 2px; min-width: 0; padding-block-start: 1px; }
.tb-contact-info__label { margin: 0; font-size: var(--fs-micro); font-weight: 600; line-height: 1.5; color: var(--info-label); }
.tb-contact-info__value {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.5;
  color: var(--info-value);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.tb-contact-info__value--lg { font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--display-weight); line-height: 1.35; letter-spacing: 0; }
a.tb-contact-info__value { text-underline-offset: 0.2em; }
@media (hover: hover) { a.tb-contact-info__value:hover { text-decoration: underline; text-decoration-color: var(--red); } }
.tb-contact-info__time { display: block; font-weight: 500; }
.tb-contact-info__note { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--info-label); }
.tb-contact-info__email-row { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.tb-contact-info__email { min-width: 0; overflow-wrap: anywhere; }
.tb-contact-info__address { margin: 0; font-style: normal; font-size: var(--fs-small); line-height: 1.6; color: var(--info-value); }
.tb-contact-info__address b { font-weight: 700; color: inherit; white-space: nowrap; }
.tb-contact-info__maps {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  justify-self: start;
  margin-block-start: var(--s-2);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--info-value);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  text-underline-offset: 0.25em;
}
.tb-contact-info__maps .icon { width: 1em; height: 1em; color: var(--info-icon); transition: translate var(--t-2) var(--ease-out); }
@media (hover: hover) {
  .tb-contact-info__maps:hover { text-decoration-color: var(--red); }
  .tb-contact-info__maps:hover .icon { translate: 2px -2px; }
}
.tb-contact-info__status { gap: 6px; font-size: var(--fs-micro); }
.tb-contact-info__status .open-status__text { color: var(--info-label); }
.tb-contact-info__follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block-start: var(--s-5); border-top: 1px solid var(--info-line); }
.tb-contact-info__follow .tb-contact-info__label { font-size: var(--fs-small); font-weight: 700; color: var(--info-value); }

/* 2 · the navy card */
.tb-contact-info--navy {
  --info-line: color-mix(in srgb, var(--white) 14%, transparent);
  --info-label: color-mix(in srgb, var(--white) 72%, var(--navy));
  --info-value: var(--white);
  --info-icon-bg: color-mix(in srgb, var(--white) 10%, transparent);
  --info-icon: var(--sun);
  position: relative;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-2);
}
.tb-contact-info--navy::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 26%, transparent), transparent 70%);
  pointer-events: none;
}
.tb-contact-info--navy > * { position: relative; }
.tb-contact-info--navy .tb-contact-info__icon { box-shadow: inset 0 0 0 1px var(--info-line); }
.tb-contact-info--navy .tb-contact-copy { background: color-mix(in srgb, var(--white) 12%, transparent); color: var(--white); }
.tb-contact-info--navy .tb-contact-copy:hover { background: color-mix(in srgb, var(--white) 22%, transparent); }
.tb-contact-info--navy .tb-contact-copy__icon--done { color: var(--sun); }
@media (hover: hover) { .tb-contact-info--navy a.tb-contact-info__value:hover { text-decoration-color: var(--sun); } }
.tb-contact-info--navy .tb-contact-info__maps:hover { text-decoration-color: var(--sun); }


/* ---------- the real social logos ---------- */
.tb-contact-socials { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.tb-contact-brand {
  --brand: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  color: var(--navy);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow var(--t-2) var(--ease-out), translate var(--t-2) var(--ease-out);
}
.tb-contact-brand--instagram { --brand: #E4405F; }
.tb-contact-brand--facebook { --brand: #0866FF; }
.tb-contact-brand--tiktok { --brand: #111111; }
.tb-contact-brand__mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--brand); }
.tb-contact-brand__mark .icon { width: 21px; height: 21px; }
.tb-contact-socials--named .tb-contact-brand { padding-inline-end: 16px; }
.tb-contact-socials--named .tb-contact-brand__mark { width: 36px; margin-inline-start: 4px; }
@media (hover: hover) { .tb-contact-brand:hover { translate: 0 -2px; box-shadow: var(--shadow-2), inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 45%, transparent); } }
.tb-contact-brand:focus-visible { outline: none; box-shadow: var(--focus); }
.tb-contact-brand:active { translate: 0 0; }
.tb-contact-info--navy .tb-contact-brand { box-shadow: none; }

/* =====================================================================================================================
   3. slim contact strip
   ===================================================================================================================== */
.tb-contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-4) clamp(24px, 2.6vw, 40px);
  width: min(100%, 1180px);
  margin: clamp(32px, 3vw, 44px) auto 0;
}
.tb-contact-strip__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
  color: var(--navy);
  text-decoration: none;
}
.tb-contact-strip__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-1);
  color: var(--red);
  transition: background-color var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out);
}
.tb-contact-strip__icon .icon { width: 20px; height: 20px; }
.tb-contact-strip__text { display: grid; gap: 1px; min-width: 0; text-align: left; }
.tb-contact-strip__label { font-size: var(--fs-micro); font-weight: 600; color: var(--muted); line-height: 1.4; }
.tb-contact-strip__value { font-size: var(--fs-body); font-weight: 700; color: var(--navy); line-height: 1.4; font-variant-numeric: tabular-nums; text-decoration: none; }
.tb-contact-strip__value--sm { font-size: var(--fs-small); font-weight: 600; }
.tb-contact-strip__email-row { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tb-contact-strip__email { overflow-wrap: anywhere; }
@media (hover: hover) {
  a.tb-contact-strip__item:hover .tb-contact-strip__icon { background: var(--navy); color: var(--sun); }
  a.tb-contact-strip__item:hover .tb-contact-strip__value, .tb-contact-strip__email:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.2em; }
}
.tb-contact-strip__status { gap: 6px; font-size: var(--fs-micro); }
.tb-contact-strip__status .open-status__text { color: var(--muted); }

.tb-contact-strip__social { padding-inline-start: clamp(24px, 2.6vw, 40px); border-inline-start: 1px solid var(--line); }

.tb-contact-copy {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  cursor: pointer;
  transition: background-color var(--t-2) var(--ease-out);
}
.tb-contact-copy:hover { background: var(--sun-soft); }
.tb-contact-copy:focus-visible { outline: none; box-shadow: var(--focus); }
.tb-contact-copy__icon { grid-area: 1 / 1; transition: opacity 180ms var(--ease-out), scale 260ms var(--ease-spring); }
.tb-contact-copy__icon--done { opacity: 0; scale: 0.6; color: var(--success, var(--leaf)); }
.tb-contact-copy.is-copied .tb-contact-copy__icon--copy { opacity: 0; scale: 0.6; }
.tb-contact-copy.is-copied .tb-contact-copy__icon--done { opacity: 1; scale: 1; }

/* =====================================================================================================================
   4. come and find us
   ===================================================================================================================== */
.tb-contact-find { scroll-margin-top: var(--s-6); }
.tb-contact-find__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) {
  .tb-contact-find__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
}
.tb-contact-find__media { --ar: 4 / 3; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.tb-contact-find__body { display: grid; justify-items: start; gap: var(--s-4); min-width: 0; }
.tb-contact-find__title { margin: 0; }
.tb-contact-find__address { margin: var(--s-2) 0 0; text-wrap: balance; font-style: normal; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); }
.tb-contact-find__address b { color: var(--navy); }
.tb-contact-find__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-block: var(--s-2) var(--s-3); }

.tb-contact-routes { display: grid; gap: var(--s-4); width: 100%; margin: 0; padding: var(--s-5) 0 0; list-style: none; border-top: 1px solid var(--line); }
/* the base ul[class] { padding: 0 } (0,1,1) outranked the line above, so the first route sat on the hairline */
.tb-contact-find .tb-contact-routes { padding-block-start: var(--s-5); }
.tb-contact-route { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.tb-contact-route__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-1);
  color: var(--navy);
}
.tb-contact-route__icon .icon { width: 20px; height: 20px; }
.tb-contact-route__body { display: grid; gap: 2px; padding-block-start: 2px; }
.tb-contact-route__title { margin: 0; font-family: var(--font-body); font-size: var(--fs-body); font-weight: 700; line-height: 1.5; letter-spacing: 0; color: var(--navy); }
.tb-contact-route__dist { margin-inline-start: 0.4em; font-size: var(--fs-micro); font-weight: 600; color: var(--muted); white-space: nowrap; }
.tb-contact-route__text { margin: 0; font-size: var(--fs-small); line-height: 1.65; color: var(--muted); text-wrap: pretty; }

@media (max-width: 640px) {
  .tb-contact-either__row { grid-template-columns: 1fr; }
  .tb-contact-either__or { margin: 0; }
  .tb-contact-strip { justify-content: flex-start; }
  .tb-contact-strip__social { padding-left: 0; border-left: 0; }
}
/* =====================================================================================================================
   5. phones and tablets (r9 mobile pass). Everything here sits under max-width queries, so 1000px+ is untouched.
   ===================================================================================================================== */
/* one-tap call / email under the head: phones and tablets only (from 1000px the navy card sits beside the form) */
.tb-contact-quick { display: none; }
@media (max-width: 999px) {
  .tb-contact-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin: var(--s-1) 0 0; }
  .tb-contact-quick__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 48px;
    padding: 0 20px;
    border-radius: var(--r-pill);
    background: var(--white);
    box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .tb-contact-quick__btn .icon { width: 18px; height: 18px; color: var(--red); }
  .tb-contact-quick__btn:focus-visible { outline: none; box-shadow: var(--focus); }
  .tb-contact-quick__btn:active { scale: 0.98; }

  /* the details panel under the form: two columns of rows on tablets */
  .tb-contact-layout > .tb-contact-box { margin-inline: auto; }
  .tb-contact-layout__side { width: min(100%, 760px); margin-inline: auto; }

  /* bigger touch targets for the small controls */
  .tb-contact-copy { flex: none; width: 44px; height: 44px; margin-block: -7px; }
  .tb-contact-info__maps { min-height: 44px; margin-block: 0 -10px; }
  .tb-contact-form__call a { display: inline-block; padding-block: 10px; margin-block: -10px; }

  /* iOS Safari: date fields keep to the column width, left-aligned, the same height as the rest */
  .tb-contact-form .input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; text-align: left; }

  /* Come and find us: a wider, shorter photo above the words */
  .tb-contact-find__media { --ar: 16 / 10; }
}
@media (min-width: 641px) and (max-width: 999px) {
  .tb-contact-info__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
  .tb-contact-info__row:nth-last-child(2) { padding-block-end: 0; }
}
@media (max-width: 640px) {
  .tb-contact-main { padding-block-end: 56px; }
  .tb-contact-head { gap: var(--s-3); margin-block-end: var(--s-6); }
  .tb-contact-head__title { font-size: clamp(2rem, 1.2rem + 4vw, 2.5rem); }
  .tb-contact-head__lead { font-size: 1.0625rem; }
  /* r12 (client: "the call bit is too close to the edge on the number"): two half-width pills squeezed the longest numbers
     (01383 624 409) against the pill edge; on phones each gets its own full-width row with room either side */
  .tb-contact-quick { flex-direction: column; align-items: stretch; width: min(100%, 360px); margin-inline: auto; }
  .tb-contact-quick__btn { flex: none; width: 100%; padding-inline: 24px; }

  /* the card: slimmer padding so the fields get the width */
  .tb-contact-box { --card-pad: 20px; border-radius: var(--r-lg); }
  .tb-contact-switch { height: 56px; margin-block-end: var(--s-6); padding: 4px; }
  .tb-contact-switch__thumb { inset: 4px auto 4px 4px; width: calc(50% - 4px); }
  .tb-contact-switch__tab { min-width: 0; gap: 0.4em; padding-inline: 6px; font-size: 0.9375rem; white-space: nowrap; }
  .tb-contact-form__title { font-size: 1.375rem; }
  .tb-contact-form__grid { gap: 20px; }

  /* email or phone: stacked, with a centred "or" between two hairlines */
  .tb-contact-either { gap: var(--s-3); }
  .tb-contact-either__label span { display: block; margin: 2px 0 0; }
  .tb-contact-either__row { gap: var(--s-3); }
  .tb-contact-either__or { display: flex; align-items: center; gap: var(--s-3); width: 100%; height: auto; margin: 0; border-radius: 0; background: none; color: var(--muted); }
  .tb-contact-either__or::before, .tb-contact-either__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

  /* morning / afternoon a touch taller for thumbs */
  .tb-contact-seg { height: 52px; }
  .tb-contact-hint { margin-block-start: -8px; }

  /* footer: full-width button, the phone line centred under it */
  .tb-contact-form__actions { flex-direction: column; align-items: stretch; gap: var(--s-4); }
  .tb-contact-form__submit { width: 100%; justify-content: center; }
  .tb-contact-form__call { text-align: center; }
  .tb-contact-consent .check { font-size: 0.9375rem; }

  /* the details panel */
  .tb-contact-info { --info-pad: 22px; border-radius: var(--r-lg); }
  .tb-contact-info__title { font-size: 1.25rem; }
  .tb-contact-info__row { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-3); }
  .tb-contact-info__follow { justify-content: flex-start; }
  .tb-contact-info__follow .tb-contact-info__label { width: 100%; }
  .tb-contact-socials { gap: var(--s-3); }


  /* slim strip (visit page): a tidy list, logos on their own row */
  .tb-contact-strip { flex-direction: column; align-items: stretch; gap: var(--s-4); }
  .tb-contact-strip__social { padding-block-start: var(--s-1); }
  .tb-contact-strip__value--sm { font-size: var(--fs-body); }

  /* come and find us */
  .tb-contact-find__grid { gap: var(--s-6); }
  .tb-contact-find__media { --ar: 4 / 3; border-radius: var(--r-lg); }
  .tb-contact-find__address { font-size: 1.0625rem; }
  .tb-contact-find__actions { width: 100%; }
  .tb-contact-find__actions .btn { width: 100%; justify-content: center; }
  .tb-contact-route__dist { display: block; margin: 2px 0 0; }
}
@media (max-width: 374px) {
  .tb-contact-switch__tab .icon { display: none; }
  .tb-contact-quick { flex-direction: column; }
  .tb-contact-quick__btn { flex: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-contact-switch__thumb, .tb-contact-seg__thumb, .tb-contact-seg::after, .tb-contact-brand { transition: none; }
  .tb-contact-panel.is-entering { animation: none; }
}

/* r10: a thin vertical line down the middle, between Morning and Afternoon */
.tb-contact-seg::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1.5px;
  margin-left: -0.75px;
  border-radius: 1px;
  background: var(--line-strong);
  pointer-events: none;
}
/* r10: the line gives way once a time is chosen (the navy thumb's edge is the middle then; a grey sliver beside it looked like a slip) */
.tb-contact-seg::after { transition: opacity 180ms var(--ease-out); }
.tb-contact-seg:has(input:checked)::after { opacity: 0; }

/* r10 QA: the "Choose a date" placeholder (forms.js .date-ph) takes the pink error tint with its field, not a white block */

/* r10 QA: the "what you sent" recap in the card reads left to right (the card centres only its title and text) */
.tb-contact-box .form-success__summary { text-align: left; }
@media (max-width: 640px) {
  /* phones: label above value, so a phone number or message never squeezes into a narrow column */
  .tb-contact-box .form-success__summary { padding-inline: var(--s-4); }
  .tb-contact-box .form-success__summary > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  /* the opening-hours hint: the clock sits on the first line when the text wraps */
  .tb-contact-hint { align-items: flex-start; }
  .tb-contact-hint .icon { flex: none; margin-block-start: 0.2em; }
  .tb-contact-hint span { text-wrap: balance; }
}

/* r10 QA: phones and tablets had 120 to 160px of empty cream between the navy card and the building photo */
@media (max-width: 999px) {
  .page-tb-contact .tb-contact-main { padding-block-end: 56px; }
  .tb-contact-find { padding-block-start: 56px; }
}
/* r10 QA: the strip's email link was a 24px-tall tap target on touch screens */
@media (max-width: 999px) {
  .tb-contact-strip__email { display: inline-block; padding-block: 10px; margin-block: -10px; }
}
/* r10 QA: where the strip wraps (tablets, small laptops), the logos drop to their own centred row without the divider
   that only makes sense beside the details */
@media (min-width: 641px) and (max-width: 1199px) {
  .tb-contact-strip__social { flex-basis: 100%; justify-content: center; padding-inline-start: 0; border-inline-start: 0; }
}
/* r10 QA: the copy button made the email row taller than its neighbours, so "Email" sat higher than "Call us" / "Find us" */
.tb-contact-strip__email-row .tb-contact-copy { margin-block: -4px; }
@media (max-width: 999px) { .tb-contact-strip__email-row .tb-contact-copy { margin-block: -11px; } }

/* r10: the phone number and email in the navy card are 44px tall tap targets on touch screens (same look) */
@media (pointer: coarse) {
  a.tb-contact-info__value { display: inline-flex; align-items: center; min-height: 44px; margin-block: -7px; }
}

/* =====================================================================================================================
   r11 · PHONES: CENTRE EVERYTHING (the site-wide phone rule, under 600px; tablets and desktop untouched).
   The forms keep their labels, inputs and tick box left-aligned; only each form's heading and intro centre.
   The details card and the routes become small centred blocks, icon above.
   ===================================================================================================================== */
@media (max-width: 599.98px) {
  /* forms: heading + intro centred, fields unchanged */
  .tb-contact-form__head { justify-items: center; text-align: center; }

  /* the details card */
  .tb-contact-info__title { justify-content: center; text-align: center; }
  .tb-contact-info__row { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-3); text-align: center; }
  .tb-contact-info__body { justify-items: center; }
  .tb-contact-info__email-row { justify-content: center; }
  /* r13: the maps link set its own justify-self: start, so it stayed left under the centred address */
  .tb-contact-info__maps { justify-self: center; }
  .tb-contact-info__follow { flex-direction: column; justify-content: center; text-align: center; }
  .tb-contact-socials { justify-content: center; }

  /* come and find us */
  .tb-contact-find__body { justify-items: center; text-align: center; }
  .tb-contact-route { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-3); text-align: center; }
  .tb-contact-route__body { justify-items: center; }

  /* "a bit more gap" between the sections: the r10 56px trims give way to the phone band rhythm */
  .page-tb-contact .tb-contact-main { padding-block-end: var(--section-y); }
  .tb-contact-find { padding-block-start: var(--section-y); }
}

/* r13: the message form has no consent box now; a short muted line under the button says how the details are used */
.tb-contact-form__privacy { margin: 0; }
@media (max-width: 599.98px) { .tb-contact-form__privacy { text-align: center; } }

/* ==== pages/tb-fees.css ==== */
/* tb-fees.css - Thornliebank "Fees & funding" (src/pages/thornliebank/fees.njk). Prefix: .tb-fees-
   One visual vocabulary for the whole page: a capsule is a block of nursery time.
   r7 order: hero · weekly estimator (with the price key) · included · help with costs · funded hours · FAQ · CTA
   · 5 day pairs for a week, 5 capsules for the 22.5 funded hours
   Navy = paid time, sun yellow = funded time. r5: no dashes in copy (times read "7:30am to 1:00pm"). */

/* ---------- the price: one component everywhere ---------- */
.tb-fees-price {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variant-numeric: tabular-nums;
  line-height: 0.84;
  letter-spacing: -0.045em;
  color: var(--heading);
  white-space: nowrap;
}
.tb-fees-price__cur {
  margin-block-start: 0.14em;
  margin-inline-end: 0.07em;
  font-size: 0.52em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

/* =====================================================================================================================
   1. Hero - keep the headline to its two lines: "Simple fees." / "Funding made easy."
   ===================================================================================================================== */
.tb-fees-hero .page-hero__title { max-width: none; line-height: 1.14; }
.tb-fees-hero .page-hero__title .accent { display: block; margin-block-start: 0.06em; white-space: nowrap; }
/* r5: "a bit squashed … more vertically down, line space, add some more": taller hero, looser copy, a second paragraph
   (r11: the three price facts under the buttons are gone, client's request). */
.page-tb-fees .tb-fees-hero { padding-block: calc(var(--header-clear, 96px) + clamp(64px, 6vw, 104px)) clamp(104px, 8.6vw, 144px); }
.tb-fees-hero .page-hero__inner { gap: clamp(var(--s-8), 6vw, 104px); }
.tb-fees-hero .page-hero__copy { gap: 32px; }
.tb-fees-hero .page-hero__lead { max-width: 52ch; line-height: 1.8; }
.tb-fees-hero .page-hero__actions { gap: var(--s-4) var(--s-5); margin-block-start: 0; }
.tb-fees-hero__more { flex-basis: 100%; order: -1; max-width: 54ch; margin: calc(var(--s-3) * -1) 0 var(--s-5); line-height: 1.8; color: var(--text); text-wrap: pretty; }
.tb-fees-hero .page-hero__figure { width: min(100%, 580px); }
.tb-fees-hero .page-hero__figure .media { --ar: 1 / 1.08; }

/* =====================================================================================================================
   3. What's included
   ===================================================================================================================== */
.tb-fees-incl__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(var(--s-7), 7vw, 112px);
  align-items: center;
}
.tb-fees-incl__art { position: relative; padding: 0 14% 15% 0; }
.tb-fees-incl__photo { --ar: 4 / 5; }
.tb-fees-incl__plate {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 47%;
  box-shadow: 0 0 0 10px var(--bg), var(--shadow-2);
}
.tb-fees-incl__note { position: absolute; left: 2%; bottom: 1%; }
.tb-fees-incl__copy .section-head__title { max-width: 17ch; }
.tb-fees-incl__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s-7);
  padding: 0;
  list-style: none;
}
.tb-fees-incl__list > li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: var(--s-3) 0 var(--s-3) 48px;
  border-top: 1.5px solid var(--line);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading);
  text-wrap: balance;
}
.tb-fees-incl__list > li:nth-last-child(-n + 2) { border-bottom: 1.5px solid var(--line); }
.tb-fees-incl__list > li::before,
.tb-fees-incl__list > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-block-start: -16px;
  border-radius: 50%;
}
.tb-fees-incl__list > li::before { background: var(--sun); }
.tb-fees-incl__list > li::after {
  background: var(--navy);
  -webkit-mask: var(--bullet-check) center / 56% no-repeat;
  mask: var(--bullet-check) center / 56% no-repeat;
}

/* the example week drawing (used by "How the funded hours add up") */
.tb-fees-week { display: flex; gap: var(--s-4); padding: 0; list-style: none; }
.tb-fees-week__day { display: grid; justify-items: center; gap: var(--s-2); }
.tb-fees-week__halves { display: flex; gap: 4px; margin-block-end: var(--s-1); }
.tb-fees-week__halves > i {
  width: 22px;
  height: 64px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--navy) 8%, transparent);
}
.tb-fees-week__halves > i.is-on { background: var(--sun); box-shadow: inset 0 0 0 1.5px var(--sun-deep); }
.tb-fees-week__name { font-size: var(--fs-small); font-weight: 700; line-height: 1; color: var(--heading); }
.tb-fees-week__name abbr[title] { text-decoration: none; cursor: default; }
.tb-fees-week__hrs { font-size: var(--fs-micro); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--muted); }

/* =====================================================================================================================
   5. Weekly estimator
   ===================================================================================================================== */
.tb-fees-est__card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  padding: var(--s-3);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.tb-fees-est__build {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: clamp(var(--s-5), 2.4vw, 36px) clamp(var(--s-5), 2.8vw, 44px) clamp(var(--s-5), 2.4vw, 36px) clamp(var(--s-5), 2.4vw, 36px);
}
.tb-fees-est__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.tb-fees-est__h { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.022em; }
.tb-fees-est__clear {
  min-height: 44px;
  padding: 0 var(--s-4);
  margin-inline-end: calc(var(--s-4) * -1);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color var(--t-2) ease, color var(--t-2) ease, scale var(--t-1) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tb-fees-est__clear:hover { background: var(--cream); color: var(--heading); }
}
.tb-fees-est__clear:active { scale: 0.97; }

/* day rows */
.tb-fees-est__days { flex: 1; display: grid; grid-auto-rows: 1fr; padding: 0; list-style: none; }
.tb-fees-dayrow {
  --fill: var(--navy);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 23.5rem);
  align-items: center;
  gap: var(--s-4);
  min-height: 84px;
  padding-block: var(--s-3);
  border-top: 1.5px solid var(--line);
}
.tb-fees-dayrow[data-status="funded"] { --fill: var(--sun); }
.tb-fees-dayrow__glyph { display: flex; gap: 3px; }
.tb-fees-dayrow__glyph > i {
  width: 11px;
  height: 34px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--navy) 9%, transparent);
  transition: background-color var(--t-2) var(--ease-out);
}
.tb-fees-dayrow:has(input[value="am"]:checked) .tb-fees-dayrow__glyph > i:first-child,
.tb-fees-dayrow:has(input[value="pm"]:checked) .tb-fees-dayrow__glyph > i:last-child,
.tb-fees-dayrow:has(input[value="full"]:checked) .tb-fees-dayrow__glyph > i { background: var(--fill); }
.tb-fees-dayrow[data-status="funded"] .tb-fees-dayrow__glyph > i { box-shadow: inset 0 0 0 1.5px transparent; }
.tb-fees-dayrow__label { display: grid; gap: 2px; min-width: 0; }
.tb-fees-dayrow__name {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--heading);
}
.tb-fees-dayrow__time { font-size: var(--fs-small); line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }

/* segmented control: real radios, a sliding thumb */
.tb-fees-seg {
  --pad: 4px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  padding: var(--pad);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--navy) 6%, transparent);
  isolation: isolate;
}
.tb-fees-seg__thumb {
  position: absolute;
  z-index: 0;
  top: var(--pad);
  bottom: var(--pad);
  left: var(--pad);
  width: calc((100% - 2 * var(--pad)) / var(--n, 4));
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-2) var(--ease-out), background-color var(--t-2) var(--ease-out);
}
.tb-fees-seg:has(.tb-fees-seg__opt:nth-of-type(2) > input:checked) .tb-fees-seg__thumb { transform: translateX(100%); }
.tb-fees-seg:has(.tb-fees-seg__opt:nth-of-type(3) > input:checked) .tb-fees-seg__thumb { transform: translateX(200%); }
.tb-fees-seg:has(.tb-fees-seg__opt:nth-of-type(4) > input:checked) .tb-fees-seg__thumb { transform: translateX(300%); }
.tb-fees-seg:has(.tb-fees-seg__opt:nth-of-type(5) > input:checked) .tb-fees-seg__thumb { transform: translateX(400%); }
.tb-fees-seg:has(input:not([value="none"]):checked) .tb-fees-seg__thumb { background: var(--fill); }
.tb-fees-seg__opt { position: relative; z-index: 1; display: grid; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tb-fees-seg__opt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tb-fees-seg__opt > span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding-inline: var(--s-1);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  color: color-mix(in srgb, var(--navy) 68%, transparent);
  white-space: nowrap;
  transition: color var(--t-2) ease, scale var(--t-1) var(--ease-out);
}
.tb-fees-seg__opt > input:checked + span { color: var(--navy); }
.tb-fees-seg__opt > input:not([value="none"]):checked + span { color: var(--white); }
.tb-fees-dayrow[data-status="funded"] .tb-fees-seg__opt > input:checked + span { color: var(--navy); }
.tb-fees-seg__opt > input:focus-visible + span { box-shadow: var(--focus); }
.tb-fees-seg__opt:active > span { scale: 0.95; }
@media (hover: hover) and (pointer: fine) {
  .tb-fees-seg__opt:hover > input:not(:checked) + span { color: var(--navy); }
}

/* the funded-hours switch */
.tb-fees-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-block-start: auto;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--sun-mist);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-2) ease;
}
.tb-fees-switch:has(.tb-fees-switch__input:checked) { background: var(--sun-soft); }
.tb-fees-switch__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tb-fees-switch__track {
  flex: none;
  width: 58px;
  height: 34px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--navy) 26%, transparent);
  transition: background-color var(--t-2) var(--ease-out);
}
.tb-fees-switch__thumb {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-2) var(--ease-out);
}
.tb-fees-switch__input:checked + .tb-fees-switch__track { background: var(--navy); }
.tb-fees-switch__input:checked + .tb-fees-switch__track > .tb-fees-switch__thumb { transform: translateX(24px); }
.tb-fees-switch__input:focus-visible + .tb-fees-switch__track { box-shadow: var(--focus); }
.tb-fees-switch:active .tb-fees-switch__thumb { scale: 0.92; }
.tb-fees-switch__text { display: grid; gap: 2px; }
.tb-fees-switch__label { font-weight: 700; line-height: 1.3; color: var(--heading); }
.tb-fees-switch__hint { font-size: var(--fs-small); line-height: 1.35; color: var(--text); }

/* the result panel */
.tb-fees-est__result {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(var(--s-5), 2.6vw, 40px);
  border-radius: calc(var(--r-xl) - var(--s-3));
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.tb-fees-est__result::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -30%;
  top: -24%;
  width: 90%;
  aspect-ratio: 1;
  background: var(--glow-sun);
  opacity: 0.16;
  pointer-events: none;
}
.tb-fees-est__kicker { font-size: var(--fs-small); font-weight: 600; line-height: 1.2; color: var(--muted); }
.tb-fees-est__total { display: flex; align-items: flex-end; gap: var(--s-3); margin-block-start: var(--s-1); }
.tb-fees-est__total .tb-fees-price { font-size: var(--fs-display); color: var(--sun); }
.tb-fees-est__unit { padding-block-end: 0.45em; font-size: var(--fs-lead); font-weight: 500; line-height: 1; color: var(--heading); }
.tb-fees-est__summary { min-height: 1.5em; line-height: 1.5; color: var(--text); }

.tb-fees-meter { display: grid; gap: var(--s-3); padding-block: var(--s-4); border-block: 1.5px solid var(--line); }
.tb-fees-meter__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-small); line-height: 1.2; }
.tb-fees-meter__label { font-weight: 700; color: var(--heading); }
.tb-fees-meter__text { font-variant-numeric: tabular-nums; color: var(--text); }
.tb-fees-meter__bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.tb-fees-meter__seg {
  height: 14px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 16%, transparent);
  overflow: hidden;
  transition: opacity var(--t-2) ease;
}
.tb-fees-meter__seg > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-2) var(--ease-out);
}
.tb-fees-meter[data-on="false"] .tb-fees-meter__seg { opacity: 0.55; }
.tb-fees-meter[data-on="false"] .tb-fees-meter__text { color: var(--muted); }

.tb-fees-lines { display: grid; padding: 0; list-style: none; }
.tb-fees-line {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 54px;          /* room for the second line, so the panel never changes height */
  padding-block: 6px;
}
.tb-fees-line + .tb-fees-line { border-top: 1px solid var(--line); }
abbr.tb-fees-line__day { font-size: var(--fs-small); font-weight: 700; line-height: 1; color: var(--muted); text-decoration: none; cursor: default; }
.tb-fees-line__what { display: grid; gap: 3px; min-width: 0; }
.tb-fees-line__name { font-weight: 600; line-height: 1.25; color: var(--heading); }
.tb-fees-line__sub { font-size: var(--fs-micro); line-height: 1.25; color: var(--text); }
.tb-fees-line__sub:empty { display: none; }
.tb-fees-line__amt {
  min-width: 2.6em;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--heading);
}
.tb-fees-line[data-status="none"] .tb-fees-line__name,
.tb-fees-line[data-status="none"] .tb-fees-line__amt { font-weight: 500; color: var(--muted); }
.tb-fees-line[data-status="funded"] .tb-fees-line__sub { color: var(--sun); }
.tb-fees-line[data-status="uncovered"] .tb-fees-line__sub { color: var(--peach); }

.tb-fees-est__foot { display: grid; gap: var(--s-4); margin-block-start: auto; padding-block-start: var(--s-3); }
.tb-fees-est__estimate { font-size: var(--fs-small); line-height: 1.45; color: var(--text); text-wrap: pretty; }
.tb-fees-est__foot .btn { justify-self: start; }

.tb-fees-est__static { max-width: 68ch; }

/* =====================================================================================================================
   6. Help with costs - one card per scheme, each with an icon and a plain sentence
   ===================================================================================================================== */
.tb-fees-help__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "cards" "ask";
  gap: var(--s-6);
  padding: clamp(var(--s-6), 4.4vw, 64px);
  border-radius: var(--r-xl);
  background: var(--peach);
}
.tb-fees-help__copy {
  grid-area: copy;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--s-4) var(--s-8);
  padding-block-end: var(--s-2);
}
.tb-fees-help__title { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.022em; }
.tb-fees-help__title .accent { color: var(--navy); }
.tb-fees-help__text { max-width: 58ch; color: var(--navy); text-wrap: pretty; }

.tb-fees-help__cards {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  padding: 0;
  list-style: none;
}
.tb-fees-scheme {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.tb-fees-scheme__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-block-end: var(--s-1);
  border-radius: 50%;
  background: var(--sun-soft);
  color: var(--navy);
}
.tb-fees-scheme__icon .icon { width: 22px; height: 22px; }
.tb-fees-scheme__title { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -0.015em; color: var(--heading); overflow-wrap: anywhere; }
.tb-fees-scheme__text { font-size: var(--fs-small); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.tb-fees-scheme--feature { --cta: var(--sun); background: var(--navy); --heading: var(--white); --text: color-mix(in srgb, var(--white) 80%, transparent); }
.tb-fees-scheme--feature .tb-fees-scheme__icon { background: var(--sun); }
.tb-fees-scheme__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-block-start: auto;
  padding-block-start: var(--s-2);
  font-weight: 700;
  color: var(--cta, var(--navy));
  text-decoration: none;
}
.tb-fees-scheme__cta .icon { width: 1.05em; height: 1.05em; transition: transform var(--t-2) var(--ease-out); }
.tb-fees-scheme__cta:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
@media (hover: hover) and (pointer: fine) {
  .tb-fees-scheme__cta:hover { text-decoration: underline; text-underline-offset: 0.2em; }
  .tb-fees-scheme__cta:hover .icon { transform: translate(2px, -2px); }
}

.tb-fees-help__ask {
  grid-area: ask;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: var(--s-3) var(--s-4);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-3);
  padding-inline-end: var(--s-5);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 62%, transparent);
  color: var(--navy);
  white-space: nowrap;
}
.tb-fees-help__ask-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun-mist); color: var(--navy); flex: none; }
.tb-fees-help__ask b { font-weight: 700; }

/* =====================================================================================================================
   7. FAQ - heading + a contact card on the left (sticky), the questions beside it
   ===================================================================================================================== */
.tb-fees-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(var(--s-7), 6vw, 96px);
  align-items: start;
}
.tb-fees-faq__intro { position: sticky; top: calc(var(--header-top-min, 10px) + var(--header-h-min, 60px) + var(--s-6)); display: grid; gap: var(--s-6); }
.tb-fees-faq__intro .section-head { margin-block-end: 0; }
.tb-fees-faq__incl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-5); font-size: var(--fs-small); }

.tb-fees-ask {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.tb-fees-ask__who { display: flex; align-items: center; gap: var(--s-4); }
.tb-fees-ask__photo {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--sun-soft);
}
.tb-fees-ask__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 30%); }
.tb-fees-ask__id { display: grid; gap: 2px; }
.tb-fees-ask__kicker { font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.tb-fees-ask__name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--display-weight); line-height: 1.15; letter-spacing: -0.015em; color: var(--heading); }
.tb-fees-ask__role { font-size: var(--fs-small); color: var(--muted); }
.tb-fees-ask__rows { display: grid; padding: 0; list-style: none; border-block: 1.5px solid var(--line); }
.tb-fees-ask__rows > li + li { border-block-start: 1px solid var(--line); }
.tb-fees-ask__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon k" "icon v";
  align-items: center;
  gap: 0 var(--s-3);
  padding-block: var(--s-3);
  color: var(--heading);
  text-decoration: none;
}
.tb-fees-ask__icon { grid-area: icon; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun-mist); color: var(--navy); transition: background-color var(--t-2) ease; }
.tb-fees-ask__k { grid-area: k; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tb-fees-ask__v { grid-area: v; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.tb-fees-ask__row:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-md); }
@media (hover: hover) and (pointer: fine) {
  .tb-fees-ask__row:hover .tb-fees-ask__icon { background: var(--sun); }
  .tb-fees-ask__row:hover .tb-fees-ask__v { text-decoration: underline; text-underline-offset: 0.2em; }
}

/* =====================================================================================================================
   Motion that belongs to this page (everything else is the declarative engine)
   ===================================================================================================================== */
@keyframes tb-fees-pop {
  from { opacity: 0; transform: scale(0.8); }
}
@media (prefers-reduced-motion: no-preference) {
  /* the example week fills one half-day at a time */
  html.js .tb-fees-week.is-revealed .tb-fees-week__halves > i.is-on {
    animation: tb-fees-pop var(--t-3) var(--ease-spring) backwards;
    animation-delay: calc(var(--i) * 110ms + 250ms);
  }
  html.js .tb-fees-week.is-revealed .tb-fees-week__halves > i.is-on + i.is-on { animation-delay: calc(var(--i) * 110ms + 305ms); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-fees-seg__thumb,
  .tb-fees-switch__thumb,
  .tb-fees-meter__seg > b { transition-property: background-color; }
}

/* narrower windows: keep it readable (desktop-only phase, simple stacking) */
@media (max-width: 1080px) {
  .tb-fees-est__card,
  .tb-fees-faq__grid,
  .tb-fees-incl__grid,
  .tb-fees-help__copy { grid-template-columns: minmax(0, 1fr); }
  .tb-fees-help__ask { white-space: normal; border-radius: var(--r-lg); flex-wrap: wrap; }
  .tb-fees-help__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-fees-faq__intro { position: static; }
}
@media (max-width: 760px) {
  .tb-fees-incl__list,
  .tb-fees-help__cards { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================================================================
   Round 4 (tb-team-fees): "a lot more white, too much yellow" and "zoom out, don't squash".
   Paper is the page colour; only two soft cream bands remain (estimator, funded hours), both fading in and out.
   The round-3 compaction overrides were removed: sections use --section-y, cards 32-48px padding, 17px body.
   ===================================================================================================================== */
/* r4 polish: the estimator now sits on plain paper (more white); only the funded-hours band keeps a soft cream fade */
.tb-fees-est { padding-block: calc(var(--section-y) * 0.55) var(--section-y); }
/* r7: estimator, included and help are three paper sections in a row: one clear gap between each, not two */
.tb-fees-est + .tb-fees-incl,
.tb-fees-incl + .tb-fees-help { padding-block-start: calc(var(--section-y) * 0.55); }
.tb-fees-fa.section--fade-both { background-color: var(--cream); --fade-h: clamp(110px, 11vw, 170px); padding-block: calc(var(--section-y) * 1.15); }
.tb-fees-est .section-head,
.tb-fees-fa .section-head { margin-block-end: clamp(var(--s-7), 4.4vw, var(--s-8)); }
.tb-fees-anchor { position: relative; top: calc((var(--header-h, 72px) + var(--s-5)) * -1); height: 0; }

/* ---------- estimator: roomier rows; r5 "the funded hours a little bit lower" ---------- */
.tb-fees-est__card { box-shadow: var(--shadow-2); }
.tb-fees-dayrow { min-height: 76px; }
.tb-fees-est__days { border-bottom: 1.5px solid var(--line); }
.tb-fees-est__fund { display: grid; gap: var(--s-4); margin-block-start: var(--s-7); }
.tb-fees-est__fund-k { display: flex; align-items: center; gap: var(--s-2); margin: 0; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tb-fees-est__fund-k .icon { color: var(--sun-deep); }
.tb-fees-est__fund .tb-fees-switch { margin-block-start: 0; padding: var(--s-5) var(--s-6); }
.tb-fees-est__result .tb-fees-lines { margin-block-start: var(--s-3); }
.tb-fees-est__result .tb-fees-meter { gap: var(--s-4); margin-block-start: var(--s-5); padding: var(--s-5) 0 var(--s-5); border-bottom: 0; }

/* ---------- r7: the session price key at the top of the estimator (the session-prices section was removed) ---------- */
.tb-fees-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.tb-fees-key__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "time time";
  align-items: center;
  gap: var(--s-1) var(--s-3);
  padding: var(--s-4) 20px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.tb-fees-key__name { grid-area: name; font-weight: 700; line-height: 1.3; color: var(--heading); }
.tb-fees-key__price { grid-area: price; font-size: 1.75rem; }
.tb-fees-key__time { grid-area: time; font-size: var(--fs-small); line-height: 1.5; font-variant-numeric: tabular-nums; color: var(--muted); }
.tb-fees-key__item--full { background: var(--sun-mist); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sun-deep) 40%, transparent); }

/* ---------- included: on white, between the two soft bands ---------- */
.tb-fees-incl__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); }
.tb-fees-incl__art { max-width: 440px; }
.tb-fees-incl .section-head { margin-block-end: var(--s-6); }

/* ---------- How the funded hours add up · Three steps (the client's choice) ---------- */
.tb-fees-fa__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.tb-fees-fa__step {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: 36px 40px 40px;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.tb-fees-fa__step:not(:last-child)::after {   /* a small chevron between the steps */
  content: "";
  position: absolute;
  z-index: 1;
  right: calc(var(--s-6) / -2 - 12px);
  top: 50%;
  width: 24px;
  height: 24px;
  margin-block-start: -12px;
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m10 7 5 5-5 5' fill='none' stroke='%23636990' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: var(--shadow-1);
}
.tb-fees-fa__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); font-weight: 700; color: var(--navy); }
.tb-fees-fa__big {
  margin: var(--s-3) 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 1.5vw, 3.4rem);
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--heading);
}
.tb-fees-fa__big small { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.tb-fees-fa__text { margin: 0; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.tb-fees-fa__step--result { box-shadow: 0 0 0 2px var(--navy), var(--shadow-2); }
.tb-fees-fa__step--result .tb-fees-fa__n { background: var(--navy); color: var(--white); }
.tb-fees-fa__eg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-8);
  margin-block-start: var(--s-6);
  padding: var(--s-6) clamp(var(--s-6), 3.4vw, var(--s-7));
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.tb-fees-fa__eg-copy { display: grid; gap: var(--s-3); }
.tb-fees-fa__eg-k { margin: 0; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tb-fees-fa__eg-t { margin: 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--heading); font-variant-numeric: tabular-nums; text-wrap: pretty; }
.tb-fees-fa__eg-t b { font-weight: 700; }
.tb-fees-fa__eg-s { margin: 0; font-size: var(--fs-small); color: var(--text); }
.tb-fees-week--calm { gap: var(--s-4); }
.tb-fees-week--calm .tb-fees-week__halves > i { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.tb-fees-week--calm .tb-fees-week__halves > i.is-on { background: var(--sun-soft); box-shadow: inset 0 0 0 1.5px var(--sun-deep); }
.tb-fees-week__name { font-size: var(--fs-small); }
.tb-fees-fa__note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: var(--s-6) 0 0; font-size: var(--fs-small); line-height: 1.6; color: var(--text); }
.tb-fees-fa__note > .icon { color: var(--red-text); }
.tb-fees-fa__note .link-arrow { margin-inline-start: auto; }

/* ---------- help with costs: same layout, a soft cream panel that fades to white instead of peach ---------- */
.tb-fees-help__panel {
  gap: var(--s-7);
  padding: clamp(var(--s-7), 4.6vw, 72px);
  background: var(--white);   /* r4 polish: white, not cream ("a lot more white on this page") */
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-1);
}
.tb-fees-help__title .accent { color: var(--accent); }
.tb-fees-help__text { color: var(--text); }
.tb-fees-help__panel { padding: clamp(var(--s-6), 4vw, 56px); }
.tb-fees-help__cards { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: var(--s-5); }
.tb-fees-scheme { padding: 28px 28px 30px; gap: var(--s-3); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.tb-fees-scheme--feature { background: var(--navy); box-shadow: var(--shadow-1); }
.tb-fees-scheme__text { font-size: 1rem; line-height: 1.65; }
.tb-fees-scheme__title { font-size: 1.25rem; overflow-wrap: normal; }
.tb-fees-scheme__cta { font-size: var(--fs-small); }
.tb-fees-help__ask { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- FAQ on white ---------- */
.tb-fees-faq__grid { gap: clamp(var(--s-8), 7vw, 112px); }

@media (max-width: 1080px) {
  .tb-fees-fa__steps, .tb-fees-fa__eg { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================================================================
   Round 9 · phones and tablets (max-width only: the desktop design at 1081px and up is untouched)
   The r4 blocks above re-set a few grids after the 1080 / 760 queries, so the stacking is restated here, last.
   ===================================================================================================================== */
@media (max-width: 1080px) {
  .tb-fees-incl__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .tb-fees-incl__art { width: min(100%, 400px); justify-self: center; }
  .tb-fees-help__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }


  /* how the funded hours add up: three stacked steps, number beside the figure, a chevron pointing down between them */
  .tb-fees-fa__steps { gap: var(--s-5); }
  .tb-fees-fa__step { grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--s-4); align-items: center; padding: var(--s-5) var(--s-6); }
  .tb-fees-fa__n { grid-row: 1; }
  .tb-fees-fa__big { grid-column: 2; margin: 0; }
  .tb-fees-fa__text { grid-column: 2; }
  .tb-fees-fa__step:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: calc(var(--s-5) / -2 - 12px); margin: 0 0 0 -12px; rotate: 90deg; }
  .tb-fees-fa__eg { gap: var(--s-6); justify-items: start; }
}

@media (max-width: 760px) {
  .tb-fees-incl__list,
  .tb-fees-help__cards { grid-template-columns: minmax(0, 1fr); }
  .tb-fees-incl__list > li:nth-last-child(2) { border-bottom: 0; }

  .tb-fees-switch__label { font-size: 1rem; }
  .tb-fees-line { min-height: 50px; }

  .tb-fees-fa__step { padding: var(--s-5); }
  .tb-fees-fa__big { font-size: 2.4rem; }
  .tb-fees-fa__eg { padding: var(--s-5); }
  .tb-fees-week--calm { gap: var(--s-3); }
  .tb-fees-fa__note .link-arrow { margin-inline-start: 0; }

  .tb-fees-help__panel { padding: var(--s-6) var(--s-5); gap: var(--s-6); }
  .tb-fees-scheme { padding: var(--s-5); }
  .tb-fees-ask { padding: var(--s-5); }
}


/* Round 10 · touch: the scheme links are 44px tall to tap (they read the same) */
@media (pointer: coarse) {
  .tb-fees-scheme__cta { min-height: 44px; padding-block-start: 0; margin-block-end: -10px; }
}

/* Round 10 · touch: a short nursery name in the breadcrumb (e.g. "Perth") still gets a 44px wide tap area */
@media (pointer: coarse) {
  .page-tb-fees .crumbs a { position: relative; }
  .page-tb-fees .crumbs a::after { content: ""; position: absolute; inset: 0 -6px; }
}

/* =====================================================================================================================
   Round 11 · phones (client on his iPhone: "centre everything"; "Weekly cost estimator as well, I all need the line to
   the middle"). Headings, intros, totals and short cards sit in the middle; the day rows, the price key and the
   breakdown lines keep their columns so the estimator stays easy to use. Desktop untouched.
   ===================================================================================================================== */
@media (max-width: 767px) {
  .tb-fees-est__estimate { text-align: center; }

  /* how the funded hours add up: each step centred, the number above its figure */
  .tb-fees-fa__step { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: var(--s-2); text-align: center; }
  .tb-fees-fa__n { grid-row: auto; }
  .tb-fees-fa__big, .tb-fees-fa__text { grid-column: 1; }
  .tb-fees-fa__eg { justify-items: center; text-align: center; }
  .tb-fees-fa__note { justify-content: center; text-align: center; }
  .tb-fees-fa__note .link-arrow { margin-inline: auto; }

  /* help with costs: heading, intro and each scheme card centred */
  .tb-fees-help__copy { justify-items: center; text-align: center; }
  .tb-fees-scheme { align-items: center; text-align: center; }
  .tb-fees-help__ask { justify-self: stretch; flex-direction: column; justify-content: center; text-align: center; }

  /* FAQ contact card: the manager's photo above her name */
  .tb-fees-ask__who { flex-direction: column; text-align: center; gap: var(--s-3); }
}

/* =====================================================================================================================
   Round 12 · weekly estimator (client's decision): one responsive estimator. Desktop (1081px and up) keeps the approved
   layout; phones and tablets get the step-by-step estimator. Funded hours start switched on. No price per day in the
   day list (the key carries the prices once; the weekly total stays).
   ===================================================================================================================== */
.tb-fees-line { grid-template-columns: 3em minmax(0, 1fr); }
@media (max-width: 1080px) { .tb-fees-est-desk { display: none; } }
@media (min-width: 1081px) { .tb-fees-est-mob { display: none; } }

/* ---------- phones and tablets: step by step ---------- */
.tb-fees-st {
  display: grid;
  gap: var(--s-5);
  width: min(100%, 640px);
  margin-inline: auto;
  padding: var(--s-5) var(--s-4) var(--s-4);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-2);
  text-align: center;
}
.tb-fees-st__prog { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-2); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.tb-fees-st__dot { position: relative; display: grid; justify-items: center; gap: 6px; font-size: var(--fs-micro); font-weight: 600; line-height: 1.2; color: var(--muted); }
.tb-fees-st__dot:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; border-radius: 2px; background: var(--line); }
.tb-fees-st__dot[data-state="done"]::after { background: var(--sun-deep); }
.tb-fees-st__dot-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); font-size: var(--fs-small); font-weight: 700; color: var(--navy); transition: background-color var(--t-2) ease, color var(--t-2) ease; }
.tb-fees-st__dot[data-state="now"] { color: var(--heading); }
.tb-fees-st__dot[data-state="now"] .tb-fees-st__dot-n { background: var(--navy); color: var(--white); }
.tb-fees-st__dot[data-state="done"] .tb-fees-st__dot-n { background: var(--sun); }
.tb-fees-st__step { display: grid; justify-items: center; gap: var(--s-4); min-width: 0; }
.tb-fees-st__step[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tb-fees-st__step:not([hidden]), .tb-fees-st__day:not([hidden]) { animation: tb-fees-step var(--t-3) var(--ease-out) both; }
}
@keyframes tb-fees-step { from { opacity: 0; transform: translateY(8px); } }
.tb-fees-st__n { margin: 0; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tb-fees-st__h { max-width: 22ch; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.tb-fees-st__h:focus, .tb-fees-st__kicker:focus { outline: none; }
.tb-fees-st__choices { display: grid; gap: var(--s-3); width: 100%; }
.tb-fees-st__choice, .tb-fees-st__opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tb-fees-st__choice > input, .tb-fees-st__opt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tb-fees-st__choice-in {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: var(--s-5) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color var(--t-2) ease, box-shadow var(--t-2) ease, scale var(--t-1) var(--ease-out);
}
.tb-fees-st__choice-in .icon { width: 28px; height: 28px; margin-block-end: 4px; color: var(--navy); }
.tb-fees-st__choice-in b { font-size: var(--fs-lead); font-weight: 700; line-height: 1.25; color: var(--heading); }
.tb-fees-st__choice-in small { font-size: var(--fs-small); line-height: 1.4; color: var(--text); }
.tb-fees-st__choice > input:checked + .tb-fees-st__choice-in { background: var(--sun-mist); box-shadow: inset 0 0 0 2.5px var(--navy); }
.tb-fees-st__choice > input:focus-visible + .tb-fees-st__choice-in, .tb-fees-st__opt > input:focus-visible + .tb-fees-st__opt-in { box-shadow: var(--focus); }
.tb-fees-st__choice:active .tb-fees-st__choice-in, .tb-fees-st__opt:active .tb-fees-st__opt-in { scale: 0.98; }
.tb-fees-st__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); width: 100%; }

.tb-fees-st__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: min(100%, 420px); }
.tb-fees-st__tab {
  --fill: var(--navy);
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 64px;
  padding: 8px 2px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow var(--t-2) ease, background-color var(--t-2) ease;
}
.tb-fees-st__tab[data-status="funded"] { --fill: var(--sun); }
.tb-fees-st__tab abbr[title] { text-decoration: none; }
.tb-fees-st__tab[aria-pressed="true"] { background: var(--white); box-shadow: inset 0 0 0 2.5px var(--navy), var(--shadow-1); }
.tb-fees-st__tab:focus-visible { outline: none; box-shadow: var(--focus); }
.tb-fees-st__tab-glyph, .tb-fees-st__opt-glyph { display: flex; gap: 3px; }
.tb-fees-st__tab-glyph > i, .tb-fees-st__opt-glyph > i { width: 8px; height: 20px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--navy) 10%, transparent); transition: background-color var(--t-2) ease; }
.tb-fees-st__tab[data-sel="am"] .tb-fees-st__tab-glyph > i:first-child,
.tb-fees-st__tab[data-sel="pm"] .tb-fees-st__tab-glyph > i:last-child,
.tb-fees-st__tab[data-sel="full"] .tb-fees-st__tab-glyph > i { background: var(--fill); }
.tb-fees-st__day { --fill: var(--navy); --on: var(--white); display: grid; justify-items: center; gap: var(--s-3); width: min(100%, 420px); }
.tb-fees-st__day[data-status="funded"] { --fill: var(--sun); --on: var(--navy); }
.tb-fees-st__day[hidden] { display: none; }
.tb-fees-st__opts { display: grid; gap: 8px; width: 100%; }
.tb-fees-st__opt-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: 8px var(--s-4);
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  text-align: start;
  transition: background-color var(--t-2) ease, color var(--t-2) ease, scale var(--t-1) var(--ease-out);
}
.tb-fees-st__opt-in b { font-weight: 700; line-height: 1.25; color: var(--heading); }
.tb-fees-st__opt-in small { font-size: var(--fs-small); line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.tb-fees-st__opt[data-opt="am"] .tb-fees-st__opt-glyph > i:first-child,
.tb-fees-st__opt[data-opt="pm"] .tb-fees-st__opt-glyph > i:last-child,
.tb-fees-st__opt[data-opt="full"] .tb-fees-st__opt-glyph > i { background: color-mix(in srgb, var(--navy) 45%, transparent); }
.tb-fees-st__opt > input:checked + .tb-fees-st__opt-in { background: var(--fill); box-shadow: none; }
.tb-fees-st__opt > input:checked + .tb-fees-st__opt-in b,
.tb-fees-st__opt > input:checked + .tb-fees-st__opt-in small { color: var(--on); }
.tb-fees-st__opt > input:checked + .tb-fees-st__opt-in .tb-fees-st__opt-glyph > i { background: color-mix(in srgb, var(--on) 30%, transparent); }
.tb-fees-st__opt[data-opt="am"] > input:checked + .tb-fees-st__opt-in .tb-fees-st__opt-glyph > i:first-child,
.tb-fees-st__opt[data-opt="pm"] > input:checked + .tb-fees-st__opt-in .tb-fees-st__opt-glyph > i:last-child,
.tb-fees-st__opt[data-opt="full"] > input:checked + .tb-fees-st__opt-in .tb-fees-st__opt-glyph > i { background: var(--on); }
.tb-fees-st__opt--none .tb-fees-st__opt-in { grid-template-columns: minmax(0, 1fr); justify-items: center; min-height: 48px; background: transparent; }
.tb-fees-st__opt--none .tb-fees-st__opt-in b { font-weight: 600; color: var(--muted); }
.tb-fees-st__opt--none > input:checked + .tb-fees-st__opt-in { background: var(--cream); }
.tb-fees-st__opt--none > input:checked + .tb-fees-st__opt-in b { color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .tb-fees-st__opt:hover > input:not(:checked) + .tb-fees-st__opt-in, .tb-fees-st__choice:hover > input:not(:checked) + .tb-fees-st__choice-in, .tb-fees-st__tab:hover { background: var(--sun-mist); }
}
.tb-fees-st__running { display: inline-flex; align-items: baseline; gap: 8px; margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.tb-fees-st__running .tb-fees-price { align-items: baseline; font-size: 2rem; line-height: 1; }
.tb-fees-st__running .tb-fees-price__cur { margin-block-start: 0; }

.tb-fees-st__step--result { position: relative; gap: var(--s-3); padding: var(--s-6) var(--s-5) var(--s-5); border-radius: calc(var(--r-xl) - var(--s-4)); background: var(--navy); overflow: hidden; isolation: isolate; }
.tb-fees-st__step--result::before { content: ""; position: absolute; z-index: -1; right: -30%; top: -24%; width: 90%; aspect-ratio: 1; background: var(--glow-sun); opacity: 0.16; pointer-events: none; }
.tb-fees-st__kicker { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; line-height: 1.2; letter-spacing: 0; color: var(--muted); }
.tb-fees-st__total { display: flex; align-items: flex-end; justify-content: center; gap: var(--s-3); margin: 0; }
.tb-fees-st__total .tb-fees-price { font-size: clamp(3.2rem, 2.2rem + 5vw, 4.6rem); color: var(--sun); }
.tb-fees-st__unit { padding-block-end: 0.45em; font-size: var(--fs-lead); font-weight: 500; line-height: 1; color: var(--heading); }
.tb-fees-st__summary { margin: 0; line-height: 1.5; color: var(--text); text-wrap: balance; }
.tb-fees-st__step--result .tb-fees-lines { width: 100%; margin-block-start: var(--s-2); text-align: start; }
.tb-fees-st__step--result .tb-fees-meter { width: 100%; text-align: start; }
.tb-fees-st__step--result .tb-fees-meter__label { white-space: nowrap; }
.tb-fees-st__step--result .tb-fees-meter__text { text-align: end; }
.tb-fees-st__foot { display: grid; justify-items: center; gap: var(--s-3); width: 100%; margin-block-start: var(--s-2); }
.tb-fees-st__foot .btn { justify-self: stretch; justify-content: center; }
.tb-fees-st__again { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s-2); }
.tb-fees-st__link { min-height: 44px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-pill); background: transparent; font: inherit; font-size: var(--fs-small); font-weight: 700; color: var(--white); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.tb-fees-st__link:focus-visible { outline: none; box-shadow: var(--focus); }
@media (min-width: 600px) {
  .tb-fees-st { padding: var(--s-6); }
  .tb-fees-st__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-fees-st__foot .btn { justify-self: center; }
}
@media (max-width: 380px) {
  .tb-fees-st__opt-in { gap: var(--s-2); padding-inline: var(--s-3); }
  .tb-fees-st__opt-in small { font-size: var(--fs-micro); }
}

/* step 2: Back a day / Next day */
.tb-fees-st__daynav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); width: min(100%, 420px); }
.tb-fees-st__daybtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--cream);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-2) ease, opacity var(--t-2) ease, scale var(--t-1) var(--ease-out);
}
.tb-fees-st__daybtn .icon { width: 1.1em; height: 1.1em; }
.tb-fees-st__daybtn:disabled { opacity: 0.4; cursor: default; }
.tb-fees-st__daybtn:not(:disabled):active { scale: 0.97; }
.tb-fees-st__daybtn:focus-visible { outline: none; box-shadow: var(--focus); }
@media (hover: hover) and (pointer: fine) {
  .tb-fees-st__daybtn:not(:disabled):hover { background: var(--sun-mist); }
}
.tb-fees-st__n:focus { outline: none; }
/* step 3: the funded-hours switch on the navy panel, updates the total live */
.tb-fees-st__switch { width: 100%; margin-block: var(--s-2); padding: var(--s-4); gap: var(--s-3); background: color-mix(in srgb, var(--white) 8%, transparent); text-align: start; }
.tb-fees-st__switch:has(.tb-fees-switch__input:checked) { background: color-mix(in srgb, var(--white) 12%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sun) 55%, transparent); }
.tb-fees-st__switch .tb-fees-switch__track { background: color-mix(in srgb, var(--white) 28%, transparent); }
.tb-fees-st__switch .tb-fees-switch__input:checked + .tb-fees-switch__track { background: var(--sun); }
.tb-fees-st__switch .tb-fees-switch__input:checked + .tb-fees-switch__track > .tb-fees-switch__thumb { background: var(--navy); }

/* ---------- r12: "From nappies to newsletters" centred on phones: heading and intro centred, the tick list as a
   centred block with its ticks still lined up ---------- */
@media (max-width: 767px) {
  .tb-fees-incl__copy .section-head { align-items: center; text-align: center; margin-inline: auto; }
  .tb-fees-incl__copy .section-head__title { margin-inline: auto; }
  .tb-fees-incl__list { width: min(100%, 21rem); margin-inline: auto; }
  /* r12b: "meals & snacks included" was hard to read over the photo: on phones it gets a solid white label, without
     the arrow, in the free corner under the photo */
  .tb-fees-incl__note { left: 0; bottom: 2%; padding: 4px 14px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--shadow-1); white-space: nowrap; z-index: 1; }
  .tb-fees-incl__note .scribble__text { font-size: 1.05rem; }
  .tb-fees-incl__note .scribble > svg, .tb-fees-incl__note svg { display: none; }
}

/* r13: the day name sits back above the session buttons on phones (no times under it; the times are on the buttons) */
.tb-fees-st__dayname {
  margin: 0 0 var(--s-4);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--display-weight);
  line-height: 1.2;
  color: var(--heading);
}

/* ==== pages/tb-gallery.css ==== */
/* tb-gallery.css - Thornliebank "Gallery" page.  Prefix: .tb-gallery-   (desktop first: 1280-1920) */

/* ------------------------------------------------------------ 1. hero ------------------------------------------------------------ */
.tb-gallery-hero .page-hero__title { max-width: 14ch; }
.tb-gallery-hero .page-hero__title .accent { display: block; }
.tb-gallery-hero .page-hero__lead { max-width: 44ch; }

/* -------------------------------------------------------- 2. the gallery --------------------------------------------------------- */
.tb-gallery {
  --tile-row: clamp(220px, 19vw, 320px);   /* target row height; rows grow from here to fill the width */
  --tile-gap: clamp(14px, 1.3vw, 22px);
  --tile-r: var(--r-lg);
  padding-block-start: var(--s-5);   /* R3 GA1: the filter bar used to sit here; keep a little air under the hero */
}

/* justified rows: every tile keeps its photo's aspect ratio (--r = w / h). Its basis is the target row height × ratio and it grows in
   proportion to its ratio, so all tiles in a row share one height. The filler after the last tile stops the last row stretching. */
.tb-gallery-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--tile-gap);
}
.tb-gallery-grid::after { content: ""; flex: 100000 1 0px; min-width: 0; }
/* JS: when the last row is already most of the way across, let it justify too (no ragged end) */
.tb-gallery-grid.is-last-full::after { display: none; }

.tb-gallery-tile {
  position: relative;
  display: block;
  flex: var(--r) 1 calc(var(--r) * var(--tile-row));
  min-width: 0;
  aspect-ratio: var(--r);
  overflow: hidden;
  border-radius: var(--tile-r);
  background: var(--cream);
  text-decoration: none;
  cursor: zoom-in;
  transform-origin: 0 0;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.tb-gallery-tile[hidden] { display: none; }
.tb-gallery-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 40%);
  transition: scale 1.4s var(--ease-out);
}

/* R5: no caption, label or icon on hover (client: "they can just click on it"); only a slow, gentle zoom of the photo */
@media (hover: hover) {
  .tb-gallery-tile:hover .tb-gallery-tile__img { scale: 1.04; }
}
.tb-gallery-tile:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* -------------------------------------------------------- 3. closing CTA --------------------------------------------------------- */
/* polish: one section-y of air above the card (the grid's own bottom padding) and the same below it, clear of the footer's
   rounded overlap, so the card sits centred between the photos and the footer */
.tb-gallery-cta { padding-block: 0 calc(var(--section-y) + var(--footer-r, 56px)); }

@media (prefers-reduced-motion: reduce) {
  .tb-gallery-tile__img { transition: none; }
  .tb-gallery-tile:hover .tb-gallery-tile__img { scale: 1; }
}

/* R3: "Show all photos" under the folded grid */
.tb-gallery-more { display: flex; justify-content: center; margin-top: 32px; }
.tb-gallery-more[hidden] { display: none; }
.tb-gallery-tile[hidden] { display: none; }

/* ------------------------------------------------- R9 mobile + tablet (below 1280 only) ------------------------------------------------- */
@media (max-width: 1279px) {
  /* flex only hands out all the free space when a row's grow factors sum to 1 or more; a lone portrait (ratio < 1) on a narrow row
     used to stop short of the edge. Scaling every factor by 10 keeps the proportions and always fills the row. */
  .tb-gallery-tile { flex-grow: calc(var(--r) * 10); }
  .tb-gallery-more .btn { min-height: 48px; }
}
@media (max-width: 1023px) {
  .tb-gallery { --tile-row: 190px; --tile-gap: 12px; }
}
/* phones: two or three photos to a row (a quick, scannable contact sheet) instead of one tall photo after another */
@media (max-width: 599px) {
  .tb-gallery { --tile-row: 112px; --tile-gap: 8px; --tile-r: 12px; padding-block-start: var(--s-3); }
  .tb-gallery-more { margin-top: var(--s-6); }
}
/* the lightbox on this page: keep the close button and caption clear of the notch / home indicator */
.page-tb-gallery .lightbox__top { padding-top: max(var(--s-3), env(safe-area-inset-top)); }
.page-tb-gallery .lightbox__caption { padding-bottom: max(clamp(18px, 3vh, 32px), calc(env(safe-area-inset-bottom) + 12px)); }
@media (max-width: 700px) {
  .page-tb-gallery .lightbox__top { min-height: 64px; }
  .page-tb-gallery .lightbox__nav { bottom: max(clamp(14px, 3vh, 28px), calc(env(safe-area-inset-bottom) + 8px)); }
}

/* r11 · phones: the hero's crumbs, title and line sit on the middle line (the site-wide phone centring, under 600px);
   the photo grid already runs edge to edge and the button under it is centred */
@media (max-width: 599.98px) {
  .tb-gallery-hero .page-hero__copy { align-items: center; text-align: center; }
  .tb-gallery-hero .crumbs ol { justify-content: center; }
  .tb-gallery-hero .page-hero__title, .tb-gallery-hero .page-hero__lead { margin-inline: auto; }
}

/* ==== pages/tb-home.css ==== */
/* ============================================================================================================
   pages/tb-home.css - Thornliebank home (src/pages/thornliebank/index.njk).  Class prefix: .tb-home-
     2 at a glance (icon ribbon) · 3 welcome · 4 rooms (the signature expanding row) · 5 included · 6 out and about ·
     7 always connected (clean split, Famly purple) · 9 session prices
   Round 4 ("zoom out, don't squash"): every unchosen option and its styles are gone; no rule here shrinks the global
   section padding, type or line-height below the tokens. Sections breathe at --section-y; bands fade in and out.
   Tokens only. Desktop first (1280-1920); everything stacks simply below 900px.
   ============================================================================================================ */

/* ============================================================================================================
   2. AT A GLANCE - Icon ribbon (r6: the client's choice; the other three ribbons are deleted), sitting ON the yellow hero (r4: "a bit higher on the yellow
   background"). The hero keeps room at its foot for them (css/heroes/t2.css, --tb-ribbon-room); the ribbon is pulled up
   into that room by --tb-ribbon-lift, so the bar and the note under it both rest on the hero's colour.
   ============================================================================================================ */
.page-tb-home { --tb-ribbon-lift: 168px; }
.tb-home-ribbon {
  position: relative;
  z-index: 3;
  margin-block-start: calc(-1 * var(--tb-ribbon-lift));
}
.tb-home-ribbon__bar {
  display: flex;
  align-items: stretch;
  gap: var(--s-2);
  padding: var(--s-2);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.tb-home-ribbon__tag { align-self: stretch; }
.tb-home-ribbon__facts { flex: 1 1 auto; display: flex; }
.tb-home-ribbon__fact {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 4px;
  padding: var(--s-3) clamp(var(--s-4), 2vw, var(--s-6));
}
.tb-home-ribbon__fact + .tb-home-ribbon__fact::before {
  content: "";
  position: absolute;
  inset-block: 28%;
  left: 0;
  width: 1px;
  border-radius: 1px;
  background: var(--line-strong);
}
.tb-home-ribbon__value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 0.65vw, 1.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--heading);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tb-home-ribbon__label { font-size: var(--fs-small); font-weight: 500; line-height: 1.35; color: var(--muted); white-space: nowrap; }
.tb-home-ribbon__note { margin-block-start: var(--s-4); font-size: var(--fs-small); color: var(--muted); text-align: center; }
@media (max-width: 1099px) {
  .tb-home-ribbon__bar { flex-direction: column; border-radius: var(--r-xl); }
  .tb-home-ribbon__facts { flex-wrap: wrap; }
}

/* the small dashes in ranges ("12 wks - 5 yrs", "7:30 - 6:00") */
.tb-home-unit { margin-inline: 0.2em 0.06em; font-size: 0.42em; font-weight: 500; letter-spacing: 0; }
.tb-home-dash { display: inline-block; margin-inline: 0.2em; font-size: 0.6em; font-weight: 400; vertical-align: 0.24em; opacity: 0.45; }

/* the one yellow tag: Free settling-in sessions */
.tb-home-tag {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
  min-height: 56px;
  padding: var(--s-1) var(--s-5) var(--s-1) var(--s-2);
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--navy);
}
.tb-home-tag__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
}
.tb-home-tag__ico .icon { width: 18px; height: 18px; }
.tb-home-tag__txt { line-height: 1.25; white-space: nowrap; }
.tb-home-tag__txt b { font-size: var(--fs-small); font-weight: 700; }

/* Icon ribbon (r6: the client's choice): a round tinted icon leads each fact */
.tb-home-ribbon--icons .tb-home-ribbon__fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "ico value" "ico label";
  align-content: center;
  column-gap: var(--s-3);
  row-gap: 2px;
}
.tb-home-ribbon--icons .tb-home-ribbon__fact::before { display: none; }
.tb-home-ribbon--icons .tb-home-ribbon__ico { grid-area: ico; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--room-baby-soft); color: var(--room-baby); }
.tb-home-ribbon--icons .tb-home-ribbon__fact--2 .tb-home-ribbon__ico { background: var(--room-tweenies-soft); color: color-mix(in srgb, var(--room-tweenies) 80%, var(--navy)); }
.tb-home-ribbon--icons .tb-home-ribbon__fact--3 .tb-home-ribbon__ico { background: var(--room-twos-soft); color: color-mix(in srgb, var(--room-twos) 70%, var(--navy)); }
.tb-home-ribbon--icons .tb-home-ribbon__fact--4 .tb-home-ribbon__ico { background: var(--room-preschool-soft); color: color-mix(in srgb, var(--room-preschool) 60%, var(--navy)); }
.tb-home-ribbon--icons .tb-home-ribbon__ico .icon { width: 20px; height: 20px; }
.tb-home-ribbon--icons .tb-home-ribbon__value { grid-area: value; font-size: clamp(1.25rem, 0.95rem + 0.5vw, 1.5rem); }
.tb-home-ribbon--icons .tb-home-ribbon__label { grid-area: label; }

/* ============================================================================================================
   3. WELCOME - Original (r5: the client's choice; Centred deleted)
   ============================================================================================================ */
.tb-home-welcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
}
@media (min-width: 900px) {
  .tb-home-welcome__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(var(--s-8), 7vw, 120px); }
  .tb-home-welcome__media { max-width: 540px; justify-self: start; width: 100%; }
}
.tb-home-welcome__media { position: relative; isolation: isolate; padding: 0 8% 22% 0; }
.tb-home-welcome__blob .media { background: var(--peach); }
.tb-home-welcome__small {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 2%;
  width: 52%;
}
.tb-home-welcome__print {
  padding: 8px;
  border-radius: calc(var(--r-lg) + 2px);
  background: var(--white);
  box-shadow: var(--shadow-2);
  rotate: 3.5deg;
}
.tb-home-welcome__print .media { border-radius: calc(var(--r-lg) - 6px); }

.tb-home-welcome__title { font-size: calc(var(--fs-h2) * 1.18); line-height: 1.08; }
.tb-home-welcome__title { margin-block-start: var(--s-5); }
.tb-home-welcome__text {
  margin-block-start: var(--s-6);
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--text);
  text-wrap: pretty;
}
.tb-home-welcome__actions { margin-block-start: var(--s-7); }

/* manager sign-off: one quiet link row */
.tb-home-welcome__manager {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  max-width: 36em;
  margin-block-start: var(--s-7);
  padding-block-start: var(--s-3);
  border-block-start: 1.5px solid var(--line);
  color: inherit;
  text-decoration: none;
}
/* Michelle is the middle of the sun: her portrait sits inside the ring of rays, which turns a little on hover */
.tb-home-welcome__portrait {
  position: relative;
  flex: none;
  width: 60px;
  margin: 20px 24px 20px 20px;
}
.tb-home-welcome__portrait .media { display: block; background: var(--cream); box-shadow: 0 0 0 4px var(--sun); }
.tb-home-welcome__rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 176%;
  max-width: none;
  translate: -50% -50%;
}
.tb-home-welcome__rays .sun__rays { transition: rotate var(--t-5) var(--ease-out); }
.tb-home-welcome__who { display: grid; gap: 2px; margin-inline-end: auto; line-height: 1.35; }
.tb-home-welcome__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--heading); }
.tb-home-welcome__role { font-size: var(--fs-small); color: var(--muted); }
.tb-home-welcome__manager:focus-visible { border-radius: var(--r-md); }
@media (hover: hover) and (pointer: fine) {
  .tb-home-welcome__manager:hover .tb-home-welcome__rays .sun__rays { rotate: 33deg; }
  .tb-home-welcome__manager:hover .link-arrow__icon { translate: 3px 0; }
}

/* ============================================================================================================
   4. OUR PLAYROOMS - the expanding row
   .tb-home-rooms__row (flex, query container) > article.tb-home-room × 4 > .tb-home-room__clip > photo + go + panel
   One room is open at a time (--open: 1). Everything inside a card has a FIXED size taken from the row's width
   (container units), so while flex-grow animates nothing re-wraps or re-crops: the card is a window that widens
   over a still photo and a still block of text.
   Without JS: the first room is open, :hover / :focus-within opens another. With JS (.is-live): .is-active, sticky.
   ============================================================================================================ */
.tb-home-rooms__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  margin-block-end: clamp(var(--s-6), 3vw, var(--s-7));
}
@media (min-width: 900px) {
  .tb-home-rooms__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(var(--s-6), 6vw, var(--s-9)); align-items: end; }
}
.tb-home-rooms__title { margin-block-start: var(--s-4); }
.tb-home-rooms__aside { display: grid; justify-items: start; gap: var(--s-4); padding-block-end: 0.3em; }
.tb-home-rooms__row {
  --grow: 2.7;                                                                   /* open room : closed room */
  --gap: clamp(var(--s-3), 1.1vw, var(--s-4));
  --n: 4;                                                                        /* rooms in the row (set inline by rooms.njk) */
  --w-closed: calc((100cqw - (var(--n) - 1) * var(--gap)) / (var(--grow) + var(--n) - 1));
  --w-open: calc(var(--w-closed) * var(--grow));
  --room-h: clamp(400px, 31vw, 480px);           /* r4: a touch more room again (r3 had squeezed it) */
  --panel-h: 198px;
  --panel-real: max(var(--panel-h), var(--panel-fit, 0px));   /* --panel-fit: the tallest room's words (tb-home.js) */
  --pad: clamp(18px, 1.5vw, 22px);
  --room-t: 680ms;
  container-type: inline-size;
  display: flex;
  gap: var(--gap);
}
.tb-home-room {
  --open: 0;
  --ink: var(--white);
  /* round 2 (T4): white text on every room. The panel is the room colour taken darker in OKLCH (same hue, lower
     lightness) until white text passes AA 4.5:1 for the small text on it; the Baby Room purple already does (7:1).
     Measured: tweenies 5.6:1 · twos 5.0:1 · preschool 4.7:1 (see the round-2 report). */
  --panel-l: 0;
  --panel: color-mix(in srgb, var(--room) 62%, var(--navy-deep));
  --panel: oklch(from var(--room) calc(l - var(--panel-l)) c h);
  --slice: 0%;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: var(--room-h);
  border-radius: var(--r-xl);
  transition: flex-grow var(--room-t) var(--ease-out);
}
.tb-home-room[data-room="baby"] { --slice: 21%; }
.tb-home-room[data-room="tweenies"] { --slice: -22%; --panel-l: 0.1; }
.tb-home-room[data-room="twos"] { --slice: -21%; --panel-l: 0.18; }
.tb-home-room[data-room="preschool"] { --slice: -24%; --panel-l: 0.225; }
.tb-home-room[data-room="afterschool"] { --slice: -20%; --panel-l: 0.15; }

.tb-home-room.is-active,
.tb-home-rooms__row:not(.is-live):not(:hover, :focus-within) > .tb-home-room:first-child,
.tb-home-rooms__row:not(.is-live) > .tb-home-room:is(:hover, :focus-within) {
  --open: 1;
  flex-grow: var(--grow);
}

/* coloured glow under the open room */
.tb-home-room::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 30% 7% 0;
  border-radius: inherit;
  box-shadow: 0 30px 46px -14px color-mix(in srgb, var(--panel) 55%, transparent);
  opacity: var(--open);
  transition: opacity var(--t-3) var(--ease-soft);
}
.tb-home-room:has(.tb-home-room__link:focus-visible) { box-shadow: var(--focus); }

.tb-home-room__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: var(--room-soft);
  isolation: isolate;
}

/* the photo never changes size: it is as wide as an OPEN room and slides so the best slice shows when closed */
.tb-home-room__photo {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--w-open);
  height: calc(100% - var(--panel-real) + 30px);
  translate: calc(-50% + (1 - var(--open)) * var(--slice)) 0;
  transition: translate var(--room-t) var(--ease-out);
}
.tb-home-room__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  scale: calc(1.1 - var(--open) * 0.1);
  transition: scale 900ms var(--ease-out);
}

.tb-home-room__go {
  position: absolute;
  z-index: 2;
  top: var(--pad);
  right: var(--pad);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-1);
  rotate: calc(var(--open) * 45deg);
  transition: rotate var(--t-3) var(--ease-spring), background-color var(--t-2) ease, color var(--t-2) ease;
}
.tb-home-room__go .icon { width: 20px; height: 20px; }

.tb-home-room__panel {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: var(--w-closed) calc(var(--w-open) - var(--w-closed));
  grid-template-rows: minmax(0, 1fr);                 /* the row is the panel's own height: the detail column never stretches it */
  width: var(--w-open);
  height: var(--panel-real);
  padding-block: var(--s-3) var(--pad);
  background: var(--panel);
  color: var(--ink);
}
.tb-home-room__hill {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;                           /* as wide as an open room, so the line stays still while the card widens */
  height: 30px;
  fill: var(--panel);
}
.tb-home-room:nth-child(even) .tb-home-room__hill { scale: -1 1; }

.tb-home-room__lead { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-3); min-width: 0; min-height: 0; padding-inline: var(--pad); }
.tb-home-room__ages { font-size: 0.875rem; font-weight: 700; line-height: 1.35; letter-spacing: 0.01em; }
.tb-home-room__name {
  /* the longest word of any room name (--long letters) always fits the width of a closed card, so names never break mid-word */
  font-size: min(clamp(1.75rem, 1.2rem + 0.95vw, 2.125rem), calc((var(--w-closed) - 2 * var(--pad)) / (var(--long, 8) * 0.6)));
  overflow-wrap: normal;
  hyphens: manual;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: inherit;
}
.tb-home-room__name span { display: block; }
.tb-home-room__link { color: inherit; text-decoration: none; }
.tb-home-room__link::after { content: ""; position: absolute; inset: -1200px; z-index: 3; }   /* the whole card is the link (clipped by __clip) */
.tb-home-room__link:focus-visible { box-shadow: none; }
/* r10: on touch the name link itself is a 44px target too (the card-wide ::after already is); padding offset by a negative
   margin so the layout does not move */
@media (pointer: coarse) {
  .tb-home-room__link { display: block; min-height: 44px; padding-block: 6px; margin-block: -6px; }
}

.tb-home-room__detail {
  display: grid;
  align-content: end;
  gap: var(--s-3);
  min-width: 0;
  min-height: 0;
  padding-inline: var(--s-2) calc(var(--pad) + 4px);
}
/* ratio → blurb → link arrive one after another once the room has opened far enough to hold them; they leave at once */
.tb-home-room__detail > * {
  opacity: var(--open);
  translate: calc((1 - var(--open)) * 20px) 0;
  transition: opacity 140ms ease, translate 240ms var(--ease-out);
}
:is(.tb-home-room.is-active, .tb-home-rooms__row:not(.is-live) > .tb-home-room:is(:hover, :focus-within)) .tb-home-room__detail > * {
  transition: opacity 420ms ease calc(150ms + var(--d, 0ms)), translate 640ms var(--ease-out) calc(130ms + var(--d, 0ms));
}
.tb-home-room__detail > :nth-child(2) { --d: 60ms; }
.tb-home-room__detail > :nth-child(3) { --d: 110ms; }
.tb-home-room__ratio { display: flex; align-items: center; gap: var(--s-3); }
.tb-home-room__ratio b {
  flex: none;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.tb-home-room__ratio span { max-width: 16ch; font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.tb-home-room__blurb { font-size: var(--fs-small); line-height: 1.6; text-wrap: pretty; }
.tb-home-room__more { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--fs-small); font-weight: 700; }
.tb-home-room__more .icon { width: 1.15em; height: 1.15em; transition: translate var(--t-2) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tb-home-room:hover .tb-home-room__go { background: var(--navy); color: var(--white); }
  .tb-home-room:hover .tb-home-room__more .icon { translate: 4px 0; }
}
.tb-home-room:active .tb-home-room__clip { scale: 0.992; transition: scale var(--t-1) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .tb-home-room, .tb-home-room__photo, .tb-home-room__photo img, .tb-home-room__go { transition: none; }
  .tb-home-room .tb-home-room__detail > * { translate: none !important; transition: opacity 200ms ease !important; }
}

/* narrow screens: a simple two-up grid with every room open (desktop is the brief; this just must not break) */
@media (max-width: 899px) {
  .tb-home-rooms__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); container-type: normal; }
  .tb-home-room, .tb-home-room.is-active { --open: 1; flex: none; height: auto; }
  .tb-home-room__clip { position: relative; }
  .tb-home-room__photo { position: relative; left: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; translate: none; }
  .tb-home-room__panel { position: relative; width: 100%; height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: var(--s-4); padding-block: var(--s-5); }
  .tb-home-room__hill { width: 100%; translate: none !important; scale: none !important; }
  .tb-home-room__detail { padding-inline: var(--pad); }
  .tb-home-room__name { font-size: clamp(1.75rem, 1.2rem + 0.95vw, 2.125rem); }   /* every room is open here: no closed-card fit */
}

/* ---------- playrooms: band fade + the caption under the row ---------- */
.tb-home-rooms { --fade-from: var(--paper); --fade-to: var(--paper); --fade-h: clamp(56px, 7vw, 110px); }
.tb-home-rooms__aside { justify-items: end; }
.tb-home-rooms__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin-block-start: var(--s-7);
  font-size: var(--fs-body);
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}
.tb-home-rooms__caption-sun { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sun-deep); }

/* ============================================================================================================
   5. EVERYTHING INCLUDED - Original (r5: the client's choice; Icon grid deleted)
   ============================================================================================================ */
.tb-home-included__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
}
@media (min-width: 900px) {
  .tb-home-included__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(var(--s-7), 6vw, 96px); }
  .tb-home-included__media { max-width: 400px; justify-self: end; width: 100%; }
}
.tb-home-included__lead { margin-block-start: var(--s-5); max-width: 52ch; line-height: 1.7; }
/* r4: more air inside and around the two hairlines */
ul.tb-home-included__list {                        /* ul. beats the base reset ul[class] { padding: 0 } */
  margin-block: var(--s-7) var(--s-7);
  padding-block: var(--s-6);
  border-block: 1.5px solid var(--line);
  row-gap: var(--s-5);
  column-gap: var(--s-6);
  font-weight: 500;
  color: var(--heading);
}
.tb-home-included__media { margin-inline: 4% 2%; }
.tb-home-included__media .media { background: var(--peach); }
.tb-home-included__media .framed__sticker { left: -14%; bottom: 9%; scale: 0.86; }

/* ============================================================================================================
   6. OUT AND ABOUT - Original, "Wellies on" (r5: the client's choice; the other three deleted)
   ============================================================================================================ */
.tb-home-local__panel {
  --leaf-ink: color-mix(in srgb, var(--leaf) 46%, var(--navy));
  --leaf-line: color-mix(in srgb, var(--leaf) 34%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
  padding: clamp(var(--s-6), 3.6vw, 56px);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--leaf-soft) 55%, var(--paper));     /* r3 (TH6): calmer, less contrast */
}
@media (min-width: 900px) {
  .tb-home-local__panel { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(var(--s-7), 5vw, 80px); align-items: center; }
}
/* r3 fix (TH6, "a bit contrasting"): Original is no longer a hard-edged green box on the cream page. The whole band takes a
   very pale leaf tint that melts in from the page above and back out below (section--fade-both), no box edge at all. */
.tb-home-local--band { background-color: color-mix(in srgb, var(--leaf-soft) 42%, var(--bg)); --fade-h: clamp(80px, 9vw, 150px); }
.tb-home-local--band .tb-home-local__panel { padding: 0; border-radius: 0; background: none; }
.tb-home-local__panel .eyebrow { --ctx-dot: var(--leaf); }
.tb-home-local__title { margin-block-start: var(--s-4); }
.tb-home-local__lead { margin-block-start: var(--s-5); max-width: 46ch; font-size: var(--fs-lead); line-height: 1.52; color: var(--text); text-wrap: pretty; }
.tb-home-local__list { display: grid; margin-block-start: var(--s-5); }
.tb-home-local__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding-block: var(--s-4);
  border-block-start: 1.5px solid var(--leaf-line);
}
.tb-home-local__item:last-child { padding-block-end: 0; }
.tb-home-local__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--leaf-ink);
  transition: background-color var(--t-2) ease, color var(--t-2) ease, scale var(--t-3) var(--ease-spring);
}
.tb-home-local__icon .icon { width: 24px; height: 24px; }
.tb-home-local__name { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.015em; }
.tb-home-local__text { margin-block-start: var(--s-1); max-width: 40ch; font-size: var(--fs-body); line-height: 1.55; text-wrap: pretty; }
.tb-home-local__dist {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-block-start: var(--s-3);
  padding: 0.3em 0.9em 0.3em 0.7em;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 70%, transparent);
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--leaf-ink);
}
.tb-home-local__dist .icon { width: 1.2em; height: 1.2em; }
@media (hover: hover) and (pointer: fine) {
  .tb-home-local__item[data-poi]:hover .tb-home-local__icon { background: var(--leaf-ink); color: var(--white); scale: 1.06; }
}

.tb-home-local__side { display: grid; gap: var(--s-4); }
.tb-home-local__photo { --ar: 4.2 / 1; background: var(--leaf-soft); }
.tb-home-local__map { margin: 0; }
/* the matching place on the map answers when a list row is hovered (set by tb-home.js) */
.tb-home-local__map .bs-map__poi { transition: scale var(--t-3) var(--ease-spring); }
.tb-home-local__map .bs-map__poi.tb-home-is-hot { scale: 1.14; }

/* ============================================================================================================
   7. ALWAYS CONNECTED - Clean split (r6: the client's choice; Phone in the middle, Purple panel, Team & app deleted).
   r5: soft Famly purple; "strong partnerships with families" + the Famly app. Short and side by side:
   one headline, one line, four short points (three on the app + "Face to face, every day"), the phone in Famly purple.
   ============================================================================================================ */
.tb-home-fm {
  --fm: #581DB5;                                         /* Famly's brand purple (from the wordmark) */
  --fm-ink: #4A189C;                                     /* purple for icons and small text on light (8.9:1 on white) */
  --fm-soft: #EEE6FB;
  --fm-mist: #F5F0FE;
  --ctx-dot: var(--fm);
  --ctx-accent: var(--fm);
  overflow-x: clip;
}
.tb-home-fm__title { margin-block-start: var(--s-5); }
.tb-home-fm__lead { margin-block-start: var(--s-5); max-width: 34em; font-size: var(--fs-lead); line-height: 1.7; color: var(--text); text-wrap: pretty; }
.tb-home-fm__more { margin-block-start: var(--s-6); }
.tb-home-fm-logo { display: block; width: 108px; height: auto; }

/* the phone, dressed in Famly purple: purple top bar, lilac screen, purple reply bubble */
.tb-home-fm-phone .sec-phone__screen { background: var(--fm-mist); }
.tb-home-fm-phone .sec-phone__status,
.tb-home-fm-phone .sec-phone__bar { background: var(--fm); color: var(--white); }
.tb-home-fm-phone .sec-phone__bar { padding-block-end: 0.85em; }
.tb-home-fm-phone .sec-phone__today { background: color-mix(in srgb, var(--white) 18%, transparent); color: var(--white); }
.tb-home-fm-phone .sec-phone__feed { padding-block-start: 0.7em; }
.tb-home-fm-phone .sec-phone__bubble { background: var(--fm); }
.tb-home-fm-phone .sec-phone__ico { background: var(--fm-soft); color: var(--fm-ink); }
.tb-home-fm-phone .sec-phone__ico--sun { background: var(--sun); color: var(--navy); }

/* one point: a round icon, a title and one short line */
.tb-home-fm-point { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.tb-home-fm-point__ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fm-soft);
  color: var(--fm-ink);
}
.tb-home-fm-point__ico .icon { width: 22px; height: 22px; }
.tb-home-fm-point__body { display: grid; gap: 4px; padding-block-start: 2px; font-size: var(--fs-body); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.tb-home-fm-point__body b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--heading); }
/* the fourth point is the team, face to face: it wears the brand sun instead of purple */
.tb-home-fm-point--face .tb-home-fm-point__ico { background: var(--sun); color: var(--navy); }

/* ---------- Clean split ---------- */
.tb-home-fm1 { background-color: var(--fm-mist); --fade-h: clamp(90px, 9vw, 140px); padding-block: calc(var(--section-y) + var(--s-4)); }
.tb-home-fm1__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); align-items: center; }
@media (min-width: 900px) {
  .tb-home-fm1__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s-7), 5.5vw, 96px); }
}
.tb-home-fm1__stage {
  --phone-w: clamp(220px, 16.5vw, 248px);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding-block: var(--s-4);
}
.tb-home-fm1__stage::before { content: ""; position: absolute; z-index: -1; width: min(100%, 430px); aspect-ratio: 1; border-radius: 50%; background: var(--fm-soft); }
.tb-home-fm1__stage::after { content: ""; position: absolute; z-index: -1; right: 6%; top: 10%; width: 64px; aspect-ratio: 1; border-radius: 50%; background: var(--sun); opacity: 0.85; }
.tb-home-fm1__badge {
  position: absolute;
  z-index: 2;
  left: 2%;
  bottom: 16%;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-2);
  rotate: -4deg;
}
.tb-home-fm1__badge .tb-home-fm-logo { width: 96px; }
.tb-home-fm1__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) clamp(var(--s-6), 3vw, 48px); margin-block-start: var(--s-7); }
@media (max-width: 700px) { .tb-home-fm1__points { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================================================================
   9. SESSION PRICES - Photo & tickets (r5: the client's choice; Price list and Three columns deleted)
   Every option ends in a clear "See fees & funding" button (fees.html) and keeps a full section's air below it, so the
   navy Book a visit card never crowds it (r4: "short on the gap below it… should take me over to the pricing page").
   ============================================================================================================ */
.tb-home-prices { padding-block-end: calc(var(--section-y) + clamp(var(--s-5), 3vw, var(--s-7))); }
.tb-home-prices__cta { margin-block-start: var(--s-2); }

/* Photo & tickets */
.tb-home-p6__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(var(--s-8), 6.5vw, 112px); align-items: center; }
.tb-home-p6__media { position: relative; }
.tb-home-p6__photo { --ar: 5 / 4; border-radius: var(--r-xl); background: var(--peach); }
.tb-home-p6__sticker { position: absolute; z-index: 1; right: -36px; bottom: 9%; }
.tb-home-p6__copy h2 { margin-block-start: var(--s-5); }
.tb-home-p6__lead { margin-block-start: var(--s-5); max-width: 40ch; font-size: var(--fs-lead); line-height: 1.7; color: var(--text); text-wrap: pretty; }
.tb-home-p6__tickets { --cut: 7.5rem; display: grid; gap: var(--s-4); margin-block: var(--s-7); }
.tb-home-p6__ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cut);
  align-items: center;
  min-height: 92px;
  padding-inline: var(--s-6) 0;
  border-radius: var(--r-lg);
  background: var(--cream);
  /* two half-moon notches where the perforation meets the edges */
  -webkit-mask: radial-gradient(circle 10px at calc(100% - var(--cut)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 10px at calc(100% - var(--cut)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 10px at calc(100% - var(--cut)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle 10px at calc(100% - var(--cut)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
}
.tb-home-p6__ticket::before { content: ""; position: absolute; top: 16px; bottom: 16px; right: var(--cut); border-inline-start: 2px dashed var(--line-strong); }
.tb-home-p6__ticket--sun { background: var(--sun); }
.tb-home-p6__what { display: grid; gap: 2px; padding-block: var(--s-4); }
.tb-home-p6__what b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.3; color: var(--heading); }
.tb-home-p6__what span { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.tb-home-p6__ticket--sun .tb-home-p6__what span { color: color-mix(in srgb, var(--navy) 80%, var(--sun)); }
.tb-home-p6__price { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--heading); text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .tb-home-p6__grid { grid-template-columns: minmax(0, 1fr); } .tb-home-p6__sticker { right: 8px; } }

/* ============================================================================================================
   Reduced motion: colour and opacity changes stay, movement goes (the playroom row has its own block above)
   ============================================================================================================ */
@media (prefers-reduced-motion: reduce) {
  .tb-home-welcome__rays .sun__rays,
  .tb-home-local__icon,
  .tb-home-local__map .bs-map__poi { transition: none; }
  .tb-home-welcome__manager:hover .tb-home-welcome__rays .sun__rays { rotate: none; }
  .tb-home-local__item[data-poi]:hover .tb-home-local__icon,
  .tb-home-local__map .bs-map__poi.tb-home-is-hot { scale: none; translate: none; rotate: none; }
}

/* ============================================================================================================
   r9 · PHONES + TABLETS. Every rule below sits inside a max-width query under 1280px, so the approved desktop
   (1280-1920) is untouched. Reading order stays the desktop's; side-by-side blocks stack, the playroom row becomes
   a swipeable strip on phones (two-up on small tablets), pieces that hung off an edge are tucked back in.
   ============================================================================================================ */

/* ---------- at a glance: a tidy 2 × 2 on tablets, one list on phones ---------- */
@media (min-width: 600px) and (max-width: 1099px) {
  .tb-home-ribbon__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .tb-home-ribbon__bar { padding: 6px; }
  .tb-home-tag__txt, .tb-home-ribbon__label { white-space: normal; }
  .tb-home-ribbon__fact { padding: 12px var(--s-4); }
  .tb-home-ribbon__note { padding-inline: var(--s-2); text-wrap: balance; }
}

/* ---------- welcome: the photo pair at a calmer size; Michelle's sign-off wraps instead of squeezing ---------- */
@media (max-width: 899px) {
  .tb-home-welcome__grid { gap: var(--s-7); }
  .tb-home-welcome__media { width: min(100%, 500px); justify-self: center; }
  .tb-home-welcome__title { font-size: var(--fs-h2); }
  .tb-home-welcome__text { font-size: var(--fs-body); line-height: 1.7; }
}
@media (max-width: 599px) {
  .tb-home-welcome__manager {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--s-3);
    row-gap: 2px;
    align-items: center;
    padding-block: var(--s-3) 0;
  }
  .tb-home-welcome__portrait { grid-row: 1 / 3; width: 56px; margin: 18px 20px 18px 18px; }
  .tb-home-welcome__who { align-self: end; margin: 0; }
  .tb-home-welcome__meet { align-self: start; justify-self: start; min-height: 44px; }
}

/* ---------- playrooms ---------- */
@media (max-width: 899px) {
  .tb-home-rooms__aside { justify-items: start; }
  /* every card fills its slot: photo on top, the coloured panel takes the rest, so cards side by side stay level */
  .tb-home-room, .tb-home-room.is-active { display: flex; }
  .tb-home-room::before { display: none; }
  .tb-home-room__clip { flex: 1 1 auto; display: flex; flex-direction: column; }
  .tb-home-room__photo { flex: none; }
  .tb-home-room__panel { flex: 1 1 auto; align-content: start; }
  .tb-home-room__detail { align-content: start; }
  .tb-home-room__name span { display: inline; }
  .tb-home-room__name span + span::before { content: " "; }
}
@media (max-width: 1279px) {
  /* the caption under the row: one centred block (the dot read as a stray bullet once the line wrapped) */
  .tb-home-rooms__caption { display: block; max-width: 40rem; margin-inline: auto; padding-inline: var(--s-2); }
  .tb-home-rooms__caption-sun { display: none; }
}
/* phones: a swipeable strip, one card and a peek of the next (scroll-snap); the dots under it follow the swipe */
@media (max-width: 699px) {
  .tb-home-rooms__row {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) var(--s-2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tb-home-rooms__row::-webkit-scrollbar { display: none; }
  .tb-home-room, .tb-home-room.is-active { flex: 0 0 min(84%, 330px); scroll-snap-align: start; }
  .tb-home-room__photo { aspect-ratio: 3 / 2; }
  .tb-home-room__panel { gap: var(--s-3); padding-block: var(--s-4) var(--s-5); }
  .tb-home-room__name { font-size: 1.75rem; }
  .tb-home-rooms__caption { margin-block-start: var(--s-6); font-size: var(--fs-small); }
}
.tb-home-rooms__dots { display: none; }
@media (max-width: 699px) {
  .tb-home-rooms__dots { display: flex; justify-content: center; margin-block-start: var(--s-2); }
  .tb-home-rooms__dot-btn { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tb-home-rooms__dot-btn:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
  .tb-home-rooms__dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--line-strong); transition: width var(--t-3) var(--ease-out), background-color var(--t-2) ease; }
  .tb-home-rooms__dot.is-active { width: 24px; background: var(--navy); }
}

/* ---------- everything included: the arch photo at a calmer size, the "10" sticker kept on screen ---------- */
@media (max-width: 899px) {
  .tb-home-included__media { width: min(100%, 420px); justify-self: center; margin-inline: 0; }
  .tb-home-included__media .framed__sticker { left: -2%; bottom: 6%; scale: 0.8; transform-origin: 0 100%; }
}
@media (max-width: 599px) {
  ul.tb-home-included__list { margin-block: var(--s-6); padding-block: var(--s-5); row-gap: var(--s-4); }
  .tb-home-included__media { width: 88%; }
}

/* ---------- out and about: the address no longer pushes the map button a screen away; station label stays inside the map ---------- */
@media (max-width: 899px) {
  .tb-home-local__lead { font-size: var(--fs-body); line-height: 1.65; }
  .tb-home-local__side { gap: var(--s-3); }
}
@media (max-width: 599px) {
  .tb-home-local__item { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-3); }
  .tb-home-local__icon { width: 44px; height: 44px; }
  .tb-home-local__icon .icon { width: 21px; height: 21px; }
  .tb-home-local__map .bs-map__address { flex: 0 0 auto; }
  .tb-home-local__map .bs-map__cta { justify-content: center; }
}
/* where the map is narrow (phones, and the half-width map on small laptops / iPad landscape) the station label has no room
   beside Silverburn; the list already names the M77 and Silverburn */
@media (max-width: 599px), (min-width: 900px) and (max-width: 1279px) {
  .tb-home-local__map .bs-map__poi--station { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .tb-home-local__map .bs-map__poi--station { flex-direction: row-reverse; translate: calc(-100% + var(--mark) / 2) -50%; text-align: end; }
}

/* ---------- always connected: the phone a little smaller, points one per row ---------- */
@media (max-width: 899px) {
  .tb-home-fm1__grid { gap: var(--s-7); }
  .tb-home-fm1__stage { --phone-w: 210px; }
  .tb-home-fm1__stage::before { width: min(100%, 340px); }
  .tb-home-fm1__badge { left: max(0px, calc(50% - 190px)); bottom: 14%; padding: 10px 16px; }
  .tb-home-fm1__badge .tb-home-fm-logo { width: 80px; }
  .tb-home-fm__lead { font-size: var(--fs-body); }
  .tb-home-fm1__points { gap: var(--s-5) var(--s-6); margin-block-start: var(--s-6); }
}
@media (max-width: 599px) {
  .tb-home-fm1__stage::after { right: 4%; width: 48px; }
  .tb-home-fm-point { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-3); }
  .tb-home-fm-point__ico { width: 44px; height: 44px; }
  .tb-home-fm-point__body b { font-size: 1.125rem; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .tb-home-fm1__points { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
}

/* ---------- session prices: photo then tickets; the tickets keep their perforation at phone widths ---------- */
@media (max-width: 899px) {
  .tb-home-p6__grid { gap: var(--s-7); }
  .tb-home-p6__photo { --ar: 16 / 10; }
  .tb-home-p6__sticker { right: 12px; bottom: -28px; scale: 0.78; transform-origin: 100% 100%; }
  .tb-home-p6__lead { font-size: var(--fs-body); }
  .tb-home-p6__tickets { margin-block: var(--s-6); }
}
@media (max-width: 599px) {
  .tb-home-p6__tickets { --cut: 5.75rem; gap: var(--s-3); }
  .tb-home-p6__ticket { min-height: 80px; padding-inline-start: var(--s-5); }
  .tb-home-p6__what b { font-size: 1.15rem; }
  .tb-home-p6__price { font-size: 1.7rem; }
}

/* ============================================================================================================
   r11 · PHONES: CENTRE EVERYTHING ("everything just needs aligned"). The site-wide phone rule (under 600px, as the shared
   section heads); tablets and the desktop are untouched.
   Centred: eyebrows, headings, leads, short card text, buttons, captions, pills, small icon + text blocks (icon above).
   Kept lined up: the ticked list (the block is centred, the ticks stay in a column) and the price tickets.
   The hero is in css/heroes/t2.css; parents say and book a visit are shared (sections/shared.css).
   ============================================================================================================ */
@media (max-width: 599.98px) {
  /* at a glance: the yellow tag centred, the four facts as a 2 x 2 of centred stats, icon above */
  .tb-home-tag { justify-content: center; padding-inline: var(--s-2) var(--s-4); }
  .tb-home-ribbon__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-home-ribbon--icons .tb-home-ribbon__fact {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "ico" "value" "label";
    justify-items: center;
    align-content: start;
    row-gap: 4px;
    padding: var(--s-4) var(--s-2);
    text-align: center;
  }
  .tb-home-ribbon--icons .tb-home-ribbon__ico { margin-block-end: 6px; }

  /* welcome */
  .tb-home-welcome__copy { text-align: center; }
  .tb-home-welcome__text { margin-inline: auto; }
  .tb-home-welcome__actions { display: flex; justify-content: center; }
  /* Michelle's sign-off: portrait above, name, role, then the link, all on the middle line */
  .tb-home-welcome__manager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-inline: auto;
    padding-block: var(--s-5) 0;
    text-align: center;
  }
  .tb-home-welcome__portrait { margin: 18px auto 22px; }
  .tb-home-welcome__who { align-self: center; margin: 0; }
  .tb-home-welcome__meet { align-self: center; margin-block-start: var(--s-1); min-height: 44px; }

  /* playrooms: the heading and its link centred; each room card's words centred */
  .tb-home-rooms__head { text-align: center; justify-items: center; }
  .tb-home-rooms__aside { justify-items: center; }
  .tb-home-room__panel { text-align: center; }
  .tb-home-room__lead { align-items: center; }
  .tb-home-room__detail { justify-items: center; padding-inline: var(--pad); }
  .tb-home-room__ratio { justify-content: center; }
  .tb-home-room__ratio span { text-align: start; }
  .tb-home-room__more { justify-content: center; }

  /* everything included: headline and lead centred; the ticked list is a centred block, ticks still in one column */
  .tb-home-included__copy { text-align: center; }
  .tb-home-included__lead { margin-inline: auto; }
  ul.tb-home-included__list { width: auto; grid-template-columns: fit-content(100%); justify-content: center; text-align: start; }   /* hairlines stay full width */
  .tb-home-included__copy > [data-reveal] { display: flex; justify-content: center; }

  /* out and about: each place is a small centred block, icon above */
  .tb-home-local__copy { text-align: center; }
  .tb-home-local__lead, .tb-home-local__text { margin-inline: auto; }
  .tb-home-local__item { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-3); padding-block: var(--s-5); }
  .tb-home-local__item:last-child { padding-block-end: 0; }
  .tb-home-local__dist { justify-content: center; }

  /* always connected: words centred, each point icon above */
  .tb-home-fm1__copy { text-align: center; }
  .tb-home-fm__lead { margin-inline: auto; }
  .tb-home-fm-point { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-3); }
  .tb-home-fm-point__body { justify-items: center; max-width: 30em; }
  .tb-home-fm__more { display: flex; justify-content: center; }

  /* session prices: words and button centred; the tickets keep their name | price layout */
  .tb-home-p6__copy { text-align: center; }
  .tb-home-p6__lead { margin-inline: auto; }
  .tb-home-p6__ticket { text-align: start; }
  .tb-home-prices__cta { display: flex; justify-content: center; }
}

/* ==== pages/tb-parents.css ==== */
/* ============================================================================================================
   pages/tb-parents.css - Thornliebank parents (src/pages/thornliebank/parents.njk).  Class prefix: .tb-parents-
     hero · sticky sub-nav (signature) · 1 famly · 2 settling in · 3 food · 4 included · 5 costs · 6 faqs · 7 policies
     R6: no Design Lab groups left: Famly "Live feed" · settling "Photo & steps" · food "On the menu" · costs "Big number"
   Tokens only. Desktop first (1280-1920); everything stacks simply below 900px.
   ============================================================================================================ */

.page-tb-parents {
  /* where the sub-nav docks: under the condensed header pill, or near the top once the pill tucks away */
  --tbp-stick: calc(var(--header-top-min) + var(--header-h-min) + var(--s-3));
  --tbp-stick-hidden: var(--s-4);
  --tbp-bar-pad: 6px;
  --tbp-item-h: 44px;
  --tbp-bar-h: calc(var(--tbp-item-h) + 2 * var(--tbp-bar-pad));
}

/* ---------- hero ---------- */
.tb-parents-hero { padding-block-end: clamp(var(--s-7), 5vw, var(--s-8)); }

/* ============================================================================================================
   STICKY SUB-NAV - the signature moment
   ============================================================================================================ */
.tb-parents-body { position: relative; }
.tb-parents-subnav-sentinel { display: block; height: 0; }

.tb-parents-subnav {
  position: sticky;
  top: var(--tbp-stick);
  z-index: var(--z-sticky);
  display: flex;
  justify-content: center;
  margin-block-end: calc(var(--tbp-bar-h) / -2);     /* the bar straddles the top edge of the first band */
  padding-inline: var(--gutter);
  pointer-events: none;                               /* only the pill itself takes clicks */
  transition: translate 300ms var(--ease-out);        /* same move as the header pill */
}
/* JS off: the header never condenses, so dock under its full height */
.no-js .tb-parents-subnav { top: calc(var(--strip-h) + var(--header-top) + var(--header-h) + var(--s-3)); }
/* the header pill tucks away on scroll-down → the bar rises into its place (transform only, in step with the header) */
html.header-hidden .tb-parents-subnav.is-stuck { translate: 0 calc(var(--tbp-stick-hidden) - var(--tbp-stick)); }

.tb-parents-subnav__bar {
  position: relative;
  isolation: isolate;
  max-width: 100%;
  padding: var(--tbp-bar-pad);
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  pointer-events: auto;
}
.tb-parents-subnav__bar::after {          /* deeper shadow once docked, faded in (no box-shadow animation) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transition: opacity var(--t-3) var(--ease-out);
  pointer-events: none;
}
.tb-parents-subnav.is-stuck .tb-parents-subnav__bar::after { opacity: 1; }
/* R2: once docked, content scrolling up behind the bar softens into a short progressive blur + light wash instead of
   meeting the pill's edge crisp (headings such as "Never miss…" used to collide with it mid-scroll). Background-neutral,
   so it works over the cream, white and sun bands alike. Faded in with the docked state; never takes clicks. */
.tb-parents-subnav::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  top: calc(-1 * var(--tbp-stick) - var(--s-4));
  bottom: calc(-1 * var(--s-6));
  background: linear-gradient(to bottom, color-mix(in srgb, var(--white) 55%, transparent) 55%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--s-7)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--s-7)), transparent);
  opacity: 0;
  transition: opacity var(--t-3) var(--ease-out);
  pointer-events: none;
}
.tb-parents-subnav.is-stuck::before { opacity: 1; }

.tb-parents-subnav__list,
.tb-parents-subnav__glide {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tb-parents-subnav__item {
  display: flex;
  align-items: center;
  height: var(--tbp-item-h);
  padding-inline: clamp(14px, 1.3vw, 20px);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--heading);
  text-decoration: none;
  transition: background-color var(--t-1) ease, color var(--t-1) ease;
}
a.tb-parents-subnav__item:focus-visible { outline: none; box-shadow: var(--focus); }
@media (hover: hover) and (pointer: fine) {
  a.tb-parents-subnav__item:hover { background: color-mix(in srgb, var(--navy) 7%, transparent); }
}
a.tb-parents-subnav__item:active { scale: 0.97; }

/* the sliding pill: a navy copy of the row, clipped to the active item (text colour flips exactly under the pill) */
.tb-parents-subnav__glide {
  position: absolute;
  inset: var(--tbp-bar-pad);
  background: var(--navy);
  clip-path: inset(0 100% 0 0 round var(--r-pill));
  opacity: 0;
  pointer-events: none;
  transition:
    clip-path 250ms var(--ease-out),
    opacity var(--t-2) var(--ease-out);
}
.tb-parents-subnav__glide .tb-parents-subnav__item { color: var(--white); transition: none; }
.tb-parents-subnav.has-active .tb-parents-subnav__glide { opacity: 1; }
.tb-parents-subnav.is-instant .tb-parents-subnav__glide { transition: opacity var(--t-2) var(--ease-out); }
.no-js .tb-parents-subnav__glide { display: none; }
@media (prefers-reduced-motion: reduce) {
  .tb-parents-subnav,
  .tb-parents-subnav__glide,
  .tb-parents-subnav__bar::after,
  .tb-parents-subnav::before { transition: none; }
}

/* anchor targets: html already has scroll-padding-top for the header; add the bar (JS refines this on click) */
.tb-parents-sec { scroll-margin-top: calc(var(--tbp-stick) + var(--tbp-bar-h) - var(--header-h) - var(--header-top) - var(--s-5)); }

/* ============================================================================================================
   1. FAMLY APP - R6: "Live feed" only. A soft band that fades in and out of the page (no hard edges); full section
   padding; bigger copy. R6: "a little bit of purple" for Famly: a lilac wash, purple rings, icons and badge.
   ============================================================================================================ */
.tb-parents-famly-wrap { position: relative; }
.tb-parents-ff {
  --fade-h: clamp(72px, 8vw, 116px);
  overflow-x: clip;
  padding-block: calc(var(--section-y) + var(--s-5)) var(--section-y);
}
.tb-parents-famly-logo { display: inline-block; width: auto; height: 30px; vertical-align: middle; }

/* ---------- R5 · the phone shows a Famly-style feed (macro famlyFeed in parents.njk) ----------
   The shared .sec-phone shell gives the frame, size (--phone-w, 1em = --phone-w / 18.75) and motion; this is the screen:
   Famly's purple bar with the white logo, a room post (note + three real photos + Like / Comment), a lunch note and the
   app's tab bar. The purple is Famly's own (sampled from the logo), used only inside the phone. */
.tb-parents-fphone {
  --famly: #581db5;
  --famly-deep: #4a169e;
  --famly-soft: #efe8fa;
}
.tb-parents-fphone .sec-phone__screen { background: #f4f2f8; }
.tb-parents-fphone .sec-phone__status { background: var(--famly-deep); color: var(--white); }
.tb-parents-fphone .sec-phone__island { background: #12082a; }
.tb-parents-fphone__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.35em 1em 0.7em 1.05em;
  background: var(--famly-deep);
  color: var(--white);
}
.tb-parents-fphone__logo { display: block; width: auto; height: 1.42em; filter: brightness(0) invert(1); }
.tb-parents-fphone__tools { display: inline-flex; align-items: center; gap: 0.85em; }
.tb-parents-fphone__tools .icon { width: 1.12em; height: 1.12em; vertical-align: 0; }
.tb-parents-fphone__bell { position: relative; display: inline-grid; }
.tb-parents-fphone__bell i {
  position: absolute;
  top: -0.12em;
  right: -0.14em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #ff5a5f;
  box-shadow: 0 0 0 0.14em var(--famly-deep);
}
.tb-parents-fphone__feed {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5em;
  min-height: 0;
  padding: 0.6em 0.6em 0.55em;
}
.tb-parents-fphone__post {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0.7em 0.7em 0.55em;
  border-radius: 0.95em;
  background: var(--white);
  box-shadow: 0 0.05em 0.12em rgba(40, 20, 80, 0.06), 0 0.5em 1.1em -0.6em rgba(40, 20, 80, 0.18);
}
.tb-parents-fphone__head { display: flex; flex: none; align-items: center; gap: 0.55em; }
.tb-parents-fphone__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  box-shadow: 0 0 0 0.14em var(--white), 0 0 0 0.26em var(--famly-soft);
}
.tb-parents-fphone__avatar .sun { width: 1.25em; color: inherit; vertical-align: 0; }
.tb-parents-fphone__who { display: grid; min-width: 0; margin-inline-end: auto; line-height: 1.22; color: #241a3a; }
.tb-parents-fphone__who b { font-size: 0.8em; font-weight: 700; }
.tb-parents-fphone__who span { font-size: 0.64em; color: #7b7391; }
.tb-parents-fphone__more { display: inline-flex; gap: 0.16em; padding: 0.4em 0.1em; }
.tb-parents-fphone__more i { width: 0.24em; height: 0.24em; border-radius: 50%; background: #a59fb8; }
.tb-parents-fphone__text {
  flex: none;
  max-width: none;
  margin: 0.6em 0.05em 0.55em;
  font-size: 0.72em;
  font-weight: 500;
  line-height: 1.4;
  color: #241a3a;
  text-wrap: pretty;
}
/* one big photo over two small ones, like a Famly post with several pictures; the grid takes the height that is left */
.tb-parents-fphone__grid {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 0.22em;
  min-height: 0;
  border-radius: 0.6em;
  overflow: hidden;
}
.tb-parents-fphone__shot { display: block; min-height: 0; overflow: hidden; background: var(--famly-soft); }
.tb-parents-fphone__shot--main { grid-column: 1 / -1; }
.tb-parents-fphone__shot > img, .tb-parents-fphone__shot > .img-missing {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 40%);
}
.tb-parents-fphone__acts {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.9em;
  margin-block-start: 0.6em;
  padding: 0.55em 0.15em 0;
  border-top: 1px solid #eeebf4;
  color: #6c6484;
}
.tb-parents-fphone__act { display: inline-flex; align-items: center; gap: 0.32em; font-size: 0.68em; font-weight: 700; }
.tb-parents-fphone__act .icon { width: 1.35em; height: 1.35em; vertical-align: 0; }
.tb-parents-fphone__act--on { color: var(--famly); }
.tb-parents-fphone__act--on .icon { fill: currentColor; }
.tb-parents-fphone__likes { margin-inline-start: auto; font-size: 0.62em; font-weight: 600; color: #9790aa; }
.tb-parents-fphone__note {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 0.75em 0.5em 0.55em;
  border-radius: 0.95em;
  background: var(--white);
  box-shadow: 0 0.05em 0.12em rgba(40, 20, 80, 0.06);
}
.tb-parents-fphone__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--famly-soft);
  color: var(--famly);
}
.tb-parents-fphone__ico .icon { width: 1.05em; height: 1.05em; vertical-align: 0; }
.tb-parents-fphone__time { flex: none; font-size: 0.62em; font-weight: 600; color: #9790aa; font-variant-numeric: tabular-nums; }
.tb-parents-fphone__tabs {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-around;
  padding: 0.6em 0.8em 1.45em;
  background: var(--white);
  box-shadow: 0 -1px 0 #ebe7f2;
  color: #a59fb8;
}
.tb-parents-fphone__tabs > span { position: relative; display: inline-grid; place-items: center; width: 2.2em; height: 1.7em; border-radius: 0.85em; }
.tb-parents-fphone__tabs .icon { width: 1.15em; height: 1.15em; vertical-align: 0; }
.tb-parents-fphone__tabs .is-on { background: var(--famly-soft); color: var(--famly); }
.tb-parents-fphone__msg i {
  position: absolute;
  top: -0.2em;
  right: 0.05em;
  display: grid;
  place-items: center;
  min-width: 1.15em;
  height: 1.15em;
  border-radius: 1em;
  background: #ff5a5f;
  color: var(--white);
  font-size: 0.6em;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.tb-parents-fphone .sec-phone__home { background: rgba(36, 26, 58, 0.28); }

/* ---------- shared: one "update" notification card ---------- */
.tb-parents-ping {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 300px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
}
.tb-parents-ping__ico { position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; }
.tb-parents-ping__ico .icon { width: 20px; height: 20px; }
.tb-parents-ping__ico--red { background: var(--red-soft); color: var(--red-text); }
.tb-parents-ping__ico--sun { background: var(--sun-soft); color: var(--navy); }
.tb-parents-ping__ico--sky { background: var(--sky-soft); color: var(--navy); }
.tb-parents-ping__ico--navy { background: var(--navy); color: var(--white); }
.tb-parents-ping__ico--leaf { background: var(--leaf-soft); color: var(--navy); }
.tb-parents-ping__ico--orange { background: var(--orange-soft); color: var(--navy); }
.tb-parents-ping__txt { flex: 1; display: grid; gap: 3px; line-height: 1.35; font-size: 0.875rem; color: var(--muted); }
.tb-parents-ping__txt b { color: var(--heading); font-size: var(--fs-small); font-weight: 650; }
.tb-parents-ping__now { align-self: start; margin-inline-start: 4px; font-size: var(--fs-micro); font-weight: 600; color: var(--muted); }
/* JS cycles .is-ping through the cards: the card lifts and its icon gets a soft pulse ring */
.tb-parents-ping { transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out); }
.tb-parents-ping.is-ping { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 1px var(--line), var(--shadow-3); }
.tb-parents-ping.is-ping .tb-parents-ping__ico::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  border: 2px solid currentColor;
  opacity: 0;
  animation: tbp-pulse 1.2s var(--ease-out);
}
.tb-parents-ping__ico--sun::after, .tb-parents-ping__ico--sky::after, .tb-parents-ping__ico--leaf::after, .tb-parents-ping__ico--orange::after { color: var(--sun-deep); }
@keyframes tbp-pulse { 0% { opacity: 0.7; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes tbp-spin { to { rotate: 1turn; } }
/* entrance: the cards pop in one after another (JS adds .is-played; without JS they simply show) */
.js [data-tb-parents-feed] [data-ping] { opacity: 0; transform: translateY(10px) scale(0.92); }
.js [data-tb-parents-feed].is-played [data-ping] { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out) calc(var(--i) * 140ms + 200ms), transform 560ms var(--ease-spring) calc(var(--i) * 140ms + 200ms), box-shadow 420ms var(--ease-out); }
.js [data-tb-parents-feed].is-played.is-settled [data-ping] { transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out); }
.js [data-tb-parents-feed].is-played [data-ping].is-ping { transform: translateY(-4px) scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .js [data-tb-parents-feed] [data-ping] { opacity: 1; transform: none; transition: none; }
  .tb-parents-ping.is-ping .tb-parents-ping__ico::after { animation: none; }
}

/* ---------- Live feed ---------- */
.tb-parents-ff__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--s-7), 5vw, 88px);
  align-items: center;
}
.tb-parents-ff__title { margin-block: var(--s-4) var(--s-5); }
.tb-parents-ff__lead { max-width: 34rem; margin: 0 0 var(--s-7); font-size: 1.125rem; line-height: 1.75; color: var(--text); }
.tb-parents-ff__list { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; max-width: 33rem; }
.tb-parents-ff__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; font-size: var(--fs-body); line-height: 1.65; color: var(--muted); }
.tb-parents-ff__list b { display: block; margin-block-end: 2px; color: var(--heading); font-size: 1.15rem; font-weight: 650; line-height: 1.35; }
.tb-parents-ff__tick { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--red-text); box-shadow: var(--shadow-1); }
.tb-parents-ff__tick .icon { width: 21px; height: 21px; }

.tb-parents-ff__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 660px;
  padding-block-end: 56px;
  isolation: isolate;
}
.tb-parents-ff__ring {
  position: absolute;
  z-index: -1;
  top: calc(50% - 28px);
  left: 50%;
  border-radius: 50%;
  translate: -50% -50%;
}
.tb-parents-ff__ring--1 { width: 450px; aspect-ratio: 1; background: radial-gradient(closest-side, var(--sun-soft), color-mix(in srgb, var(--sun-soft) 0%, transparent)); }
.tb-parents-ff__ring--2 { width: 570px; aspect-ratio: 1; border: 1.5px dashed color-mix(in srgb, var(--sun-deep) 45%, transparent); }
.js .tb-parents-ff__ring--2 { animation: tbp-spin 90s linear infinite; }
.tb-parents-ff__phone { position: relative; z-index: 1; }
.tb-parents-ff__pings { position: absolute; inset: 0 0 56px; z-index: 2; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.tb-parents-ff__ping { position: absolute; width: 232px; max-width: none; transform-origin: var(--origin, center); }
.tb-parents-ff__ping .tb-parents-ping__now { display: none; }      /* room for the words: titles stay on one line */
/* R4 polish: placed around the phone (stage centre = 50%), alternating sides, each tucked over the phone's edge so they read
   as popping out of it, and all inside the container's right edge. R5: tucked only ~14px (over the 256px phone's bezel), so the Famly feed
   on the screen stays readable. */
.tb-parents-ff__ping--1 { top: 6%;  left: calc(50% + 114px);  rotate: 1.5deg; --origin: left center; }
.tb-parents-ff__ping--2 { top: 21%; right: calc(50% + 114px); rotate: -1.5deg; --origin: right center; }
.tb-parents-ff__ping--3 { top: 37%; left: calc(50% + 114px);  rotate: -1deg; --origin: left center; }
.tb-parents-ff__ping--4 { top: 52%; right: calc(50% + 114px); rotate: 1deg;  --origin: right center; }
.tb-parents-ff__ping--5 { top: 67%; left: calc(50% + 114px);  rotate: 1deg;  --origin: left center; }
.tb-parents-ff__ping--6 { top: 80%; right: calc(50% + 114px); rotate: -1.5deg; --origin: right center; }
/* the Famly logo now lives on the feed: a white badge under the phone */
.tb-parents-ff__badge {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 20px 10px 16px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
  translate: -50% 0;
  width: max-content;
  white-space: nowrap;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}
.tb-parents-ff__badge .tb-parents-famly-logo { height: 28px; }
.tb-parents-ff__badge span { padding-inline-start: 12px; border-inline-start: 1px solid var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .js .tb-parents-ff__ring--2 { animation: none; } }

/* R6 "a little bit of purple" when it talks about Famly: Famly's own purple (sampled from the logo, as in the phone) as a light
   touch. A faint lilac band instead of cream, lilac glow + purple dashed ring behind the phone, purple feature icons,
   a purple eyebrow and accent, and a purple edge on the logo badge. The update cards keep their own colours. */
.tb-parents-ff {
  --famly: #581db5;
  --famly-mist: #F6F1FD;
  --famly-soft: #ECE2FA;
}
.tb-parents-ff.section--fade-both { background-color: var(--famly-mist); }
.tb-parents-ff .eyebrow { --ctx-dot: var(--famly); color: var(--famly); }
.tb-parents-ff__title .accent { color: var(--famly); }
.tb-parents-ff__tick { background: var(--famly-soft); color: var(--famly); box-shadow: none; }
.tb-parents-ff__ring--1 { background: radial-gradient(closest-side, var(--famly-soft), color-mix(in srgb, var(--famly-soft) 0%, transparent)); }
.tb-parents-ff__ring--2 { border-color: color-mix(in srgb, var(--famly) 32%, transparent); }
.tb-parents-ff__badge { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--famly) 30%, transparent), var(--shadow-2); color: var(--famly); }
.tb-parents-ff__badge span { border-inline-start-color: color-mix(in srgb, var(--famly) 30%, transparent); }

/* ============================================================================================================
   2. SETTLING IN - R6: "Photo & steps" only; more room below it (client r4: "some more gap below it")
   ============================================================================================================ */
.tb-parents-settle { padding-block-end: calc(var(--section-y) * 1.3); }

/* ---------- Photo & steps ---------- */
.tb-parents-settle__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-7) clamp(var(--s-7), 6vw, 104px);
  align-items: center;
}
.tb-parents-settle__media { width: 100%; max-width: 500px; justify-self: center; }
.tb-parents-settle__sticker { left: -5%; bottom: auto; top: -4%; }
.tb-parents-settle__title { margin-block: var(--s-4) var(--s-5); }
.tb-parents-settle__lead { max-width: 36rem; font-size: 1.125rem; line-height: 1.75; }

.tb-parents-settle__steps { position: relative; margin-block-start: var(--s-7); }
.tb-parents-settle__thread {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 22px;
  width: 4px;
  height: calc(100% - 60px);
  overflow: visible;
}
.tb-parents-settle__thread path { fill: none; stroke: var(--sun-deep); stroke-width: 2.5; stroke-linecap: round; }
.tb-parents-settle__beats { display: grid; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.tb-parents-settle__beat {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
}
.tb-parents-settle__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 6px var(--bg);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--display-weight);
  color: var(--navy);
}
.tb-parents-settle__name { font-size: 1.2rem; line-height: var(--lh-snug); padding-block-start: 10px; }
.tb-parents-settle__text { margin-block-start: 6px; font-size: var(--fs-body); line-height: 1.7; color: var(--muted); max-width: 36rem; }

/* ============================================================================================================
   3. FOOD - R6: "On the menu" only.
   The long paragraph is now a lead + three short points; the breastfeeding card is shared.
   ============================================================================================================ */
/* shared breastfeeding card */
.tb-parents-food__bf { margin-block-start: var(--s-8); }
.tb-parents-food__bf--narrow { max-width: 920px; margin-inline: auto; }
.tb-parents-bf {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  padding: clamp(var(--s-6), 3vw, 44px) clamp(var(--s-6), 3.6vw, 52px);
  border-radius: var(--r-lg);
  background: var(--room-tweenies-soft);
}
.tb-parents-bf__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--red); }
.tb-parents-bf__icon .icon { width: 25px; height: 25px; fill: currentColor; }
.tb-parents-bf__title { margin: 0; font-size: 1.25rem; line-height: var(--lh-snug); }
/* full-width card: title beside the text so the lines stay a comfortable length */
@media (min-width: 900px) {
  .tb-parents-food__bf:not(.tb-parents-food__bf--narrow) .tb-parents-bf { align-items: center; }
  .tb-parents-food__bf:not(.tb-parents-food__bf--narrow) .tb-parents-bf > div {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: var(--s-7);
    align-items: center;
  }
  .tb-parents-food__bf:not(.tb-parents-food__bf--narrow) .tb-parents-bf__title { font-size: 1.4rem; }
  .tb-parents-food__bf:not(.tb-parents-food__bf--narrow) .tb-parents-bf__text { margin: 0; }
}
.tb-parents-bf__text { margin: var(--s-2) 0 0; max-width: 62rem; text-wrap: pretty; font-size: var(--fs-body); line-height: 1.7; color: var(--text); }
/* shared: the three points */
.tb-parents-fm__pico {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sun-soft);
  color: var(--navy);
}
.tb-parents-fm__pico .icon { width: 21px; height: 21px; }

/* ---------- On the menu ---------- */
.tb-parents-fm__head { display: grid; justify-items: center; max-width: 46rem; margin-inline: auto; text-align: center; }
.tb-parents-fm__title { margin-block: var(--s-4) var(--s-5); }
.tb-parents-fm__lead { margin: 0; font-size: 1.125rem; line-height: 1.75; color: var(--text); }
.tb-parents-fm__table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(var(--s-6), 3.4vw, 56px);
  align-items: center;
  margin-block-start: var(--s-8);
}
.tb-parents-fm__photo { margin: 0; display: grid; gap: var(--s-3); justify-items: center; }
.tb-parents-fm__photo .media { width: 100%; box-shadow: var(--shadow-2); }
.tb-parents-fm__photo--l { translate: 0 var(--s-7); }
.tb-parents-fm__photo--r { translate: 0 calc(-1 * var(--s-6)); }
.tb-parents-fm__photo figcaption { font-size: var(--fs-micro); color: var(--muted); }
.tb-parents-fm__menu {
  position: relative;
  padding: var(--s-8) clamp(var(--s-6), 3vw, 48px) var(--s-7);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
  text-align: center;
}
.tb-parents-fm__menu::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px dashed color-mix(in srgb, var(--sun-deep) 55%, transparent);
  border-radius: calc(var(--r-lg) - 10px);
  pointer-events: none;
}
.tb-parents-fm__menu-kicker { margin: 0 0 var(--s-5); font-family: var(--font-hand); font-size: 2.1rem; line-height: 1; color: var(--red-text); }
.tb-parents-fm__items { display: grid; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.tb-parents-fm__items li { display: grid; justify-items: center; gap: var(--s-2); }
.tb-parents-fm__items li + li { padding-block-start: var(--s-6); border-top: 1px solid var(--line); }
.tb-parents-fm__name { margin: var(--s-2) 0 0; font-size: 1.2rem; line-height: 1.3; }
.tb-parents-fm__text { margin: 0; max-width: 34ch; font-size: var(--fs-body); line-height: 1.7; color: var(--muted); }

/* ============================================================================================================
   4. WHAT'S INCLUDED
   ============================================================================================================ */
.tb-parents-included__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-7) clamp(var(--s-7), 6vw, 104px);
  align-items: center;
  padding: clamp(var(--s-8), 6.4vw, var(--s-9));
  border-radius: var(--r-xl);
  background: var(--sun);
  overflow: clip;
}
.tb-parents-included__title { margin-block: var(--s-4) var(--s-5); }
.tb-parents-included__lead { margin-block-end: var(--s-6); max-width: 30rem; color: var(--text); }
.tb-parents-included__list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tb-parents-included__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--navy) 8%, transparent), 0 8px 20px -10px color-mix(in srgb, var(--navy) 30%, transparent);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--navy);
}
.tb-parents-included__tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--sun);
}
.tb-parents-included__tick .icon { width: 16px; height: 16px; stroke-width: 3; }
/* R1: the pills sit as a centred cloud (three or two to a row) instead of a ragged single column */
@media (min-width: 900px) {
  .tb-parents-included__panel {
    grid-template-columns: minmax(0, 4.3fr) minmax(0, 7fr);
    column-gap: clamp(var(--s-7), 4vw, var(--s-8));
    padding-inline: clamp(var(--s-7), 4.6vw, var(--s-8));
  }
  .tb-parents-included__list { justify-content: center; gap: var(--s-3) 10px; }
  /* the pairing order (long pill + short pill per row) now lives in the template, so DOM and visual order match.
     The slight tilts keep the exact pills they had in R1 (positions listed in the new source order). */
  .tb-parents-included__item:is(:nth-child(2), :nth-child(5), :nth-child(8), :nth-child(9)) { rotate: -0.7deg; }
  .tb-parents-included__item:is(:nth-child(1), :nth-child(3), :nth-child(6)) { rotate: 0.6deg; translate: 0 2px; }
}
.tb-parents-included__sun {
  position: absolute;
  z-index: -1;
  right: -9%;
  bottom: -44%;
  width: 46%;
  opacity: 0.5;
}

/* ============================================================================================================
   5. HELP WITH COSTS - R6: "Big number" only
   ============================================================================================================ */
/* ---------- Big number ---------- */
.tb-parents-cb__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-7) clamp(var(--s-7), 6vw, 104px);
  align-items: center;
}
.tb-parents-cb__figure {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 460px;
  padding: var(--s-8) var(--s-6);
  border-radius: var(--r-xl);
  background: var(--sun-mist);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun-deep) 22%, transparent);
  text-align: center;
}
.tb-parents-cb__num--ask { font-size: clamp(3.5rem, 2rem + 4vw, 6rem); }   /* no confirmed funded hours: "Ask us" instead of the figure */
.tb-parents-cb__sun { position: absolute; z-index: -1; right: -120px; top: -130px; width: 280px; color: var(--sun); opacity: 0.45; }
.tb-parents-cb__kicker { margin: 0 0 var(--s-3); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-text); }
.tb-parents-cb__num {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(5rem, 3rem + 5vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.tb-parents-cb__unit { margin: var(--s-2) 0 var(--s-6); font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--heading); }
.tb-parents-cb__split {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  margin: 0;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-size: var(--fs-small);
  color: var(--muted);
}
.tb-parents-cb__split b { font-family: var(--font-display); font-size: 1.2rem; color: var(--heading); }
.tb-parents-cb__x { color: var(--sun-deep); font-weight: 700; }
.tb-parents-cb__title { margin-block: var(--s-4) var(--s-5); }
.tb-parents-cb__lead { max-width: 36rem; margin: 0 0 var(--s-6); font-size: 1.125rem; line-height: 1.75; color: var(--text); }
.tb-parents-cb__label { margin: 0 0 var(--s-4); font-weight: 600; color: var(--heading); }
.tb-parents-cb__ways { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.tb-parents-cb__ways li { display: flex; align-items: center; gap: var(--s-3); font-size: 1.0625rem; font-weight: 600; color: var(--heading); }
.tb-parents-cb__tick { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--leaf-soft); color: var(--success); }
.tb-parents-cb__tick .icon { width: 16px; height: 16px; stroke-width: 3; }
.tb-parents-cb__note { margin: var(--s-5) 0 var(--s-6); font-size: var(--fs-small); color: var(--muted); }
.tb-parents-cb__actions { gap: var(--s-5); align-items: center; }
/* r10 QA: nurseries with no term-time note had the button right under the last tick (the note carried the gap) */
.tb-parents-cb__ways + .tb-parents-cb__actions { margin-block-start: var(--s-6); }

/* ============================================================================================================
   6. FAQS
   ============================================================================================================ */
/* R4: a soft cream band that fades in and out (was hard rounded corners) */
.tb-parents-faqs.section--fade-both { --fade-h: clamp(72px, 7vw, 110px); }
.tb-parents-faqs__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s-7) clamp(var(--s-7), 7vw, 120px);
  align-items: start;
}
.tb-parents-faqs__side {
  position: sticky;
  top: calc(var(--tbp-stick) + var(--tbp-bar-h) + var(--s-7));
}
.tb-parents-faqs__title { margin-block: var(--s-4) var(--s-6); }
.tb-parents-faqs__ask { display: grid; justify-items: start; gap: var(--s-3); color: var(--muted); }
.tb-parents-faqs__ask p { margin-block-end: var(--s-1); }
.tb-parents-faqs__contact {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
}
.tb-parents-faqs__contact .icon {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 9px;
  border-radius: 50%;
  background: var(--white);
  color: var(--red-text);
  box-shadow: var(--shadow-1);
}
@media (hover: hover) and (pointer: fine) {
  .tb-parents-faqs__contact:hover span { text-decoration: underline; text-underline-offset: 3px; }
}
.tb-parents-faqs__spark { position: absolute; top: -6px; right: 8%; }
.tb-parents-faqs__accordion { --accordion-bg: var(--white); display: grid; gap: var(--s-3); }
.tb-parents-faqs__accordion .accordion__body p + p { margin-block-start: var(--s-3); }

/* ============================================================================================================
   7. POLICIES
   ============================================================================================================ */
.tb-parents-policies__inner { display: grid; justify-items: center; }
.tb-parents-policies__head { display: grid; justify-items: center; text-align: center; }
.tb-parents-policies__badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-block-end: var(--s-4);
  border-radius: 50%;
  background: var(--navy);
  color: var(--sun);
}
.tb-parents-policies__badge .icon { width: 28px; height: 28px; }
.tb-parents-policies__title { margin-block: var(--s-3) var(--s-5); }
.tb-parents-policies__card { width: min(100%, 52rem); }
.tb-parents-policies__accordion { --accordion-bg: var(--cream); }
.tb-parents-policies__note {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-block-start: var(--s-5);
  padding-inline: var(--s-2);
  font-size: var(--fs-small);
  color: var(--muted);
}
.tb-parents-policies__note .icon { flex: none; margin-block-start: 2px; color: var(--heading); }
.tb-parents-policies__note a { font-weight: 600; color: var(--heading); white-space: nowrap; }

/* ============================================================================================================
   below 900px: stack (desktop is the brief; keep it tidy)
   ============================================================================================================ */
@media (max-width: 899px) {
  .tb-parents-subnav { justify-content: flex-start; }
  .tb-parents-subnav__bar { overflow-x: auto; scrollbar-width: none; }
  .tb-parents-ff__grid,
  .tb-parents-settle__grid,
  .tb-parents-fm__table,
  .tb-parents-cb__grid,
  .tb-parents-included__panel,
  .tb-parents-faqs__grid { grid-template-columns: minmax(0, 1fr); }
  .tb-parents-fm__photo { translate: none; }
  .tb-parents-faqs__side { position: static; }
}

/* ============================================================================================================
   R9 mobile + tablet pass (all below 1280; desktop untouched)
   ============================================================================================================ */
@media (max-width: 899px) {
  /* sub-nav: a swipeable row with soft edges; the navy glide spans the whole scrolling row (not just the visible box)
     so the active pill stays correct for chapters scrolled into view */
  .tb-parents-subnav { padding-inline: var(--gutter); }
  .tb-parents-subnav__bar {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: var(--s-5);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent);
  }
  .tb-parents-subnav__bar.is-at-start { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); }
  .tb-parents-subnav__bar.is-at-end { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px); mask-image: linear-gradient(to right, transparent 0, #000 14px); }
  .tb-parents-subnav__bar.is-at-start.is-at-end { -webkit-mask-image: none; mask-image: none; }
  .tb-parents-subnav__bar::-webkit-scrollbar { display: none; }
  .tb-parents-subnav__list { width: max-content; }
  .tb-parents-subnav__glide { right: auto; width: max-content; }
  .tb-parents-subnav__item { padding-inline: 16px; }

  /* 1. Famly live feed: copy, then the phone, then the updates as a tidy grid (no cards floating off the edges) */
  .tb-parents-ff { padding-block: calc(var(--section-y) + var(--s-6)) var(--section-y); }
  .tb-parents-ff__grid { gap: var(--s-7); }
  .tb-parents-ff__lead { margin-block-end: var(--s-6); font-size: 1.0625rem; line-height: 1.65; }
  .tb-parents-ff__stage { min-height: 0; padding-block: var(--s-5) 0; gap: var(--s-6); }
  .tb-parents-ff__ring { top: calc(var(--s-5) + 270px); }
  .tb-parents-ff__ring--1 { width: min(420px, 100%); }
  .tb-parents-ff__ring--2 { width: min(520px, 118%); }
  .tb-parents-ff__pings {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
    width: 100%;
    max-width: 560px;
  }
  .tb-parents-ff__ping { position: relative; inset: auto; width: auto; max-width: none; rotate: none; }
  .tb-parents-ff__badge { position: relative; bottom: auto; left: auto; translate: none; }

  /* 2. settling in: photo above, kept to a comfortable size; sticker inside the gutter */
  .tb-parents-settle { padding-block-end: var(--section-y); }
  .tb-parents-settle__media { max-width: 440px; }
  .tb-parents-settle__sticker { left: 0; top: -3%; }

  /* 3. food: the two arched photos side by side, the menu card under them */
  .tb-parents-fm__table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "l r" "menu menu";
    gap: var(--s-6) var(--s-4);
    margin-block-start: var(--s-7);
  }
  .tb-parents-fm__photo--l { grid-area: l; }
  .tb-parents-fm__photo--r { grid-area: r; }
  .tb-parents-fm__table { max-width: 680px; margin-inline: auto; }
  .tb-parents-fm__menu { grid-area: menu; margin-block-start: var(--s-6); }
  .tb-parents-food__bf { margin-block-start: var(--s-7); }

  /* 5. costs: heading and words first, then the big number */
  .tb-parents-cb__copy { order: -1; }
  .tb-parents-cb__figure { min-height: 0; padding: var(--s-8) var(--s-5); }

  /* 6. FAQs: contact links are real tap targets */
  .tb-parents-faqs__contact { min-height: 44px; }
  .tb-parents-faqs__spark { right: 0; }
}

@media (max-width: 599px) {
  .tb-parents-ff__ping { gap: 10px; padding: 9px 10px 9px 9px; border-radius: 16px; }
  .tb-parents-ff__ping .tb-parents-ping__ico { width: 36px; height: 36px; border-radius: 11px; }
  .tb-parents-ff__ping .tb-parents-ping__ico .icon { width: 18px; height: 18px; }
  .tb-parents-ff__ping .tb-parents-ping__txt { font-size: 0.8125rem; }
  .tb-parents-ff__ping .tb-parents-ping__txt b { font-size: 0.875rem; line-height: 1.25; }
  .tb-parents-ff__ping .tb-parents-ping__txt span { display: none; }
  .tb-parents-ff__badge { gap: 10px; padding: 8px 16px 8px 12px; font-size: 0.8125rem; white-space: normal; max-width: 100%; }
  .tb-parents-ff__badge .tb-parents-famly-logo { height: 24px; }
  .tb-parents-ff__badge span { padding-inline-start: 10px; }

  .tb-parents-settle__beats { gap: var(--s-5); }
  .tb-parents-settle__beat { gap: var(--s-4); }

  .tb-parents-fm__table { gap: var(--s-5) 12px; }
  .tb-parents-fm__menu { padding: var(--s-7) var(--s-5) var(--s-6); }
  .tb-parents-fm__menu-kicker { font-size: 1.8rem; }

  .tb-parents-bf { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-6) var(--s-5); }
  .tb-parents-bf__icon { width: 48px; height: 48px; }

  .tb-parents-included__panel { padding: var(--s-7) var(--s-5); border-radius: var(--r-lg); }
  .tb-parents-included__list { gap: 8px; }
  .tb-parents-included__item { padding: 6px 16px 6px 6px; font-size: 0.9375rem; }
  .tb-parents-included__sun { width: 70%; bottom: -18%; right: -20%; }

  .tb-parents-cb__figure { padding: var(--s-7) var(--s-4); border-radius: var(--r-lg); }
  .tb-parents-cb__num { font-size: clamp(4rem, 3rem + 6vw, 5rem); }
  .tb-parents-cb__unit { font-size: 1.25rem; margin-block-end: var(--s-5); }
  .tb-parents-cb__split { gap: var(--s-3); padding: 10px 18px; }
  .tb-parents-cb__sun { width: 180px; right: -96px; top: -112px; }
  .tb-parents-cb__kicker { max-width: 24ch; }
  .tb-parents-cb__actions { flex-direction: column; align-items: flex-start; }

  .tb-parents-faqs__contact span { overflow-wrap: anywhere; }
  .tb-parents-policies__note a { white-space: normal; overflow-wrap: anywhere; }
}

/* ============================================================================================================
   Round 11 · phones and tablets (client on his iPhone). Desktop (900px and up) untouched.
   ============================================================================================================ */
/* "we don't need the top scroll bar": the chapter sub-nav (Famly app · Settling in · Food ...) is the desktop page's
   signature, so it stays from 900px up; below that, where it became a sideways-scrolling bar, it is gone */
@media (max-width: 899px) {
  .tb-parents-subnav, .tb-parents-subnav-sentinel { display: none; }
  .tb-parents-ff { padding-block: var(--section-y); }
  .tb-parents-sec { scroll-margin-top: var(--s-6); }
}

/* phones (and single-column tablets up to 767px): headings, intros, short cards, buttons and chips sit in the middle;
   the settling-in steps (long text on a numbered thread) stay left */
@media (max-width: 767px) {
  .tb-parents-ff__copy, .tb-parents-settle__copy > :is(.eyebrow, .tb-parents-settle__title, .tb-parents-settle__lead),
  .tb-parents-included__copy, .tb-parents-cb__copy, .tb-parents-faqs__side { text-align: center; }
  .tb-parents-settle__copy > :is(.eyebrow, .tb-parents-settle__title, .tb-parents-settle__lead) { margin-inline: auto; }
  .tb-parents-settle__copy > .eyebrow { display: flex; justify-content: center; }
  .tb-parents-ff__lead, .tb-parents-included__lead, .tb-parents-cb__lead { margin-inline: auto; }

  /* Famly: each feature is an icon above its words */
  .tb-parents-ff__list { margin-inline: auto; }
  .tb-parents-ff__list li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-3); }

  /* breastfeeding card */
  .tb-parents-bf { justify-items: center; text-align: center; }

  /* what's included: the chips as a centred cluster, the button centred */
  .tb-parents-included__list { justify-content: center; }
  .tb-parents-included__copy .btn { margin-inline: auto; }

  /* help with costs: the tick list centred as a block (ticks still line up), the two links centred */
  .tb-parents-cb__ways { width: fit-content; max-width: 100%; margin-inline: auto; text-align: start; }
  .tb-parents-cb__actions { align-items: center; justify-content: center; }

  /* FAQs: phone and email centred under the heading */
  .tb-parents-faqs__ask { justify-items: center; }
}

/* ==== pages/tb-rooms.css ==== */
/* tb-rooms.css - Thornliebank "Playrooms" page (src/pages/thornliebank/playrooms.njk).  Prefix: .tb-rooms-
   r4 ("zoom out, don't squash"): every r3 "one step smaller" rule is gone; type, line-heights and gaps follow the r4 tokens.
   1. hero   2. room explorer (signature: colour re-theming tablist, fades in from white and back out)
   Then the six sections (markup in src/sections/tb-rooms/*.njk), in page order:
   3a. how we teach (t1 "Big idea") · 3b. what we follow (Photo cards) ·
   3c. a team that keeps learning (k1 "Team faces") · 4. in every room (e1) ·
   5. journey (1 Footprints · 2 Photo path) · 6. what we do in each room (g1).
   Tokens only. Desktop first (1280-1920); everything stacks simply when narrower. */

/* ============================================================================================================
   1. HERO - the two-line headline: sans statement, serif finish on its own line
   ============================================================================================================ */
.tb-rooms-hero .page-hero__title { max-width: none; }
.tb-rooms-hero .page-hero__title .accent { display: block; }
.tb-rooms-hero .page-hero__lead { max-width: 54ch; }
.tb-rooms-hero__chips { display: flex; flex-wrap: wrap; gap: var(--s-3); max-width: 600px; margin-block-start: var(--s-2); }

/* r3 fix: in split heads the eyebrow sits right above the title (it used to float at the top of a tall row, leaving a
   ~120px gap when the lead on the right was long); the lead spans both rows and stays bottom-aligned. */
@media (min-width: 900px) {
  .page-tb-rooms .section-head--split { grid-template-rows: 1fr auto; }
  .page-tb-rooms .section-head--split > .eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
  .page-tb-rooms .section-head--split .section-head__title { grid-row: 2; }
  .page-tb-rooms .section-head--split .section-head__aside { grid-row: 1 / span 2; align-self: end; }
}
/* r5 (client: "the text on the right is a bit big"): the leads on the right of split heads are body size, like the rest */
.page-tb-rooms .section-head--split .section-head__lead { max-width: 46ch; font-size: var(--fs-body); line-height: var(--lh-body); }

/* ============================================================================================================
   2. ROOM EXPLORER
   .tb-rooms-explorer[data-room]            the tinted panel; data-room sets --room / --room-soft (room-card.css) and JS moves it
     .tb-rooms-tabs > .tb-rooms-tabs__pill + .tb-rooms-tab × 4
     .tb-rooms-stage > .tb-rooms-stage__blob + .tb-rooms-panel[data-room] × 4
   Without JS the four panels are simply stacked, each in its own colour, and the tabs are in-page links.
   ============================================================================================================ */
.tb-rooms-explorer {
  --tb-tint: 250ms;                                  /* the colour re-theme */
  --fade-h: clamp(88px, 9vw, 150px);               /* r3 (P1): white → room colour, then back to white below */
  padding-block: clamp(104px, 8.6vw, 132px) clamp(88px, 7.4vw, 116px);
  margin-block-start: clamp(var(--s-5), 2.5vw, var(--s-7));
  background-color: var(--room-soft, var(--cream));
  transition: background-color var(--tb-tint) var(--ease-soft);
  overflow: clip;
}
.tb-rooms-explorer__head { margin-block-end: var(--s-7); }
.tb-rooms-explorer__head .section-head__lead { max-width: 44ch; font-size: var(--fs-body); line-height: var(--lh-body); }

/* ---------- the tab rail ---------- */
.tb-rooms-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));     /* --n: the number of rooms (playrooms.njk) */
  gap: var(--s-1);
  padding: 5px;
  margin-block-end: var(--s-8);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 58%, transparent);
}
.tb-rooms-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 68px;
  padding: var(--s-2) var(--s-5) var(--s-2) 22px;
  border-radius: var(--r-pill);
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color var(--t-2) ease, scale var(--t-1) var(--ease-out);
}
.tb-rooms-tab:focus-visible { border-radius: var(--r-pill); }
.tb-rooms-tab:active { scale: 0.98; }
.tb-rooms-tab__dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--room);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--room) 20%, transparent);
  transition: scale var(--t-3) var(--ease-spring);
}
.tb-rooms-tab__label { display: grid; gap: 3px; min-width: 0; }
.tb-rooms-tab__name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.86rem + 0.3vw, 1.125rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.tb-rooms-tab__ages {
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t-2) ease;
}
@media (hover: hover) and (pointer: fine) {
  .tb-rooms-tab:not(.is-active):hover { background-color: color-mix(in srgb, var(--white) 70%, transparent); }
}
.tb-rooms-tab.is-active .tb-rooms-tab__dot { scale: 1.2; }
.tb-rooms-tab.is-active .tb-rooms-tab__ages { color: var(--ink); }
/* before the script runs the active tab is a plain white pill; afterwards the sliding pill takes over */
.tb-rooms-explorer:not(.is-ready) .tb-rooms-tab.is-active { background: var(--white); box-shadow: var(--shadow-1); }
html:not(.js) .tb-rooms-tab.is-active { background: none; box-shadow: none; }      /* no script: four equal links */
html:not(.js) .tb-rooms-tab.is-active .tb-rooms-tab__dot { scale: 1; }

.tb-rooms-tabs__pill {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 0;
  display: none;
  width: 25%;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1), inset 0 0 0 2px var(--room);
  transition: translate 380ms var(--ease-out), box-shadow var(--tb-tint) var(--ease-soft);
  pointer-events: none;
}
.tb-rooms-explorer.is-ready .tb-rooms-tabs__pill { display: block; }
.tb-rooms-tabs__pill.is-instant { transition: none; }

/* ---------- the stage ---------- */
.tb-rooms-stage {
  --photo-w: min(600px, 50%);
  position: relative;
  display: grid;
}
/* a room-coloured shape tucked behind the photo; it turns a little and changes colour with the room */
.tb-rooms-stage__blob {
  --turn: -5deg;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--photo-w);
  aspect-ratio: 4 / 3;
  background-color: var(--room);
  translate: -3.6% 5.5%;
  rotate: var(--turn);
  scale: 1.035;
  transition: background-color var(--tb-tint) var(--ease-soft), rotate 700ms var(--ease-out);
  pointer-events: none;
}
.tb-rooms-explorer[data-room="tweenies"] .tb-rooms-stage__blob { --turn: 4deg; }
.tb-rooms-explorer[data-room="twos"] .tb-rooms-stage__blob { --turn: -2deg; }
.tb-rooms-explorer[data-room="preschool"] .tb-rooms-stage__blob { --turn: 6deg; }
.tb-rooms-explorer[data-room="afterschool"] .tb-rooms-stage__blob { --turn: -4deg; }

.tb-rooms-panel {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: var(--photo-w) minmax(0, 1fr);
  column-gap: clamp(var(--s-7), 5.2vw, 76px);
  row-gap: clamp(var(--s-7), 5vw, 72px);
  align-items: start;
  scroll-margin-top: calc(58px + var(--s-7) + var(--s-2));   /* deep links land with the tabs in view */
}
.tb-rooms-panel:target { scroll-margin-top: calc(58px + var(--s-7) + var(--s-2)); }
html.js .tb-rooms-panel:not(.is-active):not(.is-leaving) { display: none; }
.tb-rooms-panel.is-entering { z-index: 2; }
.tb-rooms-panel.is-leaving { pointer-events: none; }

.tb-rooms-panel__photo { position: relative; grid-column: 1; }
.tb-rooms-panel__frame.media { --ar: 4 / 3; border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-2); }

.tb-rooms-panel__body {
  grid-column: 2;
  align-self: center;
  display: grid;
  justify-items: start;
  gap: var(--s-5);
  min-width: 0;
}
.tb-rooms-panel__name {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-h4);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.tb-rooms-panel__name::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--room);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--room) 22%, transparent);
}
.tb-rooms-panel__ages {
  margin-block-start: calc(var(--s-3) * -1);
  font-family: var(--font-display);
  font-size: var(--fs-h3);                               /* r5: "the text on the right is a bit big" (was up to 36px) */
  font-weight: var(--display-weight);
  line-height: 1.18;
  letter-spacing: var(--display-tracking);
  color: var(--navy);
  text-wrap: balance;
}
.tb-rooms-panel__blurb { max-width: 46ch; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); text-wrap: pretty; }
.tb-rooms-panel__cta { margin-block-start: var(--s-1); }

/* ---------- ratio: one grown-up, N children ---------- */
.tb-rooms-ratio {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 0 var(--s-5);
  width: 100%;
  margin-block-start: var(--s-2);
  padding: var(--s-5) var(--s-6) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.tb-rooms-ratio__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.5rem + 1.3vw, 2.75rem);
  font-weight: var(--display-weight);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.tb-rooms-ratio__figs { display: flex; align-items: flex-end; gap: var(--s-3); min-width: 0; }
.tb-rooms-ratio__kids { display: flex; align-items: flex-end; gap: 5px; }
.tb-rooms-fig { flex: none; height: auto; transform-origin: 50% 100%; }
.tb-rooms-fig--adult { width: clamp(26px, 2.1vw, 30px); fill: var(--navy); }
.tb-rooms-fig--child { width: clamp(17px, 1.35vw, 20px); fill: var(--room); }
.tb-rooms-ratio__cap {
  grid-column: 1 / -1;
  margin-block-start: 3px;                               /* the figures stand on this line */
  padding-block-start: var(--s-4);
  border-block-start: 1.5px dashed var(--line-strong);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- no script: four rooms, one after another ---------- */
html:not(.js) .tb-rooms-stage { gap: var(--s-8); }
html:not(.js) .tb-rooms-panel { grid-area: auto; }
html:not(.js) .tb-rooms-stage__blob { display: none; }
html:not(.js) .tb-rooms-panel__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: var(--room);
  translate: -18px 18px;
  rotate: -2deg;
}
html:not(.js) .tb-rooms-panel__frame { position: relative; }

/* ============================================================================================================
   3a. HOW WE TEACH · t1 "Big idea" - one centred statement between two round photos; the four practices in a ruled row
   ============================================================================================================ */
.tb-rooms-t4__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--s-6), 3.5vw, var(--s-8));
}
.tb-rooms-t4__copy { display: grid; justify-items: center; gap: var(--s-5); text-align: center; }
.tb-rooms-t4__copy .eyebrow { margin: 0; }
.tb-rooms-t4__title {
  max-width: 18ch;
  font-size: clamp(2.2rem, 1.4rem + 2vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: var(--display-tracking);
  text-wrap: balance;
}
.tb-rooms-t4__lead { max-width: 44ch; font-size: var(--fs-lead); line-height: 1.7; color: var(--ink); text-wrap: balance; }
.tb-rooms-t4__pic.media { --ar: 1 / 1; width: 100%; box-shadow: 0 0 0 8px var(--white), var(--shadow-2); }
.tb-rooms-t4__pic--a { max-width: 210px; justify-self: end; translate: 0 20%; }
.tb-rooms-t4__pic--b { max-width: 260px; justify-self: start; translate: 0 -12%; }
.tb-rooms-t4__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: clamp(var(--s-8), 6.5vw, var(--s-9));
  border-block-start: 1.5px solid var(--line-strong);
}
.tb-rooms-t4__item { display: grid; align-content: start; justify-items: start; gap: var(--s-3); padding: var(--s-6) clamp(var(--s-5), 2.2vw, var(--s-6)) 0; }
.tb-rooms-t4__item + .tb-rooms-t4__item { border-inline-start: 1px solid var(--line); }
.tb-rooms-t4__item:first-child { padding-inline-start: 0; }
.tb-rooms-t4__item:last-child { padding-inline-end: 0; }
.tb-rooms-t4__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-block-end: var(--s-1); border-radius: 50%; background: var(--sun-soft); color: var(--navy); }
.tb-rooms-t4__icon .icon { width: 22px; height: 22px; }
.tb-rooms-t4__name { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.005em; text-wrap: balance; }
.tb-rooms-t4__text { font-size: 1rem; line-height: 1.7; color: var(--ink); text-wrap: pretty; }

/* ============================================================================================================
   3b. WHAT WE FOLLOW - Photo cards (r6: the client's choice; Story column and Child at the heart deleted).
   Each framework carries data-room (its colour: --room / --room-soft).
   ============================================================================================================ */
/* ---------- Photo cards: 2×2, photo on top, what it is, what it means here ---------- */
.tb-rooms-fa__head { margin-block-end: var(--s-8); }
.tb-rooms-fa__head .section-head__lead { max-width: 48ch; line-height: var(--lh-body); }
.tb-rooms-fa__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.tb-rooms-fa__card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: var(--s-3);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
}
.tb-rooms-fa__photo.media { --ar: 7 / 3; border-radius: calc(var(--r-xl) - var(--s-3)); }
.tb-rooms-fa__when {
  position: absolute;
  z-index: 1;
  left: var(--s-4);
  top: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
.tb-rooms-fa__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--room); box-shadow: 0 0 0 3px color-mix(in srgb, var(--room) 25%, transparent); }
.tb-rooms-fa__body { display: grid; align-content: start; justify-items: start; gap: var(--s-3); padding: var(--s-6) clamp(var(--s-5), 2.4vw, 36px) clamp(var(--s-5), 2.4vw, 36px); }
.tb-rooms-fa__name { font-size: clamp(1.35rem, 1.15rem + 0.5vw, 1.6rem); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.tb-rooms-fa__what { max-width: 52ch; font-size: 1rem; line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.tb-rooms-fa__label {
  margin-block-start: var(--s-3);
  padding-block-start: var(--s-4);
  width: 100%;
  border-block-start: 1px solid var(--line);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tb-rooms-fa__here { display: grid; gap: var(--s-3); }
.tb-rooms-fa__here li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: 1rem; line-height: 1.6; color: var(--navy); }
.tb-rooms-fa__tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-block-start: 1px; border-radius: 50%; background: var(--room-soft); color: var(--navy); }
.tb-rooms-fa__tick .icon { width: 14px; height: 14px; stroke-width: 2.6; }

/* ============================================================================================================
   3c. A TEAM THAT KEEPS LEARNING · k1 "Team faces" - the real faces in one overlapping row, the five points as 3 + 2 cards
   ============================================================================================================ */
.tb-rooms-k3 { background-color: color-mix(in srgb, var(--sun-soft) 55%, var(--paper)); }
.tb-rooms-k3__head { display: grid; justify-items: center; gap: var(--s-4); text-align: center; }
.tb-rooms-k3__head .eyebrow { margin: 0; }
.tb-rooms-k3__head .h2 { max-width: 22ch; line-height: 1.14; text-wrap: balance; }
.tb-rooms-k3__head .accent { display: block; }
.tb-rooms-k3__lead { max-width: 50ch; font-size: var(--fs-lead); line-height: 1.7; color: var(--ink); text-wrap: balance; }
.tb-rooms-k3__faces { display: flex; justify-content: center; margin-block: var(--s-7) var(--s-8); padding-inline-start: 16px; }
.tb-rooms-k3__face { position: relative; z-index: calc(20 - var(--i)); margin-inline-start: -16px; transition: translate var(--t-2) var(--ease-out); }
.tb-rooms-k3__pic.media { --ar: 1 / 1; display: block; width: clamp(88px, 7vw, 104px); box-shadow: 0 0 0 5px var(--white), var(--shadow-1); }
.tb-rooms-k3__face:first-child .tb-rooms-k3__pic { box-shadow: 0 0 0 5px var(--sun), var(--shadow-1); }
.tb-rooms-k3__tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: var(--white);
  font-size: var(--fs-micro);
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  translate: -50% -4px;
  transition: opacity var(--t-1) ease, translate var(--t-2) var(--ease-out);
  pointer-events: none;
}
.tb-rooms-k3__tip strong { font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .tb-rooms-k3__face:hover { z-index: 30; translate: 0 -6px; }
  .tb-rooms-k3__face:hover .tb-rooms-k3__tip { opacity: 1; translate: -50% 0; }
}
/* five points: three on the first row, two centred under them */
.tb-rooms-k3__points { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s-6); }   /* both rows the same height */
.tb-rooms-k3__point {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-content: start;
  gap: var(--s-2) var(--s-5);
  padding: var(--s-6) clamp(var(--s-5), 2.4vw, 36px);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.tb-rooms-k3__point:nth-child(4) { grid-column: 2 / span 2; }
.tb-rooms-k3__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: var(--navy); }
.tb-rooms-k3__icon .icon { width: 23px; height: 23px; }
.tb-rooms-k3__name { align-self: center; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.005em; }
.tb-rooms-k3__text { font-size: 1rem; line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.tb-rooms-k3__cta { display: flex; justify-content: center; margin-block-start: var(--s-7); }

/* ============================================================================================================
   4. IN EVERY ROOM, EVERY DAY (e1 "Original") - an unequal bento: tall photo · wide photo · quiet tint · navy
   ============================================================================================================ */
.tb-rooms-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: clamp(240px, 18vw, 270px) clamp(340px, 25vw, 370px);
  gap: var(--s-5);
}
.tb-rooms-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(var(--s-6), 2.8vw, 40px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--cream);
}
.tb-rooms-tile--leaf { grid-column: 1 / span 4; grid-row: 1 / span 2; justify-content: flex-start; }
.tb-rooms-tile--sparkles { grid-column: 5 / span 8; grid-row: 1; }
.tb-rooms-tile--heart { grid-column: 5 / span 4; grid-row: 2; justify-content: flex-start; background: var(--peach); }
.tb-rooms-tile--phone { grid-column: 9 / span 4; grid-row: 2; background: var(--navy); }

.tb-rooms-tile__media { position: absolute; inset: 0; z-index: -1; }
.tb-rooms-tile__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 50%); }
.tb-rooms-tile__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
/* scrims sit where the words are: top for the tall photo, lower left for the wide one */
.tb-rooms-tile--leaf .tb-rooms-tile__media::after {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--navy-deep) 88%, transparent), color-mix(in srgb, var(--navy-deep) 62%, transparent) 34%, transparent 62%);
}
.tb-rooms-tile--sparkles .tb-rooms-tile__media::after {
  background: linear-gradient(to right, color-mix(in srgb, var(--navy-deep) 90%, transparent), color-mix(in srgb, var(--navy-deep) 72%, transparent) 36%, transparent 64%);
}

.tb-rooms-tile__copy { display: grid; justify-items: start; gap: var(--s-3); max-width: 34ch; }
.tb-rooms-tile__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block-end: var(--s-2);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
}
.tb-rooms-tile__icon .icon { width: 22px; height: 22px; }
.tb-rooms-tile--phone .tb-rooms-tile__icon { background: var(--sun); }
.tb-rooms-tile__title { font-size: clamp(1.3rem, 1.1rem + 0.45vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; }
.tb-rooms-tile__text { font-size: 1rem; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.tb-rooms-tile.on-navy .tb-rooms-tile__text { color: color-mix(in srgb, var(--white) 92%, transparent); }
.tb-rooms-tile--sparkles .tb-rooms-tile__copy { max-width: 28ch; }
.tb-rooms-tile--heart .tb-rooms-tile__text { color: var(--navy); }
.tb-rooms-tile__round { width: clamp(88px, 7vw, 104px); margin-block-end: var(--s-5); }
.tb-rooms-tile__round .media { box-shadow: 0 0 0 5px var(--white); }
.tb-rooms-tile--heart .tb-rooms-tile__icon { display: none; }      /* the round photo does the talking on this tile */

/* a peek at the parent app: three small updates */
/* the updates stack in the top right corner; the words sit full width along the bottom */
.tb-rooms-tile--phone .tb-rooms-tile__copy { max-width: none; }
.tb-rooms-feed { position: absolute; top: clamp(var(--s-6), 2.8vw, 40px); right: clamp(var(--s-6), 2.8vw, 40px); display: grid; justify-items: end; gap: var(--s-2); }
.tb-rooms-feed__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--navy);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--shadow-2);
}
.tb-rooms-feed__item:nth-child(2) { margin-inline-end: var(--s-5); }
.tb-rooms-feed__item:nth-child(3) { margin-inline-end: var(--s-2); }
.tb-rooms-feed__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sun-soft); }
.tb-rooms-feed__icon .icon { width: 15px; height: 15px; }
.tb-rooms-feed__tick { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); color: var(--white); }
.tb-rooms-feed__tick .icon { width: 12px; height: 12px; stroke-width: 3; }

/* ============================================================================================================
   5. FOLLOW YOUR CHILD'S JOURNEY (group tb-rooms-journey) - r6: the client kept 1 · Footprints (j2) and 2 · Photo path (j4);
   Original, Colour ribbon and Story slider are deleted. #journey is a small anchor before the group.
   ============================================================================================================ */
.tb-rooms-anchor { display: block; height: 0; scroll-margin-top: 112px; }

/* ---------- shared by both: a room link with a dot in its colour (opens that room in the explorer) ---------- */
.tb-rooms-jlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--navy) 25%, transparent);
  text-underline-offset: 0.25em;
}
.tb-rooms-jlink::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--room); }
.tb-rooms-jlink:hover { text-decoration-color: currentColor; }

/* ---------- j2 · Footprints (r5): little feet walk across the page and grow, coloured by room; a tinted card per stage ---------- */
.tb-rooms-j2 { overflow-x: clip; }
.tb-rooms-j2__head { margin-block-end: var(--s-6); }
.tb-rooms-j2__walk { position: relative; aspect-ratio: 1240 / 200; }
.tb-rooms-j2__prints { position: absolute; inset: 0; }
.tb-rooms-j2__prints svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tb-rooms-j2__stop {
  --pin-b: var(--pin-a);
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--pin-a) 50%, var(--pin-b) 50%);
  box-shadow: 0 0 0 7px var(--white), 0 0 0 8.5px color-mix(in srgb, var(--pin-a) 22%, transparent), var(--shadow-2);
}
.tb-rooms-j2__stop svg { width: 15px; height: 30px; fill: var(--white); }
.tb-rooms-j2__cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-4);
  margin-block-start: var(--s-6);
}
.tb-rooms-j2__card {
  --pin-b: var(--pin-a);
  --soft-b: var(--soft-a);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-7) clamp(var(--s-4), 1.7vw, var(--s-5)) var(--s-6);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--soft-a) 30%, var(--soft-b));
}
/* a short bar in the room colour(s) at the top of each card, under its footprint stop */
.tb-rooms-j2__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 56px;
  height: 6px;
  margin-inline-start: -28px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--pin-a) 50%, var(--pin-b) 50%);
}
.tb-rooms-j2__age { font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.55rem); line-height: 1.2; letter-spacing: -0.01em; }
.tb-rooms-j2__lead { font-size: 1rem; font-weight: 600; line-height: 1.55; color: var(--navy); text-wrap: pretty; }
.tb-rooms-j2__more { font-size: 1rem; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.tb-rooms-j2__rooms { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-block-start: auto; padding-block-start: var(--s-2); }

/* ---------- j4 · Photo path: five round photos on a winding coloured path, over a soft rainbow wash ---------- */
.tb-rooms-j4 { position: relative; isolation: isolate; }
.tb-rooms-j4::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--room-baby-soft), var(--room-tweenies-soft) 36%, var(--room-twos-soft) 64%, var(--room-preschool-soft));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 80%, transparent);
  pointer-events: none;
}
.tb-rooms-j4__head { margin-block-end: var(--s-8); }
.tb-rooms-j4__head .section-head__lead { line-height: var(--lh-body); text-wrap: balance; }
.tb-rooms-j4__path { --ph: clamp(168px, 14vw, 200px); position: relative; }   /* photo size; the path is drawn to match */
.tb-rooms-j4__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--ph) * 1.5);
  overflow: visible;
  fill: none;
  stroke: url(#tb-rooms-j4-grad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.01 13;
  pointer-events: none;
}
.tb-rooms-j4__stages { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tb-rooms-j4__stage {
  --pin-b: var(--pin-a);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: var(--s-3);
  padding-inline: clamp(var(--s-3), 1.4vw, var(--s-5));
  text-align: center;
}
.tb-rooms-j4__stage:nth-child(even) { padding-block-start: calc(var(--ph) * 0.48); }   /* photo centres at 0.5 / 0.98 × --ph, on the path */
.tb-rooms-j4__photo { position: relative; width: var(--ph); margin-block-end: var(--s-5); }
.tb-rooms-j4__photo::before {                                           /* the ring in the room colour(s) */
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--pin-a) 50%, var(--pin-b) 50%);
  box-shadow: var(--shadow-2);
}
.tb-rooms-j4__photo .media { --ar: 1 / 1; border-radius: 50%; box-shadow: 0 0 0 5px var(--white); }
.tb-rooms-j4__age {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -16px;
  translate: -50% 0;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  white-space: nowrap;
}
.tb-rooms-j4__lead { font-size: 1rem; font-weight: 600; line-height: 1.55; color: var(--navy); text-wrap: balance; }
.tb-rooms-j4__more { max-width: 24ch; font-size: 1rem; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.tb-rooms-j4__rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }

/* ============================================================================================================
   6. WHAT WE DO IN EACH ROOM · g1 "Original" - 2×2 room cards: photo · room and ages · what our team does there
   ============================================================================================================ */
.tb-rooms-guide__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--s-5) var(--s-8);
  margin-block-end: var(--s-8);
}
.tb-rooms-guide__head .eyebrow { margin-block-end: var(--s-4); }
.tb-rooms-guide__title { font-size: var(--fs-h2); line-height: 1.14; letter-spacing: var(--display-tracking); text-wrap: balance; }
.tb-rooms-guide__lead { max-width: 46ch; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); }
.tb-rooms-guide__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
/* an odd number of rooms: the last card sits centred under the others instead of leaving an empty cell */
.tb-rooms-guide__list > .tb-rooms-srow:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--s-6)) / 2); }
.tb-rooms-srow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(var(--s-5), 2.4vw, var(--s-6));
  align-items: start;
  padding: var(--s-3);
  padding-inline-end: clamp(var(--s-5), 2.6vw, 40px);
  border-radius: var(--r-xl);
  background: var(--room-soft);
  scroll-margin-top: calc(var(--header-h) + var(--s-7));
}
.tb-rooms-srow__photo.media { --ar: auto; align-self: stretch; min-height: 300px; height: 100%; border-radius: calc(var(--r-xl) - var(--s-3)); }
.tb-rooms-srow__photo.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 50%); }
.tb-rooms-srow__main { display: grid; justify-items: start; gap: var(--s-3); padding-block: clamp(var(--s-6), 2.6vw, 40px) var(--s-6); }   /* r4 polish: tops line up across each row */
.tb-rooms-srow__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s-4); }
.tb-rooms-srow__room-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--navy) 25%, transparent);
  text-underline-offset: 0.28em;
}
.tb-rooms-srow__room-name:hover { text-decoration-color: currentColor; }
.tb-rooms-srow__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--room); box-shadow: 0 0 0 3px color-mix(in srgb, var(--room) 25%, transparent); }
.tb-rooms-srow__room-ages { font-size: var(--fs-small); font-weight: 500; line-height: 1.5; color: var(--ink); }
.tb-rooms-srow__lead { font-size: clamp(1.3rem, 1.1rem + 0.45vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.tb-rooms-srow__text { font-size: 1rem; line-height: 1.7; color: var(--ink); text-wrap: pretty; }

/* ============================================================================================================
   Narrower than the desktop design: stack simply
   ============================================================================================================ */
@media (max-width: 1020px) {
  .tb-rooms-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-xl); }
  .tb-rooms-stage { --photo-w: 100%; }
  .tb-rooms-panel { grid-template-columns: minmax(0, 1fr); }
  .tb-rooms-panel__body { grid-column: 1; }
  .tb-rooms-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tb-rooms-bento > .tb-rooms-tile { grid-column: auto; grid-row: auto; min-height: 280px; }
  .tb-rooms-guide__head, .tb-rooms-srow, .tb-rooms-fa__grid { grid-template-columns: minmax(0, 1fr); }
  .tb-rooms-guide__list { grid-template-columns: minmax(0, 1fr); }
  .tb-rooms-guide__list > .tb-rooms-srow:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .tb-rooms-t4__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .tb-rooms-t4__item:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .tb-rooms-t4__top { grid-template-columns: minmax(0, 1fr); }
  .tb-rooms-t4__pic { display: none; }
  .tb-rooms-k3__points { grid-template-columns: minmax(0, 1fr); }
  .tb-rooms-k3__point, .tb-rooms-k3__point:nth-child(4) { grid-column: auto; }
  .tb-rooms-j2__walk, .tb-rooms-j4__line { display: none; }
  .tb-rooms-j2__cards, .tb-rooms-j4__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .tb-rooms-j4__stage:nth-child(even) { padding-block-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tb-rooms-k3__face { transition-property: background-color, box-shadow, color; }
  .tb-rooms-tabs__pill, .tb-rooms-stage__blob { transition-property: background-color, box-shadow; }
  .tb-rooms-tab__dot { transition: none; }
}

/* ============================================================================================================
   Round 9 · tablets and phones (max-width only: the desktop design above 1020px is untouched)
   ============================================================================================================ */
@media (max-width: 1020px) {
  /* r11: the room tabs: every room on show at once (no sideways scrolling), dot above the name, centred */
  .tb-rooms-tabs { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--s-2); border-radius: var(--r-xl); margin-block-end: var(--s-7); }
  .tb-rooms-tab { flex-direction: column; justify-content: center; gap: var(--s-2); min-height: 92px; padding: var(--s-3) var(--s-3); border-radius: var(--r-lg); text-align: center; }
  .tb-rooms-tab:focus-visible { border-radius: var(--r-lg); }
  .tb-rooms-tab__label { justify-items: center; }
  .tb-rooms-tab__name, .tb-rooms-tab__ages { white-space: normal; text-wrap: balance; }
  .tb-rooms-tabs__pill { border-radius: var(--r-lg); }
  /* the hover tips under the team faces are mouse only (and would widen the page at the edges) */
  .tb-rooms-k3__tip { display: none; }
  /* the last journey card of an odd number spans both columns */
  .tb-rooms-j2__card:last-child:nth-child(odd), .tb-rooms-j4__stage:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* the parent-app tile: the updates sit above the words instead of on top of them */
  .tb-rooms-tile--phone .tb-rooms-feed { position: static; order: -1; justify-items: start; margin-block-end: var(--s-6); }
  .tb-rooms-tile--phone { justify-content: flex-start; }
  .tb-rooms-bento { grid-template-rows: none; }
}
@media (hover: none) {
  .tb-rooms-k3__tip { display: none; }
}

@media (max-width: 699.98px) {
  .tb-rooms-hero__chips { gap: var(--s-2); }
  .tb-rooms-explorer { padding-block: calc(var(--section-y) + var(--s-5)) var(--section-y); }   /* r11: follows the (roomier) phone section rhythm */
  .tb-rooms-explorer__head { margin-block-end: var(--s-6); }
  /* r11: the room tabs as a tidy 2 by 2 grid of cards (an odd last room sits centred under the others) */
  .tb-rooms-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; background: none; border-radius: 0; }
  .tb-rooms-tab { min-height: 84px; background: color-mix(in srgb, var(--white) 58%, transparent); }
  .tb-rooms-tab:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--s-2)) / 2); }
  .tb-rooms-stage__blob { translate: -2% 4%; scale: 1.02; }
  .tb-rooms-panel { row-gap: var(--s-6); }
  .tb-rooms-panel__frame.media { border-radius: var(--r-lg); }
  .tb-rooms-panel__body { gap: var(--s-4); }
  .tb-rooms-ratio { padding: var(--s-4) var(--s-5) var(--s-3); gap: 0 var(--s-4); }
  .tb-rooms-ratio__kids { gap: 3px; flex-wrap: wrap; }
  .tb-rooms-fig--adult { width: 24px; }
  .tb-rooms-fig--child { width: 16px; }

  /* how we teach: one practice per row, icon beside the words */
  .tb-rooms-t4__row { grid-template-columns: minmax(0, 1fr); margin-block-start: var(--s-7); }
  .tb-rooms-t4__item, .tb-rooms-t4__item:first-child, .tb-rooms-t4__item:last-child {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: var(--s-4);
    padding: var(--s-5) 0;
    border-inline-start: 0;
  }
  .tb-rooms-t4__item + .tb-rooms-t4__item { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .tb-rooms-t4__icon { grid-row: span 2; margin: 0; }
  .tb-rooms-t4__name, .tb-rooms-t4__text { grid-column: 2; }

  .tb-rooms-fa__head { margin-block-end: var(--s-6); }
  .tb-rooms-fa__grid { gap: var(--s-5); }
  .tb-rooms-fa__body { padding: var(--s-5) var(--s-4) var(--s-5); }

  /* the team faces: a tidy wrapped group instead of one long overlapping row */
  .tb-rooms-k3 .tb-rooms-k3__faces { flex-wrap: wrap; gap: var(--s-3) 0; margin-block: var(--s-6) var(--s-7); padding-inline-start: 10px; }
  .tb-rooms-k3__face { margin-inline-start: -10px; }
  .tb-rooms-k3__pic.media { width: 60px; box-shadow: 0 0 0 4px var(--white), var(--shadow-1); }
  .tb-rooms-k3__face:first-child .tb-rooms-k3__pic { box-shadow: 0 0 0 4px var(--sun), var(--shadow-1); }
  .tb-rooms-k3__points { gap: var(--s-4); grid-auto-rows: auto; }
  .tb-rooms-k3__point { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-2) var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); }
  .tb-rooms-k3__icon { width: 44px; height: 44px; }

  /* in every room: photo tiles get the words at the bottom over a bottom-up scrim */
  .tb-rooms-bento { gap: var(--s-4); }
  .tb-rooms-bento > .tb-rooms-tile { min-height: 0; padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--r-lg); }
  .tb-rooms-bento > .tb-rooms-tile--leaf, .tb-rooms-bento > .tb-rooms-tile--sparkles { min-height: 360px; justify-content: flex-end; }
  .tb-rooms-tile--leaf .tb-rooms-tile__media::after,
  .tb-rooms-tile--sparkles .tb-rooms-tile__media::after {
    background: linear-gradient(to top, color-mix(in srgb, var(--navy-deep) 92%, transparent), color-mix(in srgb, var(--navy-deep) 70%, transparent) 42%, transparent 78%);
  }
  .tb-rooms-feed__item:nth-child(2) { margin-inline: var(--s-5) 0; }
  .tb-rooms-feed__item:nth-child(3) { margin-inline: var(--s-2) 0; }

  /* the journey (Footprints): a path down the page, one stop per stage, each card hanging off it */
  .tb-rooms-j2 .tb-rooms-j2__cards { position: relative; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-block-start: var(--s-5); padding-inline-start: 40px; }
  .tb-rooms-j2__cards::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 28px;
    width: 3px;
    background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 14px);
  }
  .tb-rooms-j2__card { padding: var(--s-5) var(--s-5) var(--s-5); border-radius: var(--r-lg); }
  .tb-rooms-j2__card:last-child:nth-child(odd) { grid-column: auto; }
  .tb-rooms-j2__card::before {           /* the stop on the path, in the room colour(s) */
    top: var(--s-5);
    left: -40px;
    width: 30px;
    height: 30px;
    margin: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg, var(--white)), var(--shadow-1);
  }
  .tb-rooms-j2__age { font-size: 1.35rem; }

  /* Photo path: the same idea with the round photos */
  .tb-rooms-j4__path { --ph: 132px; }
  .tb-rooms-j4__stages { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .tb-rooms-j4__stage:last-child:nth-child(odd) { grid-column: auto; }

  /* what we do in each room */
  .tb-rooms-guide__head { margin-block-end: var(--s-6); }
  .tb-rooms-guide__list { gap: var(--s-4); }
  .tb-rooms-srow { gap: var(--s-2); padding: var(--s-2); border-radius: var(--r-lg); }
  .tb-rooms-srow__photo.media { min-height: 0; aspect-ratio: 4 / 3; height: auto; border-radius: calc(var(--r-lg) - var(--s-2)); }
  .tb-rooms-srow__main { padding: var(--s-4) var(--s-3) var(--s-4); }
}
@media (min-width: 700px) and (max-width: 1020px) {
  /* tablets: the four constants as a 2 × 2 grid, and each room card with its photo beside the words */
  .tb-rooms-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-rooms-bento > .tb-rooms-tile { min-height: 340px; }
  .tb-rooms-tile--leaf .tb-rooms-tile__media::after,
  .tb-rooms-tile--sparkles .tb-rooms-tile__media::after {
    background: linear-gradient(to top, color-mix(in srgb, var(--navy-deep) 92%, transparent), color-mix(in srgb, var(--navy-deep) 70%, transparent) 45%, transparent 80%);
  }
  .tb-rooms-tile--leaf { justify-content: flex-end; }
  .tb-rooms-srow { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
}

/* ============================================================================================================
   Round 10 · final checks
   ============================================================================================================ */
/* the footprint stops sit over the centres of the cards below (the cards have gaps, so plain fifths drifted up to 7px) */
.tb-rooms-j2__stop { left: calc((100% - 4 * var(--s-4)) * (2 * var(--i, 0) + 1) / 10 + var(--i, 0) * var(--s-4)); }

/* tablets and phones: the walk is hidden, so each stage's stop carries the little white footprint (as the desktop stops do) */
@media (max-width: 1020px) {
  .tb-rooms-j2__card::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -19 18 38' fill='white'%3E%3Cpath d='M0.5-10C5-10 7.2-6.5 6.6-2C6.1 2 4.6 5 4.8 9C5 14 3 17.5 0.3 17.5C-2.8 17.5-4.6 14.6-4.2 10.5C-3.9 7.2-2.4 5-3.3 1.5C-4.2-1.5-6.4-3.5-6-6.5C-5.6-9-3-10 0.5-10Z'/%3E%3Ccircle cx='-3.4' cy='-14.2' r='2.8'/%3E%3Ccircle cx='0.9' cy='-15.6' r='2'/%3E%3Ccircle cx='4' cy='-14.3' r='1.75'/%3E%3Ccircle cx='6.3' cy='-11.9' r='1.45'/%3E%3Ccircle cx='7.8' cy='-8.9' r='1.2'/%3E%3C/svg%3E") 50% 50% / 30% auto no-repeat,
      linear-gradient(90deg, var(--pin-a) 50%, var(--pin-b) 50%);
  }
}
@media (min-width: 700px) and (max-width: 1020px) {
  /* tablets: a round stop on the top edge of each card, like the stops on the desktop walk */
  .tb-rooms-j2__cards { row-gap: calc(var(--s-5) + 24px); margin-block-start: calc(var(--s-6) + 24px); }
  .tb-rooms-j2__card { padding-block-start: calc(var(--s-6) + 22px); }
  .tb-rooms-j2__card::before {
    top: -22px;
    width: 44px;
    height: 44px;
    margin-inline-start: -22px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--bg, var(--white)), var(--shadow-1);
  }
}

/* small laptops (1021 to 1279px): the app updates sit above the words, as on tablets, instead of covering the title */
@media (min-width: 1021px) and (max-width: 1279.98px) {
  .tb-rooms-tile--phone { justify-content: flex-start; }
  .tb-rooms-tile--phone .tb-rooms-feed { position: static; order: -1; justify-items: start; margin-block-end: var(--s-5); }
  .tb-rooms-bento { grid-template-rows: clamp(240px, 18vw, 270px) minmax(clamp(340px, 25vw, 370px), auto); }
}

/* touch: room links big enough to tap (44px), without changing how they look */
@media (pointer: coarse) {
  .tb-rooms-hero__chips .chip { position: relative; }
  .tb-rooms-hero__chips { row-gap: var(--s-3); }
  .tb-rooms-hero__chips .chip::after { content: ""; position: absolute; inset: -6px -2px; }
  .tb-rooms-jlink { min-height: 44px; }
  .tb-rooms-j2__rooms { row-gap: 0; margin-block-end: -10px; padding-block-start: 0; }
  .tb-rooms-srow__room-name { position: relative; }
  .tb-rooms-srow__room-name::after { content: ""; position: absolute; inset: -11px -6px; }
}

/* tablets: up to 12 team faces in one row that stays inside the page edges (at 88px they ran into the screen edges) */
@media (min-width: 700px) and (max-width: 1020px) {
  .tb-rooms-k3__faces { padding-inline-start: 12px; }
  .tb-rooms-k3__face { margin-inline-start: -12px; }
  .tb-rooms-k3__pic.media { width: 64px; box-shadow: 0 0 0 4px var(--white), var(--shadow-1); }
  .tb-rooms-k3__face:first-child .tb-rooms-k3__pic { box-shadow: 0 0 0 4px var(--sun), var(--shadow-1); }
}

/* ============================================================================================================
   Round 11 · phones (client on his iPhone: "centre everything", "a bit more gap"); desktop untouched
   ============================================================================================================ */
@media (max-width: 699.98px) {
  /* the explorer: the room on show reads down the middle */
  .tb-rooms-panel__body { justify-items: center; text-align: center; }
  .tb-rooms-ratio { justify-self: stretch; }

  /* in every room, every day: each tile's words centred; the parent-app tile ("Always connected") is a tidy
     centred stack of three updates above the words (no zig-zag) */
  .tb-rooms-tile__copy, .tb-rooms-tile--sparkles .tb-rooms-tile__copy { justify-items: center; max-width: none; text-align: center; }
  .tb-rooms-tile__round { margin-inline: auto; }
  .tb-rooms-tile--phone { justify-content: center; padding-block: var(--s-7) var(--s-6); }
  .tb-rooms-tile--phone .tb-rooms-feed { justify-items: stretch; width: min(100%, 264px); margin: 0 auto var(--s-6); }
  .tb-rooms-feed__item { display: flex; }
  .tb-rooms-feed__tick { margin-inline-start: auto; }
  .tb-rooms-feed__item, .tb-rooms-feed__item:nth-child(2), .tb-rooms-feed__item:nth-child(3) { margin-inline: 0; }

  /* the journey cards and the room cards: centred words */
  .tb-rooms-j2__card { align-items: center; text-align: center; }
  .tb-rooms-j2__rooms { justify-content: center; }
  .tb-rooms-guide__head { text-align: center; justify-items: center; }
  .tb-rooms-guide__lead { margin-inline: auto; }
  .tb-rooms-srow__main { justify-items: center; text-align: center; }
  .tb-rooms-srow__meta { justify-content: center; }
}
/* tablets too: the three app updates as one neat column of equal pills (they were three ragged widths) */
@media (max-width: 1020px) {
  .tb-rooms-tile--phone .tb-rooms-feed { justify-items: stretch; width: min(100%, 264px); }
  .tb-rooms-feed__item { display: flex; }
  .tb-rooms-feed__tick { margin-inline-start: auto; }
}

/* ==== pages/tb-team.css ==== */
/* tb-team.css - Thornliebank "Our team" page.  Prefix: .tb-team-   (desktop first: 1280-1920, designed at 1440)
   r4: "zoom out, don't squash" - every round-3 compaction override was removed; sections use the global tokens
   (--section-y, body 17px / 1.7), cards get 32-64px padding, faces are shown at a size their photos can carry. */

/* =====================================================================================================================
   1. Hero - split with Michelle (the only hero).
   ===================================================================================================================== */
.tb-team-hero { padding-block-end: clamp(var(--s-8), 6vw, var(--s-9)); }
.tb-team-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); min-width: 0; }
.tb-team-hero__title { max-width: 12ch; font-size: var(--fs-h1); line-height: 1.06; }
.tb-team-hero__title .accent { display: block; }
.tb-team-hero__lead { max-width: 50ch; margin: 0; line-height: 1.65; text-wrap: pretty; }
.tb-team-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-block-start: var(--s-3); }

/* ---------- Split with Michelle: a big arched portrait, her name card and a stack of team faces ---------- */
.tb-team-hx__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--s-7), 6vw, var(--s-9));
  align-items: center;
}
.tb-team-hx__art { position: relative; isolation: isolate; width: min(100%, 460px); justify-self: center; padding-block: var(--s-4); }
.tb-team-hx__disc {
  position: absolute;
  z-index: -1;
  right: -14%;
  top: -4%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun-soft);
}
.tb-team-hx__photo { --ar: 4 / 5; box-shadow: var(--shadow-2); background: var(--room-preschool-soft); }
.tb-team-hx__card {
  position: absolute;
  left: -18%;
  bottom: 22%;
  display: grid;
  gap: 4px;
  min-width: 250px;
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-2);
  color: var(--heading);
  text-decoration: none;
}
.tb-team-hx__k { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tb-team-hx__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--display-weight); line-height: 1.2; }
.tb-team-hx__more { display: inline-flex; align-items: center; gap: 6px; margin-block-start: var(--s-2); font-size: var(--fs-small); font-weight: 600; color: var(--red-text); }
.tb-team-hx__stack {
  position: absolute;
  right: -12%;
  bottom: -2%;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 22px 10px 10px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-2);
  color: var(--heading);
  text-decoration: none;
}
.tb-team-hx__faces { display: flex; }
.tb-team-hx__faces > span { width: 46px; height: 46px; margin-inline-start: -12px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--white); }
.tb-team-hx__faces > span:first-child { margin-inline-start: 0; }
.tb-team-hx__faces img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-team-hx__stack-t { font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }
.tb-team-hx__stack-t b { font-family: var(--font-display); font-size: 1.15rem; color: var(--red-text); }
.tb-team-hx__card, .tb-team-hx__stack { transition: translate var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out); }
.tb-team-hx__card:focus-visible, .tb-team-hx__stack:focus-visible { outline: none; box-shadow: var(--focus); }
@media (hover: hover) and (pointer: fine) {
  .tb-team-hx__card:hover, .tb-team-hx__stack:hover { translate: 0 -3px; box-shadow: var(--shadow-3, var(--shadow-2)); }
}

/* =====================================================================================================================
   2. Michelle - the whole story, room to breathe
   ===================================================================================================================== */
.tb-team-manager.section--fade-both { --fade-h: clamp(96px, 10vw, 150px); }
.tb-team-manager { padding-block: calc(var(--section-y) * 1.15); }
.tb-team-manager__inner {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(var(--s-8), 7vw, 112px);
  align-items: start;
  max-width: 1180px;
  margin-inline: auto;
}
.tb-team-manager__aside { position: sticky; top: calc(var(--header-h, 72px) + var(--s-6)); display: grid; gap: var(--s-7); }
.tb-team-manager__figure { position: relative; isolation: isolate; width: 100%; }
.tb-team-manager__shape {
  position: absolute;
  z-index: -1;
  inset: 8% -7% -4% 10%;
  background: var(--room-preschool);
  opacity: 0.9;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  rotate: 6deg;
}
.tb-team-manager__photo { --ar: 4 / 5; background: var(--room-preschool-soft); }
.tb-team-manager__photo img { transition: opacity 500ms var(--ease-out); }
.tb-team-manager__photo.is-pending img { opacity: 0; }
.tb-team-manager__note { position: absolute; z-index: 2; left: -10%; top: -9%; font-size: 1.5rem; }
.tb-team-manager__note .scribble { --scribble-tilt: -5deg; }

.tb-team-manager__quote {
  position: relative;
  margin: 0;
  padding: var(--s-6) var(--s-6) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.tb-team-manager__qmark {
  position: absolute;
  top: calc(var(--s-5) * -1);
  left: var(--s-6);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
}
.tb-team-manager__quote blockquote { margin: var(--s-2) 0 0; }
.tb-team-manager__quote blockquote p {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--heading);
  text-wrap: pretty;
}
.tb-team-manager__quote--about { padding-block-start: var(--s-5); }
.tb-team-manager__about-k { margin: 0 0 var(--s-2); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tb-team-manager__about { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.tb-team-manager__quote figcaption { margin-block-start: var(--s-4); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }

.tb-team-manager__copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-block-start: var(--s-5); }
.tb-team-manager__copy .eyebrow { margin: 0 0 var(--s-4); }
.tb-team-manager__title { margin: 0; font-size: var(--fs-h2); line-height: 1.1; }
.tb-team-manager__bio { display: grid; gap: var(--s-5); max-width: 62ch; margin-block-start: var(--s-6); }
.tb-team-manager__bio p { margin: 0; color: var(--text); text-wrap: pretty; }
.tb-team-manager__bio .tb-team-manager__lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--heading); }

.tb-team-manager__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  width: 100%;
  margin: var(--s-7) 0 0;
}
.tb-team-manager__facts > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--s-2);
  padding-block-start: var(--s-4);
  border-top: 2px solid var(--room-preschool);
}
.tb-team-manager__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 1.2vw, 3rem);
  font-weight: var(--display-weight);
  line-height: 1;
  color: var(--heading);
}
.tb-team-manager__facts dd small { font-size: 0.6em; color: var(--red-text); }
.tb-team-manager__facts dt { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }

.tb-team-manager__quals {
  width: 100%;
  margin-block-start: var(--s-7);
  padding: var(--s-6) clamp(var(--s-6), 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.tb-team-manager__k { margin: 0 0 var(--s-3); font-size: 1.25rem; line-height: 1.3; }
.tb-team-manager__quals ul { display: grid; margin: 0; padding: 0; list-style: none; }
.tb-team-manager__quals li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: var(--s-4); padding-block: var(--s-3); font-weight: 600; line-height: 1.45; color: var(--heading); }
.tb-team-manager__quals li + li { border-top: 1.5px solid var(--line); }
.tb-team-manager__qicon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--room-preschool-soft); color: #B86E00; }

/* =====================================================================================================================
   3. Qualified, patient - Navy list (the client's choice)
   ===================================================================================================================== */
.tb-team-vn__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  gap: clamp(var(--s-7), 6vw, var(--s-9));
  padding: clamp(var(--s-7), 4.6vw, 72px);
  border-radius: var(--r-xl);
  background: var(--navy);
  color: var(--white);
}
.tb-team-vn__head { display: grid; align-content: start; justify-items: start; gap: var(--s-5); }
.tb-team-vn__head .eyebrow { margin: 0; }
.tb-team-vn__h { margin: 0; font-size: var(--fs-h2); line-height: 1.1; color: var(--white); }
.tb-team-vn__h .accent { display: block; color: var(--sun); }
.tb-team-vn__lead { margin: 0 0 var(--s-2); line-height: 1.7; color: color-mix(in srgb, var(--white) 82%, transparent); text-wrap: pretty; }
.tb-team-vn__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-7); margin: 0; padding: 0; list-style: none; }
.tb-team-vn__row {
  display: grid;
  align-content: start;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--s-2) var(--s-3);
  padding-block: var(--s-5) var(--s-6);
  border-top: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
}
.tb-team-vn__n { grid-row: span 2; font-family: var(--font-display); font-size: var(--fs-body); font-weight: 700; color: var(--sun); padding-block-start: 0.15em; }
.tb-team-vn__title { margin: 0; font-size: 1.3rem; line-height: 1.3; color: var(--white); }
.tb-team-vn__text { margin: 0; font-size: var(--fs-body); line-height: 1.7; color: color-mix(in srgb, var(--white) 80%, transparent); text-wrap: pretty; }

/* =====================================================================================================================
   4. Team grid - "Friendly faces at the door"
   ===================================================================================================================== */
.tb-team-grid.section--fade-top { --fade-h: clamp(96px, 10vw, 150px); }
.tb-team-grid .section-head__lead { max-width: 60ch; }
.tb-team-grid__list {
  --card-w: 212px;
  --col-gap: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-7) var(--col-gap);
  list-style: none;
  margin: var(--s-8) auto 0;
  padding: 0;
  --per: 5;                                                  /* r10: cards per row (fewer when that leaves one card alone) */
  max-width: calc(var(--card-w) * var(--per) + var(--col-gap) * (var(--per) - 1));
}
.tb-team-grid__item { flex: 0 0 var(--card-w); width: var(--card-w); position: relative; }
.tb-team-grid__item:has(.tb-team-card.is-open) { z-index: 5; }
.tb-team-card { position: relative; text-align: center; border-radius: var(--r-lg); }
.tb-team-card__lift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-2) var(--s-2);
  transition: transform var(--t-2) var(--ease-out);
}
.tb-team-card__portrait { position: relative; width: 172px; aspect-ratio: 1; display: grid; place-items: center; }
.tb-team-card__photo {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tone-soft);
  box-shadow: 0 0 0 5px var(--white), var(--shadow-1);
  transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out);
}
.tb-team-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-team-card__initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--tone);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
}
/* the ring: a circle in the member's room colour that draws itself round the portrait */
.tb-team-card__ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; overflow: visible; pointer-events: none; }
.tb-team-card__ring circle {
  fill: none;
  stroke: var(--tone);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  transition: stroke-dashoffset var(--t-2) var(--ease-soft), opacity var(--t-1) linear var(--t-1);
}
.tb-team-card__name { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.tb-team-card__role { margin: var(--s-1) 0 0; font-size: 1rem; line-height: 1.45; font-weight: 500; color: var(--muted); }
.tb-team-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 38px;
  margin-block-start: var(--s-3);
  padding: 0 var(--s-3) 0 var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--tone-soft);
  color: var(--navy);
  font: 600 var(--fs-small) / 1 var(--font-body);
  cursor: pointer;
  transition: background-color var(--t-2) ease, transform var(--t-1) var(--ease-out);
}
.tb-team-card__more:active { transform: scale(0.97); }
.tb-team-card__more .icon { transition: rotate var(--t-2) var(--ease-out); }
.tb-team-card.is-open .tb-team-card__more .icon { rotate: 45deg; }
/* the bio: plain text under the card without JS; a speech bubble that grows from the card with JS */
/* a bio pop-up of a card at the right edge must not widen the page (hidden pop-ups still count for scrolling) */
.tb-team-grid { overflow-x: clip; }
.tb-team-card__bio {
  padding: var(--s-5) var(--s-6);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  text-align: left;
  font-size: 1rem;
  line-height: 1.65;
}
.tb-team-card__bio p { margin: 0; }
.tb-team-card__bio p:first-of-type { font-family: var(--font-accent); font-style: italic; font-size: 1.0625rem; line-height: 1.6; color: var(--heading); }
.tb-team-card__sign { margin-block-start: var(--s-3) !important; font-weight: 600; color: var(--muted); }
html.js .tb-team-card__bio {
  position: absolute;
  z-index: 3;
  top: calc(100% + var(--s-3));
  left: 50%;
  width: 360px;
  margin-inline-start: -180px;
  border-top: 4px solid var(--tone);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transform-origin: 50% 0%;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
html.js .tb-team-card.is-open .tb-team-card__bio {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-2) var(--ease-out), transform var(--t-2) var(--ease-out), visibility 0s;
}
/* active state: hover (mouse), keyboard focus inside, or the bio open */
.tb-team-card:focus-within .tb-team-card__ring circle,
.tb-team-card.is-open .tb-team-card__ring circle { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 520ms var(--ease-in-out), opacity var(--t-1) linear; }
.tb-team-card:focus-within .tb-team-card__lift,
.tb-team-card.is-open .tb-team-card__lift { transform: translateY(-6px); }
@media (hover: hover) and (pointer: fine) {
  .tb-team-card:hover .tb-team-card__ring circle { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 520ms var(--ease-in-out), opacity var(--t-1) linear; }
  .tb-team-card:hover .tb-team-card__lift { transform: translateY(-6px); }
  .tb-team-card:hover .tb-team-card__photo { transform: scale(1.04); box-shadow: 0 0 0 5px var(--white), var(--shadow-2); }
  /* the hovered face comes forward, the others step back a touch */
  .tb-team-card__portrait, .tb-team-card__text { transition: opacity var(--t-2) ease, filter var(--t-2) ease; }
  .tb-team-grid__list:has(.tb-team-card:hover) .tb-team-card:not(:hover) :is(.tb-team-card__portrait, .tb-team-card__text) { opacity: 0.72; filter: saturate(0.7); }
  .tb-team-card__more:hover { background: var(--white); }
}
.tb-team-grid__note {
  max-width: 46ch;
  margin: var(--s-8) auto 0;
  text-align: center;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--heading);
  text-wrap: balance;
}
.tb-team-grid__note a { color: var(--red-text); font-weight: 600; text-underline-offset: 0.2em; }

/* =====================================================================================================================
   5. Key worker
   ===================================================================================================================== */
.tb-team-key.section--fade-bottom { --fade-h: clamp(96px, 10vw, 150px); }
.tb-team-key__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--s-7), 6vw, var(--s-9));
  align-items: center;
  padding: clamp(var(--s-7), 4.6vw, 72px) clamp(var(--s-7), 5.4vw, 80px);
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}
.tb-team-key__head { display: flex; flex-direction: column; gap: var(--s-4); }
.tb-team-key__head .eyebrow { margin: 0; }
.tb-team-key__title { margin: 0; font-size: var(--fs-h2); line-height: 1.1; text-wrap: balance; }
.tb-team-key__title .accent { display: block; }
.tb-team-key__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); max-width: 54ch; }
.tb-team-key__body p { margin: 0; text-wrap: pretty; }
/* a row of overlapping team faces under the heading, each ringed in its room colour */
.tb-team-key__faces { display: flex; list-style: none; margin: var(--s-5) 0 0; padding: 0 0 0 5px; }
.tb-team-key__faces li {
  width: 56px;
  height: 56px;
  margin-inline-start: -6px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--tone);
  transition: translate var(--t-2) var(--ease-out);
}
.tb-team-key__faces li:first-child { margin-inline-start: 0; }
.tb-team-key__faces { flex-wrap: wrap; row-gap: var(--s-3); }
.tb-team-key__faces .tb-team-key__more { --tone: var(--sun-deep); display: grid; place-items: center; background: var(--sun-soft); font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); }

.tb-team-key__faces img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .tb-team-key__faces li:hover { translate: 0 -4px; }
}
.tb-team-key__heart { position: absolute; top: calc(var(--s-6) * -1); right: var(--s-8); rotate: 10deg; }

/* =====================================================================================================================
   narrower windows (desktop-first phase: simple stacking) + reduced motion
   ===================================================================================================================== */
@media (max-width: 1180px) {
  .tb-team-hx__card { left: -6%; }
  .tb-team-hx__stack { right: -4%; bottom: -4%; }
}
@media (max-width: 899.98px) {
  .tb-team-hx__grid, .tb-team-manager__inner, .tb-team-vn__panel, .tb-team-vn__list, .tb-team-key__card,
  .tb-team-manager__quals ul { grid-template-columns: minmax(0, 1fr); }
  .tb-team-manager__aside { position: static; max-width: 420px; margin-inline: auto; }
}
/* the bio sheet's head (face, name, close) is for phones and tablets only */
.tb-team-card__sheet-head { display: none; }

@media (prefers-reduced-motion: reduce) {
  .tb-team-card__lift, .tb-team-card__photo, .tb-team-card__bio, .tb-team-card__more { transition: opacity var(--t-2) ease, visibility 0s !important; transform: none !important; }
  .tb-team-card__ring circle { transition: opacity var(--t-2) ease !important; }
}

/* =====================================================================================================================
   Round 9 · tablets and phones (max-width only: the desktop design at 900px and up keeps its rules above)
   ===================================================================================================================== */
@media (max-width: 899.98px), (hover: none) and (pointer: coarse) {
  /* team bios: a sheet that rises from the bottom of the screen (the speech bubble would run off the edge) */
  html.js .tb-team-card__bio {
    position: fixed;
    z-index: 60;
    top: auto;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: min(560px, calc(100vw - 24px));
    max-height: min(72vh, 560px);
    margin-inline-start: 0;
    padding: var(--s-5) var(--s-5) var(--s-6);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: var(--r-lg);
    border-top-width: 5px;
    box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--navy-deep, #0d1238) 34%, transparent), var(--shadow-3, var(--shadow-2));
    translate: -50% 0;
    transform: translateY(24px);
    transform-origin: 50% 100%;
  }
  html.js .tb-team-card.is-open .tb-team-card__bio { transform: none; }
  .tb-team-grid:has(.tb-team-card.is-open) { z-index: var(--z-overlay); }           /* the sheet sits above the sections that follow */
  /* a transformed ancestor would trap the fixed sheet inside the card */
  .tb-team-card:focus-within .tb-team-card__lift,
  .tb-team-card.is-open .tb-team-card__lift { transform: none; }
  html.js .tb-team-card__sheet-head { display: flex; align-items: center; gap: var(--s-3); margin-block-end: var(--s-4); }
  .tb-team-card__sheet-face { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--tone-soft); box-shadow: 0 0 0 3px var(--tone); }
  .tb-team-card__sheet-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .tb-team-card__sheet-head > span:nth-child(2) { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
  .tb-team-card__sheet-head b { font-family: var(--font-display); font-size: 1.125rem; color: var(--heading); }
  .tb-team-card__sheet-head small { font-size: var(--fs-small); color: var(--muted); }
  .tb-team-card__close {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -6px -8px 0 0;
    border: 0;
    border-radius: 50%;
    background: var(--cream);
    color: var(--navy);
    cursor: pointer;
  }
  .tb-team-card__close:focus-visible { outline: none; box-shadow: var(--focus); }
  .tb-team-card__close .icon { width: 20px; height: 20px; }
  .tb-team-card__more { min-height: 44px; }
}
@media (max-width: 899.98px) {
  .tb-team-manager__note { left: -4%; }
}

@media (min-width: 700px) and (max-width: 899.98px) {
  .tb-team-manager__inner { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--s-7); }
  .tb-team-manager__aside { position: sticky; max-width: none; margin-inline: 0; }
  .tb-team-manager__note { font-size: 1.25rem; left: -6%; top: -12%; }
  .tb-team-manager__facts { gap: var(--s-4); }
  .tb-team-hx__art { width: min(100%, 420px); }
}

@media (max-width: 699.98px) {
  /* hero: the portrait a little smaller, the name card and faces tucked inside the screen */
  .tb-team-hx__grid { gap: var(--s-7); }
  .tb-team-hx__art { width: min(100% - 24px, 380px); }
  .tb-team-hx__card { left: -12px; bottom: 20%; min-width: 0; padding: var(--s-4) var(--s-5); }
  .tb-team-hx__name { font-size: 1.3rem; }
  .tb-team-hx__stack { right: -12px; bottom: -14px; padding: 8px 16px 8px 8px; gap: var(--s-2); }
  .tb-team-hx__faces > span { width: 38px; height: 38px; margin-inline-start: -10px; }

  /* Michelle: (r10) the hero portrait is hidden below 900px, so this is the one big photo of her */
  .tb-team-manager { padding-block: var(--section-y); }
  .tb-team-manager__inner { gap: var(--s-7); }
  .tb-team-manager__aside { max-width: 360px; gap: var(--s-7); }
  .tb-team-manager__figure { width: min(86%, 330px); margin-inline: auto; padding-block-start: var(--s-6); }
  .tb-team-manager__note { left: -14%; top: -2%; font-size: 1.25rem; }
  .tb-team-manager__copy { padding-block-start: 0; }
  .tb-team-manager__bio { margin-block-start: var(--s-5); gap: var(--s-4); }
  .tb-team-manager__facts { gap: var(--s-3); margin-block-start: var(--s-6); }
  .tb-team-manager__facts dd { font-size: 2rem; }
  .tb-team-manager__facts dt { font-size: var(--fs-micro); }
  .tb-team-manager__quals { margin-block-start: var(--s-6); padding: var(--s-5); }
  .tb-team-manager__quals li { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); font-size: 1rem; }
  .tb-team-manager__qicon { width: 40px; height: 40px; }
  .tb-team-manager__quote { padding: var(--s-6) var(--s-5) var(--s-5); }
  .tb-team-manager__quote blockquote p { font-size: 1.125rem; }

  /* navy list: a slimmer frame so the words get the width */
  .tb-team-vn__panel { gap: var(--s-6); padding: var(--s-7) var(--s-5) var(--s-5); border-radius: var(--r-lg); }
  .tb-team-vn__row { grid-template-columns: 32px minmax(0, 1fr); padding-block: var(--s-4) var(--s-5); }
  .tb-team-vn__title { font-size: 1.15rem; }
  .tb-team-vn__text { font-size: 1rem; line-height: 1.65; }

  /* the team: two faces to a row */
  .tb-team-grid__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); margin-block-start: var(--s-7); }
  .tb-team-grid__item { width: auto; }
  .tb-team-grid__item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: 50%; }
  .tb-team-card__lift { gap: var(--s-3); padding-inline: 0; }
  .tb-team-card__portrait { width: min(100%, 136px); }
  .tb-team-card__photo { width: 86%; box-shadow: 0 0 0 4px var(--white), var(--shadow-1); }
  .tb-team-card__initials { font-size: 2rem; }
  .tb-team-card__name { font-size: 1.0625rem; }
  .tb-team-card__role { font-size: 0.875rem; }
  .tb-team-card__more { margin-block-start: var(--s-2); padding-inline: var(--s-4) var(--s-3); }
  .tb-team-grid__note { margin-block-start: var(--s-7); font-size: 1.0625rem; }

  /* key worker */
  .tb-team-key__card { gap: var(--s-5); padding: var(--s-7) var(--s-5) var(--s-6); border-radius: var(--r-lg); }
  .tb-team-key__faces { padding-inline-start: 4px; }
  .tb-team-key__faces li { width: 40px; height: 40px; margin-inline-start: -8px; }
  .tb-team-key__heart { right: var(--s-5); }
  .tb-team-key__heart .spark, .tb-team-key__heart svg { width: 48px; height: 48px; }
}

/* =====================================================================================================================
   Round 10 · final checks
   ===================================================================================================================== */
/* phones and tablets: the hero and the manager section sat one above the other with the same photo of the manager, so the
   hero keeps its words and buttons and the manager section (straight after it) shows the photo */
@media (max-width: 699.98px) {
  .tb-team-manager__note { left: -7%; }
}
@media (max-width: 899.98px) {
  .tb-team-hx__art { display: none; }
  .tb-team-hero { padding-block-end: var(--s-6); }
}

/* small laptops: the "Hello" note stays inside the page edge, and the navy list gets the width (heading above the points) */
@media (min-width: 900px) and (max-width: 1279.98px) {
  .tb-team-manager__note { left: -3%; }
}
@media (min-width: 900px) and (max-width: 1179.98px) {
  .tb-team-vn__panel { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .tb-team-vn__head { max-width: 62ch; }
}

/* the team grid: no card left alone on the last row */
@media (min-width: 1280px) {
  .tb-team-grid__list:has(> .tb-team-grid__item:last-child:nth-child(5n + 6)) { --per: 4; }          /* 11 → 4 4 3, 31 → … 4 3 */
}
@media (min-width: 900px) and (max-width: 1279.98px) {
  .tb-team-grid__list { --per: 4; --card-w: min(212px, calc((100% - 3 * var(--col-gap)) / 4)); }
  .tb-team-grid__list:has(> .tb-team-grid__item:last-child:nth-child(4n + 5)) { --per: 3; --card-w: 212px; }   /* 5 → 3 2, 9 → 3 3 3 */
}
@media (min-width: 700px) and (max-width: 899.98px) {
  .tb-team-grid__list { --per: 3; --col-gap: var(--s-4); --card-w: min(212px, calc((100% - 2 * var(--col-gap)) / 3)); }
  .tb-team-grid__list:has(> .tb-team-grid__item:last-child:nth-child(3n + 4)) { --per: 4; --card-w: calc((100% - 3 * var(--col-gap)) / 4); }   /* 31 → … 4 3 */
}

/* Round 10 · touch: a short nursery name in the breadcrumb (e.g. "Perth") still gets a 44px wide tap area */
@media (pointer: coarse) {
  .page-tb-team .crumbs a { position: relative; }
  .page-tb-team .crumbs a::after { content: ""; position: absolute; inset: 0 -6px; }
}
/* the "About Kimberley +" pill stays on one line in the narrower four-to-a-row grid */
@media (max-width: 1279.98px) {
  .tb-team-card__more { white-space: nowrap; padding-inline: var(--s-3) 10px; }
}

/* =====================================================================================================================
   r11 · PHONES: CENTRE EVERYTHING ("keep it consistent with the centring rule"). Every section here is one column below
   900px, the centring follows the site-wide phone rule (under 600px, as the shared section heads); tablets and the desktop are untouched.
   Kept left: Michelle's long story (three long paragraphs), sitting in a centred column. The team grid is already centred.
   ===================================================================================================================== */
@media (max-width: 599.98px) {
  /* hero */
  .tb-team-hero__copy { align-items: center; text-align: center; }
  .tb-team-hero__lead { margin-inline: auto; }
  .tb-team-hero__actions { justify-content: center; }

  /* Michelle: eyebrow, name, facts and her own words centred; her story stays left in a centred column */
  .tb-team-manager__copy { align-items: center; text-align: center; }
  .tb-team-manager__bio { margin-inline: auto; text-align: start; }
  .tb-team-manager__facts > div { align-items: center; text-align: center; }
  .tb-team-manager__quals { width: 100%; }
  .tb-team-manager__k { text-align: center; }
  .tb-team-manager__quals li { text-align: start; }
  /* r12 (client: "not really centre aligned in Michelle's bit"): her story and the qualification rows centre too,
     each qualification a small centred block with its icon above */
  .tb-team-manager__bio { justify-items: center; text-align: center; }
  .tb-team-manager__bio p { max-width: 36ch; text-wrap: balance; }
  .tb-team-manager__quals { text-align: center; }
  .tb-team-manager__quals li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-2); text-align: center; text-wrap: balance; }
  .tb-team-manager__quote { text-align: center; }
  .tb-team-manager__qmark { left: 50%; translate: -50% 0; }

  /* safe hands (navy): heading, line and button centred; each point is a small centred block, its number above */
  .tb-team-vn__head { justify-items: center; text-align: center; }
  .tb-team-vn__row { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s-2); text-align: center; }
  .tb-team-vn__n { grid-row: auto; padding-block-start: 0; }

  /* your child's key worker */
  .tb-team-key__head { align-items: center; text-align: center; }
  .tb-team-key__faces { justify-content: center; }
  .tb-team-key__body { align-items: center; margin-inline: auto; text-align: center; }
}

/* r13 (client: Dunfermline's single "20+ years" looked odd under its line): the facts row is sized to how many facts the manager
   has (michelle.njk adds --n1 / --n2 / --n3). One fact: a single block wide enough for its label on one line; two: two equal
   columns. Desktop and tablets keep them on the left with the copy; phones centre the whole row, line included. */
.tb-team-manager__facts--n1 { grid-template-columns: minmax(0, 18rem); }
.tb-team-manager__facts--n2 { grid-template-columns: repeat(2, minmax(0, 15rem)); }
@media (max-width: 599.98px) {
  .tb-team-manager__facts--n1,
  .tb-team-manager__facts--n2 { justify-content: center; }
  .tb-team-manager__facts--n1 { grid-template-columns: minmax(0, 15rem); }
  .tb-team-manager__facts--n2 { grid-template-columns: repeat(2, minmax(0, 10.5rem)); }
}

/* ==== pages/tb-visit.css ==== */
/* tb-visit.css - nursery "Book a visit" (src/nursery/visit.njk), round 8 redo. Behaviour: js/pages/tb-visit.js
   The head, the card, the form fields and the contact strip come from tb-contact.css (shared with the contact page).
   Here: 1. the #visit arrival pulse   2. "What to expect"   3. the visit confirmation (also used by the Book a visit
   tab on the contact page): a sun rising over a horizon, the chosen day and time, and the phone number. */

/* =====================================================================================================================
   1. #visit arrival: one soft sun ring breathes out round the card
   ===================================================================================================================== */
.tb-visit-box__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}
.tb-visit-box.is-pulsing .tb-visit-box__pulse { animation: tbv-pulse 1600ms var(--ease-out) 200ms both; }
@keyframes tbv-pulse {
  0% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--sun) 70%, transparent); }
  100% { opacity: 0; box-shadow: 0 0 0 22px color-mix(in srgb, var(--sun) 0%, transparent); }
}

/* =====================================================================================================================
   2. what to expect
   ===================================================================================================================== */
.tb-visit-promise {
  width: min(100%, 760px);
  margin: clamp(40px, 3.6vw, 56px) auto 0;
  text-align: center;
}
.tb-visit-promise__title { margin: 0 0 var(--s-5); font-size: var(--fs-h4); line-height: 1.3; }
.tb-visit-promise__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.tb-visit-promise__item { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-body); line-height: 1.5; color: var(--ink); }
.tb-visit-promise__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sun-soft);
  color: var(--navy);
}
.tb-visit-promise__icon .icon { width: 19px; height: 19px; }
.tb-visit-main .tb-contact-strip { margin-block-start: clamp(44px, 4vw, 64px); padding-block-start: clamp(32px, 3vw, 44px); border-top: 1px solid var(--line); }
@media (max-width: 640px) { .tb-visit-promise__list { grid-template-columns: 1fr; } }

/* =====================================================================================================================
   3. the visit confirmation (forms.js builds .form-success; tb-visit.js adds .tb-visit-done, the sky, the summary, the phone)
   ===================================================================================================================== */
.form-success.tb-visit-done {
  position: relative;
  justify-items: center;
  gap: var(--s-4);
  padding: clamp(28px, 3vw, 44px) clamp(16px, 2.4vw, 40px);
  border-radius: calc(var(--r-xl) - 12px);
  background: linear-gradient(180deg, var(--sun-mist), var(--cream) 75%);
  text-align: center;
}
.form-success.tb-visit-done .form-success__tick { display: none; }
.form-success.tb-visit-done .form-success__title { max-width: 22ch; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.2; text-wrap: balance; }
.form-success.tb-visit-done .form-success__text { font-size: var(--fs-body); color: var(--muted); }
.tb-visit-done__sky { position: relative; width: 168px; height: 100px; margin-block-end: var(--s-2); overflow: hidden; }
.tb-visit-done__sky::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--navy) 22%, transparent);
}
.tb-visit-done__sun { position: absolute; left: 50%; bottom: -46px; width: 132px; margin-left: -66px; color: var(--sun); }
.tb-visit-done__visit {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  width: min(100%, 34rem);
  margin: var(--s-2) 0 0;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
  text-align: left;
}
.tb-visit-done__visit > div { display: grid; gap: 4px; padding: var(--s-4) var(--s-5); }
.tb-visit-done__visit > div + div { border-left: 1px solid var(--line); }
.tb-visit-done__visit dt { font-size: var(--fs-micro); font-weight: 600; color: var(--muted); }
.tb-visit-done__visit dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--display-weight); line-height: 1.25; color: var(--navy); }
.tb-visit-done__call { margin: var(--s-2) 0 0; color: var(--ink); }
.tb-visit-done__call a { font-weight: 700; color: var(--navy); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.tb-visit-done__call a:hover { text-decoration-color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .form-success.is-in .tb-visit-done__visit { animation: form-rise 560ms var(--ease-out) 520ms both; }
  .form-success.is-in .tb-visit-done__call { animation: form-rise 560ms var(--ease-out) 600ms both; }
}
@media (prefers-reduced-motion: reduce) { .tb-visit-box.is-pulsing .tb-visit-box__pulse { animation: none; } }

/* r10 QA: both halves of the day | time card start at the top; on phones they stack so a long date is not squeezed */
.tb-visit-done__visit > div { align-content: start; }
@media (max-width: 640px) {
  .tb-visit-done__visit { grid-template-columns: minmax(0, 1fr); }
  .tb-visit-done__visit > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* r11 · phones: centre everything (the site-wide phone rule, under 600px; tablets and desktop untouched). The form keeps
   its labels and inputs left; its heading and intro centre (pages/tb-contact.css). "What to expect" is a list: the block
   centres and its icons stay lined up. The contact strip's details become small centred blocks, icon above. */
@media (max-width: 599.98px) {
  .tb-visit-promise__list { width: fit-content; max-width: 100%; margin-inline: auto; }
  .tb-visit-main .tb-contact-strip { align-items: center; }
  .tb-visit-main .tb-contact-strip__item { flex-direction: column; gap: var(--s-2); text-align: center; }
  .tb-visit-main .tb-contact-strip__text { justify-items: center; text-align: center; }
  .tb-visit-main .tb-contact-strip__social { justify-content: center; }
}

/* ==== pages/visit.css ==== */
/* visit.css - Book a show around (group page).  Markup: pages/visit.njk · behaviour: js/pages/visit.js
   1. .visit-head     eyebrow + title | lead + three points
   2. .visit-choose   "1 Choose a nursery": eight photo cards, 4 × 2
   3. .visit-request  "2 Request a visit" form card | sticky card for the chosen nursery
   Section padding from the global tokens. Desktop-first (1280-1920); below 980px everything stacks. */

.visit-page {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-clear, 82px) + clamp(36px, 3.4vw, 52px));
  padding-bottom: calc(var(--section-y) + var(--footer-r, 56px) * 0.5);
  overflow: clip;
}
.visit-page__glow {
  position: absolute;
  z-index: -1;
  top: -24%;
  right: -12%;
  width: min(760px, 56vw);
  aspect-ratio: 1;
  background: var(--glow-sun);
  opacity: 0.42;
  pointer-events: none;
}

/* ---------- 1. head ---------- */
.visit-head {
  display: grid;
  gap: var(--s-5) clamp(40px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(44px, 4vw, 64px);
}
@media (min-width: 980px) {
  .visit-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
.visit-head__title { margin-top: var(--s-4); font-size: clamp(2.2rem, 1.4rem + 2vw, 3.25rem); line-height: 1.1; }
.visit-head__aside { display: grid; gap: var(--s-4); max-width: 34rem; padding-bottom: 0.4em; }
.visit-head__lead { margin: 0; font-size: var(--fs-body); line-height: 1.7; color: var(--text); text-wrap: pretty; }
.visit-head__points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.visit-head__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--heading);
}
.visit-head__points .icon { width: 20px; height: 20px; color: var(--red); }

/* the two numbered steps */
.visit-step {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
.visit-step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sun);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

/* ---------- 2. choose: eight photo cards ---------- */
.visit-choose { margin-bottom: clamp(56px, 5vw, 80px); }
.visit-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 28px);
}
@media (min-width: 980px) { .visit-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.visit-pick { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.visit-pick__input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.visit-pick__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1), inset 0 0 0 1.5px transparent;
  transition: box-shadow var(--t-2) var(--ease-out), transform var(--t-2) var(--ease-out);
}
@media (hover: hover) {
  .visit-pick:hover .visit-pick__card { box-shadow: var(--shadow-2), inset 0 0 0 1.5px transparent; transform: translateY(-3px); }
  .visit-pick:hover .visit-pick__photo img { transform: scale(1.035); }
}
.visit-pick:active .visit-pick__card { transform: translateY(-1px) scale(0.99); }
.visit-pick__photo {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 6px);
  background: var(--cream);
}
.visit-pick__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 50%);
  transition: transform 600ms var(--ease-out);
}
.visit-pick__body { display: grid; gap: 4px; padding: 16px 12px 10px; }
.visit-pick__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--heading); }
.visit-pick__town {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--muted);
}
.visit-pick__town .icon { flex: none; width: 16px; height: 16px; color: var(--red); }
.visit-pick__tick {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  color: var(--white);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.14);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--t-2) var(--ease-out), transform var(--t-2) var(--ease-spring), background-color var(--t-2) var(--ease-out);
}
.visit-pick__tick .icon { width: 18px; height: 18px; stroke-width: 3; }

.visit-pick__input:checked + .visit-pick__card {
  box-shadow: var(--shadow-2), inset 0 0 0 2.5px var(--navy);
  transform: none;
}
.visit-pick__input:checked + .visit-pick__card .visit-pick__tick { opacity: 1; transform: scale(1); background: var(--navy); }
.visit-pick__input:focus-visible + .visit-pick__card { box-shadow: var(--shadow-2), inset 0 0 0 2.5px var(--navy), var(--focus); }

/* ---------- 3. request: form | chosen nursery ---------- */
.visit-request { display: grid; gap: var(--s-6); align-items: start; scroll-margin-top: var(--s-6); }
@media (min-width: 980px) {
  .visit-request { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 3.4vw, 56px); }
}

.visit-form { --card-pad: clamp(28px, 2.8vw, 44px); --card-shadow: var(--shadow-2); border-radius: var(--r-xl); }
.visit-form__form { display: grid; gap: 28px; }
.visit-form__head .visit-step { margin-bottom: 14px; }
.visit-form__title { font-size: clamp(1.75rem, 1.2rem + 1vw, 2.25rem); line-height: 1.18; text-wrap: balance; }
.visit-form__grid { gap: 20px; }
.visit-form .input, .visit-form .select { min-height: 52px; }
.visit-form__hint { display: flex; align-items: center; gap: 8px; margin: -8px 0 0; }
.visit-form__hint .icon { flex: none; width: 17px; height: 17px; color: var(--navy); }

/* morning / afternoon / either */
.visit-time { margin: 0; padding: 0; border: 0; min-width: 0; }
.visit-time > legend { padding: 0; margin-bottom: var(--s-2); }
.visit-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-height: 52px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.visit-seg__opt { position: relative; display: flex; cursor: pointer; }
.visit-seg__opt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.visit-seg__opt > span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--heading);
  transition: background-color var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out);
}
.visit-seg__opt .icon { width: 17px; height: 17px; }
@media (hover: hover) { .visit-seg__opt:hover > span { background: color-mix(in srgb, var(--sun-soft) 70%, transparent); } }
.visit-seg__opt > input:checked + span { background: var(--navy); color: var(--white); }
.visit-seg__opt > input:focus-visible + span { box-shadow: var(--focus); }
.visit-time.is-invalid .visit-seg { box-shadow: inset 0 0 0 1.5px var(--red); }

.visit-form__foot { display: grid; gap: 22px; padding-top: 26px; border-top: 1px solid var(--line); }
.visit-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.visit-form__direct { margin: 0; font-size: var(--fs-small); }
.visit-form__direct a { color: var(--heading); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.visit-form__direct a:hover { text-decoration-color: var(--red); }

/* the chosen nursery */
.visit-aside { display: grid; gap: var(--s-4); min-width: 0; }
@media (min-width: 980px) {
  .visit-aside { position: sticky; top: calc(var(--header-top-min, 10px) + var(--header-h-min, 58px) + 24px); }
}
.visit-chosen {
  padding: clamp(26px, 2.4vw, 36px);
  border-radius: var(--r-xl);
  background: var(--sun-mist, var(--cream));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 30%, transparent);
}
.visit-chosen__empty { display: grid; justify-items: start; gap: 10px; }
.visit-chosen__sun {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  box-shadow: var(--shadow-1);
}
.visit-chosen__sun .icon { width: 22px; height: 22px; }
.visit-chosen__empty-title { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--heading); }
.visit-chosen__empty-text { margin: 0; font-size: var(--fs-body); line-height: 1.65; color: var(--text); }

.visit-chosen__full { display: grid; gap: 6px; }
.visit-chosen__full[hidden] { display: none; }
.visit-chosen__kicker { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-text, var(--red)); }
.visit-chosen__name { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 0.6vw, 1.85rem); font-weight: 600; line-height: 1.2; color: var(--heading); }
.visit-chosen__list { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.visit-chosen__list li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-body); line-height: 1.55; color: var(--text); }
.visit-chosen__list .icon { flex: none; width: 20px; height: 20px; margin-top: 0.2em; color: var(--navy); }
.visit-chosen__list a { color: var(--heading); font-weight: 700; text-decoration: none; }
.visit-chosen__list a:hover { text-decoration: underline; }
.visit-chosen__direct { justify-self: start; }
.visit-chosen.is-changing .visit-chosen__full { animation: visit-swap 380ms var(--ease-out) both; }
@keyframes visit-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .visit-chosen.is-changing .visit-chosen__full { animation: none; } }

.visit-aside__note { margin: 0; padding-inline: 6px; font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }
.visit-aside__note a { color: var(--heading); font-weight: 600; }

/* success: the shared .form-success panel, given room */
.visit-form .form-success { padding-block: clamp(16px, 2vw, 32px); }

/* ============================================================ r9 mobile + tablet pass (≤979px only; desktop untouched) ============================================================ */
@media (min-width: 700px) and (max-width: 979.98px) {
  .visit-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .visit-pick__name { font-size: 1.15rem; }
  .visit-request { max-width: 680px; }
}
@media (max-width: 560px) {
  .visit-form { --card-pad: 22px; }
  .visit-form__form { gap: 24px; }
  .visit-pick__body { padding: 14px 10px 10px; }
  .visit-pick__name { font-size: 1.15rem; }
  .visit-form__actions .btn { flex: 1 1 100%; justify-content: center; }
  .visit-form__direct a, .visit-aside a:not(.btn) { display: inline-block; padding-block: 10px; margin-block: -10px; }
}

/* r10: thin vertical lines between Morning, Afternoon and Either (hidden next to the chosen one) */
.visit-seg__opt + .visit-seg__opt::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -2.75px;
  width: 1.5px;
  border-radius: 1px;
  background: var(--line-strong);
  pointer-events: none;
  transition: opacity var(--t-2) var(--ease-out);
}
.visit-seg__opt:has(input:checked)::before,
.visit-seg__opt:has(input:checked) + .visit-seg__opt::before { opacity: 0; }

/* r10 QA (≤1279px only) */
@media (max-width: 979.98px) {
  .visit-request { max-width: none; }                   /* the form card lines up with the photo cards above it */
  .visit-pick__town { align-items: flex-start; }       /* the pin sits by the first line when the place wraps */
  .visit-pick__town .icon { margin-top: 0.15em; }
}
@media (max-width: 1279px) {
  /* "Afternoon" is the long word: it gets the wider segment, so no label crowds the dividers */
  .visit-seg { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.75fr); }
}
@media (max-width: 380px) {
  .visit-seg__opt .icon { display: none; }
}

/* ==== utilities.css ==== */
/* utilities.css - a deliberately small set. Loaded last, so these win over component styles. */

/* text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

/* colour helpers (text only) */
.text-muted { color: var(--muted); }
.text-heading { color: var(--heading); }
.text-accent { color: var(--accent); }

/* measure (max-width in ch) */
.measure { max-width: 62ch; }
.measure-xs { max-width: 24ch; }
.measure-sm { max-width: 38ch; }
.measure-md { max-width: 50ch; }
.measure-lg { max-width: 72ch; }
.measure-none { max-width: none; }

/* centring & spacing nudges */
.mx-auto { margin-inline: auto; }
.ml-auto { margin-inline-start: auto; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; }
.w-full { width: 100%; }
.relative { position: relative; }

/* hide / show at breakpoints (sm 640, md 900, lg 1180) */
@media (max-width: 639.98px) { .hide-sm-down { display: none !important; } }
@media (min-width: 640px) { .hide-sm-up { display: none !important; } }
@media (max-width: 899.98px) { .hide-md-down { display: none !important; } }
@media (min-width: 900px) { .hide-md-up { display: none !important; } }
@media (max-width: 1179.98px) { .hide-lg-down { display: none !important; } }
@media (min-width: 1180px) { .hide-lg-up { display: none !important; } }
@media (hover: none) { .hide-touch { display: none !important; } }
html.no-js .hide-no-js { display: none !important; }
html.js .show-no-js { display: none !important; }

/* aspect ratios (also set --ar so .media picks it up) */
.ar-1x1 { --ar: 1 / 1; aspect-ratio: 1 / 1; }
.ar-4x3 { --ar: 4 / 3; aspect-ratio: 4 / 3; }
.ar-3x2 { --ar: 3 / 2; aspect-ratio: 3 / 2; }
.ar-16x9 { --ar: 16 / 9; aspect-ratio: 16 / 9; }
.ar-21x9 { --ar: 21 / 9; aspect-ratio: 21 / 9; }
.ar-3x4 { --ar: 3 / 4; aspect-ratio: 3 / 4; }
.ar-4x5 { --ar: 4 / 5; aspect-ratio: 4 / 5; }
.ar-2x3 { --ar: 2 / 3; aspect-ratio: 2 / 3; }

/* glass - only for things floating over photos (nav, hero info cards). Adds no shadow of its own: pair with .shadow-2 / your component's shadow. */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: color-mix(in srgb, var(--white) 94%, transparent); }
}
.glass--dark {
  background: color-mix(in srgb, var(--navy) 62%, transparent);
  border-color: color-mix(in srgb, var(--white) 18%, transparent);
}

/* misc */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.round { border-radius: 50%; }
.rounded { border-radius: var(--r-lg); }
.pill { border-radius: var(--r-pill); }
.shadow-1 { box-shadow: var(--shadow-1); }
.shadow-2 { box-shadow: var(--shadow-2); }
.shadow-3 { box-shadow: var(--shadow-3); }
