/* =========================================================
   Sarah Bakes Stuff — styles.css
   Fun, vibrant, Instagram-inspired bakery site
   ========================================================= */

/* ---------- Custom display font: Comicy ---------- */
@font-face {
  font-family: "Comicy";
  src: url("../fonts/Comicy.otf") format("opentype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
/* ---------- Custom display font: Rockin' Record (test) ---------- */
@font-face {
  font-family: "RockinRecord";
  src: url("../fonts/gomarice_rockin_record.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* ============================================
     BRAND PALETTE
     ============================================ */
  --golden-sand:   #e1ce7a;   /* golden sand  */
  --palette-cream: #fbffb9;   /* pale yellow cream */
  --apricot:       #fdd692;   /* apricot cream */
  --blossom:       #f4b6c1;   /* cherry blossom — light pink */
  --dark-pink:     #c44569;   /* dark pink — hero headline */
  --mauve-bark:    #2f1814;   /* dark chocolate brown — hero background */
  --cocoa-dark:    #160b08;   /* darker than mauve-bark — hero swirl */
  --cocoa-light:   #5e433b;   /* lighter chocolate — hero swirl accent */

  /* Core roles */
  --base-pink:     var(--blossom);  /* light pink (section backgrounds) */
  --cherry:        #9e1b32;         /* dark red — KEPT (headlines/accents) */
  --cream:         #fff7f3;         /* soft off-white cream (about bg, text) */
  --hero-bg:       var(--mauve-bark); /* hero panel background */

  /* Legacy token names remapped so existing rules keep working */
  --cherry-pink:   var(--cherry);      /* 2nd dark pink → dark red */
  --strawberry:    var(--cherry);      /* accent → dark red */
  --bubblegum:     var(--base-pink);   /* soft pink → cherry blossom */
  --blush:         var(--base-pink);   /* pale pink → cherry blossom */
  --cream-warm:    var(--cream);       /* warm cream → cream */
  --plum:          #5a2233;   /* dark text on light backgrounds */

  /* Functional accents (kept where they do real work) */
  --leaf:          #6fae6e;   /* accent green (cherry stems) */
  --gold:          var(--apricot);  /* gold/apricot accent */

  --ink:           var(--mauve-bark);   /* default body text → dark chocolate brown */
  --white:         #ffffff;

  /* Type */
  --font-display: "Instrument Serif", "Comicy", Georgia, serif; /* TEST: serif titles */
  --font-script: "Pacifico", cursive;                  /* script accent — KEEP */
  /* everything else uses Fredoka */
  --font-fat:    "Fredoka", system-ui, sans-serif; /* UI / sub-headings */
  --font-body:   "Fredoka", system-ui, sans-serif; /* body copy */

  /* Shape */
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 4px 14px rgba(158, 27, 50, 0.10);
  --shadow:    0 10px 30px rgba(158, 27, 50, 0.14);
  --shadow-lg: 0 20px 50px rgba(158, 27, 50, 0.20);

  --maxw: 1584px;   /* standard content width — 10% narrower than 1760 */
  --wrap-pad: clamp(1.1rem, 4vw, 2rem);   /* side padding used by .wrap */
  /* distance from the viewport's left edge to where .wrap content begins */
  --wrap-gutter: max(var(--wrap-pad), calc((100vw - var(--maxw)) / 2 + var(--wrap-pad)));
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 101.25%;  /* ~16.2px base — scaled down ~10% from 112.5% */
  overflow-x: hidden;  /* belt-and-braces: no horizontal page scroll */
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ---------- Grain / noise overlay (whole site) ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.22;
  /* SVG fractal-noise texture, base64-encoded so the filter ref renders reliably */
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPSczJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
  background-size: 200px 200px;
  background-repeat: repeat;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .noise-overlay { /* static grain is fine; nothing to disable */ }
}

/* Per-image grain — adds the same texture ON the image (everything
   except the hero photo, which already has grain baked in). */
.noisy { position: relative; }
.noisy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPSczJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
  background-size: 200px 200px;
  border-radius: inherit;
}

a { color: inherit; text-decoration: none; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;          /* Instrument Serif is a single 400 weight */
  line-height: 0.82;         /* tight leading for multi-line headlines */
  margin: 0 0 .4em;
  letter-spacing: .5px;
  text-transform: uppercase; /* Instrument Serif test — all caps */
}
h3 { font-family: var(--font-fat); line-height: 1.05; margin: 0 0 .4em; }

/* bold body text uses the dark brown standard colour */
strong, b { color: var(--ink); font-weight: 600; }

/* ---------- Reusable bits ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

.eyebrow {
  font-family: var(--font-script);
  color: var(--base-pink);   /* consistent pink eyebrow on white/cream sections */
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: .3rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  position: relative;
}

.section__title {
  font-size: clamp(3.2rem, 8.5vw, 6rem);
  color: var(--cherry);
  letter-spacing: .5px;
}

.section__lead {
  max-width: 46ch;
  font-size: 1.18rem;
  color: var(--ink);
  opacity: .85;
}

.center { text-align: center; }
.center .section__lead { margin-inline: auto; }

/* Buttons */
.btn {
  --btn-bg: var(--cherry);
  font-family: var(--font-fat);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--btn-bg);
  border: none;
  padding: .85rem 1.6rem;
  border-radius: 14px;                /* rounded square edges */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover {
  background: var(--strawberry);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.btn:active { transform: translateY(-1px); }

.btn--ghost {
  --btn-bg: transparent;
  color: var(--cherry);
  box-shadow: inset 0 0 0 2.5px var(--cherry);
}
.btn--ghost:hover { color: var(--white); background: var(--cherry); box-shadow: inset 0 0 0 2.5px var(--cherry); }

.btn--lg { font-size: 1.2rem; padding: 1rem 2rem; }

/* =========================================================
   NAVBAR — floating white bar, narrower, rounded-square
   ========================================================= */
.nav {
  position: fixed;                 /* float over the hero so it starts at top */
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  padding: clamp(.6rem, 1.3vw, 1rem) clamp(1rem, 4vw, 2rem);
  pointer-events: none;            /* let clicks pass through the gutters */
}
.nav__pill {
  pointer-events: auto;
  width: fit-content;              /* shrink to content so logo + links sit close */
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;                     /* space between logo and the nav links */
  background: var(--white);
  border-radius: 20px;             /* rounded square, not full pill */
  padding: .4rem .5rem .4rem .9rem;
  box-shadow: var(--shadow);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: none;
}
.nav__logo {
  width: 48px; height: 48px;
  object-fit: contain;
  display: block;
  transition: transform .3s ease;
}
.nav__brand:hover .nav__logo { transform: rotate(-8deg) scale(1.06); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-family: var(--font-fat);
  font-weight: 600;
  color: var(--plum);
  font-size: 1.12rem;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--strawberry);
  transition: width .22s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__links .nav__cta { color: var(--white); }
.nav__links .nav__cta::after { display: none; }

.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__links li:not(.nav__cta-li) { display: none; }
  /* restore the original full-width mobile pill (logo left, CTA right) */
  .nav__pill {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================================
   HERO — split side-by-side
   left: cherry color block w/ cream text · right: full-bleed image
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* content row can shrink (minmax 0) so the marquee always fits in the viewport */
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100svh;
  overflow: hidden;
}
/* the marquee spans both columns at the bottom of the hero */
.marquee--hero { grid-column: 1 / -1; }
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;  /* left, image, marquee stacked */
    /* let the hero grow with its content on mobile (marquee can fall below
       the fold) so the fixed nav never overlaps the headline */
    height: auto;
    min-height: 0;
  }
}

