/* Raising Little Humans - shared stylesheet.
   Converted by hand from the design briefing (Podcast Landing Page, Legal,
   YouTube Coming Soon + the RLH design system tokens). The design used inline
   styles; the site's Content-Security-Policy forbids them, so everything lives
   here as classes. Colours come from the tokens on :root only.
   Fonts are self-hosted (GDPR): Bricolage Grotesque (display), Hanken Grotesk
   (body), Space Mono (labels), Gochi Hand (handwritten notes). */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/BricolageGrotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/BricolageGrotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Gochi Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/GochiHand-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/HankenGrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/HankenGrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/SpaceMono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/SpaceMono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/SpaceMono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/SpaceMono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens (from the design system's tokens/*.css; only what the pages use) ---- */
:root {
  --blue: #0213f3;
  --yellow: #e6fe07;
  --cream: #fffdf4;
  --paper: #ffffff;
  --sand-50: #faf7ee;
  --ink: #131127;
  --blue-faint: rgba(2, 19, 243, 0.14);
  --cream-70: rgba(255, 253, 244, 0.7);
  --cream-25: rgba(255, 253, 244, 0.25);

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-hand: "Gochi Hand", var(--font-display);

  --shadow-pop: 4px 4px 0 0 var(--ink);
  --shadow-pop-md: 6px 6px 0 0 var(--ink);
  --shadow-pop-lg: 7px 7px 0 0 var(--ink);
  --shadow-pop-xl: 8px 8px 0 0 var(--ink);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --focus: var(--yellow);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; background: var(--blue); color: var(--yellow); font-family: var(--font-body); overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
button { font: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[id] { scroll-margin-top: 96px; }
.on-light { --focus: var(--blue); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 60; padding: 8px 12px; background: var(--yellow); color: var(--ink); font-weight: 700; }
.skip:focus { left: 16px; top: 16px; }
.container { max-width: var(--container); margin: 0 auto; }
.pretty { text-wrap: pretty; }

.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.lede { max-width: 680px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; text-wrap: pretty; }
/* The yellow marker swipe behind key words */
.marker { background: var(--yellow); box-shadow: 0.3em 0 0 var(--yellow), -0.3em 0 0 var(--yellow); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.marker--tight { font-weight: 700; box-shadow: 0.15em 0 0 var(--yellow), -0.15em 0 0 var(--yellow); }
.c-blue { color: var(--blue); }
.c-cream { color: var(--cream); }
.c-yellow { color: var(--yellow); }

@keyframes rlh-eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* ---- Buttons (design system Button) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: -0.01em;
  padding: 0.7em 1.25em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn--lg { font-size: 1.125rem; padding: 0.85em 1.6em; }
.btn--primary { background: var(--blue); color: var(--cream); border-color: var(--ink); box-shadow: var(--shadow-pop); }
.btn--highlight { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-pop); }
.btn--primary:hover, .btn--highlight:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop-lg); }
.btn--primary:active, .btn--highlight:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--ink); }
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--sand-50); }
.btn--secondary:active { transform: scale(0.97); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blue); border-bottom: 2px solid var(--yellow); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px clamp(16px, 4vw, 56px); }
.site-header--static { position: static; }
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { width: clamp(68px, 6.5vw, 88px); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav a { display: inline-block; padding-block: 6px; }

/* ---- Hero ---- */
.hero { padding: clamp(56px, 9vw, 130px) var(--gutter) clamp(28px, 3vw, 44px); }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 2.6vw, 30px); }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.03em; }
.hero h1 span.line { display: block; white-space: nowrap; }
.hero__lede { max-width: 620px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--cream); text-wrap: pretty; }
.hero__art { display: flex; justify-content: center; }
.mic { position: relative; width: min(100%, 340px); aspect-ratio: 1; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); box-shadow: var(--shadow-pop-xl); display: grid; place-items: center; }
.mic svg { width: 52%; height: 52%; display: block; }
.mic__eq { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 5px; height: 34px; background: var(--blue); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; }
.mic__eq span { display: block; width: 5px; height: 12px; border-radius: 999px; background: var(--yellow); transform-origin: bottom; animation: rlh-eq 1.1s ease-in-out infinite; }
.mic__eq span:nth-child(even) { height: 18px; }
.mic__eq span:nth-child(2) { animation-delay: 0.14s; }
.mic__eq span:nth-child(3) { animation-delay: 0.28s; }
.mic__eq span:nth-child(4) { animation-delay: 0.42s; }

