*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  background-color: #000000;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

html.scroll-locked,
body.scroll-locked {
  overflow: hidden !important;
  height: 100vh !important;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

#wallpaper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background-color: #000000;
  z-index: 1;
}

/* =========================================================================
   FIXED OVERLAYS: PRELOADER & CRIMSON THEATER CURTAINS
   ========================================================================= */
#intro-stage {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.loader-screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  pointer-events: auto;
  background:
    radial-gradient(circle at 50% 45%, rgba(168, 16, 44, 0.24) 0%, rgba(14, 4, 8, 0.94) 48%, #020104 100%);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.75s ease, transform 0.75s ease;
}

.loader-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-orb {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}

.loader-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 58, 92, 0.32) 0%, rgba(255, 200, 120, 0.08) 48%, transparent 72%);
  filter: blur(10px);
  animation: loaderPulse 2.4s ease-in-out infinite;
}

.loader-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.loader-orbit--outer {
  inset: -6px;
  border: 1px dashed rgba(255, 214, 152, 0.32);
  animation: loaderSpin 9s linear infinite;
}

.loader-orbit--inner {
  inset: 22px;
  border: 1px solid rgba(255, 72, 102, 0.26);
  border-top-color: rgba(255, 224, 165, 0.85);
  animation: loaderSpinRev 2.8s linear infinite;
}

.loader-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 12px rgba(255, 54, 86, 0.55));
}

.loader-ring__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4.5;
}

.loader-ring__fill {
  fill: none;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 289.03;
  stroke-dashoffset: 289.03;
  transition: stroke-dashoffset 0.14s linear;
}

.loader-percent {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff8ee;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(255, 196, 130, 0.55);
}

