/* Germ Busters: HFMD Havoc - one-page site */

:root {
  --navy: #0B2352;
  --sky: #1F86F0;
  --sky-light: #DDF0FF;
  --lime: #7ED321;
  --sun: #FFC21A;
  --pink: #FF3D9A;
  --cream: #FFF8E8;
  --ink: #14213D;
  --ink-soft: #4A5878;
  --ink-light: #C9D6F2;
  --display: "Bangers", "Comic Sans MS", system-ui, sans-serif;
  --strong: "Anton", Impact, system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 8.3vw, 120px);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
svg.lucide { width: 1em; height: 1em; stroke-width: 2.2; flex: none; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 8vw, 110px) 0; }

.mobile-only { display: none !important; }
html.is-mobile .desktop-only { display: none !important; }
html.is-mobile .mobile-only { display: flex !important; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--strong); font-size: 16px; letter-spacing: .19em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow--pink { color: var(--pink); }
.eyebrow--sky { color: var(--sky); }
.eyebrow--sun { color: var(--sun); }
.eyebrow--xl { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: 3px; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 64px); line-height: .95; letter-spacing: .015em; color: var(--navy); }
.h2--light { color: #fff; }
.body { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-soft); }
.body--light { color: var(--ink-light); }

.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 64px; }
.section-head--center .body { max-width: 640px; margin-top: 16px; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head--split .h2 { max-width: 640px; }
.section-head--split > .body { max-width: 440px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav__inner { max-width: 1440px; margin: 0 auto; padding: 20px 64px; display: flex; align-items: center; gap: 36px; }
.nav__logo { margin-right: auto; opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; pointer-events: none; }
.nav__logo img { height: 50px; width: auto; }
.nav__links { display: flex; gap: 36px; }
.nav__links a { position: relative; text-decoration: none; color: #fff; font-weight: 800; font-size: 16px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--sun); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta {
  text-decoration: none; font-family: var(--strong); letter-spacing: .06em; text-transform: uppercase; font-size: 16px;
  color: var(--navy); background: var(--sun); border: 3px solid #fff; border-radius: 999px; padding: 10px 24px;
  box-shadow: 0 4px 0 var(--navy); transition: transform .2s var(--bounce), box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-2px) rotate(-2deg); box-shadow: 0 6px 0 var(--navy); }
.nav__cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy); }
.nav--solid { background: rgba(11, 35, 82, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.nav--solid .nav__inner { padding-top: 12px; padding-bottom: 12px; }
.nav--solid .nav__logo { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(700px, 100vh, 900px); overflow: hidden; background: var(--navy); isolation: isolate; }
.hero__bg { position: absolute; inset: -30px; background: url(../assets/street.webp) center 55% / cover no-repeat; z-index: -3; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(11,35,82,.92) 0%, rgba(11,35,82,.65) 42%, rgba(11,35,82,0) 62%),
    linear-gradient(180deg, rgba(11,35,82,.5) 0%, rgba(11,35,82,0) 18%, rgba(11,35,82,0) 80%, rgba(11,35,82,.85) 100%);
}
.hero__inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 120px var(--gutter) 150px; z-index: 2; pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__copy { max-width: 620px; display: flex; flex-direction: column; gap: 22px; }
.hero__title { width: min(500px, 80vw); height: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.hero__headline { font-family: var(--display); font-weight: 400; color: #fff; font-size: clamp(44px, 4.6vw, 60px); line-height: .95; letter-spacing: .02em; text-shadow: 0 4px 0 var(--navy); }
.hero__sub { color: #fff; font-weight: 700; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.45; max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 18px; color: #fff; font-weight: 800; font-size: 15px; }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts svg { color: var(--sun); font-size: 20px; }

.hero__kids { position: absolute; right: -1%; bottom: 0; width: min(54vw, 800px); z-index: 1; }
.hero__kids img { width: 100%; height: auto; transform-origin: 50% 100%; }

.germ { position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * var(--gs, 1)); height: auto; rotate: var(--r, 0deg); z-index: 1; user-select: none; -webkit-user-drag: none; }
.hero__germs { position: absolute; inset: 0; z-index: 1; }

/* playful buttons */
.play-btn { display: inline-block; width: 300px; transition: transform .25s var(--bounce), filter .25s; animation: pulse 2.4s ease-in-out infinite; }
.play-btn img { width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.play-btn:hover { animation-play-state: paused; transform: scale(1.07) rotate(-2deg); }
.play-btn:active, .play-btn.is-pressed { transform: scale(.92, .86); transition-duration: .08s; }
.play-btn--big { width: 340px; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; text-decoration: none;
  color: #fff; font-weight: 800; font-size: 17px; border: 2px solid #fff; background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .25s, transform .25s var(--bounce);
}
.ghost-btn svg { font-size: 22px; transition: transform .3s var(--bounce); }
.ghost-btn:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }
.ghost-btn:hover svg { transform: translateY(4px); }

/* mobile "play on a computer" note */
.desktop-note {
  align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 20px; max-width: 520px;
  background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.7); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.desktop-note__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sun); color: var(--navy); font-size: 24px; flex: none; }
.desktop-note__text { flex: 1 1 200px; font-size: 15px; line-height: 1.4; font-weight: 700; }
.desktop-note__text strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .03em; line-height: 1.1; }
.desktop-note__btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: 800 15px var(--body);
  color: var(--navy); background: #fff; border-radius: 999px; padding: 10px 18px;
}
.desktop-note--light { margin: 0 auto; text-align: left; background: rgba(11,35,82,.25); }

