/* MMT Play for schools. Tokens from design/tokens.css (brand: plum on cream, one pink action, yellow cloud). */
@font-face {
  font-family: "Nunito";
  src: url("assets/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cream: #f4f0ec;
  --paper: #fbf9f6;
  --white: #ffffff;
  --plum: #4c2369;
  --plum-deep: #2e1245;
  --ink: #4c2369;
  --ink-body: #5a4470;
  --ink-soft: #76568a;
  --pink: #e71d73;
  --pink-600: #cc1868;
  --pink-700: #b5145c;
  --pink-800: #9e1150;
  --sun: #ffd600;
  --lilac: #9887bf;
  --tint-lilac: #e9e3f5;
  --tint-sky: #ddf1f2;
  --tint-peach: #fde7d6;
  --tint-lime: #eaf3cf;
  --tint-butter: #fff4c2;
  --tint-pink: #f6dcec;
  --focus: #0b6fa3;
  --line: rgb(76 35 105 / 0.1);

  --shadow-sm: 0 1px 2px rgb(25 8 46 / 0.06), 0 2px 6px rgb(25 8 46 / 0.06);
  --shadow-md: 0 2px 4px rgb(25 8 46 / 0.05), 0 10px 28px rgb(76 35 105 / 0.1);
  --shadow-lg: 0 4px 8px rgb(25 8 46 / 0.05), 0 24px 56px rgb(76 35 105 / 0.16);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 8vw, 120px);
  --radius: 24px;

  --h1: clamp(2.75rem, 1.55rem + 4.4vw, 5.25rem);
  --h2: clamp(2.1rem, 1.35rem + 2.6vw, 3.6rem);
  --h3: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
  --lede: clamp(1.15rem, 1.06rem + 0.35vw, 1.35rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-body);
  font: 500 1.125rem/1.6 "Nunito", ui-rounded, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pink-600); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--light { color: var(--sun); }
.h2 { font-size: var(--h2); line-height: 1.06; max-width: 19ch; }
.h3 { font-size: var(--h3); line-height: 1.2; }
.lede { font-size: var(--lede); line-height: 1.55; font-weight: 600; color: var(--ink-body); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--pink-600); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.05rem; line-height: 1;
  padding: 19px 30px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 0 var(--pink-800), var(--shadow-md);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms;
}
.btn:hover { background: var(--pink-700); transform: translateY(-2px); box-shadow: 0 6px 0 var(--pink-800), var(--shadow-lg); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--pink-800), var(--shadow-sm); }
.btn--small { padding: 13px 20px; font-size: 0.95rem; box-shadow: 0 3px 0 var(--pink-800); }
.btn--ghost { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 2px rgb(76 35 105 / 0.22); }
.btn--ghost:hover { background: var(--white); box-shadow: inset 0 0 0 2px var(--plum); }
.btn--block { width: 100%; }
.btn--light { background: var(--white); color: var(--plum); box-shadow: 0 4px 0 rgb(0 0 0 / 0.25), var(--shadow-lg); }
.btn--light:hover { background: var(--sun); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 12px var(--gutter);
  background: rgb(244 240 236 / 0.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__logo img { width: 104px; height: auto; margin: -14px 0; }
.nav__tag { font-weight: 800; font-size: 0.85rem; color: var(--ink-soft); padding-left: 16px; border-left: 2px solid var(--line); }
.nav .btn { margin-left: auto; }

/* ---------- hero ---------- */
.swoosh { position: relative; white-space: nowrap; z-index: 0; }
.swoosh::after {
  content: ""; position: absolute; z-index: -1; left: -0.06em; right: -0.08em; bottom: 0.04em; height: 0.3em;
  background: var(--sun); border-radius: 0.2em; transform: rotate(-1.2deg) scaleX(var(--swoosh, 1)); transform-origin: left;
}
.stage__disc {
  position: absolute; inset: 9% 11% 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #f2eefa 0%, var(--tint-lilac) 58%, #ddd3ef 100%);
  box-shadow: inset 0 -18px 40px rgb(76 35 105 / 0.06);
}
.stage__disc::after {
  content: ""; position: absolute; inset: -5%; border-radius: 50%;
  border: 2px dashed rgb(152 135 191 / 0.35);
}
.teacher { position: absolute; left: 13%; bottom: 2%; width: 74%; overflow: visible; }
.teacher .face--calm { opacity: 0; transition: opacity 400ms; }
.teacher .face--worried { transition: opacity 400ms; }
.teacher.is-calm .face--calm { opacity: 1; }
.teacher.is-calm .face--worried { opacity: 0; }
.steam { animation: steam 3.2s ease-in-out infinite; }
@keyframes steam { 0%, 100% { opacity: 0.2; transform: translateY(4px); } 50% { opacity: 0.9; transform: translateY(-4px); } }

.worries { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.worry {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 12px;
  max-width: 232px; padding: 11px 18px 11px 11px;
  background: var(--white); border-radius: 18px;
  font-weight: 800; font-size: 0.98rem; line-height: 1.25; color: var(--plum);
  box-shadow: var(--shadow-lg);
  rotate: var(--r);
  will-change: transform;
}
.worry__icon {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
}
.worry__icon svg, .card__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--plum); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.worry__icon--sky { background: var(--tint-sky); }
.worry__icon--peach { background: var(--tint-peach); }
.worry__icon--lime { background: var(--tint-lime); }
.worry__icon--pink { background: var(--tint-pink); }
.worry__icon--lilac { background: var(--tint-lilac); }
.worry__icon--butter { background: var(--tint-butter); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 7vw, 88px); }
.stat {
  background: var(--white); border-radius: var(--radius); padding: 32px 30px 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line);
}
.stat__num { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 900; line-height: 1; color: var(--pink-600); letter-spacing: -0.03em; }
.stat__label { font-size: 1.1rem; font-weight: 700; color: var(--plum); line-height: 1.4; }
.stat__src { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin-top: auto; padding-top: 8px; }

