/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --cream:      #FFF9F5;
  --cream-2:    #FFF3EC;
  --ink:        #2E241F;
  --ink-soft:   #6B5C54;
  --blush:      #FFD3C4;
  --peach:      #FFC7A8;
  --lavender:   #DCD1F7;
  --sky:        #CFE7F2;
  --coral:      #FF6E52;
  --coral-dark: #E85436;
  --paper:      #FFFDFB;
  --line:       rgba(46, 36, 31, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "DM Sans", -apple-system, sans-serif;
  --font-hand:    "Caveat", cursive;

  --gap-section: clamp(4rem, 10vw, 9rem);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 60px -20px rgba(46, 36, 31, 0.25);
  --shadow-card: 0 14px 34px -14px rgba(46, 36, 31, 0.22);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 900ms var(--ease-out), color 600ms var(--ease-out);
}

/* The page becomes a little world of its own after the gift opens. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle at 18% 16%, rgba(255,255,255,.8) 0 2px, transparent 3px) 0 0 / 86px 86px,
              radial-gradient(circle at 80% 34%, rgba(255,255,255,.7) 0 1.5px, transparent 2.5px) 0 0 / 121px 121px;
  transition: opacity .8s ease;
}
body.is-celebrating::after { opacity: .7; animation: twinkle 2.4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: 1; transform: scale(1.02); } }

body.theme-cute { --cream: #fff6fb; --cream-2: #ffeaf4; --blush: #ffc9df; --peach: #ffdfc4; --lavender: #ead8ff; --coral: #ee7199; --coral-dark: #cd3f6d; }
body.theme-chaotic { --cream: #fff6de; --cream-2: #fff0bb; --blush: #ffd4ae; --peach: #ffbc75; --lavender: #d6c6ff; --coral: #ff6a3d; --coral-dark: #c83a23; }
body.theme-main { --cream: #f6f0ff; --cream-2: #eee2ff; --blush: #dec9ff; --peach: #ffd1a8; --lavender: #c9b3ff; --coral: #8d5de8; --coral-dark: #6634bd; }
body.theme-sleep { --cream: #eef4ff; --cream-2: #e0ebff; --blush: #c8daf7; --peach: #c5e6ec; --lavender: #c9d1f4; --sky: #bed9f1; --coral: #607ecc; --coral-dark: #415ca6; }
body.theme-celebrate { --cream: #fff4f4; --cream-2: #ffe3e7; --blush: #ffd0d8; --peach: #ffd49c; --coral: #ff597d; --coral-dark: #d9335d; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; }
p { margin: 0; }

a { color: inherit; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection { background: var(--coral); color: var(--paper); }

:focus-visible {
  outline: 2.5px solid var(--coral-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

/* subtle grain texture over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   BALLOON CANVAS (three.js)
   ========================================================================== */
#balloon-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   TOP NAV
   ========================================================================== */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  pointer-events: none;
}

.topnav__mark { pointer-events: auto; }
.topnav__arrow { color: var(--coral-dark); }
.topnav__date { pointer-events: auto; opacity: 0.75; }

.progress {
  position: fixed;
  right: clamp(1rem, 3vw, 2.25rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
  pointer-events: none;
}

.progress__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.18;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), height 0.4s var(--ease-out);
}
.progress__dot.is-active {
  opacity: 1;
  background: var(--coral-dark);
  height: 20px;
  border-radius: 4px;
}

@media (max-width: 700px) {
  .progress { display: none; }
  .topnav__date { display: none; }
}

/* ==========================================================================
   LAYOUT SHELL / SECTIONS
   ========================================================================== */
main { position: relative; z-index: 1; }

.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--gap-section) clamp(1.5rem, 6vw, 4rem);
}

.section__title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  text-align: center;
  max-width: 16ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--coral-dark);
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  display: inline-block;
}

.handwritten {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--ink-soft);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1rem 1.9rem;
  border-radius: 100px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s;
  text-decoration: none;
}
.btn--primary {
  background: var(--coral);
  color: var(--paper);
  box-shadow: 0 14px 30px -10px rgba(232, 84, 54, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--coral-dark); }
.btn--primary .btn__arrow { transition: transform 0.3s var(--ease-out); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.btn--secondary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-card);
}
.btn--secondary:hover { transform: translateY(-2px); background: var(--coral-dark); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding-top: clamp(6rem, 14vh, 9rem);
}

