/* ================================================================
   BUBBLEGUM PARADISO — editorial cute surreal microsite
   ================================================================ */

/* ---------------- custom fonts ------------------------------------
   TYPOGRAPHY SYSTEM: two voices, never three
   - Milky Ways          → the display voice: titles (and the pink emphasis
                           words inside them), eyebrows, the hero, mood
                           names, shelf labels, the ticker, "pop!"
   - Milky Ways Outline  → the same family, hollow (big numerals)
   - Inter               → the text voice: body copy, captions, notes,
                           labels, nav and the player
   a handwritten script used to sit between these two; it competed with
   the display face, so emphasis is carried by color instead.
------------------------------------------------------------------- */
@font-face {
  font-family: "Milky Ways";
  src: url("assets/fonts/Milky-Ways.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Milky Ways Outline";
  src: url("assets/fonts/Milky-Ways-Outline.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2a1036;
  --ink-soft: #5a3c6b;
  --paper: #fff6fb;
  --bubble: #ff8fcf;
  --bubble-deep: #ff5ab3;
  --candy: #ffd2e4;
  --peach: #ffb899;
  --sky-a: #f7d6ff;
  --sky-b: #ffe6f5;
  --violet: #9a6cff;
  --lilac: #c8a8ff;
  --lime: #c9f56b;
  --mint: #bff4e0;
  --shadow: 0 18px 40px -20px rgba(87, 20, 94, 0.35);
  --soft-shadow: 0 10px 30px -18px rgba(87, 20, 94, 0.4);

  /* typography families */
  --display: "Milky Ways", "Fraunces", ui-serif, Georgia, serif;
  --display-outline: "Milky Ways Outline", "Milky Ways", ui-serif, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  /* legacy alias, kept so any unmapped rule still renders well */
  --serif: var(--display);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff1f8;
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

img { user-select: none; -webkit-user-drag: none; display: block; }

/* Grain overlay --------------------------------------------------- */
.grain {
  position: fixed; inset: 0;
  z-index: 9999; pointer-events: none;
  opacity: .11;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0 0 0 0 0 0.4 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* soft cursor aura ------------------------------------------------- */
.cursor-aura {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 143, 207, .28), rgba(255, 143, 207, 0) 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity .4s ease;
  mix-blend-mode: screen;
  opacity: .9;
  will-change: transform;
}
@media (hover: none) { .cursor-aura { display: none; } }

/* ----------------------- chip nav --------------------------------- */
.chip-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
}
.chip {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all .25s ease;
}
.chip:hover { background: rgba(255, 143, 207, .18); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  color: var(--candy);
}

/* ---------------------- scene base -------------------------------- */
.scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* section marker: set small in the display face, lowercase, tilted like a
   margin note. the tracked-out caps + hairline rule it replaced were
   the most template-looking thing on the page. */
.eyebrow {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bubble-deep);
  opacity: .92;
  margin-bottom: 14px;
  display: inline-block;
  transform: rotate(-1.4deg);
}

.scene-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1.02;
  letter-spacing: -.005em;
  margin: 0 0 22px;
  color: var(--ink);
}
/* emphasis words stay in the display face and turn pink: one heading
   voice, with color doing the whispering. */
.scene-title em,
.scene-title .italic {
  font-style: normal;
  color: var(--bubble-deep);
}
/* hand-drawn marker swash beneath the highlighted word.
   palette-locked: bubble pink → bubble-deep, no peach (which clashed
   with the surrounding all-pink composition). soft alpha so the word
   reads on top, not buried under a hard color block. */
.scene-title .highlight {
  background:
    linear-gradient(180deg,
      transparent 0%,
      transparent 55%,
      rgba(255, 143, 207, .55) 62%,
      rgba(255, 90, 179, .45) 92%,
      transparent 100%);
  padding: 0 .14em .04em;
  border-radius: 999px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  /* ever so slightly tilted, like a marker stroke */
  display: inline-block;
  transform: rotate(-1deg);
  transform-origin: 50% 100%;
}
.scene-title--tight { font-size: clamp(36px, 4.6vw, 72px); }
.scene-title--xl { font-size: clamp(56px, 9vw, 148px); }

/* body lead — stays Inter for comfortable reading, with just a hint of
   airiness so it pairs with the decorative headlines above it. */
.scene-lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: .005em;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 24px;
}
.scene-lead--tight { font-size: 14px; }

/* ============================================================
   SCENE 1 — HERO
   ============================================================ */
.scene--hero {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffd5ef 0%, #ffe8f6 60%, #fff1f8 100%);
}
.sky {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.05) brightness(1.03);
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, #fff1f8);
}
.scene--hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 160px;
  background: linear-gradient(180deg, rgba(255, 241, 248, 0), #fff1f8);
  z-index: 2;
  pointer-events: none;
}

/* clouds */
.cloud {
  position: absolute;
  pointer-events: none;
  opacity: .85;
  filter: drop-shadow(0 10px 20px rgba(154, 108, 255, .12));
  mix-blend-mode: screen;
}
.cloud--a {
  top: 8%;
  left: -8%;
  width: 56%;
  z-index: 2;
  animation: drift 32s ease-in-out infinite alternate;
}
.cloud--b {
  top: 28%;
  right: -10%;
  width: 60%;
  z-index: 2;
  opacity: .75;
  animation: drift2 42s ease-in-out infinite alternate;
}
.cloud--c { top: 6%; right: -10%; width: 58%; z-index: 1; opacity: .7; animation: drift 36s ease-in-out infinite alternate; }
.cloud--d { top: 55%; left: -12%; width: 52%; z-index: 1; opacity: .55; animation: drift2 40s ease-in-out infinite alternate; }
.cloud--e { top: 0; left: -8%; width: 54%; z-index: 1; opacity: .6; animation: drift 34s ease-in-out infinite alternate; }
.cloud--f { top: -12%; right: -14%; width: 62%; z-index: 1; opacity: .55; animation: drift2 38s ease-in-out infinite alternate; }

@keyframes drift {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(32px) translateY(-10px); }
}
@keyframes drift2 {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-40px) translateY(12px); }
}

/* top ticker */
.ticker {
  position: absolute;
  top: 76px;
  left: 0; right: 0;
  overflow: hidden;
  z-index: 4;
  background: rgba(42, 16, 54, .9);
  transform: rotate(-1.2deg);
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 9px 0;
  white-space: nowrap;
  animation: tickerMove 40s linear infinite;
  font-family: var(--display);
  font-style: normal;
  font-size: 19px;
  line-height: 1;
  color: var(--candy);
  letter-spacing: .01em;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  line-height: 1;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* hero title: the signature moment.
   line one is Milky Ways in ink: bold, playful, unmistakable.
   line two repeats the face in pink, a touch smaller and rotated gently,
   like a sticker pressed on at an angle. */
.hero-title {
  position: absolute;
  left: 6vw;
  top: 28vh;
  z-index: 40;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(70px, 15vw, 240px);
  line-height: .92;
  letter-spacing: -.01em;
  color: var(--ink);
  pointer-events: none;
}
.hero-title .line { display: block; position: relative; }
.hero-title .line--one {
  /* milky ways reads best with a breath of space */
  letter-spacing: -.005em;
}
.hero-title .line--two {
  margin-left: 6vw;
  margin-top: .08em;
  color: var(--bubble-deep);
  /* sized so the word clears the center head's face, the same footprint
     the line had before it moved to the display face */
  font-size: .76em;
  line-height: .92;
  letter-spacing: -.01em;
  transform: rotate(-3deg);
  transform-origin: left center;
}
.hero-title .soft { color: var(--bubble); }
.hero-title .italic {
  /* reserved for inline pink emphasis inside line one */
  color: var(--bubble-deep);
}
.hero-title .tm {
  font-size: .12em;
  vertical-align: super;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-left: .25em;
}

/* hero heads */
.head {
  position: absolute;
  margin: 0;
  z-index: 20;
  will-change: transform;
  cursor: pointer;
  transition: filter .3s ease;
}
.head::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  bottom: -4%;
  height: 24px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(87, 20, 94, .28), transparent 70%);
  z-index: -1;
  filter: blur(2px);
}
/* ---------- expression swap: HARD CUT, NOT CROSSFADE ----------
   previously: 130ms opacity crossfade between base and hover layers.
   problem 1: during transition, both layers are ~0.5 opacity —
              both faces are readable = double-face ghost.
   problem 2: where the hover image has TRANSPARENT pixels (inside
              an open mouth area, for example) but the base image has
              OPAQUE pixels there (closed lips), the base leaks through
              the hover — a permanent ghost, not a transition bug.

   the correct fix is a hard instant swap of opacity, so at no single
   frame are both faces simultaneously readable. the *interaction*
   still feels smooth because the container scales up gently around
   the swap. visual clarity > soft blending. */
.head-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(87, 20, 94, .2));
  backface-visibility: hidden;
  transform-origin: 50% 50%;
  /* no transition on opacity — the swap must be instant */
  transition: none;
}
.head-img--base  { opacity: 1; z-index: 1; }
.head-img--hover { opacity: 0; z-index: 2; }
/* the swap is a hard cut — exactly one layer is readable at any frame */
.head:hover .head-img--base  { opacity: 0; }
.head:hover .head-img--hover { opacity: 1; }

/* smoothness lives on the CONTAINER, not on the pixels.
   scale + a subtle shadow shift give the interaction its "animation
   feel" while the image itself replaces in a single frame. this way
   the user perceives one face reacting, not two faces blending. */
.head {
  transition:
    transform 220ms cubic-bezier(.2, .8, .2, 1),
    filter   220ms cubic-bezier(.2, .8, .2, 1);
}
.head:hover {
  filter: drop-shadow(0 22px 32px rgba(87, 20, 94, .28));
}

/* per-variant aspect lock: first computed from each illustrated base PNG's
   native size; the photographic heads (assets/real/) are rendered to match.
   this is what stops the "two faces" ghost: both images fill the same
   box and get cropped identically by object-fit: contain. */
.head--center                      { aspect-ratio: 588 / 1126; }
.head--left                        { aspect-ratio: 610 / 736; }
.head--right                       { aspect-ratio: 611 / 566; }
.head--floating                    { aspect-ratio: 805 / 560; }

/* --- casting locks (unique expression per section) ---
   these boxes date from the illustrated heads. the photographic heads in
   assets/real/ were rendered INTO these exact aspects (base and hover share
   one canvas, the hover aligned onto the base), so the hard swap never
   shifts a pixel and every doodle positioned in % of the box still lands
   on her face. if you change a lock, re-render the pair to match it
   (portfolio-assets/_realism/process.py). */
.head--garden                      { aspect-ratio: 1402 / 1339; }  /* real/garden */
.mood--01 .head--mood              { aspect-ratio: 1419 / 1284; }  /* real/mood-01 */
.mood--02 .head--mood              { aspect-ratio: 1434 / 1425; }  /* real/mood-02 */
.mood--03 .head--mood              { aspect-ratio: 1404 / 1265; }  /* real/mood-03 */
.head--peek                        { aspect-ratio: 1513 / 1416; }  /* real/peek */
.head--outro                       { aspect-ratio: 1394 / 1261; }  /* real/outro */