.loader-label {
  color: rgba(255, 232, 218, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
}

.loader-bar {
  width: 140px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.loader-bar__fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3656 0%, #ffe09e 100%);
  transition: width 0.14s linear;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderSpinRev {
  to { transform: rotate(-360deg); }
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* =========================================================================
   STAGE 2: GLASSMORPHISM 6-DIGIT PASSCODE GATE (ABOVE BLURRED CURTAINS)
   ========================================================================= */
.passcode-screen {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: auto;
  background: radial-gradient(circle at 50% 45%, rgba(16, 4, 10, 0.34) 0%, rgba(5, 1, 4, 0.62) 100%);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.75s ease,
    -webkit-backdrop-filter 0.75s ease,
    visibility 0.65s ease;
}

.passcode-screen.is-active {
  opacity: 1;
  visibility: visible;
}

.passcode-screen.is-unlocked {
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  pointer-events: none;
}

.passcode-card {
  position: relative;
  width: min(92vw, 440px);
  padding: clamp(28px, 4.5vh, 42px) clamp(20px, 4vw, 36px) clamp(24px, 4vh, 36px);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 42px rgba(239, 31, 60, 0.18);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.55s ease,
    border-color 0.3s ease;
}

.passcode-screen.is-active .passcode-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.passcode-screen.is-unlocked .passcode-card {
  transform: translateY(-16px) scale(1.04);
  opacity: 0;
}

.passcode-card.is-error {
  animation: passcodeShake 0.44s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.passcode-badge {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffe2ad;
  background: linear-gradient(145deg, rgba(255, 72, 102, 0.25) 0%, rgba(255, 200, 120, 0.14) 100%);
  border: 1px solid rgba(255, 210, 150, 0.35);
  box-shadow: 0 0 24px rgba(255, 68, 98, 0.28);
  transition: transform 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.passcode-badge svg {
  width: 24px;
  height: 24px;
}

.passcode-card.is-success .passcode-badge {
  color: #9bf5c0;
  background: linear-gradient(145deg, rgba(46, 213, 115, 0.28) 0%, rgba(255, 224, 150, 0.16) 100%);
  border-color: rgba(155, 245, 192, 0.55);
  transform: scale(1.1);
}

.passcode-card.is-success .lock-shackle {
  transform: translateY(-2.5px) rotate(-14deg);
  transform-origin: 8px 11px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.passcode-title {
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-bottom: 6px;
}

.passcode-hint {
  padding: 4px 12px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 226, 178, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.passcode-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 2vw, 12px);
}

.passcode-digit {
  width: clamp(40px, 11vw, 52px);
  height: clamp(50px, 13vw, 62px);
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    0 8px 20px rgba(0, 0, 0, 0.32);
  color: #ffffff;
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  text-align: center;
  caret-color: #ffe09e;
  outline: none;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.passcode-digit:focus {
  border-color: rgba(255, 214, 140, 0.85);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(255, 196, 120, 0.32);
}

.passcode-digit.is-filled {
  border-color: rgba(255, 218, 165, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.passcode-digit.is-pop {
  animation: digitPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.passcode-digit.is-error {
  border-color: rgba(255, 78, 104, 0.88);
  background: rgba(239, 31, 60, 0.2);
  box-shadow: 0 0 16px rgba(255, 68, 96, 0.4);
}

.passcode-digit.is-success {
  border-color: rgba(130, 245, 178, 0.85);
  background: rgba(46, 213, 115, 0.22);
  box-shadow: 0 0 20px rgba(130, 245, 178, 0.42);
  transform: translateY(-4px) scale(1.06);
}

.passcode-status {
  min-height: 20px;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s ease;
}

.passcode-status.is-error {
  color: #ff8e9e;
}

.passcode-status.is-success {
  color: #a8f7c8;
}

@keyframes digitPop {
  0% { transform: scale(0.86); }
  55% { transform: translateY(-4px) scale(1.12); }
  100% { transform: translateY(-2px) scale(1); }
}

@keyframes passcodeShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-10px); }
  36% { transform: translateX(9px); }
  54% { transform: translateX(-7px); }
  72% { transform: translateX(5px); }
  90% { transform: translateX(-2px); }
}

.curtain-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  pointer-events: auto;
}

.curtain-screen.is-gone {
  pointer-events: none;
  visibility: hidden;
}

.curtain-valance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 4;
  background: linear-gradient(180deg, rgba(18, 2, 5, 0.88) 0%, rgba(18, 2, 5, 0.35) 60%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.curtain-panel {
  position: absolute;
  top: -2%;
  bottom: -2%;
  width: 50.3%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  background-color: #a90d22;
  background-image:
    linear-gradient(180deg, rgba(12, 0, 3, 0.55) 0%, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 84%, rgba(10, 0, 2, 0.6) 100%),
    repeating-linear-gradient(
      90deg,
      #59040e 0px,
      #8e0a1c 10px,
      #df1a35 22px,
      #f22944 28px,
      #bf1027 38px,
      #54030d 52px
    );
  transition: transform 1.4s cubic-bezier(0.72, 0.02, 0.22, 1);
}

.curtain-panel--left {
  left: 0;
  transform-origin: left center;
  box-shadow: inset -14px 0 26px rgba(0, 0, 0, 0.55);
}

.curtain-panel--right {
  right: 0;
  transform-origin: right center;
  box-shadow: inset 14px 0 26px rgba(0, 0, 0, 0.55);
}

.curtain-center-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  background: rgba(8, 0, 2, 0.72);
  z-index: 3;
  transition: opacity 0.35s ease;
}

.curtain-screen.is-open .curtain-panel--left {
  transform: translate3d(-104%, 0, 0) scaleX(0.92);
}

.curtain-screen.is-open .curtain-panel--right {
  transform: translate3d(104%, 0, 0) scaleX(0.92);
}

.curtain-screen.is-open .curtain-center-seam,
.curtain-screen.is-open .curtain-valance,
.curtain-screen.is-open .curtain-prompt {
  opacity: 0;
}

.curtain-prompt {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(10, 2, 4, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  animation: promptPulse 2.1s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.curtain-prompt__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4764;
  box-shadow: 0 0 10px #ff4764;
}

@keyframes promptPulse {
  0%, 100% { transform: translate3d(-50%, 0, 0); opacity: 0.85; }
  50% { transform: translate3d(-50%, -4px, 0); opacity: 1; }
}

/* =========================================================================
   SCROLLABLE 2-SECTION WRAPPER (LENIS)
   ========================================================================= */
#scroll-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Section 1: Celebration Stage */
.celebration-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000000;
  display: grid;
  place-items: center;
  transition: background 1.2s ease;
}

.celebration-section.is-celebrating {
  background: radial-gradient(circle at 50% 45%, #160e16 0%, #07050a 56%, #000000 100%);
}

#balloons-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

#burn-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

#birthday-center {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Box-free glowing numbers (GPU-composited scale from 0.42 -> 1.0) */
.flip-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 32px);
  opacity: 0;
  transform: scale3d(0.38, 0.38, 1);
  transition:
    opacity 0.55s ease,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.flip-counter.is-visible {
  opacity: 1;
  transform: scale3d(0.42, 0.42, 1);
}

.flip-counter.is-zoomed {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

.flip-counter.is-burned {
  opacity: 0;
  transition: none;
}

.flip-digit {
  position: relative;
  width: clamp(140px, 23vw, 310px);
  height: clamp(200px, 32vw, 430px);
  perspective: 1000px;
  overflow: visible;
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(175px, 29vw, 390px);
  line-height: 1;
  color: #ffffff;
}

.flip-digit--left {
  transform: translate3d(0, 3%, 0) rotate(-3.5deg);
}

.flip-digit--right {
  transform: translate3d(0, -3%, 0) rotate(3deg);
}

.digit-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.85),
    0 0 44px rgba(255, 255, 255, 0.42);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.digit-prev {
  opacity: 0;
  pointer-events: none;
}

.flip-digit.is-flipping .digit-prev {
  animation: digitFlipOut var(--flip-dur, 220ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flip-digit.is-flipping .digit-curr {
  animation: digitFlipIn var(--flip-dur, 220ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes digitFlipOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -28%, 0) rotateX(70deg) scale(0.9);
  }
}

@keyframes digitFlipIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 28%, 0) rotateX(-70deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  }
}

/* Floating "Happy Birthday" + cake & party accents above */
.birthday-message {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4vw 8vh;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition:
    opacity 0.7s ease,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.birthday-message.is-visible {
  opacity: 1;
  transform: translate3d(0, -4vh, 0);
  animation: messageFloat 4.6s 1.05s ease-in-out infinite;
}

@keyframes messageFloat {
  0%, 100% { transform: translate3d(0, -4vh, 0); }
  50% { transform: translate3d(0, -6vh, 0); }
}

.bday-accents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  margin-bottom: clamp(10px, 2vh, 22px);
}

.bday-icon {
  font-size: clamp(38px, 6vw, 76px);
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.35);
  will-change: transform, opacity;
}

.birthday-message.is-visible .bday-icon--popper {
  animation:
    iconFloatIn 0.68s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    iconBob 3.2s 0.82s ease-in-out infinite;
}

.birthday-message.is-visible .bday-icon--cake {
  animation:
    iconFloatIn 0.68s 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    iconBob 3.6s 0.98s ease-in-out infinite;
}

.birthday-message.is-visible .bday-icon--sparkle {
  animation:
    iconFloatIn 0.68s 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    iconBob 3.0s 1.1s ease-in-out infinite;
}

@keyframes iconFloatIn {
  0% { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.25) rotate(-14deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}

@keyframes iconBob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(4deg); }
}

.bday-word {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 14px);
  max-width: 92vw;
  font-family: 'Fredoka', 'Arial Rounded MT Bold', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 7.2vw, 94px);
  line-height: 1.08;
  color: #ffffff;
}

