/* Ms. B Early Education — landing page
   Palette follows the YouTube banner: soft coral, mustard and sage on warm paper. */

@font-face { font-family: "Literata"; src: url(assets/fonts/literata-normal.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url(assets/fonts/literata-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Lexend"; src: url(assets/fonts/lexend-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #FBF4EE;
  --paper-2: #F6EBE1;
  --cream: #FFFBF6;
  --ink: #5B4134;
  --ink-strong: #4A3226;
  --ink-soft: #7E5F50;
  --line: #EADBCD;

  --coral: #EE8551;
  --coral-btn: #C25B2E;
  --coral-shade: #96431F;
  --peach: #F9E1D3;
  --mustard: #D4A443;
  --honey: #F2C46B;
  --sage: #8FC0AE;
  --sage-ink: #4C7C6B;
  --sage-wash: #E9F2EC;
  --leaf: #86AE7E;
  --sky: #E6F0F1;
  --tan: #D7A585;
  --tape: #EED8C6;

  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --sans: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 34px;
  --r-md: 22px;
  --shadow-soft: 0 18px 40px -18px rgba(74, 50, 38, .35);
  --shadow-card: 0 10px 26px -14px rgba(74, 50, 38, .4);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;

  /* fine paper grain, generated once */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x lives on html only: a second overflow on body turns body into its own scroll box,
   which breaks the sticky nav and the menu's scroll lock. The gutter keeps the width steady when the lock hides the scrollbar. */
html { overflow-x: clip; scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper) var(--grain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
img { -webkit-user-drag: none; user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #3F7FB0; outline-offset: 4px; border-radius: 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink-strong); color: var(--cream); padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.wrap--narrow { max-width: 1040px; }

/* ---------- type ---------- */
.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  text-wrap: balance;
}
.eyebrow {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; opacity: .5; }
.head--center .eyebrow::after { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; opacity: .5; }
.head { margin-bottom: clamp(28px, 4vw, 44px); }
.head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.head__sub { margin-top: 14px; font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  --bshadow: var(--coral-shade);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 5px 0 var(--bshadow);
  transition: transform .28s var(--spring), box-shadow .28s var(--spring), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--bshadow); }
.btn:active { transform: translateY(4px) scale(.98); box-shadow: 0 1px 0 var(--bshadow); transition-duration: .08s; }
.btn--coral { background: var(--coral-btn); color: var(--cream); }
.btn--coral::after { content: ""; position: absolute; inset: 5px; border-radius: inherit; border: 2px dashed rgba(255, 251, 246, .5); pointer-events: none; }
.btn--paper { --bshadow: #E3CDB9; background: var(--cream); color: var(--ink-strong); }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 19px; font-weight: 700; }
.btn--sm { min-height: 44px; padding: 0 18px 0 16px; font-size: 16px; font-weight: 700; }
.btn__play { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; transition: transform .4s var(--spring); }
.btn:hover .btn__play { transform: translateX(3px) scale(1.12); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-stuck { background: rgba(251, 244, 238, .9); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(74, 50, 38, .5); }
.nav__inner { height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 20px; }
.nav__brand { display: flex; align-items: center; text-decoration: none; padding: 6px 4px; margin-left: -4px; }
.mini-logo { display: flex; align-items: flex-end; height: 40px; position: relative; padding-right: 30px; }
.mini-logo__l { height: auto; transform-origin: 50% 100%; }
.mini-logo__l:nth-child(1) { width: 30px; }
.mini-logo__l:nth-child(2) { width: 19px; margin-left: 1px; }
.mini-logo__dot { width: 8px; margin: 0 1px 1px; }
.mini-logo__l:nth-child(4) { width: 24px; }
.mini-logo__bee { position: absolute; right: 0; top: -2px; width: 28px; height: 24px; }
.mini-logo__bee img { position: absolute; left: 0; top: 4px; width: 28px; }
.mini-logo__bee .mini-logo__wings { width: 17px; left: 1px; top: -2px; transform-origin: 64% 94%; animation: flap .12s linear infinite alternate; }
@keyframes flap { to { transform: scaleY(.5); } }

.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a, .sheet nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 18px; color: var(--ink-strong);
  padding: 10px 14px; border-radius: 999px; transition: background-color .2s, color .2s; white-space: nowrap;
}
.nav__links a:hover { background: rgba(215, 165, 133, .18); }
.nav__links a.is-here { color: var(--coral-btn); }
.nav__links a.is-here::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--coral); }
.nav__cta { flex: none; }
.nav__menu { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); box-shadow: 0 3px 0 #E3CDB9; align-items: center; justify-content: center; }
.nav__menu-bars { display: grid; gap: 4px; }
.nav__menu-bars i { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink-strong); transition: transform .3s var(--spring), opacity .2s; }
.nav__menu[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav__menu[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.scrim { position: fixed; inset: 0; z-index: -1; background: rgba(74, 50, 38, .28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) - 2px); background: var(--cream) var(--grain); border-radius: 26px; box-shadow: 0 0 0 3px var(--tan), var(--shadow-soft); padding: 14px 14px 18px; transform-origin: 90% 0; }
.sheet::before { content: ""; position: absolute; inset: 8px; border-radius: 19px; border: 2px dashed rgba(215, 165, 133, .5); pointer-events: none; }
.sheet .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot--coral { background: var(--coral); } .dot--honey { background: var(--honey); } .dot--sage { background: var(--sage); } .dot--sky { background: #8DB7D8; }
.sheet__cta { width: 100%; margin-top: 10px; }
.sheet__chick { position: absolute; right: 22px; top: -50px; width: 66px; height: auto; z-index: -1; }
.sheet nav { display: grid; }
.sheet nav a { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 600; padding: 14px 16px; border-radius: 14px; }
.sheet a:active { background: var(--paper-2); }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__menu { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + clamp(8px, 2vw, 22px)) 0 clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, var(--sky) 0, #EEF3EF 38%, var(--paper) 78%);
  overflow: hidden;
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; height: auto; opacity: .95; }
.cloud--a { width: clamp(150px, 17vw, 250px); left: -2%; top: 15%; }
.cloud--b { width: clamp(90px, 10vw, 150px); left: 14%; top: 4%; }
.cloud--c { width: clamp(90px, 9vw, 140px); right: 13%; top: 8%; }
.cloud--d { width: clamp(150px, 16vw, 240px); right: -3%; top: 25%; }

.hero__inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; padding-top:10px;}

.brand { position: relative; width: min(500px, 84vw); margin-top: clamp(56px, 7vw, 84px); }
.logo { position: relative; width: 100%; aspect-ratio: 2698 / 1212; z-index: 2; }
.logo img { position: absolute; display: block; height: auto; max-width: none; }
.logo__plate { left: 0; top: 0; width: 100%; filter: drop-shadow(0 14px 18px rgba(74, 50, 38, .16)); }
.logo [data-tap] { cursor: pointer; pointer-events: auto; }
.logo__shine {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%) 160% 0 / 250% 100% no-repeat;
  -webkit-mask: url(assets/logo/plate.webp) 0 0 / 100% 100% no-repeat; mask: url(assets/logo/plate.webp) 0 0 / 100% 100% no-repeat;
  mix-blend-mode: soft-light;
}
.logo__bee { position: absolute; }
.logo__bee img { position: absolute; }