.head figcaption {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .01em;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.head:hover figcaption {
  opacity: 1;
  transform: translate(-50%, 6px);
}

/* hero composition positions */
.head--center {
  width: 32vw;
  max-width: 460px;
  min-width: 280px;
  right: 8vw;
  top: 22vh;
  z-index: 55;
}
.head--left {
  width: 18vw;
  max-width: 260px;
  min-width: 170px;
  left: 4vw;
  top: 58vh;
  z-index: 52;
  transform: rotate(-6deg);
}
.head--right {
  width: 16vw;
  max-width: 230px;
  min-width: 150px;
  right: 36vw;
  top: 60vh;
  z-index: 50;
  transform: rotate(4deg);
}

/* hero props */
.hprop {
  position: absolute;
  pointer-events: auto;
  z-index: 65;                   /* above heads (z=50–55) and title (z=40) */
  transition: transform .4s cubic-bezier(.2,.8,.2,1), filter .3s;
  will-change: transform;
  filter: drop-shadow(0 12px 18px rgba(87, 20, 94, .2));
}
.hprop:hover { transform: scale(1.08) rotate(3deg); }

/* hero prop layering plan:
     glasses, rose, butterfly2  → BEHIND the title text (z 25, above sky)
     butterfly1, hearts         → IN FRONT of the title (z 66, above heads)
   this gives layered depth: some props sit in the background near the
   sky, others float forward over the heads — instead of all five
   crowding the same foreground plane and obscuring the title. */
.hprop--glasses {
  width: 14vw; max-width: 200px;
  top: 38vh; left: 30vw;
  transform: rotate(-10deg);
  z-index: 25;                 /* behind title (40) and heads (50–55) */
}
.hprop--butterfly1 {
  width: 9vw; max-width: 140px;
  top: 14vh; right: 26vw;
  z-index: 25;                 /* behind title and heads */
}
.hprop--butterfly2 {
  width: 7vw; max-width: 110px;
  top: 66vh; left: 34vw;
  z-index: 66;                 /* in front of heads */
  transform: rotate(14deg);
}
.hprop--hearts {
  width: 10vw; max-width: 140px;
  bottom: 12vh; right: 10vw;
  z-index: 66;                 /* in front of heads */
  transform: rotate(8deg);
}
.hprop--rose {
  width: 12vw; max-width: 180px;
  bottom: 16vh; left: 20vw;
  z-index: 25;                 /* behind title and heads */
  transform: rotate(-10deg);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex; flex-direction: column; align-items: center;
  color: var(--ink);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ============================================================
   SCENE 2 — PLAYGROUND
   ============================================================ */
.scene--playground {
  padding: 140px 7vw 100px;
  background: linear-gradient(180deg, #fff1f8 0%, #ffe4f2 50%, #ffd5ef 100%);
  overflow: visible;             /* allow garden props to bleed past section edge */
}
.scene--playground .eyebrow,
.scene--playground .scene-title,
.scene--playground .scene-lead {
  position: relative;
  z-index: 5;
  max-width: 780px;
}

.garden {
  position: relative;
  height: 640px;
  margin: 80px auto 40px;
  max-width: 1200px;
}
.grass {
  position: absolute;
  bottom: 0;
  max-width: none;
  filter: drop-shadow(0 12px 18px rgba(87, 20, 94, .15));
  z-index: 2;
}
.grass--left { left: -6%; width: 42%; z-index: 3; }
.grass--center { left: 34%; width: 32%; z-index: 2; bottom: -10px; }
/* mirrored with the independent `scale` property, not transform: the motion
   loop rewrites `transform` every frame and read the old scaleX(-1) matrix
   as a 180° base rotation, which rendered this island upside down. */
.grass--right { right: -6%; width: 42%; z-index: 3; scale: -1 1; }

.head--garden {
  width: 32%;
  max-width: 380px;
  left: 32%;
  top: 12%;
  z-index: 30;
}

.pprop {
  position: absolute;
  z-index: 14;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s;
  filter: drop-shadow(0 14px 20px rgba(87, 20, 94, .25));
  will-change: transform;
  cursor: pointer;
}
.pprop:hover { transform: scale(1.1) rotate(3deg); }

.pprop--butterfly-a { width: 14%; top: 4%; left: 4%; z-index: 20; transform: rotate(-10deg); }
.pprop--butterfly-b { width: 11%; top: 6%; right: 4%; z-index: 22; transform: rotate(12deg); }
.pprop--butterfly-c { width: 9%; bottom: 10%; left: 10%; z-index: 22; transform: rotate(-18deg); }

.pprop--popsicle { width: 11%; bottom: 8%; right: 8%; z-index: 24; transform: rotate(16deg); }
.pprop--avocado { width: 13%; bottom: 10%; left: 4%; z-index: 16; }
.pprop--rose { width: 14%; bottom: 6%; right: 18%; left: auto; z-index: 24; transform: rotate(-6deg); }
.pprop--clip { width: 8%; top: 18%; left: 48%; z-index: 35; transform: rotate(-8deg); }

.garden-footnote {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
  opacity: .85;
}

/* ============================================================
   SCENE 3 — EXPRESSIONS / MOODS
   ============================================================ */
.scene--expressions {
  padding: 140px 7vw 120px;
  background: linear-gradient(180deg, #ffd5ef 0%, #fbe5ff 50%, #efe0ff 100%);
  position: relative;
}
.exp-head {
  max-width: 720px;
  margin: 0 auto 80px;
  text-align: center;
  position: relative;
  z-index: 5;
}
.exp-head .scene-lead { margin-left: auto; margin-right: auto; }

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.mood {
  position: relative;
  padding: 30px 24px 36px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 32px;
  box-shadow: var(--soft-shadow);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mood:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(87, 20, 94, .45);
}
.mood--01 { transform: rotate(-1.6deg); }
.mood--02 { transform: translateY(-20px); }
.mood--03 { transform: rotate(1.4deg); }
.mood--01:hover { transform: translateY(-6px) rotate(-1.6deg); }
.mood--02:hover { transform: translateY(-26px); }
.mood--03:hover { transform: translateY(-6px) rotate(1.4deg); }

/* big chapter numerals — Milky Ways Outline already ships hollow,
   so we drop the webkit-stroke hack and let the font do the work. */
.mood-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--display-outline);
  font-weight: 400;
  font-size: 58px;
  color: var(--bubble-deep);
  line-height: 1;
  letter-spacing: -.02em;
}
.head--mood {
  position: relative;
  width: 70%;
  margin: 0;
}
.head--mood::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  bottom: -6%;
  height: 20px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(87, 20, 94, .2), transparent 70%);
  z-index: -1;
  filter: blur(3px);
}
.head--mood .head-img { filter: drop-shadow(0 14px 18px rgba(87, 20, 94, .2)); }

.mood-caption {
  text-align: center;
  max-width: 260px;
}
/* mood label: a word or two in the display face */
.mood-caption h3 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: 0;
}
.mood-caption p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.55;
}
.mood-caption .tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--bubble-deep);
}

.exp-footer {
  margin: 80px auto 0;
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative; z-index: 5;
}
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(42, 16, 54, .9);
  color: var(--candy);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .02em;
}

/* ============================================================
   SCENE 4 — PROP WORLD
   ============================================================ */
.scene--props {
  padding: 140px 6vw 120px;
  background: linear-gradient(180deg, #efe0ff 0%, #fde3f3 60%, #ffe1e9 100%);
}
.props-head {
  max-width: 760px;
  margin: 0 0 80px;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1400px;
  margin: 0 auto;
}
.cluster {
  position: relative;
  aspect-ratio: 1 / 1.12;
  padding: 28px;
  border-radius: 36px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}
.cluster--sweet { background: linear-gradient(140deg, rgba(255, 210, 228, .6), rgba(255, 230, 245, .6)); transform: rotate(-1deg); }
.cluster--letters { background: linear-gradient(140deg, rgba(255, 230, 245, .6), rgba(224, 214, 255, .6)); transform: translateY(24px); }
.cluster--quiet { background: linear-gradient(140deg, rgba(224, 214, 255, .6), rgba(255, 220, 234, .6)); transform: rotate(1deg); }

.cluster-label {
  position: absolute;
  top: 20px; left: 24px;
  margin: 0;
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: 21px;
  line-height: 1;
  color: var(--ink);
  z-index: 5;
}
.cluster::before {
  content: "";
  position: absolute;
  top: 26px; right: 24px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bubble-deep);
  box-shadow: 0 0 0 4px rgba(255, 90, 179, .18);
}

.tprop {
  position: absolute;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), filter .3s;
  filter: drop-shadow(0 14px 22px rgba(87, 20, 94, .22));
  cursor: grab;
  will-change: transform;
}
.tprop:active { cursor: grabbing; }
.tprop:hover {
  transform: scale(1.1) translateY(-6px) rotate(2deg);
  filter: drop-shadow(0 24px 34px rgba(87, 20, 94, .3));
  z-index: 20;
}

/* sweet cluster */
.tprop--donut-pink { width: 46%; top: 28%; left: 14%; z-index: 10; }
.tprop--donut-white { width: 38%; top: 14%; right: 8%; z-index: 8; }
.tprop--popsicle { width: 30%; bottom: 14%; left: 8%; z-index: 6; transform: rotate(-12deg); }
.tprop--avocado { width: 28%; bottom: 10%; right: 14%; z-index: 6; mix-blend-mode: multiply; }

/* letters cluster */
.tprop--envelope { width: 50%; top: 16%; left: 12%; z-index: 6; mix-blend-mode: multiply; transform: rotate(-6deg); }
.tprop--gift-white { width: 36%; top: 26%; right: 10%; z-index: 10; }
.tprop--gift-kraft { width: 32%; bottom: 10%; left: 14%; z-index: 8; }
.tprop--heart { width: 26%; bottom: 22%; right: 16%; z-index: 8; }
.tprop--roses { width: 32%; bottom: 30%; left: 46%; z-index: 12; mix-blend-mode: multiply; }

/* quiet cluster */
.tprop--coffee { width: 34%; top: 16%; left: 16%; z-index: 6; mix-blend-mode: multiply; }
.tprop--candle { width: 30%; top: 22%; right: 10%; z-index: 6; }
.tprop--phone { width: 30%; bottom: 12%; left: 10%; z-index: 8; transform: rotate(12deg); }
.tprop--glasses { width: 40%; bottom: 20%; right: 10%; z-index: 10; mix-blend-mode: multiply; transform: rotate(-8deg); }
.tprop--pillow { width: 24%; top: 42%; left: 40%; z-index: 7; mix-blend-mode: multiply; }
.tprop--hair { width: 20%; bottom: 8%; right: 44%; z-index: 12; }

.shelf-note {
  margin-top: 28px;
  text-align: right;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  opacity: .8;
}

/* ============================================================
   SCENE 5 — EDITORIAL
   ============================================================ */