/* bust feedback */
.bust { cursor: crosshair; }
.bust.is-popping { animation: pop-out .45s var(--ease) forwards !important; pointer-events: none; }
.bust.is-gone { visibility: hidden; }
.bust.is-back { animation: pop-in .6s var(--bounce) both; }
.burst { position: fixed; z-index: 60; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, rgba(255,255,255,.2) 45%, var(--bc, #7ED321) 100%);
  animation: burst .7s var(--ease) forwards; }
.bust-hint {
  position: absolute; left: calc(41% + 124px); top: calc(15% + 36px); z-index: 3; pointer-events: none; white-space: nowrap;
  font-family: var(--display); font-size: 22px; letter-spacing: .03em; color: var(--navy); background: #fff;
  padding: 8px 14px; border-radius: 14px; box-shadow: 0 4px 0 var(--navy); opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .4s, transform .4s var(--bounce);
}
.bust-hint::before { content: ""; position: absolute; left: -8px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left: 0; border-right-color: #fff; }
.bust-hint.is-shown { opacity: 1; transform: none; }
.bust-counter {
  position: fixed; right: 20px; bottom: 20px; z-index: 55; display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; border: 3px solid var(--lime); border-radius: 999px; padding: 8px 10px 8px 18px;
  font-weight: 800; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .4s var(--bounce); pointer-events: none;
}
.bust-counter b { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; background: var(--lime); color: var(--navy); font-family: var(--strong); font-size: 18px; font-weight: 400; }
.bust-counter.is-shown { opacity: 1; transform: none; }
.bust-counter.is-bumped b { animation: bump .35s var(--bounce); }

/* ---------- mission ---------- */
.mission__grid { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 80px; align-items: center; }
.mission__art { position: relative; aspect-ratio: 1; }
.mission__disc { position: absolute; inset: 6%; border-radius: 50%; background: var(--sky-light); }
.mission__germ { position: absolute; left: 15%; top: 13%; width: 73%; animation: wobble 5s ease-in-out infinite; }
.tag {
  position: absolute; left: var(--tx); top: var(--ty); rotate: var(--tr); z-index: 2;
  font-family: var(--display); font-size: clamp(20px, 2vw, 26px); letter-spacing: .05em; text-transform: uppercase; color: #fff;
  padding: 8px 18px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(20,33,61,.15);
  transition: scale .3s var(--bounce);
}
.tag:hover { scale: 1.12; }
.tag--pink { background: var(--pink); }
.tag--sky { background: var(--sky); }
.tag--lime { background: var(--lime); }
.mission__copy { display: flex; flex-direction: column; }
.mission__copy .h2 { margin-bottom: 24px; }
.habits { margin-top: 36px; display: grid; gap: 14px; }
.habits li { display: flex; align-items: center; gap: 18px; }
.habits b { display: block; font-weight: 900; font-size: 20px; color: var(--ink); }
.habits small { display: block; font-size: 16px; color: var(--ink-soft); }
.badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; font-size: 28px; flex: none; transition: transform .3s var(--bounce); }
.badge--sky { background: var(--sky); }
.badge--lime { background: var(--lime); }
.badge--pink { background: var(--pink); }
.badge--sun { background: var(--sun); }
li:hover > .badge { transform: rotate(-8deg) scale(1.08); }
.tick { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: #fff; font-size: 18px; scale: 0; transition: scale .5s var(--bounce) .45s; }
.habits li.is-visible .tick { scale: 1; }

/* ---------- levels ---------- */
.levels { position: relative; background: var(--navy); overflow: hidden; isolation: isolate; }
.levels::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../assets/tech.webp) center / cover; opacity: .45; mix-blend-mode: screen; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; perspective: 1200px; }
.card { background: #fff; border-radius: 28px; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .4s; box-shadow: 0 10px 0 rgba(0,0,0,.18); }
.card--low { margin-top: 40px; }
.card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.card.is-tilting { transition: transform .12s linear, box-shadow .4s; }
.card__art { position: relative; aspect-ratio: 282 / 210; border-bottom: 6px solid var(--c); overflow: hidden; }
.card__art > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__art > img:first-child { transform: scale(1.08); }
.card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,35,82,0) 50%, rgba(11,35,82,.7) 100%); pointer-events: none; }
.card__num { position: absolute; left: 18px; bottom: 6px; z-index: 1; font-family: var(--display); font-size: 54px; line-height: 1; color: #fff; text-shadow: 0 3px 0 var(--c); }
.card__germ { position: absolute; right: -8px; bottom: -14px; width: 34%; z-index: 2; transition: transform .4s var(--bounce); }
.card:hover .card__germ { transform: translateY(-10px) rotate(-10deg) scale(1.08); }
.card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.card__tag { display: flex; align-items: center; gap: 6px; font-family: var(--strong); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: .015em; color: var(--navy); }
.card__body p:last-child { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- heroes ---------- */
.heroes { background: var(--sky-light); padding-bottom: 0; overflow: hidden; }
.crew { display: grid; grid-template-columns: 1fr 1fr 320px; gap: 32px; align-items: end; }
.crew__card { position: relative; height: 560px; border-radius: 36px 36px 0 0; overflow: hidden; }
.crew__card--joe { background: var(--sky); }
.crew__card--mina { background: var(--pink); }
.crew__card--devan { background: var(--navy); height: 480px; }
.crew__info { position: relative; z-index: 2; padding: 36px 32px; max-width: 280px; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.45; }
.crew__label { width: 170px; height: auto; margin-bottom: 14px; transform-origin: 30% 50%; transition: transform .4s var(--bounce); }
.crew__card:hover .crew__label { transform: rotate(-6deg) scale(1.08); }
.crew__glow { position: absolute; width: 320px; height: 320px; right: 0; bottom: 10px; border-radius: 50%; background: rgba(255,255,255,.2); transition: transform .6s var(--ease); }
.crew__card:hover .crew__glow { transform: scale(1.18); }
.crew__fig { position: absolute; bottom: -6px; height: 380px; width: auto; right: 6%; transform-origin: 50% 100%; transition: transform .5s var(--bounce); }
.crew__card--joe .crew__fig { height: 370px; right: 5%; }
.crew__card--devan .crew__fig { height: 330px; right: 12%; }
.crew__card:hover .crew__fig { transform: translateY(-12px) scale(1.04); }
.crew__role { font-family: var(--strong); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--sun); margin-bottom: 8px; }
.crew__card--devan h3 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; margin-bottom: 8px; }
.crew__card--devan p:last-child { color: var(--ink-light); font-weight: 400; font-size: 15px; max-width: 180px; }