/* --- LEFT: dark brown panel w/ white text --- */
.hero__left {
  position: relative;
  background: var(--mauve-bark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;       /* left-align hero content */
  text-align: left;
  /* left padding matches .wrap's gutter so hero content lines up with
     every other section; right padding gives breathing room near the image */
  padding-block: clamp(2rem, 4vw, 3.5rem);
  padding-left: var(--wrap-gutter);
  padding-right: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}
.hero__left > * { position: relative; z-index: 1; }

/* mobile/tablet: top-align hero content + clear the fixed nav (placed AFTER the
   base rule so it wins the cascade over padding-block) */
@media (max-width: 1024px) {
  .hero__left {
    justify-content: center;       /* centre the taller panel's content */
    min-height: 88svh;             /* give the hero more height when stacked */
    padding-top: 8.5rem;           /* still clears the fixed nav */
    padding-bottom: clamp(3rem, 9vw, 5rem);
  }
}

/* decorative spinning swirl behind the hero text — fills the panel */
.hero__swirl {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* scale to the larger panel dimension so it always fills the box */
  width: max(140%, 140vh);
  aspect-ratio: 1;
  opacity: 0.22;
  pointer-events: none;
}
.hero__swirl svg {
  width: 100%;
  height: 100%;
  animation: spinSlow 38s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero__eyebrow {
  font-family: var(--font-script);
  color: var(--base-pink);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  transform: rotate(-3deg);
  margin-bottom: .4rem;
}
.hero h1 {
  font-family: var(--font-display);
  /* scale by the SMALLER of width/height so short screens (e.g. MacBook 13")
     don't blow the stacked headline past the viewport and clip it */
  font-size: clamp(4rem, min(14vw, 17vh), 10rem);
  color: var(--white);      /* white on dark brown */
  line-height: 0.8;         /* tight leading for the stacked headline */
  letter-spacing: 1px;
  margin-bottom: .12em;     /* tighter gap between headline and subhead */
  text-transform: none;     /* Title Case (overrides global uppercase) */
}
.hero__lead {
  max-width: 32ch;
  margin: 0 0 1.8rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--cream);
}
.hero__cta { display: flex; justify-content: flex-start; gap: .8rem; flex-wrap: wrap; }
/* hero CTA pops against the dark pink panel: cream button, cherry text */
.hero__cta .btn {
  --btn-bg: var(--cream);
  color: var(--cherry);
}
.hero__cta .btn:hover { background: var(--white); color: var(--cherry); }


/* --- RIGHT: full-bleed image (hero photo already has grain; left clean) --- */
.hero__right {
  position: relative;
  background: var(--bubblegum);
  min-height: 320px;
  overflow: hidden;
  width: 100%;            /* always span its grid cell fully */
}
.hero__right img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;     /* keep the cake centred in the frame */
}
/* Mask reveal: a rectangle covers the image, then lifts up to reveal it.
   Only covers when JS has tagged <html> with .js — so without JS (or if
   the animation never runs) the image is simply visible, never stuck. */
