/* ==========================================================================
   Wonderkidz Preschool - Landing page
   Built from "Wonderkidz Home.pdf" (1440px artboard)
   ========================================================================== */

/* Brand fonts, self-hosted (Baloo 2 and Nunito, SIL Open Font License). Variable fonts: one file covers every weight. */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/fonts/baloo2-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/fonts/baloo2-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --blue: #4C68B1;
  --blue-dark: #344980;
  --yellow: #FFC324;
  --yellow-soft: #FFD34D;
  --cream: #FFFCED;
  --butter: #FCECA9;
  --orange: #DD6824;
  --ink: #1F1F1F;
  --text: #55554F;
  --link: #2F4FD8;
  --line: #CFCFCB;
  --field: #85857F;
  --chip-line: #FFF4D6;
  --placeholder: #E4E4E1;
  --footer-text: #E9E9E6;

  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  /* Type scale: Major Third (1.25) on a 16px base */
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 25px;
  --fs-2xl: 31px;
  --fs-3xl: 39px;
  --fs-4xl: 49px;
  --fs-5xl: 61px;

  /* 8pt spacing grid (4px half-step) */
  --space-half: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 1440px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.container {
  width: 1200px;
  margin: 0 auto;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 31, 31, .12); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn--outline-dark { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--block { width: 100%; }

.link {
  display: inline-block;
  color: var(--link);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 20px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 60px;
  color: var(--blue);
  text-align: center;
}
.section-title--yellow { color: var(--yellow); }
.section-title--dark { color: var(--ink); }

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--placeholder);
  border: 1px dashed var(--field);
  border-radius: 16px;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* ---------- Top bar ---------- */
.topbar {
  height: 44px;
  background: var(--blue);
  color: #fff;
  font-size: var(--fs-sm);
  line-height: 44px;
}
.topbar__inner { display: flex; justify-content: space-between; }
.topbar__tagline { font-weight: 700; }