/* friends perched behind the plate */
.perch { position: absolute; z-index: 1; display: block; transform-origin: 50% 100%; }
.perch img { width: 100%; height: auto; }
.friend__happy { position: absolute; left: 0; top: 0; visibility: hidden; }
.is-happy > .friend__happy { visibility: visible; }
.is-happy > .friend__rest { visibility: hidden; }
.perch--cow { width: 27%; left: 3%; top: -44%; }
.perch--giraffe { width: 20%; right: -4%; top: -46%; }

/* washi tape: "Created by a speech therapist" */
.tape { position: absolute; z-index: 3; right: -15%; bottom: -21%; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; transform: rotate(-3deg); pointer-events: none; }
.tape__strip {
  --tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M0 0h8v12H0l3-2-3-2 3-2-3-2 3-2z' fill='%23000'/%3E%3C/svg%3E");
  --tear-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M0 0h8L5 2l3 2-3 2 3 2-3 2 3 2H0z' fill='%23000'/%3E%3C/svg%3E");
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 20px 8px;
  font-weight: 500; font-size: clamp(14px, 1.6vw, 18px); line-height: 1.15; color: #6E4C3B; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 40%), #EFD9C6 var(--grain);
  box-shadow: 0 2px 6px -2px rgba(74, 50, 38, .25);
  -webkit-mask: var(--tear) left / 8px 12px repeat-y, linear-gradient(#000, #000) 8px 0 / calc(100% - 16px) 100% no-repeat, var(--tear-r) right / 8px 12px repeat-y;
  mask: var(--tear) left / 8px 12px repeat-y, linear-gradient(#000, #000) 8px 0 / calc(100% - 16px) 100% no-repeat, var(--tear-r) right / 8px 12px repeat-y;
}
.tape__strip--b { transform: translateX(12px) rotate(1.8deg); background-color: #F3E0CF; }
.heart { width: 1em; height: .92em; fill: #8FB9A6; flex: none; }
.heart--orange { fill: #EE9A5A; }

.hero__lede {
  margin-bottom: 0;
  margin-top: 66px;
  font-family: var(--serif); font-weight: 700; font-style: italic;
  font-size: 40px; line-height: 1.2; color: var(--ink-strong);
}

/* topic pills = reel tabs */
.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 18px; }
.topic { position: relative; width: clamp(128px, 18vw, 178px); padding: 2px 2px 14px; border-radius: 18px; transition: filter .3s; }
.topic img { width: 100%; height: auto; transition: transform .35s var(--spring); }
.topic:hover img { transform: translateY(-3px) rotate(-1.5deg); }
.topic:active img { transform: translateY(2px) scale(.96); transition-duration: .08s; }
.topic[aria-selected="false"] { filter: saturate(.72) brightness(1.03); }
.topic[aria-selected="true"] img { transform: translateY(-3px) scale(1.04); }
.topic__bar { position: absolute; left: 22%; right: 22%; bottom: 2px; height: 5px; border-radius: 5px; background: rgba(150, 110, 90, .16); overflow: hidden; }
.topic__bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); }
.topic[aria-selected="true"] .topic__bar { background: rgba(238, 133, 81, .22); }

/* hero reel */
.reel { position: relative; width: min(1000px, 100%); margin-top: 22px; }
.reel__frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  padding: 10px;
  background: var(--cream);
  box-shadow: 0 0 0 3px var(--tan), 0 30px 60px -28px rgba(74, 50, 38, .45), 0 8px 18px -10px rgba(74, 50, 38, .25);
}
.reel__track { position: absolute; inset: 10px; border-radius: calc(var(--r-lg) - 9px); overflow: hidden; background: #F3E6D8; isolation: isolate; }
.slide { position: absolute; inset: 0; will-change: transform; }
.slide video, .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__poster { position: absolute; inset: 0; }
.slide.is-playing .slide__poster { transition: opacity .25s .1s; }
.slide.is-playing .slide__poster { opacity: 0; }
.reel__stitch { position: absolute; inset: 18px; border-radius: calc(var(--r-lg) - 16px); border: 2.5px dashed rgba(255, 251, 246, .85); pointer-events: none; z-index: 3; }

.reel__word {
  position: absolute; left: 50%; bottom: 9%; z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
}
.reel__word span {
  display: inline-block; padding: 6px 26px 9px;
  font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 3.6vw, 44px); line-height: 1.1; color: var(--ink-strong);
  background: var(--cream); border-radius: 999px;
  box-shadow: 0 5px 0 var(--tan), 0 14px 24px -12px rgba(74, 50, 38, .5);
  visibility: hidden;
}

.reel__ctrl {
  position: absolute; top: 50%; z-index: 5; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  background: var(--cream); color: var(--coral-btn); box-shadow: 0 0 0 3px var(--tan), 0 5px 0 3px #C99272, 0 12px 22px -10px rgba(74, 50, 38, .5);
  display: grid; place-items: center; opacity: 0; transition: opacity .25s, transform .3s var(--spring);
}
.reel__ctrl::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2px dashed rgba(194, 91, 46, .35); }
.reel__ctrl svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.reel__ctrl--prev { left: -18px; transform: translateX(10px); }
.reel__ctrl--next { right: -18px; transform: translateX(-10px); }
.reel:hover .reel__ctrl, .reel__ctrl:focus-visible { opacity: 1; transform: none; }
.reel__ctrl:active { transform: scale(.9) !important; }

/* grass that plants the frame in the meadow */
.reel__grass { position: absolute; left: 0; right: 0; bottom: -6px; height: 0; z-index: 6; pointer-events: none; }
.reel__clump { position: absolute; bottom: -14px; height: auto; transform-origin: 50% 100%; }
.reel__clump--l { width: clamp(120px, 20%, 200px); left: -5%; }
.reel__clump--r { width: clamp(52px, 8%, 80px); right: -2%; bottom: -10px; }
.reel__daisy { position: absolute; height: auto; transform-origin: 50% 50%; }
.reel__daisy--a { width: clamp(22px, 3.2%, 32px); left: 9%; bottom: -16px; }
.reel__daisy--b { width: clamp(18px, 2.4%, 26px); right: 5%; bottom: -20px; }

.hero__sub { margin-top: clamp(30px, 4vw, 40px); max-width: 600px; font-size: clamp(17px, 1.7vw, 20px); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; margin-top: 24px; }


/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; }

