/* =====================================================
   Salty Graham Cracker — single stylesheet
   Mobile-first. Brand palette + typography from brand guide.
   ===================================================== */

:root {
  /* Pinks */
  --pink-700: #d8408a;
  --pink-600: #f75ca8;
  --pink-400: #fad1e6;
  --pink-200: #fbede3;
  --pink-100: #fff6f9;
  --cream:    #fff9f1;

  /* Accents */
  --purple:   #a66cff;
  --plum:     #7b4dff;
  --gold:     #f2c94c;
  --mulberry: #6b2d4f;

  /* Functional */
  --ink:      #3a1a2c;          /* primary text — readable on cream */
  --ink-soft: #6b4858;
  --line:     rgba(107, 45, 79, 0.12);

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 32px;

  --shadow-soft: 0 8px 24px rgba(247, 92, 168, 0.18);
  --shadow-pop:  0 16px 40px rgba(247, 92, 168, 0.28);

  --font-display: "Pacifico", "Brush Script MT", cursive;
  --font-script:  "Great Vibes", "Apple Chancery", cursive;
  --font-body:    "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1140px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Hero pop layout — anchor pops against the centered content's edges,
     not the viewport edges. .hero__content has max-width 780px so its
     half-width is 390px from page center. */
  --hero-content-half: 390px;
  --hero-pop-gap: 14px;
}

/* ----- Reset-ish ----- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Root bg lives on <html> so the parallax layer (fixed, z-index: -1)
     can sit between the root bg and section content. */
  background: var(--pink-100);
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: transparent;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--pink-700); text-decoration: none; }
a:hover, a:focus-visible { color: var(--mulberry); text-decoration: underline; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--mulberry); color: #fff;
  padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 0 var(--gutter);
}

/* ----- Headings ----- */
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; color: var(--ink); }

.script-heading {
  /* Bubble/display style — matches the hero "Sweet, salty," treatment */
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  color: var(--pink-700);
  line-height: 1.05;
  margin-bottom: .45em;
  text-shadow:
    0 2px 0 #fff,
    0 8px 22px rgba(247, 92, 168, .22);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--purple);
  margin: 0 0 .35em;
}

.lede {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
}

.center { text-align: center; }
.muted  { color: var(--ink-soft); }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  min-height: 44px; /* tap target */
}
.btn--primary {
  background: linear-gradient(135deg, var(--pink-600) 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover, .btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
  text-decoration: none;
  color: #fff;
}
.btn--ghost {
  background: #fff;
  color: var(--pink-700);
  border: 2px solid var(--pink-400);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--pink-400);
  color: var(--mulberry);
  text-decoration: none;
}

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 246, 249, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .75rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
  transition: transform .2s ease;
}
.nav__logo:hover { transform: translateY(-1px); text-decoration: none; }
.nav__logo img {
  display: block;
  height: clamp(28px, 4.5vw, 38px);
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(247, 92, 168, .25));
}

.nav__menu {
  display: flex; gap: 1.5rem; align-items: center;
}
.nav__menu a {
  font-weight: 600;
  color: var(--ink);
  padding: .4rem .25rem;
}
.nav__menu a:hover, .nav__menu a:focus-visible {
  color: var(--pink-700);
  text-decoration: none;
}
.nav__cta {
  background: var(--pink-600);
  color: #fff !important;
  padding: .5rem 1.1rem !important;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.nav__cta:hover, .nav__cta:focus-visible {
  background: var(--pink-700);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--mulberry);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

@media (max-width: 767px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--pink-100);
    flex-direction: column;
    gap: 0;
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    align-items: stretch;
  }
  /* Only animate the drawer once the page has finished its first paint
     AND the user isn't currently resizing — avoids the swipe-in glitch
     when the viewport crosses the 768px breakpoint. */
  body.is-loaded:not(.is-resizing) .nav__menu {
    transition: transform .3s ease;
  }
  .nav__menu a {
    padding: 1rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__menu .nav__cta {
    margin-top: 1rem;
    text-align: center;
  }
  .nav.is-open .nav__menu { transform: translateX(0); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--gutter) 5rem;
  text-align: center;
  background:
    /* twinkling sparkle dots, two scales for depth */
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.9) 0 1.4px, transparent 2px),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,.8) 0 1.2px, transparent 2px),
    radial-gradient(circle at 22% 72%, rgba(255,255,255,.85) 0 1.6px, transparent 2px),
    radial-gradient(circle at 88% 82%, rgba(255,255,255,.75) 0 1.2px, transparent 2px),
    radial-gradient(circle at 50% 8%,  rgba(242,201,76,.6) 0 1.4px, transparent 2px),
    radial-gradient(circle at 62% 60%, rgba(242,201,76,.5) 0 1px,   transparent 1.6px),
    /* color washes */
    radial-gradient(ellipse at 20% 10%, rgba(166, 108, 255, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(247, 92, 168, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(255, 246, 249, 0.86) 0%, rgba(250, 209, 230, 0.88) 100%);
  overflow: hidden;
}

.hero__content { position: relative; z-index: 2; max-width: 780px; }

.hero__eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--mulberry);
  margin: 0 0 .5rem;
  line-height: 1;
}