.js .hero__right::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--hero-bg);
  transform: translateY(0);
  animation: maskLiftUp 1.1s cubic-bezier(.76,0,.24,1) .35s forwards;
}
@keyframes maskLiftUp {
  to { transform: translateY(-100%); }
}
.hero__right .hero__img-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-fat);
  color: var(--cherry);
  padding: 1rem;
}
@media (max-width: 1024px) {
  .hero__right { aspect-ratio: 1 / 1; }   /* square, centre-cropped on mobile */
}

/* =========================================================
   WHAT I DO — tagline + spinning "Always Handcrafted" badge
   ========================================================= */
.whatido {
  background: var(--cream);
  padding-block: clamp(3rem, 7vw, 5rem);
}
/* side-by-side like the hero: headline left, cakes centred in right half */
.whatido__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
@media (max-width: 820px) {
  .whatido__inner { grid-template-columns: 1fr; justify-items: start; gap: 2.5rem; }
}
.whatido__text {
  max-width: 18ch;
}
.whatido__text .eyebrow { margin-bottom: .2rem; }
.whatido h2 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 5.8rem);
  color: var(--cherry);
  line-height: 0.82;
  letter-spacing: .5px;
}
.whatido h2 em {
  font-style: normal;
  color: var(--base-pink);
}

/* single-cake carousel — one large cake at a time, pop-in transition */
.floating-cakes {
  position: relative;
  justify-self: center;
  width: clamp(320px, 42vw, 520px);
  aspect-ratio: 1;
}
@media (max-width: 820px) {
  .floating-cakes { justify-self: center; width: clamp(280px, 80vw, 460px); }
}

/* spinning text wheel behind the cakes */
.cake-wheel {
  position: absolute;
  top: 50%; left: 50%;
  width: 130%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 0;                 /* behind the cakes (cakes are z-index 2) */
  pointer-events: none;
}
.cake-wheel svg {
  width: 100%; height: 100%;
  animation: spinSlow 24s linear infinite;
  transform-origin: 50% 50%;
}
.cake-wheel text {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  fill: var(--cherry);
  opacity: .8;
  text-transform: uppercase;
}

.floating-cakes__item {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 16px 26px rgba(87, 58, 50, 0.3));
  /* hidden by default; pop in when .is-active */
  opacity: 0;
  transform: scale(0.6) rotate(-6deg);
  pointer-events: none;
  transition: opacity .25s ease;
}
.floating-cakes__item.is-active {
  opacity: 1;
  z-index: 2;
  animation: cakePopIn .55s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
.floating-cakes__item img {
  width: 100%;
  height: auto;
  display: block;
}
/* grain texture clipped to each cake's shape (transparent PNG alpha) */
.floating-cakes__item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPSczJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
  background-size: 160px 160px;
  /* clip grain to the cake silhouette using the same PNG as a mask */
  -webkit-mask: var(--cake-mask) center / contain no-repeat;
  mask: var(--cake-mask) center / contain no-repeat;
}
.floating-cakes__item:nth-of-type(1) { --cake-mask: url("assets/img/Cake 1.png"); }
.floating-cakes__item:nth-of-type(2) { --cake-mask: url("assets/img/Cake 2.png"); }
.floating-cakes__item:nth-of-type(3) { --cake-mask: url("assets/img/Cake 3.png"); }
.floating-cakes__item:nth-of-type(4) { --cake-mask: url("assets/img/Cake 4.png"); }
.floating-cakes__item:nth-of-type(5) { --cake-mask: url("assets/img/Cake 5.png"); }
.floating-cakes__item:nth-of-type(6) { --cake-mask: url("assets/img/Cake 6.png"); }
.floating-cakes__item:nth-of-type(7) { --cake-mask: url("assets/img/Cake 7.png"); }
.floating-cakes__item:nth-of-type(8) { --cake-mask: url("assets/img/Cake 8.png"); }
.floating-cakes__item:nth-of-type(9) { --cake-mask: url("assets/img/Cake 9.png"); }