.kids { display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.kids img { width: 100%; max-width: 1920px; }

/* ---- Research ---- */
.research { position: relative; z-index: 2; background: var(--cream); color: var(--blue); padding: clamp(56px, 8vw, 116px) var(--gutter) 0; }
.research__inner { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.research__head { max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2.2vw, 26px); }
.research__follow { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.steps-wrap { position: relative; }
.steps { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; align-content: start; transition: opacity 500ms ease, transform 600ms var(--ease-out); }
.step:nth-child(2) { transition-delay: 180ms; }
.step:nth-child(3) { transition-delay: 360ms; }
.step__num { width: 80px; height: 80px; border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); box-shadow: var(--shadow-pop); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -0.04em; }
.step__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
.step__text { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; text-wrap: pretty; }
.bubble { position: relative; margin-top: 14px; background: var(--yellow); border: 2px solid var(--blue); border-radius: 20px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; transform-origin: 28px 0; transition: opacity 420ms ease 450ms, transform 480ms var(--ease-spring) 450ms; }
.step:nth-child(2) .bubble { transition-delay: 630ms; }
.step:nth-child(3) .bubble { transition-delay: 810ms; }
.bubble::before { content: ""; position: absolute; top: -9px; left: 26px; width: 14px; height: 14px; background: var(--yellow); border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); transform: rotate(45deg); }
.bubble__tag { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); background: var(--blue); border-radius: 999px; padding: 3px 10px; }
.bubble p { font-size: 16px; line-height: 1.5; text-wrap: pretty; }
/* Reveal on scroll: hidden only when the script is running (html.js) */
.js .steps:not(.is-revealed) .step { opacity: 0; transform: translateY(18px); }
.js .steps:not(.is-revealed) .bubble { opacity: 0; transform: scale(0.96) translateY(6px); }
/* Connector wave between step 1 and step 3, drawn by js/site.js */
.steps__conn { position: absolute; overflow: visible; pointer-events: none; z-index: 0; }
.steps__conn path { fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; }
.steps__conn .conn-track { stroke: var(--blue-faint); stroke-width: 3; }
.steps__conn .conn-draw { stroke-width: 3.5; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 140ms linear; }

