/* Tots & Friends Childcare Centre — shared styles
   Design idea: the logo's rainbow. Six bands = six core values.
   Arch shapes repeat across the site (photos, tiles, gauges). */

:root {
  --paper: #fbf5ea;
  --paper-2: #f3e9d8;
  --card: #fffdf8;
  --ink: #1d1930;
  --ink-2: #4b4560;
  --ink-3: #736c88;
  --cream: #f6f1e7;
  --cream-2: rgba(246, 241, 231, .72);
  --line: rgba(29, 25, 48, .12);

  /* bright brand rainbow (shapes, fills) */
  --red: #e2474b;
  --orange: #f39237;
  --yellow: #f7c548;
  --green: #2f9e5a;
  --blue: #2c70d0;
  --purple: #6b4bc7;
  --pink: #e0458e;

  /* deeper tones for text on paper (meet 3:1 large / 4.5:1 body) */
  --red-d: #c4363a;
  --orange-d: #c25e12;
  --gold-d: #a87700;
  --green-d: #23864a;
  --blue-d: #2563c4;
  --purple-d: #6142bd;
  --pink-d: #c7337a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;

  --step--1: clamp(.84rem, .8rem + .15vw, .94rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1: clamp(1.18rem, 1.08rem + .5vw, 1.5rem);
  --step-2: clamp(1.45rem, 1.25rem + 1vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3.1rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);
  --step-5: clamp(2.8rem, 1.8rem + 4.8vw, 5.8rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
  --shadow: 0 1px 2px rgba(29, 25, 48, .06), 0 18px 40px -18px rgba(29, 25, 48, .28);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --rainbow: linear-gradient(90deg, var(--red) 0 16.66%, var(--orange) 0 33.33%, var(--yellow) 0 50%, var(--green) 0 66.66%, var(--blue) 0 83.33%, var(--purple) 0);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .19 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::after { /* paper grain */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: var(--grain); opacity: .55;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}
p, ul, ol, figure, blockquote, address { margin: 0; }
p { text-wrap: pretty; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700;
}
.skip:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 76px); }
.section-head h2 { font-size: var(--step-4); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head-row .section-head { margin-bottom: 0; }
em.accent { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.5em;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 var(--step-0)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: translate .35s var(--ease-spring), box-shadow .35s var(--ease-out), background-color .2s, color .2s;
}
.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0 1px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.btn-primary:hover { box-shadow: 6px 6px 0 var(--yellow); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-wa { background: #25d366; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-wa:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn-light { background: var(--cream); color: var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.btn-outline-light { border-color: var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--ink); }
.btn-sm { min-height: 44px; padding: .6em 1.2em; font-size: .95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow .i { transition: translate .3s var(--ease-spring); }
.link-arrow:hover .i { translate: 4px 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.brand { display: block; flex: none; border-radius: 12px; }
.brand img { height: 54px; width: auto; }
.nav-links {
  display: flex; gap: 2px; padding: 6px; list-style: none; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 78%, transparent); box-shadow: inset 0 0 0 1px var(--line);
}
.nav-links a {
  display: block; padding: .62em 1.15em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(29, 25, 48, .06); }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }
.menu-btn {
  display: none; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff; cursor: pointer;
}
@media (max-width: 920px) {
  .nav { height: 72px; }
  .brand img { height: 46px; }
  .nav nav, .nav-cta { display: none; }
  .menu-btn { display: grid; }
  .sound-btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .sound-btn span { display: none; }
}

/* sound toggle (header) */
.nav-end { display: flex; align-items: center; gap: 10px; }
.sound-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 13px;
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--ink);
  background: color-mix(in srgb, var(--card) 78%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  transition-property: background-color, box-shadow, scale; transition-duration: .2s;
}
.sound-btn:hover { background: var(--card); }
.sound-btn:active { scale: .94; }
.sound-btn { transition-property: background-color, box-shadow, scale; transition-duration: .2s, .2s, .5s; transition-timing-function: ease, ease, var(--ease-spring); }
[data-sound][aria-pressed="true"] .off, [data-sound][aria-pressed="false"] .on { display: none; }

/* mobile menu: native popover */
#menu {
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  padding: 16px var(--gutter) 32px; background: var(--paper); color: var(--ink);
}
#menu:popover-open { display: flex; flex-direction: column; animation: menuIn .45s var(--ease-out); }
@keyframes menuIn { from { opacity: 0; translate: 0 -12px; } }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.menu-top img { height: 46px; width: auto; }
.menu-links { list-style: none; padding: 0; margin: auto 0; display: grid; gap: 4px; }
.menu-links a {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0;
  font: 600 clamp(2.2rem, 11vw, 3.4rem)/1.05 var(--font-display); font-variation-settings: "SOFT" 100;
  text-decoration: none; letter-spacing: -.02em;
}
.menu-links a { align-items: center; }
.menu-links .mark { width: 30px; height: 15px; border-radius: 15px 15px 0 0; }
.menu-foot { display: grid; gap: 14px; justify-items: start; color: var(--ink-2); }

/* ---------- HERO ---------- */
.hero {
  --px: 0; --py: 0; --sy: 0;
  position: relative; isolation: isolate;
  min-height: 100svh; padding: 88px 0 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background:
    radial-gradient(110% 60% at 50% 100%, #ffecc8 0%, rgba(255, 236, 200, 0) 62%),
    radial-gradient(70% 55% at 50% 0%, #fffaf1 0%, rgba(255, 250, 241, 0) 70%),
    var(--paper);
}
.stage {
  position: relative;
  width: min(100%, 1500px, calc((100svh - 128px) * 1.875));
  aspect-ratio: 1200 / 640;
  margin: 0 auto;
  container-type: inline-size;
}
.art { position: absolute; inset: 0; container-type: inline-size; }
.rainbow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.band {
  translate: calc(var(--px) * var(--d) * -1px) calc(var(--py) * var(--d) * -1px + var(--sy) * var(--d) * 16px);
  transition: translate .9s var(--ease-out), opacity .35s;
  filter: drop-shadow(0 5px 4px rgba(29, 25, 48, .13));
}
.band path {
  fill: none; stroke-width: 33;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.9s var(--ease-out) forwards;
  animation-delay: calc(.2s + var(--i) * .11s);
  transition: stroke-width .35s var(--ease-spring);
}
.band text {
  font: 800 12.5px var(--font-body); letter-spacing: .34em;
  opacity: 0; animation: fadeIn .9s ease forwards; animation-delay: calc(1.5s + var(--i) * .09s);
  pointer-events: none;
}
.band:hover path { stroke-width: 39; }
.rainbow:has(.band:hover) .band:not(:hover) { opacity: .4; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.cloud {
  translate: calc(var(--px) * var(--d) * 1px) calc(var(--py) * var(--d) * .6px);
  transition: translate 1s var(--ease-out);
}
.cloud-bob {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: puff 1s var(--ease-spring) .9s backwards, bob 6s ease-in-out 2s infinite alternate;
}
@keyframes puff { from { scale: .3; opacity: 0; } }
@keyframes bob { to { translate: 0 -7px; } }
.spark {
  transform-box: fill-box; transform-origin: center;
  animation: twinkle 3.4s ease-in-out infinite; animation-delay: var(--t);
}
@keyframes twinkle { 0%, 100% { scale: .35; opacity: .25; } 50% { scale: 1; opacity: 1; } }

.polaroid {
  --tx: calc(var(--px) * var(--d) * 1px);
  --ty: calc(var(--py) * var(--d) * 1px - var(--sy) * var(--d) * 9px);
  position: absolute; z-index: 2; width: var(--w);
  padding: .75cqi .75cqi 0;
  background: #fffdf9; border-radius: .5cqi;
  box-shadow: 0 1px 1px rgba(29, 25, 48, .08), 0 2cqi 3.2cqi -1.2cqi rgba(29, 25, 48, .34);
  rotate: var(--rot); translate: var(--tx) var(--ty);
  transition: translate 1s var(--ease-out), rotate .5s var(--ease-spring), scale .5s var(--ease-spring);
  animation: drop 1.15s var(--ease-spring) var(--delay) backwards;
}
.polaroid:hover { rotate: 0deg; scale: 1.07; z-index: 4; }
.polaroid::before { /* washi tape */
  content: ""; position: absolute; top: -1.1cqi; left: 50%; width: 6.5cqi; height: 2.1cqi;
  translate: -50% 0; rotate: -5deg;
  background: color-mix(in srgb, var(--tape) 62%, transparent);
  box-shadow: 0 1px 2px rgba(29, 25, 48, .1);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .3cqi; background: var(--paper-2); }
.polaroid figcaption { padding: .55cqi 0 .8cqi; text-align: center; font: 600 max(14px, 1.75cqi)/1 var(--font-hand); color: var(--ink-2); }
@keyframes drop { from { opacity: 0; scale: .55; } }

.p1 { --w: 13cqi; left: 1.5cqi; top: 3cqi; --rot: -7deg; --d: 22; --delay: 1.1s; --tape: var(--yellow); }
.p2 { --w: 10.5cqi; left: 12.5cqi; top: 16cqi; --rot: 5deg; --d: 36; --delay: 1.28s; --tape: var(--blue); }
.p3 { --w: 13cqi; right: 1.5cqi; top: 2.5cqi; --rot: 6deg; --d: 26; --delay: 1.18s; --tape: var(--pink); }
.p4 { --w: 10.5cqi; right: 12.5cqi; top: 16.5cqi; --rot: -4deg; --d: 32; --delay: 1.36s; --tape: var(--green); }

.sticker {
  --d: 44;
  position: absolute; z-index: 3; right: 3.2cqi; top: 33cqi; width: 9.6cqi;
  rotate: -8deg;
  translate: calc(var(--px) * var(--d) * 1px) calc(var(--py) * var(--d) * 1px - var(--sy) * 300px);
  transition: translate 1s var(--ease-out);
  animation: drop 1s var(--ease-spring) 1.6s backwards;
  filter: drop-shadow(0 .8cqi 1cqi rgba(29, 25, 48, .25));
}
.sticker svg { width: 100%; height: auto; display: block; }
.sticker .ring { transform-origin: 100px 100px; animation: spin 22s linear infinite; }
.sticker .leaf { transform-box: fill-box; animation: grow .9s var(--ease-spring) backwards; }
.sticker .leaf-l { transform-origin: 100% 100%; animation-delay: 2.2s; }
.sticker .leaf-r { transform-origin: 0% 100%; animation-delay: 2.35s; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes grow { from { scale: 0; } }

.hero-copy {
  position: absolute; z-index: 2; left: 50%; bottom: 2.3cqi;
  width: 58cqi; display: grid; justify-items: center; gap: 1.35cqi; text-align: center;
  translate: -50% calc(var(--sy) * -90px);
  opacity: calc(1 - var(--sy) * 1.7);
}
.hero-title {
  font-size: 6cqi; line-height: .98; font-weight: 560; letter-spacing: -.04em;
}
.hero-title .line { display: block; animation: rise 1s var(--ease-out) backwards; }
.hero-title .line:nth-child(1) { animation-delay: .65s; }
.hero-title .line:nth-child(2) { animation-delay: .8s; }
.rw { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 640; white-space: nowrap; }
.rw .l { display: inline-block; color: var(--c); animation: pop .7s var(--ease-spring) backwards; animation-delay: calc(1.35s + var(--n) * .07s); }
.hero-title:hover .rw .l { animation: hop .6s var(--ease-spring); animation-delay: calc(var(--n) * .05s); }
@keyframes rise { from { opacity: 0; translate: 0 .45em; filter: blur(8px); } }
@keyframes pop { from { opacity: 0; translate: 0 .5em; scale: .4; } }
@keyframes hop { 40% { translate: 0 -.18em; } }
.hero-sub { max-width: 45cqi; font-size: max(15px, 1.42cqi); line-height: 1.55; color: var(--ink-2); animation: rise 1s var(--ease-out) 1s backwards; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1cqi; margin-top: .5cqi; animation: rise 1s var(--ease-out) 1.15s backwards; }
.hero-ctas .btn { font-size: max(15px, 1.2cqi); min-height: max(48px, 4.2cqi); padding-inline: max(22px, 2.1cqi); }
.hero-ctas .btn-ghost { background: color-mix(in srgb, var(--card) 70%, transparent); }

.sound-hint { /* paper tag pinned beside the rainbow */
  position: absolute; z-index: 3; left: 1.5cqi; top: 35.5cqi; width: 15cqi;
  padding: .9cqi 1.1cqi; border: 0; border-radius: 4px; cursor: pointer; text-align: left;
  background: #fffdf6; color: var(--ink-2); font: 600 max(15px, 1.55cqi)/1.1 var(--font-hand);
  rotate: -5deg; box-shadow: 0 1cqi 1.6cqi -.8cqi rgba(29, 25, 48, .4);
  animation: drop 1s var(--ease-spring) 1.8s backwards;
  transition-property: rotate, scale; transition-duration: .4s; transition-timing-function: var(--ease-spring);
}
.sound-hint:hover { rotate: 0deg; scale: 1.05; }
.sound-hint[aria-pressed="true"] { color: var(--ink); }

/* hero, small or short screens: arch on top, words below */
@media (max-width: 999px), (max-height: 640px) {
  .hero { min-height: 0; padding: 78px 0 64px; justify-content: flex-start; }
  .stage { width: 100%; aspect-ratio: auto; }
  .art { position: relative; inset: auto; width: min(150vw, 900px); aspect-ratio: 1200 / 640; left: 50%; translate: -50% 0; }
  .band text { display: none; }
  .rainbow { clip-path: inset(-50% -50% 0 -50%); }
  .hero-copy {
    position: relative; left: auto; bottom: auto; width: auto; translate: none; opacity: 1;
    gap: 16px; padding: 4px var(--gutter) 0; margin-inline: auto; max-width: 40rem;
  }
  .hero-title { font-size: clamp(2.7rem, 11vw, 4.6rem); }
  .hero-sub { font-size: var(--step-0); max-width: 34rem; }
  .hero-ctas { gap: 12px; }
  .hero-ctas .btn { font-size: 1rem; min-height: 52px; }
  .polaroid figcaption { font-size: max(13px, 1.9cqi); }
  .p1 { --w: 15cqi; left: 30.5cqi; top: auto; bottom: 1.5cqi; --rot: -10deg; }
  .p2 { --w: 16.5cqi; left: 41.75cqi; top: auto; bottom: 4.5cqi; --rot: 2deg; z-index: 3; }
  .p3 { --w: 15cqi; right: 30.5cqi; top: auto; bottom: 1.5cqi; --rot: 10deg; }
  .p4 { display: none; }
  .sticker { right: 19cqi; top: 5cqi; width: 12cqi; }
  .sound-hint { position: static; display: block; width: fit-content; margin: 18px auto 12px; padding: 10px 16px; font-size: 1.2rem; rotate: -2deg; }
}

/* ---------- ticker ---------- */
/* Keep the angled ticker full bleed without widening the page. */
.home-main { overflow-x: clip; }
.ticker {
  position: relative; z-index: 5; overflow: hidden;
  margin: -30px -3vw 0; padding: 18px 0; rotate: -1.6deg;
  background: var(--ink); color: var(--cream);
  box-shadow: 0 14px 30px -16px rgba(29, 25, 48, .6);
}
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; padding: 0; }
.ticker li {
  display: flex; align-items: center; gap: 30px; padding-right: 30px; white-space: nowrap;
  font: 500 var(--step-1)/1 var(--font-display); font-variation-settings: "SOFT" 100;
}
.ticker li svg { width: 20px; height: 20px; color: var(--c); }
@keyframes marquee { to { translate: -50% 0; } }

/* ---------- reveal on scroll ---------- */
html.js [data-reveal] { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); transition-delay: var(--rd, 0s); }
html.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- purpose / pillars ---------- */
.purpose-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.purpose-head { position: sticky; top: 120px; display: grid; gap: 22px; justify-items: start; }
.purpose-head h2 { font-size: var(--step-4); }
.pillars { list-style: none; padding: 0; display: grid; }
.pillar { display: grid; grid-template-columns: clamp(72px, 9vw, 128px) 1fr; gap: 20px; padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar-mark { /* double-ring arch in the pillar colour */
  width: clamp(72px, 8vw, 104px); aspect-ratio: 2 / 1; margin-top: 4px;
  background: radial-gradient(circle farthest-side at 50% 100%, transparent 0 34%, var(--c) 34% 56%, transparent 56% 70%, var(--c) 70% 100%, transparent 100%);
}
.pillar-tag { font: 700 var(--step--1)/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-bottom: 12px; }
.pillar h3 { font-size: var(--step-2); margin-bottom: 14px; }
.pillar p:last-child { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(56px, 8vw, 110px); }
.stat { padding: 26px 24px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.stat strong { font: 600 var(--step-3)/1 var(--font-display); font-variation-settings: "SOFT" 100; color: var(--c); letter-spacing: -.03em; }
.stat span { color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }

/* ---------- beliefs: a classroom pin-board ----------
   Each belief is a different kind of paper, pinned or taped,
   and carries proof from a real teacher, parent or event. */
.beliefs { padding-top: 0; }
.wall {
  list-style: none; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start;
  gap: clamp(36px, 4vw, 56px) clamp(22px, 3vw, 44px);
  padding: clamp(44px, 5vw, 76px) clamp(22px, 4vw, 60px) clamp(52px, 6vw, 92px);
  border-radius: clamp(22px, 4vw, 40px);
  background:
    var(--grain),
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .28), transparent 60%),
    #e2c697;
  box-shadow: inset 0 0 0 clamp(8px, 1vw, 12px) #c9a46a, inset 0 6px 30px rgba(92, 60, 20, .25), var(--shadow);
}
.note {
  --r: 0deg;
  position: relative; display: grid; gap: 12px;
  padding: 34px 26px 26px;
  background: var(--sheet, #fffdf6);
  rotate: var(--r);
  box-shadow: 0 1px 1px rgba(60, 40, 10, .14), 0 16px 24px -14px rgba(60, 40, 10, .55);
  transition: rotate .6s var(--ease-spring), scale .6s var(--ease-spring), transform .6s var(--ease-spring), box-shadow .5s var(--ease-out), filter .5s, opacity .4s;
}
html.js .note.in {
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), rotate .6s var(--ease-spring), scale .6s var(--ease-spring), transform .6s var(--ease-spring), box-shadow .5s var(--ease-out), filter .5s;
  transition-delay: var(--rd, 0s), var(--rd, 0s), 0s, 0s, 0s, 0s, 0s;
}
/* hover: the note peels off the board, the pin lifts, the rest of the wall settles back */
.note:hover { rotate: 0deg; scale: 1.035; transform: translateY(-10px); z-index: 2; box-shadow: 0 2px 2px rgba(60, 40, 10, .12), 0 36px 40px -18px rgba(60, 40, 10, .6); }
.wall:has(.note:hover) .note:not(:hover) { scale: .975; opacity: .78; }
.note:hover::before { translate: -50% -5px; }
.note::before { /* push-pin */
  transition: translate .5s var(--ease-spring);
  content: ""; position: absolute; z-index: 2; top: -9px; left: 50%; width: 22px; height: 22px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, rgba(255, 255, 255, .75) 0 3px, var(--c) 4px);
  box-shadow: 0 4px 4px -1px rgba(40, 20, 0, .45);
}
.note h3 { font-size: var(--step-2); line-height: 1.08; }
.note > p, .ticket > p { color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.note-band {
  display: flex; align-items: center; gap: 10px;
  font: 800 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--c-d);
}
.proof { margin-top: 6px; }
.proof blockquote { font: 600 1.42rem/1.18 var(--font-hand); color: #2a4b9b; }
.proof figcaption { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 700 .8rem/1.2 var(--font-body); color: var(--ink-3); }
.proof figcaption::before { content: ""; width: 18px; height: 2px; background: currentColor; }

/* paper types */
.note--lined {
  padding-left: 44px;
  background:
    linear-gradient(90deg, transparent 26px, rgba(226, 71, 75, .45) 26px 28px, transparent 28px),
    repeating-linear-gradient(to bottom, #fffdf6 0 31px, rgba(44, 112, 208, .14) 31px 32px);
}
.note--sticky { --sheet: #ffd9a8; }
.note--sticky::before, .note--fold::before { /* tape instead of a pin */
  width: 92px; height: 26px; top: -13px; border-radius: 2px; rotate: -4deg;
  background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(40, 20, 0, .15);
}
.note--sticky::after { /* curled corner */
  content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px;
  background: linear-gradient(135deg, #f2bd7a 50%, #e2c697 50%);
  box-shadow: -2px -2px 4px rgba(60, 40, 10, .12);
  transition: width .5s var(--ease-spring), height .5s var(--ease-spring);
}
.note--sticky:hover::after { width: 50px; height: 50px; }
.note--card { border-top: 16px solid var(--yellow); padding-top: 28px; }
.note--card::before { top: -17px; }
.note--fold { --sheet: #e6f4e8; }
.note--sky { --sheet: #e4eefc; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: -2px 0 0; }
.tags li { padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--yellow) 32%, #fff); font-size: .8rem; font-weight: 700; }
.ping { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 6px 14px -8px rgba(29, 25, 48, .35); font-size: .82rem; color: var(--ink-3); }
.ping img { width: 34px; height: 34px; border-radius: 9px; }
.ping strong { display: block; color: var(--ink); font-size: .9rem; }

/* ticket stub (belonging) */
.note--ticket { padding: 0; background: none; box-shadow: none; filter: drop-shadow(0 14px 14px rgba(60, 40, 10, .35)); }
.note--ticket:hover { box-shadow: none; filter: drop-shadow(0 26px 20px rgba(60, 40, 10, .38)); }
.ticket {
  display: grid; gap: 12px; padding: 34px 34px 26px;
  background: var(--purple-d); color: #fff;
  -webkit-mask: radial-gradient(circle 12px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket .note-band, .ticket > p { color: rgba(255, 255, 255, .86); }
.ticket .mark { background: #fff; }
.stub { margin-top: 8px; padding-top: 16px; border-top: 2px dashed rgba(255, 255, 255, .45); font-size: .88rem; }
.stub strong { display: block; color: #fff; font: 600 1.15rem/1.2 var(--font-display); margin-bottom: 4px; }

.wall > :nth-child(2) { margin-top: 26px; }
.wall > :nth-child(5) { margin-top: -10px; }

@media (max-width: 1000px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall > :nth-child(n) { margin-top: 0; }
}
@media (max-width: 640px) {
  .wall { grid-template-columns: 1fr; gap: 40px; }
  .note { rotate: calc(var(--r) / 2); }
}

/* ---------- programmes (dark island) ---------- */
.island {
  margin-inline: clamp(0px, 1.6vw, 24px);
  border-radius: clamp(28px, 5vw, 64px);
  background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden; isolation: isolate;
}
.island .lede { color: var(--cream-2); }
.island::before { /* faint rainbow glow */
  content: ""; position: absolute; z-index: -1; width: 70vw; aspect-ratio: 1; right: -30vw; top: -35vw; border-radius: 50%;
  background: radial-gradient(circle, transparent 46%, rgba(107, 75, 199, .2) 50%, rgba(44, 112, 208, .16) 56%, rgba(47, 158, 90, .13) 62%, rgba(247, 197, 72, .12) 68%, rgba(243, 146, 55, .12) 74%, rgba(226, 71, 75, .13) 80%, transparent 84%);
}
.prog { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.prog-tabs { display: grid; gap: 6px; }
.prog-tab {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center;
  padding: 20px 22px; border: 0; border-radius: 20px; background: transparent; text-align: left; cursor: pointer;
  transition: background-color .3s, translate .5s var(--ease-spring);
}
.prog-tab:hover { background: rgba(255, 255, 255, .05); }
.prog-tab .mark { transition: scale .5s var(--ease-spring), rotate .5s var(--ease-spring); }
@media (hover: hover) {
  .prog-tab:hover { translate: 6px 0; }
  .prog-tab:hover .mark { scale: 1.25; rotate: -8deg; }
}
.prog-tab[aria-selected="true"] { background: rgba(255, 255, 255, .09); }
.prog-tab::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 4px; border-radius: 4px; background: var(--c);
  scale: 1 0; transition: scale .45s var(--ease-out);
}
.prog-tab[aria-selected="true"]::before { scale: 1 1; }
.mark { width: 24px; height: 12px; border-radius: 12px 12px 0 0; background: var(--c); }
.prog-tab .mark { grid-row: span 2; }
.prog-tab .t { font: 600 var(--step-2)/1.1 var(--font-display); font-variation-settings: "SOFT" 100; }
.prog-tab .s { font-size: var(--step--1); color: var(--cream-2); }
.prog-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.prog-panel[hidden] { display: none; }
.prog-panel:not([hidden]) > * { animation: rise .7s var(--ease-out) backwards; }
.prog-panel:not([hidden]) > :nth-child(2) { animation-delay: .08s; }
.prog-panel h3 { font-size: var(--step-3); margin: 10px 0 18px; }
.prog-panel p.desc { color: var(--cream-2); font-size: var(--step-1); line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; background: rgba(255, 255, 255, .08); }
.chip .i { color: var(--c-l); }

.arch { border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px; }
.arch-frame { position: relative; isolation: isolate; }
.arch-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; translate: 16px 16px; background: var(--c); border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px; }
.arch-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px; background: rgba(255, 255, 255, .08); }

/* ---------- team ---------- */
.carousel-btns { display: flex; gap: 10px; }
.round-btn {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, scale .3s var(--ease-spring);
}
.round-btn:hover { background: var(--ink); color: #fff; }
.round-btn:active { scale: .92; }
.team-track {
  --edge: max(var(--gutter), (100vw - var(--wrap)) / 2);
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 310px); gap: 22px;
  list-style: none; margin: 0; padding: 12px var(--edge) 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.team-track::-webkit-scrollbar { display: none; }
.member { scroll-snap-align: start; display: grid; gap: 16px; align-content: start; }
.member-photo { aspect-ratio: 4 / 5; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, var(--paper)); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; transition: scale .7s var(--ease-out); }
.member:hover .member-photo img { scale: 1.05; }
.member h3 { font-size: var(--step-1); display: flex; align-items: center; gap: 10px; }
.member h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.member p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }

/* ---------- testimonials ---------- */
.voices { background: color-mix(in srgb, var(--yellow) 20%, var(--paper)); position: relative; }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.quote-grid > :nth-child(2) { margin-top: 56px; }
.quote {
  position: relative; display: grid; gap: 22px; padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.quote::before {
  content: "\201C"; position: absolute; top: -.18em; right: 20px;
  font: 600 7rem/1 var(--font-display); color: var(--c);
}
.quote blockquote { font: 400 var(--step-1)/1.5 var(--font-display); font-variation-settings: "SOFT" 100; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; font: 700 1.1rem var(--font-display); flex: none; }
.quote figcaption strong { display: block; }
.quote figcaption > span:last-child span { font-size: var(--step--1); color: var(--ink-3); }

/* ---------- CTA band ---------- */
.cta { padding-block: clamp(80px, 10vw, 140px); }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px; justify-items: start;
  padding: clamp(36px, 6vw, 88px); border-radius: clamp(28px, 5vw, 56px);
  background: var(--ink); color: var(--cream);
}
.cta-card h2 { font-size: var(--step-4); max-width: 14ch; }
.cta-card p { max-width: 46ch; color: var(--cream-2); font-size: var(--step-1); }
.cta-card .btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.cta-rainbow { position: absolute; z-index: -1; right: -6%; bottom: -2px; width: min(56%, 620px); opacity: .95; }
.cta-rainbow path { fill: none; stroke-width: 22; }
html.js .cta-rainbow path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out); transition-delay: calc(var(--i) * .1s); }
html.js .cta-card.in .cta-rainbow path { stroke-dashoffset: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); padding-top: clamp(56px, 8vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; padding-bottom: 56px; }
.f-brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.f-brand img { height: 74px; width: auto; }
.f-tag { font: 500 var(--step-2)/1.15 var(--font-display); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; max-width: 14ch; }
.f-h { font: 700 var(--step--1)/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer address, .site-footer p { color: var(--ink-2); }
.f-hours { margin-top: 14px; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--ink); color: #fff; text-decoration: none; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-3); }
.f-bottom p { color: var(--ink-3); }
.f-stripe { height: 8px; background: var(--rainbow); }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px;
  background: #25d366; color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 28px -8px rgba(18, 140, 70, .55);
  animation: drop .8s var(--ease-spring) 2.4s backwards;
  transition: translate .3s var(--ease-spring);
}
.wa-float:hover { translate: 0 -3px; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 640px) {
  .wa-float { padding: 14px; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- sub-page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(130px, 15vw, 190px) 0 clamp(56px, 7vw, 96px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.page-hero h1 { font-size: var(--step-5); margin: 20px 0 24px; letter-spacing: -.035em; }
.page-hero .lede { max-width: 40ch; }
.page-hero > .wrap > * { animation: rise 1s var(--ease-out) backwards; }

/* rainbow gauge (For Parents, Our Story) */
.gauge-art { position: relative; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge .track path { fill: none; stroke: var(--line); stroke-width: 13; }
.gauge .fill path { fill: none; stroke-width: 13; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gaugeIn 1.9s var(--ease-out) forwards; animation-delay: calc(.4s + var(--i) * .1s); }
@keyframes gaugeIn { to { stroke-dashoffset: var(--to, 0); } }
.gauge-num { position: absolute; left: 50%; bottom: 0; translate: -50% 0; text-align: center; width: 62%; }
.gauge-num strong { display: block; font: 600 clamp(3.2rem, 8vw, 6.2rem)/.9 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.04em; }
.gauge-num span { display: block; margin-top: 8px; font-size: var(--step--1); color: var(--ink-2); line-height: 1.4; }

.gauge-cap { margin-top: 18px; text-align: center; font-weight: 600; line-height: 1.5; color: var(--ink); text-wrap: balance; }
.gauge-cap span { display: block; margin-top: 6px; font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.quick { display: grid; gap: 12px; justify-items: start; }
.form-intro { color: var(--ink-2); margin-bottom: 28px; }

/* ---------- myths ---------- */
.myths { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.flip { perspective: 1600px; }
.flip-inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .85s var(--ease-out); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.face {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 18px; min-height: 360px;
  padding: clamp(26px, 3vw, 36px); border-radius: var(--radius);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.face-front { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.face-back { background: var(--c); color: var(--on, #fff); transform: rotateY(180deg); }
.tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font: 800 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.face-front .tag { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--ink); }
.face-back .tag { background: rgba(255, 255, 255, .2); }
.myth-emoji { font-size: 2.6rem; line-height: 1; }
.myth-q { font: 500 var(--step-2)/1.2 var(--font-display); font-variation-settings: "SOFT" 100; font-style: italic; }
.face-back p { line-height: 1.6; }
.face-back .src { font-size: var(--step--1); opacity: .85; }
.flip-btn {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 2px solid currentColor; background: transparent; cursor: pointer; font-weight: 700;
  transition: background-color .2s, color .2s;
}
.face-front .flip-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.face-back .flip-btn:hover { background: var(--on, #fff); color: var(--c); }

/* research stats */
.research-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.research { display: grid; gap: 12px; align-content: start; padding: 30px 26px; border-radius: 24px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.research strong, .gauge-num strong { font-variant-numeric: tabular-nums; }
.research strong { font: 600 clamp(2.8rem, 5vw, 4.2rem)/1 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--c-l); letter-spacing: -.03em; }
.research h3 { font: 700 var(--step-0)/1.35 var(--font-body); letter-spacing: 0; }
.research p { color: var(--cream-2); font-size: var(--step--1); }
.research .src { font-size: .78rem; color: rgba(246, 241, 231, .55); }
.sources { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.sources li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 8px; color: var(--ink-2); }
.sources li::before { content: counter(s, decimal-leading-zero); font-weight: 800; color: var(--ink-3); }
.sources a { font-weight: 600; color: var(--ink); text-underline-offset: 3px; }

/* ---------- timeline ---------- */
.tl { position: relative; }
.tl::before, .tl-fill { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; translate: -50% 0; border-radius: 6px; }
.tl::before { background: var(--line); }
.tl-fill {
  background: linear-gradient(var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
  clip-path: inset(0 0 calc((1 - var(--p, 0)) * 100%) 0 round 6px);
}
.tl-list { list-style: none; padding: 0; display: grid; gap: clamp(56px, 9vw, 130px); }
.tl-item { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; }
.tl-dot {
  grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%; background: var(--paper);
  box-shadow: inset 0 0 0 6px var(--line);
  transition: box-shadow .6s var(--ease-out), scale .6s var(--ease-spring);
}
.tl-item.in .tl-dot { box-shadow: inset 0 0 0 7px var(--c), 0 0 0 9px color-mix(in srgb, var(--c) 22%, transparent); scale: 1.15; }
.tl-year {
  grid-column: 3; grid-row: 1; padding-inline: 12px;
  font: 500 clamp(3.6rem, 9vw, 7.6rem)/.85 var(--font-display); font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.05em; color: var(--c-d);
}
.tl-card { grid-column: 1; grid-row: 1; display: grid; gap: 14px; padding: clamp(26px, 3vw, 38px); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.tl-item:nth-child(even) .tl-card { grid-column: 3; }
.tl-item:nth-child(even) .tl-year { grid-column: 1; text-align: right; }
.tl-card h3 { font-size: var(--step-2); }
.tl-card p { color: var(--ink-2); }
.tl-card .tag { justify-self: start; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--ink); }
.tl-media { margin-top: 10px; }

.ten { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 280px; }
.ten span { aspect-ratio: 1; border-radius: 50% 50% 8px 8px; background: var(--c); }
.tl-item.in .ten span { animation: pop .6s var(--ease-spring) backwards; animation-delay: calc(.2s + var(--n) * .06s); }
.ten-label { margin-top: 12px; font: 600 1.6rem var(--font-hand); color: var(--ink-2); }
.snaps { display: flex; padding: 14px 8px 4px; }
.snap { flex: 1; min-width: 0; padding: 8px 8px 0; margin-inline: -10px; background: #fffdf9; border-radius: 6px; box-shadow: 0 12px 24px -12px rgba(29, 25, 48, .45); rotate: var(--rot, 0deg); transition: rotate .4s var(--ease-spring), scale .4s var(--ease-spring); }
.snap:hover { rotate: 0deg; scale: 1.06; position: relative; z-index: 2; }
.snap img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 3px; }
.snap figcaption { padding: 6px 0 8px; text-align: center; font: 600 1.2rem/1 var(--font-hand); color: var(--ink-2); }
.wide-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; }
.call { border-radius: 20px; background: var(--ink); padding: 12px; color: var(--cream); }
.call-bar { display: flex; gap: 6px; padding: 2px 4px 12px; }
.call-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--c2); }
.call-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.call-tile { display: grid; place-items: center; gap: 6px; padding: 18px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); text-align: center; font-size: .85rem; font-weight: 600; }
.call-tile:first-child { grid-row: span 2; }
.call-tile b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c2); color: var(--ink); font: 700 1.2rem var(--font-display); }
.call-cap { padding: 12px 4px 2px; font-size: .75rem; letter-spacing: .14em; font-weight: 700; color: var(--cream-2); }
.phone { width: min(100%, 300px); margin-inline: auto; padding: 12px; border-radius: 40px; background: var(--ink); box-shadow: var(--shadow); }
.phone-screen { border-radius: 30px; background: var(--paper); padding: 22px 16px 18px; display: grid; gap: 10px; }
.phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.phone-head img { width: 38px; height: 38px; border-radius: 10px; }
.phone-head strong { display: block; font-size: .95rem; }
.phone-head span { font-size: .78rem; color: var(--ink-3); }
.feed-item { padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; font-weight: 600; }
.feed-item span { display: block; font-size: .74rem; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.tl-item.in .feed-item { animation: rise .7s var(--ease-out) backwards; animation-delay: calc(.3s + var(--n) * .15s); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.info-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.info { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.info-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, var(--card)); color: var(--c-d); }
.info h2 { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.info a { font-weight: 600; text-underline-offset: 3px; }
.form-card { padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: var(--card); box-shadow: var(--shadow); }
.form-card h2 { font-size: var(--step-3); margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid rgba(29, 25, 48, .2); background: #fff; color: var(--ink); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(44, 112, 208, .2); }
.field :user-invalid { border-color: var(--red-d); box-shadow: 0 0 0 4px rgba(196, 54, 58, .14); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form-foot p { font-size: var(--step--1); color: var(--ink-3); max-width: 36ch; }
.form-done { display: grid; justify-items: center; gap: 16px; padding: 32px 8px; text-align: center; }
.form-done:focus { outline: none; }
.done-ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #25d366; color: var(--ink); animation: pop .7s var(--ease-spring); }
.done-ic .i { width: 40px; height: 40px; stroke-width: 2.6; }
.form-done h2 { font-size: var(--step-3); }
.form-done p { color: var(--ink-2); max-width: 40ch; }
.form-done .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.map { margin-top: clamp(56px, 8vw, 96px); overflow: hidden; border-radius: clamp(60px, 12vw, 220px) clamp(60px, 12vw, 220px) 28px 28px; box-shadow: var(--shadow); background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: clamp(320px, 42vw, 480px); border: 0; }
.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq details { border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: inset 0 0 0 2px var(--c); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; cursor: pointer; list-style: none;
  font: 600 var(--step-1)/1.3 var(--font-display); font-variation-settings: "SOFT" 100;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--c-d); transition: rotate .35s var(--ease-spring); }
.faq details[open] summary .i { rotate: 45deg; }
.faq details p { padding: 0 24px 24px; color: var(--ink-2); max-width: 70ch; }
.faq details[open] p { animation: rise .5s var(--ease-out); }

/* ---------- 404 ---------- */
.lost { padding: clamp(130px, 16vw, 190px) 0 clamp(80px, 10vw, 130px); text-align: center; }
.lost-inner { display: grid; justify-items: center; gap: 18px; }
.lost-arch { position: relative; width: min(100%, 460px); margin-bottom: 8px; }
.lost-arch svg { width: 100%; height: auto; overflow: visible; }
.lost .band path { stroke-width: 13; }
.lost .band:hover path { stroke-width: 17; }
.lost-arch:has(.band:hover) .band:not(:hover) { opacity: .4; }
.lost-num {
  position: absolute; left: 50%; bottom: -4px; translate: -50% 0;
  font: 600 clamp(3.2rem, 10vw, 5.2rem)/1 var(--font-display); font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.04em;
}
.lost h1 { font-size: var(--step-5); letter-spacing: -.035em; }
.lost .lede { max-width: 42ch; }
.lost-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.lost-sound {
  margin-top: 14px; padding: 10px 16px; border: 0; border-radius: 4px; cursor: pointer;
  background: #fffdf6; color: var(--ink-2); font: 600 1.25rem/1.1 var(--font-hand); rotate: -2deg;
  box-shadow: 0 10px 18px -10px rgba(29, 25, 48, .4);
  transition-property: rotate, scale; transition-duration: .4s; transition-timing-function: var(--ease-spring);
}
.lost-sound:hover { rotate: 0deg; scale: 1.04; }
.lost-sound[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stats, .research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .purpose-grid, .page-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .purpose-head { position: static; }
  .prog { grid-template-columns: 1fr; }
  .prog-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .prog-tab { padding: 14px 18px; }
  .prog-tab .t { font-size: var(--step-1); }
  .prog-tab::before { left: 18px; right: 18px; top: auto; bottom: 6px; width: auto; height: 3px; scale: 0 1; }
  .prog-tab[aria-selected="true"]::before { scale: 1 1; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-grid > :nth-child(2) { margin-top: 0; }
  .page-hero .gauge { max-width: 460px; }
  .tl::before, .tl-fill { left: 15px; translate: 0 0; }
  .tl-item { grid-template-columns: 36px minmax(0, 1fr); row-gap: 14px; }
  .tl-dot { grid-column: 1; justify-self: start; }
  .tl-year, .tl-item:nth-child(even) .tl-year { grid-column: 2; text-align: left; padding: 0; font-size: clamp(3rem, 15vw, 4.4rem); }
  .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 2; grid-row: 2; }
}
@media (max-width: 640px) {
  .prog-panel { grid-template-columns: 1fr; }
  .prog-panel .arch-frame { max-width: 320px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 18px; }
  .research-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; gap: 8px; }
  .section-head-row .carousel-btns { display: none; }
}

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

/* Ribbon page transition (driven by main.js) */
.pt { position: fixed; inset: 0; z-index: 9999; overflow: hidden; pointer-events: none; visibility: hidden; }
.pt.on { visibility: visible; pointer-events: auto; }
.pt svg { position: absolute; left: 0; top: 0; width: 100%; height: 116vh; transform: translateY(100vh); will-change: transform; }

/* Sound toggles: liquid fill. Two wave layers rise (and drain) with a slow slosh.
   The wave tile is 16px tall; translate 0 -16px = full, 0 100% = empty. */
[data-sound] { position: relative; overflow: hidden; isolation: isolate; }
[data-sound]::before, [data-sound]::after {
  content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: 200%; height: calc(100% + 16px);
  translate: 0 100%;
  animation: slosh 3.4s linear infinite;
}
[data-sound]::before { /* back wave, orange, slower and a touch ahead */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 16' preserveAspectRatio='none'%3E%3Cpath fill='%23f39237' d='M0 8C20 0 30 0 50 8S80 16 100 8V16H0z'/%3E%3C/svg%3E") 0 0 / 25% 16px repeat-x,
              linear-gradient(#f39237, #f39237) 0 15px / 100% 100% no-repeat;
  animation-duration: 5.2s; animation-direction: reverse;
}
[data-sound]::after { /* front wave, yellow */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 16' preserveAspectRatio='none'%3E%3Cpath fill='%23f7c548' d='M0 8C20 0 30 0 50 8S80 16 100 8V16H0z'/%3E%3C/svg%3E") 0 0 / 25% 16px repeat-x,
              linear-gradient(#f7c548, #f7c548) 0 15px / 100% 100% no-repeat;
}
html.snd-ready [data-sound]::before { transition: translate 1.1s cubic-bezier(.22, 1, .36, 1); }
html.snd-ready [data-sound]::after { transition: translate 1.1s cubic-bezier(.22, 1, .36, 1) .09s; }
[data-sound][aria-pressed="true"]::before, [data-sound][aria-pressed="true"]::after { translate: 0 -16px; }
@keyframes slosh { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  [data-sound]::before, [data-sound]::after { animation: none; transition: none !important; }
}

/* Ghost button: liquid fill on hover and keyboard focus (same waves as the sound toggles) */
.btn-ghost { position: relative; overflow: hidden; isolation: isolate; transition-property: translate, box-shadow, color, border-color; transition-duration: .35s, .35s, .4s, .4s; transition-timing-function: var(--ease-spring), var(--ease-out), ease, ease; }
.btn-ghost::before, .btn-ghost::after {
  content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: 200%; height: calc(100% + 16px);
  translate: 0 100%; animation: slosh 3.4s linear infinite;
  transition: translate .8s cubic-bezier(.22, 1, .36, 1);
}
.btn-ghost::before { /* back wave, purple */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 16' preserveAspectRatio='none'%3E%3Cpath fill='%236b4bc7' d='M0 8C20 0 30 0 50 8S80 16 100 8V16H0z'/%3E%3C/svg%3E") 0 0 / 25% 16px repeat-x,
              linear-gradient(#6b4bc7, #6b4bc7) 0 15px / 100% 100% no-repeat;
  animation-duration: 5.2s; animation-direction: reverse;
}
.btn-ghost::after { /* front wave, ink */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 16' preserveAspectRatio='none'%3E%3Cpath fill='%231d1930' d='M0 8C20 0 30 0 50 8S80 16 100 8V16H0z'/%3E%3C/svg%3E") 0 0 / 25% 16px repeat-x,
              linear-gradient(#1d1930, #1d1930) 0 15px / 100% 100% no-repeat;
  transition-delay: .07s;
}
.btn-ghost:hover, .btn-ghost:focus-visible { background-color: transparent; color: #fff; border-color: var(--ink); }
.btn-ghost:hover::before, .btn-ghost:hover::after,
.btn-ghost:focus-visible::before, .btn-ghost:focus-visible::after { translate: 0 -16px; }
.btn-ghost .i { transition: translate .4s var(--ease-spring); }
.btn-ghost:hover .i { translate: 4px 0; }
@media (prefers-reduced-motion: reduce) { .btn-ghost::before, .btn-ghost::after { animation: none; transition: none; } }

#main:focus { outline: 0; } /* focus moves here after a page transition, for screen readers */