/* ---------- how it teaches ---------- */
.teach__body { display: grid; grid-template-columns: 640px 1fr; gap: 56px; align-items: center; }
.cycle { position: relative; width: 100%; max-width: 640px; aspect-ratio: 640 / 560; margin: 0 auto; }
.cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle__ring .seg { fill: none; stroke-width: 10; stroke-linecap: round; opacity: .35; transition: opacity .5s, stroke-width .5s; }
.cycle__ring .seg.is-active { opacity: 1; stroke-width: 14; }
.cycle__arrow {
  position: absolute; left: var(--ax); top: var(--ay); width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c); color: #fff; border: 4px solid var(--cream); font-size: 18px;
}
.cycle__centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 180px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cycle__centre svg { font-size: 30px; color: var(--navy); animation: spin 8s linear infinite; }
.cycle__centre b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; color: var(--navy); }
.cycle__centre small { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.stage {
  position: absolute; left: var(--px); top: var(--py); width: 196px; transform: translate(-50%, -50%);
  background: #fff; border: 3px solid var(--c); border-radius: 20px; padding: 16px 18px; box-shadow: 0 6px 0 rgba(20,33,61,.08);
  font-size: 14px; line-height: 1.4; color: var(--ink-soft); cursor: default;
  transition: transform .45s var(--bounce), box-shadow .45s, background .45s;
}
.stage.is-active { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 10px 0 var(--c); }
.stage__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-family: var(--display); font-size: 26px; letter-spacing: .02em; color: var(--navy); line-height: 1.1; }
.stage__head span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--strong); font-size: 15px; }
.theories li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(20,33,61,.12); }
.theories li:last-child { border-bottom: 0; }
.theories .badge { width: 48px; height: 48px; border-radius: 14px; font-size: 24px; }
.theories b { display: block; font-weight: 900; font-size: 19px; color: var(--ink); }
.theories cite { display: block; font-style: normal; font-weight: 700; font-size: 13px; color: var(--sky); margin: 2px 0 4px; }
.theories p { font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.strip { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 26px 36px; border-radius: 24px; background: var(--navy); color: #fff; }
.strip li { display: flex; align-items: center; gap: 14px; }
.strip svg { font-size: 28px; color: var(--sun); }
.strip b { display: block; font-weight: 900; font-size: 17px; }
.strip small { display: block; font-size: 14px; color: var(--ink-light); }

/* ---------- final CTA ---------- */
.cta { position: relative; min-height: 460px; display: grid; place-items: center; padding: 80px var(--gutter); overflow: hidden; background: radial-gradient(ellipse at center, rgba(255,255,255,.25), rgba(255,255,255,0) 60%), var(--sky); }
.cta__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta__title { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 6vw, 84px); line-height: 1; letter-spacing: .015em; color: #fff; text-shadow: 0 5px 0 var(--navy); }
.cta__sub { color: #fff; font-weight: 800; font-size: 20px; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--ink-light); padding: 64px 0 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer__brand img { width: 220px; height: auto; margin-bottom: 14px; }
.footer__brand p { font-size: 15px; }
.footer__partners { display: flex; flex-direction: column; align-items: flex-end; }
.footer__partners .eyebrow { font-size: 13px; margin-bottom: 14px; }
.footer__logos { display: flex; gap: 16px; align-items: center; }
.footer__logos img { height: 100px; width: auto; transition: transform .3s var(--bounce); }
.footer__logos img:hover { transform: translateY(-4px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; color: #8FA3CC; }
.footer__bottom nav { display: flex; gap: 28px; }
.footer__bottom a { color: var(--ink-light); font-weight: 700; text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--sun);
  transition: opacity .3s, transform .4s var(--bounce);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
html.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* hero entrance (runs once the page is ready) */
html.js .hero .hero__bg { scale: 1.08; transition: scale 1.6s var(--ease); }
html.js .hero.is-in .hero__bg { scale: 1; }
html.js .hero .hero__title,
html.js .hero .hero__headline,
html.js .hero .hero__sub,
html.js .hero .hero__ctas,
html.js .hero .hero__facts,
html.js .hero .hero__kids img,
html.js .hero .germ { opacity: 0; }
/* Once the entrance starts the resting state is visible; each animation's backwards fill hides it until its delay. */
html.js .hero.is-in .hero__title,
html.js .hero.is-in .hero__headline,
html.js .hero.is-in .hero__sub,
html.js .hero.is-in .hero__ctas,
html.js .hero.is-in .hero__facts,
html.js .hero.is-in .hero__kids img,
html.js .hero.is-in .germ { opacity: 1; }
.hero.is-in .hero__title { animation: drop .9s var(--bounce) .15s both, bob 4.5s ease-in-out 1.2s infinite; }
.hero.is-in .hero__headline { animation: rise .7s var(--ease) .45s both; }
.hero.is-in .hero__sub { animation: rise .7s var(--ease) .6s both; }
.hero.is-in .hero__ctas { animation: land .7s var(--bounce) .8s both; }
.hero.is-in .hero__facts { animation: rise .7s var(--ease) .95s both; }
.hero.is-in .hero__kids img { animation: kids-up 1.2s var(--ease) .3s both, breathe 4s ease-in-out 1.6s infinite; }
.hero.is-in .germ { animation: pop-in .6s var(--bounce) both; animation-delay: calc(.9s + var(--i, 0) * .12s); }

.germ.f1 { --float: float1 6s; }
.germ.f2 { --float: float2 7.5s; }
.germ.f3 { --float: float3 5.2s; }
html .hero .germ.is-floating { opacity: 1; animation: var(--float) ease-in-out infinite; }
.cta .germ { animation: var(--float) ease-in-out infinite; }
html .bust.is-back { animation: pop-in .6s var(--bounce) both !important; }

@keyframes drop { 0% { opacity: 0; transform: translateY(-80px) rotate(-4deg); } 100% { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1deg); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: none; } }
@keyframes land { 0% { opacity: 0; transform: translateY(30px) scale(.85); } 100% { opacity: 1; transform: none; } }
@keyframes kids-up { 0% { opacity: 0; transform: translateY(35%); } 100% { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, .992); } }
@keyframes pop-in { 0% { opacity: 0; scale: 0; } 100% { opacity: 1; scale: 1; } }
@keyframes pop-out { 0% { opacity: 1; scale: 1; } 30% { opacity: 1; scale: 1.25 .8; } 100% { opacity: 0; scale: 1.6; filter: blur(4px); } }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(8px, -18px) rotate(6deg); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-10px, -14px) rotate(-7deg); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(6px, -12px) rotate(4deg); } 66% { transform: translate(-6px, -6px) rotate(-4deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-3deg) scale(1.02, .98); } 75% { transform: rotate(3deg) scale(.98, 1.02); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--bs, 1.4)); } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .teach__body { grid-template-columns: 1fr; }
  .theories { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .theories li:nth-last-child(2) { border-bottom: 0; }
  .crew { grid-template-columns: 1fr 1fr 280px; }
}