.built-on { display: flex; flex-direction: column; gap: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-wrap { position: relative; display: inline-flex; }
.pill { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); background: transparent; border: 2px solid var(--blue); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.pill--more { border-style: dashed; cursor: default; }
.pill-wrap.is-open .pill { background: var(--blue); color: var(--yellow); }
.tip { position: absolute; top: calc(100% + 10px); left: 0; z-index: 5; width: min(270px, 78vw); background: var(--blue); color: var(--cream); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 12px 14px; font-size: 14px; line-height: 1.45; text-wrap: pretty; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 160ms ease, transform 200ms ease, visibility 0s linear 160ms; }
.pill-wrap--right .tip { left: auto; right: 0; }
.pill-wrap.is-open .tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* ---- Soundwave band ---- */
.wave-band { background: var(--cream); padding: clamp(36px, 5vw, 64px) var(--gutter); }
.wave-band__bars { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 150px; overflow: hidden; }
.wave-band__bars span { display: block; width: 6px; border-radius: 999px; background: var(--blue); transform-origin: bottom; animation: rlh-eq 1.6s ease-in-out infinite; }
.wave-band__bars span:nth-child(1) { height: 18px; animation-delay: 0.00s; }
.wave-band__bars span:nth-child(2) { height: 34px; animation-delay: 0.06s; }
.wave-band__bars span:nth-child(3) { height: 58px; animation-delay: 0.12s; }
.wave-band__bars span:nth-child(4) { height: 88px; animation-delay: 0.18s; }
.wave-band__bars span:nth-child(5) { height: 120px; animation-delay: 0.24s; }
.wave-band__bars span:nth-child(6) { height: 86px; animation-delay: 0.30s; }
.wave-band__bars span:nth-child(7) { height: 54px; animation-delay: 0.36s; }
.wave-band__bars span:nth-child(8) { height: 96px; animation-delay: 0.42s; }
.wave-band__bars span:nth-child(9) { height: 132px; animation-delay: 0.48s; }
.wave-band__bars span:nth-child(10) { height: 70px; animation-delay: 0.54s; }
.wave-band__bars span:nth-child(11) { height: 40px; animation-delay: 0.60s; }
.wave-band__bars span:nth-child(12) { height: 64px; animation-delay: 0.66s; }
.wave-band__bars span:nth-child(13) { height: 104px; animation-delay: 0.72s; }
.wave-band__bars span:nth-child(14) { height: 150px; animation-delay: 0.78s; }
.wave-band__bars span:nth-child(15) { height: 112px; animation-delay: 0.84s; }
.wave-band__bars span:nth-child(16) { height: 72px; animation-delay: 0.90s; }
.wave-band__bars span:nth-child(17) { height: 44px; animation-delay: 0.96s; }
.wave-band__bars span:nth-child(18) { height: 86px; animation-delay: 1.02s; }
.wave-band__bars span:nth-child(19) { height: 124px; animation-delay: 1.08s; }
.wave-band__bars span:nth-child(20) { height: 92px; animation-delay: 1.14s; }
.wave-band__bars span:nth-child(21) { height: 56px; animation-delay: 1.20s; }
.wave-band__bars span:nth-child(22) { height: 32px; animation-delay: 1.26s; }
.wave-band__bars span:nth-child(23) { height: 68px; animation-delay: 1.32s; }
.wave-band__bars span:nth-child(24) { height: 108px; animation-delay: 1.38s; }
.wave-band__bars span:nth-child(25) { height: 140px; animation-delay: 1.44s; }
.wave-band__bars span:nth-child(26) { height: 100px; animation-delay: 1.50s; }
.wave-band__bars span:nth-child(27) { height: 62px; animation-delay: 1.56s; }
.wave-band__bars span:nth-child(28) { height: 38px; animation-delay: 1.62s; }
.wave-band__bars span:nth-child(29) { height: 76px; animation-delay: 1.68s; }
.wave-band__bars span:nth-child(30) { height: 112px; animation-delay: 1.74s; }
.wave-band__bars span:nth-child(31) { height: 84px; animation-delay: 1.80s; }
.wave-band__bars span:nth-child(32) { height: 50px; animation-delay: 1.86s; }
.wave-band__bars span:nth-child(33) { height: 28px; animation-delay: 1.92s; }
.wave-band__bars span:nth-child(34) { height: 60px; animation-delay: 1.98s; }
.wave-band__bars span:nth-child(35) { height: 96px; animation-delay: 2.04s; }
.wave-band__bars span:nth-child(36) { height: 126px; animation-delay: 2.10s; }
.wave-band__bars span:nth-child(37) { height: 88px; animation-delay: 2.16s; }
.wave-band__bars span:nth-child(38) { height: 52px; animation-delay: 2.22s; }
.wave-band__bars span:nth-child(39) { height: 34px; animation-delay: 2.28s; }
.wave-band__bars span:nth-child(40) { height: 20px; animation-delay: 2.34s; }

/* ---- Tracks ---- */
.tracks { padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(24px, 3vw, 40px); }
.tracks__inner { display: flex; flex-direction: column; gap: clamp(28px, 3.6vw, 44px); }
.tracks__head { display: flex; flex-direction: column; gap: 14px; }
.tracks__picker { display: flex; flex-direction: column; gap: 16px; }
.tracks__ask { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.8vw, 24px); color: var(--cream); }
.tracks__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 20px); row-gap: 16px; }
.track-btn { grid-row: 1; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 22px 12px 14px; border-radius: 999px; border: 2px solid var(--yellow); background: transparent; color: var(--yellow); cursor: pointer; text-align: left; transition: background 200ms var(--ease-out), color 200ms var(--ease-out), transform 220ms var(--ease-spring), box-shadow 220ms var(--ease-spring); }
.track-btn:hover { transform: translate(-2px, -2px); }
.track-btn:active { transform: translate(2px, 2px); }
.track-btn[aria-expanded="true"] { background: var(--yellow); color: var(--blue); box-shadow: var(--shadow-pop); }
.track-btn__num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 2px solid currentColor; font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.track-btn__title { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.1; letter-spacing: -0.02em; }
.mini-wave { flex: none; display: flex; align-items: center; gap: 3px; height: 30px; }
.mini-wave span { display: block; width: 3.5px; border-radius: 999px; background: currentColor; opacity: 0.55; transition: transform 240ms ease, opacity 240ms ease; }
.mini-wave span:nth-child(even) { width: 4px; }
.mini-wave span:nth-child(1) { height: 10px; transform: rotate(-4deg) scaleY(0.45); }
.mini-wave span:nth-child(2) { height: 20px; transform: rotate(3deg) scaleY(0.45); }
.mini-wave span:nth-child(3) { height: 28px; transform: rotate(-2deg) scaleY(0.45); }
.mini-wave span:nth-child(4) { height: 16px; transform: rotate(5deg) scaleY(0.45); }
.mini-wave span:nth-child(5) { height: 24px; transform: rotate(-3deg) scaleY(0.45); }
.mini-wave span:nth-child(6) { height: 12px; transform: rotate(2deg) scaleY(0.45); }
.track-btn[aria-expanded="true"] .mini-wave span, .mini-wave--on span { opacity: 1; animation: rlh-eq 0.9s ease-in-out infinite; }
.track-btn[aria-expanded="true"] .mini-wave span:nth-child(3n+2), .mini-wave--on span:nth-child(3n+2) { animation-duration: 1.08s; }
.track-btn[aria-expanded="true"] .mini-wave span:nth-child(3n), .mini-wave--on span:nth-child(3n) { animation-duration: 1.26s; }
.mini-wave span:nth-child(2) { animation-delay: 0.11s; }
.mini-wave span:nth-child(3) { animation-delay: 0.22s; }
.mini-wave span:nth-child(4) { animation-delay: 0.33s; }
.mini-wave span:nth-child(5) { animation-delay: 0.44s; }
.mini-wave span:nth-child(6) { animation-delay: 0.55s; }

