/* Empower Kids — warm and homey: cream paper, pastel cards, rounded type, gentle motion.
   Built against Chrome's Modern Web Guidance: AA contrast, no overflow down to 320px,
   44px touch targets, motion only for visitors who have not asked for less. */
:root {
  --cream: #fff8ef;
  --paper: #fffdf8;
  --ink: #3b2f3f;
  --soft-ink: #6a5a6e;
  --plum: #6b3fa0;
  --plum-deep: #4a2a6e;
  --lilac: #f1e7fb;
  --lilac-2: #d9c2f2;      /* decoration only */
  --edge: #9a78c9;         /* 3:1 boundary for inputs and outlines */
  --peach: #ffe9dc;
  --sun: #fff1c2;
  --sun-deep: #ffc94a;
  --coral: #ff8a65;        /* decoration only */
  --coral-ink: #b8431f;    /* coral that passes as text */
  --error: #b3261e;
  --rose: #ffd9e1;  --rose-ink: #c2456b;
  --mint: #dcf3e4;  --mint-ink: #2a7d50;
  --sky: #dcecfb;   --sky-ink: #2f6fae;
  --lilac-card: #ece0fa; --lilac-ink: #7a45b8;
  --sun-card: #fff0bf;   --sun-ink: #946300;
  --r: 22px;
  --wrap: 1140px;
  --round: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Comic Sans MS", cursive;
  --shadow: 0 10px 30px rgba(107, 63, 160, .12), 0 2px 6px rgba(107, 63, 160, .08);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6.5rem; }
