/* ==========================================================================
   Teacher A's House of Learning — Makati
   Design system + page styles
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — sampled from the crest, signage and program flyers */
  --green-900: #0a4f24;
  --green-800: #0d6a30;
  --green-700: #12833c;
  --green-600: #199c49;
  --green-500: #22a64e;
  --green-200: #b9e5c6;
  --green-100: #dff3e4;
  --green-050: #f0faf3;

  --yellow-600: #b47d00;
  --yellow-500: #ffc533;
  --yellow-200: #ffe9b0;
  --yellow-100: #fff4d6;

  --blue-700: #1d6fa0;
  --blue-500: #2e9bd6;
  --blue-200: #bde2f6;
  --blue-100: #dceffa;

  --coral-700: #b83a27;
  --coral-500: #e8543f;
  --coral-200: #f9c9c0;
  --coral-100: #fde4df;

  --cream: #fff8ec;
  --cream-deep: #fdefd8;
  --paper: #ffffff;
  --ink: #16233b;
  --ink-soft: #4a5568;
  --ink-faint: #6b7280;
  --line: #e8ded0;

  /* Semantic */
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --brand: var(--green-700);
  --brand-strong: var(--green-800);
  --accent: var(--coral-500);

  /* Type */
  --font-display: "Fredoka", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.65rem + 2.6vw, 4rem);

  /* Space + shape */
  --sp-1: 0.5rem;
  --sp-2: 0.875rem;
  --sp-3: 1.25rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(22, 35, 59, 0.06);
  --shadow-md: 0 10px 28px -10px rgba(22, 35, 59, 0.22);
  --shadow-lg: 0 26px 60px -22px rgba(22, 35, 59, 0.34);
  --shadow-pop: 0 6px 0 0 var(--green-900);

  --wrap: 1180px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  /* NOTE: never use overflow-x:hidden here — it breaks position:sticky */
  overflow-x: clip;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Class-level `display` otherwise beats the [hidden] attribute and leaks
   hidden panels (toast, game board, quiz Back button) onto the page. */
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  font-weight: 600;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
a { color: var(--green-800); }
ul { margin: 0 0 1em; padding-left: 1.2em; }

/* ---------- Accessibility primitives ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--blue-700);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 999;
  background: var(--green-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@media (forced-colors: active) {
  .btn, .card, .chip { border: 1px solid CanvasText; }
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sp-6); position: relative; }
.section--tight { padding-block: var(--sp-5); }
.stack > * + * { margin-top: var(--sp-3); }
.center { text-align: center; }
.section-head { max-width: 62ch; margin-inline: auto; text-align: center; margin-bottom: var(--sp-5); }
.section-head p { color: var(--text-soft); font-size: var(--step-1); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45em 1.1em;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-2);
}
.eyebrow--blue { background: var(--blue-100); color: #10496b; }
.eyebrow--coral { background: var(--coral-100); color: var(--coral-700); }
.eyebrow--yellow { background: var(--yellow-100); color: #7a5500; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  --btn-shadow: var(--green-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0.75em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 0 0 var(--btn-shadow), var(--shadow-sm);
  transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s var(--ease-out), filter 0.15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--btn-shadow), var(--shadow-md); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--btn-shadow); }
.btn--viber { --btn-bg: #7360f2; --btn-shadow: #4b39c4; }
.btn--coral { --btn-bg: var(--coral-500); --btn-shadow: var(--coral-700); }
.btn--blue { --btn-bg: var(--blue-500); --btn-shadow: var(--blue-700); }
.btn--ghost {
  --btn-bg: var(--paper);
  --btn-fg: var(--green-900);
  --btn-shadow: var(--green-200);
  border: 2px solid var(--green-200);
}
.btn--lg { min-height: 60px; font-size: var(--step-1); padding: 0.8em 2em; }
.btn--sm { min-height: 44px; font-size: var(--step--1); padding: 0.5em 1.1em; }
.btn--block { width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--cream) 96%, transparent); }
.header__inner {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand > span { display: block; }
.brand__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.05; white-space: nowrap; }
.brand__sub { display: block; font-size: 0.71rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-800); font-weight: 800; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  padding: 0.55em 0.6em;
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.nav a:hover { background: var(--green-100); color: var(--green-900); }
.nav a[aria-current="true"] { background: var(--green-100); color: var(--green-900); }

.nav-toggle { display: none; }

.header__cta { display: inline-flex; }

/* The compact band: between the drawer breakpoint and 1180 the nav shrinks and the CTA
   drops the word "free", which is what keeps 9 items and a booking button on one line. */
@media (max-width: 1180px) {
  /* .header__cta IS the .btn — descendant selectors never match here. */
  .header__cta span { display: none; }
  .nav a { font-size: 0.88rem; padding: 0.5em 0.6em; }
}
@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: var(--paper); border: 2px solid var(--green-200);
    border-radius: var(--r-sm); cursor: pointer;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: var(--sp-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 0.9em 1em; border-radius: var(--r-sm); font-size: 1.05rem; }
  .header__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--sp-6) var(--sp-6);
  background:
    radial-gradient(1100px 520px at 82% 8%, var(--yellow-100), transparent 62%),
    radial-gradient(900px 500px at 8% 92%, var(--green-050), transparent 60%),
    var(--cream);
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--sp-5);
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero__lede { font-size: var(--step-1); color: var(--text-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-block: var(--sp-3); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.5em 1em;
  font-size: var(--step--1);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 1.1em; height: 1.1em; color: var(--green-700); flex: none; }

/* Rotating word */
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.35em) rotate(-3deg);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-bounce);
  white-space: nowrap;
}
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span:nth-child(1) { color: var(--coral-500); }
.rotator > span:nth-child(2) { color: var(--blue-500); }
.rotator > span:nth-child(3) { color: var(--green-600); }
.rotator > span:nth-child(4) { color: var(--yellow-600); }

/* ==========================================================================
   Hero — real 3D stage
   Depth comes from actual CSS 3D: one perspective camera, layers at different
   translateZ, and a container rotation. Because the layers really sit at
   different depths, tilting the camera parallaxes them for free — no
   per-layer JS maths. Every layer that is pushed back is scaled by
   (P - z) / P so it keeps its intended on-screen size.
   ========================================================================== */
.hero__art { position: relative; perspective: 1400px; perspective-origin: 52% 42%; }