.track-panel { grid-row: 2; grid-column: 1 / -1; display: grid; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms; }
.track-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 300ms ease 80ms, transform 360ms var(--ease-spring) 80ms, visibility 0s; }
.track-panel__clip { display: grid; min-height: 0; }
.track-panel__card { background: var(--cream); color: var(--blue); border: 2px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow-pop-md); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2vw, 22px); --focus: var(--blue); }
.track-panel__tagline { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.track-panel__text { max-width: 640px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; text-wrap: pretty; }
.track-panel__eps { display: flex; flex-direction: column; gap: 10px; }
.track-panel__eps .eyebrow { font-size: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--yellow); background: var(--blue); border: 2px solid var(--blue); border-radius: 999px; padding: 7px 14px; }
.track-panel__cta { display: flex; padding-top: 4px; }

/* ---- Listen ---- */
.listen { padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(56px, 8vw, 116px); }
.listen__inner { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(18px, 2.4vw, 28px); }
.listen__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }

/* ---- Community ---- */
.community { background: var(--yellow); color: var(--blue); padding: clamp(56px, 8vw, 116px) var(--gutter); }
.community__inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2.2vw, 26px); }

/* ---- About ---- */
.about { background: var(--cream); color: var(--blue); padding: clamp(56px, 8vw, 116px) var(--gutter); }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about__intro { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2vw, 22px); }
.about__who { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; text-wrap: pretty; }
.about__photo { position: relative; margin-top: 18px; width: min(100%, 400px); align-self: center; }
.about__frame { background: var(--yellow); border: 2px solid var(--ink); border-radius: 36px; box-shadow: var(--shadow-pop-md); overflow: hidden; transform: rotate(-1.5deg); display: flex; justify-content: center; align-items: flex-end; padding-top: 28px; }
.about__frame img { width: 86%; }
.about__badge { position: absolute; top: -16px; right: -10px; display: flex; align-items: center; background: var(--blue); color: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; transform: rotate(4deg); }
.about__story { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); padding-top: clamp(40px, 6vw, 96px); }
.beat { display: flex; flex-direction: column; gap: 10px; transition: opacity 520ms ease, transform 620ms var(--ease-out); }
.js .beat:not(.is-in) { opacity: 0; transform: translateY(20px); }
.beat__label { align-self: flex-start; font-family: var(--font-hand); font-weight: 400; font-size: clamp(22px, 2vw, 26px); line-height: 1; transform: rotate(-2deg); border-bottom: 3px solid var(--yellow); padding-bottom: 2px; }
.beat p { max-width: 620px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; text-wrap: pretty; }
.about__close { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 8px; border-top: 2px solid var(--blue); }
.about__close p { margin-top: 18px; max-width: 620px; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(48px, 6vw, 84px) var(--gutter) clamp(28px, 3vw, 40px); }
.site-footer__inner { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.site-footer__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand img { width: clamp(96px, 9vw, 128px); }
.site-footer__claim { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.site-footer__cols { display: flex; flex-direction: column; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-nav--legal { font-size: 11px; letter-spacing: 0.1em; }
.footer-nav a { display: inline-block; padding-block: 6px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border: 2px solid var(--cream); border-radius: 999px; padding: 7px 13px; }
.site-footer__note { padding-top: 22px; border-top: 2px solid var(--cream-25); font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: var(--cream-70); }

/* Slim footer (legal page) */
.slim-footer { background: var(--ink); padding: 28px var(--gutter); --focus: var(--yellow); }
.slim-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--cream-70); }
.slim-footer__row a { color: var(--yellow); }

/* ---- Simple centred pages (YouTube coming soon, 404) ---- */
.page--center { min-height: 100vh; display: flex; flex-direction: column; }
.center-main { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(18px, 2.4vw, 28px); padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(16px, 2vw, 28px); }
.center-main h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.center-main p { max-width: 560px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--cream); text-wrap: pretty; }
.center-main__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---- Legal ---- */
.page--legal { min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); color: var(--blue); --focus: var(--blue); }
.page--legal .site-header { --focus: var(--yellow); }
.back-link { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }
.legal-main { flex: 1; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.legal-main__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.legal-head { display: flex; flex-direction: column; gap: 14px; }
.legal-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-tab { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--blue); background: var(--cream); border: 2px solid var(--blue); border-radius: 999px; padding: 10px 22px; cursor: pointer; }
.legal-tab:hover { text-decoration: none; }
.legal-tab.is-active { background: var(--yellow); box-shadow: var(--shadow-pop); }
.legal-panel { display: flex; flex-direction: column; gap: 28px; font-size: 17px; line-height: 1.65; }
.legal-panel + .legal-panel { margin-top: 40px; }
.js .legal-panel:not(.is-active) { display: none; }
.js .legal-panel + .legal-panel { margin-top: 0; }
.legal-panel h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.legal-panel h3 { font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.legal-panel h4 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.legal-panel section { display: flex; flex-direction: column; gap: 8px; }
.legal-panel ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-panel address { font-style: normal; }
.legal-panel a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-panel a:hover { background: var(--yellow); }
.legal-note { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- Small screens (the design's 720px breakpoint) ---- */
@media (max-width: 720px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 80px minmax(0, 1fr); }

  .tracks__grid { display: flex; flex-direction: column; gap: 0; }
  .track-btn { min-height: 64px; gap: 12px; padding: 10px 18px 10px 10px; margin-top: 12px; }
  .track-btn:first-child { margin-top: 0; }
  .track-btn:hover, .track-btn:active { transform: none; }
  .track-btn__num { width: 42px; height: 42px; font-size: 13px; }
  .track-btn__title { font-size: 19px; }
  .track-panel { grid-template-rows: 0fr; transform: none; visibility: visible; transition: grid-template-rows 320ms var(--ease-out), opacity 240ms var(--ease-out); }
  .track-panel.is-open { grid-template-rows: 1fr; transition: grid-template-rows 320ms var(--ease-out), opacity 240ms var(--ease-out); }
  .track-panel__clip { display: block; overflow: hidden; }
  .track-panel:not(.is-open) .track-panel__clip { visibility: hidden; }
  .track-panel__card { margin: 12px 4px 4px 0; border-radius: 24px; box-shadow: var(--shadow-pop); padding: 24px 20px; gap: 16px; }

  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__intro { position: relative; top: auto; }
  .about__story { padding-top: 0; }

  .btn { white-space: normal; text-align: center; line-height: 1.15; }
}
@media (max-width: 400px) {
  .site-nav { gap: 10px; font-size: 11px; letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  .step, .bubble, .beat, .track-panel, .tip, .btn, .track-btn { transition: none !important; }
  .js .steps:not(.is-revealed) .step, .js .steps:not(.is-revealed) .bubble, .js .beat:not(.is-in) { opacity: 1; transform: none; }
  .steps__conn .conn-draw { stroke-dashoffset: 0 !important; }
}