body {
  margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.7; color: var(--ink);
  overflow-wrap: break-word;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(107, 63, 160, .07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
:where(a) { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--round); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--plum-deep); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.mx { margin-inline: auto; }
.center { text-align: center; }
.strong { font-weight: 700; }
.lead { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); color: var(--soft-ink); }
.script { font-family: var(--script); font-weight: 700; }
.kicker-script { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--coral-ink); margin-bottom: .2em; line-height: 1.1; }
.prose { max-inline-size: 65ch; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; z-index: 20; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--plum-deep); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible { outline-color: var(--sun-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-block-size: 48px;
  font-family: var(--round); font-weight: 600; font-size: 1.1rem; letter-spacing: .01em;
  padding: 12px 28px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--plum); color: #fff; box-shadow: 0 5px 0 var(--plum-deep);
  translate: 0 0; rotate: 0deg;
  transition: box-shadow .2s, background-color .2s;
}
.btn:hover { box-shadow: 0 8px 0 var(--plum-deep); }
.btn:active { box-shadow: 0 2px 0 var(--plum-deep); }
.btn-ghost { background: #fff; color: var(--plum); box-shadow: 0 5px 0 var(--edge); }
.btn-ghost:hover { box-shadow: 0 8px 0 var(--edge); }
.btn-ghost:active { box-shadow: 0 2px 0 var(--edge); }
.btn-sun { background: var(--sun-deep); color: var(--plum-deep); box-shadow: 0 5px 0 #b57f0a; }
.btn-sun:hover { box-shadow: 0 8px 0 #b57f0a; }
.btn-small { font-size: 1rem; padding: 10px 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 239, .94); backdrop-filter: blur(10px); border-bottom: 2px dashed var(--edge); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 76px; flex-wrap: wrap; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--round); font-weight: 600; font-size: 1.45rem; color: var(--plum-deep); line-height: 1; min-block-size: 48px; }
.brand small { display: block; font-family: var(--script); font-size: 1.2rem; color: var(--coral-ink); font-weight: 700; margin-top: 2px; }
.brand-mark { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--sun-deep); color: var(--plum-deep); display: grid; place-items: center; padding: 8px; box-shadow: 0 3px 0 #b57f0a; }
.site-header ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header nav a { display: flex; align-items: center; min-block-size: 44px; padding: 6px 16px; border-radius: 999px; text-decoration: none; font-family: var(--round); font-weight: 500; color: var(--ink); translate: 0 0; transition: background-color .2s; }
.site-header nav a:hover { background: var(--lilac); }
.site-header nav a[aria-current="page"] { background: var(--plum); color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.menu-toggle { display: none; align-items: center; min-block-size: 44px; font: 600 1rem var(--round); color: var(--plum-deep); background: #fff; border: 2px solid var(--edge); border-radius: 999px; padding: 6px 20px; cursor: pointer; }
.menu-toggle[aria-expanded="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
@media (max-width: 55em) {
  .site-header nav { flex-basis: 100%; padding-bottom: 12px; }
  .site-header nav ul { flex-direction: column; }
  /* With script: a real toggle, and the open menu drops over the page instead of growing the sticky bar. */
  .js .menu-toggle { display: inline-flex; }
  .js .site-header nav { display: none; position: absolute; inset-inline: -16px; top: 100%; padding: 10px 16px 16px; background: var(--cream); border-bottom: 2px dashed var(--edge); box-shadow: 0 14px 24px rgba(74, 42, 110, .15); }
  .js .site-header nav.open { display: block; }
  .site-header nav a { min-block-size: 48px; font-size: 1.15rem; }
}

/* ---------- Bands and waves ---------- */
.band { position: relative; padding: clamp(56px, 9vw, 120px) 0; }
.band-lilac { background: var(--lilac); }
.band-sun { background: var(--sun); }
.band-peach { background: var(--peach); }
.wave { position: absolute; left: 0; width: 100%; height: 60px; display: block; }
.wave-top { top: -59px; }
.band-lilac > .wave-top path { fill: var(--lilac); }
.band-sun > .wave-top path { fill: var(--sun); }
.band-peach > .wave-top path { fill: var(--peach); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 80px) 0 clamp(84px, 9vw, 120px); overflow: clip; }
.hero-small { padding-bottom: clamp(80px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-photo { position: relative; }
.photo { margin: 0; overflow: clip; box-shadow: var(--shadow); border: 8px solid #fff; }
.photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.blob { border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%; }
.rounded { border-radius: var(--r); }
.tilt-l { rotate: -3deg; }
.tilt-r { rotate: 2.5deg; }
.doodle { position: absolute; width: 54px; height: 54px; translate: 0 0; rotate: 0deg; }
.d1 { top: -10px; left: 0; color: #c98a00; }
.d2 { bottom: 8%; left: 0; color: var(--coral); width: 46px; height: 46px; }
.d3 { top: 10%; right: 0; color: var(--plum); width: 44px; height: 44px; }
.trust { list-style: none; padding: 0; margin: 1.2em 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--edge); border-radius: 999px; padding: 4px 14px 4px 8px; font-weight: 600; font-size: 1rem; }
.trust svg { width: 22px; height: 22px; flex: none; color: var(--mint-ink); }
@media (max-width: 53.75em) {
  .hero-grid { grid-template-columns: 1fr; }
  /* On a phone the first thing a parent sees is the kids, then the words. */
  .hero-photo { order: -1; max-width: 330px; margin: 0 auto; width: 100%; }
  .hero-photo .photo img { aspect-ratio: 4 / 3; }
  .doodle { width: 40px; height: 40px; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-media { position: relative; }
.polaroid { margin: 0; background: #fff; padding: 14px 14px 10px; box-shadow: var(--shadow); position: relative; }
.polaroid figcaption { text-align: center; font-size: 1.8rem; color: var(--plum); padding-top: 6px; }
.tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; translate: -50% 0; rotate: -4deg; background: rgba(255, 201, 74, .6); border-radius: 3px; }
.sticker { position: absolute; width: 130px; right: -30px; bottom: 40px; rotate: 10deg; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); }
.letter { background: var(--paper); border-radius: var(--r); padding: clamp(22px, 4vw, 46px); box-shadow: var(--shadow); background-image: repeating-linear-gradient(transparent 0 33px, rgba(107, 63, 160, .07) 33px 34px); }
.sub { font-family: var(--round); color: var(--coral-ink); font-weight: 500; font-size: 1.15rem; }
.signoff { font-size: 2rem; color: var(--plum); margin: .4em 0 0; text-align: end; }
@media (max-width: 47.5em) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 280px; margin: 0 auto; }
  .sticker { right: 0; width: 100px; }
}

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.note-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.note-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); font-weight: 600; }
.num { flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--coral-ink); color: #fff; display: grid; place-items: center; font-family: var(--round); }
@media (max-width: 53.75em) { .why { grid-template-columns: 1fr; } .why .photo { max-width: 460px; margin-inline: auto; } }

/* ---------- Upcoming ---------- */
.upcoming { display: grid; grid-template-columns: 1fr minmax(240px, 400px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.badge-new { display: inline-block; font-family: var(--script); font-weight: 700; font-size: 1.5rem; line-height: 1.5; color: #fff; background: var(--coral-ink); padding: 2px 18px; border-radius: 999px; rotate: -3deg; margin: 0 0 12px; }
.pinned { margin: 0; position: relative; background: #fff; padding: 12px; box-shadow: var(--shadow); rotate: 2deg; }
.pinned img { width: 100%; }
.pin-dot { position: absolute; top: -12px; left: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .15), 0 3px 4px rgba(0, 0, 0, .2); translate: -50% 0; }
@media (max-width: 47.5em) { .upcoming { grid-template-columns: 1fr; } .pinned { max-width: 420px; margin-inline: auto; } }

/* ---------- How ---------- */
.steps-row { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: 22px; }
.steps-row li { background: #fff; border-radius: var(--r); padding: 30px 18px 24px; box-shadow: var(--shadow); font-family: var(--round); font-weight: 500; font-size: 1.15rem; position: relative; translate: 0 0; rotate: 0deg; }
.step-icon { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; padding: 18px; }
.c0 { background: var(--rose); color: var(--rose-ink); }
.c1 { background: var(--sky); color: var(--sky-ink); }
.c2 { background: var(--sun-card); color: var(--sun-ink); }
.c3 { background: var(--mint); color: var(--mint-ink); }
.step-n { position: absolute; top: 12px; left: 16px; font-family: var(--script); font-size: 1.8rem; color: var(--edge); }

/* ---------- Package colours ---------- */
.rose { --card: var(--rose); --accent: var(--rose-ink); }
.sun { --card: var(--sun-card); --accent: var(--sun-ink); }
.mint { --card: var(--mint); --accent: var(--mint-ink); }
.sky { --card: var(--sky); --accent: var(--sky-ink); }
.lilac { --card: var(--lilac-card); --accent: var(--lilac-ink); }
.pkg-icon { width: 70px; height: 70px; flex: none; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; padding: 16px; box-shadow: 0 4px 0 rgba(0, 0, 0, .06); }

.pkg-cards { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: 20px; }
.pkg-card { background: var(--card); border-radius: var(--r); padding: 30px 20px 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow); translate: 0 0; }
.pkg-card:nth-child(odd) { rotate: -1.2deg; }
.pkg-card:nth-child(even) { rotate: 1.2deg; }
.pkg-card h3 { color: var(--ink); font-size: 1.25rem; margin: 6px 0 0; }
.pkg-card p { color: var(--ink); margin: 0 0 8px; font-size: 1rem; flex: 1; }
.pkg-card .btn { background: #fff; color: var(--accent); box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }

/* ---------- Programs ---------- */
.program-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 26px; }
.program { background: #fff; border-radius: var(--r); padding: clamp(22px, 3vw, 38px); box-shadow: var(--shadow); border-top: 10px solid var(--card); display: flex; flex-direction: column; translate: 0 0; }
.program .pkg-icon { background: var(--card); margin-bottom: 14px; }
.program h2 { font-size: 1.7rem; }
.program p { color: var(--soft-ink); }
.program .strong { color: var(--ink); }
.program .btn { align-self: flex-start; margin-top: auto; background: var(--accent); box-shadow: 0 5px 0 rgba(0, 0, 0, .22); }

/* ---------- Session breakdowns ---------- */
.jump ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.jump a { display: flex; align-items: center; gap: 8px; min-block-size: 48px; padding: 6px 18px 6px 8px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-family: var(--round); font-weight: 500; border: 1.5px solid var(--accent); translate: 0 0; rotate: 0deg; }
.mini { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #fff; color: var(--accent); padding: 5px; display: grid; place-items: center; }
.pkg-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.pkg-head .pkg-icon { background: var(--card); }
.pkg-band:not(.band-lilac) .pkg-head .pkg-icon { box-shadow: 0 0 0 2px var(--accent); }
.pkg-head h2 { margin: 0; min-width: 0; }
.timeline { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.timeline details { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border-inline-start: 6px solid var(--accent); }
.timeline summary { display: flex; align-items: center; gap: 14px; min-block-size: 64px; padding: 10px 18px 10px 14px; cursor: pointer; list-style: none; font-family: var(--round); font-weight: 600; font-size: 1.15rem; color: var(--plum-deep); border-radius: var(--r); }
.timeline summary::-webkit-details-marker { display: none; }
.dot { flex: none; width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.sum-text { flex: 1; min-width: 0; }
/* the open/closed marker sits right beside the label, and turns when open */
.sum-text::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-inline-start: .6em; border-inline-end: 3px solid var(--accent); border-block-end: 3px solid var(--accent); rotate: 45deg; translate: 0 -.2em; }
details[open] > summary .sum-text::after { rotate: 225deg; translate: 0 .1em; }
.timeline details > ul { margin: 0; padding: 4px 22px 20px 3.2em; }
.timeline details li { margin-bottom: .5em; }
.timeline details li::marker { color: var(--accent); }
.pkg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 26px 0 0; }
.back { font-family: var(--round); display: inline-flex; align-items: center; min-block-size: 44px; }
@media (max-width: 47.5em) { .timeline details > ul { padding-inline-start: 2.2em; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: center; }
.facts a { display: inline-flex; align-items: center; min-block-size: 44px; margin-inline-end: 14px; }
.fact-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--peach); color: var(--coral-ink); padding: 12px; display: grid; place-items: center; }
.form { position: relative; background: var(--paper); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; rotate: 1deg; }
.form-title { font-size: 2.2rem; color: var(--plum); margin: 0; }
.form-hint { margin: 0; font-size: 1rem; color: var(--soft-ink); }
.field { display: grid; gap: 4px; }
.form label { font-family: var(--round); font-weight: 500; }
.form input, .form textarea { font: inherit; font-family: var(--body); padding: 12px 14px; min-block-size: 52px; border: 2px solid var(--edge); border-radius: 14px; background: #fff; color: var(--ink); width: 100%; transition: border-color .2s; }
.form :is(input, textarea):focus-visible { border-color: var(--plum); }
.error-msg { display: none; margin: 2px 0 0; color: var(--error); font-weight: 700; font-size: 1rem; }
.error-msg::before { content: "⚠ "; }
.form :is(input, textarea):user-invalid { border-color: var(--error); background: #fdecea; }
.form :is(input, textarea):user-invalid + .error-msg { display: block; }
.form .btn { justify-self: start; min-inline-size: 8rem; }
.form-note { color: var(--mint-ink); font-weight: 700; margin: 0; }
.form-note:empty { display: none; }
@media (max-width: 50em) { .contact { grid-template-columns: 1fr; } .form { rotate: 0deg; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--plum-deep); color: #f4eafd; padding: 70px 0 26px; margin-top: 60px; }
.wave-footer { top: -59px; }
.wave-footer path { fill: var(--plum-deep); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1.3rem; color: var(--sun-deep); }
.site-footer a { color: #fff; }
.footer-hello .script { font-size: 2.2rem; color: #fff; margin-bottom: .2em; }
.with-icon { display: flex; align-items: center; gap: 10px; margin-bottom: .2em; min-width: 0; }
.with-icon a, .with-icon span { display: inline-flex; align-items: center; min-block-size: 44px; min-width: 0; }
.with-icon svg { width: 24px; height: 24px; flex: none; color: var(--sun-deep); }
.social { list-style: none; display: flex; gap: 12px; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); translate: 0 0; rotate: 0deg; transition: background-color .25s; }
.social a:hover { background: rgba(255, 255, 255, .26); }
.social svg { width: 26px; height: 26px; color: #fff; }
.copy { font-size: 1rem; opacity: .85; margin-top: 34px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.copy svg { width: 18px; height: 18px; color: var(--coral); }
@media (max-width: 50em) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Motion: only for visitors who have not asked for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }

  .btn, .site-header nav a, .steps-row li, .pkg-card, .program, .jump a, .social a, .polaroid, .pinned { transition: translate .3s var(--bounce), rotate .3s var(--bounce), box-shadow .2s, background-color .2s; }
  .btn:hover { translate: 0 -3px; rotate: -1deg; }
  .btn:active { translate: 0 3px; }
  .site-header nav a:hover { translate: 0 -2px; }
  .steps-row li:hover { translate: 0 -6px; rotate: -1deg; }
  .pkg-card:hover { translate: 0 -8px; rotate: 0deg; }
  .program:hover { translate: 0 -6px; }
  .jump a:hover { translate: 0 -3px; rotate: -2deg; }
  .social a:hover { translate: 0 -3px; rotate: -6deg; }
  .polaroid:hover, .pinned:hover { rotate: 0deg; }
  .photo img { transition: scale 1.2s ease; }
  .photo:hover img { scale: 1.05; }
  .sum-text::after { transition: rotate .25s ease, translate .25s ease; }

  /* A short hello on arrival, then everything settles (finite, under five seconds). */
  .doodle { animation: float 2.4s ease-in-out 2; }
  .d2 { animation-delay: .3s; }
  .d3 { animation-delay: .6s; }
  .sticker, .badge-new { animation: wobble 1.2s ease-in-out 3; }
  .blob { animation: morph 5s ease-in-out 1; }
  .hero-text > * { animation: rise .7s ease both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-text > :nth-child(5) { animation-delay: .32s; }
  .hero-photo .photo { animation: rise .8s ease .1s both, morph 5s ease-in-out 1; }

  /* Sessions open and close softly where the browser can animate to content height. */
  .timeline details::details-content { block-size: 0; overflow-y: clip; transition: block-size .35s ease, content-visibility .35s allow-discrete; interpolate-size: allow-keywords; }
  .timeline details[open]::details-content { block-size: auto; }

  /* Scroll reveal in CSS; site.js carries a small fallback for browsers without it. */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 160px; }
  }
  .reveal-on [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .8, .2, 1); }
  .reveal-on [data-reveal].in { opacity: 1; translate: 0 0; }
}
@keyframes reveal { from { opacity: 0; translate: 0 26px; } }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -14px; rotate: 8deg; } }
@keyframes wobble { 0%, 100% { rotate: var(--rest, 0deg); } 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%; }
  50% { border-radius: 44% 56% 40% 60% / 58% 42% 58% 42%; }
}
.sticker { --rest: 10deg; }
.badge-new { --rest: -3deg; }

/* ---------- Windows high-contrast and similar modes ---------- */
@media (forced-colors: active) {
  .btn, .pkg-card, .program, .timeline details, .note-list li, .steps-row li, .letter, .form, .jump a, .trust li, .polaroid, .pinned { border: 1px solid CanvasText; }
  .site-header nav a[aria-current="page"] { outline: 2px solid Highlight; }
}

/* ---------- Small phones: keep the card sections short ---------- */
@media (max-width: 34em) {
  .steps-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 12px; margin: 28px 0; }
  .steps-row li { padding: 22px 10px 18px; font-size: 1.05rem; }
  .step-icon { width: 60px; height: 60px; padding: 14px; }
  .pkg-cards { gap: 14px; }
  .pkg-card { display: grid; grid-template-columns: auto 1fr; align-items: center; text-align: start; gap: 4px 16px; padding: 18px; }
  .pkg-card:nth-child(n) { rotate: 0deg; }
  .pkg-card .pkg-icon { grid-row: span 3; width: 60px; height: 60px; padding: 13px; }
  .pkg-card h3 { margin: 0; }
  .pkg-card p { margin: 0; }
  .pkg-card .btn { justify-self: start; margin-top: 6px; }
}