@keyframes cakePopIn {
  0%   { opacity: 0; transform: scale(0.6) rotate(-6deg); }
  60%  { opacity: 1; transform: scale(1.08) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* =========================================================
   ABOUT — centred photo with sticky notes pasted around it
   ========================================================= */
.about__board {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  min-height: 660px;
  display: grid;
  place-items: center;
}

/* polaroid-style framed photo, centred on the board */
.about__photo {
  background: var(--white);
  padding: 16px 16px 56px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  transition: transform .3s ease;
}
.about__photo:hover { transform: rotate(-1deg) scale(1.02); }
.about__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

/* sticky notes */
.about__notes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sticky-note {
  position: absolute;
  width: clamp(190px, 17vw, 230px);
  padding: 1.1rem 1.1rem 1.2rem;
  background: var(--base-pink);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 4px 8px 16px rgba(80, 40, 30, 0.18);
  z-index: 3;
  /* default hidden state — "pasted" in by JS adding .is-stuck */
  opacity: 0;
  transform: rotate(var(--rot, -3deg)) scale(.7);
  transition: opacity .4s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: calc(var(--i) * .18s);
}
.sticky-note b { color: var(--cherry); }
/* a piece of "tape" at the top of each note */
.sticky-note::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 60px; height: 22px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.about__board.notes-in .sticky-note {
  opacity: 1;
  transform: rotate(var(--rot, -3deg)) scale(1);
}

/* alternating sticky-note colours + rotations + positions around the photo
   (3 notes: top-left, mid-right, bottom-left) */
/* four notes around the photo, all in shades of pink */
.sticky-note:nth-child(1) { --rot: -5deg; top: 4%;     left: 12%;  background: #f6b8c5; }
.sticky-note:nth-child(2) { --rot:  5deg; top: 8%;     right: 11%; background: #f4cdd6; }
.sticky-note:nth-child(3) { --rot:  4deg; bottom: 5%;  left: 14%;  background: #ef9fb1; }
.sticky-note:nth-child(4) { --rot: -4deg; bottom: 8%;  right: 12%; background: #f8d6dd; }

/* mobile: stack the notes below the photo in a simple flow */
@media (max-width: 880px) {
  .about__board { display: block; min-height: 0; }
  .about__photo { margin: 0 auto; }
  .about__notes {
    display: grid;
    gap: 1.4rem 1rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 2.5rem;
  }
  .sticky-note {
    position: static;
    width: auto;
  }
}
@media (max-width: 520px) {
  .about__notes { grid-template-columns: 1fr; }
}

/* =========================================================
   INSTAGRAM REPOST CARDS (wedding cakes) — side by side w/ fan
   ========================================================= */
.weddings { background: var(--cream); }

.weddings__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
@media (max-width: 900px) {
  .weddings__grid { grid-template-columns: 1fr; gap: 3rem; }
}

.weddings__copy .section__lead { margin-bottom: 1rem; }
.weddings__copy .section__lead strong { color: var(--ink); font-weight: 600; }
.weddings__copy .btn { margin-top: .6rem; }

/* fanned-out stack of Instagram posts */
.repost-fan {
  position: relative;
  height: clamp(400px, 44vw, 600px);
}
@media (max-width: 900px) {
  .repost-fan { height: clamp(360px, 78vw, 500px); margin-inline: auto; max-width: 520px; }
}

.repost {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.repost:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* each fan card is absolutely placed + rotated like a hand of cards */
.repost--fan {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(210px, 22vw, 290px);
  box-shadow: var(--shadow-lg);
}
.repost--fan-1 { transform: translate(-50%, -50%) rotate(-9deg) translateX(-72%); z-index: 1; }
.repost--fan-2 { transform: translate(-50%, -50%) rotate(2deg)  translateY(-4%);  z-index: 3; }
.repost--fan-3 { transform: translate(-50%, -50%) rotate(11deg) translateX(72%);  z-index: 2; }

/* spread the fan a little wider when hovered, and lift the hovered card */
.repost-fan:hover .repost--fan-1 { transform: translate(-50%, -50%) rotate(-12deg) translateX(-86%); }
.repost-fan:hover .repost--fan-3 { transform: translate(-50%, -50%) rotate(14deg)  translateX(86%); }
.repost--fan:hover { z-index: 4; }
.repost--fan-1:hover { transform: translate(-50%, -50%) rotate(-4deg) translateX(-80%) scale(1.06); }
.repost--fan-2:hover { transform: translate(-50%, -50%) rotate(0deg)  translateY(-8%)  scale(1.06); }
.repost--fan-3:hover { transform: translate(-50%, -50%) rotate(6deg)  translateX(80%)  scale(1.06); }

/* MOBILE: swap the fan for a swipeable scroll-snap carousel */
@media (max-width: 900px) {
  .repost-fan {
    height: auto;
    max-width: 100%;
    margin-inline: 0;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;             /* hide scrollbar (Firefox) */
    padding: .5rem .25rem 1rem;
    /* a little side padding so the first/last card peek nicely */
    scroll-padding-inline: 1rem;
  }
  .repost-fan::-webkit-scrollbar { display: none; }   /* hide scrollbar (WebKit) */

  /* each card becomes a normal swipe item — no absolute/rotate/translate */
  .repost--fan,
  .repost--fan-1,
  .repost--fan-2,
  .repost--fan-3 {
    position: static;
    transform: none;
    flex: 0 0 78%;                     /* card width; next card peeks at the edge */
    max-width: 320px;
    scroll-snap-align: center;
    box-shadow: none;                  /* flat cards in the mobile carousel */
  }
  .repost { box-shadow: none; }
  /* disable the hover/fan transforms on touch */
  .repost-fan:hover .repost--fan-1,
  .repost-fan:hover .repost--fan-3,
  .repost--fan-1:hover,
  .repost--fan-2:hover,
  .repost--fan-3:hover { transform: none; }
}
.repost__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
}
.repost__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
  flex: none;
  border: 2px solid var(--base-pink);
}
.repost__user { font-weight: 600; font-size: .85rem; color: var(--ink); }
.repost__mediawrap { display: block; line-height: 0; }
.repost__media {
  width: 100%;
  aspect-ratio: 4 / 4.2;        /* elongated a bit (taller cards) */
  object-fit: cover;
  background: var(--blush);
}
.repost__media--placeholder {
  display: grid; place-items: center;
  color: var(--strawberry);
  font-family: var(--font-fat);
  text-align: center;
  padding: 1rem;
}
.repost__caption {
  padding: .5rem .7rem .7rem;
  font-size: .82rem;
  line-height: 1.35;
}
.repost__caption b { color: var(--ink); }
.repost__caption .muted {
  color: var(--ink);
  opacity: .85;
  /* clamp to 2 lines so the card stays compact */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   REVIEWS — animated chat bubbles
   ========================================================= */
.reviews { background: var(--cream); overflow: hidden; }

.chat-stage {
  position: relative;
  max-width: 680px;
  margin: 2.6rem auto 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .9rem;
  /* padding gives box-shadows room to breathe without clipping */
  padding: 1rem 1.5rem 1rem;
}

/* a single chat row */
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: .6rem;
}
.chat-row.right { flex-direction: row-reverse; }

/* smooth entry: the new row grows its space so rows above slide up
   gradually instead of jumping when a typing indicator appears */
.chat-row.is-entering {
  /* no overflow:hidden — keeping it clear lets box-shadows show immediately */
  animation: chatRowEnter .5s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes chatRowEnter {
  from { opacity: 0; transform: translateY(14px); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: translateY(0); }
}


.chat-ava {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--base-pink);
  display: grid; place-items: center;
  font-size: 1.2rem;
  flex: none;
  box-shadow: var(--shadow-sm);
}

/* typing indicator (three dots) */
.typing {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: .8rem 1rem;
  display: inline-flex;
  gap: .3rem;
  box-shadow: var(--shadow-sm);
}
.typing span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bubblegum);
  animation: blink 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

/* the actual review bubble */
.bubble {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: .85rem 1.1rem;
  border-radius: 22px;
  max-width: 78%;
  box-shadow: var(--shadow);
  font-size: 1rem;
}
.bubble.right {
  background: var(--white);
  color: var(--ink);
}
.bubble__name {
  display: block;
  font-family: var(--font-fat);
  font-weight: 600;
  font-size: .82rem;
  margin-bottom: .15rem;
  opacity: .9;
}
.bubble__stars { font-size: .9rem; letter-spacing: 1px; margin-top: .25rem; }

/* animation classes toggled by JS */
.is-typing { animation: popIn .25s ease forwards; }
.is-float {
  animation: floatUpFade 4.5s ease-in forwards;
}

/* =========================================================
   PRICE LIST
   ========================================================= */
.prices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--bubblegum);
  transition: transform .2s ease;
}
.price-card:hover { transform: translateY(-5px); }
.price-card h3 { color: var(--cherry); font-size: 1.3rem; }
.price-card .price {
  font-family: var(--font-fat);
  font-weight: 600;
  font-size: 2rem;
  color: var(--strawberry);
}
.price-card ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.price-card li { padding: .25rem 0; border-bottom: 1px dashed var(--blush); }
.price-card li:last-child { border-bottom: none; }
.prices__note { text-align: center; margin-top: 1.6rem; font-style: italic; color: var(--plum); }

/* =========================================================
   POLICIES + FORM
   ========================================================= */
.order { background: var(--base-pink); }
/* on the pink order bg, the eyebrow uses white (like the hero) so it stays legible */
.order .eyebrow { color: var(--white); }
/* centred single-column form wrapper (multi-step) */
.cake-form-wrap { max-width: 760px; margin-inline: auto; }

.policies {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.policies h3 {
  color: var(--cherry);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-top: 1.4rem;
}
.policies h3:first-of-type { margin-top: 0; }
.policies ul { padding-left: 1.1rem; margin: .4rem 0 0; }
.policies li { margin-bottom: .6rem; font-size: .96rem; }
.policies strong { color: var(--ink); }

/* the form — stylized card */
.cake-form {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--base-pink);
  overflow: hidden;
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-fat);
  font-weight: 600;
  color: var(--plum);
  margin-bottom: .35rem;
  font-size: .98rem;
}
.field .req { color: var(--strawberry); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: .75rem .9rem;
  border: 2px solid var(--blush);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--strawberry);
  box-shadow: 0 0 0 4px rgba(232, 93, 117, 0.15);
}