/* most watched */
.watched { padding-top: clamp(40px, 6vw, 72px); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--coral-btn); text-decoration: none; padding: 10px 2px; }
.link-more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.link-more:hover svg { transform: translateX(5px); }
.link-more span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--out); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 34px) clamp(18px, 2.4vw, 28px); }
.card { position: relative; }
.card__link { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink-strong); border-radius: var(--r-md); outline-offset: 6px; }
.card__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden;
  background: #EAD9C8; border: 6px solid var(--cream);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(215, 165, 133, .25);
  transition: transform .5s var(--spring), box-shadow .5s var(--out);
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .77s var(--out); }
/* a flat, YouTube-style play button centred on the thumbnail; 65% opaque so the art shows through. It stays still on hover. */
.card__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 14px;
  background: rgba(194, 91, 46, .65); display: grid; place-items: center; pointer-events: none;
}
.card__play svg { width: 22px; height: 22px; margin-left: 2px; fill: var(--cream); }
.card__title { font-weight: 600; font-size: 18px; line-height: 1.3; text-wrap: pretty; transition: color .2s; }
.card__meta { display: flex; align-items: center; gap: 8px; margin-top: -8px; font-size: 15px; color: var(--ink-soft); }
.card__meta svg { width: 15px; height: 15px; fill: currentColor; opacity: .8; }
.card__tag { padding: 2px 10px; border-radius: 999px; background: var(--sage-wash); color: var(--sage-ink); font-size: 13px; font-weight: 600; }
@media (hover: hover) {
  .card__link:hover .card__thumb { transform: translateY(-6px); box-shadow: 0 24px 40px -18px rgba(74, 50, 38, .5), 0 0 0 1px rgba(215, 165, 133, .25); }
  .card__link:hover .card__thumb img { transform: scale(1.04); }
  .card__link:hover .card__title { color: var(--coral-btn); }
}
.card__link:active .card__thumb { transform: translateY(1px) scale(.98); transition-duration: .1s; }

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .cards {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scroll-padding: 0 var(--gutter);
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 82%; scroll-snap-align: start; }
}
.swipe-dots { display: none; justify-content: center; gap: 6px; margin-top: 6px; }
.swipe-dots i { width: 7px; height: 7px; border-radius: 4px; background: #E2CDBB; transition: width .3s var(--spring), background-color .3s; }
.swipe-dots i.is-on { width: 22px; background: var(--coral); }
@media (max-width: 600px) { .swipe-dots { display: flex; } }

/* ---------- egg hatch ---------- */
.play { background: #FAEEDC var(--grain); margin-top: 24px; padding: clamp(64px, 8vw, 96px) 0 clamp(76px, 9vw, 110px); }
.play::before {
  content: ""; position: absolute; left: 0; right: 0; height: 22px; background: #FAEEDC;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V14c10-6 20-8 30-4s20 6 30 0 20-10 30-6 20 8 30 10v10z'/%3E%3C/svg%3E") 0 0 / 220px 22px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V14c10-6 20-8 30-4s20 6 30 0 20-10 30-6 20 8 30 10v10z'/%3E%3C/svg%3E") 0 0 / 220px 22px repeat-x;
}
.play::before { top: -21px; }
.coop { position: relative; }
.coop__stage {
  position: relative; aspect-ratio: 16 / 7.4; border-radius: var(--r-lg);
  border: 10px solid var(--cream);
  box-shadow: 0 0 0 3px var(--tan), 0 30px 60px -30px rgba(74, 50, 38, .45);
  overflow: hidden; background: #CFE6EE; isolation: isolate; z-index: 1;
}
.coop__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.coop__stitch { position: absolute; inset: 8px; border-radius: calc(var(--r-lg) - 16px); border: 2.5px dashed rgba(255, 251, 246, .85); pointer-events: none; z-index: 9; }
.coop__foliage { position: absolute; left: -2%; bottom: -3%; width: 30%; height: auto; z-index: 6; pointer-events: none; }

.coop__hen { position: absolute; left: 2%; bottom: 8%; width: 26%; aspect-ratio: 1; z-index: 3; transform-origin: 50% 100%; }
.hen { position: absolute; inset: 0; width: 100%; height: auto; visibility: hidden; }
.coop__hen[data-pose="rest"] .hen--rest,
.coop__hen[data-pose="attentive"] .hen--attentive,
.coop__hen[data-pose="delight"] .hen--delight,
.coop__hen[data-pose="flap"] .hen--flap { visibility: visible; }

.nests { position: absolute; left: 28%; right: 2%; bottom: 10%; display: flex; justify-content: space-between; align-items: flex-end; z-index: 4; }
.nest-slot { position: relative; width: 24.5%; }
.nest {
  position: relative; display: block; width: 100%; aspect-ratio: 420 / 330;
  border-radius: 40% 40% 30% 30%;
  touch-action: manipulation;
}
.nest:focus-visible { outline-offset: 0; }
.nest img { position: absolute; height: auto; max-width: none; pointer-events: none; }
.nest__shade { left: -4%; width: 108%; bottom: -12%; opacity: .55; }
.nest__back { left: 0; width: 100%; bottom: 0; }
.nest__front { left: 0; width: 100%; bottom: 0; z-index: 5; }
.egg { position: absolute; left: 50%; bottom: 20%; width: 52%; margin-left: -26%; aspect-ratio: 160 / 211; transform-origin: 50% 92%; z-index: 2; }
.egg img { left: 0; top: 0; width: 100%; }
.egg__cracked, .egg__shellb, .egg__shellt { visibility: hidden; }
.chick { position: absolute; left: 50%; bottom: 34%; width: 70%; margin-left: -35%; aspect-ratio: 180 / 158; z-index: 1; transform-origin: 50% 100%; visibility: hidden; }
.chick img { left: 0; top: 0; width: 100%; }
.chick .chick__delight { visibility: hidden; }
.chick.is-happy .chick__delight { visibility: inherit; }
.chick.is-happy .chick__rest { visibility: hidden; }
.egg__shellb { z-index: 3; }
.egg__shellt { z-index: 4; transform-origin: 50% 100%; }
.nest__num {
  position: absolute; left: 50%; top: -58%; z-index: 7; width: clamp(34px, 4.4vw, 54px); height: clamp(34px, 4.4vw, 54px); margin-left: clamp(-27px, -2.2vw, -17px);
  display: grid; place-items: center; border-radius: 50%; background: var(--coral-btn); color: var(--cream);
  font-family: var(--serif); font-weight: 800; font-size: clamp(19px, 2.6vw, 32px); line-height: 1;
  box-shadow: 0 0 0 3px var(--cream), 0 4px 0 3px rgba(150, 67, 31, .45); visibility: hidden;
}
.nest__num::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1.5px dashed rgba(255, 251, 246, .55); }
.coop__word {
  position: absolute; left: 0; right: 0; top: 10%; z-index: 8; text-align: center; pointer-events: none;
}
.coop__word span {
  display: inline-block; padding: 4px 28px 8px; border-radius: 999px; background: var(--cream);
  font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 5vw, 56px); line-height: 1.1; color: var(--ink-strong);
  box-shadow: 0 6px 0 var(--tan), 0 16px 30px -14px rgba(74, 50, 38, .5);
}
.fx { position: absolute; pointer-events: none; z-index: 9; }
.fx--heart { width: 26px; height: 26px; }
.fx--spark { width: 10px; height: 10px; border-radius: 50%; }