.stage {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  transform-style: preserve-3d;
  --u: 1cqw;              /* one unit = 1% of stage width, so art scales cleanly */
  /* Resting camera angle. Dead-on (0,0) puts the side wall and roof slope
     exactly edge-on, where they show as stray slivers and the building reads
     flat. A few degrees of yaw is what makes it look like a solid. */
  --rx: 3deg;
  --ry: -9deg;
  --lift: 0px;
}
@supports not (container-type: inline-size) { .stage { --u: 4.4px; } }

.stage__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}

/* ---- sky shell ---- */
.sky {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--u) * 5);
  transform: translateZ(-320px) scale(1.2286);
  background:
    radial-gradient(115% 80% at 76% 6%, #fff8e2 0%, #ffe9b4 16%, #bfe2fa 54%, #e6f4ff 78%),
    linear-gradient(180deg, #dcefff, #fdf6e8);
  box-shadow:
    inset 0 calc(var(--u) * -8) calc(var(--u) * 14) calc(var(--u) * -6) rgba(16, 74, 46, 0.16),
    inset 0 calc(var(--u) * 2) calc(var(--u) * 6) rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
/* faint sunbeam wash — reads as light in the room, not a gradient */
.sky::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 200deg at 78% 8%,
    rgba(255, 214, 120, 0.35), rgba(255, 255, 255, 0) 22%,
    rgba(255, 255, 255, 0) 78%, rgba(255, 214, 120, 0.22));
  mix-blend-mode: screen;
}

/* ---- sun ---- */
.sun {
  position: absolute;
  top: 6%; right: 8%;
  width: calc(var(--u) * 20);
  aspect-ratio: 1;
  transform: translateZ(-240px) scale(1.1714);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff6d2, #ffd25e 46%, #f9b833 74%, #f0a417);
  box-shadow:
    0 0 calc(var(--u) * 6) rgba(255, 197, 51, 0.9),
    0 0 calc(var(--u) * 22) rgba(255, 197, 51, 0.55),
    0 0 calc(var(--u) * 46) rgba(255, 197, 51, 0.28),
    inset 0 calc(var(--u) * -2) calc(var(--u) * 4) rgba(214, 132, 0, 0.35);
}
.sun::after {
  content: "";
  position: absolute;
  inset: calc(var(--u) * -9);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.34), rgba(255, 209, 102, 0) 68%);
  animation: sunPulse 7s ease-in-out infinite;
}
@keyframes sunPulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }

/* ---- clouds ---- */
.cloud {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #eaf4ff);
  box-shadow: 0 calc(var(--u) * 1.6) calc(var(--u) * 4) rgba(70, 120, 160, 0.18),
              inset 0 calc(var(--u) * 1.2) calc(var(--u) * 2) rgba(255, 255, 255, 0.9);
  filter: blur(0.3px);
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud--1 {
  top: 12%; left: -18%;
  width: calc(var(--u) * 26); height: calc(var(--u) * 9);
  transform: translateZ(-280px) scale(1.2);
  animation: drift 46s linear infinite;
}
.cloud--1::before { width: 62%; height: 165%; left: 12%; top: -62%; }
.cloud--1::after { width: 42%; height: 128%; right: 12%; top: -40%; }
.cloud--2 {
  top: 30%; left: -30%;
  width: calc(var(--u) * 18); height: calc(var(--u) * 6.4);
  opacity: .9;
  transform: translateZ(-200px) scale(1.1429);
  animation: drift 64s linear -18s infinite;
}
.cloud--2::before { width: 58%; height: 158%; left: 16%; top: -56%; }
.cloud--2::after { width: 38%; height: 120%; right: 14%; top: -34%; }
@keyframes drift { from { translate: -10cqw 0; } to { translate: 130cqw 0; } }

/* ---- ground: a genuine plane laid down in 3D ---- */
.ground {
  position: absolute;
  left: -34%; right: -34%;
  bottom: 4%;
  height: 74%;
  transform-origin: 50% 100%;
  transform: translateZ(-40px) rotateX(76deg);
  border-radius: 50%;
  background:
    radial-gradient(58% 74% at 50% 44%, #e2f6e7 0%, #c2e8cf 46%, #a8dcbb 72%, rgba(168, 220, 187, 0) 100%);
}
.ground::after {                       /* contact shadow under the house */
  content: "";
  position: absolute;
  left: 32%; top: 34%;
  width: 36%; height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 62, 38, 0.34), rgba(14, 62, 38, 0) 70%);
  filter: blur(calc(var(--u) * 1.4));
}