/* Two-line marketing headline:
   - Line 1 in Pacifico (display) — pink, the punchy hook
   - Line 2 in Great Vibes (script) — purple, longer and more emotive */
.hero__title {
  margin: 0 0 .8rem;
  line-height: 1;
  display: block;
}
.hero__title-line,
.hero__title-script {
  display: block;
}
.hero__title-line {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  color: var(--pink-700);
  text-shadow:
    0 2px 0 #fff,
    0 8px 22px rgba(247, 92, 168, .25);
  line-height: 1.05;
}
.hero__title-script {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 9.5vw, 6rem);
  color: var(--purple);
  line-height: .95;
  margin-top: -0.1em;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink);
  margin: 0 auto 1.6rem;
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.hero__pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  margin: 0 0 2rem;
}
.hero__pills li {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pink-700);
  background: #fff;
  padding: .35rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.hero__pills li[aria-hidden="true"] {
  background: transparent;
  color: var(--pink-600);
  box-shadow: none;
  padding: 0;
}

/* Floating decor */
.hero__decor { position: absolute; inset: 0; pointer-events: none; }
.decor {
  position: absolute;
  width: 32px; height: 32px;
  opacity: .85;
  filter: drop-shadow(0 2px 6px rgba(247, 92, 168, .25));
}
.decor--heart    { color: var(--pink-600); }
.decor--butterfly{ color: var(--purple); width: 40px; height: 40px; }
.decor--sparkle  { color: var(--gold); width: 22px; height: 22px; }

.decor--1 { top: 12%;  left: 8%;   animation: float 7s ease-in-out infinite; }
.decor--2 { top: 22%;  right: 10%; animation: float 9s ease-in-out infinite reverse; width: 24px; height: 24px; }
.decor--3 { top: 60%;  left: 6%;   animation: drift 11s ease-in-out infinite; }
.decor--4 { top: 30%;  left: 50%;  animation: twinkle 4s ease-in-out infinite; }
.decor--5 { top: 70%;  right: 15%; animation: twinkle 5s ease-in-out infinite .5s; }
.decor--6 { top: 80%;  left: 20%;  animation: float 8s ease-in-out infinite .7s; width: 26px; height: 26px; }
.decor--7 { top: 14%;  right: 25%; animation: drift 13s ease-in-out infinite reverse; width: 32px; height: 32px; }
.decor--gold-1 { top: 8%;  right: 6%; color: var(--gold); animation: twinkle 6s ease-in-out infinite .3s; width: 28px; height: 28px; }
.decor--b3     { top: 40%; right: 4%; animation: drift 15s ease-in-out infinite 1s; }
.decor--s3     { top: 18%; left: 36%; animation: twinkle 3.5s ease-in-out infinite .8s; }
.decor--s4     { top: 52%; right: 28%; animation: twinkle 4.5s ease-in-out infinite 1.2s; }
.decor--s5     { top: 88%; left: 44%; animation: twinkle 5s ease-in-out infinite .2s; }

@keyframes float {
  0%, 100% { transform: translateY(0)    rotate(-6deg); }
  50%      { transform: translateY(-22px) rotate(6deg); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0)      rotate(0deg);  }
  50%      { transform: translate(20px, -16px) rotate(12deg); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1);   opacity: .7; }
  50%      { transform: scale(1.3); opacity: 1;  }
}