.meerkat { position: absolute; right: 6%; top: 0; width: clamp(54px, 7vw, 82px); z-index: 0; transform: translateY(-62%); transform-origin: 50% 100%; }
.meerkat img { width: 100%; height: auto; }

/* ---------- meet ms. b ---------- */
.meet { background: var(--sage-wash) var(--grain); }
.meet__edge {
  position: absolute; left: 0; right: 0; top: -22px; height: 24px;
  background: var(--sage-wash);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V14c10-6 20-8 30-4s20 6 30 0 20-10 30-6 20 8 30 10v10z'/%3E%3C/svg%3E") 0 0 / 240px 24px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V14c10-6 20-8 30-4s20 6 30 0 20-10 30-6 20 8 30 10v10z'/%3E%3C/svg%3E") 0 0 / 240px 24px repeat-x;
}
.letter {
  position: relative; max-width: 780px; margin: 30px auto 0; padding: clamp(36px, 6vw, 64px) clamp(24px, 6vw, 72px) clamp(32px, 5vw, 52px);
  background: var(--cream) var(--grain); border-radius: 10px 10px 14px 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 30px 50px -30px rgba(60, 80, 70, .45), 0 4px 12px -6px rgba(60, 80, 70, .2);
  transform: rotate(-.6deg);
}
.letter__tape { position: absolute; top: -14px; width: 120px; height: 32px; background: rgba(238, 216, 198, .92) var(--grain); box-shadow: 0 2px 4px -2px rgba(74, 50, 38, .3); }
.letter__tape--l { left: -18px; transform: rotate(-32deg); }
.letter__tape--r { right: 60px; width: 96px; transform: rotate(4deg); background-color: rgba(206, 228, 216, .92); }
.letter__rabbit { position: absolute; right: clamp(-10px, 2vw, 24px); bottom: calc(100% - 34px); width: clamp(82px, 11vw, 120px); transform-origin: 50% 100%; z-index: 2; }
.letter__rabbit img { width: 100%; height: auto; }
.letter .eyebrow { position: relative; }
.letter__title { position: relative; font-size: clamp(38px, 6vw, 64px); }
.letter__body { position: relative; display: grid; gap: 16px; margin-top: 20px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; max-width: 600px; }
.tags { position: relative; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; }
.tags li { padding: 7px 16px; border-radius: 999px; border: 2px dashed rgba(76, 124, 107, .4); color: var(--sage-ink); font-size: 15px; font-weight: 500; background: rgba(233, 242, 236, .6); }
.letter__sign { position: relative; margin-top: 30px; display: flex; flex-direction: column; }
.letter__sign > span:first-child { font-size: 16px; color: var(--ink-soft); }
.letter__name { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(34px, 4vw, 44px); line-height: 1.1; color: var(--coral-btn); }
/* body + wings fly together inside this box (the wings' flap animation owns their own transform) */
.bee-fly { position: absolute; inset: 0; }
/* the bee rides inside the name, so it always sits just past the last letter */
.letter__name { position: relative; align-self: flex-start; }
.letter__bee { position: absolute; left: 100%; margin-left: 4px; bottom: 10px; width: 52px; height: 46px; }
.letter__bee img { position: absolute; left: 0; top: 8px; width: 52px; height: auto; }
.letter__bee .letter__wings { width: 32px; left: 2px; top: -3px; transform-origin: 64% 94%; animation: flap .12s linear infinite alternate; }
.balloon { position: absolute; right: max(2%, calc(50% - 650px)); top: 6%; width: clamp(130px, 17vw, 240px); z-index: 3; transform-origin: 50% 0; }
.balloon img { width: 100%; height: auto; }
.butterflies { position: absolute; inset: 0; pointer-events: none; }
.butterfly { position: absolute; width: 44px; left: 8%; top: 18%; }
.butterfly img { width: 100%; height: auto; }
.butterfly .b-up { position: absolute; left: 0; top: 0; visibility: hidden; }
.butterfly.is-up .b-up { visibility: visible; }
.butterfly.is-up .b-open { visibility: hidden; }

/* ---------- app ---------- */
.app { background: var(--paper); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; background: var(--cream); box-shadow: 0 3px 0 var(--line); font-weight: 600; font-size: 15px; color: var(--ink-strong); margin-bottom: 16px; }
.badge img { width: 34px; height: 34px; border-radius: 10px; }

.device { position: relative; width: min(860px, 100%); margin: 0 auto; perspective: 1400px; }
.device__body {
  position: relative; padding: clamp(10px, 1.6vw, 18px); border-radius: clamp(24px, 3vw, 38px);
  background: linear-gradient(145deg, #4A3A31, #2E231D 60%, #3A2D26);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .12), 0 40px 60px -34px rgba(46, 35, 29, .7);
  transform-style: preserve-3d; will-change: transform;
}
.device__cam { position: absolute; left: clamp(4px, .7vw, 8px); top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #1C1511; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.device__screen { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(12px, 1.6vw, 20px); overflow: hidden; background: #CFE6EE; }
.device__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.device__video.is-on { opacity: 1; }
.device__shadow { position: absolute; left: 10%; right: 10%; bottom: -26px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 35, 29, .3), transparent); z-index: -1; }