/* ---- the house: a real box with a real pitched roof ---- */
.house {
  --w: calc(var(--u) * 40);
  --h: calc(var(--u) * 27);
  --d: calc(var(--u) * 16);
  position: absolute;
  left: 27%;
  bottom: 27%;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: translateZ(10px) scale(0.9929);
}
.house__face { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

.house__front {
  width: var(--w); height: var(--h);
  transform: translateZ(calc(var(--d) / 2));
  background: linear-gradient(168deg, #fffaf0 0%, #fdf0d9 52%, #f4e2c4 100%);
  border-radius: calc(var(--u) * 1.4);
  box-shadow:
    inset 0 calc(var(--u) * 1) calc(var(--u) * 2) rgba(255, 255, 255, 0.9),
    inset 0 calc(var(--u) * -2.4) calc(var(--u) * 4) rgba(150, 112, 60, 0.16);
}
/* right wall — rotated about its left edge so it spans z from +d/2 to -d/2 */
.house__side {
  width: var(--d); height: var(--h);
  transform: translateZ(calc(var(--d) / 2)) translateX(var(--w)) rotateY(90deg);
  background: linear-gradient(100deg, #eddcbe, #dcc7a3 70%, #cfb890);
  border-radius: 0 calc(var(--u) * 1.4) calc(var(--u) * 1.4) 0;
}

/* roof: front gable + the right-hand slope */
/* Roof — a flat deck with a coral parapet.
   A pitched gable needs two mirrored slope planes, and composing that mirror
   inside a preserve-3d chain kept landing the plane flat. Every face below
   reuses the one placement pattern already proven by .house__side:
       translateZ(d/2) [translate to the edge] rotate the face into place
   which is exact, so the solid closes properly at any camera angle. */
.house__band {
  --bh: calc(var(--u) * 3.4);            /* parapet height */
  position: absolute;
  top: calc(var(--bh) * -1);
  left: 0;
  transform-origin: 0 0;
}
.house__band--front {
  width: var(--w); height: var(--bh);
  transform: translateZ(calc(var(--d) / 2));
  background: linear-gradient(180deg, #f2705a, #d8492f);
  border-radius: calc(var(--u) * 1) calc(var(--u) * 1) 0 0;
  box-shadow: inset 0 calc(var(--u) * 0.5) 0 rgba(255, 255, 255, 0.35);
}
.house__band--side {
  width: var(--d); height: var(--bh);
  transform: translateZ(calc(var(--d) / 2)) translateX(var(--w)) rotateY(90deg);
  background: linear-gradient(180deg, #d2543c, #ab3a26);
  border-radius: 0 calc(var(--u) * 1) 0 0;
}
/* the deck itself: local +y maps to -z under rotateX(-90deg), so the plane
   lays back from the parapet line and spans the full depth of the building */
.house__deck {
  width: var(--w); height: var(--d);
  transform: translateZ(calc(var(--d) / 2)) rotateX(-90deg);
  background: linear-gradient(160deg, #ffb59f, #e8654a 55%, #c44a32);
  box-shadow: inset 0 0 calc(var(--u) * 3) rgba(120, 40, 26, 0.35);
}
.house__win {
  position: absolute;
  width: calc(var(--u) * 9);
  height: calc(var(--u) * 8);
  border-radius: calc(var(--u) * 1.2);
  top: 34%;
  background: linear-gradient(160deg, #bfe6ff, #6fbde8 60%, #3f9dd0);
  box-shadow:
    inset 0 0 0 calc(var(--u) * 0.7) #fffaf0,
    inset 0 calc(var(--u) * -1.2) calc(var(--u) * 2) rgba(20, 70, 105, 0.4),
    0 calc(var(--u) * 0.6) calc(var(--u) * 1.4) rgba(120, 90, 40, 0.18);
  transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.house__win::before, .house__win::after {
  content: "";
  position: absolute;
  background: #fffaf0;
}
.house__win::before { left: 50%; top: 6%; width: calc(var(--u) * 0.7); height: 88%; transform: translateX(-50%); }
.house__win::after { top: 50%; left: 6%; height: calc(var(--u) * 0.7); width: 88%; transform: translateY(-50%); }
.house__win--l { left: 10%; }
.house__win--r { right: 10%; left: auto; }

/* lights on — fires on hover/tap and on the idle "welcome" pulse */
.stage.is-lit .house__win {
  background: linear-gradient(160deg, #fff3c9, #ffd668 58%, #f7bd3a);
  box-shadow:
    inset 0 0 0 calc(var(--u) * 0.7) #fffaf0,
    inset 0 calc(var(--u) * -1.2) calc(var(--u) * 2) rgba(150, 100, 10, 0.35),
    0 0 calc(var(--u) * 4) rgba(255, 200, 80, 0.85),
    0 0 calc(var(--u) * 12) rgba(255, 200, 80, 0.45);
}

.house__door {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(var(--u) * 9.5);
  height: calc(var(--u) * 10);
  transform: translateX(-50%);
  border-radius: calc(var(--u) * 1.2) calc(var(--u) * 1.2) 0 0;
  background: linear-gradient(170deg, #2fa35a, #12833c 58%, #0a5c2a);
  box-shadow: inset 0 calc(var(--u) * 1) calc(var(--u) * 1.6) rgba(255, 255, 255, 0.22),
              inset 0 calc(var(--u) * -1.6) calc(var(--u) * 2.4) rgba(0, 40, 18, 0.4);
}
.house__door::after {
  content: "";
  position: absolute;
  right: 18%; top: 52%;
  width: calc(var(--u) * 1.1);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe9b0;
  box-shadow: 0 0 calc(var(--u) * 1.4) rgba(255, 233, 176, 0.9);
}

.house__sign {
  position: absolute;
  left: 50%;
  top: calc(var(--u) * 1.6);
  transform: translateX(-50%);
  padding: calc(var(--u) * 0.6) calc(var(--u) * 1.8);
  border-radius: 999px;
  background: linear-gradient(180deg, #17914a, #0b5c2a);
  color: #fff;
  font-family: var(--font-display);
  font-size: calc(var(--u) * 2.5);
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 calc(var(--u) * 0.8) calc(var(--u) * 1.6) rgba(10, 60, 30, 0.4),
              inset 0 calc(var(--u) * 0.5) 0 rgba(255, 255, 255, 0.25);
}

/* ---- the 3D crest, sitting on the roof deck ----
   Centred on the house front (which spans 24.9-65.4%) and dropped just far
   enough that its base tucks behind the coral roofline instead of floating. */
.crest {
  position: absolute;
  left: 40.3%;
  bottom: 65.5%;
  width: calc(var(--u) * 14);
  height: auto;
  transform: translateZ(30px) scale(0.9786);
  filter: drop-shadow(0 calc(var(--u) * 0.9) calc(var(--u) * 1.3) rgba(18, 58, 38, 0.34));
}

/* ---- tree ---- */
.tree {
  position: absolute;
  right: 8%;
  bottom: 26%;
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 30);
  transform: translateZ(70px) scale(0.95);
  animation: sway 9s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.tree__trunk {
  position: absolute;
  left: 50%; bottom: 0;
  width: calc(var(--u) * 3.2);
  height: 42%;
  transform: translateX(-50%);
  border-radius: calc(var(--u) * 1.6);
  background: linear-gradient(90deg, #8a5a2f, #b87c45 45%, #7a4d27);
}
.tree__leaf {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset calc(var(--u) * -1.4) calc(var(--u) * -2) calc(var(--u) * 3) rgba(6, 60, 28, 0.35),
              inset calc(var(--u) * 1.2) calc(var(--u) * 1.4) calc(var(--u) * 2) rgba(255, 255, 255, 0.28);
}
.tree__leaf--a { width: 74%; height: 54%; left: 13%; top: 2%; background: radial-gradient(circle at 34% 28%, #63c47f, #2f9b50 62%, #1d7a3c); }
.tree__leaf--b { width: 54%; height: 40%; left: -2%; top: 24%; background: radial-gradient(circle at 36% 30%, #6ecf8a, #38a95c 66%, #227f42); }
.tree__leaf--c { width: 52%; height: 38%; right: -2%; top: 26%; background: radial-gradient(circle at 32% 28%, #57bd74, #2b9350 64%, #1a7038); }
@keyframes sway { 0%, 100% { transform: translateZ(70px) scale(0.95) rotate(-1.4deg); } 50% { transform: translateZ(70px) scale(0.95) rotate(1.4deg); } }

/* ---- true 3D letter cubes ----
   Face depth is derived from --cube in CSS, so there is no JS measuring step
   and therefore no getBoundingClientRect trap: the value cannot drift as the
   cube spins, and it is correct even when motion is switched off. */
.cube {
  --cube: calc(var(--u) * 9);
  position: absolute;
  width: var(--cube);
  height: var(--cube);
  transform-style: preserve-3d;
}
/* The spin lives on its own wrapper. Putting it on .cube alongside the
   positioning translateZ would compose as rotate-after-translate, swinging the
   cube in an orbit around the stage instead of turning it on the spot. */
.cube__spin {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: tumble 18s linear infinite;
}
.cube__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: calc(var(--cube) * 0.58);
  color: #fff;
  border-radius: calc(var(--u) * 1.1);
  background: var(--c, #ffc533);
  box-shadow:
    inset 0 0 0 calc(var(--u) * 0.35) rgba(255, 255, 255, 0.55),
    inset 0 calc(var(--u) * -1.4) calc(var(--u) * 2) rgba(0, 0, 0, 0.18);
  backface-visibility: visible;
}
.cube__face:nth-child(1) { transform: translateZ(calc(var(--cube) / 2)); }
.cube__face:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--cube) / 2)); filter: brightness(.9); }
.cube__face:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--cube) / 2)); filter: brightness(.82); }
.cube__face:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2)); filter: brightness(.86); }
.cube__face:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--cube) / 2)); filter: brightness(1.08); }
.cube__face:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2)); filter: brightness(.7); }