/* ---------- story ---------- */
.story__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__media { position: sticky; top: 96px; height: calc(100svh - 136px); max-height: 760px; }
.story__frame { position: relative; margin: 0; height: 100%; border-radius: 32px; overflow: hidden; background: var(--tint-lilac); box-shadow: var(--shadow-lg); }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 700ms var(--ease-out), transform 1400ms var(--ease-out); }
.story__img.is-active { opacity: 1; transform: scale(1); }
.story__img[data-beat-img="2"] { object-position: 50% 20%; }
.counter {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--white); border-radius: 20px; padding: 16px 22px 14px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.counter.is-on { opacity: 1; transform: none; }
.counter__num { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 900; color: var(--plum); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.counter__label { font-weight: 800; font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; }
.story__beats .h2 { margin-bottom: 4vh; }
.beat { min-height: 34vh; padding-block: 20px; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: 0.28; transition: opacity 500ms var(--ease-out); }
.beat:last-child { min-height: 46vh; }
.beat.is-active { opacity: 1; }
.beat p { font-size: clamp(1.3rem, 1.12rem + 0.7vw, 1.7rem); line-height: 1.45; font-weight: 700; color: var(--plum); }
.beat strong { color: var(--pink-600); font-weight: 900; }
.accent-link { color: var(--pink-600); font-weight: 900; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.accent-link:hover { color: var(--pink-700); }
.story__img--art { object-fit: contain; background: #4c2369; }
.story__img--ruth-right { object-position: 82% 50%; }
a.wordmark { text-decoration: none; transition: opacity 200ms; }
a.wordmark:hover { opacity: 1; }
.beat__tag { align-self: flex-start; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); background: var(--tint-lilac); padding: 7px 12px; border-radius: 999px; }
.quote { margin: 0; font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.95rem); line-height: 1.35; font-weight: 800; color: var(--plum); padding-left: 24px; border-left: 5px solid var(--sun); }
.quote__who { font-size: 0.95rem !important; font-weight: 700 !important; color: var(--ink-soft) !important; padding-left: 29px; }

/* ---------- icons ---------- */
.icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; }
.icon svg { width: 21px; height: 21px; fill: none; stroke: var(--plum); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; }
.icon--lg svg { width: 24px; height: 24px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stat .icon { margin-bottom: 4px; }
.step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.step__head .step__day { margin: 0; }

/* ---------- a day in Year 1 ---------- */
.day { background: var(--cream); }
.day__lede { margin-top: 24px; max-width: 60ch; }
.day__bar { display: flex; gap: 4px; height: 26px; margin-top: 48px; border-radius: 999px; overflow: hidden; }
.day__seg { min-width: 6px; transform-origin: left; }
.day__seg--teach, .day__key--teach::before { background: var(--plum); }
.day__seg--prov, .day__key--prov::before { background: var(--pink-600); }
.day__seg--routine, .day__key--routine::before { background: #d8cfe6; }
.day__legend { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.9rem; font-weight: 800; color: var(--ink-soft); }
.day__key { display: inline-flex; align-items: center; gap: 8px; }
.day__key::before { content: ""; width: 14px; height: 14px; border-radius: 4px; }
.day__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.day__item { background: var(--white); border: 1px solid var(--line); border-left: 5px solid #d8cfe6; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.day__item--teach { border-left-color: var(--plum); }
.day__item--prov { border-left-color: var(--pink-600); }
.day__time { font-size: 0.8rem; font-weight: 900; color: var(--ink-soft); letter-spacing: 0.04em; }
.day__what { font-weight: 800; color: var(--plum); line-height: 1.3; }
@media (max-width: 980px) { .day__list { grid-template-columns: 1fr 1fr; } }

/* ---------- schools already doing it ---------- */
.proof { background: var(--cream); }
.proof__lede { margin-top: 24px; max-width: 62ch; }
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.case__where { display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 900; letter-spacing: 0.04em; color: var(--ink-soft); }
.case__where .icon { width: 32px; height: 32px; border-radius: 10px; }
.case__where .icon svg { width: 17px; height: 17px; }
.case h3 { font-size: 1.5rem; }
.case p { font-size: 1.02rem; line-height: 1.55; }
.case__ofsted { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--tint-lime); font-weight: 800; color: var(--plum); }
.case__ofsted cite, .case__ruth cite { display: block; font-style: normal; font-size: 0.8rem; font-weight: 800; color: var(--ink-soft); margin-top: 4px; }
.case__ruth { margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; color: var(--plum); font-style: italic; }
.case__ruth cite { font-style: normal; }
@media (max-width: 980px) { .proof__grid { grid-template-columns: 1fr; } }

/* ---------- case studies with the map ---------- */
.proof__layout { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(24px, 4vw, 56px); margin-top: 44px; align-items: start; }
.ukmap { position: sticky; top: 100px; width: 100%; max-width: 420px; justify-self: center; }
.ukmap { aspect-ratio: 400 / 439.0; overflow: hidden; }
.ukmap img { position: absolute; left: 0; top: -66.67%; width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(180deg, transparent 38%, #000 52%); mask-image: linear-gradient(180deg, transparent 38%, #000 52%); }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; align-items: center; }
.pin i { width: 16px; height: 16px; border-radius: 50%; background: var(--pink-600); border: 3px solid #fff; box-shadow: 0 4px 12px rgb(204 24 104 / 0.4); position: relative; transition: transform 300ms var(--ease-pop); }
.pin i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--pink-600); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.7; } 100% { transform: scale(1.4); opacity: 0; } }
.pin b { position: absolute; right: 22px; white-space: nowrap; font-size: 0.78rem; font-weight: 900; color: var(--plum); background: rgb(255 255 255 / 0.95); padding: 4px 9px; border-radius: 999px; box-shadow: var(--shadow-sm); transition: background 250ms, color 250ms; }
.pin[data-pin="holmer"] b { right: auto; left: 50%; top: 16px; transform: translateX(-50%); }
.pin.is-hot i { transform: scale(1.45); }
.pin.is-hot b { background: var(--plum); color: #fff; }
.proof__cards { display: flex; flex-direction: column; gap: 16px; }
.case__head { display: flex; align-items: center; gap: 16px; }
.case__logo { width: 64px; height: 64px; object-fit: contain; flex: none; border-radius: 16px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.case__logo--mono { display: grid; place-items: center; background: var(--plum); color: #fff; font-weight: 900; font-size: 1.3rem; letter-spacing: 0.02em; padding: 0; border: 0; }
.case__head h3 { font-size: 1.45rem; }
.case__head .case__where { font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); }
.case { transition: box-shadow 250ms, border-color 250ms; }
.case.is-hot { border-color: rgb(204 24 104 / 0.4); box-shadow: var(--shadow-md); }
@media (max-width: 980px) { .proof__layout { grid-template-columns: 1fr; } .ukmap { position: relative; top: 0; max-width: 260px; } }

/* ---------- how we work ---------- */
.stages { list-style: none; padding: 0; margin: 40px 0 clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stage { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.stage .icon { margin-bottom: 16px; }
.stage h3 { font-size: 1.2rem; margin-bottom: 8px; }
.stage p { font-size: 1rem; line-height: 1.55; }
.journey__sub { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; }
@media (max-width: 980px) { .stages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stages { grid-template-columns: 1fr; } }

/* ---------- the ending: urgency, the offer and booking ---------- */
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.4); }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 2px #fff; }
.cta__mail { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: rgb(255 255 255 / 0.8); }
.cta__mail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta__mail a { color: #fff; }
.why-now { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.why-now li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; color: rgb(255 255 255 / 0.86); font-weight: 600; line-height: 1.5; }
.why-now b { display: block; color: #fff; font-weight: 900; font-size: 1.08rem; }
.why-now .icon { background: rgb(255 255 255 / 0.12); }
.why-now .icon svg { stroke: var(--sun); }
.runway { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.runway li { position: relative; padding-top: 18px; font-size: 0.8rem; font-weight: 700; color: rgb(255 255 255 / 0.75); line-height: 1.35; }
.runway li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 999px; background: rgb(255 255 255 / 0.18); }
.runway li:first-child::before { background: var(--sun); }
.runway li:nth-child(2)::before { background: var(--pink); }
.runway li:last-child::before { background: var(--lime); }
.runway b { display: block; color: #fff; font-weight: 900; font-size: 0.9rem; }
.offer { background: var(--white); color: var(--ink-body); border-radius: 32px; padding: clamp(28px, 3.5vw, 44px); box-shadow: 0 30px 80px rgb(0 0 0 / 0.3); }
.offer__chip { display: inline-flex; align-items: center; gap: 8px; background: var(--sun); color: var(--plum); font-weight: 900; font-size: 0.82rem; padding: 7px 12px; border-radius: 999px; margin-bottom: 14px; }
.offer__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink-600); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: 0.5; } }
.offer__label { font-size: 0.8rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-600); }
.offer__amount { font-size: clamp(3.6rem, 2.8rem + 3vw, 5.6rem); font-weight: 900; letter-spacing: -0.04em; color: var(--plum); line-height: 1; margin-top: 12px; }
.offer__amount span { font-size: 0.5em; vertical-align: 0.6em; margin-right: 4px; color: var(--pink-600); }
.offer__per { font-weight: 700; color: var(--ink-soft); margin: 10px 0 24px; line-height: 1.5; }
.ticks--dark li { color: var(--plum); }
.offer__note { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 800; color: var(--plum); }
@media (max-width: 640px) { .runway { grid-template-columns: 1fr 1fr; row-gap: 16px; } }

/* ---------- the slide-over with questions and details ---------- */
.nav__link { margin-left: auto; background: none; border: 0; font: inherit; font-weight: 800; font-size: 0.95rem; color: var(--plum); cursor: pointer; padding: 10px 6px; }
.nav__link + .btn { margin-left: 8px; }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); max-width: 100vw; padding: 0; border: 0; background: var(--cream); color: var(--ink-body); box-shadow: -30px 0 80px rgb(25 8 46 / 0.25); overscroll-behavior: contain; }
.drawer::backdrop { background: rgb(25 8 46 / 0.45); backdrop-filter: blur(4px); }
.drawer[open] { animation: drawer-in 420ms var(--ease-out); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer__inner { padding: 0 clamp(20px, 4vw, 40px) 40px; display: flex; flex-direction: column; gap: 24px; min-height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; padding: 24px 0 12px; background: var(--cream); z-index: 1; }
.drawer__head h2 { font-size: 1.7rem; }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); box-shadow: var(--shadow-sm); cursor: pointer; display: grid; place-items: center; }
.drawer__close svg { width: 20px; height: 20px; fill: none; stroke: var(--plum); stroke-width: 2.4; stroke-linecap: round; }
.drawer .faq__list summary { font-size: 1.08rem; padding: 20px 44px 20px 0; }
.drawer .faq__list details p { padding: 0 0 20px; font-size: 1rem; }
.drawer__more h3 { font-size: 1.15rem; margin: 18px 0 6px; }
.drawer__more p { font-size: 1rem; line-height: 1.6; }