/* Marquee — full-bleed strip between hero and About */
.marquee {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, var(--pink-600), var(--purple), var(--pink-600));
  color: #fff;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  position: relative;
  z-index: 3;
  border-top:    2px solid rgba(255, 255, 255, .35);
  border-bottom: 2px solid rgba(255, 255, 255, .35);
  box-shadow: 0 6px 20px rgba(247, 92, 168, .25);
}
.marquee__track {
  display: flex; gap: 2rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee__track span { padding-right: 2rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}
/* Section backgrounds use slight transparency so the parallax cakesicles
   underneath peek through faintly, like a watermark. */
.section--about {
  background:
    radial-gradient(circle at 90% 10%, rgba(247, 92, 168, .10), transparent 40%),
    rgba(255, 249, 241, 0.86);
}
.section--treats {
  background-color: rgba(255, 246, 249, 0.88);
  background-image: radial-gradient(var(--pink-400) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.section--occasions {
  background: linear-gradient(180deg, rgba(251, 237, 227, 0.88) 0%, rgba(255, 246, 249, 0.86) 100%);
}
.section--contact {
  background: linear-gradient(180deg, rgba(255, 246, 249, 0.86) 0%, rgba(250, 209, 230, 0.82) 100%);
}

/* About */
.about {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.about__photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--pink-400);
}
.about__copy p { margin: 0 0 1rem; }

@media (min-width: 768px) {
  .about { grid-template-columns: 1fr 1.1fr; }
}

/* Treats */
.treats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 0 0 2rem;
}
.treat {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.treat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
}
.treat__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  /* Soft pink wash with a subtle radial highlight for depth — works well
     behind the transparent cake-pop PNGs without competing with them. */
  background:
    radial-gradient(circle at 50% 35%, #fff 0%, var(--pink-200) 60%, var(--pink-400) 100%);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.treat__media img {
  display: block;
  /* Cap by both axes so the WHOLE pop fits with breathing room, regardless
     of each illustration's individual aspect ratio. width/height: auto lets
     the natural ratio drive sizing within those caps. */
  max-width: 72%;
  max-height: 88%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(247, 92, 168, .25));
}
.treat__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pink-700);
  margin: 0 0 .15em;
}
.treat__flavor {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
}

@media (min-width: 600px) { .treats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .treats { grid-template-columns: repeat(3, 1fr); } }

/* Occasions */
.occasions {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
.occasion {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 2px solid transparent;
}
.occasion:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
  border-color: var(--pink-400);
}
.occasion__icon {
  display: block;
  width: clamp(110px, 14vw, 150px);
  height: auto;
  margin: 0 auto 1rem;
  /* Gentle bob on hover-able card */
  transition: transform .35s ease;
}
.occasion:hover .occasion__icon { transform: translateY(-4px) rotate(-2deg); }
.occasion h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--pink-700);
  margin: 0 0 .35em;
}
.occasion p {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
@media (min-width: 600px)  { .occasions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .occasions { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .occasions { grid-template-columns: repeat(5, 1fr); } }

/* Contact */
.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1.1fr; }
}
.contact__details {
  margin: 1.5rem 0;
  display: grid;
  gap: .5rem;
}
.contact__details strong { color: var(--mulberry); margin-right: .25rem; }

.socials {
  display: flex; gap: .75rem;
}
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-700);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.socials a:hover {
  background: var(--pink-700); color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}
.socials svg { width: 22px; height: 22px; }