.cube--a { --c: #ffc533; left: 6%;  bottom: 40%; transform: translateZ(190px) scale(0.8643); }
.cube--b { --c: #2e9bd6; left: 15%; bottom: 22%; transform: translateZ(230px) scale(0.8357); }
.cube--c { --c: #e8543f; left: 2%;  bottom: 20%; transform: translateZ(150px) scale(0.8929); }
.cube--a .cube__spin { animation-duration: 20s; }
.cube--b .cube__spin { animation-duration: 26s; animation-direction: reverse; }
.cube--c .cube__spin { animation-duration: 23s; }
@keyframes tumble {
  from { transform: rotate3d(1, 1, 0.2, 0deg); }
  to   { transform: rotate3d(1, 1, 0.2, 360deg); }
}

/* ---- children reading, nearest layer ---- */
/* NB: must NOT be called .kids — that class already styles the kids-zone
   section, and the absolute positioning here hijacked the whole section. */
.readers {
  position: absolute;
  left: 31%;
  bottom: 13%;
  width: calc(var(--u) * 30);
  transform: translateZ(120px) scale(0.9143);
  filter: drop-shadow(0 calc(var(--u) * 1.4) calc(var(--u) * 1.6) rgba(20, 60, 40, 0.25));
  animation: bob 6.5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--u) * -1.1); } }

/* ---- mascot, standing on the lawn beside the children ----
   right:27% is measured, not eyeballed. The house front ends at 65.9% and the
   tree canopy starts at 69.0%, so there is no gap between them wide enough to
   stand in — she is either in front of the house or in front of the tree. This
   places her ink at 52.8-64.3%: tree fully clear, right beside the children
   (their ink ends at 50.9%), with the house's right window behind her.
   Sits at z=110: in front of the house (10), just behind the children (120),
   which is also why she stands a little higher on the ground plane. scale is
   the perspective compensation for this stage: (1400 - z) / 1400. */
.mascot {
  position: absolute;
  right: 27%;
  bottom: 13%;
  width: calc(var(--u) * 23);
  transform: translateZ(110px) scale(0.9214);
  filter: drop-shadow(0 calc(var(--u) * 1.6) calc(var(--u) * 1.8) rgba(20, 60, 40, 0.28));
  animation: bob 7.4s ease-in-out 0.7s infinite;
}
/* transform-box: view-box so the origin is read in viewBox units, not the
   rendered pixel box — otherwise the pivot drifts as the stage resizes. */
.mascot__point {
  transform-box: view-box;
  transform-origin: 62px 168px;
  animation: point 5.2s ease-in-out infinite;
}
@keyframes point {
  0%, 68%, 100% { rotate: 0deg; }
  78% { rotate: -9deg; }
  88% { rotate: 3deg; }
}

/* ---- glass caption plate ---- */
.stage__plate {
  position: absolute;
  left: 50%;
  bottom: 1%;
  /* Absolutely positioned at left:50%, the shrink-to-fit box can only be half
     the stage wide — with nowrap the text just spilled straight out of the
     pill. `width: max-content` sizes the pill to the text instead; the
     max-width is the safety net, and without nowrap it wraps inside the pill
     rather than escaping it if it ever hits that cap. */
  width: max-content;
  max-width: calc(var(--u) * 92);
  transform: translateX(-50%) translateZ(200px) scale(0.8571);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.6);
  padding: calc(var(--u) * 1.5) calc(var(--u) * 3);
  border-radius: calc(var(--u) * 6);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 calc(var(--u) * 2) calc(var(--u) * 5) rgba(20, 60, 40, 0.2);
}
.stage__plate img { flex: none; }
.stage__plate > span { min-width: 0; }
.stage__plate img { width: calc(var(--u) * 5); height: calc(var(--u) * 5); border-radius: 50%; }
.stage__plate strong { font-family: var(--font-display); font-size: calc(var(--u) * 2.9); line-height: 1.1; display: block; }
.stage__plate span { font-size: calc(var(--u) * 2.2); color: var(--text-soft); }

/* ---- hint ---- */
.stage__hint {
  position: absolute;
  right: calc(var(--u) * 2);
  top: calc(var(--u) * 2);
  transform: translateZ(210px) scale(0.85);
  font-size: calc(var(--u) * 2.1);
  font-weight: 800;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  padding: calc(var(--u) * 0.7) calc(var(--u) * 1.8);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.stage:hover .stage__hint { opacity: 1; }

@media (max-width: 900px) {
  .hero__art { perspective: 1000px; }
  .stage__hint { display: none; }
  /* Pull the blocks back and inward — at full depth the perspective throws them
     past the left edge of a phone screen and they get clipped. */
  .cube { --cube: calc(var(--u) * 10); }
  .cube--a { left: 9%;  transform: translateZ(80px) scale(0.92); }
  .cube--b { left: 17%; transform: translateZ(100px) scale(0.9); }
  .cube--c { left: 4%;  transform: translateZ(60px) scale(0.94); }
}

/* Motion off: keep the full 3D composition, just stop everything moving. The
   geometry above is pure CSS, so the scene is still correctly built here. */
@media (prefers-reduced-motion: reduce) {
  .cloud--1, .cloud--2, .tree, .readers, .mascot, .mascot__point, .sun::after { animation: none; }
  .cube__spin { animation: none; }
  .cube--a .cube__spin { transform: rotateX(-18deg) rotateY(28deg); }
  .cube--b .cube__spin { transform: rotateX(14deg) rotateY(-24deg); }
  .cube--c .cube__spin { transform: rotateX(-10deg) rotateY(38deg); }
  .cloud--1 { translate: 22cqw 0; }
  .cloud--2 { translate: 66cqw 0; }
}

@media (max-width: 900px) {
  .hero { padding-block: var(--sp-4) var(--sp-5); }
  .hero__grid { grid-template-columns: 1fr; }
  /* Copy stays first on small screens: the headline and the Viber button are
     what convert, so they must not be pushed below the fold by the artwork.
     `width:100%` is load-bearing: margin-inline:auto makes this grid item size
     to its content, and the stage inside is width:100% — without an explicit
     basis the two resolve against each other and both collapse to zero. */
  .hero__art { width: 100%; max-width: 460px; margin-inline: auto; }
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--green-800);
  color: #fff;
  padding-block: var(--sp-4);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  text-align: center;
}
.trust__num { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; display: block; color: var(--yellow-500); }
.trust__lbl { font-size: var(--step--1); opacity: 0.92; font-weight: 700; }
@media (max-width: 720px) { .trust__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-2); } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