@media (max-width: 1100px) {
  .nav__inner { padding-left: 32px; padding-right: 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .card--low { margin-top: 0; }
  .mission__grid { gap: 48px; }
  .hero__kids { width: min(58vw, 700px); }
  .hero__copy { max-width: 520px; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav__links { display: none; }
  .nav__logo img { height: 42px; }
  .nav__inner { min-height: 70px; }
  .nav__inner { padding: 14px 20px; }

  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero__inner { order: 1; padding: 96px 20px 0; }
  .hero__copy { max-width: none; gap: 18px; }
  .hero__title { width: min(380px, 78vw); }
  .hero__kids { order: 2; position: relative; right: auto; width: min(560px, 108%); margin: -10px auto 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(11,35,82,.9) 0%, rgba(11,35,82,.72) 48%, rgba(11,35,82,.15) 75%, rgba(11,35,82,.55) 100%); }
  .germ { --gs: .55; }
  .hero__germs .germ:nth-child(1) { display: none; }
  .hero__germs .germ:nth-child(2) { --x: 78% !important; --y: 8% !important; }
  .hero__germs .germ:nth-child(3) { --x: 58% !important; --y: 1% !important; }
  .hero__germs .germ:nth-child(5) { --y: 88% !important; }
  .bust-hint { display: none; }

  .section-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .mission__grid { grid-template-columns: 1fr; }
  .mission__art { width: min(420px, 100%); margin: 0 auto; }

  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 24px; perspective: none; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(78vw, 320px); scroll-snap-align: center; }

  .crew { grid-template-columns: 1fr 1fr; }
  .crew__card--devan { grid-column: span 2; height: 300px; }
  .crew__card--devan .crew__fig { height: 280px; right: 14%; }
  .crew__card { height: 480px; }
  .crew__fig { height: 320px; }
  .crew__card--joe .crew__fig { height: 300px; }

  .theories { grid-template-columns: 1fr; }
  .theories li:nth-last-child(2) { border-bottom: 1px solid rgba(20,33,61,.12); }
  .strip { grid-template-columns: 1fr; gap: 20px; padding: 24px; }

  .footer__partners { align-items: flex-start; }
}