.scene--editorial {
  padding: 140px 7vw 120px;
  background: linear-gradient(180deg, #ffe1e9 0%, #ffd5ef 50%, #f7d6ff 100%);
  position: relative;
}
.ed-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  position: relative; z-index: 5;
}
.ed-copy { position: relative; }
.ed-copy .scene-title { font-size: clamp(34px, 4.2vw, 64px); }
.ed-meta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px dashed rgba(87, 20, 94, .3);
  padding-top: 20px;
}
.ed-meta > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(87, 20, 94, .18);
  font-family: var(--sans);
  font-size: 13px;
}
.ed-k {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-size: 12px;
}
.ed-v {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
}

/* allow the full character (head + body + shoes) to render without
   the section clipping its head off. ed-figure is taller than the
   stage; this lets it bleed up freely. */
.scene--editorial { overflow: visible; }

.ed-stage {
  position: relative;
  height: 720px;
  /* let the figure's head extend above the stage rectangle */
  overflow: visible;
}

.ed-paper {
  position: absolute;
  top: 20px;
  right: 4%;
  width: 56%;
  max-width: 420px;
  opacity: .7;
  filter: drop-shadow(0 20px 30px rgba(87, 20, 94, .2));
  transform: rotate(3deg);
  z-index: 2;
  mix-blend-mode: multiply;
}

/* the figure now sizes by its body image's natural aspect ratio
   (589 × 1445 ≈ 0.408). cap its height to fit within the stage so
   the head is fully visible without overlapping the copy column. */
.ed-figure {
  position: absolute;
  left: 8%;
  bottom: 0;
  width: auto;
  max-width: 50%;
  z-index: 10;
  /* height-driven: the figure scales by height, not width */
  height: 100%;
}
.ed-body {
  width: auto;
  height: 100%;
  display: block;
  max-width: 100%;
  filter: drop-shadow(0 30px 40px rgba(87, 20, 94, .3));
}
.ed-collar {
  position: absolute;
  top: -18px;
  left: 20%;
  width: 60%;
  height: 60px;
  background: linear-gradient(180deg, rgba(42, 16, 54, .75), rgba(42, 16, 54, 0));
  border-radius: 50% 50% 40% 40% / 80% 80% 20% 20%;
  filter: blur(6px);
  z-index: 1;
  opacity: .55;
}
.ed-ribbon {
  position: absolute;
  top: 52%;
  right: -4%;
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 12;
  max-width: 55%;
  white-space: nowrap;
}
.ed-ribbon::before {
  content: "";
  width: 42px; height: 1px;
  background: var(--ink-soft);
  display: inline-block;
  flex-shrink: 0;
}

.head--floating {
  position: absolute;
  top: 4%;
  right: -6%;
  width: 30%;
  max-width: 240px;
  z-index: 14;
  transform: rotate(-8deg);
}

.ed-butterfly {
  position: absolute;
  z-index: 16;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 14px 18px rgba(87, 20, 94, .2));
}
.ed-butterfly--a { width: 16%; top: 30%; right: 20%; transform: rotate(-14deg); }
.ed-butterfly--b { width: 12%; bottom: 30%; left: 4%; transform: rotate(18deg); }

.ed-rose {
  position: absolute;
  width: 22%;
  bottom: -2%;
  right: -2%;
  z-index: 14;
  mix-blend-mode: multiply;
}
.ed-heart {
  position: absolute;
  width: 14%;
  top: 56%;
  left: 70%;
  z-index: 12;
}

/* ============================================================
   SCENE 6 — OUTRO
   ============================================================ */
.scene--outro {
  position: relative;
  padding: 140px 7vw 40px;
  background: linear-gradient(180deg, #f7d6ff 0%, #ffe1e9 50%, #fff1f8 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.outro-copy {
  max-width: 900px;
  position: relative;
  z-index: 5;
}
.outro-copy .scene-lead { margin-left: auto; margin-right: auto; }

.head--outro {
  position: relative;
  width: 26%;
  max-width: 300px;
  margin: 40px auto 60px;
  z-index: 10;
}

.oprop {
  position: absolute;
  z-index: 6;
  filter: drop-shadow(0 16px 22px rgba(87, 20, 94, .2));
  mix-blend-mode: multiply;
}
.oprop--butterfly { width: 10%; max-width: 160px; top: 18%; left: 12%; transform: rotate(-8deg); }
.oprop--rose { width: 14%; max-width: 200px; bottom: 22%; right: 8%; transform: rotate(18deg); }
.oprop--heart { width: 9%; max-width: 130px; top: 32%; right: 14%; transform: rotate(10deg); }
.oprop--candle { width: 8%; max-width: 120px; bottom: 28%; left: 10%; mix-blend-mode: normal; }

.site-foot {
  width: 100%;
  max-width: 1280px;
  margin: 80px auto 0;
  padding-top: 24px;
  border-top: 1px dashed rgba(87, 20, 94, .25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .01em;
  color: var(--ink-soft);
  position: relative; z-index: 5;
}
.foot-mark {
  color: var(--bubble-deep);
  margin-right: 6px;
}
.foot-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
}
.foot-link:hover { color: var(--bubble-deep); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .chip-nav { gap: 2px; padding: 4px; }
  .chip { font-size: 11px; padding: 6px 10px; }

  .hero-title { font-size: clamp(56px, 20vw, 160px); top: 28vh; }
  .head--center { width: 44vw; right: 4vw; top: 16vh; }
  .head--left { width: 30vw; left: 4vw; top: 62vh; }
  .head--right { width: 26vw; right: 28vw; top: 70vh; }
  .hprop--glasses { width: 26vw; left: 36vw; top: 40vh; }
  .hprop--rose { width: 24vw; }
  .hprop--butterfly1, .hprop--butterfly2 { display: none; }

  .mood-grid { grid-template-columns: 1fr; gap: 24px; }
  .shelf { grid-template-columns: 1fr; gap: 24px; }
  .cluster { aspect-ratio: 1 / 1; transform: none; }

  .ed-grid { grid-template-columns: 1fr; gap: 40px; }
  .ed-stage { height: 560px; }

  .ticker { top: 60px; }
}

/* ============================================================
   CUSTOM CURSOR
   A playful popsicle/paw cursor with a subtle pink sparkle trail.
   Desktop-only — enabled by script.js which adds .has-custom-cursor
   on html when (hover: hover) and (pointer: fine) match.
   Touch devices never see this layer.
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor body,
  html.has-custom-cursor * {
    cursor: none !important;
  }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  z-index: 10001;              /* above everything, including grain */
  pointer-events: none;
  /* offset so the visible "tip" sits near the actual pointer pixel */
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform;
  transition: transform .08s linear;
  opacity: 0;
  display: none;
}
html.has-custom-cursor .cursor {
  display: block;
  opacity: 1;
  transition: opacity .2s ease;
}

.cursor-img {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 130%;
  height: 130%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .12s ease, transform .15s cubic-bezier(.2, .7, .25, 1.2);
  transform-origin: 28% 22%;    /* scale around the cursor "tip" */
  filter: drop-shadow(0 6px 12px rgba(170, 40, 110, .28));
}
.cursor-img--default { opacity: 1; }
.cursor-img--click   { opacity: 0; transform: scale(.88); }

/* press state */
.cursor.is-pressing .cursor-img--default { opacity: 0; transform: scale(.9); }
.cursor.is-pressing .cursor-img--click   { opacity: 1; transform: scale(.92); }

/* hot state — hovering an interactive element */
.cursor.is-hot .cursor-img { transform: scale(1.1); }
.cursor.is-hot.is-pressing .cursor-img--click { transform: scale(1.02); }

/* ---------- particle trail --------------------------------- */
.cursor-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}

.cursor-particle {
  position: fixed;
  top: 0;
  left: 0;
  font-family: "Apple Color Emoji", "Segoe UI Symbol", system-ui, sans-serif;
  font-size: var(--size, 10px);
  line-height: 1;
  color: var(--color, #ff5ab3);
  text-shadow:
    0 0 4px rgba(255, 143, 207, .55),
    0 0 10px rgba(255, 90, 179, .22);
  transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.4);
  opacity: 0;
  will-change: transform, opacity;
  animation: cursorParticle var(--life, 780ms) cubic-bezier(.2, .7, .25, 1) forwards;
  pointer-events: none;
  user-select: none;
}

@keyframes cursorParticle {
  0% {
    opacity: 0;
    transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.35) rotate(var(--rot, 0deg));
  }
  22% {
    opacity: 1;
    transform: translate3d(
      calc(var(--x) + var(--dx, 0px) * .3),
      calc(var(--y) + var(--dy, 0px) * .3),
      0
    ) scale(1.15) rotate(calc(var(--rot, 0deg) + 40deg));
  }
  100% {
    opacity: 0;
    transform: translate3d(
      calc(var(--x) + var(--dx, 0px)),
      calc(var(--y) + var(--dy, 0px)),
      0
    ) scale(.6) rotate(calc(var(--rot, 0deg) + 120deg));
  }
}

/* ============================================================
   SITE-WIDE BUBBLE OVERLAY
   A dreamy, translucent soap-bubble layer that floats across the
   whole site. Clicks pass through the wrapper; only individual
   bubbles capture pointer events for the pop interaction.
   Shading inspired by the CodePen reference (layered inset
   highlights + specular caps) but softened: lower opacity, no
   saturated rainbow colors, no game framing.
   ============================================================ */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 150;           /* above content, below the nav chip */
  pointer-events: none;   /* wrapper never intercepts clicks */
  overflow: hidden;
  contain: strict;
}

/* the anchor rises; the bubble inside handles the glossy look
   and the pop. keeping them separated means a pop scale won't
   fight with the rising translate. */
.bubble-anchor {
  position: absolute;
  bottom: -12vh;
  left: var(--x, 50%);
  pointer-events: none;
  will-change: transform;
  animation: bubbleRise var(--dur, 20s) linear var(--delay, 0s) forwards;
}