/* ---------- Program Finder ---------- */
.finder {
  background: linear-gradient(180deg, var(--blue-100), var(--cream) 70%);
}
.finder__panel {
  max-width: 860px;
  margin-inline: auto;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  border: 1px solid var(--line);
}
.finder__progress {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: var(--sp-3);
}
.finder__bar { flex: 1; height: 10px; background: var(--green-100); border-radius: var(--r-pill); overflow: hidden; }
.finder__bar i { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--green-500), var(--green-700)); border-radius: inherit; transition: width 0.45s var(--ease-out); }
.finder__count { font-size: var(--step--1); font-weight: 800; color: var(--green-800); white-space: nowrap; }

.step { display: none; }
.step.is-active { display: block; animation: stepIn 0.4s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step legend, .step__q { font-family: var(--font-display); font-size: var(--step-2); margin-bottom: 0.2em; padding: 0; }
.step__hint { color: var(--text-soft); margin-bottom: var(--sp-3); }

.opts { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border: 0; padding: 0; margin: 0; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.1rem;
  min-height: 68px;
  background: var(--green-050);
  border: 2px solid var(--green-100);
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 700;
  transition: border-color 0.18s, background 0.18s, transform 0.15s var(--ease-bounce);
}
.opt label:hover { border-color: var(--green-500); transform: translateY(-2px); }
.opt input:focus-visible + label { outline: 3px solid var(--blue-700); outline-offset: 3px; }
.opt input:checked + label { background: var(--green-100); border-color: var(--green-700); box-shadow: inset 0 0 0 1px var(--green-700); }
.opt .emoji { font-size: 1.6rem; line-height: 1; flex: none; }
.opt small { display: block; font-weight: 600; color: var(--text-soft); font-size: 0.8rem; }

.finder__nav { display: flex; gap: 0.7rem; margin-top: var(--sp-4); flex-wrap: wrap; }

.result { display: none; }
.result.is-active { display: block; animation: stepIn 0.5s var(--ease-out); }
.result__head { display: flex; align-items: center; gap: 1rem; margin-bottom: var(--sp-3); flex-wrap: wrap; }
.result__head img { width: 92px; height: 92px; border-radius: 50%; flex: none; }
.result__pill { background: var(--yellow-100); color: #7a5500; font-weight: 800; padding: 0.3em 0.9em; border-radius: var(--r-pill); font-size: var(--step--1); display: inline-block; }
.result__why { background: var(--green-050); border-left: 5px solid var(--green-500); border-radius: var(--r-sm); padding: 1rem 1.2rem; }
.result__why ul { margin: 0.4em 0 0; }
.result__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block: var(--sp-3); }

/* ---------- Programs ---------- */
.programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-3);
}
.prog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  display: flex; flex-direction: column;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.prog::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--tint, var(--green-500));
}
.prog:hover, .prog:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--tint, var(--green-500)); }
.prog__img { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto var(--sp-2); box-shadow: var(--shadow-md); }
.prog h3 { margin-bottom: 0.25em; }
.prog__age { font-size: var(--step--1); font-weight: 800; color: var(--green-800); background: var(--green-100); display: inline-block; padding: 0.25em 0.85em; border-radius: var(--r-pill); margin-bottom: 0.7em; }
.prog p { color: var(--text-soft); font-size: 0.96rem; }
.prog__list { text-align: left; font-size: 0.92rem; padding-left: 1.1em; color: var(--text-soft); }
.prog__list li { margin-bottom: 0.25em; }
.prog__foot { margin-top: auto; padding-top: var(--sp-2); border-top: 1px dashed var(--line); }
.prog__rate { font-family: var(--font-display); font-size: var(--step-1); color: var(--green-900); }
.prog__rate small { font-family: var(--font-body); font-size: 0.78rem; color: var(--text-soft); font-weight: 700; }

/* ---------- Calculator ---------- */
.calc { background: linear-gradient(180deg, var(--cream), var(--green-050)); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--sp-4); align-items: start; }
@media (max-width: 900px) { .calc__grid { grid-template-columns: 1fr; } }

.field { margin-bottom: var(--sp-3); }
.field > label, .field > .field__label { display: block; font-family: var(--font-display); font-size: var(--step-1); margin-bottom: 0.4em; }
.field__hint { font-size: var(--step--1); color: var(--text-soft); margin-bottom: 0.6em; }

.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; }
.seg .opt label { min-height: 52px; padding: 0.6rem 1rem; justify-content: center; }