.bday-word--birthday,
.bday-word--jiii {
  margin-top: clamp(4px, 1vh, 12px);
}

.bday-word span {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.45) rotate(var(--rot, 0deg));
  text-shadow:
    0 3px 0 #e2e5f0,
    0 6px 0 #c0c6d8,
    0 10px 20px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
}

.birthday-message.is-visible .bday-word span {
  animation:
    letterPop 0.64s calc(var(--i) * 44ms + 0.16s) cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    letterFloat 3.6s calc(var(--i) * 130ms + 0.85s) ease-in-out infinite;
}

@keyframes letterPop {
  0% {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.35) rotate(calc(var(--rot, 0deg) * 1.5));
  }
  100% {
    opacity: 1;
    transform: translate3d(0, var(--dy, 0px), 0) scale(1) rotate(var(--rot, 0deg));
  }
}

@keyframes letterFloat {
  0%, 100% {
    transform: translate3d(0, var(--dy, 0px), 0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translate3d(0, calc(var(--dy, 0px) - 6px), 0) rotate(calc(var(--rot, 0deg) + 2deg));
  }
}

/* Compact horizontal capsule scroll prompt */
.scroll-prompt {
  position: absolute;
  left: 50%;
  bottom: 7vh;
  transform: translate3d(-50%, 14px, 0);
  z-index: 6;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(10, 6, 12, 0.86);
  color: rgba(255, 255, 255, 0.94);
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.scroll-prompt.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}

.scroll-prompt:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.scroll-prompt__text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-prompt__mouse {
  width: 14px;
  height: 22px;
  border-radius: 9px;
  border: 1.8px solid rgba(255, 255, 255, 0.78);
  display: flex;
  justify-content: center;
  padding-top: 4px;
  flex-shrink: 0;
}

.scroll-prompt__wheel {
  width: 2.2px;
  height: 5px;
  border-radius: 2px;
  background: #ffffff;
  animation: wheelDrop 1.4s ease-in-out infinite;
}

.scroll-prompt__arrow {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.88);
  animation: arrowBob 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes wheelDrop {
  0% { opacity: 1; transform: translateY(0); }
  75% { opacity: 0.2; transform: translateY(5px); }
  100% { opacity: 0; transform: translateY(0); }
}

@keyframes arrowBob {
  0%, 100% { transform: translateY(-1px); opacity: 0.75; }
  50% { transform: translateY(2px); opacity: 1; }
}

/* =========================================================================
   SECTION 2: LIVING ASCII PORTRAIT REVEAL + LEFT-SIDE BIRTHDAY DEDICATION
   ========================================================================= */
.ascii-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: transparent;
  pointer-events: none;
}

