/* ============================================================
   MOODBOARD MOVES — additive layer toward the visual-direction
   moodboard. Every block here is gated by a body class
   (.mood-sticker / .mood-doodles) or by the
   .hero-cutout element, so each can be toggled independently
   from the Tweaks panel without touching baseline styles.
   ============================================================ */

/* ------------------------------------------------------------
   #1 — CUTOUT-ON-COLOR HERO
   Flat brand-color field, a dog blob-cut out of its background
   and overlapping the type. Color-blocked, high energy.
   ------------------------------------------------------------ */
.hero-cutout {
  position: relative;
  z-index: 2;
  background: var(--light-pink);
  color: var(--ink);
  overflow: hidden;
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 72px 56px;
}
/* Fun-blob field — green clover blobs tiled across the light-pink hero.
   Sits behind the photo, doodles and copy (z 1/2/3). Masked seamless
   PNG so the silhouette can be tinted to brand green. */
/* Fun-blob field — hot-pink clover blobs on the light-pink hero
   (approved hot-pink · light-pink pairing). Faded to 0.2 per the DS
   "behind text" rule so it reads as a soft backdrop, never fighting
   the copy. Real element so it renders in captures/exports too. */
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/blob-tile-pink.png") repeat;
  background-size: 360px 360px;
  opacity: 0.2;
  pointer-events: none;
}
.hero-cutout-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

/* Copy column — sits on the left, clear of the bleeding photo */
.hero-cutout-copy {
  position: relative;
  z-index: 4;
  width: 44%;
  max-width: 520px;
  margin-left: 2%;
}
.hero-cutout-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--off-white);
  background: var(--hot-pink);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  transform: rotate(-2deg);
  margin: 0 0 24px;
}
.hero-cutout-h {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.4vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-cutout-h .script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--hot-pink);
  display: inline-block;
}
.hero-cutout-sub {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 32px;
}
.hero-cutout-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Pre-torn cutout PNG (transparent) — placed large, bleeding off the right */
.hero-cutout-figure {
  position: absolute;
  right: 0;
  top: auto;
  bottom: 0;
  transform: none;
  width: 70%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}
.hero-cutout-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(-10px 12px 20px rgba(26,26,26,0.14));
}
/* Rotating BFF stack — images share one slot; the transition between
   them is Tweak-driven (data-transition). All cutouts are transparent,
   so the outgoing dog is faded out fast to avoid two dogs overlapping. */
.hero-dog-rotator {
  position: relative;
  width: 100%;
  aspect-ratio: 2100 / 1500;
}
/* Per-photo caption — a small sticker tag naming the BFF on screen */
.hero-cutout-caption {
  position: absolute;
  left: 57%;
  bottom: 9%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 4;
  opacity: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: var(--off-white);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 18px;
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}
.hero-cutout-caption strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--hot-pink);
  letter-spacing: -0.005em;
}
@media (max-width: 900px) {
  .hero-cutout-caption { left: 58%; bottom: 13%; font-size: 14px; padding: 6px 15px; }
}
.hero-dog-rotator .hero-cutout-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  will-change: transform, opacity;
}
.hero-dog-rotator .hero-cutout-img[data-active] { z-index: 2; }
.hero-dog-rotator .hero-cutout-img[data-prev]   { z-index: 1; }

/* Crossfade — the classic */
[data-transition="fade"] .hero-cutout-img {
  transform: scale(0.985);
  transition: opacity 900ms var(--ease-out, ease),
              transform 900ms var(--ease-out, ease);
}
[data-transition="fade"] .hero-cutout-img[data-active] {
  opacity: 1; transform: scale(1);
}