.bubble {
  position: relative;
  display: block;
  width: var(--size, 56px);
  height: var(--size, 56px);
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  /* the resting look is the base style; the fade-in below only fills
     backwards (hidden through its delay) instead of holding its end
     state with `forwards`. a held fill outranked every later change,
     so swapping the animation (the old pet wobble) blanked the bubble
     and the pop's scale-up never showed. */
  opacity: var(--opacity, .5);
  transform: translate(-50%, 0);
  /* dimensional soap-glass shading.
     3 stacked radial gradients:
       (1) iridescent body — slightly darker at the core, brighter
           toward the rim, so the bubble reads as a glass sphere
           with light refracting around its edge.
       (2) top-left specular bloom — the primary light source.
       (3) bottom-right pastel reflection — pink/lilac bounce light
           so bubbles feel integrated with the world below them. */
  background:
    radial-gradient(circle at 50% 50%,
      rgba(148, 120, 200, .08) 0%,
      rgba(160, 132, 210, .10) 28%,
      rgba(188, 168, 230, .10) 58%,
      rgba(240, 230, 255, .26) 82%,
      rgba(255, 255, 255, .42) 96%,
      rgba(255, 255, 255, .20) 100%),
    radial-gradient(circle at 30% 26%,
      rgba(255, 255, 255, .78) 0%,
      rgba(255, 255, 255, .22) 22%,
      rgba(255, 255, 255, .06) 46%,
      rgba(255, 255, 255, 0) 66%),
    radial-gradient(circle at 72% 78%,
      rgba(255, 210, 228, .30) 0%,
      rgba(200, 168, 255, .14) 42%,
      rgba(255, 255, 255, 0) 74%);
  box-shadow:
    /* bright rim glow — simulates the thin refractive skin */
    inset 0 0 calc(var(--size) * 0.10) rgba(255, 255, 255, .55),
    /* side rim accents */
    inset calc(var(--size) * 0.02) 0 calc(var(--size) * 0.06) rgba(255, 255, 255, .45),
    inset calc(var(--size) * -0.02) 0 calc(var(--size) * 0.06) rgba(255, 255, 255, .45),
    /* bottom lift — where light pools under the sphere */
    inset 0 calc(var(--size) * -0.04) calc(var(--size) * 0.12) rgba(255, 255, 255, .55),
    inset 0 calc(var(--size) * -0.10) calc(var(--size) * 0.18) rgba(200, 168, 255, .18),
    /* top shadow — subtle depth under the specular */
    inset 0 calc(var(--size) * 0.04) calc(var(--size) * 0.10) rgba(255, 230, 245, .20),
    /* outer ambient lift off the page */
    0 calc(var(--size) * 0.08) calc(var(--size) * 0.22) rgba(154, 108, 255, .08);
  filter: blur(var(--blur, 0px));
  transition:
    transform .38s cubic-bezier(.2, .7, .25, 1.2),
    opacity .38s ease-out,
    filter .38s ease-out;
  animation: bubbleFadeIn 1.2s ease-out var(--fade-delay, 0s) backwards;
}

/* primary specular — the soft bright crescent near the top-left.
   sized relative to the bubble so it scales proportionally. */
.bubble::before {
  content: "";
  position: absolute;
  top: 9%;
  left: 15%;
  width: 30%;
  height: 16%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%,
      rgba(255, 255, 255, .95) 0%,
      rgba(255, 255, 255, .55) 55%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(-24deg);
  filter: blur(.6px);
  opacity: .95;
}

/* tiny pin-point glint — secondary reflection, brighter and crisp */
.bubble::after {
  content: "";
  position: absolute;
  top: 22%;
  left: 26%;
  width: 10%;
  height: 8%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  filter: blur(.3px);
  box-shadow: 0 0 4px rgba(255, 255, 255, .7);
}

/* pop: quick scale-up with fade + gentle blur for a soap-film feel */
.bubble.is-popping {
  transform: translate(-50%, 0) scale(1.9);
  opacity: 0 !important;
  filter: blur(1.5px);
  transition:
    transform .36s cubic-bezier(.16, .87, .48, .99),
    opacity .36s ease-out,
    filter .36s ease-out;
}

@keyframes bubbleRise {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--drift, 0px), calc(-100vh - var(--size, 40px) - 12vh), 0); }
}

/* bubbles fade in so they don't pop into view at the bottom edge */
@keyframes bubbleFadeIn {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(.92); }
  100% { opacity: var(--opacity, .5); transform: translate(-50%, 0) scale(1); }
}

/* slightly tinted variants for gentle variety (no rainbow — all soft) */
.bubble--tint-pink   { background-color: rgba(255, 210, 228, .04); }
.bubble--tint-lilac  { background-color: rgba(200, 168, 255, .04); }
.bubble--tint-peach  { background-color: rgba(255, 220, 200, .04); }

@media (max-width: 720px) {
  .bubbles { z-index: 140; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .bubbles { display: none; }
}

/* =========================================================
   FLOATING MUSIC PLAYER — "now playing" charm
   - glassy pink card, cleaner hierarchy (no helper text)
   - draggable anywhere within the viewport
   - soft idle float + halo pulse while playing
   - GIF cover with pulse ring + gloss highlight
   - custom progress bar with click-to-seek
   ========================================================= */

.player {
  --pl-pink:       #ff73b8;
  --pl-pink-deep:  #ff4fa7;
  --pl-pink-soft:  #ffd2e7;
  --pl-cream:      #fff6fb;
  --pl-ink:        #2d1423;
  --pl-ink-dim:    #7a4963;
  --pl-border:     rgba(255, 115, 184, .32);
  --pl-ring:       rgba(255, 115, 184, .55);

  /* position is driven via left/top by the drag logic;
     fallback to bottom-right on first paint */
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;

  display: grid;
  /* cover | info | volume | play. the volume button sits in its own
     column, so the progress bar and times end before the controls */
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 14px;
  padding: 12px 14px 12px 12px;
  width: 340px;
  max-width: calc(100vw - 32px);

  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.82), rgba(255,240,247,.66) 55%, rgba(255,222,238,.58));
  border: 1px solid var(--pl-border);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 -16px 34px rgba(255, 115, 184, .06) inset,
    0 22px 44px -18px rgba(120, 40, 90, .30),
    0 8px 22px -10px rgba(255, 115, 184, .38);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);

  color: var(--pl-ink);
  font-family: var(--sans, "Inter", system-ui, sans-serif);

  /* appearance transitions separate from the drag transform */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
  cursor: grab;
  touch-action: none;    /* so touch-drag doesn't scroll the page */
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.player[data-state="playing"],
.player[data-state="paused"],
.player[data-state="ready"] {
  opacity: 1;
  transform: translateY(0);
}
.player[data-dragging="true"] {
  cursor: grabbing;
  transition: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 -16px 34px rgba(255, 115, 184, .1) inset,
    0 28px 56px -18px rgba(120, 40, 90, .38),
    0 10px 26px -10px rgba(255, 115, 184, .5);
}

/* idle breathing — only when NOT being dragged */
.player::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.5), transparent 60%);
  opacity: .65;
}
.player:not([data-dragging="true"]) {
  animation: player-float 6.5s ease-in-out infinite;
}
@keyframes player-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -3px; }
}

/* ---- cover ---------------------------------------------- */
.player-cover {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  flex-shrink: 0;
  pointer-events: none;          /* let drag pass through */
}
.player-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.9),
    0 0 0 2px var(--pl-border),
    0 8px 16px -6px rgba(120, 40, 90, .38);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  -webkit-user-drag: none;
}
.player-cover-gloss {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%),
    radial-gradient(circle at 82% 82%, rgba(255,115,184,.22), transparent 55%);
  mix-blend-mode: screen;
}
.player-cover-ring {
  position: absolute;
  inset: -5px;
  border-radius: 20px;
  border: 1.5px solid var(--pl-ring);
  opacity: 0;
  pointer-events: none;
}
.player[data-state="playing"] .player-cover-ring {
  animation: player-ring 2.6s ease-out infinite;
}
.player[data-state="playing"] .player-cover-img {
  transform: scale(1.015);
}
@keyframes player-ring {
  0%   { opacity: .7; transform: scale(.92); }
  80%  { opacity: 0;  transform: scale(1.2); }
  100% { opacity: 0;  transform: scale(1.24); }
}

/* ---- body / text hierarchy ------------------------------ */
.player-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;          /* only progress bar is interactive */
}
.player-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.player-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--pl-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.player-artist {
  font-size: 11px;
  color: var(--pl-ink-dim);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

/* equalizer — tiny, sits right of the title, only "alive" state */
.player-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .3s ease;
}
.player[data-state="playing"] .player-eq { opacity: 1; }
.player-eq i {
  width: 2px;
  height: 4px;
  background: var(--pl-pink-deep);
  border-radius: 1px;
  transform-origin: bottom;
  opacity: .9;
}
.player[data-state="playing"] .player-eq i {
  animation: player-eq 900ms ease-in-out infinite;
}
.player[data-state="playing"] .player-eq i:nth-child(1) { animation-delay: 0ms;   animation-duration: 860ms; }
.player[data-state="playing"] .player-eq i:nth-child(2) { animation-delay: 140ms; animation-duration: 720ms; }
.player[data-state="playing"] .player-eq i:nth-child(3) { animation-delay: 260ms; animation-duration: 980ms; }
@keyframes player-eq {
  0%, 100% { transform: scaleY(.4); }
  30%      { transform: scaleY(1.7); }
  60%      { transform: scaleY(.8); }
}

/* ---- progress ------------------------------------------- */
.player-progress {
  position: relative;
  display: block;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  pointer-events: auto;         /* override parent's none */
}
.player-progress-track,
.player-progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  border-radius: 2px;
  pointer-events: none;
}
.player-progress-track {
  width: 100%;
  background: rgba(255, 115, 184, .2);
}
.player-progress-fill {
  width: 0%;
  background: linear-gradient(90deg, #ffb6d9, var(--pl-pink) 55%, var(--pl-pink-deep));
  box-shadow: 0 0 8px rgba(255, 115, 184, .45);
  transition: width .12s linear;
}
.player-progress-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1.5px var(--pl-pink-deep),
    0 2px 6px rgba(255, 79, 167, .4);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.player-progress:hover .player-progress-knob,
.player[data-state="playing"] .player-progress-knob {
  transform: translate(-50%, -50%) scale(1);
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--pl-ink-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  margin-top: 2px;
  pointer-events: none;
}

/* ---- play / pause button -------------------------------- */
.player-toggle {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;          /* override parent drag pass-through */
  background:
    radial-gradient(circle at 30% 25%, #ffffff 0%, #ffe3f0 35%, var(--pl-pink) 85%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 -5px 12px rgba(255, 79, 167, .38) inset,
    0 8px 16px -4px rgba(255, 79, 167, .55);
  transition: transform .15s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
  display: grid;
  place-items: center;
}
.player-toggle:hover { transform: scale(1.06); }
.player-toggle:active { transform: scale(.94); }
.player-toggle-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 115, 184, .45), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.player[data-state="playing"] .player-toggle-halo {
  opacity: 1;
  animation: player-halo 2.4s ease-in-out infinite;
}
@keyframes player-halo {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: .75; transform: scale(1.12); }
}

.player-icon {
  width: 17px;
  height: 17px;
  display: block;
  color: var(--pl-pink-deep);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.5));
}
.player-icon--play { margin-left: 2px; }
.player-icon--pause { display: none; }
.player[data-state="playing"] .player-icon--play  { display: none; }
.player[data-state="playing"] .player-icon--pause { display: block; }

/* ---- audio element hidden ------------------------------- */
.player-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- desktop cursor override ---------------------------- */
html.has-custom-cursor .player,
html.has-custom-cursor .player * { cursor: none !important; }