/* ---------- coverage and partners ---------- */
.logos { position: relative; z-index: 1; background: var(--cream); padding: 48px 0 56px; }
.logos__row { display: flex; flex-wrap: wrap; gap: 32px 72px; justify-content: space-between; align-items: center; }
.logos__label { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.logos__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.wordmark { color: var(--plum); opacity: 0.82; font-weight: 900; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1; display: inline-flex; align-items: center; gap: 8px; }
.wordmark small { font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; max-width: 9em; line-height: 1.2; }
.wordmark--bbc span { background: var(--plum); color: #fff; font-size: 0.95rem; padding: 4px 6px; border-radius: 3px; letter-spacing: 0.08em; }
.wordmark--guardian { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.wordmark--lbc { font-size: 1.5rem; letter-spacing: 0.04em; }
.wordmark--netmums { font-size: 1.45rem; letter-spacing: -0.03em; }
.wordmark--nspcc { letter-spacing: 0.06em; }
.badge img { width: 120px; height: auto; mix-blend-mode: multiply; }

/* ---------- Ruth's approach ---------- */
.approach { position: relative; background: var(--cream); }
.principles { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); }
.principle { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.principle .icon { grid-row: span 3; }
.principle__num { font-size: 0.8rem; font-weight: 900; color: var(--pink-600); letter-spacing: 0.08em; margin-bottom: 2px; }
.principle h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; margin-bottom: 8px; }
.principle p { font-size: 1.05rem; line-height: 1.55; }
.evidence { margin-top: 64px; background: var(--white); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.evidence__title { font-size: 0.8rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 24px; }
.evidence__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.evidence__item { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--plum); line-height: 1.4; }
.evidence__num { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); font-weight: 900; color: var(--pink-600); letter-spacing: -0.02em; line-height: 1; }
.evidence__src { font-size: 0.8rem; color: var(--ink-soft); }
.evidence__note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1.05rem; font-weight: 600; max-width: 70ch; }
@media (max-width: 980px) { .principles { grid-template-columns: 1fr; } .evidence__grid { grid-template-columns: 1fr; } }