/* ---- flatpickr date-picker theming (cherry/pink) ---- */
.flatpickr-input.input + .flatpickr-input,   /* alt input matches field inputs */
input.flatpickr-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: .75rem .9rem;
  border: 2px solid var(--blush);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.flatpickr-calendar { font-family: var(--font-body); box-shadow: var(--shadow-lg); }
.flatpickr-day.selected,
.flatpickr-day.selected:hover { background: var(--cherry); border-color: var(--cherry); }
.flatpickr-day:hover { background: var(--base-pink); border-color: var(--base-pink); }
.flatpickr-day.today { border-color: var(--cherry); }
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays { color: var(--cherry); fill: var(--cherry); }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(58, 37, 48, .25);
  text-decoration: line-through;   /* blocked/unavailable dates clearly struck out */
  background: transparent;
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px){ .field-row { grid-template-columns: 1fr; } }

/* helper note under a field */
.field__note {
  margin: .4rem 0 0;
  font-size: .85rem;
  color: var(--plum);
  opacity: .8;
}
.field__note strong { color: var(--ink); }

/* legend for radio groups (styled like a field label) */
.field__legend {
  display: block;
  font-family: var(--font-fat);
  font-weight: 600;
  color: var(--plum);
  margin-bottom: .5rem;
  font-size: .98rem;
}

