@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d1630;
  --ink-2: #4a4360;
  --muted: #6d6680;
  --cream: #fff8ec;
  --paper: #ffffff;
  --orange: #f47b20;
  --orange-d: #d9600a;
  --orange-l: #ffe3c9;
  --sun: #ffc93c;
  --sun-l: #fff1c4;
  --leaf: #2e8b57;
  --leaf-d: #1d6a40;
  --leaf-l: #dff3e6;
  --jade: #3fb6a8;
  --sky: #3aa6ff;
  --sky-d: #1d7fd6;
  --sky-l: #dcefff;
  --berry: #ec407a;
  --berry-l: #ffe0ea;
  --yt: #ff0033;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(29, 22, 48, .28);
  --shadow-lg: 0 24px 60px -20px rgba(29, 22, 48, .4);
  --head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; margin-top: 40px; }
.center-text { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--head); font-weight: 600; font-size: 1.05rem; line-height: 1;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { font-size: .95rem; padding: .6em 1.05em; }
.btn-lg { font-size: 1.15rem; padding: 1em 1.6em; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 0 var(--orange-d), var(--shadow); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 0 var(--orange-d), var(--shadow-lg); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--sun-l); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.btn-light:hover { color: var(--orange-d); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-outline-light:hover { color: var(--ink); background: #fff; }
.btn-yt { background: var(--yt); color: #fff; }
.btn-yt:hover { color: #fff; background: #d6002b; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(29, 22, 48, .06);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 3px 4px rgba(120, 0, 0, .25)); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-14deg) scale(1.06); }
.brand-name { font-family: var(--head); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; }
.brand-name b { font-weight: 700; color: var(--orange); }
.brand:hover { color: var(--ink); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--head); font-weight: 500; font-size: 1.05rem; color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.site-nav ul a:hover { background: var(--orange-l); }
.site-nav ul a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 12px; }
.nav-toggle .ico { width: 30px; height: 30px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 16px 20px 24px; background: var(--cream);
    border-bottom: 1px solid rgba(29, 22, 48, .08); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 16px; font-size: 1.2rem; }
  .site-nav .btn { align-self: flex-start; }
}

/* Waves */
.hero, .page-hero, .section, .site-footer { position: relative; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(30px, 5vw, 70px); display: block; pointer-events: none; }
.wave-cream path { fill: var(--cream); }
.wave-top { bottom: auto; top: 1px; transform: translateY(-100%); }
.wave-leaf path { fill: var(--leaf); }
.wave-ink path { fill: var(--ink); }

/* Flying butterflies */
.fly { position: absolute; width: 58px; height: 44px; pointer-events: none; z-index: 1; animation: drift 18s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(29, 22, 48, .2)); }
.fly use { transform-box: fill-box; transform-origin: center; animation: flap .28s ease-in-out infinite alternate; }
.fly-1 { top: 8%; left: 50%; }
.fly-2 { top: 18%; right: 22%; left: auto; width: 40px; height: 30px; animation-duration: 22s; animation-delay: -6s; }
.fly-3 { top: 12%; right: 8%; width: 46px; height: 35px; animation-duration: 26s; animation-delay: -12s; }
.page-hero .fly-1 { left: 62%; top: 18%; }
.page-hero .fly-2 { left: 78%; top: 62%; }
@media (max-width: 700px) {
  .fly-1, .fly-2 { display: none; }
  .fly-3 { top: 2%; right: 4%; }
}
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.3); } }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(60px, -40px) rotate(10deg); }
  50% { transform: translate(120px, 10px) rotate(-4deg); }
  75% { transform: translate(40px, 40px) rotate(12deg); }
  100% { transform: translate(0, 0) rotate(-8deg); }
}

/* Home hero */
.hero {
  padding: clamp(40px, 7vw, 90px) 0 clamp(90px, 10vw, 140px);
  background:
    radial-gradient(600px 400px at 92% 10%, rgba(255, 201, 60, .45), transparent 70%),
    radial-gradient(500px 380px at 4% 90%, rgba(236, 64, 122, .18), transparent 70%),
    radial-gradient(700px 500px at 60% 120%, rgba(58, 166, 255, .2), transparent 70%),
    linear-gradient(180deg, #fff3df, var(--cream));
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--leaf-d); background: var(--leaf-l); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow-light { color: #fff; background: rgba(255, 255, 255, .2); backdrop-filter: blur(4px); }
.hl {
  color: var(--orange);
  background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 90%, transparent 90%);
  padding: 0 .08em;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--ink-2); max-width: 36em; }