/* ---------- Header ---------- */
/* The header stays pinned to the top while scrolling; a soft shadow appears once the page has moved */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 96px;
  background: #fff;
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 20px rgba(31, 31, 31, .08); }
.header__inner { position: relative; height: 96px; }
.header__logo { position: absolute; left: 47px; top: 18px; }
.header__logo img { width: 170px; height: 59px; }
.nav {
  position: absolute;
  left: 303px;
  top: 0;
  height: 96px;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: var(--fs-base);
  font-weight: 600;
}
.nav a { transition: color .15s ease; line-height: 24px; }
.nav a:hover { color: var(--blue); }
.nav__caret {
  display: inline-block;
  margin-left: 2px;
  vertical-align: middle;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
}
.header__cta { position: absolute; right: 0; top: 21.5px; width: 152px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  /* Same crayon-paper layer as the strip above the sky, so the two meet without a seam */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E %3Cfilter id='t' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='11' stitchTiles='stitch'/%3E %3CfeColorMatrix type='matrix' values='0 0 0 0 .478 0 0 0 0 .478 0 0 0 0 .455 0 0 0 -3 2.05'/%3E %3C/filter%3E %3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.012 .7' numOctaves='2' seed='5' stitchTiles='stitch' result='n'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='n' scale='7' xChannelSelector='R' yChannelSelector='G' result='d'/%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='2' seed='9' stitchTiles='stitch' result='b'/%3E %3CfeColorMatrix in='b' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 4.6' result='m'/%3E %3CfeComposite in='d' in2='m' operator='in'/%3E %3C/filter%3E %3Cg opacity='.09'%3E %3Crect width='360' height='360' filter='url(%23t)'/%3E %3Cg filter='url(%23s)' stroke='%237A7A74' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M0 0 L-360 360'/%3E%3Cpath d='M18 0 L-342 360'/%3E%3Cpath d='M36 0 L-324 360'/%3E%3Cpath d='M54 0 L-306 360'/%3E%3Cpath d='M72 0 L-288 360'/%3E%3Cpath d='M90 0 L-270 360'/%3E%3Cpath d='M108 0 L-252 360'/%3E%3Cpath d='M126 0 L-234 360'/%3E%3Cpath d='M144 0 L-216 360'/%3E%3Cpath d='M162 0 L-198 360'/%3E%3Cpath d='M180 0 L-180 360'/%3E%3Cpath d='M198 0 L-162 360'/%3E%3Cpath d='M216 0 L-144 360'/%3E%3Cpath d='M234 0 L-126 360'/%3E%3Cpath d='M252 0 L-108 360'/%3E%3Cpath d='M270 0 L-90 360'/%3E%3Cpath d='M288 0 L-72 360'/%3E%3Cpath d='M306 0 L-54 360'/%3E%3Cpath d='M324 0 L-36 360'/%3E%3Cpath d='M342 0 L-18 360'/%3E%3Cpath d='M360 0 L0 360'/%3E%3Cpath d='M378 0 L18 360'/%3E%3Cpath d='M396 0 L36 360'/%3E%3Cpath d='M414 0 L54 360'/%3E%3Cpath d='M432 0 L72 360'/%3E%3Cpath d='M450 0 L90 360'/%3E%3Cpath d='M468 0 L108 360'/%3E%3Cpath d='M486 0 L126 360'/%3E%3Cpath d='M504 0 L144 360'/%3E%3Cpath d='M522 0 L162 360'/%3E%3Cpath d='M540 0 L180 360'/%3E%3Cpath d='M558 0 L198 360'/%3E%3Cpath d='M576 0 L216 360'/%3E%3Cpath d='M594 0 L234 360'/%3E%3Cpath d='M612 0 L252 360'/%3E%3Cpath d='M630 0 L270 360'/%3E%3Cpath d='M648 0 L288 360'/%3E%3Cpath d='M666 0 L306 360'/%3E%3Cpath d='M684 0 L324 360'/%3E%3Cpath d='M702 0 L342 360'/%3E%3Cpath d='M720 0 L360 360'/%3E%3C/g%3E %3C/g%3E %3C/svg%3E") 0 0 / 360px 360px repeat, #fff;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 610px;
  padding: 38px 0 66px;
}
.hero__content { position: relative; z-index: 2; padding-left: 32px; }
.hero__title {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(48px, 4.3vw, 61px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -1.2px;
  color: var(--blue);
}
.hero__star {
  position: static; display: inline-block; width: auto; height: 1.02em;
  vertical-align: -.13em;
}
.hero__sub {
  margin-top: 24px;
  color: var(--text);
  font-size: var(--fs-lg);
  line-height: 32px;
}
.hero__actions { display: flex; gap: 16px; margin-top: 28px; }
.hero__actions .btn--yellow {
  width: 176px; height: 56px;
  box-shadow: 0 6px 0 rgba(204, 148, 20, .15), 0 12px 26px rgba(205, 157, 47, .12);
}
.hero__actions .btn--yellow:hover { box-shadow: 0 8px 22px rgba(205, 157, 47, .25); }
.hero__actions .btn--yellow:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.hero__visual {
  position: relative;
  width: 650px;
  aspect-ratio: 650 / 510;
  justify-self: center;
  margin-left: 0;
  pointer-events: none;
}
.hero__world { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; }
/* ---------- Form card (hero + contact) ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--chip-line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 44px rgba(20, 30, 70, .18);
}
.form-card__title {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 36px;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-card__note { margin: -4px 0 20px; color: var(--text); font-size: var(--fs-sm); line-height: 20px; }
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 20px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  background: #FBFAF5;
  border: 1px solid #D6D6D0;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #8F8F88; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #B9B9B2; }
/* Dropdowns get a visible arrow so they don't read as text boxes */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: #FBFAF5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23344980' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 18px center;
  cursor: pointer;
}
.field textarea { height: 104px; padding: 14px 16px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(76, 104, 177, .15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card .btn--block { margin-top: 6px; gap: 10px; height: 56px; }
.form-card .form-card__call { margin-top: 12px; gap: 6px; border-color: var(--blue); color: var(--blue-dark); }
.form-card .form-card__call:hover { background: #F1F4FB; }

.hero__mascot {
  position: absolute; width: 35%; left: 32.5%; top: 14%;
}
.hero__mascot img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 10px 9px rgba(74, 67, 47, .13));
}

/* ---------- Pop-up storybook ----------
   Every layer is placed in % of a 1280 x 853 frame, so the scene scales as one picture.
   Without JS, or with reduced motion, this is simply the finished scene. */
.hero__world.book-scene { aspect-ratio: 1280 / 853; }
.book-scene > * { position: absolute; display: block; height: auto; }
.book-scene__sky {
  left: 22.1%; top: 4.7%; width: 57.2%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #C3DDF6 0%, #A9CCF0 55%, #9CC3EC 100%);
  transform-origin: 50% 100%;
}
.pop { transform-origin: 50% 100%; }
.pop--cloud       { left: 19.6%; top: 9%;    width: 24%; }
.pop--sun         { left: 62.6%; top: 5.6%;  width: 14.5%; transform-origin: 50% 50%; }
.pop--cloud-small { left: 72%;   top: 22.8%; width: 12.5%; }
.pop--star        { left: 88.8%; top: 32.6%; width: 4.2%; fill: #F2C45A; transform-origin: 50% 50%; }
.pop--tree        { left: 13.4%; top: 30.6%; width: 21%; }
.pop--rainbow     { left: 5.6%;  top: 51.6%; width: 23.4%; }
.pop--bushes      { left: 25.4%; top: 57.4%; width: 13.6%; }
.pop--house       { left: 66.6%; top: 34%;   width: 22.7%; }
.pop--pencil      { left: 86.8%; top: 51.6%; width: 9.4%; }
.pop--blocks      { left: 79.8%; top: 66.4%; width: 11.7%; }
.book-scene__book { left: 1.6%; top: 62.8%; width: 97%; aspect-ratio: 2078 / 416; }
.book-scene__book > img { position: absolute; top: 0; height: auto; }
.book-scene__half--left  { left: 0;     width: 50.1%; transform-origin: 100% 50%; }
.book-scene__half--right { left: 50.1%; width: 49.9%; transform-origin: 0 50%; }
.book-scene__closed { left: 5%; bottom: 0; top: auto !important; width: 90%; opacity: 0; transform-origin: 50% 100%; }
/* Sparkles that burst out of the spine as the book opens */
.book-scene__sparkle {
  left: 50%; top: 70%; width: 5%; aspect-ratio: 1;
  fill: #F2C45A; opacity: 0;
  transform: translate(-50%, -50%);
}
.book-scene__sparkle:nth-of-type(2n) { width: 3.4%; fill: #A9CCF0; }

@media (prefers-reduced-motion: no-preference) {
  /* Hidden until main.js has the images ready and starts the show */
  .js .hero__visual:not(.is-playing) .book-scene > *,
  .js .hero__visual:not(.is-playing) .hero__mascot { visibility: hidden; }

  .hero__visual.is-playing .book-scene__closed {
    animation: book-drop .7s cubic-bezier(.2, .8, .3, 1) both,
               book-wiggle .45s ease-in-out .75s,
               book-burst .22s cubic-bezier(.5, 0, .75, .4) 1.18s forwards;
  }
  .hero__visual.is-playing .book-scene__sparkle { animation: sparkle .9s cubic-bezier(.2, .8, .3, 1) 1.22s both; }
  .hero__visual.is-playing .book-scene__half--left  { animation: book-half-left  .8s cubic-bezier(.22, .9, .3, 1.04) 1.36s both; }
  .hero__visual.is-playing .book-scene__half--right { animation: book-half-right .8s cubic-bezier(.22, .9, .3, 1.04) 1.3s both; }
  .hero__visual.is-playing .book-scene__sky { animation: sky-rise .75s cubic-bezier(.3, 1.3, .5, 1) 1.8s both; }
  .hero__visual.is-playing .pop { animation: pop-up .75s cubic-bezier(.3, 1.2, .5, 1) both; }
  .hero__visual.is-playing .pop--rainbow { animation-delay: 2s; }
  .hero__visual.is-playing .pop--tree    { animation-delay: 2.08s; }
  .hero__visual.is-playing .pop--bushes  { animation-delay: 2.16s; }
  .hero__visual.is-playing .pop--blocks  { animation-delay: 2.12s; }
  .hero__visual.is-playing .pop--house   { animation-delay: 2.04s; }
  .hero__visual.is-playing .pop--pencil  { animation-delay: 2.2s; }
  .hero__visual.is-playing .hero__mascot { transform-origin: 50% 100%; animation: mascot-pop .9s cubic-bezier(.3, 1.25, .5, 1) 2.35s both; }
  .hero__visual.is-playing .pop--sun {
    animation: sun-in .9s cubic-bezier(.3, 1.3, .5, 1) 2.5s both, spin 70s linear 3.4s infinite;
  }
  .hero__visual.is-playing .pop--cloud {
    animation: cloud-in-left .9s cubic-bezier(.25, .9, .35, 1) 2.55s both, drift 7s ease-in-out 3.5s infinite;
  }
  .hero__visual.is-playing .pop--cloud-small {
    animation: cloud-in-right .9s cubic-bezier(.25, .9, .35, 1) 2.65s both, drift 6s ease-in-out 3.6s infinite reverse;
  }
  .hero__visual.is-playing .pop--star {
    animation: star-in .6s cubic-bezier(.3, 1.4, .5, 1) 2.9s both, twinkle 2.4s ease-in-out 3.5s infinite;
  }
  .hero__visual.is-playing .hero__mascot img { transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out 3.4s infinite; }
  /* No point animating the scene while it's scrolled out of view */
  .hero__visual.is-offscreen, .hero__visual.is-offscreen * { animation-play-state: paused !important; }
}
/* Phones and tablets: the same story, kept light. Flat 2D moves only (no 3D perspective),
   no sparkles and no endless loops afterwards, so the GPU has very little to do. */
@media (prefers-reduced-motion: no-preference) and (max-width: 767px),
       (prefers-reduced-motion: no-preference) and (hover: none) {
  .hero__visual.is-playing .book-scene__sparkle { animation: none; }
  .hero__visual.is-playing .book-scene__half--left,
  .hero__visual.is-playing .book-scene__half--right { animation-name: book-half-flat; }
  .hero__visual.is-playing .pop { animation-name: pop-up-flat; }
  .hero__visual.is-playing .pop--sun         { animation: sun-in .9s cubic-bezier(.3, 1.3, .5, 1) 2.5s both; }
  .hero__visual.is-playing .pop--cloud       { animation: cloud-in-left .9s cubic-bezier(.25, .9, .35, 1) 2.55s both; }
  .hero__visual.is-playing .pop--cloud-small { animation: cloud-in-right .9s cubic-bezier(.25, .9, .35, 1) 2.65s both; }
  .hero__visual.is-playing .pop--star        { animation: star-in .6s cubic-bezier(.3, 1.4, .5, 1) 2.9s both; }
  .hero__visual.is-playing .hero__mascot img { animation: none; }
}
@keyframes book-half-flat {
  0%   { opacity: 0; transform: scaleX(0); }
  12%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes pop-up-flat {
  0%   { opacity: 0; transform: translateY(18%) scale(.55); }
  30%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes book-drop {
  0%   { opacity: 0; transform: translateY(-36%) scale(.94); }
  60%  { opacity: 1; transform: translateY(3%) scale(1.02, .97); }
  100% { opacity: 1; transform: none; }
}
@keyframes book-wiggle {
  25% { rotate: -2.5deg; }
  50% { rotate: 2deg; }
  75% { rotate: -1deg; }
}
@keyframes book-burst {
  0%   { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(8%) scale(1.06, .35); }
}
@keyframes sparkle {
  0%   { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(.2); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--d)) scale(1); }
}
/* the halves stay fully hidden (edge-on and transparent) until they start to unfold */
@keyframes book-half-left {
  0%   { opacity: 0; transform: perspective(1400px) rotateY(90deg); }
  12%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes book-half-right {
  0%   { opacity: 0; transform: perspective(1400px) rotateY(-90deg); }
  12%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes sky-rise {
  from { opacity: 0; transform: scale(.15); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop-up {
  0%   { opacity: 0; transform: perspective(700px) rotateX(82deg) scale(.75); }
  30%  { opacity: 1; }
  100% { opacity: 1; transform: perspective(700px) rotateX(0) scale(1); }
}
@keyframes mascot-pop {
  0%   { opacity: 0; transform: translateY(30%) scale(.45); }
  35%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes sun-in {
  from { opacity: 0; transform: rotate(-140deg) scale(.2); }
  to   { opacity: 1; transform: none; }
}
@keyframes cloud-in-left  { from { opacity: 0; transform: translateX(-45%); } to { opacity: 1; transform: none; } }
@keyframes cloud-in-right { from { opacity: 0; transform: translateX(45%); } to { opacity: 1; transform: none; } }
@keyframes star-in {
  from { opacity: 0; transform: scale(0) rotate(-90deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes spin    { to { rotate: 360deg; } }
@keyframes drift   { 50% { translate: 4% 0; } }
@keyframes twinkle { 50% { scale: .7; } }
@keyframes breathe { 50% { scale: 1.012 1.025; } }

/* ---------- Night sky ---------- */
.sky {
  position: relative;
  height: 798px;
  /* The top of the sky artwork is transparent: the crayon-paper texture shows through there,
     continuing the hero above it. */
  background:
    url("../assets/img/sky-base.webp") center top / cover no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E %3Cfilter id='t' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='11' stitchTiles='stitch'/%3E %3CfeColorMatrix type='matrix' values='0 0 0 0 .478 0 0 0 0 .478 0 0 0 0 .455 0 0 0 -3 2.05'/%3E %3C/filter%3E %3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.012 .7' numOctaves='2' seed='5' stitchTiles='stitch' result='n'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='n' scale='7' xChannelSelector='R' yChannelSelector='G' result='d'/%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='2' seed='9' stitchTiles='stitch' result='b'/%3E %3CfeColorMatrix in='b' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 4.6' result='m'/%3E %3CfeComposite in='d' in2='m' operator='in'/%3E %3C/filter%3E %3Cg opacity='.09'%3E %3Crect width='360' height='360' filter='url(%23t)'/%3E %3Cg filter='url(%23s)' stroke='%237A7A74' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M0 0 L-360 360'/%3E%3Cpath d='M18 0 L-342 360'/%3E%3Cpath d='M36 0 L-324 360'/%3E%3Cpath d='M54 0 L-306 360'/%3E%3Cpath d='M72 0 L-288 360'/%3E%3Cpath d='M90 0 L-270 360'/%3E%3Cpath d='M108 0 L-252 360'/%3E%3Cpath d='M126 0 L-234 360'/%3E%3Cpath d='M144 0 L-216 360'/%3E%3Cpath d='M162 0 L-198 360'/%3E%3Cpath d='M180 0 L-180 360'/%3E%3Cpath d='M198 0 L-162 360'/%3E%3Cpath d='M216 0 L-144 360'/%3E%3Cpath d='M234 0 L-126 360'/%3E%3Cpath d='M252 0 L-108 360'/%3E%3Cpath d='M270 0 L-90 360'/%3E%3Cpath d='M288 0 L-72 360'/%3E%3Cpath d='M306 0 L-54 360'/%3E%3Cpath d='M324 0 L-36 360'/%3E%3Cpath d='M342 0 L-18 360'/%3E%3Cpath d='M360 0 L0 360'/%3E%3Cpath d='M378 0 L18 360'/%3E%3Cpath d='M396 0 L36 360'/%3E%3Cpath d='M414 0 L54 360'/%3E%3Cpath d='M432 0 L72 360'/%3E%3Cpath d='M450 0 L90 360'/%3E%3Cpath d='M468 0 L108 360'/%3E%3Cpath d='M486 0 L126 360'/%3E%3Cpath d='M504 0 L144 360'/%3E%3Cpath d='M522 0 L162 360'/%3E%3Cpath d='M540 0 L180 360'/%3E%3Cpath d='M558 0 L198 360'/%3E%3Cpath d='M576 0 L216 360'/%3E%3Cpath d='M594 0 L234 360'/%3E%3Cpath d='M612 0 L252 360'/%3E%3Cpath d='M630 0 L270 360'/%3E%3Cpath d='M648 0 L288 360'/%3E%3Cpath d='M666 0 L306 360'/%3E%3Cpath d='M684 0 L324 360'/%3E%3Cpath d='M702 0 L342 360'/%3E%3Cpath d='M720 0 L360 360'/%3E%3C/g%3E %3C/g%3E %3C/svg%3E") 0 0 / 360px 360px repeat,
    #fff;
  color: #fff;
  text-align: center;
}
/* Animated star field + constellations (SVG, loops forever) sits over the static base */
.sky__stars {
  position: absolute;
  inset: 0;
  background: url("../assets/img/sky-stars.svg") center top / cover no-repeat;
  /* Clip to the curved sky so no star drifts out onto the cream above it. */
  -webkit-mask: url("../assets/img/sky-base.webp") center top / cover no-repeat;
  mask: url("../assets/img/sky-base.webp") center top / cover no-repeat;
  pointer-events: none;
}
/* An animated SVG background is redrawn whole on every frame, which phones can't keep up with:
   they get the same star field, standing still. */
@media (max-width: 767px), (hover: none) {
  .sky__stars { background-image: url("../assets/img/sky-stars-still.svg"); }
}
.sky__little-star {
  position: absolute;
  left: calc(50% - 280px);
  top: -202px;
  width: 560px;
  height: 560px;
  z-index: 2;
  pointer-events: none;
}
/* Text and quote flow one after the other from 300px down, so the gap between them never depends on how tall the paragraph renders */
.sky__text {
  position: relative;
  width: 976px;
  margin: 0 auto;
  padding-top: 300px;
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 32px;
}
.sky__text p + p { margin-top: 24px; }
.sky__quote {
  position: relative;
  width: 999px;
  margin: 40px auto 0;
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .4px;
}
.sky__quote span { color: var(--yellow); }
/* Copy always sits above the flying star so it stays readable. */
.sky__text, .sky__quote { z-index: 3; }

/* ---------- Why ---------- */
.why {
  padding: 96px 0;
  background: #fff;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 384px);
  gap: 24px;
  margin-top: 40px;
}
/* Each reason is a solid pastel card, from the same family as the program colours */
.why-card {
  --tint: #FFEFB8;
  --edge: #FFC324;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 134px;
  padding: 22px 28px 22px 24px;
  background: var(--tint);
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(91, 78, 54, .07);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s cubic-bezier(.16, 1, .3, 1);
}
/* Crayon texture: waxy hatching coloured in with the card's crayon, plus a hand-drawn outline */
.why-card::before,
.why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--edge);
  pointer-events: none;
}
.why-card::before {
  opacity: .28;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E %3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='7' stitchTiles='stitch' result='n'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5' xChannelSelector='R' yChannelSelector='G' result='d'/%3E %3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.75' result='g'/%3E %3CfeComposite in='d' in2='g' operator='in'/%3E %3C/filter%3E %3Cg filter='url(%23c)' stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M0 0 L-220 220'/%3E%3Cpath d='M11 0 L-209 220'/%3E%3Cpath d='M22 0 L-198 220'/%3E%3Cpath d='M33 0 L-187 220'/%3E%3Cpath d='M44 0 L-176 220'/%3E%3Cpath d='M55 0 L-165 220'/%3E%3Cpath d='M66 0 L-154 220'/%3E%3Cpath d='M77 0 L-143 220'/%3E%3Cpath d='M88 0 L-132 220'/%3E%3Cpath d='M99 0 L-121 220'/%3E%3Cpath d='M110 0 L-110 220'/%3E%3Cpath d='M121 0 L-99 220'/%3E%3Cpath d='M132 0 L-88 220'/%3E%3Cpath d='M143 0 L-77 220'/%3E%3Cpath d='M154 0 L-66 220'/%3E%3Cpath d='M165 0 L-55 220'/%3E%3Cpath d='M176 0 L-44 220'/%3E%3Cpath d='M187 0 L-33 220'/%3E%3Cpath d='M198 0 L-22 220'/%3E%3Cpath d='M209 0 L-11 220'/%3E%3Cpath d='M220 0 L0 220'/%3E%3Cpath d='M231 0 L11 220'/%3E%3Cpath d='M242 0 L22 220'/%3E%3Cpath d='M253 0 L33 220'/%3E%3Cpath d='M264 0 L44 220'/%3E%3Cpath d='M275 0 L55 220'/%3E%3Cpath d='M286 0 L66 220'/%3E%3Cpath d='M297 0 L77 220'/%3E%3Cpath d='M308 0 L88 220'/%3E%3Cpath d='M319 0 L99 220'/%3E%3Cpath d='M330 0 L110 220'/%3E%3Cpath d='M341 0 L121 220'/%3E%3Cpath d='M352 0 L132 220'/%3E%3Cpath d='M363 0 L143 220'/%3E%3Cpath d='M374 0 L154 220'/%3E%3Cpath d='M385 0 L165 220'/%3E%3Cpath d='M396 0 L176 220'/%3E%3Cpath d='M407 0 L187 220'/%3E%3Cpath d='M418 0 L198 220'/%3E%3Cpath d='M429 0 L209 220'/%3E%3Cpath d='M440 0 L220 220'/%3E%3C/g%3E %3C/svg%3E") 0 0 / 220px 220px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E %3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='7' stitchTiles='stitch' result='n'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5' xChannelSelector='R' yChannelSelector='G' result='d'/%3E %3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.75' result='g'/%3E %3CfeComposite in='d' in2='g' operator='in'/%3E %3C/filter%3E %3Cg filter='url(%23c)' stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M0 0 L-220 220'/%3E%3Cpath d='M11 0 L-209 220'/%3E%3Cpath d='M22 0 L-198 220'/%3E%3Cpath d='M33 0 L-187 220'/%3E%3Cpath d='M44 0 L-176 220'/%3E%3Cpath d='M55 0 L-165 220'/%3E%3Cpath d='M66 0 L-154 220'/%3E%3Cpath d='M77 0 L-143 220'/%3E%3Cpath d='M88 0 L-132 220'/%3E%3Cpath d='M99 0 L-121 220'/%3E%3Cpath d='M110 0 L-110 220'/%3E%3Cpath d='M121 0 L-99 220'/%3E%3Cpath d='M132 0 L-88 220'/%3E%3Cpath d='M143 0 L-77 220'/%3E%3Cpath d='M154 0 L-66 220'/%3E%3Cpath d='M165 0 L-55 220'/%3E%3Cpath d='M176 0 L-44 220'/%3E%3Cpath d='M187 0 L-33 220'/%3E%3Cpath d='M198 0 L-22 220'/%3E%3Cpath d='M209 0 L-11 220'/%3E%3Cpath d='M220 0 L0 220'/%3E%3Cpath d='M231 0 L11 220'/%3E%3Cpath d='M242 0 L22 220'/%3E%3Cpath d='M253 0 L33 220'/%3E%3Cpath d='M264 0 L44 220'/%3E%3Cpath d='M275 0 L55 220'/%3E%3Cpath d='M286 0 L66 220'/%3E%3Cpath d='M297 0 L77 220'/%3E%3Cpath d='M308 0 L88 220'/%3E%3Cpath d='M319 0 L99 220'/%3E%3Cpath d='M330 0 L110 220'/%3E%3Cpath d='M341 0 L121 220'/%3E%3Cpath d='M352 0 L132 220'/%3E%3Cpath d='M363 0 L143 220'/%3E%3Cpath d='M374 0 L154 220'/%3E%3Cpath d='M385 0 L165 220'/%3E%3Cpath d='M396 0 L176 220'/%3E%3Cpath d='M407 0 L187 220'/%3E%3Cpath d='M418 0 L198 220'/%3E%3Cpath d='M429 0 L209 220'/%3E%3Cpath d='M440 0 L220 220'/%3E%3C/g%3E %3C/svg%3E") 0 0 / 220px 220px repeat;
}
.why-card::after {
  opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 180' preserveAspectRatio='none'%3E %3Cfilter id='o' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3' result='n'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='n' scale='4' xChannelSelector='R' yChannelSelector='G' result='d'/%3E %3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.8 1.6' result='g'/%3E %3CfeComposite in='d' in2='g' operator='in'/%3E %3C/filter%3E %3Crect x='5' y='5' width='470' height='170' rx='22' fill='none' stroke='%23000' stroke-width='4' filter='url(%23o)'/%3E %3Crect x='6.5' y='4' width='468' height='171' rx='24' fill='none' stroke='%23000' stroke-width='1.6' opacity='.7' filter='url(%23o)'/%3E %3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 180' preserveAspectRatio='none'%3E %3Cfilter id='o' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3' result='n'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='n' scale='4' xChannelSelector='R' yChannelSelector='G' result='d'/%3E %3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.8 1.6' result='g'/%3E %3CfeComposite in='d' in2='g' operator='in'/%3E %3C/filter%3E %3Crect x='5' y='5' width='470' height='170' rx='22' fill='none' stroke='%23000' stroke-width='4' filter='url(%23o)'/%3E %3Crect x='6.5' y='4' width='468' height='171' rx='24' fill='none' stroke='%23000' stroke-width='1.6' opacity='.7' filter='url(%23o)'/%3E %3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.why-card--sun    { --tint: #FFEFB8; --edge: #FFC324; }
.why-card--peach  { --tint: #FFE1D3; --edge: #F4936F; }
.why-card--mint   { --tint: #D3F1E6; --edge: #4CBF9F; }
.why-card--sky    { --tint: #D6EBFA; --edge: #5AB0EA; }
.why-card--lilac  { --tint: #E7DDFA; --edge: #A585E0; }
.why-card--orange { --tint: #FCDCC6; --edge: #F08A45; }
.why-card:hover {
  transform: translateY(-5px) rotate(-.6deg);
  box-shadow: 0 18px 36px rgba(91, 78, 54, .13);
}
.why-card:nth-child(even):hover { transform: translateY(-5px) rotate(.6deg); }
/* Icon sits in a white halo with a ring of the card's colour */
.why-card__icon {
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 0 0 8px var(--edge), 0 8px 18px rgba(52, 73, 128, .18);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.why-card__icon img { width: 55px; height: 55px; }
.why-card:hover .why-card__icon { transform: rotate(-10deg) scale(1.08); }
.why-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  color: var(--ink);
}
.why-card p {
  margin-top: 4px;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .why-card, .why-card__icon { transition: none; }
  .why-card:hover, .why-card:nth-child(even):hover, .why-card:hover .why-card__icon { transform: none; }
}

.chip {
  display: inline-block;
  height: 33px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-sm);
  line-height: 32px;
  color: var(--ink);
}

/* Text for screen readers only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Programs ---------- */
.programs {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(45deg, var(--blue), var(--blue-dark));
}
/* Faint hand-drawn stars, dots and squiggles, echoing the star mascot */
.programs::before,
.testimonials::before,
.section--blue::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0-10 2.9-4 9.5-3.1 4.7 1.5 5.9 8.1 0 5-5.9 8.1-4.7 1.5-9.5-3.1-2.9-4Z' transform='translate(48 62) rotate(-12) scale(1.3)' stroke='%23FFC324' stroke-opacity='.55' stroke-width='1.6'/%3E%3Cpath d='M0-10 2.9-4 9.5-3.1 4.7 1.5 5.9 8.1 0 5-5.9 8.1-4.7 1.5-9.5-3.1-2.9-4Z' transform='translate(300 250) rotate(14)' fill='%23fff' fill-opacity='.14'/%3E%3Cpath d='M0-10 2.9-4 9.5-3.1 4.7 1.5 5.9 8.1 0 5-5.9 8.1-4.7 1.5-9.5-3.1-2.9-4Z' transform='translate(150 360) rotate(6) scale(.8)' stroke='%23fff' stroke-opacity='.25' stroke-width='1.6'/%3E%3Cpath d='M220 70c12-14 24 14 36 0s24 14 36 0' stroke='%23fff' stroke-opacity='.18' stroke-width='3'/%3E%3Cpath d='M30 250c10-12 20 12 30 0s20 12 30 0' stroke='%23FFC324' stroke-opacity='.3' stroke-width='3'/%3E%3Ccircle cx='370' cy='120' r='4' fill='%23fff' fill-opacity='.2'/%3E%3Ccircle cx='120' cy='170' r='3' fill='%23FFC324' fill-opacity='.45'/%3E%3Ccircle cx='390' cy='370' r='5' stroke='%23fff' stroke-opacity='.22' stroke-width='2'/%3E%3Ccircle cx='250' cy='160' r='2.5' fill='%23fff' fill-opacity='.25'/%3E%3C/svg%3E") 0 0 / 520px 520px;
  opacity: .85;
}
.programs > .container,
.testimonials > .container,
.section--blue > .container { position: relative; }
.section--blue { position: relative; overflow: hidden; }
.programs__intro {
  max-width: 560px;
  margin: 4px auto 0;
  color: rgba(255, 255, 255, .86);
  font-size: var(--fs-md);
  line-height: 28px;
  text-align: center;
}
.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, 384px);
  gap: 24px;
  margin-top: 40px;
}
.programs__intro + .programs__grid { margin-top: 48px; }

/* Each program has its own colour: --accent for decoration, --accent-deep for text (AA contrast on white) */
.program-card {
  --accent: var(--blue);
  --accent-soft: #E7ECF8;
  --accent-deep: var(--blue-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 404px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18, 28, 64, .16);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s cubic-bezier(.16, 1, .3, 1);
}
.program-card--toddler   { --accent: #F4936F; --accent-soft: #FFEDE5; --accent-deep: #B0442A; }
.program-card--playgroup { --accent: #FFC324; --accent-soft: #FFF4D2; --accent-deep: #855800; }
.program-card--nursery   { --accent: #4CBF9F; --accent-soft: #E1F6EF; --accent-deep: #1A7159; }
.program-card--junior-kg { --accent: #5AB0EA; --accent-soft: #E2F1FC; --accent-deep: #1C6497; }
.program-card--senior-kg { --accent: #A585E0; --accent-soft: #F0E9FC; --accent-deep: #6142AA; }
.program-card--daycare   { --accent: #F08A45; --accent-soft: #FDEADC; --accent-deep: #A6480F; }
/* Colour strip along the bottom edge */
.program-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--accent);
}
.program-card:hover,
.program-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(18, 28, 64, .26), 0 0 0 3px var(--accent);
}
.program-card__img-link { display: block; }
.program-card__img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.program-card:hover .program-card__img { transform: scale(1.06); }
.program-card__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 30px;
  background: linear-gradient(180deg, var(--accent-soft), #fff 75%);
}
/* Soft wave where the photo meets the card */
.program-card__body::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 100%;
  height: 18px;
  margin-bottom: -1px;
  background: var(--accent-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 18' preserveAspectRatio='none'%3E%3Cpath d='M0 10C60 -2 110 -2 170 8s130 12 190 2c16-3 28-5 40-5V18H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 18' preserveAspectRatio='none'%3E%3Cpath d='M0 10C60 -2 110 -2 170 8s130 12 190 2c16-3 28-5 40-5V18H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
/* Age badge sits on the wave, half over the photo */
.program-card .program-card__age {
  margin-top: 0;
  position: absolute;
  top: -24px;
  left: 22px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 16px 6px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 20px;
  box-shadow: 0 6px 14px rgba(18, 28, 64, .2);
}
.program-card__age strong { font-family: var(--font-head); font-size: var(--fs-lg); line-height: 1; }
.program-card h3 {
  margin-top: 0;
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 32px;
  color: var(--accent-deep);
}
.program-card h3 a { color: inherit; text-decoration: none; }
.program-card p {
  margin-top: 8px;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 24px;
}
.program-card .link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}
.program-card .link:hover { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .program-card, .program-card__img { transition: none; }
  .program-card:hover, .program-card:focus-within { transform: none; }
  .program-card:hover .program-card__img { transform: none; }
}

/* ---------- Curriculum ---------- */
.curriculum { padding: 88px 0; background: #fff; }
.curriculum__inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; }
.curriculum__content { min-width: 0; }
.learning-film {
  position: relative; min-width: 0; width: 100%; margin: 0;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px;
  background: #ece1d0; box-shadow: 0 14px 36px rgba(91, 78, 54, .08);
}
.learning-film__video { display: block; width: 100%; height: 100%; object-fit: contain; }
.learning-film__toggle {
  position: absolute; right: 12px; bottom: 12px;
  padding: 8px 12px; border: 1px solid rgba(76, 104, 177, .18); border-radius: 999px;
  background: rgba(255, 252, 237, .95); color: var(--blue-dark);
  font: 700 12px var(--font-body); cursor: pointer;
}
.learning-film__toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.learning-film__description { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Video framed by an offset sunshine backdrop and a sticker */
.curriculum { position: relative; overflow: hidden; }
.curriculum__media { position: relative; min-width: 0; padding: 0 18px 18px 0; }
.curriculum__media::before {
  content: "";
  position: absolute;
  inset: 18px 0 0 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .55) 1.5px, transparent 2px) 0 0 / 18px 18px,
    var(--yellow-soft);
}
.curriculum__media .learning-film { box-shadow: 0 18px 40px rgba(91, 78, 54, .14); }
.curriculum__sticker {
  position: absolute;
  top: -14px;
  left: -10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 20px;
  box-shadow: 0 8px 18px rgba(52, 73, 128, .28);
  transform: rotate(-4deg);
}
.curriculum__sticker strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-dark);
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  line-height: 1;
}

.curriculum__content .curriculum__eyebrow {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.curriculum__content .section-title { text-align: left; }
.curriculum__content > p {
  margin-top: 12px;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 28px;
}
.curriculum__content > p strong { color: var(--blue-dark); font-weight: 800; }

/* Three numbered pillars, each linking to its part of the curriculum page */
.curriculum__pillars { margin-top: 24px; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: pillar; }
.pillar { --accent: var(--blue); --accent-soft: #E7ECF8; counter-increment: pillar; }
.pillar--mi  { --accent: #6142AA; --accent-soft: #F0E9FC; }
.pillar--el  { --accent: #1A7159; --accent-soft: #E1F6EF; }
.pillar--pbl { --accent: #B0442A; --accent-soft: #FFEDE5; }
.pillar a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 48px 14px 14px;
  border: 1px solid #ECEBE4;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(91, 78, 54, .07);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1), border-color .2s ease;
}
/* Step number on the right, turning into an arrow on hover */
.pillar a::after {
  content: "0" counter(pillar);
  position: absolute;
  right: 18px;
  top: 50%;
  translate: 0 -50%;
  color: var(--accent);
  opacity: .35;
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  transition: opacity .2s ease;
}
.pillar a:hover, .pillar a:focus-visible {
  transform: translateX(6px);
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(91, 78, 54, .12);
}
.pillar a:hover::after, .pillar a:focus-visible::after { content: "→"; opacity: 1; }
.pillar a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pillar__icon {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.pillar__text { display: grid; gap: 2px; }
.pillar__text strong {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 24px;
  color: var(--ink);
}
.pillar__text span { color: var(--text); font-size: var(--fs-sm); line-height: 20px; }
.curriculum__content .btn { margin-top: 28px; gap: 8px; }
.curriculum__content .btn span { transition: translate .2s ease; }
.curriculum__content .btn:hover span { translate: 4px 0; }
@media (prefers-reduced-motion: reduce) {
  .pillar a, .curriculum__content .btn span { transition: none; }
  .pillar a:hover, .pillar a:focus-visible { transform: none; }
}

/* ---------- Founder ---------- */
.founder { position: relative; overflow: hidden; height: 600px; background: #EEF3FC; }
.founder__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.founder__content { width: 640px; }
.founder__eyebrow {
  color: var(--orange);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.founder__name {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 60px;
  color: var(--blue);
}
.founder__content > p:not(.founder__eyebrow) {
  margin-top: 16px;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 28px;
}
.founder__content .link { margin-top: 20px; }
/* Cut-out portrait standing in front of a brand-blue circle, cropped by the bottom of the section */
.founder__visual { position: relative; align-self: flex-end; flex: 0 0 480px; width: 480px; height: 560px; }
.founder__visual::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -150px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: var(--blue-dark);
  translate: -50% 0;
}
.founder__photo {
  position: absolute;
  left: 50%;
  bottom: -150px;
  width: 520px;
  max-width: none;
  height: auto;
  translate: -50% 0;
}

/* ---------- Gallery ---------- */
.gallery { padding: 96px 0; background: #fff; }
.gallery__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.gallery__head .section-title { text-align: left; }
.gallery__eyebrow {
  margin-bottom: 4px;
  color: var(--orange);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.gallery__intro { margin-top: 8px; color: var(--text); font-size: var(--fs-md); line-height: 28px; }
.gallery__head .btn { gap: 8px; }
.gallery__head .btn span { transition: translate .2s ease; }
.gallery__head .btn:hover span { translate: 4px 0; }
.gallery__grid {
  display: grid;
  grid-template-columns: 590px 285px 285px;
  grid-template-rows: 196px 196px;
  gap: 20px;
  margin-top: 40px;
}
/* Scrapbook tiles: white photo frame, a gentle tilt on hover */
.gallery__tile {
  position: relative;
  display: block;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(91, 78, 54, .12);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s cubic-bezier(.16, 1, .3, 1);
}
.gallery__grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.gallery__grid .gallery__big { grid-row: span 2; }
/* A strip of washi tape across the corner of the big photo */
.gallery__big::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -26px;
  z-index: 1;
  width: 120px;
  height: 26px;
  background: rgba(255, 195, 36, .85);
  transform: rotate(-38deg);
  box-shadow: 0 2px 6px rgba(91, 78, 54, .15);
}
.gallery__tile:hover, .gallery__tile:focus-visible {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 20px 40px rgba(91, 78, 54, .2);
}
.gallery__tile:nth-child(even):hover, .gallery__tile:nth-child(even):focus-visible { transform: translateY(-5px) rotate(1deg); }
.gallery__tile:hover img, .gallery__tile:focus-visible img { transform: scale(1.06); }
.gallery__tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .gallery__tile, .gallery__grid img, .gallery__head .btn span { transition: none; }
  .gallery__tile:hover, .gallery__tile:focus-visible,
  .gallery__tile:nth-child(even):hover, .gallery__tile:nth-child(even):focus-visible,
  .gallery__tile:hover img, .gallery__tile:focus-visible img { transform: none; }
}

/* ---------- Testimonials ---------- */
.testimonials { position: relative; overflow: hidden; padding: 96px 0; background: var(--blue); }
.testimonials__eyebrow {
  color: var(--butter);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.3px;
  text-align: center;
  text-transform: uppercase;
}
.testimonials .section-title { margin-top: 4px; }
/* Headline rating: 4.7 with partly filled stars */
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin: 20px auto 0;
  padding: 10px 22px 10px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(20, 30, 70, .22);
}
.rating__score {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  line-height: 1;
}
.rating__stars { position: relative; display: inline-block; font-size: 22px; line-height: 1; letter-spacing: 2px; }
.rating__stars::before { content: "★★★★★"; color: #E4E4E1; }
.rating__stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.rating__stars > span::before { content: "★★★★★"; color: #F2A900; }
.rating__count { font-size: var(--fs-base); font-weight: 700; color: var(--ink); }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 384px);
  gap: 24px;
  margin-top: 64px;
}
/* Review cards: a big pastel quote mark, coloured avatar, middle card raised for rhythm */
.testimonial-card {
  --tint: #FFE1D3;
  --ink-tone: #B0442A;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  margin: 0;
  padding: 32px 30px 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(20, 30, 70, .22);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s cubic-bezier(.16, 1, .3, 1);
}
.testimonial-card--peach { --tint: #FFE1D3; --ink-tone: #B0442A; }
.testimonial-card--mint  { --tint: #D3F1E6; --ink-tone: #1A7159; }
.testimonial-card--lilac { --tint: #E7DDFA; --ink-tone: #6142AA; }
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  color: var(--tint);
  font-family: Georgia, serif;
  font-size: 120px;
  line-height: 1;
  pointer-events: none;
}
.testimonials__grid .testimonial-card:nth-child(2) { translate: 0 -24px; }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(20, 30, 70, .3); }
.testimonial-card__stars { position: relative; color: #C98300; font-size: var(--fs-lg); letter-spacing: 3px; line-height: 1; }
.testimonial-card__review {
  position: relative;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: 1.6;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.testimonial-card__review { margin-bottom: 20px; }
.testimonial-card__avatar {
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ink-tone);
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.testimonial-card__author strong { display: block; color: var(--ink); font-size: var(--fs-base); line-height: 20px; }
.testimonial-card__author small { display: block; color: var(--text); font-size: var(--fs-xs); line-height: 18px; }
.testimonials__more { margin-top: 48px; text-align: center; }
.testimonials__more .btn { gap: 8px; background: transparent; color: #fff; border: 2px solid #fff; }
.testimonials__more .btn:hover { background: #fff; color: var(--blue-dark); }
.testimonials__more .btn span { transition: translate .2s ease; }
.testimonials__more .btn:hover span { translate: 4px 0; }
@media (max-width: 480px) {
  .rating { gap: 8px; padding: 8px 16px 8px 8px; }
  .rating__score { width: 40px; height: 40px; font-size: var(--fs-md); }
  .rating__stars { font-size: 17px; letter-spacing: 1px; }
  .rating__count { font-size: var(--fs-sm); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-card, .testimonials__more .btn span { transition: none; }
  .testimonial-card:hover { transform: none; }
}

/* ---------- Blogs ---------- */
.blogs { padding: 96px 0; background: #fff; }
.blogs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.blogs__head .section-title { text-align: left; }
.blogs__eyebrow {
  margin-bottom: 4px;
  color: var(--orange);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.blogs__intro { margin-top: 8px; color: var(--text); font-size: var(--fs-md); line-height: 28px; }
.blogs__head .btn { gap: 8px; }
.blogs__head .btn span { transition: translate .2s ease; }
.blogs__head .btn:hover span { translate: 4px 0; }
.blogs__grid {
  display: grid;
  grid-template-columns: repeat(2, 588px);
  gap: 24px;
  margin-top: 40px;
}
/* Light article cards: read time, the whole card is clickable */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ECEBE4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(91, 78, 54, .1);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s cubic-bezier(.16, 1, .3, 1);
}
.blog-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.blog-card__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 32px 28px;
  background: #fff;
}
.blog-card .blog-card__meta {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.blog-card h3 {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 32px;
  color: var(--blue-dark);
}
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card p {
  margin-top: 8px;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 24px;
}
.blog-card .link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--link);
  text-decoration: none;
}
.blog-card .link span { display: inline-block; transition: translate .2s ease; }
/* Stretch the article link over the whole card */
.blog-card .link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.blog-card:hover, .blog-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(91, 78, 54, .18);
}
.blog-card:hover img { transform: scale(1.05); }
.blog-card:hover .link span { translate: 4px 0; }
.blog-card .link:focus-visible { outline: none; }
.blog-card:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .blog-card, .blog-card img, .blog-card .link span, .blogs__head .btn span { transition: none; }
  .blog-card:hover, .blog-card:focus-within, .blog-card:hover img { transform: none; }
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding: 80px 0; background: var(--blue); color: #fff; }
.contact__inner { display: flex; justify-content: space-between; align-items: flex-start; }
.contact__info { width: 616px; }
.contact__info .section-title { text-align: left; }
.contact__eyebrow {
  margin-bottom: 4px;
  color: var(--butter);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.contact__lead { margin-top: 12px; color: rgba(255, 255, 255, .88); font-size: var(--fs-md); line-height: 26px; }
/* Tappable contact tiles: solid darker-blue cards with pastel icon squares */
.contact__list { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact__list-wide { grid-column: 1 / -1; }
.contact-tile {
  --tint: #FFEFB8;
  --ink-tone: #855800;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .2s ease, background-color .2s ease;
}
.contact-tile--sun   { --tint: #FFEFB8; --ink-tone: #855800; }
.contact-tile--mint  { --tint: #D3F1E6; --ink-tone: #1A7159; }
.contact-tile--sky   { --tint: #D6EBFA; --ink-tone: #1C6497; }
.contact-tile--peach { --tint: #FFE1D3; --ink-tone: #B0442A; }
.contact-tile:hover, .contact-tile:focus-visible { transform: translateY(-3px); border-color: var(--tint); background: #2E4277; }
.contact-tile:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.contact-tile__icon {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--ink-tone);
}
.contact-tile strong { display: block; font-size: var(--fs-base); font-weight: 800; line-height: 22px; }
.contact-tile span span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .85); font-size: var(--fs-sm); line-height: 20px; overflow-wrap: anywhere; }
.contact-tile em { display: inline-block; margin-top: 6px; color: var(--yellow); font-size: var(--fs-sm); font-style: normal; font-weight: 800; line-height: 20px; }
.contact-tile em span { display: inline; margin: 0; color: inherit; transition: translate .2s ease; }
.contact-tile:hover em span { display: inline-block; translate: 4px 0; }
/* Map in the same white photo frame as the gallery */
.contact__map {
  display: block;
  width: 616px;
  height: 240px;
  margin-top: 20px;
  background: var(--placeholder);
  border: 8px solid #fff;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(20, 30, 70, .25);
}
.contact__form { width: 520px; border-color: transparent; }
@media (max-width: 560px) {
  .contact__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-tile, .contact-tile em span { transition: none; }
  .contact-tile:hover, .contact-tile:focus-visible { transform: none; }
}

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding: 56px 0 0; background: var(--ink); color: var(--footer-text); }
.footer > .container { position: relative; z-index: 1; }
/* dim twinkling stars: two layers pulsing out of phase */
.footer::before, .footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  animation: footer-glow 6s ease-in-out infinite;
}
.footer::before {
  background:
    radial-gradient(circle 2px at 4% 18%, #fff 98%, transparent),
    radial-gradient(circle 1.5px at 11% 72%, #ffd45c 98%, transparent),
    radial-gradient(circle 2.5px at 22% 40%, #fff 98%, transparent),
    radial-gradient(circle 1.5px at 38% 88%, #fff 98%, transparent),
    radial-gradient(circle 2px at 47% 12%, #ffd45c 98%, transparent),
    radial-gradient(circle 1.5px at 61% 60%, #fff 98%, transparent),
    radial-gradient(circle 2.5px at 78% 22%, #fff 98%, transparent),
    radial-gradient(circle 2px at 92% 80%, #ffd45c 98%, transparent);
}
.footer::after {
  background:
    radial-gradient(circle 1.5px at 7% 46%, #ffd45c 98%, transparent),
    radial-gradient(circle 2px at 16% 10%, #fff 98%, transparent),
    radial-gradient(circle 2px at 30% 66%, #fff 98%, transparent),
    radial-gradient(circle 2.5px at 43% 34%, #ffd45c 98%, transparent),
    radial-gradient(circle 1.5px at 55% 92%, #fff 98%, transparent),
    radial-gradient(circle 2px at 70% 50%, #fff 98%, transparent),
    radial-gradient(circle 1.5px at 85% 8%, #fff 98%, transparent),
    radial-gradient(circle 2.5px at 97% 38%, #ffd45c 98%, transparent);
  animation-duration: 8s;
  animation-delay: -3.5s;
}
@keyframes footer-glow {
  0%, 100% { opacity: .1; }
  50% { opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .footer::before, .footer::after { animation: none; opacity: .3; }
}
/* Shooting stars: a streak crosses the footer sky now and then */
.footer__sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.footer__sky span {
  position: absolute;
  top: 12%;
  left: 18%;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 212, 92, 0), #FFD45C 80%, #fff);
  opacity: 0;
  transform: rotate(18deg) translateX(0);
  animation: shooting-star 11s ease-in infinite;
}
.footer__sky span + span { top: 30%; left: 55%; width: 90px; animation-duration: 15s; animation-delay: 6s; }
@keyframes shooting-star {
  0%, 82% { opacity: 0; transform: rotate(18deg) translateX(0); }
  85% { opacity: 1; }
  92% { opacity: 0; transform: rotate(18deg) translateX(420px); }
  100% { opacity: 0; transform: rotate(18deg) translateX(420px); }
}

.footer__grid { display: grid; grid-template-columns: repeat(4, 288px); gap: 24px; padding-bottom: 40px; }
.footer__brand { position: relative; }
.footer__brand > img:first-child { width: 201px; height: 70px; margin-left: -4.4px; }
/* A little star bobbing beside the logo */
.footer__float-star {
  position: absolute;
  top: -6px;
  left: 214px;
  width: 30px;
  height: auto;
  animation: star-float 4s ease-in-out infinite;
}
@keyframes star-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-8px) rotate(10deg); }
}
.footer__tagline { margin-top: 24px; font-size: var(--fs-md); font-weight: 700; line-height: 24px; color: #fff; }
.footer__sub { margin-top: 12px; font-size: var(--fs-base); line-height: 20px; color: #BDBDB7; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  display: block;
  border-radius: 50%;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.footer__social a:hover, .footer__social a:focus-visible {
  transform: translateY(-4px) rotate(-8deg);
  box-shadow: 0 0 0 3px var(--yellow);
}
.footer__social img { width: 40px; height: 40px; max-width: none; }
.footer h4 {
  position: relative;
  margin-top: 12px;
  padding-bottom: 12px;
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 24px;
  color: #fff;
}
/* Short yellow underline under each column heading */
.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
}
.footer ul { margin-top: 12px; }
.footer li { font-size: var(--fs-base); line-height: 32px; }
/* Links slide right and gain a little star on hover */
.footer ul:not(.footer__contact) a {
  position: relative;
  display: inline-block;
  transition: color .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.footer ul:not(.footer__contact) a::before {
  content: "★";
  position: absolute;
  left: -16px;
  color: var(--yellow);
  font-size: 11px;
  opacity: 0;
  transform: scale(.4) rotate(-45deg);
  transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.footer ul:not(.footer__contact) a:hover,
.footer ul:not(.footer__contact) a:focus-visible { color: var(--yellow); transform: translateX(14px); }
.footer ul:not(.footer__contact) a:hover::before,
.footer ul:not(.footer__contact) a:focus-visible::before { opacity: 1; transform: none; }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; line-height: 24px; margin-bottom: 14px; }
.footer__contact svg { flex: 0 0 18px; margin-top: 3px; color: var(--yellow); }
.footer__contact a { transition: color .2s ease; }
.footer__contact a:hover { color: var(--yellow); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  border-top: 1px solid #3A3A37;
  font-size: var(--fs-sm);
  line-height: 20px;
}
.footer__legal { align-items: center; }
.footer__legal a { transition: color .2s ease; }
/* Back to top: the rocket lifts off on hover */
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 16px;
  border: 1px solid #4A4A46;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  transition: border-color .2s ease;
}
.footer__top img { width: 24px; height: auto; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.footer__top:hover { border-color: var(--yellow); }
.footer__top:hover img { transform: translateY(-6px) rotate(12deg); }
@media (prefers-reduced-motion: reduce) {
  .footer__sky, .footer__float-star { animation: none; }
  .footer__sky { display: none; }
  .footer__social a, .footer ul a, .footer ul a::before, .footer__top img { transition: none; }
  .footer__social a:hover, .footer ul:not(.footer__contact) a:hover, .footer__top:hover img { transform: none; }
}

/* fine vertical alignment of headings to the artboard */
.form-card__title { position: relative; top: -3px; }
.contact__form { padding-top: 32px; }
.why .section-title { position: relative; top: -3px; }
.programs .section-title { position: relative; top: -4px; }
.testimonials .section-title,
.blogs .section-title,
.contact .section-title { position: relative; top: -7px; }

/* The star flies down the page (js/main.js); the "Little star" lettering stays in the sky. */
.sky__little-star { overflow: visible; }
.star-traveler {
  position: absolute;
  left: 0;
  top: 0;
  width: 778px;
  height: 778px;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
  transform-origin: 0 0;
}
html.js .star-traveler { visibility: hidden; will-change: transform; }
html.js .star-traveler.is-positioned { visibility: visible; }
.star-write { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
html.js .star-write { stroke-dashoffset: 1; }
html.js .sky__little-star.is-landed .star-write {
  animation: star-handwriting .3s ease-in-out both;
}
html.js .sky__little-star.is-landed .star-write--star {
  animation-delay: .25s;
  animation-duration: .25s;
}
@keyframes star-handwriting {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .star-write { animation: none !important; stroke-dashoffset: 0; }
}

/* Text has no presence until the star has landed. */
html.js .sky__little-star:not(.is-landed) .star-lettering { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { html.js .sky__little-star .star-lettering { visibility: visible; } }


/* ==========================================================================
   Responsive layout for the whole site. >= 1260px keeps the original 1440px design;
   below that the layouts reflow (tablet <= 1259px, phone <= 767px).
   ========================================================================== */
:root { --heading-star: 72px; }
body { min-width: 0; overflow-x: clip; }
body .container { width: min(1200px, calc(100% - 32px)); }
.nav-toggle { display: none; }
body .footer__grid { grid-template-columns: repeat(4, minmax(0, 288px)); }

@media (max-width: 1259px) {
  :root { --heading-star: 60px; }
  body .container { width: calc(100% - 64px); }
  body .why .section-title { padding-left: calc(var(--heading-star) + 18px); }

  /* Header: logo + CTA + hamburger, links in a drop-down panel */
  body .topbar { height: auto; padding: 8px 0; line-height: 20px; }
  body .header { position: sticky; z-index: 50; }
  body .header__logo { left: 0; }
  body .header__cta { right: 64px; }
  body .nav-toggle {
    position: absolute; right: 0; top: 24px;
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 0;
    background: var(--cream); border: 1px solid var(--chip-line); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--blue-dark);
    transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }
  .header.is-open .nav-toggle span { background: transparent; }
  .header.is-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .header.is-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
  body .nav {
    position: absolute; left: -32px; right: -32px; top: 96px; height: auto;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 96px); overflow-y: auto;
    padding: 8px 32px 20px; background: #fff;
    border-top: 1px solid var(--chip-line); box-shadow: 0 18px 34px rgba(31, 31, 31, .14);
  }
  body .header.is-open .nav { display: flex; }
  body .nav > a, body .nav__item > a { padding: 12px 4px; font-size: var(--fs-md); }
  body .nav__item { display: block; height: auto; }
  body .nav__menu {
    position: static; display: none; min-width: 0; padding: 0 0 8px 16px;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  body .nav__item.is-open .nav__menu { display: block; }
  body .nav__dropdown { display: flex; align-items: center; justify-content: space-between; }
  body .nav__caret { transition: transform .2s ease; }
  body .nav__item.is-open .nav__caret { transform: rotate(180deg); }
  body .nav__menu a { padding: 8px 4px; font-size: var(--fs-base); }


  /* The artwork and character scale together as one composition. */
  body .hero__inner { grid-template-columns: 1fr 1fr; gap: 12px; min-height: 490px; padding: 36px 0 56px; }
  body .hero__content { padding-left: 0; }
  body .hero__visual { width: 118%; }
  body .hero__title { font-size: clamp(39px, 4.6vw, 58px); }
  body .hero__sub { font-size: var(--fs-lg); }

  /* Sky */
  body .sky { --sky-star: clamp(300px, 56vw, 560px); height: auto; padding: calc(var(--sky-star) * .72) 32px 64px; }
  body .sky__little-star {
    width: var(--sky-star); height: var(--sky-star);
    left: calc(50% - var(--sky-star) / 2); top: calc(var(--sky-star) * -.1);
  }
  body .sky__text, body .sky__quote { position: relative; left: auto; top: auto; width: auto; max-width: 760px; margin: 0 auto; padding-top: 0; }
  body .sky__text { font-size: var(--fs-lg); line-height: 1.5; }
  body .sky__text br { display: none; }
  body .sky__text p + p { margin-top: 20px; }
  body .sky__quote { margin-top: 32px; font-size: var(--fs-xl); line-height: 1.4; }

  /* Card grids */
  body .why__grid, body .programs__grid, body .testimonials__grid, body .blogs__grid {
    grid-template-columns: repeat(2, 1fr); gap: 20px;
  }
  body .why-card { min-height: 118px; padding: 20px 22px; }
  body .program-card, body .blog-card, body .testimonial-card { height: auto; }
  body .program-card__body { padding: 36px 24px 30px; }
  body .blog-card__body { padding: 22px 24px 26px; }
  body .testimonials__grid { margin-top: 40px; }
  body .testimonials__grid .testimonial-card:nth-child(2) { translate: none; }
  body .testimonial-card { min-height: 0; }

  body .curriculum { height: auto; padding: 64px 0; }
  body .curriculum__inner { height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
  body .curriculum__content { position: static; width: auto; height: auto; }

  body .founder { height: auto; padding: 64px 0 0; }
  body .founder__inner { gap: 40px; }
  body .founder__content { width: auto; flex: 1; padding-bottom: 64px; }
  body .founder__visual { flex: 0 0 360px; width: 360px; height: 460px; }
  body .founder__visual::before { width: 340px; height: 340px; bottom: -110px; }
  body .founder__photo { width: 400px; bottom: -110px; }
  body .founder__name { font-size: var(--fs-3xl); line-height: 48px; }

  body .gallery__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  body .gallery__tile { height: 190px; }
  body .gallery__grid .gallery__big { grid-column: 1 / -1; grid-row: auto; height: 300px; }

  body .contact__inner { flex-wrap: wrap; gap: 40px; }
  body .contact__info { width: auto; flex: 1 1 400px; }
  body .contact__map { width: 100%; }
  body .contact__form { width: auto; flex: 1 1 360px; }

  body .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; padding-bottom: 40px; }
  body .footer__bottom { padding: 20px 0 32px; gap: 12px; }
}

@media (max-width: 767px) {
  :root { --heading-star: 44px; }
  body .hero__inner { grid-template-columns: 1fr; gap: 0; padding: 32px 0 20px; }
  body .hero__title { font-size: clamp(36px, 9.5vw, 48px); line-height: 1.16; letter-spacing: -.6px; }
  body .hero__sub { font-size: var(--fs-md); line-height: 24px; }
  body .hero__visual { width: min(106%, 500px); margin: 6px -3% 0; }
  body .hero__actions { margin-top: 24px; }
  body .container { width: calc(100% - 32px); }
  body .topbar__inner { justify-content: center; text-align: center; font-size: var(--fs-xs); }
  body .topbar__tagline { display: none; }
  body .header, body .header__inner { height: 76px; }
  body .header__logo { top: 12px; }
  body .header__logo img { width: 128px; height: auto; }
  body .header__cta { top: 17px; right: 56px; width: auto; height: 42px; padding: 0 16px; font-size: var(--fs-sm); }
  body .nav-toggle { top: 14px; width: 44px; height: 44px; }
  body .nav { top: 76px; left: -16px; right: -16px; padding: 8px 16px 20px; }

  body .section-title { font-size: var(--fs-2xl); line-height: 40px; text-align: left; }
  body .why .section-title { padding-left: calc(var(--heading-star) + 14px); }

  body .sky { --sky-star: min(92vw, 340px); padding: calc(var(--sky-star) * .72) 20px 48px; }
  body .sky__text { font-size: var(--fs-md); }
  body .sky__quote { font-size: var(--fs-lg); }

  body .why, body .programs, body .gallery, body .testimonials, body .blogs { padding: 56px 0; }
  body .contact { padding: 56px 0; }
  body .why__grid, body .programs__grid, body .testimonials__grid, body .blogs__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  body .why-card h3 { font-size: var(--fs-lg); }
  body .blog-card img { height: 200px; }
  body .blog-card h3 { font-size: var(--fs-xl); line-height: 32px; }

  body .curriculum { padding: 48px 0; }
  body .curriculum__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body .learning-film { border-radius: 18px; }
  body .curriculum__content > p { font-size: var(--fs-md); }

  body .founder { padding: 48px 0 0; }
  body .founder__inner { flex-direction: column; align-items: stretch; gap: 32px; }
  body .founder__name { width: auto; font-size: clamp(var(--fs-xl), 8.5vw, var(--fs-2xl)); line-height: 44px; }
  body .founder__content { padding-bottom: 0; }
  body .founder__visual { flex: none; width: 100%; height: 380px; }
  body .founder__visual::before { width: 300px; height: 300px; bottom: -100px; }
  body .founder__photo { width: 340px; bottom: -100px; }

  body .gallery__head { gap: 12px; }
  body .gallery__grid { gap: 12px; margin-top: 24px; }
  body .gallery__tile { height: 140px; border-width: 6px; border-radius: 18px; }
  body .gallery__grid .gallery__big { height: 220px; }

  body .contact__inner { flex-direction: column; gap: 32px; }
  body .contact__info, body .contact__form { width: 100%; flex: none; }
  body .contact__form { padding: 24px 20px; }
  body .contact__map { height: 220px; }
  body .field-row { grid-template-columns: 1fr; gap: 0; }

  body .footer { padding-top: 40px; }
  body .footer__grid { grid-template-columns: 1fr; }
  body .footer__bottom { flex-direction: column; align-items: flex-start; }
  body .footer__legal { flex-wrap: wrap; gap: 8px 20px; }
}

/* ---------- Light grey crayon-on-paper texture (white sections and inner-page banners) ---------- */
.why, .curriculum, .gallery, .blogs, .page-banner, .section--white { position: relative; isolation: isolate; }
.why::before, .curriculum::before, .gallery::before, .blogs::before, .page-banner::before, .section--white::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #7A7A74;
  opacity: .09;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E %3Cfilter id='t' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='11' stitchTiles='stitch'/%3E %3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 2.05'/%3E %3C/filter%3E %3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.012 .7' numOctaves='2' seed='5' stitchTiles='stitch' result='n'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='n' scale='7' xChannelSelector='R' yChannelSelector='G' result='d'/%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='2' seed='9' stitchTiles='stitch' result='b'/%3E %3CfeColorMatrix in='b' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 4.6' result='m'/%3E %3CfeComposite in='d' in2='m' operator='in'/%3E %3C/filter%3E %3Crect width='360' height='360' filter='url(%23t)'/%3E %3Cg filter='url(%23s)' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M0 0 L-360 360'/%3E%3Cpath d='M18 0 L-342 360'/%3E%3Cpath d='M36 0 L-324 360'/%3E%3Cpath d='M54 0 L-306 360'/%3E%3Cpath d='M72 0 L-288 360'/%3E%3Cpath d='M90 0 L-270 360'/%3E%3Cpath d='M108 0 L-252 360'/%3E%3Cpath d='M126 0 L-234 360'/%3E%3Cpath d='M144 0 L-216 360'/%3E%3Cpath d='M162 0 L-198 360'/%3E%3Cpath d='M180 0 L-180 360'/%3E%3Cpath d='M198 0 L-162 360'/%3E%3Cpath d='M216 0 L-144 360'/%3E%3Cpath d='M234 0 L-126 360'/%3E%3Cpath d='M252 0 L-108 360'/%3E%3Cpath d='M270 0 L-90 360'/%3E%3Cpath d='M288 0 L-72 360'/%3E%3Cpath d='M306 0 L-54 360'/%3E%3Cpath d='M324 0 L-36 360'/%3E%3Cpath d='M342 0 L-18 360'/%3E%3Cpath d='M360 0 L0 360'/%3E%3Cpath d='M378 0 L18 360'/%3E%3Cpath d='M396 0 L36 360'/%3E%3Cpath d='M414 0 L54 360'/%3E%3Cpath d='M432 0 L72 360'/%3E%3Cpath d='M450 0 L90 360'/%3E%3Cpath d='M468 0 L108 360'/%3E%3Cpath d='M486 0 L126 360'/%3E%3Cpath d='M504 0 L144 360'/%3E%3Cpath d='M522 0 L162 360'/%3E%3Cpath d='M540 0 L180 360'/%3E%3Cpath d='M558 0 L198 360'/%3E%3Cpath d='M576 0 L216 360'/%3E%3Cpath d='M594 0 L234 360'/%3E%3Cpath d='M612 0 L252 360'/%3E%3Cpath d='M630 0 L270 360'/%3E%3Cpath d='M648 0 L288 360'/%3E%3Cpath d='M666 0 L306 360'/%3E%3Cpath d='M684 0 L324 360'/%3E%3Cpath d='M702 0 L342 360'/%3E%3Cpath d='M720 0 L360 360'/%3E%3C/g%3E %3C/svg%3E") 0 0 / 360px 360px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E %3Cfilter id='t' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='11' stitchTiles='stitch'/%3E %3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 2.05'/%3E %3C/filter%3E %3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.012 .7' numOctaves='2' seed='5' stitchTiles='stitch' result='n'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='n' scale='7' xChannelSelector='R' yChannelSelector='G' result='d'/%3E %3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='2' seed='9' stitchTiles='stitch' result='b'/%3E %3CfeColorMatrix in='b' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 4.6' result='m'/%3E %3CfeComposite in='d' in2='m' operator='in'/%3E %3C/filter%3E %3Crect width='360' height='360' filter='url(%23t)'/%3E %3Cg filter='url(%23s)' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M0 0 L-360 360'/%3E%3Cpath d='M18 0 L-342 360'/%3E%3Cpath d='M36 0 L-324 360'/%3E%3Cpath d='M54 0 L-306 360'/%3E%3Cpath d='M72 0 L-288 360'/%3E%3Cpath d='M90 0 L-270 360'/%3E%3Cpath d='M108 0 L-252 360'/%3E%3Cpath d='M126 0 L-234 360'/%3E%3Cpath d='M144 0 L-216 360'/%3E%3Cpath d='M162 0 L-198 360'/%3E%3Cpath d='M180 0 L-180 360'/%3E%3Cpath d='M198 0 L-162 360'/%3E%3Cpath d='M216 0 L-144 360'/%3E%3Cpath d='M234 0 L-126 360'/%3E%3Cpath d='M252 0 L-108 360'/%3E%3Cpath d='M270 0 L-90 360'/%3E%3Cpath d='M288 0 L-72 360'/%3E%3Cpath d='M306 0 L-54 360'/%3E%3Cpath d='M324 0 L-36 360'/%3E%3Cpath d='M342 0 L-18 360'/%3E%3Cpath d='M360 0 L0 360'/%3E%3Cpath d='M378 0 L18 360'/%3E%3Cpath d='M396 0 L36 360'/%3E%3Cpath d='M414 0 L54 360'/%3E%3Cpath d='M432 0 L72 360'/%3E%3Cpath d='M450 0 L90 360'/%3E%3Cpath d='M468 0 L108 360'/%3E%3Cpath d='M486 0 L126 360'/%3E%3Cpath d='M504 0 L144 360'/%3E%3Cpath d='M522 0 L162 360'/%3E%3Cpath d='M540 0 L180 360'/%3E%3Cpath d='M558 0 L198 360'/%3E%3Cpath d='M576 0 L216 360'/%3E%3Cpath d='M594 0 L234 360'/%3E%3Cpath d='M612 0 L252 360'/%3E%3Cpath d='M630 0 L270 360'/%3E%3Cpath d='M648 0 L288 360'/%3E%3Cpath d='M666 0 L306 360'/%3E%3Cpath d='M684 0 L324 360'/%3E%3Cpath d='M702 0 L342 360'/%3E%3Cpath d='M720 0 L360 360'/%3E%3C/g%3E %3C/svg%3E") 0 0 / 360px 360px repeat;
}

/* ---------- Site-wide polish ---------- */
/* Brand-yellow text selection and a clear focus ring for keyboard users */
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Buttons: one consistent lift, and any arrow nudges forward on hover */
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 31, 31, .14); }
.btn > span[aria-hidden="true"] { display: inline-block; transition: translate .2s ease; }
.btn:hover > span[aria-hidden="true"] { translate: 4px 0; }

/* Pages fade in softly when they open */
@keyframes page-in { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  body { animation: page-in .45s ease-out both; }
}

/* Floating WhatsApp button: always within reach, label slides out on hover */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 15px;
  border-radius: 999px;
  background: #0F7D3E;
  color: #fff;
  box-shadow: 0 10px 26px rgba(18, 90, 45, .35);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease, visibility .25s;
}
.wa-float svg { flex: 0 0 28px; }
.wa-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 800;
  transition: max-width .35s ease, margin .35s ease;
}
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 140px; margin-left: 10px; }
/* A soft pulse ring a few times after the page opens */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #0F7D3E;
  animation: wa-pulse 2.4s ease-out 1.2s 3;
  opacity: 0;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}
/* Step aside for the open mobile menu and the footer's bottom bar */
.header.is-open ~ .wa-float,
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
@media (max-width: 767px) {
  .wa-float { right: 16px; bottom: 16px; height: 54px; padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float__label, .btn > span[aria-hidden="true"] { transition: none; }
  .wa-float::before { animation: none; }
  .wa-float:hover, .wa-float:focus-visible, .btn:hover { transform: none; }
}

/* ---------- Scroll reveal (classes added by js/main.js) ---------- */
.reveal {
  opacity: 0;
  translate: 0 28px;
}
/* Only the way in is animated; hiding is instant so nothing visibly fades out.
   Opacity and translate only: both run on the GPU compositor, so scrolling stays smooth. */
.reveal.is-revealed {
  opacity: 1; translate: none;
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), translate .9s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; transition: none; }
}