/* radio options */
.radio {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-bottom: .5rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
}
.radio input {
  width: auto;          /* override .field input width:100% */
  margin-top: .2rem;
  flex: none;
  accent-color: var(--strawberry);
}

/* file input — softer styling than the boxed inputs */
.field input[type="file"] {
  padding: .6rem .9rem;
  background: var(--blush);
  cursor: pointer;
  font-family: var(--font-body);
}

.optional { color: var(--plum); opacity: .7; font-weight: 500; font-size: .85em; }

/* ---------- Button selectors (cake type, fulfilment) ---------- */
/* native [hidden] must win over display:grid/flex/block set elsewhere */
[hidden] { display: none !important; }

.choice-grid { display: grid; gap: .8rem; }
.choice-grid--cakes  { grid-template-columns: repeat(2, 1fr); }
.choice-grid--fulfil { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) {
  .choice-grid--cakes { grid-template-columns: 1fr 1fr; }
}

.choice-card {
  position: relative;
  display: block;            /* left-aligned, like the flavour cards */
  text-align: left;
  padding: .9rem 1rem;
  border: 2px solid var(--blush);
  border-radius: var(--radius-sm);
  background: var(--cream);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.choice-card:hover { box-shadow: var(--shadow-sm); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
/* icon sits above the text on the left, no background tile */
.choice-card__media {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: .4rem;
}
.choice-card__title { display: block; font-family: var(--font-fat); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.choice-card__meta { display: block; font-size: .82rem; color: var(--plum); opacity: .85; }
.choice-card__link {
  color: var(--cherry);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  position: relative;
  z-index: 1;                /* sit above the label so it's directly clickable */
}
.choice-card__link:hover { color: var(--base-pink); }
.choice-card__price {
  display: block;
  font-family: var(--font-fat);
  font-weight: 700;
  color: var(--cherry);
  font-size: 1.05rem;
  margin-top: .2rem;
}
/* cake-option photos sit at the top of the card */
.choice-grid--cakes .choice-card__media:has(img) {
  margin: -.9rem -1rem .6rem;        /* bleed to the card edges */
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  background: var(--cream);          /* match the card box colour */
}
.choice-grid--cakes .choice-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;               /* show whole cake (transparent cutouts) */
}
/* Custom card: styled placeholder so it reads "big" like the image cards */
.choice-card__media--placeholder {
  margin: -.9rem -1rem .6rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    -45deg, var(--blush), var(--blush) 12px, var(--cream) 12px, var(--cream) 24px
  );
  color: var(--cherry);
  font-family: var(--font-fat);
  font-weight: 600;
  font-size: 1rem;
}
/* Small cards: compact, no media area */
.choice-card--small {
  /* fixed, equal height for all base-cake options */
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.choice-card--small .choice-card__title { font-size: .98rem; }
/* selected state */
.choice-card:has(input:checked) {
  border-color: var(--cherry);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(158, 27, 50, 0.12);
}

/* ---------- Size cards (compact selectable buttons) ---------- */
.choice-grid--sizes {
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
@media (max-width: 520px) { .choice-grid--sizes { grid-template-columns: repeat(2, 1fr); } }
.size-card {
  position: relative;
  display: block;
  text-align: center;
  padding: .7rem .6rem;
  border: 2px solid var(--blush);
  border-radius: var(--radius-sm);
  background: var(--cream);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.size-card:hover { box-shadow: var(--shadow-sm); }
.size-card input { position: absolute; opacity: 0; pointer-events: none; }
.size-card__title {
  display: block;
  font-family: var(--font-fat);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}
.size-card__meta { display: block; font-size: .76rem; color: var(--plum); opacity: .85; margin-top: .15rem; }
.size-card:has(input:checked) {
  border-color: var(--cherry);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(158, 27, 50, 0.12);
}

/* ---------- Flavour cards (selectable list) ---------- */
.flavour-group__label {
  font-family: var(--font-fat);
  font-weight: 600;
  color: var(--cherry);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .82rem;
  margin: 1.1rem 0 .5rem;
}
.flavour-group__sub { text-transform: none; letter-spacing: 0; color: var(--plum); opacity: .75; font-weight: 500; }
.choice-grid--flavours { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .choice-grid--flavours { grid-template-columns: 1fr; } }

.flavour-card {
  position: relative;
  display: block;
  padding: .8rem .9rem;
  border: 2px solid var(--blush);
  border-radius: var(--radius-sm);
  background: var(--cream);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.flavour-card:hover { box-shadow: var(--shadow-sm); }
.flavour-card input { position: absolute; opacity: 0; pointer-events: none; }
.flavour-card__name {
  display: block;
  font-family: var(--font-fat);
  font-weight: 600;
  color: var(--ink);
  font-size: .98rem;
  margin-bottom: .15rem;
}
.flavour-card__desc { display: block; font-size: .82rem; color: var(--plum); opacity: .85; line-height: 1.35; }
.flavour-card__add { color: var(--cherry); font-weight: 700; }
.flavour-card__pop { color: var(--base-pink); -webkit-text-fill-color: var(--base-pink); }
.flavour-card:has(input:checked) {
  border-color: var(--cherry);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(158, 27, 50, 0.12);
}

.policies-intro {
  font-family: var(--font-fat);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1rem;
}

.consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  background: var(--blush);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-size: .92rem;
  margin-bottom: 1.2rem;
}
.consent input { width: auto; margin-top: .25rem; flex: none; }

.form-success {
  display: none;
  background: var(--leaf);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  font-family: var(--font-fat);
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-success.show { display: block; animation: popIn .3s ease; }
.form-success--error { background: var(--cherry); }

/* once submitted, hide the step indicator + the form, leaving the success note */
.cake-form.is-submitted #formSteps,
.cake-form.is-submitted #cakeForm { display: none; }
.cake-form.is-submitted .form-success {
  margin-bottom: 0;
  font-size: 1.15rem;
  padding: 2.2rem 1.6rem;
}

/* ---------- Multiple inspiration-photo uploads ---------- */
.upload-row { margin-bottom: .6rem; }
.upload-input {
  width: 100%;
  font-size: .95rem;
  color: var(--ink);
}
.upload-add {
  margin-top: .2rem;
  font-size: .92rem;
  padding: .5rem 1rem;
}

/* ---------- Multi-step: progress indicator ---------- */
.form-steps {
  list-style: none;
  display: flex;
  gap: .4rem;
  margin: 0 0 1.6rem;
  padding: 0;
  counter-reset: step;
}
.form-steps__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-fat);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  opacity: .5;
  transition: opacity .25s ease;
}
.form-steps__item span {
  width: 30px; height: 30px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--base-pink);
  color: var(--cherry);
  font-weight: 700;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.form-steps__item.is-active { opacity: 1; }
.form-steps__item.is-active span {
  background: var(--cherry);
  color: var(--white);
  transform: scale(1.12);
}
.form-steps__item.is-done { opacity: .9; }
.form-steps__item.is-done span { background: var(--leaf); color: var(--white); }
.form-steps__item.is-done span::after { content: "✓"; }
.form-steps__item.is-done span { font-size: 0; }
.form-steps__item.is-done span::after { font-size: 1rem; }
@media (max-width: 560px) {
  /* on mobile show just the numbered dots, hide step labels */
  .form-steps__item { font-size: 0; gap: 0; justify-content: center; }
  .form-steps__item span { font-size: .95rem; }
  .form-steps__item.is-done span::after { font-size: 1rem; }
}

/* ---------- Multi-step: panels ---------- */
.form-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step.is-active { display: block; animation: stepIn .35s ease; }
.form-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cherry);
  margin-bottom: 1.1rem;
  padding: 0;
  text-transform: none;      /* form stays sentence case */
  letter-spacing: .3px;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Multi-step: nav buttons row ---------- */
.form-nav {
  display: flex;
  gap: .8rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}
.form-nav .form-next,
.form-nav .btn[type="submit"] { margin-left: auto; }
.form-nav .form-back { --btn-bg: transparent; }

/* ---------- Step 3: policies box ---------- */
.policies-box {
  background: var(--cream);
  border: 2px dashed var(--base-pink);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.2rem;
  max-height: 280px;
  overflow-y: auto;
}
.policies-box h3 {
  color: var(--cherry);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .95rem;
  margin: 1rem 0 .3rem;
}
.policies-box h3:first-child { margin-top: 0; }
.policies-box ul { padding-left: 1.1rem; margin: 0; }
.policies-box li { margin-bottom: .5rem; font-size: .92rem; }
.policies-box strong { color: var(--ink); }

/* ---------- Step 3: "I confirm" checkbox ---------- */
.confirm-check {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--base-pink);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-family: var(--font-fat);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cherry);
  cursor: pointer;
  transition: transform .15s ease;
}
.confirm-check:hover { transform: translateY(-2px); }
.confirm-check input {
  width: 24px; height: 24px;
  flex: none;
  accent-color: var(--cherry);
  cursor: pointer;
}