.chk-grid { display: grid; gap: 0.55rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 0; padding: 0; margin: 0; }
.chk { position: relative; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk label {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 56px; padding: 0.7rem 1rem;
  background: var(--paper); border: 2px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; font-weight: 700;
  transition: border-color 0.18s, background 0.18s;
}
.chk label::before {
  content: ""; width: 24px; height: 24px; flex: none;
  border: 2px solid var(--green-500); border-radius: 7px; background: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.chk input:checked + label { border-color: var(--green-700); background: var(--green-050); }
.chk input:checked + label::before {
  background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/16px no-repeat;
  border-color: var(--green-700);
}
.chk input:focus-visible + label { outline: 3px solid var(--blue-700); outline-offset: 3px; }
.chk small { font-weight: 600; color: var(--text-soft); font-size: 0.8rem; display: block; }

.quote {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--green-900);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  box-shadow: var(--shadow-lg);
}
.quote h3 { color: #fff; margin-bottom: 0.2em; }
.quote__pkg { display: inline-block; background: var(--yellow-500); color: #4a3200; font-weight: 800; padding: 0.3em 1em; border-radius: var(--r-pill); font-size: var(--step--1); margin-bottom: var(--sp-2); }
.quote__total { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: var(--yellow-500); }
.quote__per { font-size: var(--step--1); opacity: 0.9; margin-bottom: var(--sp-3); }
.quote__rows { list-style: none; margin: 0 0 var(--sp-3); padding: 0; font-size: 0.95rem; }
.quote__rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
.quote__rows li span:last-child { font-weight: 800; text-align: right; }
.quote__save { background: rgba(255,255,255,0.12); border-radius: var(--r-md); padding: 0.8rem 1rem; font-size: 0.92rem; margin-bottom: var(--sp-3); }
.quote__save strong { color: var(--yellow-500); }
.quote small { display: block; opacity: 0.8; font-size: 0.78rem; margin-top: var(--sp-2); }
@media (max-width: 900px) { .quote { position: static; } }

/* ---------- Packages table ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }
table.pkg { border-collapse: collapse; width: 100%; min-width: 660px; }
table.pkg th, table.pkg td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; }
table.pkg thead th { background: var(--green-800); color: #fff; font-family: var(--font-display); font-weight: 600; border-bottom: 0; }
table.pkg tbody tr:nth-child(even) { background: var(--green-050); }
table.pkg tbody tr:last-child td { border-bottom: 0; }
table.pkg .pkg__name { font-family: var(--font-display); font-size: var(--step-1); color: var(--green-900); }
table.pkg ul { margin: 0.3em 0 0; padding-left: 1.1em; font-size: 0.88rem; color: var(--text-soft); }
.caption-note { font-size: var(--step--1); color: var(--text-soft); margin-top: var(--sp-2); }

/* ---------- Kids zone ---------- */
.kids {
  background:
    radial-gradient(700px 340px at 12% 12%, var(--coral-100), transparent 60%),
    radial-gradient(700px 340px at 88% 88%, var(--blue-100), transparent 60%),
    var(--cream-deep);
}
.game {
  max-width: 880px; margin-inline: auto;
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 0.9rem + 1.8vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--yellow-200);
}
.game__hud { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.game__stars { font-size: 1.6rem; letter-spacing: 0.15em; }
.game__prompt {
  text-align: center; font-family: var(--font-display);
  font-size: var(--step-2); margin-bottom: var(--sp-3);
  min-height: 2.4em; display: grid; place-items: center;
}
.game__board { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.8rem; }
.tile {
  aspect-ratio: 1;
  min-height: 108px;
  display: grid; place-items: center;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  background: var(--green-050);
  border: 3px solid var(--green-200);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.18s var(--ease-bounce), background 0.2s, border-color 0.2s;
  font-family: var(--font-display);
}
.tile:hover:not(:disabled) { transform: translateY(-4px) scale(1.03); border-color: var(--green-500); }
.tile:disabled { cursor: default; }
.tile.is-right { background: var(--green-100); border-color: var(--green-600); animation: pop 0.4s var(--ease-bounce); }
.tile.is-wrong { background: var(--coral-100); border-color: var(--coral-500); animation: shake 0.4s; }
.tile.is-done { opacity: 0.35; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

.game__intro {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-3); text-align: left; flex-wrap: wrap;
}
.game__intro > div { max-width: 40ch; }
.game__intro h3 { margin-bottom: 0.25em; }
.game__intro p { color: var(--text-soft); }
.game__host {
  width: clamp(96px, 18vw, 140px); height: auto;
  border-radius: var(--r-lg);
  border: 4px solid var(--yellow-200);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  animation: nod 4.5s ease-in-out infinite;
}
@keyframes nod { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-6px); } }
@media (max-width: 560px) { .game__intro { text-align: center; } .game__intro > div { max-width: none; } }

.game__done { text-align: center; padding: var(--sp-3) 0; }
.game__done .big { font-size: clamp(3rem, 9vw, 5rem); line-height: 1; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i {
  position: absolute; top: -12vh; width: 11px; height: 16px; border-radius: 2px;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(115vh) rotate(720deg); opacity: 0.9; } }

/* ---------- Gallery ---------- */
/* Two columns: the tall family photo on the left, the two letterbox photos
   stacked on the right. 269/717 x2 + one gap ≈ the family photo's own height,
   so the row lines up. Forcing 4/3 on the letterbox shots used to show only
   50% of their width — it cropped the outer teachers straight out of frame. */
.gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.gallery__item {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  box-shadow: var(--shadow-md); display: block;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.gallery__item:not(.gallery__item--wide) img { aspect-ratio: 717 / 269; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(10, 30, 20, 0.85));
  color: #fff; padding: 2rem 1rem 0.9rem; font-weight: 700; font-size: 0.92rem; text-align: left;
}
.gallery__item--wide { grid-row: span 2; }
.gallery__item--wide img { aspect-ratio: 817 / 633; }
@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-row: auto; }
}

/* ---- Viber fallback sheet ---- */
dialog.vfb {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(92vw, 380px);
  color: var(--text);
}
dialog.vfb::backdrop { background: rgba(10, 20, 16, 0.72); backdrop-filter: blur(3px); }
.vfb__inner {
  display: grid;
  gap: 0.65rem;
  padding: var(--sp-3);
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.vfb__inner h3 { font-family: var(--font-display); font-size: var(--step-1); }
.vfb__inner p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 0.25rem; }
.vfb__close {
  margin-top: 0.2rem;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--r-pill);
}
.vfb__close:hover { color: var(--text); }

