/* Wonder Burrow — design system. Felt, moss and lantern light.
   Tokens first; everything else uses them. Self-hosted fonts (no third-party requests). */
@font-face { font-family: 'Fraunces'; src: url(/fonts/fraunces.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --cream: #fff7e6;
  --paper: #fbefd0;
  --sand: #f3e2b8;
  --moss: #2e5234;
  --moss-deep: #1c3322;
  --leaf: #6c9a45;
  --marigold: #f4b319;
  --marigold-soft: #ffd877;
  --brown: #5a3a21;
  --ink: #2a2117;
  --ink-soft: #5c4d3c;
  --dusk: #1f2547;
  --dusk-2: #343c78;
  --sky: #b8dff0;
  --berry: #d9644a;
  --white: #fffdf8;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 1px 0 rgba(90, 58, 33, .06), 0 12px 32px -12px rgba(60, 40, 20, .28);
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  /* felt: a fine fibre noise laid over fills */
  --felt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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 .22 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 92px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.08rem/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, canvas, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--dusk-2); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
.container { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }

/* Type */
h1, h2, h3, h4 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 700; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; color: var(--moss-deep); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.1rem); font-weight: 750; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 650; color: var(--berry); }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.38rem); line-height: 1.55; color: var(--ink-soft); max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 800 .82rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin: 0 0 1.1rem; }
.eyebrow::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff6c8, var(--marigold) 55%, #e89b0a); box-shadow: 0 0 14px 3px rgba(244, 179, 25, .55); }
.on-dark { color: #fff7e6; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff7e6; }
.on-dark .lede, .on-dark p { color: rgba(255, 247, 230, .82); }
.on-dark h1 em, .on-dark h2 em { color: var(--marigold-soft); }
.on-dark .eyebrow { color: var(--marigold-soft); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Buttons */
.btn { --bg: var(--marigold); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; padding: .8rem 1.5rem; border-radius: 999px; background: var(--bg); color: var(--fg); font: 800 1.05rem/1 var(--body); text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 3px 0 rgba(90, 58, 33, .35), 0 12px 22px -10px rgba(90, 58, 33, .55); transition: transform .18s ease, box-shadow .18s ease, filter .18s; }
.btn:hover { transform: translateY(-2px) rotate(-.6deg); filter: brightness(1.04); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(90, 58, 33, .35); }
.btn svg { width: 1.2em; height: 1.2em; }
.btn-moss { --bg: var(--moss); --fg: #fff7e6; }
.btn-ghost { --bg: transparent; --fg: var(--moss-deep); box-shadow: inset 0 0 0 2.5px var(--moss-deep); }
.btn-ghost:hover { --bg: rgba(46, 82, 52, .08); }
.on-dark .btn-ghost { --fg: #fff7e6; box-shadow: inset 0 0 0 2.5px rgba(255, 247, 230, .7); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 247, 230, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid rgba(90, 58, 33, .1); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 800 1.45rem/1 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; color: var(--moss-deep); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; gap: .2rem; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 1rem; padding: .55rem .85rem; border-radius: 999px; color: var(--ink-soft); }
.nav-links a:hover { background: rgba(46, 82, 52, .09); color: var(--moss-deep); }
.nav-links a[aria-current] { color: var(--moss-deep); background: rgba(244, 179, 25, .32); }
.nav-links .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .98rem; margin-left: .5rem; color: var(--ink); }
.nav-links .btn:hover { background: var(--marigold); }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--moss-deep); background: transparent; color: var(--moss-deep); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; }
.phone-menu { display: none; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .phone-menu { position: fixed; inset: 0; z-index: 60; background: var(--moss-deep); color: #fff7e6; padding: 24px var(--gutter) 40px; overflow: auto; flex-direction: column; gap: 1.5rem; }
  .phone-menu.open { display: flex; }
  .phone-menu .top { display: flex; align-items: center; justify-content: space-between; }
  .phone-menu .brand { color: #fff7e6; }
  .phone-menu nav { display: grid; gap: .3rem; }
  .phone-menu nav a { font: 700 2rem/1.2 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; text-decoration: none; padding: .45rem 0; border-bottom: 1px solid rgba(255, 247, 230, .14); }
  .phone-menu .close { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 247, 230, .6); background: transparent; color: #fff7e6; cursor: pointer; display: grid; place-items: center; }
}

/* Scroll progress: a lantern line with Glim riding its tip */
.progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; z-index: 70; pointer-events: none; }
.progress i { position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--leaf), var(--marigold)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.progress b { opacity: calc(var(--p, 0) * 60); position: absolute; top: -5px; left: calc(var(--p, 0) * 100%); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fffbe0, var(--marigold)); box-shadow: 0 0 12px 4px rgba(244, 179, 25, .7); }

/* Sections + wavy joins */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tight { padding: clamp(44px, 6vw, 80px) 0; }
.band-paper { background: var(--paper); }
.band-moss { background: var(--moss-deep); position: relative; }
.band-dusk { background: radial-gradient(1100px 700px at 12% 55%, #323a82 0%, transparent 62%), var(--dusk); position: relative; }
.band-moss::before, .band-dusk::before, .band-paper::before, .band-cream::before { content: none; }
.wave { display: block; width: 100%; height: clamp(28px, 4vw, 60px); margin: -1px 0; }
.sec-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head.center { margin-inline: auto; }

/* Felt cards: stitched inner border + fibre texture */
.card { position: relative; background: var(--white); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow); }
.card::after { content: ''; position: absolute; inset: 7px; border: 2px dashed rgba(90, 58, 33, .22); border-radius: calc(var(--radius) - 7px); pointer-events: none; }
.card.felt { background-color: var(--sand); background-image: var(--felt); }
.card.moss { background-color: var(--moss); color: #fff7e6; background-image: var(--felt); }
.card.moss h3 { color: #fff7e6; }
.card.moss::after { border-color: rgba(255, 247, 230, .3); }
.card.marigold { background-color: var(--marigold); background-image: var(--felt); }
.card.marigold::after { border-color: rgba(42, 33, 23, .3); }
.card.dusk { background-color: var(--dusk-2); color: #fff7e6; background-image: var(--felt); }
.card.dusk h3 { color: #fff7e6; }
.card.dusk::after { border-color: rgba(255, 247, 230, .26); }
.chip { display: inline-flex; align-items: center; gap: .4rem; font: 800 .8rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: .45rem .75rem; border-radius: 999px; background: rgba(46, 82, 52, .12); color: var(--moss-deep); }
.chip.gold { background: var(--marigold); color: var(--ink); }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.photo img, .photo video { width: 100%; height: 100%; object-fit: cover; }
.photo.round { border-radius: var(--radius-lg); }
.frame { position: relative; padding: 12px; border-radius: calc(var(--radius-lg) + 8px); background: var(--marigold); background-image: var(--felt); box-shadow: var(--shadow); }
.frame::before { content: ''; position: absolute; inset: 5px; border-radius: calc(var(--radius-lg) + 4px); border: 2px dashed rgba(42, 33, 23, .35); pointer-events: none; z-index: 2; }
.frame > .photo { border-radius: var(--radius-lg); box-shadow: none; }

/* Hero */
.hero { position: relative; padding: clamp(36px, 6vw, 84px) 0 clamp(70px, 9vw, 130px); overflow: hidden; background: radial-gradient(900px 520px at 85% 10%, rgba(244, 179, 25, .28), transparent 62%), radial-gradient(700px 420px at 0% 100%, rgba(108, 154, 69, .22), transparent 60%), var(--cream); }
.hero-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: 0; top: 0; pointer-events: none; background: radial-gradient(circle, rgba(244, 179, 25, .34), rgba(244, 179, 25, 0) 66%); transform: translate(var(--gx, 70vw), var(--gy, 20vh)) translate(-50%, -50%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); mix-blend-mode: multiply; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 { margin-bottom: .35em; }
.points { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 1.8rem 0 0; font-weight: 700; color: var(--moss); }
.points li { display: inline-flex; align-items: center; gap: .45rem; }
.points svg { width: 20px; height: 20px; color: var(--leaf); flex: none; }
.hero-film { position: relative; transform: rotate(1.4deg); }
.hero-film .photo { aspect-ratio: 16 / 10.4; }
.hero-film .tag { position: absolute; left: -14px; bottom: -18px; z-index: 3; transform: rotate(-3deg); background: var(--moss-deep); color: #fff7e6; padding: .7rem 1.1rem; border-radius: 16px; font: 700 .98rem/1.25 var(--body); box-shadow: var(--shadow); max-width: 15rem; }
.hero-film .tag b { display: block; color: var(--marigold-soft); font: 800 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.hero-nuku { position: absolute; right: -18px; top: -62px; width: clamp(96px, 13vw, 150px); z-index: 3; filter: drop-shadow(0 10px 12px rgba(60, 40, 20, .35)); transform: rotate(7deg); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-film { transform: none; margin-top: 18px; } .hero-nuku { right: 0; top: -70px; } }

/* Characters */
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.cast .card { display: flex; flex-direction: column; gap: .8rem; }
.cast .portrait { aspect-ratio: 4 / 4.2; border-radius: 16px; display: grid; place-items: center; overflow: hidden; position: relative; }
.cast .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(60, 40, 20, .3)); }
.cast .portrait.p-nuku { background: radial-gradient(circle at 50% 35%, #fff2c8, #f4d27c 70%); }
.cast .portrait.p-glim { background: radial-gradient(circle at 50% 50%, #fff6c0, #f1b81a 38%, #5a3a21 100%); }
.cast .portrait.p-burrow { background: var(--moss); }
.cast .portrait.p-burrow img { padding: 0; object-fit: cover; filter: none; }
.cast .portrait.p-voice { background: radial-gradient(circle at 50% 40%, #ffe9c2, #e2a36b); }
.cast h3 { margin-bottom: .1em; }
.cast .role { font: 800 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--berry); margin: 0; }
.card.moss .role { color: var(--marigold-soft); }
@media (max-width: 900px) { .cast { grid-template-columns: 1fr; } .cast .portrait { aspect-ratio: 16 / 11; } }

/* Shadow Lab */
.lab { width: min(100%, 1060px); margin-inline: auto; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--moss-deep); box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .55); user-select: none; -webkit-user-select: none; touch-action: none; border: 8px solid #5a3a21; outline: 2px dashed rgba(255, 223, 160, .5); outline-offset: -14px; }
.lab-stage { border-radius: calc(var(--radius-lg) - 10px) calc(var(--radius-lg) - 10px) 0 0; position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; container-type: size; background: #efe0b8; }
.lab-wall { position: absolute; inset: 0 0 24% 0; background: linear-gradient(#f6ead0, #ead7a8); }
.lab-wall::before { content: ''; position: absolute; inset: 0; background-image: var(--felt); opacity: .55; mix-blend-mode: multiply; }
.lab-floor { position: absolute; inset: 76% 0 0 0; background: linear-gradient(#8bb258, #5f8e3b); }
.lab-floor::before { content: ''; position: absolute; inset: 0; background-image: var(--felt); opacity: .7; mix-blend-mode: multiply; }
.lab-floor::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: #6b4426; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.lab-shadow, .lab-object { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.lab-shadow { filter: brightness(0) blur(var(--blur, 3px)); opacity: var(--shadow-o, .55); transition: opacity .35s ease; pointer-events: none; }
.lab-object { filter: drop-shadow(0 6px 6px rgba(60, 40, 20, .25)); pointer-events: none; }
.lab-dark { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--lx, 25%) var(--ly, 45%), rgba(31, 24, 48, 0) 0, rgba(31, 24, 48, .12) 24%, rgba(24, 18, 44, .66) 62%, rgba(20, 14, 38, .8) 100%); transition: background .3s; mix-blend-mode: multiply; }
.lab.is-off .lab-dark { background: rgba(14, 12, 34, .88); }
.lab.is-off .lab-shadow { opacity: 0; }
.lab-glow { position: absolute; left: 0; top: 0; width: 56cqw; height: 56cqw; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 224, 120, .62), rgba(255, 200, 70, .18) 40%, rgba(255, 200, 70, 0) 66%); mix-blend-mode: screen; transition: opacity .3s; }
.lab.is-off .lab-glow { opacity: 0; }
.lab-lamp { position: absolute; left: 0; top: 0; width: clamp(56px, 9cqw, 96px); transform: translate(-50%, -50%); cursor: grab; touch-action: none; border: 0; background: none; padding: 0; z-index: 4; }
.lab-lamp:active { cursor: grabbing; }
.lab-lamp svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .3)); transition: transform .2s; }
.lab-lamp:hover svg, .lab-lamp:focus-visible svg { transform: scale(1.06); }
.lab-lamp .worm { transition: opacity .3s; }
.lab.is-off .lab-lamp .worm-glow { opacity: 0; }
.lab-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(31, 24, 48, .86); color: #fff7e6; padding: .5rem .95rem; border-radius: 999px; font: 800 .95rem/1 var(--body); z-index: 5; display: inline-flex; gap: .5rem; align-items: center; transition: opacity .4s; white-space: nowrap; pointer-events: none; }
.lab.touched .lab-hint { opacity: 0; }
.lab-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; padding: 14px clamp(14px, 2vw, 22px); background: #4a2f1a; color: #fff7e6; }
.lab-say { flex: 1 1 280px; font: 700 1.15rem/1.35 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; min-height: 3.1em; display: flex; align-items: center; margin: 0; color: #fff7e6; }
.seg { display: inline-flex; background: rgba(255, 247, 230, .12); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; border-radius: 999px; background: transparent; color: #fff7e6; font: 800 .95rem/1 var(--body); min-height: 44px; padding: 0 1rem; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; }
.seg button[aria-pressed='true'], .seg button[aria-checked='true'] { background: var(--marigold); color: var(--ink); }
.seg button svg { width: 1.15em; height: 1.15em; }
.lab-note { font-size: .95rem; color: var(--ink-soft); margin-top: 1rem; }

/* Scroll-scrubbed film */
.scrub { position: relative; height: 420vh; background: var(--moss-deep); }
.scrub-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 26, 17, .78) 0%, rgba(14, 26, 17, .35) 42%, rgba(14, 26, 17, 0) 70%); }
.scrub-copy { position: absolute; left: 0; right: 0; bottom: clamp(28px, 8vh, 90px); }
.scrub-cap { position: absolute; left: 0; bottom: 0; max-width: 30rem; opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.scrub-cap.on { opacity: 1; transform: none; }
.scrub-cap h2 { color: #fff7e6; font-size: clamp(1.9rem, 4.4vw, 3.4rem); margin-bottom: .3em; }
.scrub-cap em { color: var(--marigold-soft); }
.scrub-cap p { color: rgba(255, 247, 230, .9); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.scrub-meter { position: absolute; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%); height: min(46vh, 340px); width: 8px; border-radius: 8px; background: rgba(255, 247, 230, .2); }
.scrub-meter i { position: absolute; left: 0; bottom: 0; width: 100%; border-radius: 8px; background: var(--marigold); height: calc(var(--sp, 0) * 100%); }
.scrub-meter b { position: absolute; left: 50%; bottom: calc(var(--sp, 0) * 100%); width: 24px; height: 24px; margin: 0 0 -12px -12px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fffbe0, var(--marigold)); box-shadow: 0 0 16px 6px rgba(244, 179, 25, .65); }
.scrub-static { display: none; }
@media (max-width: 700px) { .scrub-shade { background: linear-gradient(0deg, rgba(14, 26, 17, .88) 0%, rgba(14, 26, 17, .2) 55%, rgba(14, 26, 17, 0) 100%); } .scrub-meter { display: none; } }
@media (prefers-reduced-motion: reduce) { .scrub { height: auto; } .scrub-pin { position: relative; height: auto; } .scrub canvas, .scrub-meter, .scrub-copy { display: none; } .scrub-static { display: grid; gap: 18px; padding: 56px 0; } }

/* Episode shape timeline */
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; background: var(--white); border-radius: 18px; padding: 14px 14px 18px; box-shadow: var(--shadow); position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--marigold); font: 800 1rem/1 var(--display); margin-bottom: .7rem; box-shadow: 0 0 0 4px rgba(244, 179, 25, .25); }
.steps h3 { font-size: 1.08rem; margin-bottom: .25em; }
.steps p { font-size: .94rem; line-height: 1.45; color: var(--ink-soft); margin: 0; }
.steps .t { font: 800 .72rem/1 var(--body); letter-spacing: .08em; color: var(--berry); text-transform: uppercase; display: block; margin-bottom: .4rem; }
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Featured episode + player */
.watch { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.player { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .6); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .big-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 50%); border: 0; cursor: pointer; padding: 0; width: 100%; }
.player .big-play span { display: grid; place-items: center; width: clamp(68px, 10vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--marigold); color: var(--ink); box-shadow: 0 0 0 10px rgba(244, 179, 25, .3), 0 12px 30px rgba(0, 0, 0, .4); transition: transform .2s; }
.player .big-play:hover span { transform: scale(1.07); }
.player .big-play svg { width: 42%; height: 42%; margin-left: 6%; }
.player.playing .big-play { display: none; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chapters button { width: 100%; display: grid; grid-template-columns: 3.2rem 1fr; gap: .6rem; align-items: baseline; text-align: left; border: 0; background: var(--white); border-radius: 14px; padding: .7rem .9rem; font: 700 1rem/1.3 var(--body); color: var(--ink); cursor: pointer; box-shadow: 0 1px 0 rgba(90, 58, 33, .12); transition: background .15s, transform .15s; }
.chapters button:hover { background: #fff; transform: translateX(3px); }
.chapters button[aria-current='true'] { background: var(--marigold); }
.chapters time { font: 800 .85rem/1 var(--body); color: var(--berry); font-variant-numeric: tabular-nums; }
.chapters button[aria-current='true'] time { color: var(--ink); }
@media (max-width: 980px) { .watch { grid-template-columns: 1fr; } }
.facts { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.bento .card { display: flex; flex-direction: column; gap: .5rem; }
.bento .b1 { grid-column: span 3; } .bento .b2 { grid-column: span 3; } .bento .b3 { grid-column: span 2; } .bento .b4 { grid-column: span 2; } .bento .b5 { grid-column: span 2; }
.bento .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(244, 179, 25, .35); color: var(--moss-deep); margin-bottom: .3rem; }
.card.moss .ico, .card.dusk .ico { background: rgba(255, 247, 230, .16); color: var(--marigold-soft); }
.bento .ico svg { width: 30px; height: 30px; }
.bento p { margin: 0; font-size: 1.02rem; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento .b1, .bento .b2 { grid-column: span 2; } .bento .b3, .bento .b4, .bento .b5 { grid-column: span 1; } .bento .b5 { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento .card { grid-column: span 1 !important; } }

/* Episode cards */
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.ep { position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
a.ep:hover { transform: translateY(-4px) rotate(-.4deg); }
.ep .thumb { aspect-ratio: 16 / 10; background: var(--sand); position: relative; overflow: hidden; }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.ep .num { font: 800 .75rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--berry); }
.ep h3 { font-size: 1.22rem; margin: 0; }
.ep p { margin: 0; font-size: .96rem; color: var(--ink-soft); line-height: 1.45; }
.ep.soon .thumb { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--sand), var(--sand) 12px, #f0dba9 12px, #f0dba9 24px); }
.ep.soon .q { font: 800 4.5rem/1 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; color: rgba(90, 58, 33, .3); }
.ep.next { outline: 3px solid var(--marigold); outline-offset: -3px; }
.ep .flag { position: absolute; right: 12px; top: 12px; z-index: 2; }
.ep .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .72); color: #fff; font: 800 .8rem/1 var(--body); padding: .35rem .55rem; border-radius: 8px; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(40px, 6vw, 84px) 0 clamp(30px, 4vw, 56px); background: radial-gradient(800px 380px at 90% 0%, rgba(244, 179, 25, .25), transparent 60%), var(--cream); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.2rem; padding: 0; font: 700 .92rem/1 var(--body); color: var(--ink-soft); }
.crumbs li + li::before { content: '›'; margin-right: .4rem; opacity: .6; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Prose */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .45em; }
.prose a { color: var(--moss); font-weight: 700; text-underline-offset: 3px; }
.callout { background: var(--paper); border-radius: var(--radius); padding: 1.2rem 1.4rem; border-left: 8px solid var(--marigold); margin: 1.4rem 0; }
.callout p:last-child { margin: 0; }
.say-twice { font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; color: var(--moss-deep); background: var(--marigold-soft); padding: 1rem 1.3rem; border-radius: var(--radius); display: inline-block; transform: rotate(-.8deg); box-shadow: var(--shadow); }
.transcript { columns: 1; }
.transcript li { margin-bottom: .7rem; }
.transcript time { font: 800 .82rem/1 var(--body); color: var(--berry); margin-right: .5rem; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 26px); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.numlist { list-style: none; counter-reset: n; padding: 0; display: grid; gap: .9rem; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.numlist li::before { content: counter(n); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--marigold); font: 800 1.3rem/1 var(--display); box-shadow: 0 0 0 5px rgba(244, 179, 25, .28); }
.numlist b { display: block; font: 700 1.2rem/1.25 var(--display); color: var(--moss-deep); font-variation-settings: 'SOFT' 100; margin-bottom: .15rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 0 1.3rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2rem 1.15rem 0; font: 700 1.2rem/1.3 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; color: var(--moss-deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--marigold); display: grid; place-items: center; font: 800 1.3rem/1 var(--body); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; margin: 0; color: var(--ink-soft); }

/* Closing band */
.closing { text-align: center; position: relative; overflow: hidden; }
.closing .nuku { width: clamp(130px, 18vw, 200px); margin: 0 auto -6px; position: relative; z-index: 2; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35)); animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.fireflies i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffe58a; box-shadow: 0 0 12px 4px rgba(255, 214, 90, .8); animation: drift 9s ease-in-out infinite; opacity: .85; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(24px, -30px); } 66% { transform: translate(-18px, -12px); } }

/* Footer */
.site-footer { background: var(--moss-deep); color: rgba(255, 247, 230, .86); padding: clamp(48px, 6vw, 80px) 0 32px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font: 800 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--marigold-soft); margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer .brand { color: #fff7e6; margin-bottom: .8rem; }
.foot-note { border-top: 1px solid rgba(255, 247, 230, .16); margin-top: 36px; padding-top: 20px; font-size: .92rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { opacity: 1; transform: none; transition: none; } .closing .nuku, .fireflies i { animation: none; } .hero-glow { display: none; } .btn, .ep { transition: none; } }

/* Printable activity sheet */
.sheet { background: #fff; color: #000; }
.cutouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cutouts figure { margin: 0; text-align: center; border: 2px dashed #888; border-radius: 14px; padding: 14px; break-inside: avoid; background: #fff; }
.cutouts img { height: 150px; width: auto; margin: 0 auto; }
.cutouts figcaption { font: 700 .95rem/1.2 var(--body); margin-top: .5rem; }
@media print {
  .site-header, .site-footer, .progress, .no-print, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page-hero { background: none; padding: 0 0 8pt; }
  .cutouts img { height: 120pt; }
  .card { box-shadow: none; border: 1px solid #bbb; }
  a { text-decoration: none; }
}

/* Phones: a taller lab stage so Nuku and the lantern are big enough to grab */
@media (max-width: 700px) {
  .lab-stage { aspect-ratio: 4 / 4.2; }
  .lab-hint { font-size: .85rem; top: 10px; }
  .lab { border-width: 6px; outline-offset: -11px; }
}
@media (max-width: 700px) {
  .scrub canvas { inset: 84px 0 auto 0; height: auto; aspect-ratio: 4 / 3.1; object-fit: cover; object-position: 58% 50%; }
  .scrub-shade { display: none; }
  .scrub-copy { bottom: clamp(24px, 7vh, 60px); }
  .scrub-cap h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}