/* ---- responsive ----------------------------------------- */
@media (max-width: 640px) {
  .player {
    right: 12px;
    bottom: 12px;
    width: min(300px, calc(100vw - 24px));
    padding: 10px 12px 10px 10px;
    column-gap: 12px;
    border-radius: 20px;
  }
  .player-cover { width: 50px; height: 50px; border-radius: 14px; }
  .player-cover-img { border-radius: 14px; }
  .player-title { font-size: 13.5px; }
  .player-artist { font-size: 10.5px; }
  .player-toggle { width: 38px; height: 38px; }
  .player-icon { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .player,
  .player-cover-ring,
  .player-toggle-halo,
  .player-eq i {
    animation: none !important;
  }
}

/* ============================================================
   CREATIVE UPGRADE PASS — v2
   variety, layering, tiny interactive moments
   ============================================================ */

/* ---------- sticker tape on mood cards -------------------- */
.mood-tape {
  position: absolute;
  z-index: 8;
  width: 72px;
  height: 22px;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.55) 0 6px,
      rgba(255,255,255,.25) 6px 12px),
    linear-gradient(90deg, rgba(255, 200, 225, .9), rgba(255, 225, 240, .85));
  border-top: 1px dashed rgba(255,255,255,.7);
  border-bottom: 1px dashed rgba(255,255,255,.5);
  box-shadow: 0 6px 14px -8px rgba(87, 20, 94, .35);
  pointer-events: none;
  filter: blur(.2px);
}
.mood-tape--a { top: -10px; left: 22px;  transform: rotate(-6deg); }
.mood-tape--b { top: -12px; right: 28px; transform: rotate(7deg); background-color: rgba(255, 240, 180, .8); }
.mood-tape--c { top: -9px;  left: 40%;   transform: rotate(-2deg); background: repeating-linear-gradient(135deg, rgba(255,255,255,.6) 0 6px, rgba(255,255,255,.25) 6px 12px), linear-gradient(90deg, rgba(220, 210, 255, .9), rgba(240, 230, 255, .85)); }

/* tiny nudge star next to lead copy */
.nudge {
  display: inline-block;
  color: var(--bubble-deep);
  animation: nudgeSpin 6s linear infinite;
  transform-origin: center;
}
@keyframes nudgeSpin {
  0%   { transform: rotate(0deg)   scale(1); }
  50%  { transform: rotate(180deg) scale(1.18); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ---------- mood card tilt + hover lift ------------------- */
.mood[data-tilt="1"] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms;
}
.mood[data-tilt="1"]:hover {
  box-shadow: 0 30px 40px -22px rgba(87, 20, 94, .4),
              0 0 0 1px rgba(255,255,255,.6) inset;
}
.mood[data-tilt="1"] .head--mood,
.mood[data-tilt="1"] .mood-num,
.mood[data-tilt="1"] .mood-caption {
  transform: translateZ(0);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}
.mood[data-tilt="1"]:hover .head--mood  { transform: translateZ(38px) scale(1.04); }
.mood[data-tilt="1"]:hover .mood-num    { transform: translateZ(24px); }
.mood[data-tilt="1"]:hover .mood-caption{ transform: translateZ(14px); }

/* ---------- head--peek cameo in treasures ----------------
   sits to the right of the section title (.props-head h2), like a
   small portrait next to the headline. no paper backing — just the
   head, a soft tilt, and an always-visible script caption beneath. */
.head--peek {
  position: absolute;
  width: 18vw;
  max-width: 220px;
  min-width: 160px;
  top: 210px;                       /* clears the floating chip-nav (~63px) and sits beside the h2 title */
  right: 8vw;
  z-index: 30;
  transform: rotate(-4deg);
  pointer-events: auto;
  filter: drop-shadow(0 22px 28px rgba(87, 20, 94, .26));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.head--peek:hover { transform: rotate(2deg) scale(1.05); }
.head--peek .head-cap--peek {
  position: absolute;
  bottom: -28px;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  color: var(--bubble-deep);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  opacity: .9;                      /* always visible */
  white-space: nowrap;
  text-transform: none;
  transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.head--peek:hover .head-cap--peek {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* head caption refined */
.head-cap {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .01em;
  color: var(--ink-soft);
  opacity: .85;
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- outro hearts puff ---------------------------- */
.head-puff {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 12;
}
.head-puff span {
  position: absolute;
  top: 0; left: 0;
  color: #ff6fae;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(255, 111, 174, .45));
  transform: translate(-50%, -50%) scale(.4);
  transition: opacity .3s;
}
.head--outro:hover .head-puff span {
  animation: heartPuff 1.4s ease-out forwards;
}
.head--outro:hover .head-puff span:nth-child(1) { animation-delay: 0s;    --dx: -58px; --dy: -80px; --rot: -18deg; }
.head--outro:hover .head-puff span:nth-child(2) { animation-delay: .12s;  --dx:   0px; --dy:-110px; --rot:   6deg; }
.head--outro:hover .head-puff span:nth-child(3) { animation-delay: .22s;  --dx:  62px; --dy: -78px; --rot:  22deg; }
@keyframes heartPuff {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0deg); }
  22%  { opacity: 1; }
  100% { opacity: 0;
         transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--rot));
  }
}

/* ---------- head--garden: light garden highlight ring --- */
.head--garden {
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.head--garden::before {
  content: "";
  position: absolute;
  inset: -8% -8% -4% -8%;
  border-radius: 46% 54% 50% 50% / 50%;
  background: radial-gradient(60% 55% at 50% 60%,
              rgba(255, 220, 238, .55),
              rgba(255, 220, 238, 0) 70%);
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: opacity .45s;
}
.head--garden:hover { transform: scale(1.04) rotate(-1.5deg); }
.head--garden:hover::before { opacity: 1; }

/* ---------- head--outro: refined hover ring -------------- */
.head--outro {
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.head--outro:hover { transform: scale(1.06) rotate(2deg); }
.head-cap--outro {
  bottom: -32px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .01em;
  text-transform: none;
  opacity: .8;
}

/* ---------- magnetic chip-nav + cameo --------------------- */
.chip-nav .chip {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s, color .2s;
}
.chip-nav .chip:hover { transform: translateY(-2px) scale(1.04); }

/* ---------- mobile adjustments for new bits -------------- */
@media (max-width: 768px) {
  .head--peek {
    width: 36vw; right: 5%; bottom: 80px; top: auto;
    max-width: none; min-width: 160px;
  }
  .head--peek .head-cap--peek { font-size: 12px; bottom: -32px; }
  .mood-tape { width: 56px; height: 18px; }
  .mood[data-tilt="1"]:hover .head--mood { transform: translateZ(18px) scale(1.02); }
}

/* respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .nudge,
  .head--outro:hover .head-puff span { animation: none !important; }
  .mood[data-tilt="1"]:hover .head--mood,
  .mood[data-tilt="1"]:hover .mood-num,
  .mood[data-tilt="1"]:hover .mood-caption { transform: none; }
}

/* ============================================================
   PLAYER VOLUME CONTROL — absolute pill, popover slider above
   ============================================================ */
.player {
  /* allow overflow so the popover floats above the player */
  overflow: visible;
}

.player-volume {
  position: relative;
  margin-right: -6px;              /* pairs it with the play toggle (8px apart) */
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 246, 251, .85);
  color: var(--pl-pink-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 1px var(--pl-border),
    0 4px 10px -4px rgba(255, 79, 167, .35);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .2s ease;
  pointer-events: auto;
}
.player-volume:hover { transform: scale(1.08); background: var(--pl-cream); }
.player-volume:active { transform: scale(.92); }

.player-volume-icon { width: 16px; height: 16px; }
/* hide waves progressively as level drops */
.player-volume-icon[data-level="0"] .vol-wave-1,
.player-volume-icon[data-level="0"] .vol-wave-2,
.player-volume-icon[data-level="0"] .vol-wave-3 { opacity: 0; }
.player-volume-icon[data-level="1"] .vol-wave-2,
.player-volume-icon[data-level="1"] .vol-wave-3 { opacity: 0; }
.player-volume-icon[data-level="2"] .vol-wave-3 { opacity: 0; }
/* tiny mute slash when level is 0 */
.player-volume-icon[data-level="0"] .vol-speaker {
  filter: drop-shadow(0 0 0 transparent);
}
.player-volume-icon[data-level="0"]::after {
  /* not actually rendered — just a hook if we want a slash later */
}

/* popover container — slides up above the player */
.player-volume-pop {
  position: absolute;
  right: 56px;                     /* puts the tail under the volume button */
  bottom: calc(100% + 10px);
  width: 168px;
  padding: 14px 16px;
  background: var(--pl-cream);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px var(--pl-border),
    0 18px 28px -12px rgba(87, 20, 94, .35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.96);
  transform-origin: 80% 100%;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}
.player.player--vol-open .player-volume-pop {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
/* little tail pointing down to the volume button */
.player-volume-pop::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: var(--pl-cream);
  border-right: 1px solid var(--pl-border);
  border-bottom: 1px solid var(--pl-border);
  transform: rotate(45deg);
}

.player-volume-bar {
  position: relative;
  width: 100%;
  height: 14px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
}
.player-volume-track {
  position: absolute;
  inset: 50% 0 auto 0;
  height: 4px;
  margin-top: -2px;
  background: var(--pl-pink-soft);
  border-radius: 999px;
}
.player-volume-fill {
  position: absolute;
  inset: 50% auto auto 0;
  height: 4px;
  margin-top: -2px;
  background: linear-gradient(90deg, var(--pl-pink), var(--pl-pink-deep));
  border-radius: 999px;
  width: 55%;
}
.player-volume-knob {
  position: absolute;
  top: 50%;
  left: 55%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--pl-pink-deep);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 8px -2px rgba(255, 79, 167, .5);
  pointer-events: none;
}

/* mobile: scale down slightly */
@media (max-width: 640px) {
  .player-volume { width: 26px; height: 26px; }
  .player-volume-icon { width: 14px; height: 14px; }
  .player-volume-pop { width: 150px; right: 47px; }
}

/* ============================================================
   FINAL POLISH PASS — v3
   loader, kinetic typography, watermarks, crop marks,
   progress pill, sparkles, scroll cue refinement
   ============================================================ */

/* ---------- intro loader ---------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 70% at 50% 30%, #fff5fa 0%, #ffd8e8 60%, #ffc4dd 100%);
  pointer-events: auto;
  transition: opacity .6s ease, transform .6s cubic-bezier(.4, 0, .2, 1);
}
.loader.is-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.loader.is-removed { display: none; }
.loader-stage {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}
.loader-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(255,210,228,.6) 60%, transparent 75%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.7),
    0 12px 30px -10px rgba(255, 79, 167, .35);
}
.loader-bubble:nth-child(1) { width: 22px; height: 22px; top: 30%; left: 24%; animation: loadBubble 1.6s ease-in-out -.2s infinite; }
.loader-bubble:nth-child(2) { width: 16px; height: 16px; top: 22%; left: 60%; animation: loadBubble 1.8s ease-in-out -.6s infinite; }
.loader-bubble:nth-child(3) { width: 28px; height: 28px; top: 56%; left: 70%; animation: loadBubble 2.0s ease-in-out -.4s infinite; }
.loader-bubble--big {
  position: relative;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(255,210,228,.7) 50%, rgba(255,143,207,.45) 80%);
  border: 2px solid rgba(255,255,255,.85);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,.5),
    inset 0 -12px 24px rgba(255, 79, 167, .2),
    0 26px 48px -16px rgba(255, 79, 167, .45);
  animation: loadBig 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes loadBubble {
  0%, 100% { transform: translateY(0) scale(1); opacity: .9; }
  50%      { transform: translateY(-12px) scale(1.06); opacity: 1; }
}
@keyframes loadBig {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50%      { transform: scale(1.1) rotate(2deg); }
}
.loader-tag {
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 18px;
  color: var(--bubble-deep);
  white-space: nowrap;
  margin: 0;
}
.loader-dots { display: inline-block; margin-left: 4px; vertical-align: middle; }
.loader-dots i {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin: 0 1px;
  opacity: .35;
  animation: loadDots 1.4s ease-in-out infinite;
}
.loader-dots i:nth-child(2) { animation-delay: .18s; }
.loader-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes loadDots {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-3px); }
}

/* ---------- kinetic typography: letter drop-in -----------
   inverted approach: .lt is visible by default. JS adds an
   `.is-intro` class on the title BEFORE first paint to push letters
   off-screen, then removes it to let them transition back. this way,
   if JS fails or runs late, the title is always visible — never
   trapped in an invisible start state. */
.lt-word { display: inline-block; }
.hero-title .lt {
  display: inline-block;
  transition:
    transform .85s cubic-bezier(.2, .8, .25, 1.05),
    opacity .55s ease-out,
    filter .4s ease-out;
  will-change: transform, opacity;
}
.hero-title.is-intro .lt {
  transform: translateY(-90%) rotate(-12deg);
  opacity: 0;
  filter: blur(4px);
}

/* ---------- chapter roman numeral watermark -------------- */
.chapter-mark {
  position: absolute;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(180px, 28vw, 460px);
  line-height: .85;
  letter-spacing: -.04em;
  color: var(--ink);
  opacity: .035;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transform-origin: center;
}
/* per-section placement */
.scene--hero        .chapter-mark { top: 6%; right: 1%; transform: rotate(-4deg); }
.scene--playground  .chapter-mark { bottom: 4%; left: 2%;  opacity: .055; transform: rotate(3deg); }
.scene--expressions .chapter-mark { top: 4%;  right: 2%;  opacity: .055; transform: rotate(-2deg); }
.scene--props       .chapter-mark { bottom: 6%; left: 1%;  opacity: .05; transform: rotate(2deg); }
.scene--editorial   .chapter-mark { top: 8%;  left: 1%;   opacity: .05; transform: rotate(-3deg); }
.scene--outro       .chapter-mark { top: 14%; right: 4%;  opacity: .06; transform: rotate(4deg); }

/* ---------- magazine corner crop marks (hero only) ------ */
.crop-mark {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 5;
  opacity: .55;
}
.crop-mark::before,
.crop-mark::after {
  content: "";
  position: absolute;
  background: var(--ink-soft);
}
.crop-mark::before { width: 100%; height: 1px; }
.crop-mark::after  { width: 1px;  height: 100%; }
.crop-mark--tl { top: 22px; left: 22px; }
.crop-mark--tl::before { top: 0;    left: 0; }
.crop-mark--tl::after  { top: 0;    left: 0; }
.crop-mark--tr { top: 22px; right: 22px; }
.crop-mark--tr::before { top: 0;    right: 0; }
.crop-mark--tr::after  { top: 0;    right: 0; }
.crop-mark--bl { bottom: 22px; left: 22px; }
.crop-mark--bl::before { bottom: 0; left: 0; }
.crop-mark--bl::after  { bottom: 0; left: 0; }
.crop-mark--br { bottom: 22px; right: 22px; }
.crop-mark--br::before { bottom: 0; right: 0; }
.crop-mark--br::after  { bottom: 0; right: 0; }

/* ---------- floating progress pill ----------------------- */
.progress-pill {
  position: fixed;
  left: 22px;
  bottom: 24px;              /* level with the music player's bottom edge */
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 246, 251, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  box-shadow: 0 8px 22px -14px rgba(87, 20, 94, .4);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink);
  pointer-events: none;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.progress-pill.is-shown { opacity: 1; transform: translateY(0); }
.progress-icon {
  display: inline-block;
  font-size: 14px;
  color: var(--bubble-deep);
  animation: pillSpin 8s linear infinite;
}
@keyframes pillSpin {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(180deg); }
}
.progress-num { display: inline-flex; align-items: baseline; gap: 1px; font-weight: 600; letter-spacing: 0; font-size: 13px; }
.progress-current {
  display: inline-block;
  min-width: 1ch;
  color: var(--bubble-deep);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.progress-current.is-bumping {
  animation: pillBump .55s cubic-bezier(.2,.8,.25,1.1);
}
@keyframes pillBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4) rotate(-6deg); }
  100% { transform: scale(1); }
}
.progress-divider, .progress-total { color: var(--ink-soft); }