.hero__inner {
  max-width: 780px;
  margin-left: clamp(0px, 4vw, 3rem);
}

.hero__inner > * + * { margin-top: 1.1rem; }

.hero__heading {
  font-size: clamp(3.2rem, 10.5vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}

.hero__name {
  color: var(--coral-dark);
  font-style: italic;
}
.hero__dot { color: var(--ink); }

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 32ch;
  font-weight: 500;
}

.hero #start-surprise { margin-top: 2rem; }

.hero__scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--ink), transparent);
  animation: scrollpulse 2s infinite ease-in-out;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.6; }
}

.js-hero-in { opacity: 0; }

/* ==========================================================================
   SECTION 2 — MESSAGE CARD
   ========================================================================== */
.message { background: transparent; }

.card--paper {
  position: relative;
  max-width: 620px;
  width: 100%;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(46,36,31,0.06);
  backdrop-filter: blur(6px);
}

.card__salutation {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.card__line {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
}
.card__line + .card__line { margin-top: 1.3rem; }

.card__sign {
  margin-top: 1.8rem;
  font-size: 1.9rem;
  color: var(--coral-dark);
}

.card__doodle {
  position: absolute;
  width: 36px;
  height: 32px;
  top: -16px;
  right: -12px;
  fill: var(--coral);
  transform: rotate(12deg);
}

.reveal { opacity: 0; transform: translateY(16px); }

/* ========================================================================== 
   SECTION 3 — __ MEMORY CAROUSEL
   ========================================================================== */
.memories { text-align: center; overflow: hidden; }
.memories__eyebrow { color: var(--coral-dark); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.memory-carousel { width: min(100%, 720px); position: relative; }
.memory-carousel__viewport { position: relative; min-height: 500px; }
.memory-slide { position: absolute; inset: 0; opacity: 0; transform: translateX(38px) rotate(1.5deg); pointer-events: none; transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.memory-slide.is-active { opacity: 1; transform: translateX(0) rotate(0); pointer-events: auto; }
.memory-slide__image { position: relative; isolation: isolate; display: block; width: min(100%, 580px); aspect-ratio: 1.58; margin: 0 auto; border: 10px solid var(--paper); border-bottom-width: 30px; border-radius: 6px; box-shadow: var(--shadow-soft); overflow: visible; transition: transform .7s var(--ease-out), filter .6s ease; }
.memory-slide__image img { display: block; width: 100%; height: 100%; border-radius: 1px; object-fit: cover; object-position: center; }
.memory-slide__image::before, .memory-slide__image::after { content: ""; position: absolute; z-index: -1; inset: 9px -12px -13px 11px; border: 1px solid rgba(46,36,31,.12); border-radius: 6px; background: var(--lavender); box-shadow: 0 10px 20px -18px rgba(46,36,31,.6); transform: rotate(2deg); transition: transform .65s var(--ease-out); }
.memory-slide__image::after { inset: 13px 12px -19px -14px; background: var(--peach); transform: rotate(-2.8deg); }
.memory-slide__image:hover::before { transform: rotate(4deg) translate(7px, 3px); }
.memory-slide__image:hover::after { transform: rotate(-5deg) translate(-7px, 4px); }
.memory-slide__image span { position: absolute; z-index: 2; right: 13px; bottom: 13px; padding: .42rem .7rem; border: 1px solid rgba(255,255,255,.7); border-radius: 99px; background: rgba(46,36,31,.72); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 5px 15px rgba(46,36,31,.18); transition: opacity .25s ease, transform .25s ease; }
.memory-slide.is-active .memory-slide__image { animation: photo-settle .8s var(--ease-out) both; }
@keyframes photo-settle { from { transform: scale(1.04) rotate(-1deg); filter: saturate(.8); } to { transform: scale(1) rotate(0); filter: saturate(1); } }
.memory-slide__tag { font-family: var(--font-hand); font-size: 1.35rem; color: var(--coral-dark); }
.memory-slide__reveal { max-width: 540px; margin: 1.8rem auto 0; padding: 1.35rem 1.5rem; border-top: 1px dashed var(--coral); background: rgba(255,253,251,.62); opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none; transition: opacity .45s ease, transform .55s var(--ease-out); }
.memory-slide.is-open .memory-slide__reveal { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.memory-slide.is-open .memory-slide__image span { opacity: 0; transform: scale(.85); }
.memory-slide.is-open .memory-slide__image { filter: saturate(1.05); }
.memory-slide h3 { font-size: clamp(1.45rem, 3.5vw, 2rem); margin-top: -.15rem; }
.memory-slide p:last-child { color: var(--ink-soft); max-width: 48ch; margin: .55rem auto 0; }
.memory-carousel__controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: .8rem; }
.carousel-arrow { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 1.2rem; transition: transform .25s var(--ease-out), color .25s ease, background .25s ease; }
.carousel-arrow:hover { background: var(--coral); color: var(--paper); transform: translateY(-2px); }
.carousel-dots { display: flex; gap: .55rem; }
.carousel-dot { width: 7px; height: 7px; padding: 0; border-radius: 99px; background: var(--ink); opacity: .25; transition: width .35s var(--ease-out), opacity .35s ease, background .35s ease; }
.carousel-dot.is-active { width: 26px; opacity: 1; background: var(--coral-dark); }
.memories__hint { margin-top: 1.5rem; color: var(--ink-soft); font-size: .86rem; }

/* ==========================================================================
   SECTION 3 — GIFT
   ========================================================================== */
.gift-section { text-align: center; }

.gift-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gift {
  position: relative;
  width: clamp(150px, 24vw, 220px);
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(46,36,31,0.18));
  animation: giftfloat 4.5s ease-in-out infinite;
}
.gift::before, .gift::after {
  content: "✦";
  position: absolute;
  font-size: 1.5rem;
  color: var(--coral-dark);
  opacity: 0;
  transition: opacity .3s ease, transform .5s var(--ease-out);
}
.gift::before { left: -20px; top: 16px; }
.gift::after { right: -22px; bottom: 28px; }
.gift.is-open::before, .gift.is-open::after { opacity: 1; animation: sparkle-pop 1.1s ease-in-out infinite alternate; }
@keyframes sparkle-pop { to { transform: scale(1.45) rotate(18deg); } }
@keyframes giftfloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.gift__svg { width: 100%; height: auto; overflow: visible; }
.gift__lid { fill: var(--peach); }
.gift__base { fill: var(--blush); }
.gift__ribbon-v, .gift__ribbon-h { fill: var(--coral); }
.gift__bow { fill: var(--coral-dark); }

.gift.is-open .gift__lid {
  transform-box: fill-box;
  transform-origin: 30% 100%;
}

.gift__hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.gift.is-open + .gift__hint,
.is-open ~ .gift__hint { opacity: 0; }

.gift-reveal {
  margin-top: 2.5rem;
  max-width: 560px;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}
.gift-reveal.is-shown {
  visibility: visible;
  height: auto;
}

.gift-reveal__big {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--coral-dark);
  line-height: 1.25;
}
.gift-reveal__small {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.gift-reveal__terms {
  margin-top: 1.4rem;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   SECTION 4 — DESERVE CARDS
   ========================================================================== */
.deserve { overflow: visible; }

.deserve__rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 1100px;
}

.deserve-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  max-width: 240px;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
  opacity: 0;
}

.deserve-card:nth-child(odd) { background: var(--cream-2); }
.deserve-card:nth-child(3n) { background: var(--lavender); }

.deserve-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  box-shadow: 0 26px 50px -18px rgba(46,36,31,0.3);
}