/* Form */
.form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-pop);
  display: grid;
  gap: 1rem;
}
.form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  opacity: 0;
}
.form__field { display: grid; gap: .35rem; }
.form__field span {
  font-weight: 600;
  font-size: .9rem;
  color: var(--mulberry);
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--pink-400);
  background: var(--pink-100);
  font: inherit;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
  min-height: 44px;
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--pink-600);
  box-shadow: 0 0 0 4px rgba(247, 92, 168, .18);
  background: #fff;
}
.form__field input:invalid:not(:placeholder-shown),
.form__field select:invalid:not(:focus):not([value=""]) {
  border-color: #d8408a;
}
.form__row {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form__submit { justify-self: start; margin-top: .5rem; }
.form__status { margin: 0; font-weight: 600; }
.form__status.is-error   { color: #c2185b; }
.form__status.is-success { color: var(--purple); font-family: var(--font-script); font-size: 1.6rem; line-height: 1; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--mulberry);
  color: #fff;
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer a { color: #fff; }
.footer__brand {
  display: block;
  height: auto;
  width: clamp(220px, 50vw, 320px);
  margin: 0 auto .5rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25));
}
.footer__tag {
  font-family: var(--font-script);
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
  color: #fff;
  opacity: .9;
}
.footer__inner .socials { justify-content: center; margin-bottom: 1.5rem; }
.footer__inner .socials a {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: none;
}
.footer__inner .socials a:hover {
  background: var(--pink-600);
  color: #fff;
}
.footer__copy {
  margin: 0;
  font-size: .85rem;
  opacity: .8;
}

/* =====================================================
   HERO-SCOPED CAKE-POP DECORATIONS
   ===================================================== */
/* Layer sits inside .hero only — bounded by the hero's overflow: hidden, so pops
   are naturally clipped once you scroll past. Two-element structure: the outer
   .pop is positioned + JS-driven for parallax drift; the inner <img> handles the
   smooth CSS bob and per-pop rotation via the --rot custom property. */
.hero-pops {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;            /* above the hero gradient bg, below .hero__content */
}
.pop {
  position: absolute;
  display: block;
  will-change: transform;
}
.pop > img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(var(--rot, 0deg));
  animation: pop-bob 7s ease-in-out infinite;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .18));
}
/* Stagger each pop's bob so they don't move in lock-step */
.pop--2 > img { animation-duration: 8s;   animation-delay: -1.5s; }
.pop--3 > img { animation-duration: 9s;   animation-delay: -2.5s; }
.pop--4 > img { animation-duration: 6.5s; animation-delay: -1s; }
.pop--5 > img { animation-duration: 8.5s; animation-delay: -3s; }
.pop--6 > img { animation-duration: 7.5s; animation-delay: -.5s; }
.pop--7 > img { animation-duration: 7s;   animation-delay: -2s; }
.pop--8 > img { animation-duration: 9.5s; animation-delay: -4s; }
.pop--9 > img { animation-duration: 6s;   animation-delay: -1.2s; }
.pop--10 > img { animation-duration: 5.5s; animation-delay: -.7s; }
.pop--11 > img { animation-duration: 8s;   animation-delay: -3.2s; }
.pop--12 > img { animation-duration: 6.5s; animation-delay: -1.8s; }
.pop--13 > img { animation-duration: 7.5s; animation-delay: -2.7s; }
.pop--14 > img { animation-duration: 5s;   animation-delay: -.3s; }
@keyframes pop-bob {
  0%, 100% { transform: translateY(0)    rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 4deg)); }
}

/* Sizes + positions: edges + corners so they don't overlap the centered content.
   Mix of small / medium / large for parallax depth. Hero is overflow:hidden so a
   little bleed off-edge is fine and creates the floating-in-space feel. */
/* Pops are anchored to the centered content's edges via calc(), not viewport
   edges — so they sit a consistent gap away from the headline regardless of
   viewport width. Each pop also stores its own width in --pw so we can use it
   in the position formula (CSS can't introspect width otherwise).

   - CONTENT ZONE (top 28%-72%): pop's near edge sits HERO-POP-GAP outside the
     content's near edge. Strict — never overlaps text.
   - TOP/BOTTOM BAND (top <25% or >75%): vertically clear of content, so they
     can ride right up against (and slightly over) the content's horizontal
     range — gives that tight framing feel. */

/* CONTENT-ZONE pops — strict edge clearance */
.pop--3 { --pw: clamp(118px, 14vw, 195px); width: var(--pw); top: 54%;
          left:  calc(50% - var(--hero-content-half) - var(--hero-pop-gap) - var(--pw)); }
.pop--6 { --pw: clamp(38px,  4vw,   62px); width: var(--pw); top: 30%;
          left:  calc(50% - var(--hero-content-half) - var(--hero-pop-gap) - var(--pw)); }
.pop--9 { --pw: clamp(58px,  6.5vw, 100px); width: var(--pw); top: 38%;
          right: calc(50% - var(--hero-content-half) - var(--hero-pop-gap) - var(--pw)); }
.pop--4 { --pw: clamp(48px,  5.5vw,  85px); width: var(--pw); top: 64%;
          right: calc(50% - var(--hero-content-half) - var(--hero-pop-gap) - var(--pw)); }

/* TOP-BAND pops — sit closer (and partially overlap content horizontally) */
.pop--1 { --pw: clamp(105px, 13vw, 195px); width: var(--pw); top: 4%;
          left:  calc(50% - var(--hero-content-half) - 90px); }
.pop--7 { --pw: clamp(40px,  4.5vw, 65px); width: var(--pw); top: 14%;
          left:  calc(50% - var(--hero-content-half) + 70px); }
.pop--2 { --pw: clamp(65px,  8vw,  130px); width: var(--pw); top: 8%;
          right: calc(50% - var(--hero-content-half) - 70px); }