dialog.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: min(94vw, 1100px); max-height: 94vh;
}
dialog.lightbox::backdrop { background: rgba(10, 20, 16, 0.86); backdrop-filter: blur(4px); }
.lightbox__inner { position: relative; }
.lightbox img { border-radius: var(--r-md); width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: #000; }
.lightbox__cap { color: #fff; text-align: center; padding-top: 0.8rem; font-weight: 700; }
.lightbox__close {
  position: absolute; top: -14px; right: -14px;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 0; cursor: pointer;
  font-size: 1.4rem; line-height: 1; box-shadow: var(--shadow-md);
}

/* ---------- About / why ---------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--sp-5); align-items: center; }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } }
.why__media { position: relative; }
.why__media img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.why__mascot {
  position: absolute; right: -8px; bottom: -22px;
  width: clamp(100px, 22%, 160px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--paper);
  background: var(--paper);
}
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-list .ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: var(--green-100);
}
.feature-list strong { display: block; font-family: var(--font-display); font-size: var(--step-1); }
.feature-list p { margin: 0; color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Team ---------- */
.team { background:
    radial-gradient(900px 420px at 12% 0%, var(--blue-100) 0%, transparent 62%),
    radial-gradient(760px 400px at 92% 18%, var(--yellow-100) 0%, transparent 60%),
    var(--cream); }

.team__hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 262px;
  gap: var(--sp-4); align-items: end;
  background: linear-gradient(150deg, var(--green-900) 0%, var(--green-800) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 1rem + 2.4vw, 3.2rem);
  padding-bottom: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}
.team__hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(420px 220px at 88% 8%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(300px 200px at 4% 96%, rgba(255,255,255,.10), transparent 70%);
  pointer-events: none;
}
.team__hero-copy { position: relative; padding-bottom: clamp(1.6rem, 1rem + 2.4vw, 3.2rem); }
.team__hero .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.team__hero h2 { color: #fff; margin-bottom: .5em; }
.team__hero p { color: #fff; max-width: 60ch; }
.team__hero strong { color: var(--yellow-500); }

.team__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-3);
}
.team__stat {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--r-md); padding: .85rem 1rem;
}
.team__stat strong {
  display: block; font-family: var(--font-display);
  font-size: var(--step-2); line-height: 1.1; color: var(--yellow-500);
}
.team__stat span { font-size: .9rem; color: #fff; line-height: 1.35; display: block; margin-top: .15em; }

.team__hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.team__hero-actions .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.team__hero-actions .btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.team__faces {
  position: relative; z-index: 1;
  list-style: none; margin: 0; padding: 0 0 clamp(1.6rem, 1rem + 2.4vw, 3.2rem);
  align-self: center;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem .8rem;
}
.team__faces li { text-align: center; }
.team__faces img {
  display: block; width: 100%; max-width: 104px; margin: 0 auto .4rem;
  aspect-ratio: 1; object-fit: cover; object-position: 50% 8%;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.45);
  background: var(--blue-200);
}
.team__faces span {
  display: block; font-family: var(--font-display); font-size: .92rem;
  color: #fff; line-height: 1.2;
}
@media (max-width: 860px) {
  .team__hero { grid-template-columns: 1fr; padding-bottom: clamp(1.6rem, 1rem + 2.4vw, 3.2rem); }
  .team__hero-copy { padding-bottom: 0; }
  .team__faces { grid-template-columns: repeat(4, 1fr); padding-bottom: 0; margin-top: var(--sp-2); }
  .team__faces img { max-width: 84px; }
}

.team__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: var(--sp-3);
}
.tcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s;
}
.tcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-200); }
@media (prefers-reduced-motion: reduce) { .tcard:hover { transform: none; } }

.tcard__photo { position: relative; background: var(--blue-100); }
.tcard__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.tcard__photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 34%;
  background: linear-gradient(to top, var(--surface) 12%, transparent 100%);
  pointer-events: none;
}
.tcard__body { padding: 0 1.1rem 1.1rem; margin-top: -1.6rem; position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.tcard__name { font-size: var(--step-1); margin: 0 0 .1em; }
.tcard__role {
  display: inline-block; align-self: flex-start;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  background: var(--green-100); color: var(--green-900);
  padding: .28em .7em; border-radius: var(--r-pill); margin: 0 0 .8rem;
}
.tcard__quote {
  margin: 0 0 .9rem; padding: 0 0 0 .85rem;
  border-left: 4px solid var(--yellow-500);
  font-family: var(--font-display); font-size: 1.02rem; line-height: 1.4;
  color: var(--text);
}
.tcard__more { margin-top: auto; border-top: 1px dashed var(--line); padding-top: .7rem; }
.tcard__more summary {
  cursor: pointer; list-style: none;
  font-weight: 800; font-size: .92rem; color: var(--green-800);
  padding: .35rem 0; display: flex; align-items: center; gap: .4rem; min-height: 24px;
}
.tcard__more summary::-webkit-details-marker { display: none; }
.tcard__more summary::after { content: "▾"; transition: transform .2s var(--ease-out); }
.tcard__more[open] summary::after { transform: rotate(180deg); }
.tcard__more summary:hover { color: var(--green-600); }
.tcard__more-body { padding-top: .3rem; }
.tcard__more-body p { font-size: .92rem; color: var(--text-soft); margin-bottom: .8rem; }
.tcard__more-body p:last-child { margin-bottom: .3rem; }
.tlabel {
  display: block; font-family: var(--font-display); font-size: .74rem;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .18em;
}
.tlabel--blue { color: var(--blue-700); }
.tlabel--purple { color: #6b3fa0; }

.team__note { text-align: center; margin: var(--sp-4) 0 0; color: var(--text-soft); }

/* ---------- Parent voices ---------- */
.voices { background: var(--green-050); }
.voices__grid {
  list-style: none; padding: 0; margin: 0;
  columns: 3 300px; column-gap: var(--sp-3);
}
.voice {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.3rem 1.2rem;
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.voice::before {
  content: "\201C";
  position: absolute; top: -.15em; left: .55rem;
  font-family: var(--font-display); font-size: 4.2rem; line-height: 1;
  color: var(--green-200);
}
.voice__q { position: relative; margin: 0 0 1rem; color: var(--text); line-height: 1.65; }
.voice__by { margin: 0; padding-top: .8rem; border-top: 1px dashed var(--line); }
.voice__by strong { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--green-900); }
.voice__by span { display: block; font-size: .86rem; color: var(--text-soft); }

.voices__cta { text-align: center; margin-top: var(--sp-2); }
.voices__cta p { color: var(--text-soft); margin-bottom: .9rem; }

@media (max-width: 640px) { .voices__grid { columns: 1; } }

/* ---------- FAQ ---------- */
.faq-tools { max-width: 820px; margin: 0 auto var(--sp-3); }
.faq-search { position: relative; display: flex; align-items: center; }
.faq-search__ico { position: absolute; left: 1rem; font-size: 1.05rem; pointer-events: none; }
.faq-search input {
  width: 100%; font: inherit; font-size: var(--step-0);
  padding: .85rem 5.2rem .85rem 2.9rem;
  border: 2px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.faq-search input::-webkit-search-cancel-button { display: none; }
.faq-search input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); }
.faq-search__clear {
  position: absolute; right: .5rem;
  font: inherit; font-size: .85rem; font-weight: 800;
  border: 0; background: var(--green-100); color: var(--green-900);
  padding: .45rem .9rem; border-radius: var(--r-pill); cursor: pointer; min-height: 24px;
}
.faq-search__clear:hover { background: var(--green-200); }

.faq-cats { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.faq-cat {
  font: inherit; font-size: .88rem; font-weight: 700;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text-soft);
  padding: .42rem .9rem; border-radius: var(--r-pill); cursor: pointer; min-height: 28px;
  transition: background .18s, color .18s, border-color .18s;
}
.faq-cat:hover { border-color: var(--green-500); color: var(--green-800); }
.faq-cat.is-on { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.faq-count { margin: .8rem 0 0; font-size: .88rem; color: var(--text-soft); min-height: 1.2em; }
.faq details[hidden] { display: none; }
.faq mark { background: var(--yellow-200); color: inherit; border-radius: 3px; padding: 0 .12em; }

.faq-empty {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 2px dashed var(--green-200);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-3);
}
.faq-empty p { margin-bottom: .5rem; color: var(--text-soft); }
.faq-empty .btn { margin: .6rem .3rem 0; }
.faq-foot { max-width: 820px; margin: var(--sp-3) auto 0; text-align: center; color: var(--text-soft); font-size: .95rem; }
.faq-foot a { display: inline-block; padding-block: 3px; }


.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: var(--green-500); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-family: var(--font-display); font-size: var(--step-1);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-100); color: var(--green-900);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  transition: transform 0.25s var(--ease-out), background 0.2s;
}
.faq details[open] summary::after { content: "−"; background: var(--green-600); color: #fff; }
.faq summary:hover { background: var(--green-050); }
.faq__body { padding: 0 1.2rem 1.2rem; color: var(--text-soft); }
.faq__body > :last-child { margin-bottom: 0; }

/* ---------- Visit ---------- */
.visit__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-4); align-items: start; }
@media (max-width: 900px) { .visit__grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0 0 var(--sp-3); display: grid; gap: var(--sp-2); }
.info-list li { display: flex; gap: 0.9rem; }
.info-list .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--coral-100); display: grid; place-items: center; }
.info-list strong { font-family: var(--font-display); display: block; font-size: 1.05rem; }
.info-list span { color: var(--text-soft); }
/* WCAG 2.5.8 — keep tappable links at least 24px tall */
.info-list a { display: inline-block; padding-block: 3px; line-height: 1.5; }