.deserve-card::after {
  content: "✦";
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 0.85rem;
  color: var(--coral);
  opacity: 0;
  transition: opacity 0.3s;
}
.deserve-card:hover::after { opacity: 1; }

@media (max-width: 640px) {
  .deserve__rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
    padding: 0.5rem clamp(1.5rem, 6vw, 4rem) 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .deserve-card {
    flex: 0 0 78vw;
    scroll-snap-align: center;
    transform: none !important;
  }
}

/* ==========================================================================
   SECTION 5 — MOOD GENERATOR
   ========================================================================== */
.mood__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  max-width: 640px;
}

.mood-btn {
  padding: 0.9rem 1.5rem;
  border-radius: 100px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.3s var(--ease-out);
}
.mood-btn:hover { border-color: var(--coral); transform: translateY(-2px); }
.mood-btn.is-active {
  background: var(--coral);
  color: var(--paper);
  border-color: var(--coral);
}
.mood-btn[data-mood="cute"].is-active { background: #df5d8b; border-color: #df5d8b; }
.mood-btn[data-mood="chaotic"].is-active { background: #ef6338; border-color: #ef6338; }
.mood-btn[data-mood="main"].is-active { background: #7952ca; border-color: #7952ca; }
.mood-btn[data-mood="sleep"].is-active { background: #5877c1; border-color: #5877c1; }

.mood__output {
  margin-top: 2.5rem;
  max-width: 44ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--ink-soft);
  min-height: 3.4em;
}
.mood-visual {
  position: relative;
  display: grid;
  place-items: end center;
  width: min(100%, 430px);
  height: 0;
  margin-top: .5rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transition: height .55s var(--ease-out), opacity .4s ease, transform .55s var(--ease-out);
}
.mood-visual.is-shown { height: 330px; opacity: 1; transform: translateY(0) scale(1); }
.mood-visual::before { content: ""; position: absolute; inset: 2.5rem .6rem 0; border-radius: 50% 50% 20% 20%; background: radial-gradient(circle at 50% 15%, var(--paper), var(--cream-2)); border: 1px solid var(--line); }
.mood-visual img { position: relative; z-index: 1; display: block; width: min(100%, 340px); max-height: 315px; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(46,36,31,.17)); animation: mood-float 3.6s ease-in-out infinite; }
.mood-visual.is-changing img { animation: none; opacity: 0; transform: translateY(10px) scale(.92); }
.mood-visual__spark { position: absolute; z-index: 2; color: var(--coral-dark); font-size: 1.5rem; animation: sparkle-pop 1.6s ease-in-out infinite alternate; }
.mood-visual__spark--one { top: 3.3rem; left: 1.9rem; }
.mood-visual__spark--two { top: 6rem; right: 1.7rem; font-size: 2rem; animation-delay: -.8s; }
@keyframes mood-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }

/* ==========================================================================
   SECTION 6 — FINALE / CANDLE
   ========================================================================== */
.finale { text-align: center; }

.finale__pre {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--ink-soft);
}
.finale__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0.6rem 0 2.5rem;
}