/* =========================================================
   FOOTER — sticker-bombed, bold, with giant cut-off wordmark
   ========================================================= */
/* =========================================================
   MARQUEE — scrolling occasions strip (light pink bg, cherry text)
   ========================================================= */
.marquee {
  background: var(--base-pink);
  color: var(--mauve-bark);
  overflow: hidden;
  padding: clamp(.65rem, 1.5vw, 1rem) 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  width: max-content;
  animation: marqueeScroll 48s linear infinite;
}
.marquee__group {
  display: inline-flex;
  align-items: center;
}
.marquee__group > span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  letter-spacing: .5px;
  padding: 0 clamp(.5rem, 1.3vw, 1rem);
  text-transform: none;
}
.marquee__heart {
  color: var(--cherry);
  -webkit-text-fill-color: var(--cherry);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* one full group = seamless loop */
}

.footer {
  position: relative;
  background: var(--mauve-bark);
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem 0;
  overflow: hidden;
}
.footer__content { position: relative; z-index: 2; }
.footer a { color: var(--base-pink); font-weight: 400; }

.footer__social { display: flex; gap: 1rem; justify-content: center; margin: 0 0 1rem; }
.footer__social a {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--base-pink);
  color: var(--mauve-bark);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s ease;
}
.footer__social a:hover { transform: translateY(-4px) scale(1.08) rotate(-6deg); background: var(--white); color: var(--mauve-bark); }
.footer small { opacity: .8; display: block; margin-bottom: .6rem; }
.footer__credit {
  display: block;
  font-size: .9rem;
  opacity: .85;
  margin-bottom: 1.5rem;
}
.footer__credit a {
  border-bottom: 2px solid var(--base-pink);
  transition: color .18s ease, border-color .18s ease;
}
.footer__credit a:hover { color: var(--white); border-color: var(--white); }