.lead-dark { font-size: 1.2rem; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-ctas-center { justify-content: center; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: clamp(18px, 3vw, 36px); flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--head); font-size: 2.3rem; line-height: 1; color: var(--ink); }
.hero-stats li:nth-child(1) b { color: var(--orange); }
.hero-stats li:nth-child(2) b { color: var(--leaf); }
.hero-stats li:nth-child(3) b { color: var(--berry); }
.hero-stats span { font-weight: 700; color: var(--muted); font-size: .95rem; }

.collage { position: relative; aspect-ratio: 1 / .92; }
.polaroid {
  position: absolute; margin: 0; background: #fff; padding: 10px 10px 12px; border-radius: 10px;
  box-shadow: var(--shadow-lg); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1);
}
.polaroid img { border-radius: 4px; aspect-ratio: 2 / 1; object-fit: cover; width: 100%; }
.polaroid.p1 { width: 88%; left: 0; top: 30%; transform: rotate(-3deg); z-index: 3; }
.polaroid.p2 { width: 64%; right: 0; top: 0; transform: rotate(4deg); z-index: 2; }
.polaroid.p3 { width: 58%; right: 2%; bottom: -2%; transform: rotate(-6deg); z-index: 1; }
.collage:hover .p1 { transform: rotate(-1deg) translateY(-6px); }
.collage:hover .p2 { transform: rotate(7deg) translate(8px, -8px); }
.collage:hover .p3 { transform: rotate(-9deg) translate(8px, 8px); }
.sticker {
  position: absolute; z-index: 4; font-family: var(--head); font-weight: 600; font-size: 1.05rem;
  padding: 10px 16px; border-radius: 999px; color: var(--ink); box-shadow: var(--shadow);
}
.sticker-1 { background: var(--sun); top: 22%; left: -4%; transform: rotate(-10deg); }
.sticker-2 { background: var(--berry); color: #fff; bottom: 6%; left: 18%; transform: rotate(6deg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 10px auto 0; width: 100%; }
}