.candle-stage {
  width: clamp(140px, 22vw, 190px);
}
.candle-svg { width: 100%; height: auto; overflow: visible; }

.candle-shadow { fill: rgba(46,36,31,0.1); }
.candle-cake { fill: var(--blush); }
.candle-cake-top { fill: var(--peach); }
.candle-stick { fill: var(--paper); stroke: var(--line); stroke-width: 2; }

.flame {
  fill: var(--coral);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flicker 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 110, 82, 0.6));
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  50% { transform: scale(0.94, 1.06) rotate(-2deg); }
}

.flame-group.is-out .flame { display: none; }

.candle-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.finale-reveal {
  margin-top: 2.5rem;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}
.finale-reveal.is-shown { visibility: visible; height: auto; }

.finale-reveal__big {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  color: var(--coral-dark);
}
.finale-reveal__lines {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.finale-reveal__sign {
  margin-top: 1.4rem;
  font-size: 1.7rem;
}

/* ==========================================================================
   SECTION 7 — FINAL CTA
   ========================================================================== */
.cta-final { text-align: center; min-height: 60vh; }
.cta-final__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 1.6rem;
}
.cta-final__sub {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.credit {
  margin-top: 3.5rem;
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: .25rem;
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.credit:hover { color: var(--coral-dark); border-color: currentColor; transform: translateY(-2px); }

/* ==========================================================================
   SOUND TOGGLE
   ========================================================================== */
.sound-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink-soft);
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
}
.sound-toggle:hover { opacity: 1; transform: scale(1.06); }
.sound-toggle[aria-pressed="true"] { color: var(--coral-dark); opacity: 1; }

/* ==========================================================================
   CURSOR SPARKLE (desktop only, added via JS)
   ========================================================================== */
.sparkle-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  pointer-events: none;
  z-index: 40;
  opacity: 0.7;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 640px) {
  .hero { padding-top: 5.5rem; align-items: flex-start; }
  .hero__inner { margin-left: 0; }
  .hero__heading { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .section { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-hero-in, .reveal { opacity: 1 !important; transform: none !important; }
  #balloon-canvas { display: none; }
}