/* Sticker slap — pops in oversize then settles, springy + a tiny tilt */
[data-transition="slap"] .hero-cutout-img[data-active] {
  opacity: 1;
  animation: heroSlap 720ms var(--ease-bounce, cubic-bezier(.34,1.56,.64,1)) both;
}
[data-transition="slap"] .hero-cutout-img[data-prev] {
  opacity: 0; transition: opacity 320ms ease;
}
@keyframes heroSlap {
  0%   { opacity: 0; transform: scale(.5) rotate(-9deg); }
  55%  { opacity: 1; transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Slide & bounce — enters from the right, eases past, settles */
[data-transition="slide"] .hero-cutout-img[data-active] {
  opacity: 1;
  animation: heroSlideIn 780ms var(--ease-bounce, cubic-bezier(.34,1.4,.5,1)) both;
}
[data-transition="slide"] .hero-cutout-img[data-prev] {
  animation: heroSlideOut 560ms var(--ease-out, ease) both;
}
@keyframes heroSlideIn {
  0%   { opacity: 0; transform: translateX(48%) rotate(3deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}
@keyframes heroSlideOut {
  0%   { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-24%) rotate(-3deg); }
}

/* Blob pop — revealed through a growing circular blob */
[data-transition="blob"] .hero-cutout-img[data-active] {
  opacity: 1;
  animation: heroBlobPop 760ms var(--ease-bounce, cubic-bezier(.34,1.45,.6,1)) both;
}
[data-transition="blob"] .hero-cutout-img[data-prev] {
  opacity: 0; transition: opacity 300ms ease;
}
@keyframes heroBlobPop {
  0%   { opacity: 1; clip-path: circle(0% at 60% 52%); }
  100% { opacity: 1; clip-path: circle(125% at 60% 52%); }
}

/* Tumble in — spins and drops into place with a bounce */
[data-transition="tumble"] .hero-cutout-img[data-active] {
  opacity: 1;
  transform-origin: 58% 60%;
  animation: heroTumble 820ms var(--ease-bounce, cubic-bezier(.34,1.5,.6,1)) both;
}
[data-transition="tumble"] .hero-cutout-img[data-prev] {
  opacity: 0; transition: opacity 340ms ease;
}
@keyframes heroTumble {
  0%   { opacity: 0; transform: rotate(-18deg) scale(.7) translateY(26px); }
  100% { opacity: 1; transform: rotate(0) scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dog-rotator .hero-cutout-img {
    transition: none !important;
    animation: none !important;
  }
  .hero-dog-rotator .hero-cutout-img[data-active] {
    opacity: 1; transform: none; clip-path: none;
  }
}

/* Hearts doodle cluster, top-right of the hero (per moodboard) */
.hero-hearts {
  position: absolute;
  top: 40px;
  right: 4%;
  z-index: 5;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--hot-pink);
  pointer-events: none;
}
body:not(.mood-doodles) .hero-hearts { display: none; }
.hero-hearts svg { display: block; }
.hero-hearts svg:nth-child(1) { width: 30px; transform: rotate(-12deg) translateY(8px); }
.hero-hearts svg:nth-child(2) { width: 42px; transform: rotate(4deg); }
.hero-hearts svg:nth-child(3) { width: 26px; transform: rotate(14deg) translateY(4px); }

/* ------------------------------------------------------------
   Hero doodle stickers — approved brand doodle PNGs scattered
   over the cutout hero. Sparse, tilted, layered above the photo
   but below the copy. Always on (not gated by a toggle).
   ------------------------------------------------------------ */
.hero-doodles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-doodle {
  position: absolute;
  display: block;
  height: auto;
  filter: drop-shadow(-4px 5px 7px rgba(26,26,26,0.12));
}
.hd-star-green { top: 7%;  right: 31%; width: 74px;  transform: rotate(-10deg); }
.hd-shine-pink { top: 11%; right: 5%;  width: 124px; transform: rotate(6deg); }
.hd-hearts     { bottom: 21%; right: 41%; width: 86px; transform: rotate(-3deg); }
.hd-star-blue  { bottom: 11%; right: 7%;  width: 56px; transform: rotate(9deg); }

/* Tablet & down — stack: blob photo on top, copy below */
/* Tablet & down — overlay: image as background, text in front */
@media (max-width: 900px) {
  .hero-cutout {
    position: relative;
    display: block;
    min-height: 88vh;
    padding: 36px 24px 40px;
    overflow: hidden;
  }
  .hero-cutout-inner { position: relative; z-index: 3; display: block; }
  .hero-cutout-figure {
    position: absolute;
    right: -16%; bottom: -3%; top: auto; left: auto;
    transform: none;
    width: 155%; height: auto;
    max-width: none;
    margin: 0;
    z-index: 1;
  }
  .hero-cutout-copy { width: auto; max-width: 100%; margin: 0; }
  /* soft lilac veil so copy stays legible over the photo */
  .hero-cutout-copy::before {
    content: "";
    position: absolute;
    inset: -32px -40px -40px -40px;
    background: radial-gradient(120% 80% at 20% 30%, var(--light-pink) 38%, rgba(233,198,224,0.78) 60%, rgba(233,198,224,0) 88%);
    z-index: -1;
    pointer-events: none;
  }
}
@media (max-width: 900px) {
  /* Figure relocates to bottom on tablet — keep doodles to the upper
     corners so they don't collide with the copy veil. */
  .hd-star-green { top: 4%; right: 6%; width: 60px; }
  .hd-shine-pink { top: auto; bottom: 6%; right: 4%; width: 96px; }
  .hd-hearts, .hd-star-blue { display: none; }
}
@media (max-width: 600px) {
  .hero-cutout { min-height: 92vh; padding: 28px 20px 36px; }
  .hero-cutout-figure { width: 178%; right: -22%; }
  .hd-star-green { width: 48px; }
  .hd-shine-pink { width: 76px; }
}

/* ------------------------------------------------------------
   #2 — PUFFY STICKER LETTERING
   Reserved for hero / decorative type only. Gated by body class
   so the eyebrow falls back to the clean pill when off.
   ------------------------------------------------------------ */
body.mood-sticker .hero-cutout-eyebrow {
  background: var(--off-white);
  color: var(--hot-pink);
  font-size: 14px;
  letter-spacing: 0.10em;
  padding: 9px 18px;
  border-width: 3px;
  text-shadow: none;
  box-shadow: 3px 3px 0 var(--ink);
}

/* The puffy 3-D sticker wordmark used for one hero accent word */
.sticker-puffy {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--hot-pink);
  -webkit-text-stroke: 0;
  letter-spacing: -0.01em;
  paint-order: stroke fill;
  -webkit-text-stroke: 7px var(--ink);
  text-stroke: 7px var(--ink);
  text-shadow:
    0 4px 0 var(--ink),
    0 5px 0 var(--ink),
    0 6px 0 var(--ink);
}
/* Only render the puffy treatment when the toggle is on; otherwise
   the same word shows as the normal script accent. */
.hero-cutout-h .script.is-puffy-off { }
body:not(.mood-sticker) .hero-cutout-h .sticker-swap-puffy { display: none; }
body.mood-sticker .hero-cutout-h .sticker-swap-script { display: none; }

.hero-cutout-h .sticker-swap-puffy {
  font-family: var(--font-display);
  font-style: normal;
  text-transform: lowercase;
  color: var(--off-white);
  paint-order: stroke fill;
  -webkit-text-stroke: 6px var(--ink);
  letter-spacing: -0.02em;
  text-shadow: 0 5px 0 var(--ink), 0 6px 0 var(--ink);
  display: inline-block;
  transform: rotate(-2deg);
}

/* ------------------------------------------------------------
   #4 — HAND-DRAWN DOODLE ANNOTATIONS OVER PHOTOS
   Sparse stars / arrows / script captions layered on imagery.
   Hidden unless the toggle is on. Decorative only.
   ------------------------------------------------------------ */
.mood-anno {
  position: absolute;
  z-index: 6;
  display: none;
  pointer-events: none;
  color: var(--ink);
}
body.mood-doodles .mood-anno { display: block; }

.mood-anno svg { display: block; overflow: visible; }
.mood-anno-caption {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}

/* Placement helpers used on the cutout hero figure */
.anno-star-1   { top: -10px;  left: -14px; color: var(--hot-pink); transform: rotate(-8deg); }
.anno-star-2   { bottom: 36px; right: -6px; color: var(--bright-blue); }
.anno-caption-1 {
  top: -26px; right: -8px;
  transform: rotate(5deg);
  color: var(--green);
}
.anno-arrow-1  { top: 6px; right: 60px; color: var(--green); transform: rotate(8deg); }
.anno-hearts-1 { bottom: -8px; left: 24px; color: var(--hot-pink); transform: rotate(-6deg); }

@media (max-width: 600px) {
  .mood-anno-caption { font-size: 18px; }
  .anno-caption-1 { display: none; }
}

/* ------------------------------------------------------------
   PUFFY STICKER WORD — reusable, adopted site-wide.
   Drop `puffy` on an accent word inside any display headline.
   Pink fill + ink outline + soft 3-D shadow; em-based so it
   scales with the headline. Reserve for hero/section accents,
   never body copy.
   ------------------------------------------------------------ */
.puffy {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  display: inline-block;
  color: var(--hot-pink);
  letter-spacing: -0.01em;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.085em var(--ink);
          text-stroke: 0.085em var(--ink);
  text-shadow: 0 0.055em 0 var(--ink), 0 0.07em 0 var(--ink);
  transform: rotate(-1.5deg);
}
/* On dark/colored panels the fill flips to cream so it still pops */
.panel-green .puffy,
.panel-pink .puffy,
.panel-blue .puffy { color: var(--off-white); }