.ascii-dedication {
  position: absolute;
  left: clamp(24px, 4.5vw, 72px);
  top: 50%;
  transform: translate3d(0, -44%, 0);
  max-width: clamp(220px, 29vw, 440px);
  opacity: 0;
  transition: opacity 1.1s 0.35s ease, transform 1.1s 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.ascii-dedication.is-visible {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

.ascii-dedication__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 236, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ascii-dedication__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 56px);
  line-height: 1.06;
  color: #f4f7ff;
  text-shadow:
    0 0 18px rgba(220, 232, 255, 0.4),
    0 6px 24px rgba(0, 0, 0, 0.85);
}

.ascii-dedication__name {
  color: #ffffff;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.65),
    0 6px 26px rgba(0, 0, 0, 0.9);
}

@media (max-width: 820px) {
  .ascii-dedication {
    top: clamp(20px, 4.2vh, 42px);
    left: 0;
    right: 0;
    margin-inline: auto;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translate3d(0, 12px, 0);
  }
  .ascii-dedication.is-visible {
    transform: translate3d(0, 0, 0);
  }
  .ascii-dedication__eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }
  .ascii-dedication__title {
    font-size: clamp(24px, 6.8vw, 38px);
    align-items: center;
  }
  .ascii-dedication .ascii-next-pill {
    margin-top: 14px;
  }
}

.ascii-next-pill {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 12, 18, 0.78);
  color: rgba(240, 245, 255, 0.9);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.ascii-next-pill:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(26, 26, 36, 0.9);
  transform: translateY(2px);
}

.ascii-next-pill svg {
  width: 15px;
  height: 15px;
}

/* =========================================================================
   SECTION 3: 3D PAGE-FLIPPING PDF BOOK
   ========================================================================= */
.book-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 42px 4vw 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: radial-gradient(circle at 50% 42%, #19121a 0%, #09070c 58%, #030205 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.book-header {
  text-align: center;
}