/* the footer repeats the wordmark in the same corner, so the pill
   steps aside once it scrolls into view */
.progress-pill {
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.progress-pill.is-tucked {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
@media (max-width: 640px) {
  /* the player spans nearly the full width down here, so the pill
     rides just above it instead of sliding under its left edge */
  .progress-pill { font-size: 10px; padding: 6px 10px; gap: 6px; left: 12px; bottom: 118px; }
}

/* ---------- konami sparkle layer ------------------------- */
.sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  overflow: hidden;
}
.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  background-image: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,143,207,.9) 35%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 143, 207, .6));
}
.sparkle.is-sparkling {
  animation: sparkleRise 1.6s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes sparkleRise {
  0%   { opacity: 0; transform: scale(.4) translateY(0) rotate(0); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5) translateY(-180px) rotate(180deg); }
}

/* ---------- scroll cue refinement ------------------------ */
.scroll-cue svg {
  animation: cueBob 2s ease-in-out infinite;
}
@keyframes cueBob {
  0%, 100% { transform: translateY(0);   opacity: .65; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ---------- reduced-motion safety ------------------------ */
@media (prefers-reduced-motion: reduce) {
  .loader-bubble,
  .loader-bubble--big,
  .loader-dots i,
  .progress-icon,
  .scroll-cue svg,
  .hero-title .lt { animation: none !important; }
  .hero-title .lt { transform: none; opacity: 1; filter: none; }
}

/* ============================================================
   DOODLE LAYER, v4
   gel-pen marginalia, as if she doodled on her own magazine:
   a signature flourish, twinkles, a thought bubble, plantable
   flowers, a paper butterfly that really flies, mood emotes,
   a cloud on a leash, a paper airplane, and pops that say "pop!".
   everything here is decorative (aria-hidden). start-hidden
   states for draw-on effects live inside
   (prefers-reduced-motion: no-preference), so the global
   reduced-motion kill switch leaves them fully drawn and still
   instead of stranded mid-animation.
   ============================================================ */

/* shared sprite: zero-size but still rendered, so #doodle-boil resolves */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---------- ticker: the star glyphs became spinning sparkles */
.tick-spark svg {
  display: block;
  width: .82em;
  height: .82em;
  fill: var(--candy);
}
@media (prefers-reduced-motion: no-preference) {
  .tick-spark svg { animation: tickSpin 5s linear infinite; }
  .tick-spark:nth-child(4n) svg { animation-duration: 7s; animation-direction: reverse; }
}
@keyframes tickSpin { to { transform: rotate(360deg); } }

/* ---------- hero: signature flourish under "paradiso" ------
   sized in em so it tracks the script line at every breakpoint.
   1 viewBox unit is about 1px at the desktop title size. */
.hero-title .flourish {
  position: absolute;
  left: -.04em;
  top: .76em;
  width: 3.4em;
  height: .68em;
  overflow: visible;
  pointer-events: none;
}
.flourish-line {
  fill: none;
  stroke: var(--bubble-deep);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flourish-heart {
  fill: var(--bubble-deep);
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(14deg);
}
@media (prefers-reduced-motion: no-preference) {
  .flourish-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.3s cubic-bezier(.6, 0, .25, 1) 1.1s;
  }
  .hero-title:not(.is-intro) .flourish-line { stroke-dashoffset: 0; }
  .flourish-heart {
    transform: scale(0) rotate(-40deg);
    transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) 2.25s;
  }
  .hero-title:not(.is-intro) .flourish-heart {
    transform: scale(1) rotate(14deg);
    animation: flourishBeat 2.4s ease-in-out 3.2s infinite;
  }
}
@keyframes flourishBeat {
  0%, 40%, 100% { transform: scale(1) rotate(14deg); }
  12%           { transform: scale(1.28) rotate(8deg); }
  24%           { transform: scale(1.06) rotate(16deg); }
}

/* ---------- hero: title twinkles ---------------------------- */
.title-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tspark {
  position: absolute;
  width: var(--s);
  height: var(--s);
  overflow: visible;
  fill: #fff;
  filter:
    drop-shadow(0 0 .03em rgba(255, 90, 179, .85))
    drop-shadow(0 0 .08em rgba(255, 255, 255, .8));
}
.tspark--1 { --s: .17em; left: 2.585em; top: -.085em; }
.tspark--2 { --s: .1em;  left: 3.49em;  top: .11em;   fill: #fff4b0; }
.tspark--3 { --s: .12em; left: .68em;   top: -.15em; }
.tspark--4 { --s: .1em;  left: -.05em;  top: 1.11em;  fill: var(--candy); }
@media (prefers-reduced-motion: no-preference) {
  .tspark { animation: tsparkTwinkle 3.4s ease-in-out infinite both; }
  .tspark--2 { animation-delay: .9s;  animation-duration: 2.8s; }
  .tspark--3 { animation-delay: 1.7s; animation-duration: 3.9s; }
  .tspark--4 { animation-delay: 2.5s; animation-duration: 3.1s; }
}
@keyframes tsparkTwinkle {
  0%, 100% { transform: scale(.15) rotate(0deg);   opacity: 0; }
  20%      { transform: scale(1.1) rotate(45deg);  opacity: 1; }
  34%      { transform: scale(.82) rotate(70deg);  opacity: .9; }
  52%      { transform: scale(1) rotate(90deg);    opacity: 1; }
  80%      { transform: scale(.25) rotate(140deg); opacity: 0; }
}

/* ---------- hero: thought bubble off the center head -------
   a child of the head, so it rides the head's float, parallax
   and lean for free. sits off her right bun, clear of the title. */
.thought {
  position: absolute;
  left: 86%;
  top: -7%;
  width: 36%;
  z-index: 3;
  pointer-events: none;
  transform-origin: 8% 92%;
}
.thought svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.thought-cloud,
.thought-dot {
  fill: rgba(255, 255, 255, .95);
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linejoin: round;
}
.ti { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ti:first-child { opacity: 1; }
.ti-heart     { fill: var(--bubble-deep); stroke: var(--ink); stroke-width: 1.5; }
.ti-berry     { fill: #ff6b8a; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.ti-seeds     { fill: #ffe9a8; }
.ti-leaf      { fill: #7fd17a; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.ti-star      { fill: #ffd84d; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.ti-ink       { fill: var(--ink); }
.ti-line      { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.ti-gum       { fill: #ff9fd0; stroke: var(--ink); stroke-width: 1.8; }
.ti-shine     { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; }
.ti-shine-dot { fill: #fff; }
.ti-dough     { fill: #f4c58f; stroke: var(--ink); stroke-width: 1.8; }
.ti-icing     { fill: #ff8fcf; }
.ti-hole      { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.ti-sprinkles path { fill: none; stroke-width: 1.9; stroke-linecap: round; }
.ti-sprinkles path:nth-child(3n+1) { stroke: #fff; }
.ti-sprinkles path:nth-child(3n+2) { stroke: #ffd84d; }
.ti-sprinkles path:nth-child(3n)   { stroke: #7fc8ff; }
.ti-stems     { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.ti-beam      { fill: none; stroke: var(--ink); stroke-width: 4.5; }

@media (prefers-reduced-motion: no-preference) {
  .thought { animation: thoughtIn .7s cubic-bezier(.3, 1.5, .5, 1) 2.3s both; }
  .thought svg { animation: thoughtBob 4.4s ease-in-out 3s infinite; }
  .thought-dot { transform-box: fill-box; transform-origin: center; animation: thoughtPuff 2.4s ease-in-out infinite; }
  .thought-dot--2 { animation-delay: .35s; }
  /* six icons, two seconds each, one twelve-second loop */
  .ti { animation: thoughtCycle 12s linear calc(var(--i) * 2s + 2.9s) infinite both; }
}
@keyframes thoughtIn {
  from { opacity: 0; transform: scale(.3) rotate(-14deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes thoughtBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(-1.5deg); }
}
@keyframes thoughtPuff {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.16); }
}
@keyframes thoughtCycle {
  0%     { opacity: 0; transform: scale(.3) rotate(-30deg); }
  3%     { opacity: 1; transform: scale(1.18) rotate(6deg); }
  5.5%   { opacity: 1; transform: scale(1) rotate(0deg); }
  14%    { opacity: 1; transform: scale(1) rotate(0deg); }
  16.6%  { opacity: 0; transform: scale(.4) rotate(20deg); }
  100%   { opacity: 0; transform: scale(.4) rotate(20deg); }
}

/* ---------- garden: plantable doodle flowers ---------------- */
.garden-blooms {
  position: absolute;
  inset: 0;
  z-index: 1;               /* under every grass layer: stems rise out of the blades */
  pointer-events: none;
}
.bloom {
  position: absolute;
  overflow: visible;
  transform-origin: 50% 100%;
}
.bloom .fl-stem  { fill: none; stroke: #4f9d55; stroke-width: 3.4; stroke-linecap: round; }
.bloom .fl-leaf  { fill: #8fd68a; stroke: #4f9d55; stroke-width: 1.6; stroke-linejoin: round;
                   transform-box: fill-box; transform-origin: 0% 50%; }
.bloom .fl-head  { transform-box: fill-box; transform-origin: center; }
.bloom .fl-petal { stroke-width: 1.7; stroke-linejoin: round; }
.bloom .fl-core  { fill: #ffd34d; stroke: #e7a325; stroke-width: 1.5; }
.bloom .fl-eye   { fill: var(--ink); }
.bloom .fl-smile { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; }
.bloom .fl-blush { fill: #ff8fb8; opacity: .75; }
.bloom--orange .fl-petal { fill: #ffa45c; stroke: #e2703a; }
.bloom--pink   .fl-petal { fill: #ff9fca; stroke: #ea5a9c; }
.bloom--cream  .fl-petal { fill: #fff6df; stroke: #e2ad5a; }
.bloom--lilac  .fl-petal { fill: #dcc4ff; stroke: #9a6cff; }

@media (prefers-reduced-motion: no-preference) {
  .bloom {
    animation: bloomSway var(--sway, 4s) ease-in-out calc(var(--d, 0s) + 1.3s) infinite alternate both;
  }
  .bloom .fl-stem {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: stemGrow .75s cubic-bezier(.35, .6, .3, 1) var(--d, 0s) forwards;
  }
  .bloom .fl-leaf {
    transform: scale(0);
    animation: leafGrow .5s cubic-bezier(.3, 1.5, .5, 1) calc(var(--d, 0s) + .38s) forwards;
  }
  .bloom .fl-leaf--2 { animation-delay: calc(var(--d, 0s) + .52s); }
  .bloom .fl-head {
    transform: scale(0) rotate(-140deg);
    animation: headBloom .7s cubic-bezier(.3, 1.45, .5, 1) calc(var(--d, 0s) + .6s) forwards;
  }
  .bloom.is-wilting { animation: bloomWilt .6s cubic-bezier(.5, 0, .9, .5) forwards; }
}
@keyframes bloomSway { from { rotate: -3.5deg; } to { rotate: 3.5deg; } }
@keyframes stemGrow  { to { stroke-dashoffset: 0; } }
@keyframes leafGrow  { to { transform: scale(1); } }
@keyframes headBloom { to { transform: scale(1) rotate(0deg); } }
@keyframes bloomWilt { to { scale: .8 0; opacity: 0; } }

/* little burst of seeds where you tapped */
.plant-puff {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 36;
  pointer-events: none;
}
.plant-puff i {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, #ff8fcf);
  box-shadow: 0 0 6px rgba(255, 255, 255, .8);
  animation: puffOut .7s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes puffOut {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to   { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
}

/* the hint: a little taped paper note with a doodled arrow down into the
   turf. a note rather than bare text, so it stays readable wherever the
   props and flowers end up around it. */
.garden-hint {
  position: absolute;
  left: 64%;
  top: 34%;
  margin: 0;
  z-index: 36;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;                /* script.js aims the arrow, then shows it */
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.garden-hint.is-placed { opacity: 1; }
.garden-hint-note {
  position: relative;
  padding: 10px 14px 8px;
  background: #fffaf4;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 12px 22px -12px rgba(87, 20, 94, .45);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bubble-deep);
  white-space: nowrap;
  transform: rotate(-4deg);
}
.garden-hint-note::before {                     /* washi tape */
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 46px;
  height: 16px;
  margin-left: -23px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 5px, rgba(255, 255, 255, .2) 5px 10px),
    linear-gradient(90deg, rgba(200, 168, 255, .85), rgba(225, 210, 255, .8));
  box-shadow: 0 3px 8px -5px rgba(87, 20, 94, .4);
  transform: rotate(4deg);
}
.garden-hint-arrow {
  display: block;
  width: 38px;
  margin: 2px 20px 0 0;
  overflow: visible;
}
.garden-hint-arrow path {
  fill: none;
  stroke: var(--bubble-deep);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.garden.has-planted .garden-hint {
  opacity: 0;
  transform: translateY(-10px);
}
.grass--left,
.grass--right { cursor: pointer; }

/* ---------- garden: the paper butterfly that really flies --- */
.paper-fly {
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  z-index: 40;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 12px 10px rgba(87, 20, 94, .2));
  opacity: 0;
  transition: opacity .8s ease;
}
.paper-fly.is-live { opacity: 1; }
.paper-fly svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.pf-wing {
  transform-box: view-box;
  transform-origin: 0 0;     /* the body axis sits at the viewBox origin */
}
.pf-wing path { stroke: #c93f86; stroke-width: .8; stroke-linejoin: round; }
.pf-f1 { fill: #ffc8e4; }
.pf-f2 { fill: #ff86c2; }
.pf-f3 { fill: #ffa9d6; }
.pf-f4 { fill: #e9559f; }
.pf-body { fill: var(--ink); }
.pf-antennae { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .pf-wing { animation: pfFlap var(--flap, .16s) ease-in-out infinite alternate; }
}
@keyframes pfFlap {
  from { transform: scaleX(1); }
  to   { transform: scaleX(.16); }
}

/* ---------- moods: emotes ------------------------------------
   children of each .head--mood, so they swap with her face on
   hover and pop forward with the card's 3D tilt. */
.emote {
  position: absolute;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}
.emote--kiss  { left: 50%;  top: 0;    width: 60%; }
.emote--storm { left: 1%;   top: -27%; width: 98%; }
.emote--vein  { left: 99%;  top: 27%;  width: 13%; }
.emote--dots  { left: -17%; top: 4%;   width: 37%; }

/* 01 / sugar-kiss: kisses drift off her lips; hover gets "hehe" */
.kh {
  fill: var(--bubble-deep);
  stroke: #fff;
  stroke-width: 2.2;
  paint-order: stroke;
  transform-box: fill-box;
  transform-origin: center;
}
.hehe {
  opacity: 0;
  transform: scale(.5) rotate(-10deg);
  transform-box: fill-box;
  transform-origin: 20% 90%;
  transition: opacity .2s ease, transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.head--mood:hover .hehe { opacity: 1; transform: none; }
.hehe-text { font-family: var(--display); font-size: 18px; fill: var(--bubble-deep); }
.hehe-dash { fill: none; stroke: var(--bubble-deep); stroke-width: 2.3; stroke-linecap: round; }
.hehe-spark { fill: #ffd84d; }
@media (prefers-reduced-motion: no-preference) {
  .kh { opacity: 0; animation: kissFloat 3.6s ease-out infinite; }
  .kh--2 { animation-delay: 1.2s; }
  .kh--3 { animation-delay: 2.4s; }
  .head--mood:hover .kh { animation-duration: 1.6s; }
}
@media (prefers-reduced-motion: reduce) {
  .kh--2, .kh--3 { display: none; }
}
/* out of the corner of her lips, along the jaw, off past her ear */
@keyframes kissFloat {
  0%   { opacity: 0; transform: translate(0, 0) scale(.3) rotate(-10deg); }
  14%  { opacity: 1; transform: translate(14px, -2px) scale(1) rotate(-4deg); }
  40%  { transform: translate(30px, -14px) scale(.95) rotate(12deg); }
  70%  { opacity: .9; transform: translate(40px, -32px) scale(.88) rotate(-8deg); }
  100% { opacity: 0; transform: translate(46px, -50px) scale(.7) rotate(14deg); }
}

/* 02 / not impressed: raincloud + anger vein, cleared to a rainbow on hover */
.storm {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .3s ease, transform .5s cubic-bezier(.4, 0, .2, 1);
}
.head--mood:hover .storm { opacity: 0; transform: translate(-26px, -14px) scale(.55) rotate(-8deg); }
.storm-cloud { fill: #ddd3ea; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.storm-face  { fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; }
.storm-bolt  { fill: none; stroke: #ffc93c; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.storm-rain path { stroke: #8fb3ff; stroke-width: 2.6; stroke-linecap: round; }
.rainbow { opacity: 0; transition: opacity .25s ease; }
.head--mood:hover .rainbow { opacity: 1; }
.rb {
  fill: none;
  stroke-width: 7.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .75s cubic-bezier(.5, 0, .2, 1);
}
.rb--1 { stroke: #ff9fd0; }
.rb--2 { stroke: #ffc69b; transition-delay: .05s; }
.rb--3 { stroke: #fff0a0; transition-delay: .1s; }
.rb--4 { stroke: #b9ecd6; transition-delay: .15s; }
.head--mood:hover .rb { stroke-dashoffset: 0; }
.rb-spark {
  fill: #fff;
  filter: drop-shadow(0 0 3px rgba(255, 90, 179, .9));
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform .4s cubic-bezier(.3, 1.7, .5, 1) .45s;
}
.head--mood:hover .rb-spark { transform: scale(1); }
.head--mood:hover .rb-spark--2 { transition-delay: .55s; }
.head--mood:hover .rb-spark--3 { transition-delay: .62s; }
.emote--vein path { fill: none; stroke: #ff3d7f; stroke-width: 3.4; stroke-linecap: round; }
.emote--vein { transition: opacity .2s ease, transform .3s ease; }
.head--mood:hover .emote--vein { opacity: 0; transform: scale(.3); animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .storm-rain path { animation: rainFall .9s linear infinite; }
  .storm-rain path:nth-child(2) { animation-delay: .3s; }
  .storm-rain path:nth-child(3) { animation-delay: .55s; }
  .storm-rain path:nth-child(4) { animation-delay: .15s; }
  .storm-bolt { animation: boltFlash 3.4s linear infinite; }
  .storm > g[filter] { animation: stormHuff 2.2s ease-in-out infinite; }
  .emote--vein { animation: veinThrob 1.1s ease-in-out infinite; }
}
@keyframes rainFall {
  0%   { transform: translate(2px, -8px); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translate(-3px, 14px); opacity: 0; }
}
@keyframes boltFlash {
  0%, 84%, 100% { opacity: 0; }
  86%, 91%      { opacity: 1; }
  88.5%         { opacity: .15; }
}
@keyframes stormHuff {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
@keyframes veinThrob {
  0%, 100% { transform: scale(1); }
  45%      { transform: scale(1.28); }
}

/* 03 / quiet hours: a typing indicator that never sends */
.dots-bubble { fill: rgba(255, 255, 255, .96); stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.dots-typing { transition: opacity .2s ease; }
.dots-typing circle { fill: var(--ink-soft); transform-box: fill-box; transform-origin: center; }
.dots-heart {
  fill: var(--bubble-deep);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.3);
  transition: opacity .2s ease, transform .45s cubic-bezier(.3, 1.7, .5, 1);
}
.head--mood:hover .dots-typing { opacity: 0; }
.head--mood:hover .dots-heart  { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: no-preference) {
  .dots-typing circle { animation: typingDot 1.3s ease-in-out infinite; }
  .dots-typing circle:nth-child(2) { animation-delay: .16s; }
  .dots-typing circle:nth-child(3) { animation-delay: .32s; }
  .emote--dots { animation: dotsBob 3.8s ease-in-out infinite; }
}
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}
@keyframes dotsBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-4px) rotate(1deg); }
}

/* ---------- shelf: treasure glints (spawned by script.js) ---- */
.glint {
  position: absolute;
  z-index: 30;
  overflow: visible;
  pointer-events: none;
  fill: #fff;
  /* a crisp pink edge so white sparkles still read on white gifts,
     then a soft halo */
  filter:
    drop-shadow(0 0 1px rgba(255, 90, 179, .95))
    drop-shadow(0 0 6px rgba(255, 143, 207, .85));
  animation: glintTwinkle 1.05s ease-in-out forwards;
}
@keyframes glintTwinkle {
  0%   { transform: scale(0) rotate(0deg);    opacity: 0; }
  45%  { transform: scale(1) rotate(45deg);   opacity: 1; }
  100% { transform: scale(0) rotate(110deg);  opacity: 0; }
}

/* ---------- fable: the invisible cloud on a leash ------------ */
.leash-layer {
  position: absolute;
  inset: 0;
  z-index: 13;
  pointer-events: none;
}
.leash-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.leash-shadow { fill: none; stroke: rgba(87, 20, 94, .14); stroke-width: 5; stroke-linecap: round; }
.leash-chain  { fill: none; stroke: #b4abc8; stroke-width: 3.8; stroke-linecap: round; stroke-dasharray: 5 4.6; }
.leash-shine  { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 2.4 7.2; stroke-dashoffset: -1; opacity: .9; }
/* the handle: a little loop of chain around her fingers */
.leash-loop   { fill: none; stroke: #b4abc8; stroke-width: 2.6; }

.cloud-pet {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(128px, 27%, 190px);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cloud-pet.is-held { cursor: grabbing; }
.cloud-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transition: filter .45s ease;
}
.cloud-body {
  fill: rgba(255, 255, 255, .22);
  stroke: rgba(255, 90, 179, .7);
  stroke-width: 2.4;
  stroke-dasharray: 7 7;
  stroke-linejoin: round;
  transition: fill .45s ease, stroke .45s ease;
}
.cloud-face { opacity: .6; transition: opacity .4s ease; }
.cloud-face > * { transition: opacity .18s ease; }
.cf-sleep,
.cf-squeeze,
.cf-smile { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cf-open ellipse { fill: var(--ink); transform-box: fill-box; transform-origin: center; transition: transform .1s ease; }
.cf-open .cf-glint { fill: #fff; }
.cf-cheek { fill: #ff8fcf; opacity: .55; }
.cf-wee { fill: #ff6fae; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.cf-open,
.cf-squeeze,
.cf-wee { opacity: 0; }
.cloud-tag { fill: var(--bubble-deep); stroke: #fff; stroke-width: 1.6; paint-order: stroke; }

/* found it: hovering or holding the cloud makes it visible */
.cloud-pet:hover .cloud-svg,
.cloud-pet.is-held .cloud-svg {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .95)) drop-shadow(0 10px 18px rgba(87, 20, 94, .18));
}
.cloud-pet:hover .cloud-body,
.cloud-pet.is-held .cloud-body {
  fill: rgba(255, 255, 255, .97);
  stroke: rgba(255, 143, 207, .85);
}
.cloud-pet:hover .cloud-face,
.cloud-pet.is-held .cloud-face { opacity: 1; }
.cloud-pet:hover .cf-sleep { opacity: 0; }
.cloud-pet:hover .cf-open  { opacity: 1; }
.cloud-pet.is-blink .cf-open ellipse { transform: scaleY(.12); }
.cloud-pet.is-held .cf-sleep,
.cloud-pet.is-held .cf-open,
.cloud-pet.is-held .cf-smile { opacity: 0; }
.cloud-pet.is-held .cf-squeeze,
.cloud-pet.is-held .cf-wee { opacity: 1; }

.cloud-note {
  position: absolute;
  left: 58%;
  bottom: 96%;
  transform: rotate(-4deg);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bubble-deep);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .35s ease;
}
.cloud-pet.is-held .cloud-note { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cloud-body { animation: cloudAnts 1.6s linear infinite; }
}
@keyframes cloudAnts { to { stroke-dashoffset: -28; } }

/* a shaken cloud rains a little */
.cloud-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.raindrop {
  position: absolute;
  width: 2.6px;
  height: 11px;
  border-radius: 2px;
  background: linear-gradient(#cfe0ff, #8fb3ff);
  animation: raindrop .75s cubic-bezier(.5, 0, 1, 1) forwards;
}
@keyframes raindrop {
  from { transform: translateY(0);    opacity: .95; }
  to   { transform: translateY(72px); opacity: 0; }
}

/* ---------- outro: paper airplane circling "soon" ------------ */
.plane-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;               /* just under .outro-copy, so the loop passes behind the type */
  pointer-events: none;
  overflow: visible;
}
.plane-trail {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: .1 9;
  opacity: .6;
  transition: opacity 1.2s ease;
}
.plane-trail.is-fading { opacity: 0; }
.plane-trail-reveal { fill: none; stroke: #fff; stroke-width: 18; }
.plane { opacity: 0; transition: opacity .35s ease; }
.plane.is-flying { opacity: 1; }
.plane-paper path { stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.pl-wing { fill: #fff; }
.pl-keel { fill: #ffc4dd; }
.pl-back { fill: #efdfff; }

/* ---------- bubble pops say "pop!" --------------------------- */
.pop-burst {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pop-burst svg {
  position: absolute;
  left: calc(var(--s) * -.75);
  top: calc(var(--s) * -.75);
  width: calc(var(--s) * 1.5);
  height: calc(var(--s) * 1.5);
  overflow: visible;
  animation: popRing .55s cubic-bezier(.2, .8, .3, 1) forwards;
}
/* each tick shoots outward: the dash slides in from the inner end and
   leaves through the outer end */
.pop-burst path {
  fill: none;
  stroke: var(--bubble-deep);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: popTick .5s cubic-bezier(.2, .7, .3, 1) forwards;
}
.pop-burst path:nth-child(3n+2) { stroke: #ffb3dc; }
.pop-burst path:nth-child(3n)   { stroke: var(--lilac); }
.pop-word {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--display);
  font-size: clamp(20px, calc(var(--s) * .28), 38px);
  line-height: 1;
  color: var(--bubble-deep);
  /* white sticker outline so it reads over dark type and busy photos */
  text-shadow:
    2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
    1.5px 1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px -1.5px 0 #fff,
    0 5px 12px rgba(87, 20, 94, .22);
  white-space: nowrap;
  animation: popWord .8s cubic-bezier(.2, .8, .3, 1) forwards;
}
/* fades at the end too: a round-capped dash that has slid fully off a
   path still leaves a zero-length cap (a dot) behind */
@keyframes popRing {
  0%   { transform: scale(.7); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: scale(1.12); opacity: 0; }
}
@keyframes popTick {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: -1; }
}
@keyframes popWord {
  0%   { transform: translate(-50%, -50%) scale(.4) rotate(calc(var(--rot, 0deg) - 16deg)); opacity: 0; }
  20%  { transform: translate(-50%, -64%) scale(1.18) rotate(calc(var(--rot, 0deg) + 4deg)); opacity: 1; }
  65%  { opacity: 1; }
  100% { transform: translate(-50%, -125%) scale(1) rotate(var(--rot, 0deg)); opacity: 0; }
}

/* ---------- doodle layer: small screens ---------------------- */
@media (max-width: 960px) {
  /* tucked just above her right bun, under the ticker band */
  .thought { left: 71%; top: -6%; width: 29%; }
  /* stacked cards: give the raincloud / rainbow room inside card 02
     instead of letting them climb onto the card above (the head, and so
     the cloud's reach, scales with the viewport here) */
  .mood--02 { padding-top: max(30px, calc(12.6vw - 4px)); }
}
@media (max-width: 720px) {
  .garden-hint-note { font-size: 12px; padding: 8px 11px 7px; }
  .garden-hint-arrow { width: 30px; margin-right: 14px; }
  .paper-fly { width: 54px; }
  /* the cloud floats near the screen edge here: center the note over it */
  .cloud-note { font-size: 11.5px; left: 50%; transform: translateX(-50%) rotate(-4deg); text-align: center; }
  .hehe-text { font-size: 16px; }
}