.map-embed {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--green-050);
  aspect-ratio: 4/3; min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center; gap: 0.8rem;
  text-align: center; padding: var(--sp-3);
  background-size: cover; background-position: center;
}
.map-placeholder p { max-width: 34ch; color: var(--text-soft); margin: 0; font-size: 0.92rem; }

/* ---------- Lead form ---------- */
.book { background: var(--green-900); color: #fff; }
.book h2, .book h3 { color: #fff; }
.book__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--sp-5); align-items: start; }
@media (max-width: 900px) { .book__grid { grid-template-columns: 1fr; } }
.book__lede { color: rgba(255,255,255,0.86); font-size: var(--step-1); }
.book__ways { display: grid; gap: 0.7rem; margin-top: var(--sp-3); }
.way {
  display: flex; align-items: center; gap: 0.9rem;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-md); padding: 0.9rem 1.1rem;
  color: #fff; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.way:hover { background: rgba(255,255,255,0.16); transform: translateX(3px); }
.way .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.16); display: grid; place-items: center; flex: none; }
.way strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.way span { font-size: 0.86rem; opacity: 0.85; }

.form-card { background: var(--paper); color: var(--ink); border-radius: var(--r-xl); padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: var(--sp-2); }
.form-field label { display: block; font-weight: 800; margin-bottom: 0.35em; font-size: 0.95rem; }
.form-field .req { color: var(--coral-700); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 52px;
  padding: 0.7rem 0.9rem;
  background: var(--green-050);
  border: 2px solid var(--green-100);
  border-radius: var(--r-md);
  transition: border-color 0.18s, background 0.18s;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--green-200); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { background: #fff; border-color: var(--green-600); }
.form-field .help { font-size: 0.82rem; color: var(--text-soft); margin-top: 0.3em; }
.form-field.has-error input, .form-field.has-error select { border-color: var(--coral-500); background: var(--coral-100); }
.err { color: var(--coral-700); font-size: 0.85rem; font-weight: 700; margin-top: 0.3em; display: none; }
.form-field.has-error .err { display: block; }
.form-note { font-size: 0.82rem; color: var(--text-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.82); padding-block: var(--sp-5) var(--sp-3); }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: var(--sp-2); }
.footer__brand img { width: 54px; height: 54px; border-radius: 50%; }
.footer h4 { font-family: var(--font-display); color: #fff; font-size: 1.05rem; margin-bottom: 0.7em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; font-size: 0.94rem; }
.footer a { display: inline-block; padding-block: 3px; line-height: 1.5; }
.footer__bottom {
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ---------- Sticky mobile action bar ---------- */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  display: none;
  gap: 0.6rem; padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -14px rgba(22,35,59,0.4);
}
.dock .btn { flex: 1; min-height: 50px; }
/* Must match the header drawer breakpoint — otherwise there is a band of widths
   with no visible booking CTA at all.
   2026-08-18: a 9th item ("Parents") pushed the CTA off-screen. Fixed by shortening three
   labels, tightening nav padding/gap, AND nudging this 1040 -> 1100: even compacted, nine
   items plus the button need ~1080px, and 1101 left exactly 0px of slack. Measured, not guessed. MUST match the drawer breakpoint. */
@media (max-width: 1120px) {
  .dock { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Scroll progress + reveal ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--green-500), var(--yellow-500), var(--coral-500));
  z-index: 80; transition: width 0.1s linear;
}
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Decorative wave dividers ---------- */
.wave { display: block; width: 100%; height: auto; }
.wave--flip { transform: rotate(180deg); }

/* ---------- Thank-you page ---------- */
.thanks {
  min-height: 70vh;
  display: grid;
  /* Without an explicit minmax(0,1fr) track the column sizes to max-content and
     the heading spills past the wrap, clipped by overflow-x:clip. Capping the
     child does not help — the track itself has to be constrained. */
  grid-template-columns: minmax(0, 1fr);
  place-content: center;
  justify-items: center;
  text-align: center;
}
.thanks > * { max-width: 100%; min-width: 0; }
.thanks h1 { overflow-wrap: break-word; }
.thanks .big { font-size: clamp(3.5rem, 12vw, 6rem); line-height: 1; margin: 0 0 0.2em; }

/* ---------- Print ---------- */
@media print {
  .header, .dock, .progress-bar, .game, .finder, .kids { display: none !important; }
  body { background: #fff; }
}