/* Sections */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-tight { padding-top: 30px; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.15rem; margin-bottom: 0; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; text-align: left; flex-wrap: wrap; }
.section-head-row > div { max-width: 700px; }
.kicker {
  display: inline-block; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  font-size: .9rem; color: var(--orange-d); margin-bottom: 10px;
}
.kicker::before { content: ""; display: inline-block; width: 26px; height: 4px; border-radius: 4px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.kicker-light { color: #fff; }
.kicker-sky { color: var(--sky-d); }
.kicker-sun { color: var(--sun); }
.kicker-berry { color: var(--berry); }
.section-tint { background: var(--orange); background: linear-gradient(135deg, #ff9a3c, var(--orange) 50%, #ee5d2e); color: #fff; }
.section-leaf { background: var(--leaf); color: #fff; margin-top: 70px; }
.section-leaf .section-head p:last-child { color: rgba(255, 255, 255, .85); }
.section-ink { background: var(--ink); color: #fff; margin-top: 70px; padding-bottom: clamp(100px, 12vw, 160px); }
.section-ink .section-head p:last-child { color: rgba(255, 255, 255, .82); }

/* Life cycle strip */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; counter-reset: s; }
.lifecycle::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: calc(28% + 8px); border-top: 4px dashed rgba(29, 22, 48, .18); z-index: 0;
}
.stage { position: relative; z-index: 1; text-align: center; }
.stage-media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; background: #fff; }
.stage-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .5s ease; }
.stage-media:hover img { transform: scale(1.07); }
.stage-num {
  display: grid; place-items: center; width: 54px; height: 54px; margin: -30px auto 12px; position: relative;
  font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: #fff; border-radius: 50%; border: 5px solid var(--cream);
}
.stage-egg .stage-num { background: #e9a800; }
.stage-caterpillar .stage-num { background: var(--leaf); }
.stage-chrysalis .stage-num { background: var(--jade); }
.stage-butterfly .stage-num { background: var(--orange); }
.stage h3 { font-size: 1.6rem; margin-bottom: .3em; }
.stage p { color: var(--ink-2); font-size: 1rem; margin: 0; }
@media (max-width: 960px) {
  .lifecycle { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .lifecycle::before { display: none; }
}
@media (max-width: 520px) { .lifecycle { grid-template-columns: 1fr; } }

/* Video cards */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.vgrid-all { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.vcard {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.vcard:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.vcard.is-hidden { display: none; }
.vthumb { position: relative; display: block; overflow: hidden; background: var(--ink); }
.vthumb img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.vcard:hover .vthumb img { transform: scale(1.06); }
.vplay {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background-color .2s, color .2s;
}
.vplay .ico { width: 28px; height: 28px; margin-left: 4px; }
.vthumb:hover .vplay, .stage-media:hover .vplay, .lite:hover .vplay { transform: scale(1.15); background: var(--orange); color: #fff; }
.vlen {
  position: absolute; right: 10px; bottom: 10px; background: rgba(29, 22, 48, .82); color: #fff;
  font-weight: 800; font-size: .82rem; padding: 3px 8px; border-radius: 6px;
}
.vbody { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.vmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.vtitle { font-size: 1.3rem; margin-bottom: .35em; }
.vtitle a { color: var(--ink); text-decoration: none; }
.vtitle a:hover { color: var(--orange-d); }
.vbody p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: .8rem; letter-spacing: .02em; }
.chip-orange { background: var(--orange-l); color: var(--orange-d); }
.chip-sky { background: var(--sky-l); color: var(--sky-d); }
.chip-berry { background: var(--berry-l); color: #c2185b; }
.vcard-bare { box-shadow: var(--shadow-lg); }
.vcard-bare .vbody { display: none; }
.vcard-bare:hover { transform: rotate(-1deg) scale(1.02); }

/* Quiz feature */
.quiz-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.quiz-media { transform: rotate(-2deg); }
.quiz-copy h2 { color: #fff; }
.quiz-copy p { font-size: 1.15rem; color: rgba(255, 255, 255, .92); }
.quiz-copy .btn { margin-top: 8px; }
@media (max-width: 860px) { .quiz-feature { grid-template-columns: 1fr; } }

/* Mosaic teaser */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.mosaic .ph { border-radius: var(--radius-sm); overflow: hidden; display: block; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.mosaic .ph.tall { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic .ph:hover img { transform: scale(1.08); }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

/* Help / facts */
.help-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.help-grid p { font-size: 1.15rem; color: var(--ink-2); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.facts li { display: flex; align-items: center; gap: 22px; background: var(--paper); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.facts b { font-family: var(--head); font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; min-width: 4.2em; }
.facts li:nth-child(1) b { color: var(--orange); }
.facts li:nth-child(2) b { color: var(--berry); }
.facts li:nth-child(3) b { color: var(--sky-d); }
.facts span { color: var(--ink-2); font-weight: 600; }
.facts-dark { grid-template-columns: repeat(3, 1fr); margin-bottom: 50px; }
.facts-dark li { flex-direction: column; align-items: flex-start; gap: 10px; background: rgba(255, 255, 255, .07); box-shadow: none; border: 1px solid rgba(255, 255, 255, .12); }
.facts-dark span { color: rgba(255, 255, 255, .85); }
.facts-dark li:nth-child(1) b { color: var(--sun); }
.facts-dark li:nth-child(2) b { color: #ff8fb4; }
.facts-dark li:nth-child(3) b { color: #7cc6ff; }
@media (max-width: 860px) {
  .help-grid { grid-template-columns: 1fr; }
  .facts-dark { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .facts li:not(.facts-dark li) { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* Subscribe band */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: clamp(30px, 5vw, 56px) clamp(26px, 5vw, 64px); border-radius: 32px; color: #fff;
  background: radial-gradient(400px 300px at 100% 0%, rgba(255, 201, 60, .5), transparent 70%), linear-gradient(120deg, var(--berry), #8e44ad 60%, var(--sky-d));
  box-shadow: var(--shadow-lg);
}
.cta-band > div { position: relative; z-index: 2; max-width: 640px; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { margin: 0; font-size: 1.12rem; color: rgba(255, 255, 255, .9); }
.cta-band .btn { position: relative; z-index: 2; color: var(--yt); }
.cta-band .fly-1 { top: 12%; left: auto; right: 24%; }
.cta-band .fly-2 { top: 60%; left: 58%; }

/* Inner page heroes */
.page-hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(100px, 12vw, 160px); color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--orange), var(--berry));
}
.page-hero h1 { color: #fff; max-width: 15em; }
.page-hero .lead { color: rgba(255, 255, 255, .92); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero-photo { background: linear-gradient(90deg, rgba(29, 22, 48, .86) 0%, rgba(29, 22, 48, .55) 55%, rgba(29, 22, 48, .15) 100%), var(--hero) center 40% / cover no-repeat; }
.page-hero-sky { background: radial-gradient(500px 360px at 85% 0%, rgba(255, 201, 60, .55), transparent 70%), linear-gradient(135deg, var(--sky-d), #6b4fd8); }
.page-hero-leaf { background: radial-gradient(500px 360px at 90% 10%, rgba(255, 201, 60, .45), transparent 70%), linear-gradient(135deg, var(--leaf-d), var(--jade)); }
.page-hero-tall { min-height: 70vh; display: grid; align-items: center; }
.page-hero-tall .lead { margin-inline: auto; }
.page-hero-tall h1 { margin-inline: auto; }

.jumps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jump {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; text-decoration: none;
  font-family: var(--head); font-weight: 600; backdrop-filter: blur(6px); transition: background-color .2s, transform .2s;
}
.jump:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.jump span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 700; }
.jump-egg span { background: #e9a800; }
.jump-caterpillar span { background: var(--leaf); }
.jump-chrysalis span { background: var(--jade); }
.jump-butterfly span { background: var(--orange); }
.jump-quiz span { background: var(--berry); }

/* Stage rows */
.stages { display: grid; gap: clamp(50px, 7vw, 90px); margin-top: 60px; }
.stage-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.stage-row.flip .stage-video { order: 2; }
.stage-video { position: relative; }
.stage-video::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius); z-index: -1;
}
#egg .stage-video::before { background: var(--sun); }
#caterpillar .stage-video::before { background: var(--leaf-l); inset: 18px 18px -18px -18px; }
#chrysalis .stage-video::before { background: #c9efe9; }
#butterfly .stage-video::before { background: var(--orange-l); inset: 18px 18px -18px -18px; }
.lite { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); }
.lite img { width: 100%; height: 100%; object-fit: cover; }
.lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite-btn { position: absolute; inset: 0; }
.lite .vplay { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.lite .vplay .ico { width: 36px; height: 36px; }
.lite.is-playing .lite-btn, .lite.is-playing .vlen, .lite.is-playing img { display: none; }
.stage-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .92rem; margin-bottom: 12px; }
.stage-tag span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 1.1rem; }
.stage-tag-egg { color: #b98500; } .stage-tag-egg span { background: #e9a800; }
.stage-tag-caterpillar { color: var(--leaf-d); } .stage-tag-caterpillar span { background: var(--leaf); }
.stage-tag-chrysalis { color: #23877b; } .stage-tag-chrysalis span { background: var(--jade); }
.stage-tag-butterfly { color: var(--orange-d); } .stage-tag-butterfly span { background: var(--orange); }
.stage-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.stage-short { font-size: 1.18rem; font-weight: 700; color: var(--ink); }
.stage-copy p:not(.stage-short):not(.stage-tag) { color: var(--ink-2); }
@media (max-width: 860px) {
  .stage-row { grid-template-columns: 1fr; }
  .stage-row.flip .stage-video { order: 0; }
  .stage-video::before { display: none; }
}

/* Named butterflies */
.bfly-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.bfly { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease; }
.bfly:nth-child(odd):hover { transform: translateY(-6px) rotate(-1deg); }
.bfly:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.bfly-img { display: block; overflow: hidden; }
.bfly-img img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .5s; }
.bfly:hover .bfly-img img { transform: scale(1.06); }
.bfly-body { padding: 16px 20px 22px; }
.bfly-sex { display: inline-block; font-family: var(--head); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; background: var(--sky-l); color: var(--sky-d); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.bfly-sex-female { background: var(--berry-l); color: #c2185b; }
.bfly-sex-both { background: var(--sun-l); color: #9a6a00; }
.bfly h3 { margin-bottom: .3em; }
.bfly-body p:last-child { color: var(--ink-2); font-size: .98rem; margin: 0; }
.tip { display: flex; gap: 24px; align-items: center; margin-top: 40px; background: var(--sun-l); border: 3px dashed var(--sun); border-radius: var(--radius); padding: 26px 30px; }
.tip h3 { margin-bottom: .3em; }
.tip p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.tip-fly { width: 80px; height: 60px; flex: none; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(6deg); } }
@media (max-width: 600px) { .tip { flex-direction: column; text-align: center; } }

/* Endangered */
.section-ink h2, .section-ink h3 { color: #fff; }
.quote { margin: 0 0 60px; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); background: linear-gradient(135deg, rgba(244, 123, 32, .22), rgba(236, 64, 122, .18)); border-left: 6px solid var(--orange); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; font-weight: 600; }
.quote figcaption { color: rgba(255, 255, 255, .75); font-size: .98rem; }
.quote a { color: var(--sun); }
.quote a:hover { color: #fff; }
.help-h { text-align: center; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 26px; }
.help-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.help-list li { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.help-list b { font-family: var(--head); font-weight: 600; font-size: 1.2rem; }
.help-list li > span:last-child { color: var(--ink-2); font-size: .98rem; }
.hi { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; margin-bottom: 8px; color: #fff; }
.hi .ico { width: 26px; height: 26px; }
.hi-1 { background: var(--leaf); } .hi-2 { background: var(--berry); } .hi-3 { background: var(--jade); } .hi-4 { background: var(--sky); }
@media (max-width: 960px) { .help-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .help-list { grid-template-columns: 1fr; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; position: relative; z-index: 3; }
.filter {
  font-family: var(--head); font-weight: 600; font-size: 1.02rem; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, background-color .15s, color .15s;
}
.filter span { font-size: .8rem; background: rgba(29, 22, 48, .08); padding: 1px 8px; border-radius: 999px; }
.filter:hover { transform: translateY(-2px); }
.filter.is-on { background: var(--ink); color: #fff; }
.filter.is-on span { background: rgba(255, 255, 255, .2); }

/* Gallery masonry */
.masonry { columns: 4 240px; column-gap: 16px; }
.gitem { break-inside: avoid; margin: 0 0 16px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.gitem:hover { transform: translateY(-4px); }
.gitem.is-hidden { display: none; }
.gitem .ph { display: block; overflow: hidden; }
.gitem img { width: 100%; transition: transform .5s; }
.gitem:hover img { transform: scale(1.05); }
.gitem figcaption { padding: 10px 14px 12px; font-size: .92rem; font-weight: 700; color: var(--ink-2); line-height: 1.4; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(20, 14, 34, .94); padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: pop .25s ease; }
.lightbox figcaption { color: #fff; font-weight: 700; text-align: center; max-width: 60ch; }
.lightbox figcaption small { display: block; color: rgba(255, 255, 255, .55); font-weight: 600; margin-top: 4px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, background-color .15s; }
.lb-btn:hover { transform: scale(1.1); background: var(--sun); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; margin-top: -26px; }
.lb-next { right: 14px; top: 50%; margin-top: -26px; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 640px) {
  .lightbox { padding: 70px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* Video modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 14, 34, .9); }
.modal-dialog { position: relative; width: min(1100px, 100%); animation: pop .25s ease; }
.modal-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #fff; }
.modal-title { font-size: 1.3rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.modal-yt { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none; font-size: .95rem; opacity: .85; }
.modal-yt:hover { color: #fff; opacity: 1; }
.modal-yt .ico { color: var(--yt); width: 1.5em; height: 1.5em; }
.modal-close { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; flex: none; }
.modal-close:hover { background: var(--sun); }
.modal-close .ico { width: 22px; height: 22px; }
.modal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .modal-yt span { display: none; } }
body.no-scroll { overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 70px 0 30px; margin-top: 70px; }
.footer-wave { position: absolute; left: 0; top: 1px; width: 100%; height: clamp(30px, 5vw, 70px); transform: translateY(-100%); }
.footer-wave path { fill: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.brand-light { color: #fff; margin-bottom: 14px; }
.brand-light:hover { color: #fff; }
.brand-light img { width: 52px; height: 52px; }
.footer-brand p { max-width: 34em; }
.footer-h { font-size: 1.15rem; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--sun); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: .95rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .lifecycle .stage:nth-child(2) { transition-delay: .1s; }
.js .lifecycle .stage:nth-child(3) { transition-delay: .2s; }
.js .lifecycle .stage:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