/* BOTTOM-BAND pops — sit closer below content */
.pop--8 { --pw: clamp(90px,  11vw, 165px); width: var(--pw); top: 78%;
          right: calc(50% - var(--hero-content-half) - 60px); }
.pop--5 { --pw: clamp(72px,  8.5vw, 130px); width: var(--pw); top: 90%;
          left:  calc(50% - var(--hero-content-half) + 110px); }

/* TINY-EDGE pops — extra small confetti at the outer corners and bleeding
   off-screen. All small (28–55px max). Top-band and bottom-band only, OR
   pinned to true viewport edges if in the content vertical zone. */
.pop--10 { --pw: clamp(28px, 3vw,   45px); width: var(--pw); top:  1%;  right: 14%; }    /* top, near-corner sprinkle */
.pop--11 { --pw: clamp(32px, 3.5vw, 52px); width: var(--pw); top: 18%;  right: -1%; }    /* top-right edge bleed */
.pop--12 { --pw: clamp(30px, 3.2vw, 48px); width: var(--pw); top: 96%;  left:  6%;  }    /* bottom-left far corner */
.pop--13 { --pw: clamp(34px, 3.8vw, 55px); width: var(--pw); top: 92%;  right: 16%; }    /* bottom-right inboard, below content */
.pop--14 { --pw: clamp(28px, 3vw,   42px); width: var(--pw); top:  6%;  left:  28%; }    /* top, scattered inboard above headline */

/* Mobile: keep pops floating but pin them to the edges with mixed sizes so
   they feel scattered and organic. Hide the most crowding ones; the remaining
   ones hug screen corners with varied sizes. CSS bob still runs; JS parallax
   is disabled on mobile in main.js. */
@media (max-width: 768px) {
  .pop--5, .pop--6, .pop--9, .pop--13, .pop--14 { display: none; }
  /* Tighter bleed on mobile so pops feel closer to text rather than
     hidden at the edges. Override the desktop calc rules. */
  .pop--1 { width: 95px;  top: 2%;  left:  -10px; right: auto; }
  .pop--7 { width: 38px;  top: 18%; left:   30%;  right: auto; }
  .pop--2 { width: 52px;  top: 10%; right: -4px;  left: auto; }
  .pop--3 { width: 105px; top: 54%; left:  -14px; right: auto; }
  .pop--4 { width: 44px;  top: 68%; right:  0px;  left: auto; }
  .pop--8 { width: 80px;  top: 84%; right: -10px; left: auto; }
  .pop--10 { width: 24px; top: 1%;  right: 8%;   left: auto; }
  .pop--11 { width: 30px; top: 32%; right: -2px; left: auto; }
  .pop--12 { width: 26px; top: 96%; left:  4%;   right: auto; }
}

/* =====================================================
   HEART-TRAIL DIVIDER
   ===================================================== */
.heart-trail {
  position: relative;
  height: 60px;
  margin: 0 auto;
  max-width: 720px;
  padding: 0 var(--gutter);
  z-index: 2;
}
.heart-trail svg:first-child {
  width: 100%; height: 100%;
  display: block;
}
.heart-trail__heart {
  position: absolute;
  width: 16px; height: 16px;
  color: var(--pink-600);
  filter: drop-shadow(0 2px 4px rgba(247, 92, 168, .3));
}
.heart-trail__heart--1 { top: 10%;  left: 18%; animation: float 5s ease-in-out infinite; }
.heart-trail__heart--2 { top: 60%;  left: 50%; color: var(--gold); animation: float 6s ease-in-out infinite .4s; }
.heart-trail__heart--3 { top: 20%;  left: 78%; color: var(--purple); animation: float 7s ease-in-out infinite .8s; }

/* Contact follow line */
.contact__follow {
  font-family: var(--font-script);
  color: var(--mulberry);
  font-size: 1.5rem;
  margin: 1.5rem 0 .5rem;
  line-height: 1;
}

/* Footer handle */
.footer__handle {
  font-family: var(--font-display);
  color: var(--pink-400);
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
  letter-spacing: .04em;
}

/* =====================================================
   SCROLL REVEAL — set by main.js via .is-revealed
   ===================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-stagger].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-stagger] {
    opacity: 1; transform: none;
  }
  .marquee__track { animation: none; }
  .decor { animation: none !important; }
  .pop, .pop > img { animation: none !important; transform: none !important; }
  .heart-trail__heart { animation: none !important; }
}

/* =====================================================
   FOCUS STYLES
   ===================================================== */
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}