.games { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.game {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 5px 18px 5px 6px; border-radius: 999px;
  background: rgba(255, 251, 246, .55); box-shadow: inset 0 0 0 2px rgba(215, 165, 133, .45);
  font-weight: 600; font-size: 15px; color: var(--ink-strong); overflow: hidden;
  transition: background-color .25s, box-shadow .25s;
}
.game img { width: 40px; height: 40px; border-radius: 50%; transition: transform .45s var(--spring); }
.game:hover { background: var(--cream); }
.game:hover img { transform: rotate(-12deg) scale(1.08); }
.game:active img { transform: scale(.9); transition-duration: .08s; }
.game[aria-selected="true"] { background: var(--cream); box-shadow: inset 0 0 0 2px var(--coral), 0 4px 0 rgba(215, 165, 133, .5); }
.game__fill { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.game[aria-selected="true"] .game__fill { opacity: 1; }
.game__label { position: relative; }

.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 30px auto 0; max-width: 820px; }
.perks li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--cream); font-weight: 500; font-size: 15px; color: var(--ink-strong); box-shadow: 0 2px 0 rgba(215, 165, 133, .35); }
.perks svg { width: 19px; height: 19px; fill: none; stroke: var(--sage-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.perks .perks__price { background: #F8E3B6; }
.perks .perks__price svg { stroke: #94691A; }

.meadow { position: relative; margin-top: clamp(20px, 4vw, 40px); height: clamp(200px, 26vw, 340px); }
.meadow__land { position: absolute; left: 50%; bottom: 0; width: max(100%, 1100px); transform: translateX(-50%); height: auto; }
.meadow__front { position: absolute; bottom: -6px; height: auto; width: clamp(240px, 30vw, 420px); left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none; }
.meadow__row { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; align-items: flex-end; justify-content: center; gap: 0; width: min(1080px, 100%); z-index: 2; }
.friend { position: relative; flex: none; transform-origin: 50% 100%; touch-action: manipulation; }
.friend img { width: 100%; height: auto; }
.friend--cow { width: 13%; }
.friend--pig { width: 11%; margin-left: -1.5%; }
.friend--sheep { width: 11%; margin-left: -1%; }
.friend--giraffe { width: 10%; margin: 0 1%; }
.friend--elephant { width: 13%; }
.friend--tiger { width: 10%; margin-left: -1%; }
.friend--monkey { width: 10%; margin-left: -1%; }

/* ---------- subscribe: the closing scene ---------- */
.join { position: relative; overflow: hidden; padding-top: clamp(84px, 11vw, 130px); background: linear-gradient(180deg, var(--paper) 0, var(--sky) 32%, #E4EFE6 100%); text-align: center; }
.join__sky { position: absolute; inset: 0; pointer-events: none; }
.cloud--e { width: clamp(140px, 16vw, 230px); left: 6%; top: 22%; }
.cloud--f { width: clamp(80px, 9vw, 130px); right: 16%; top: 14%; }
.cloud--g { width: clamp(140px, 15vw, 220px); right: -2%; top: 40%; }
.join__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.join__title { margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(44px, 7.4vw, 92px); line-height: 1; letter-spacing: -0.02em; color: var(--ink-strong); text-wrap: balance; }
.join__title .w { display: inline-block; }
.join__text { margin-top: 16px; max-width: 520px; font-size: clamp(18px, 1.9vw, 21px); }
.btn--xl { min-height: 68px; padding: 0 36px; font-size: 21px; font-weight: 700; }
.join .meadow { margin-top: clamp(10px, 3vw, 30px); }

/* ---------- footer ---------- */
.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot__brand { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.foot__logo { grid-row: span 2; position: relative; display: flex; align-items: flex-end; height: 40px; padding-right: 32px; text-decoration: none; }
.foot__bee { position: absolute; right: 0; top: -6px; width: 28px; height: 26px; }
.foot__bee img { position: absolute; left: 0; top: 5px; width: 28px; height: auto; }
.foot__bee .foot__wings { width: 17px; left: 1px; top: -1px; transform-origin: 64% 94%; animation: flap .12s linear infinite alternate; }
.foot__logo img { height: auto; }
.foot__logo img:nth-child(1) { width: 30px; } .foot__logo img:nth-child(2) { width: 19px; margin-left: 1px; } .foot__logo .foot__dot { width: 8px; margin: 0 1px 1px; } .foot__logo img:nth-child(4) { width: 24px; }
.foot__name { font-family: var(--serif); font-weight: 800; font-size: 20px; color: var(--ink-strong); }
.foot__small { font-size: 14px; color: var(--ink-soft); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0 -10px; }
.foot__links a { padding: 10px; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.foot__links a:hover { color: var(--coral-btn); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .brand { width: min(400px, 78vw); margin-top: 72px; }
  .tape { right: -4%; bottom: -40%; }
  .tape__strip { font-size: 14px; padding: 5px 16px 6px; }
  .hero__lede { margin-top: 58px; }
  .butterflies { display: none; }
  .balloon { width: 84px; top: 18px; right: 12px; }
  .letter { margin-top: 112px; }
  .letter__title { padding-right: 8px; }
  .reel { margin-top: 26px; }
  .games { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 26px calc(var(--gutter) * -1) 0; padding: 6px var(--gutter) 10px; -webkit-mask: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent); }
  .games::-webkit-scrollbar { display: none; }
  .game { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .topics { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 4px 8px; }
  .topic { width: 100%; }
  .reel__frame { padding: 7px; border-radius: 24px; }
  .reel__track { inset: 7px; border-radius: 18px; }
  .reel__stitch { inset: 12px; border-radius: 13px; border-width: 2px; }
  .reel__ctrl { display: none; }
  .hero__ctas { flex-direction: column; width: 100%; max-width: 360px; }
  .hero__ctas .btn { width: 100%; }
  .coop__stage { aspect-ratio: 4 / 3.3; border-width: 7px; }
  .coop__bg { object-position: 30% 70%; }
  .coop__hen { width: 34%; left: 2%; bottom: 44%; }
  .nests { left: 2%; right: 2%; bottom: 8%; }
  .nest-slot { width: 24%; }
  .coop__word { top: 7%; left: 30%; }
  .coop__foliage { width: 46%; }
  .meadow { height: 190px; }
  .meadow__row { width: 112%; bottom: 9%; }
  .friend--sheep, .friend--tiger { display: none; }
  .friend--cow { width: 21%; } .friend--pig { width: 18%; } .friend--giraffe { width: 16%; } .friend--elephant { width: 21%; } .friend--monkey { width: 17%; }
}
@media (max-width: 420px) {
  body { font-size: 17px; }
  .btn--lg { font-size: 18px; }
  .letter { transform: none; }
}

/* reduced motion: content first, no ambient loops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ================= round 2 refinements ================= */

/* tape: one strip, two lines, like a label stuck on the plate */
.tape { right: -12%; bottom: -21%; gap: 0; transform: rotate(-3.5deg); }
.tape__strip { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 22px 9px; line-height: 1.3; }
.tape__line { display: inline-flex; align-items: center; gap: 7px; }
.tape__line + .tape__line { padding-left: 22px; }

/* video cards */
.card__media { position: relative; display: block; }
.card__title { margin-top: 10px; }

/* spacing between sections */
.watched { padding-bottom: clamp(56px, 7vw, 84px); }

/* counting: a tighter, fuller stage */
.play { padding: clamp(52px, 6vw, 76px) 0 clamp(60px, 7vw, 84px); }
.play .head { margin-bottom: clamp(22px, 3vw, 32px); }
.coop__stage { aspect-ratio: 16 / 6.8; }
.coop__bg { object-position: 50% 92%; }
.coop__hen { width: 27%; bottom: 6%; }
.nests { bottom: 8%; left: 29%; }
.egg { width: 56%; margin-left: -28%; }
.chick { width: 74%; margin-left: -37%; }
.coop__word { top: 8%; }
.nest__num { left: auto; right: -2%; top: 2%; margin-left: 0; }
.perks li { justify-self: center; }

/* meet: the balloon drifts beside the letter */
.meet { padding-bottom: clamp(80px, 10vw, 120px); }

/* app: friends on stage around the device */
.device__hen { position: absolute; right: -9%; top: 18%; width: 17%; z-index: -1; transform-origin: 0 100%; }
.device__hen img { width: 100%; height: auto; }
.device__bush { position: absolute; z-index: 2; height: auto; pointer-events: none; transform-origin: 50% 100%; }
.device__bush--l { width: 24%; left: -7%; bottom: -8%; }
.device__bush--r { width: 8%; right: -2%; bottom: -6%; }
.device__chick { position: absolute; left: 4%; bottom: -5%; width: 11%; z-index: 3; transform-origin: 50% 100%; }
.device__chick img { width: 100%; height: auto; }
.perks { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 10px; max-width: none; }
.perks li { justify-content: center; }
.perks .perks__price { grid-column: 1 / -1; justify-self: center; }
.app { padding-bottom: clamp(64px, 8vw, 96px); }

/* closing meadow: a consistent cast */
.meadow__row { bottom: 6%; }
.friend--cow { width: 13%; }
.friend--pig { width: 11%; margin-left: -2%; z-index: 2; }
.friend--sheep { width: 11%; margin-left: -2.5%; z-index: 3; }
.friend--giraffe { width: 12.5%; margin: 0 -1% 0 0; }
.friend--elephant { width: 14%; margin-left: -1.5%; z-index: 2; }
.friend--tiger { width: 11%; margin-left: -2%; z-index: 3; }
.friend--monkey { width: 10.5%; margin-left: -1.5%; z-index: 4; }
.foot { position: relative; background: var(--paper); border-top: 0; }
.foot__edge {
  position: absolute; left: 0; right: 0; top: -21px; height: 22px; background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V14c10-6 20-8 30-4s20 6 30 0 20-10 30-6 20 8 30 10v10z'/%3E%3C/svg%3E") 0 0 / 200px 22px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V14c10-6 20-8 30-4s20 6 30 0 20-10 30-6 20 8 30 10v10z'/%3E%3C/svg%3E") 0 0 / 200px 22px repeat-x;
}

/* phone menu */
.sheet .sheet__cta { color: var(--cream); padding: 0 30px; border-radius: 999px; font-size: 19px; font-weight: 700; margin-top: 12px; }
.sheet__chick { right: 20px; top: 16px; width: 74px; z-index: 0; pointer-events: none; }
.sheet nav { position: relative; z-index: 1; padding-right: 80px; }
html.no-scroll { overflow: hidden; }

/* bursts: solid paper stars */
.fx-star { position: absolute; width: 26px; height: 26px; }

@media (max-width: 720px) {
  /* hero tabs in one tidy row */
  .topics { display: flex; flex-wrap: nowrap; gap: 4px; width: 100%; max-width: 380px; justify-content: space-between; }
  .topic { width: 24%; padding-bottom: 10px; }
  .topic__bar { height: 4px; left: 26%; right: 26%; }
  .tape { right: -2%; bottom: -18%; }
  .tape__strip { font-size: 13.5px; padding: 6px 16px 7px; }
  .hero__lede { margin-top: 66px; }

  /* meet: the balloon gets its own row above the letter */
  .meet .wrap { display: flex; flex-direction: column; }
  .balloon { position: relative; order: -1; right: auto; top: auto; width: 140px; margin: -10px 22px -60px auto; z-index: 3; }
  .letter { margin-top: 0; }
  .tags { gap: 8px; }
  .tags li { font-size: 14px; padding: 6px 12px; }

  /* app */
  .device__hen { width: 22%; right: -6%; }
  .device__chick { width: 16%; left: 2%; bottom: -8%; }
  .perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .perks li { font-size: 14px; padding: 7px 13px 7px 10px; }
  .perks .perks__price { font-size: 13.5px; white-space: nowrap; }
  .device__hen { display: none; }

  /* closing scene: a bigger meadow with the whole cast */
  .join { padding-top: 72px; }
  .join .meadow { height: 250px; margin-top: -10px; }
  .meadow__land { width: 260%; }
  .meadow__front { width: 70%; }
  .meadow__row { width: 118%; bottom: 8%; }
  .friend--sheep, .friend--tiger { display: block; }
  .friend--cow { width: 17%; } .friend--pig { width: 14%; } .friend--sheep { width: 14%; } .friend--giraffe { width: 15%; }
  .friend--elephant { width: 17%; } .friend--tiger { width: 14%; } .friend--monkey { width: 13%; }
}

/* ================= round 3 refinements ================= */

/* hero: a slightly smaller reel so the main button sits closer to the fold */
.brand { width: min(525px, 84vw); }
.reel { width: min(900px, 100%); }

/* word bubbles: each friend says its word when tapped */
.say {
  position: absolute; z-index: 61; padding: 6px 16px 8px; border-radius: 999px; background: var(--cream);
  font-family: var(--serif); font-weight: 800; font-size: clamp(18px, 2vw, 24px); line-height: 1.1; color: var(--ink-strong); white-space: nowrap;
  box-shadow: 0 4px 0 var(--tan), 0 12px 22px -12px rgba(74, 50, 38, .55); pointer-events: none;
}
.say.say--left::after { left: auto; right: 22px; }
.say::after { content: ""; position: absolute; left: 22px; bottom: -8px; width: 16px; height: 16px; background: var(--cream); transform: rotate(45deg); border-radius: 3px; box-shadow: 3px 3px 0 var(--tan); z-index: -1; }

/* counting: a taller stage; small badges that sit on the nest, off the chick */
.coop__stage { aspect-ratio: 16 / 7.8; }
.coop__bg { object-position: 50% 85%; }
.nest__num { left: auto; right: -4%; top: auto; bottom: 4%; width: clamp(28px, 3vw, 40px); height: clamp(28px, 3vw, 40px); font-size: clamp(16px, 1.8vw, 23px); }

/* app: tidy chips; the hen leans out from behind the tablet */
.perks { display: flex; flex-wrap: wrap; justify-content: center; max-width: 880px; margin-left: auto; margin-right: auto; }
.perks .perks__price { flex-basis: auto; }
.device__hen { right: -7%; top: 26%; }
.app { padding-bottom: clamp(48px, 6vw, 72px); }
@media (max-width: 1000px) { .device__hen { display: none; } }

/* closing scene: a bigger cast that owns the bottom of the page */
.join .meadow { height: clamp(260px, 32vw, 460px); margin-top: clamp(-70px, -4vw, -10px); }
.meadow__row { width: min(1320px, 112%); }

@media (max-width: 720px) {
  /* hero tabs: a calm 2x2, only the playing one shows its progress */
  .topics { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); justify-content: center; gap: 2px 10px; max-width: none; }
  .topic { width: 100%; padding-bottom: 12px; }
  .topic[aria-selected="false"] .topic__bar { visibility: hidden; }

  /* counting: a stage that stays big on phones */
  .coop__stage { aspect-ratio: 4 / 3.7; }
  .coop__bg { object-position: 28% 80%; }
  .coop__hen { width: 38%; left: 1%; bottom: auto; top: 22%; }
  .nests { left: 2%; right: 2%; bottom: 6%; }
  .nest-slot { width: 24.5%; }
  .egg { width: 66%; margin-left: -33%; }
  .chick { width: 84%; margin-left: -42%; }
  .coop__word { top: 6%; left: 34%; right: 0; }
  .coop__word span { font-size: 26px; padding: 3px 16px 6px; }
  .nest__num { width: 26px; height: 26px; font-size: 15px; right: 0; }

  /* game pills: wrap into two rows, nothing hidden */
  .games { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 26px 0 0; padding: 0; -webkit-mask: none; mask: none; gap: 8px; }
  .game { min-height: 44px; padding: 4px 14px 4px 4px; font-size: 14px; }
  .game img { width: 34px; height: 34px; }

  /* closing scene: fewer, bigger friends */
  .friend--sheep, .friend--tiger { display: none; }
  .meadow__row { width: 104%; }
  .join .meadow { margin-top: -50px; }
  .friend--cow { width: 22%; } .friend--pig { width: 18%; } .friend--giraffe { width: 18%; } .friend--elephant { width: 23%; } .friend--monkey { width: 18%; }
}

/* hide the hero until the intro sets its first frame */
.js:not(.is-ready) .hero__inner { visibility: hidden; }

/* ================= round 4: stats under the headline, topic pills under the reel ================= */
.reel { margin-top: 26px; }
.topics { margin-top: 30px; }
.hero__sub { margin-top: clamp(18px, 2.4vw, 24px); }

/* closing meadow: a shorter front clump so the friends behind it stay visible.
   width goes auto (capped by max-width) so the image keeps its shape under max-height */
.meadow__front { width: auto; max-width: clamp(240px, 30vw, 420px); max-height: 80px; }

@media (max-width: 720px) {
  .hero__lede { font-size: 36px; }
  .reel { margin-top: 22px; }
  .topics { margin-top: 26px; }
  /* stacked buttons: a wider gap so the 3D shadow doesn't eat it; the hero's bottom padding gives back the same 8px */
  .hero__ctas { row-gap: 22px; }
  .hero { padding-bottom: 40px; }
  .meadow__front { max-width: 70%; max-height: 60px; }
}

/* ================= v3: the app, the books and the shop, added quietly ================= */
/* the new pieces move with the page's plain rise only: no springs, nothing on a timer */
.app__edge {
  position: absolute; left: 0; right: 0; top: -22px; height: 24px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V14c10-6 20-8 30-4s20 6 30 0 20-10 30-6 20 8 30 10v10z'/%3E%3C/svg%3E") 0 0 / 240px 24px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V14c10-6 20-8 30-4s20 6 30 0 20-10 30-6 20 8 30 10v10z'/%3E%3C/svg%3E") 0 0 / 240px 24px repeat-x;
}

/* store badges: official art, unmodified */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.store { display: block; border-radius: 8px; transition: transform .2s var(--out); }
.store:hover { transform: translateY(-2px); }
.store img { display: block; height: 44px; width: auto; }

/* hero: sits where the stats sat */
.ask { display: flex; align-items: center; gap: 14px; margin-top: 56px; margin-bottom: 8px; padding: 12px 16px 12px 12px; border-radius: 20px; background: var(--cream); box-shadow: 0 3px 0 var(--line); text-align: left; }
.ask__text { display: flex; flex-direction: column; gap: 1px; max-width: 250px; font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
.ask__text b { font-family: var(--serif); font-weight: 800; font-size: 19px; line-height: 1.2; color: var(--ink-strong); }
.ask .stores { flex-wrap: nowrap; margin-left: 6px; }
.hero__proof { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

/* the app: how to get it comes last, once you've seen it */
.getit { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 auto clamp(30px, 4vw, 44px); text-align: center; }
.getit__price { max-width: 460px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.getit__qr { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .getit { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 28px; row-gap: 10px; }
  .getit .stores { grid-column: 1; justify-content: flex-start; }
  .getit__price { grid-column: 1; max-width: 300px; text-align: left; font-size: 15px; }
  .getit__qr { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); text-align: left; }
  .getit__qr img { width: 84px; height: 84px; padding: 5px; border-radius: 10px; background: #fff; box-shadow: 0 2px 0 var(--line); }
  .getit__qr span { max-width: 130px; }
}

/* books: below the letter, on one felt shelf per reader */
.books { margin-top: clamp(56px, 7vw, 84px); }
.books__title { margin: 0 0 clamp(20px, 3vw, 30px); font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink-strong); text-align: center; }
.books__groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); max-width: 980px; margin: 0 auto; }
.books__label { margin-bottom: 12px; font-weight: 600; font-size: 15px; color: var(--sage-ink); text-align: center; }
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; position: relative; padding: 0 6px; }
.shelf li { min-width: 0; }
.shelf a { display: flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; text-align: center; }
.shelf img { position: relative; z-index: 1; height: 196px; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; border-radius: 3px 5px 5px 3px; box-shadow: 0 12px 18px -10px rgba(74, 50, 38, .45); transition: transform .25s var(--out); }
.shelf a:hover img { transform: translateY(-4px); }
.shelf b { margin-top: 14px; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink-strong); }
.shelf span { margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--ink-soft); }

/* shop: a washing line, still */
.shop { background: var(--paper); overflow: hidden; padding-bottom: clamp(24px, 4vw, 48px); }
.line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; max-width: 900px; margin: 0 auto; padding-top: 22px; }
.print { position: relative; }
.print::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: -2px; height: 2px; background: #B98E6E; }
.print__peg { position: absolute; left: 50%; top: -24px; width: 16px; height: auto; margin-left: -8px; z-index: 2; }
.print a { position: relative; display: block; padding: 8px 8px 12px; background: var(--cream); border-radius: 4px; box-shadow: var(--shadow-card); color: var(--ink-strong); font-weight: 600; font-size: 15px; line-height: 1.3; text-align: center; text-decoration: none; transition: transform .25s var(--out); }
.print:nth-child(odd) a { transform: rotate(-1deg); transform-origin: 50% 0; }
.print:nth-child(even) a { transform: rotate(.8deg); transform-origin: 50% 0; }
.print a:hover { transform: translateY(3px); }
.print img:not(.print__peg) { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 8px; border-radius: 2px; background: #fff; }
.shop__more { margin-top: 18px; text-align: center; }


@media (max-width: 900px) {
  .ask { flex-wrap: wrap; justify-content: center; max-width: 420px; }
  .ask__text { flex: 1 1 0; min-width: 0; max-width: none; }
  .ask .stores { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 720px) {
  .ask { width: 100%; margin-top: 40px; padding: 10px 12px 12px; gap: 10px 12px; }
  .ask__text { font-size: 14px; }
  .ask__text b { font-size: 17px; }
  .store img { height: 42px; }
  .books__groups { grid-template-columns: 1fr; }
  .shelf img { height: 170px; }
  .line { grid-template-columns: 1fr 1fr; gap: 36px 14px; }
}
@media (max-width: 360px) {
  .store img { height: 38px; }
}

/* round 2 */
.app .perks { gap: 6px 18px; max-width: 760px; }
.app .perks li { padding: 2px 0; background: none; box-shadow: none; font-size: 15px; }
.tags__label { margin-top: 22px; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-ink); }
.tags__label + .tags { margin-top: 10px; }
.shop { position: relative; }
.meet { padding-bottom: clamp(56px, 7vw, 84px); }
@media (max-width: 720px) {
}
@media (max-width: 900px) {
  .ask { text-align: center; }
  .ask__text { flex-basis: 100%; }
}

/* round 3 */
.app .perks { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 8px 34px; }
.getit__qr { align-self: start; }
.getit__qr span { max-width: none; white-space: nowrap; }
.shop .h2 { font-size: clamp(28px, 3.4vw, 38px); }
.ask__text span, .shelf b, .shelf span { text-wrap: balance; }
#books { scroll-margin-top: 24px; }
#app, #shop { scroll-margin-top: -24px; }
@media (max-width: 720px) {
  .app .perks { grid-template-columns: auto; }
  .tape { translate: 0 9px; }
}
@media (max-width: 720px) {
  .letter__title { margin-top: 34px; }
}

/* round 4 */
.app .perks li { justify-self: start; }
.getit__qr img { width: 102px; height: 102px; }
.books__groups { grid-template-columns: 1fr 3fr; }
.shelf--one { grid-template-columns: 1fr; }
.shelf--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .books__groups { grid-template-columns: 1fr; }
  .shelf--one { max-width: 170px; margin: 0 auto; }
  .shelf--three { gap: 14px 10px; padding: 0; }
  .shelf--three img { height: 136px; }
  .shelf--three b { font-size: 14px; }
  .shelf--three span { font-size: 13px; }
}

/* ================= option: the channel stats are back ================= */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.stat {
  display: flex; flex-direction: column; align-items: center; min-width: 120px;
  padding: 12px 18px 11px; border-radius: 20px; background: var(--cream);
  box-shadow: 0 3px 0 var(--line);
}
.stat b { font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 2.8vw, 31px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { font-size: 15px; color: var(--ink-soft); }
.stat:nth-child(1) b { color: #C8643A; }
.stat:nth-child(2) b { color: #A77B1E; }
.stat:nth-child(3) b { color: var(--sage-ink); }
.stat:nth-child(4) b { color: #4D7FA6; }
.stats { margin-top: 94px; margin-bottom: 10px; }
@media (max-width: 720px) {
  .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 380px; margin-top: 28px; }
  .stat { min-width: 0; padding: 9px 4px 8px; border-radius: 16px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 12px; }
}
.watched { position: relative; margin-top: 0; padding-top: clamp(64px, 8vw, 96px); }
.play { margin-top: 0; }
.app .app__edge { display: none; }

/* the New tape: same torn washi as the credential tape, in honey */
.app__title { position: relative; display: inline-block; }
.new-tag { position: absolute; right: -44px; top: -30px; display: inline-block; cursor: pointer; touch-action: manipulation; }
.new-tag__strip {
  --tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M0 0h8v12H0l3-2-3-2 3-2-3-2 3-2z' fill='%23000'/%3E%3C/svg%3E");
  --tear-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M0 0h8L5 2l3 2-3 2 3 2-3 2 3 2H0z' fill='%23000'/%3E%3C/svg%3E");
  display: block; padding: 7px 22px 8px; transform: rotate(5deg);
  font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.15; letter-spacing: 0; color: #6B4A18; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 40%), #F6DC9E var(--grain);
  -webkit-mask: var(--tear) left / 8px 12px repeat-y, linear-gradient(#000, #000) 8px 0 / calc(100% - 16px) 100% no-repeat, var(--tear-r) right / 8px 12px repeat-y;
  mask: var(--tear) left / 8px 12px repeat-y, linear-gradient(#000, #000) 8px 0 / calc(100% - 16px) 100% no-repeat, var(--tear-r) right / 8px 12px repeat-y;
}
.new-tag__bee { position: absolute; right: -9px; top: -19px; width: 28px; height: 25px; pointer-events: none; }
.new-tag__bee img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.new-tag__bee .new-tag__wings { left: 1px; top: -2px; width: 62%; transform-origin: 64% 94%; }

/* closing: YouTube stays one tap away, without asking loudly */
.join__link { margin-top: 22px; min-height: 48px; padding: 0 24px; font-size: 16px; font-weight: 600; }

@media (max-width: 720px) {
  .new-tag { right: -6px; top: -24px; }
  .new-tag__strip { font-size: 15px; padding: 5px 18px 6px; }
  .new-tag__bee { width: 24px; height: 21px; top: -17px; right: -7px; }
}
@media (max-width: 440px) {
  .new-tag { top: -70px; right: -2px; }
}

/* the stats follow the sign directly, so they clear the hanging tape */
@media (max-width: 720px) {
  .stats { margin-top: 62px; }
}
@media (max-width: 720px) {
  .games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 380px; margin-left: auto; margin-right: auto; padding: 0; overflow: visible; }
  .game { min-width: 0; padding-right: 8px; font-size: 14px; gap: 8px; white-space: normal; line-height: 1.2; }
  .game img { width: 34px; height: 34px; flex: none; }
}

/* the whole video is the pause control; a play mark shows only while paused */
.reel__pause { position: absolute; inset: 10px; z-index: 2; display: grid; place-items: center; border-radius: calc(var(--r-lg) - 9px); background: none; cursor: pointer; }
.reel__pause:focus-visible { outline: 3px solid var(--coral-btn); outline-offset: -6px; }
.reel__pause svg { display: none; }
.reel__pause[aria-pressed="true"] .i-play { display: block; box-sizing: border-box; width: clamp(56px, 7vw, 76px); height: clamp(56px, 7vw, 76px); padding: clamp(14px, 1.8vw, 20px); border-radius: 50%; background: rgba(255, 251, 246, .92); fill: var(--coral-btn); box-shadow: var(--shadow-card); }
.reel__word { pointer-events: none; }
.reel__ctrl { z-index: 4; }

/* app section: a tighter gap under the hero */
.app { padding-top: clamp(56px, 7.83vw, 94px); }