@media (max-width: 700px) {
  .cycle { aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; padding-left: 26px; }
  .cycle::before { content: ""; position: absolute; left: 8px; top: 70px; bottom: 30px; width: 4px; border-radius: 4px; background: linear-gradient(var(--sky), var(--pink), var(--lime), var(--sun)); }
  .cycle__ring, .cycle__arrow { display: none; }
  .cycle__centre { position: static; transform: none; width: auto; flex-direction: row; gap: 10px; text-align: left; margin: 0 0 6px -26px; }
  .cycle__centre small::before { content: "· "; }
  .stage { position: relative; left: auto; top: auto; width: auto; transform: none; }
  .stage.is-active { transform: scale(1.02); }

  .hero__facts { gap: 10px 24px; }
  .crew { grid-template-columns: 1fr; }
  .crew__card--devan { grid-column: auto; }
  .crew__card, .crew__card--devan { height: 400px; }
  .crew__info { max-width: 230px; padding: 28px 24px; }
  .crew__fig, .crew__card--joe .crew__fig { height: 300px; }
  .crew__card--devan .crew__fig { height: 300px; right: 10%; }

  .cta { min-height: 420px; }
  .cta .germ { --gs: .5; }
  .cta .germ:nth-of-type(3) { --x: 78% !important; --y: 3% !important; }
  .footer__logos { flex-wrap: wrap; gap: 12px; }
  .footer__logos img { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js [data-reveal] { opacity: 1; translate: none; }
}