/* ---------- explorers: one idea or area at a time ---------- */
.explore__lede { margin-top: 20px; max-width: 52ch; }
.explore { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); margin-top: 40px; align-items: start; }
.explore__picks { display: flex; flex-direction: column; gap: 6px; }
.pick { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--ink-soft); background: transparent; border: 0; border-radius: 16px; padding: 14px 18px; cursor: pointer; transition: background 250ms, color 250ms, transform 250ms var(--ease-out); }
.pick:hover { background: rgb(255 255 255 / 0.6); color: var(--plum); }
.pick[aria-selected="true"] { background: var(--white); color: var(--plum); box-shadow: var(--shadow-sm); transform: translateX(6px); }
.pick__num { font-size: 0.78rem; font-weight: 900; color: var(--pink-600); letter-spacing: 0.06em; min-width: 22px; }
.explore__stage { position: sticky; top: 110px; background: var(--white); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-md); min-height: 340px; display: flex; flex-direction: column; }
.show { animation: show-in 500ms var(--ease-out); }
.show[hidden] { display: none; }
@keyframes show-in { from { opacity: 0; transform: translateY(10px); } }
.icon--xl { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px; }
.icon--xl svg { width: 30px; height: 30px; }
.show__num { display: block; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em; color: var(--pink-600); margin-bottom: 8px; }
.show h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.show p { font-size: var(--lede); line-height: 1.55; font-weight: 600; }
.show dl { margin: 6px 0 0; display: grid; gap: 4px; }
.show dt { font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-600); margin-top: 14px; }
.show dd { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--plum); line-height: 1.5; }
.show__note { margin-top: auto; padding-top: 22px; font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); line-height: 1.5; }
.next { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; color: var(--pink-600); background: none; border: 0; padding: 24px 0 0; cursor: pointer; }
.next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.next:hover svg { transform: translateX(4px); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; font: inherit; font-weight: 800; font-size: 0.98rem; line-height: 1.25; color: var(--plum); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 16px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 250ms var(--ease-out), box-shadow 250ms, border-color 250ms; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile[aria-selected="true"] { border-color: var(--pink-600); box-shadow: 0 0 0 3px rgb(204 24 104 / 0.18), var(--shadow-md); }
@media (max-width: 980px) {
  .explore { grid-template-columns: 1fr; }
  .explore__stage { position: static; min-height: 0; }
  .explore__picks { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .pick { flex: none; scroll-snap-align: start; background: var(--white); font-size: 0.92rem; }
  .pick[aria-selected="true"] { transform: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { padding: 12px; font-size: 0.85rem; }
}

/* ---------- the school-day clock ---------- */
.dayclock { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 40px; }
.dial { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.dial svg { width: 100%; height: auto; display: block; overflow: visible; }
.dial__track { fill: none; stroke: rgb(76 35 105 / 0.06); stroke-width: 46; }
.seg { fill: none; stroke-width: 46; cursor: pointer; transition: stroke-width 300ms var(--ease-out), opacity 300ms; opacity: 0.55; }
.seg.is-on { opacity: 1; stroke-width: 56; }
.seg--teach { stroke: var(--plum); }
.seg--prov { stroke: var(--pink-600); }
.seg--routine { stroke: #cfc4e2; }
.dial__face { fill: var(--white); filter: drop-shadow(0 10px 24px rgb(76 35 105 / 0.12)); }
.dial__hour { font: 800 15px "Nunito", sans-serif; fill: var(--ink-soft); text-anchor: middle; dominant-baseline: middle; }
.dial__hand line { stroke: var(--sun); stroke-width: 6; stroke-linecap: round; }
.dial__hand circle { fill: var(--sun); stroke: #fff; stroke-width: 4; }
.dial__centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; gap: 10px; }
.dial__time { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 900; color: var(--plum); letter-spacing: -0.01em; }
.dial__kind { justify-self: center; font-size: 0.78rem; font-weight: 900; padding: 6px 12px; border-radius: 999px; }
.dial__kind--teach { background: var(--plum); color: #fff; }
.dial__kind--prov { background: var(--pink-600); color: #fff; }
.dial__kind--routine { background: #e9e3f5; color: var(--plum); }
.moment { min-height: 150px; }
.moment__name { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.moment__why { font-size: var(--lede); font-weight: 600; line-height: 1.55; margin-top: 12px; max-width: 44ch; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.slot { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; font-size: 0.86rem; color: var(--plum); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 10px; cursor: pointer; transition: background 200ms, color 200ms; }
.slot__time { font-size: 0.75rem; font-weight: 900; color: var(--ink-soft); }
.slot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #cfc4e2; }
.slot--teach::before { background: var(--plum); }
.slot--prov::before { background: var(--pink-600); }
.slot[aria-selected="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.slot[aria-selected="true"] .slot__time { color: rgb(255 255 255 / 0.75); }
.dayclock__sum { margin-top: 26px; font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); }
.dayclock__sum b { color: var(--plum); font-weight: 900; }
@media (max-width: 980px) { .dayclock { grid-template-columns: 1fr; } .dial { max-width: 340px; } .moment { min-height: 0; } }

/* ---------- inside the room ---------- */
.areas { background: var(--cream); }
.areas__lede { margin-top: 24px; max-width: 58ch; }
.areas__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.area { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }

.area h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.area p { font-size: 1rem; line-height: 1.55; }
@media (max-width: 980px) { .areas__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .areas__grid { grid-template-columns: 1fr; } }

/* ---------- journey ---------- */
.journey__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.journey__aside { position: sticky; top: 110px; }
.journey__aside .lede { margin-top: 24px; max-width: 34ch; }
.progress { position: relative; width: 148px; height: 148px; margin-top: 40px; }
.progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.progress__track { stroke: var(--tint-lilac); }
.progress__bar { stroke: var(--pink-600); stroke-dasharray: 326.7; stroke-dashoffset: 294; transition: stroke-dashoffset 600ms var(--ease-out); }
.progress__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 900; color: var(--plum); font-size: 2.6rem; line-height: 1; }
.progress__num small { display: block; font-size: 0.85rem; color: var(--ink-soft); font-weight: 800; margin-top: 4px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 22px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  opacity: 0.5; transform: scale(0.98); transform-origin: left center;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), box-shadow 400ms, border-color 400ms;
}
.step.is-active { opacity: 1; transform: none; box-shadow: var(--shadow-lg); border-color: rgb(204 24 104 / 0.35); }
.step__day { display: inline-block; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-600); margin-bottom: 8px; }
.step h3 { font-size: var(--h3); margin-bottom: 8px; }
.step p { font-size: 1.08rem; line-height: 1.55; }

/* ---------- why ---------- */
.why { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--white); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 300ms var(--ease-out), box-shadow 300ms; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 1.02rem; line-height: 1.55; }

/* ---------- faq ---------- */
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); font-weight: 800; color: var(--plum); line-height: 1.35;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--tint-lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c2369' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 300ms var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 48px 28px 0; font-size: 1.08rem; line-height: 1.6; max-width: 62ch; }

/* ---------- cta ---------- */
.cta { background: radial-gradient(90% 120% at 100% 0%, #6a338f 0%, var(--plum) 40%, var(--plum-deep) 100%); color: #fff; padding-block: var(--section-y); overflow: hidden; }
.cta__layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }
.cta__title { color: #fff; font-size: var(--h2); line-height: 1.04; max-width: 15ch; }
.cta__lede { font-size: var(--lede); font-weight: 600; color: rgb(255 255 255 / 0.85); margin: 24px 0 36px; max-width: 44ch; }
.cta__sign { margin-top: 40px; font-weight: 900; font-size: 1.15rem; color: #fff; }
.cta__sign span { font-weight: 600; font-size: 0.95rem; color: rgb(255 255 255 / 0.7); }

.footer { padding: 36px 0; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.footer__row { display: flex; align-items: center; gap: 24px; }
.footer img { width: 84px; height: auto; margin: -10px 0; }

/* ---------- the 3D stage and its chapters ---------- */
.stage3d { position: fixed; inset: 0; z-index: 0; background: var(--cream) url("assets/poster-box.jpg") center / cover no-repeat; }
.stage3d canvas { opacity: 0; transition: opacity 700ms var(--ease-out); }
.stage3d.is-ready canvas { opacity: 1; }
@media (max-width: 980px) { .stage3d { background-size: 190% auto; background-position: 50% 78%; } }
.stage3d::after { content: ""; position: absolute; inset: 0 auto 0 0; width: min(48vw, 680px); background: linear-gradient(90deg, rgb(244 240 236 / 0.95) 0%, rgb(244 240 236 / 0.86) 55%, rgb(244 240 236 / 0) 100%); opacity: 0; transition: opacity 700ms var(--ease-out); pointer-events: none; }
.stage3d.has-panel::after { opacity: 1; }
.stage3d canvas { width: 100%; height: 100%; display: block; }
.no-3d .stage3d { background-image: url("assets/poster.jpg"); }
.tags { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; visibility: hidden; }
.tags.is-shown { visibility: visible; }
.tags.is-live .tag { pointer-events: auto; cursor: pointer; }
.tag.is-on { background: var(--plum); color: #fff; z-index: 1; }
.tag.is-on::before { background: var(--sun); }
.tag:hover { background: var(--white); }
.tag.is-on:hover { background: var(--plum); }
.tag {
  position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; font: inherit; border: 0;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: rgb(255 255 255 / 0.95); border-radius: 999px; padding: 7px 13px 7px 9px;
  font-size: 0.84rem; font-weight: 900; color: var(--plum); box-shadow: var(--shadow-md);
  margin-top: -10px;
}
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink-600); }
.tag::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.no-3d .tags { display: none; }

main, .footer { position: relative; z-index: 1; }
.nav { z-index: 20; }

.open { min-height: 100svh; display: flex; justify-content: center; text-align: center; padding: clamp(40px, 10vh, 120px) var(--gutter) 0; }
.open__copy { max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.open .eyebrow { justify-content: center; text-align: center; }
.open__title { font-size: clamp(2rem, 1.3rem + 3.7vw, 4.25rem); line-height: 1.04; letter-spacing: -0.03em; }
.open__cue { margin-top: 28px; font-weight: 800; font-size: 0.9rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 10px; }
.cue { width: 22px; height: 34px; border: 2.5px solid var(--lilac); border-radius: 12px; position: relative; }
.cue::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--pink-600); animation: cue 1.6s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.chapter { position: relative; height: 200vh; }
.chapter--long { height: 240vh; }
.chapter--turn { height: 300vh; }
.chapter__sticky { position: sticky; top: 0; height: 100svh; }
.panel {
  position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: 50%;
  width: min(430px, 36vw); transform: translateY(-46%);
  opacity: 0; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); pointer-events: none;
}
.panel.is-on { opacity: 1; transform: translateY(-50%); }
.panel__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.025em; }
.panel__text { font-size: var(--lede); font-weight: 600; line-height: 1.55; margin-top: 18px; color: var(--ink-body); }

.worried { position: relative; background: var(--cream); }
.worried::before, .approach::before { content: ""; position: absolute; left: 0; right: 0; top: -220px; height: 220px; background: linear-gradient(180deg, rgb(244 240 236 / 0) 0%, var(--cream) 100%); pointer-events: none; }
.logos::after { content: ""; position: absolute; left: 0; right: 0; bottom: -220px; height: 220px; background: linear-gradient(180deg, var(--cream) 0%, rgb(244 240 236 / 0) 100%); pointer-events: none; }
.worried__track { height: 150vh; }
.worried__sticky { position: sticky; top: 0; height: 100svh; max-width: 1320px; margin: 0 auto; padding: 72px var(--gutter) 24px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.worried__copy .lede { margin-top: 24px; max-width: 34ch; }
.worried__stage { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 620px; max-height: calc(100svh - 120px); justify-self: center; }
.worried__stats { position: relative; padding-bottom: var(--section-y); }
.story, .journey, .price, .faq { background: var(--cream); }
.cta__cloud { width: min(300px, 60%); justify-self: center; filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.25)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-2deg); } }

/* ---------- progress through the page ---------- */
.progress-line { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 30; background: var(--pink-600); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.rail-nav { position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 25; }
.rail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; color: var(--plum); font-size: 0.78rem; font-weight: 800; }
.rail span { opacity: 0; transform: translateX(6px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); background: rgb(255 255 255 / 0.92); padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.rail i { width: 10px; height: 10px; border-radius: 50%; background: rgb(76 35 105 / 0.22); transition: background 300ms, transform 300ms var(--ease-pop); flex: none; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail li.is-on i { background: var(--pink-600); transform: scale(1.35); }
.rail li.is-past i { background: var(--plum); }
@media (max-width: 980px) { .rail-nav { display: none; } }

/* ---------- pinned tracks: scrolling steps through each moment ---------- */
.track, .approach__track { position: relative; }
.approach__track { height: calc(100svh + 8 * 28vh); }
.track[data-track="12"] { height: calc(100svh + 12 * 17vh); }
.track[data-track="2"] { height: calc(100svh + 2 * 55vh); }
.track__sticky, .approach__sticky { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: center; padding: 84px 0 28px; }
.track__sticky > .wrap, .approach__sticky > .wrap { width: 100%; }
.approach__sticky .h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.approach__sticky .explore { margin-top: 24px; }
.approach__sticky .explore__stage { position: static; min-height: 300px; }
.approach__after { padding-bottom: var(--section-y); }

/* the room's areas, explained one at a time */
.chapter--areas { height: 190vh; }
.panel--areas .area-card { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; box-shadow: var(--shadow-md); min-height: 236px; }
.area-card .icon--xl { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 12px; }
.area-card .icon--xl svg { width: 24px; height: 24px; }
.area-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.area-card dt { font-size: 0.74rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-600); margin-top: 10px; }
.area-card dd { margin: 2px 0 0; font-size: 1rem; font-weight: 700; color: var(--plum); line-height: 1.45; }
.area-card dl { margin: 0; }
.area-card > * { animation: show-in 400ms var(--ease-out); }
.area-nav { display: flex; align-items: center; gap: 14px; margin-top: 14px; pointer-events: auto; }
.area-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.area-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--plum); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.area-count { font-weight: 900; font-size: 0.85rem; color: var(--ink-soft); }
.panel--areas { pointer-events: auto; }
.areas--fallback { display: none; }
.no-3d .areas--fallback { display: block; }
.no-3d .chapter--areas { display: none; }

/* a real day: text and moment on the left, the clock on the right */
.day .dayclock { margin-top: 0; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.day .dial { order: 2; max-width: 430px; }
.day__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.day__lede { margin-top: 10px; font-weight: 600; color: var(--ink-soft); max-width: 46ch; }
.day .moment { margin-top: 22px; min-height: 128px; }
.day .moment__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.day .moment__why { font-size: 1.1rem; }
.day .slots { margin-top: 16px; gap: 6px; }
.day .slot { font-size: 0.78rem; padding: 6px 11px 6px 9px; }
.day .dayclock__sum { margin-top: 16px; font-size: 0.98rem; }

/* schools: words and a flipping card on the left, the map on the right */
.proof .proof__layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); margin-top: 0; align-items: center; }
.proof__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.proof .proof__lede { margin: 12px 0 20px; font-weight: 600; color: var(--ink-soft); max-width: 54ch; line-height: 1.55; }
.deck { display: grid; perspective: 1600px; }
.deck .case { grid-area: 1 / 1; backface-visibility: hidden; transform-style: preserve-3d; }
.deck .case:not(.is-front) { visibility: hidden; }
.deck__nav { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.deck__dot { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: rgb(76 35 105 / 0.2); cursor: pointer; transition: transform 250ms var(--ease-pop), background 250ms; }
.deck__dot.is-on { background: var(--pink-600); transform: scale(1.3); }
.deck__count { margin-left: 6px; font-size: 0.85rem; font-weight: 900; color: var(--ink-soft); }
.proof .ukmap { position: relative; top: auto; }

@media (max-width: 980px) {
  .approach__track { height: calc(100svh + 8 * 24vh); }
  .track__sticky, .approach__sticky { padding: 76px 0 16px; align-items: flex-start; }
  .approach__sticky .explore__lede { display: none; }
  .approach__sticky .explore__stage { min-height: 0; padding: 22px; }
  .approach__sticky .show p { font-size: 1.02rem; }
  .day .dayclock { grid-template-columns: 1fr; gap: 18px; }
  .day .dial { order: 2; max-width: 270px; }
  .day .dial__time { font-size: 1.05rem; }
  .day .dial__kind { font-size: 0.66rem; padding: 4px 9px; }
  .day__title { font-size: 1.8rem; }
  .tags.is-live .tag:not(.is-on) { visibility: hidden; }
  .panel--areas .eyebrow { display: none; }
  .area-card .icon--xl { display: none; }
  .area-card h3 { font-size: 1.2rem; }
  .area-card dd { font-size: 0.92rem; }
  .day__lede, .day .slots, .day .dayclock__sum { display: none; }
  .day .moment { margin-top: 10px; min-height: 0; }
  .proof .proof__layout { grid-template-columns: 1fr; }
  .proof .ukmap, .proof .proof__lede { display: none; }
  .panel--areas .area-card { min-height: 0; padding: 16px 18px; margin-top: 10px; }
  .panel--areas .areas__hint { display: none; }
  .panel--areas .panel__title { font-size: 1.5rem; }
  .chapter--areas { height: 170vh; }
}

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .panel { left: 16px; right: 16px; width: auto; top: auto; bottom: 20px; transform: translateY(12px); background: rgb(244 240 236 / 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 20px 22px; border-radius: 22px; box-shadow: var(--shadow-lg); }
  .panel.is-on { transform: none; }
  .stage3d::after { display: none; }
  .panel__title { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); }
  .panel__text { font-size: 1.02rem; margin-top: 10px; }
  .worried__track { height: auto; }
  .worried__sticky { position: relative; height: auto; grid-template-columns: 1fr; padding-top: 96px; }
  .worried__stats { margin-top: 0; }
  .tag { font-size: 0.7rem; padding: 5px 10px 5px 7px; }
  .story__layout, .journey__layout, .cta__layout { grid-template-columns: 1fr; }
  .story__media { top: 76px; height: 44svh; z-index: 2; }
  .story__beats .h2 { margin: 32px 0 3vh; }
  .beat { min-height: 30vh; }
  .journey__aside { position: static; }
  .progress { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .open .eyebrow::before { display: none; }
  .cards { grid-template-columns: 1fr; }
  .nav__tag { display: none; }
  .nav .btn { padding: 11px 16px; font-size: 0.88rem; }
  .worry { font-size: 0.78rem; max-width: 150px; padding: 7px 11px 7px 7px; gap: 8px; border-radius: 14px; }
  .worry__icon { width: 28px; height: 28px; border-radius: 9px; }
  .worry__icon svg { width: 15px; height: 15px; }
  .step { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* phones hide the intro lines inside the pinned sections, so they follow underneath */
.phone-note { display: none; }
@media (max-width: 980px) {
  .phone-note[data-for="day__lede"] { display: block; padding-block: 8px 40px; }
}
@media (max-width: 980px) {
  .phone-note[data-for="proof__lede"] { display: block; padding-block: 8px 40px; }
}