/* big wordmark — spans the full footer width, bottom slightly cut off */
.footer__bigmark {
  position: relative;
  z-index: 2;
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  text-transform: none;    /* Title Case (HTML text controls casing) */
  /* ~14.2vw sizes "Sarah Bakes Stuff" to fill the full viewport width */
  font-size: 14.2vw;
  line-height: .9;
  letter-spacing: 1px;
  white-space: nowrap;
  text-align: center;
  user-select: none;
  /* pull the bottom below the footer edge so it gets clipped a little */
  margin-bottom: -0.16em;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Split-type mask reveal (headlines) ---------- */
/* keep each word together (no wrapping mid-word) */
/* word wrapper — also clips so nothing leaks above the line */
.split-word {
  display: inline-block;
  white-space: nowrap;
  vertical-align: bottom;
  overflow: hidden;
  /* extra top + bottom padding so ascenders/descenders are fully masked
     before the reveal; negative margins cancel it so lines stay tight.
     line-height stays tight (0.8) so multi-line headlines don't open up —
     the padding (not line-height) provides the clip room. */
  padding-top: 0.12em;
  margin-top: -0.12em;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  line-height: 0.78;
}
/* each letter mask inside the word */
.split-char {
  display: inline-block;
  vertical-align: bottom;
}
.split-word__inner {
  display: inline-block;
  transform: translateY(130%);   /* fully below the clip box when hidden */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  line-height: 0.8;
}
.split-in .split-word__inner { transform: translateY(0); }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-8deg); }
  75%      { transform: rotate(8deg); }
}
@keyframes blink {
  0%, 80%, 100% { transform: scale(0.7); opacity: .5; }
  40%           { transform: scale(1);   opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes floatUpFade {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  60%  { opacity: 1; transform: translateY(-40px) scale(1); }
  100% { opacity: 0; transform: translateY(-100px) scale(0.98); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__right::after { transform: translateY(-100%); }
}