.book-header__eyebrow {
  color: rgba(255, 210, 224, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.book-header__title {
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 40px);
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.book-stage {
  position: relative;
  width: 100%;
  max-width: 1040px;
  height: clamp(340px, 62vh, 640px);
  display: grid;
  place-items: center;
  perspective: 2400px;
  overflow: visible;
}

.book-3d {
  --page-aspect: 0.72;
  --book-h: clamp(300px, 58vh, 600px);
  --book-w: min(88vw, calc(var(--book-h) * var(--page-aspect) * 2));
  position: relative;
  width: var(--book-w);
  height: min(var(--book-h), calc(var(--book-w) / (var(--page-aspect) * 2)));
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.book-3d.is-closed-front {
  transform: translate3d(-25%, 0, 0);
}

.book-3d.is-closed-back {
  transform: translate3d(25%, 0, 0);
}

.book-spiral {
  position: absolute;
  top: 3%;
  bottom: 3%;
  left: 50%;
  width: 38px;
  transform: translate3d(-50%, 0, 4px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 210;
}

.spiral-coil {
  position: relative;
  width: 100%;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Punched holes on left & right page edges */
.spiral-coil::before,
.spiral-coil::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 35%, #1d1822 0%, #09070c 72%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.16);
  transition: opacity 0.25s ease;
}

.spiral-coil::before {
  left: 1px;
}

.spiral-coil::after {
  right: 1px;
}

.book-3d.is-closed-front .spiral-coil::before {
  opacity: 0;
}

.book-3d.is-closed-back .spiral-coil::after {
  opacity: 0;
}

/* 3D glossy black coated spiral wire ring */
.spiral-coil__wire {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 7px;
  border-radius: 999px;
  transform: rotate(-7deg);
  background: linear-gradient(
    180deg,
    #121318 0%,
    #363a44 26%,
    #525764 42%,
    #191b22 72%,
    #060608 100%
  );
  box-shadow:
    0 3px 5px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.35s ease, width 0.35s ease;
}

.book-3d.is-closed-front .spiral-coil__wire {
  width: 24px;
  transform: translateX(4px) rotate(-7deg);
}

.book-3d.is-closed-back .spiral-coil__wire {
  width: 24px;
  transform: translateX(-4px) rotate(-7deg);
}

.book-leaves {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.book-leaf {
  position: absolute;
  top: 0;
  left: calc(50% + 2px);
  width: calc(50% - 2px);
  height: 100%;
  transform-origin: -2px center;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.64, 0.04, 0.32, 1);
  cursor: pointer;
  will-change: transform;
}

.book-leaf.is-flipped {
  transform: rotateY(-180deg);
}

.leaf-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: #f8f5ef;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
}

.leaf-face--front {
  border-radius: 3px 10px 10px 3px;
  transform: rotateY(0deg);
}

.leaf-face--back {
  border-radius: 10px 3px 3px 10px;
  transform: rotateY(180deg);
}

.leaf-face--front::after,
.leaf-face--back::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  pointer-events: none;
}

.leaf-face--front::after {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
}

.leaf-face--back::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
}

.leaf-face canvas,
.leaf-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.leaf-face--blank {
  background: linear-gradient(135deg, #2a0a14 0%, #15050a 100%);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* Loading / Choose PDF overlay */
.book-overlay {
  position: absolute;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.book-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.book-overlay__card {
  max-width: 420px;
  padding: 28px 28px;
  border-radius: 20px;
  background: rgba(14, 10, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.book-overlay__status {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
}

.book-overlay__hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  line-height: 1.5;
}

.book-overlay__hint code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffd5e0;
}

/* Book Controls */
.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 14, 22, 0.88);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.book-btn:hover:not(:disabled) {
  background: rgba(38, 28, 44, 0.95);
  border-color: rgba(255, 255, 255, 0.48);
}

.book-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.book-btn--primary {
  background: #df1a35;
  border-color: rgba(255, 255, 255, 0.25);
}

.book-btn--primary:hover:not(:disabled) {
  background: #f22944;
}

.book-btn--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
}

.book-btn svg {
  width: 16px;
  height: 16px;
}

.book-page-indicator {
  min-width: 110px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.book-next-pill {
  margin-top: 4px;
}

/* =========================================================================
   SECTION 4: 3D MEMORY SPACE (ROAMING PHOTOS + STARFIELD)
   ========================================================================= */
.gallery3d-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 36px 4vw 32px;
  background: radial-gradient(circle at 50% 50%, #110b1d 0%, #05040a 56%, #020104 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#space-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.space-header {
  position: relative;
  z-index: 4;
  text-align: center;
  pointer-events: none;
}

.space-header__eyebrow {
  color: rgba(210, 224, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.space-header__title {
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 42px);
  color: #ffffff;
  text-shadow: 0 0 24px rgba(210, 225, 255, 0.35);
}

.space-header__hint {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.space-viewport {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  perspective: 1250px;
  perspective-origin: 50% 50%;
  display: grid;
  place-items: center;
  cursor: grab;
  overflow: visible;
}

.space-viewport:active {
  cursor: grabbing;
}

.space-world {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.space-photo-card {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 10px 10px 30px;
  border-radius: 4px;
  border: 1px solid rgba(138, 114, 78, 0.35);
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 252, 244, 0.7) 0%, transparent 52%),
    linear-gradient(155deg, #f5eedc 0%, #ebe0c7 58%, #ddd0b3 100%);
  box-shadow:
    inset 0 0 14px rgba(120, 92, 54, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 20px 46px rgba(0, 0, 0, 0.72),
    0 0 26px rgba(255, 226, 185, 0.12);
  cursor: pointer;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow 0.25s ease;
}

.space-photo-card:hover {
  box-shadow:
    inset 0 0 12px rgba(120, 92, 54, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 56px rgba(0, 0, 0, 0.84),
    0 0 34px rgba(255, 226, 178, 0.34);
}

.space-photo-card img {
  width: auto;
  height: auto;
  max-width: clamp(175px, 18vw, 260px);
  max-height: clamp(190px, 26vh, 275px);
  object-fit: contain;
  border-radius: 2px;
  border: 1px solid rgba(58, 42, 22, 0.22);
  box-shadow: inset 0 0 10px rgba(32, 20, 8, 0.25);
  filter: sepia(0.16) contrast(1.04) brightness(0.97) saturate(0.9);
  transition: filter 0.25s ease;
  display: block;
  pointer-events: none;
  background: transparent;
}

.space-photo-card:hover img {
  filter: sepia(0.05) contrast(1.02) brightness(1.02) saturate(0.98);
}

.space-controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Lightbox modal for zooming any roaming photo */
.space-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(4, 3, 8, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.space-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-frame {
  max-width: min(84vw, 900px);
  max-height: 82vh;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(82vh - 20px);
  border-radius: 10px;
  object-fit: contain;
}

.lightbox-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 14, 22, 0.85);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(40, 34, 56, 0.95);
  transform: scale(1.06);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.space-next-pill {
  position: relative;
  z-index: 5;
  margin-top: 0;
  margin-bottom: 4px;
}

/* =========================================================================
   SECTION 5: MODERN NUMBERED MOTIVATION & WISHES GALLERY (images/)
   ========================================================================= */
.wishes-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.8vh, 34px) clamp(16px, 4vw, 48px) clamp(16px, 2.6vh, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.4vh, 14px);
  background: linear-gradient(180deg, #040308 0%, #090611 45%, #050409 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.wishes-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 48% at 22% 28%, rgba(239, 31, 60, 0.14) 0%, transparent 72%),
    radial-gradient(ellipse 55% 48% at 78% 24%, rgba(124, 92, 255, 0.14) 0%, transparent 72%),
    radial-gradient(ellipse 65% 52% at 50% 58%, rgba(255, 214, 165, 0.06) 0%, transparent 75%);
}

.wishes-header {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: center;
  flex-shrink: 0;
}

.wishes-header__pill {
  display: inline-block;
  margin-bottom: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 224, 236, 0.88);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wishes-header__title {
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #e7ecff 55%, #ffd4e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Direct box-free swipeable image carousel */
.wishes-carousel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vh, 14px);
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.wishes-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  max-width: 94vw;
  min-height: 0;
}

.wishes-viewport {
  --wish-aspect: 0.8;
  --wish-h: clamp(210px, 54vh, 490px);
  width: min(80vw, calc(var(--wish-h) * var(--wish-aspect)));
  height: min(var(--wish-h), calc(80vw / var(--wish-aspect)));
  border-radius: 18px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.wishes-viewport:active {
  cursor: grabbing;
}

.wishes-track {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.wishes-track.is-dragging {
  transition: none;
}

.wish-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  user-select: none;
}

.wish-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.72);
  display: block;
  pointer-events: none;
}

@media (max-height: 700px) {
  .wishes-viewport {
    --wish-h: clamp(190px, 48vh, 360px);
  }
}

.wish-nav {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 11, 22, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.wish-nav[hidden] {
  display: grid;
  opacity: 0;
  pointer-events: none;
}

.wish-nav:hover {
  background: rgba(34, 28, 48, 0.94);
  transform: scale(1.08);
}

.wishes-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.wishes-counter {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wishes-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.wishes-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  transition: width 0.28s ease, background 0.28s ease;
}

.wishes-dot.is-active {
  width: 22px;
  background: #ffffff;
}

.wishes-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.wishes-footer .ascii-next-pill {
  margin-top: 0;
}

.wishes-lb-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wishes-lb-caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================================
   SECTION 6: KINETIC REASONS (BOX-FREE EDITORIAL SPOTLIGHT + RIBBONS)
   ========================================================================= */
.reasons-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3.6vh, 42px) clamp(18px, 4vw, 56px) clamp(16px, 2.8vh, 30px);
  background:
    radial-gradient(ellipse 72% 54% at 50% 48%, rgba(30, 20, 48, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 46% 36% at 50% 50%, rgba(255, 186, 108, 0.08) 0%, transparent 68%),
    linear-gradient(180deg, #05040a 0%, #090714 52%, #040308 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#reasons-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.reasons-header {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  flex-shrink: 0;
}

.reasons-kicker {
  color: rgba(236, 203, 128, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.reasons-title {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: clamp(30px, 4.3vw, 56px);
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: #f6efe2;
}

.reasons-title__gold {
  background: linear-gradient(135deg, #ffe7af 0%, #eccb80 55%, #f4a8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Crisp Retina Background Whisper Ribbons (Zero Boxes) */
.reasons-marquee {
  position: relative;
  z-index: 2;
  width: 100vw;
  overflow: hidden;
  pointer-events: none;
  flex-shrink: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.reasons-marquee--top {
  margin-top: 6px;
}

.reasons-ribbon {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  will-change: transform;
  animation: reasons-marquee-left 95s linear infinite;
}

.reasons-ribbon--reverse {
  animation-name: reasons-marquee-right;
  animation-duration: 110s;
}

.reasons-section.is-paused .reasons-ribbon {
  animation-play-state: paused;
}

@keyframes reasons-marquee-left {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes reasons-marquee-right {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.reasons-ribbon__item {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(14px, 1.35vw, 18px);
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(244, 237, 221, 0.22);
}

.reasons-ribbon__item .reason-key {
  color: rgba(236, 203, 128, 0.42);
  font-weight: 600;
  text-shadow: none;
}

/* Central Box-Free Editorial Spotlight */
.reasons-stage {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: min(92vw, 860px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
}

.reasons-spotlight {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(10px, 1.6vh, 16px);
  padding: 16px 8px;
  cursor: pointer;
  user-select: none;
  touch-action: pan-y;
  will-change: transform, opacity, filter;
}

.reasons-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: clamp(110px, 19vw, 220px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(236, 203, 128, 0.055);
  pointer-events: none;
  will-change: transform, opacity;
}

.reasons-num-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.reasons-num-wrap[hidden] {
  display: none;
}

.reasons-num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: rgba(236, 203, 128, 0.92);
}

.reasons-num-rule {
  width: 48px;
  height: 1px;
  transform-origin: center;
  background: linear-gradient(90deg, transparent 0%, rgba(236, 203, 128, 0.78) 50%, transparent 100%);
}

.reasons-quote {
  position: relative;
  z-index: 2;
  max-width: min(88vw, 780px);
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: clamp(28px, 3.9vw, 54px);
  line-height: 1.2;
  color: #faf4e8;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.65);
}

.reason-key {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(120deg, #fff2cc 0%, #eccb80 35%, #ffffff 50%, #ffbdc9 70%, #eccb80 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 198, 120, 0.34));
  animation: reason-key-sheen 4.2s ease-in-out infinite;
}

@keyframes reason-key-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Minimal Scrubber Footer */
.reasons-bottom {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: min(84vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.8vh, 18px);
  flex-shrink: 0;
}

.reasons-scrub {
  width: 100%;
}

.reasons-scrub__track {
  position: relative;
  width: 100%;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.reasons-scrub__track::before {
  content: '';
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.reasons-scrub__fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 0%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a356 0%, #eccb80 70%, #ffc4d1 100%);
  transition: width 0.25s ease;
}

.reasons-scrub__head {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffe8b8;
  box-shadow: 0 0 12px rgba(255, 200, 120, 0.9);
  pointer-events: none;
  opacity: 0;
  transition: left 0.25s ease, opacity 0.25s ease;
}

.reasons-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.reasons-scrub__count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(236, 203, 128, 0.85);
}

.reasons-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reasons-ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: rgba(246, 239, 226, 0.88);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.reasons-ctrl-btn svg {
  width: 15px;
  height: 15px;
}

.reasons-ctrl-btn svg[hidden] {
  display: none;
}

.reasons-ctrl-btn:hover {
  background: rgba(236, 203, 128, 0.14);
  border-color: rgba(236, 203, 128, 0.5);
  color: #ffe8b8;
  transform: translateY(-1px);
}

.reasons-ctrl-btn--toggle.is-paused {
  border-color: rgba(236, 203, 128, 0.55);
  background: rgba(236, 203, 128, 0.14);
  color: #ffe8b8;
}

.reasons-next-pill {
  margin-top: 0;
}

/* =========================================================================
   SECTION 7 (FINAL): INSTAGRAM-STYLE CURATED REELS (NO BUTTONS)
   ========================================================================= */
.reels-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #100b14 0%, #040306 58%, #000000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.reels-shell {
  position: relative;
  height: min(90vh, 860px);
  aspect-ratio: 9 / 16;
  max-width: 94vw;
  border-radius: 22px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.92),
    0 0 40px rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
  .reels-shell {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
  }
}

.reels-feed {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
  outline: none;
}

.reels-feed::-webkit-scrollbar {
  display: none;
}

.reel-item {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000000;
}

.reel-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 18px 38px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, transparent 100%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reel-top-title {
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.reel-top-index {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.reel-overlay-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 16px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.3) 55%, transparent 100%);
  pointer-events: none;
}

.reel-handle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.reel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 60%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.reel-username {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.reel-caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.reel-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.reel-progress-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  transition: width 0.1s linear;
}

.reel-tap-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.reel-tap-badge.is-shown {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reel-start-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 4;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  background: rgba(12, 10, 16, 0.62);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.65);
  transition: transform 0.25s ease, opacity 0.28s ease, background 0.25s ease;
}

.reel-start-play svg {
  width: 30px;
  height: 30px;
  transform: translateX(2px);
}

.reel-start-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(24, 20, 30, 0.78);
}

.reel-start-play.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.22);
  pointer-events: none;
}

.scroll-up-pill {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vh, 28px);
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 12, 18, 0.8);
  backdrop-filter: blur(10px);
  color: rgba(240, 245, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.25s ease, background 0.25s ease, visibility 0.35s ease;
}

.scroll-up-pill.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-up-pill:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(26, 26, 36, 0.94);
  transform: translateY(-2px);
}

.scroll-up-pill svg {
  width: 18px;
  height: 18px;
}

.reels-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 28px;
  text-align: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.reels-empty__title {
  color: #ffffff;
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.reels-empty__hint {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.reels-empty__hint code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffd5e2;
}




