/* =====================================================================
   Nusrat Jahan Maisha — A Love Letter in Light
   Elite cinematic luxury experience · styles.css
   ---------------------------------------------------------------------
   Palette : #07070C · #0E0716 · #160C25 + rose-gold / crystal / purple
   Type    : DM Serif Display · Playfair · Cormorant · Inter · Great Vibes
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg-0: #07070c;
  --bg-1: #0e0716;
  --bg-2: #160c25;
  --ink: #f4eef8;
  --ink-soft: rgba(244, 238, 248, 0.62);
  --ink-faint: rgba(244, 238, 248, 0.38);

  --rose-gold: #e6b8a2;
  --rose-gold-2: #f0cdb8;
  --crystal: #f6f0ff;
  --pink: #ff9ec4;
  --purple: #a179ff;
  --purple-deep: #6d4bb0;
  --gold: #f3d79a;
  --burgundy: #4a0d1c;
  --burgundy-2: #7a1329;

  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-2: rgba(255, 255, 255, 0.22);
  --glass-fill: rgba(255, 255, 255, 0.045);

  --font-serif: "DM Serif Display", "Playfair Display", Georgia, serif;
  --font-play: "Playfair Display", Georgia, serif;
  --font-cormorant: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
  --font-bn: "Noto Sans Bengali", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1240px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.touch { cursor: auto; }
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
body.touch button, body.touch a { cursor: pointer; }
.svg-defs { position: absolute; }

/* ---------- 3. Custom cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
body.touch .cursor { display: none; }
.cursor-core, .cursor-halo {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  transform: translate3d(-50px, -50px, 0); will-change: transform;
}
.cursor-core {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff;
  box-shadow: 0 0 10px var(--pink), 0 0 20px var(--purple);
}
.cursor-halo {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(246, 240, 255, 0.5);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), border-color .3s, background .3s;
}
.cursor.hover .cursor-halo {
  width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border-color: var(--rose-gold); background: rgba(230, 184, 162, 0.06);
}

/* ---------- 4. Background ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.bg-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #1b0f2e 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%, #05040a 100%);
}
.bg-aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 40% at 20% 25%, rgba(161, 121, 255, 0.28), transparent 60%),
    radial-gradient(38% 38% at 80% 30%, rgba(255, 107, 157, 0.18), transparent 60%),
    radial-gradient(45% 45% at 60% 80%, rgba(122, 19, 41, 0.22), transparent 60%),
    radial-gradient(35% 35% at 15% 75%, rgba(109, 75, 176, 0.2), transparent 60%);
  filter: blur(40px);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0% { transform: translate3d(0,0,0) scale(1); filter: blur(40px) hue-rotate(0deg); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.08); filter: blur(48px) hue-rotate(24deg); }
}
.bg-volumetric {
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: screen;
  background:
    conic-gradient(from 210deg at 70% 0%, rgba(243, 215, 154, 0.09), transparent 25%),
    conic-gradient(from 30deg at 30% 10%, rgba(161, 121, 255, 0.08), transparent 30%);
  animation: volShift 30s linear infinite;
}
@keyframes volShift { to { transform: rotate(2deg) scale(1.05); } }
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- 5. Cinematic Preloader ---------- */
.cinematic-loader {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #150c26 0%, #0a0614 50%, #040308 100%);
  overflow: hidden;
  font-family: var(--font-serif);
}

.cl-aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 70% 40% at 50% 15%, rgba(100,60,180,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 30% 70%, rgba(180,80,200,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 35% at 70% 50%, rgba(120,50,160,0.06) 0%, transparent 50%);
  animation: clAurora 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes clAurora {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-30px, 15px) scale(1.1); opacity: 1; }
}

.cl-stars {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.cl-particles {
  position: absolute; inset: 0; pointer-events: none;
}

.cl-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
}

.cl-text {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 400;
  color: var(--crystal);
  letter-spacing: 0.15em;
  text-shadow: 0 0 40px rgba(246,240,255,0.2), 0 0 80px rgba(162,120,255,0.1);
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255,255,255,0.1) 40%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.1) 60%,
    transparent 75%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: clGlassSweep 4s ease-in-out infinite;
}

@keyframes clGlassSweep {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -100% 0; }
}

.cl-heart-wrap {
  position: relative;
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
}

.cl-heart {
  position: relative;
  width: 64px; height: 64px;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(255,142,184,0.5)) drop-shadow(0 0 40px rgba(255,100,150,0.2));
}

.cl-heart svg {
  width: 100%; height: 100%; display: block;
}

.cl-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.cl-percent {
  font-family: var(--font-cormorant);
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.25em;
  font-variant-numeric: tabular-nums;
  font-style: italic;
}

.cl-blast {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}

/* ---------- 6. Progress rail + music ---------- */
.rail { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: transparent; }
.rail span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--rose-gold), var(--pink), var(--purple)); box-shadow: 0 0 12px rgba(255,142,184,0.5); }

.music {
  position: fixed; top: clamp(1rem, 3vw, 1.6rem); right: clamp(1rem, 3vw, 1.6rem); z-index: 210;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass-fill); border: 1px solid var(--glass-border-2);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 30px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(-8px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.music.ready { opacity: 1; transform: none; }
.music-icon-play, .music-icon-pause {
  position: absolute; color: var(--ink); opacity: 0.8;
  transition: opacity .3s var(--ease);
}
.music-icon-pause { display: none; }
.music.playing .music-icon-play { display: none; }
.music.playing .music-icon-pause { display: block; }
.music-eq { display: none; gap: 2px; align-items: flex-end; height: 16px; }
.music.playing .music-eq { display: flex; }
.music:not(.playing) .music-icon-play { animation: musicPulse 2s var(--ease) infinite; }
@keyframes musicPulse { 0%,100%{opacity:0.8} 50%{opacity:1} }
.music-eq i { width: 2.5px; background: var(--rose-gold-2); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.music-eq i:nth-child(2){ animation-delay: .2s } .music-eq i:nth-child(3){ animation-delay: .4s }
@keyframes eq { 0%,100%{height:4px} 50%{height:15px} }

/* ---------- 7. Section scaffolding ---------- */
.section {
  position: relative;
  min-height: 100vh;
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.sec-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.5rem, 6vh, 4.5rem); }
.sec-kicker {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--rose-gold);
  margin-bottom: 1.1rem;
}
.sec-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.08; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff 0%, #f3d9e6 55%, #d9c2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-sub {
  margin-top: 1rem; font-family: var(--font-cormorant); font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--ink-soft); letter-spacing: 0.02em;
}
.font-bn { font-family: var(--font-bn); }

/* ---------- 8. Real premium glass ---------- */
.glass-surface {
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 60px rgba(161,121,255,0.06);
}
.glass-surface::before { /* frosted noise + specular */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(80% 50% at 20% 0%, rgba(255,255,255,0.14), transparent 60%),
    radial-gradient(60% 40% at 100% 100%, rgba(161,121,255,0.08), transparent 60%);
  filter: url(#glass-noise);
  opacity: 0.9;
}
.glass-surface::after { /* moving light streak */
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: streak 9s ease-in-out infinite;
}
@keyframes streak { 0%,55%{left:-60%} 80%,100%{left:130%} }

/* ---------- 9. Glass button + micro interactions ---------- */
.glass-btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  padding: 1.05rem 2.4rem; border-radius: 999px; overflow: hidden;
  font-family: var(--font-cormorant); font-size: 1.15rem; letter-spacing: 0.05em; color: var(--ink);
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid var(--glass-border-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,142,184,0.12);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  will-change: transform;
}
.glass-btn.small { padding: .8rem 1.8rem; font-size: 1rem; }
.glass-btn:hover { border-color: var(--rose-gold); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 14px 50px rgba(0,0,0,0.5), 0 0 44px rgba(255,142,184,0.3); }
.btn-streak { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.5) 50%, transparent 58%); transform: translateX(-120%); }
.glass-btn:hover .btn-streak { animation: btnSweep .9s var(--ease); }
@keyframes btnSweep { to { transform: translateX(120%); } }

/* ---------- 10. SECTION 1 · Hero ---------- */
.hero { gap: clamp(2rem, 5vh, 3.5rem); }
.hero-crystal { position: relative; width: min(74vw, 340px); aspect-ratio: 1; display: grid; place-items: center; will-change: transform; }
.crystal-aura {
  position: absolute; inset: -30%;
  background: radial-gradient(circle, rgba(255,142,184,0.35), rgba(161,121,255,0.18) 45%, transparent 70%);
  filter: blur(30px); animation: auraPulse 5s var(--ease) infinite;
}
@keyframes auraPulse { 0%,100%{opacity:.7;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }
.crystal-heart {
  position: relative; width: 100%; height: 100%;
  -webkit-clip-path: path("M170 300S30 214 30 116C30 68 66 34 110 34c26 0 48 13 60 35 12-22 34-35 60-35 44 0 80 34 80 82 0 98-140 184-140 184z");
  clip-path: path("M170 300S30 214 30 116C30 68 66 34 110 34c26 0 48 13 60 35 12-22 34-35 60-35 44 0 80 34 80 82 0 98-140 184-140 184z");
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.55));
  animation: beatSlow 4.5s var(--ease) infinite;
}
@keyframes beatSlow { 0%,100%{transform:scale(1)} 50%{transform:scale(1.035)} }
.crystal-photo { position: absolute; inset: 0; }
.crystal-photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(1.06) brightness(1.02); }
.crystal-facets {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: overlay; opacity: .55;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.4) 0 8%, transparent 8% 20%, rgba(255,255,255,0.2) 20% 24%, transparent 24% 46%),
    linear-gradient(240deg, rgba(161,121,255,0.3) 0 10%, transparent 10% 40%);
}
.crystal-shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(125deg, rgba(255,255,255,0.5) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.25) 100%);
  animation: shineMove 7s var(--ease) infinite;
}
@keyframes shineMove { 0%,100%{transform:translateX(-8%) rotate(0)} 50%{transform:translateX(8%) rotate(1deg)} }
.crystal-edge {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35), inset 0 0 30px rgba(255,142,184,0.25);
}
.hero-copy { text-align: center; }
.hero-eyebrow {
  font-family: var(--font-cormorant); font-style: italic;
  font-size: clamp(1rem, 3vw, 1.5rem); letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: .6rem;
}
.hero-name {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(3rem, 11vw, 6.5rem); line-height: 1; letter-spacing: 0.01em;
  background: linear-gradient(100deg, #fff 0%, #ffd9ea 24%, var(--gold) 44%, #fff 56%, #e6c9ff 78%, #fff 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldSweep 6s linear infinite;
  filter: drop-shadow(0 4px 30px rgba(255,142,184,0.3));
}
@keyframes goldSweep { to { background-position: 220% center; } }
.hero-btn-wrap { margin-top: clamp(1.8rem, 4vh, 2.8rem); }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 22px; height: 36px; border: 1px solid rgba(255,255,255,0.3); border-radius: 12px; }
.scroll-cue span { position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--rose-gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%,100%{opacity:0;transform:translateY(14px)} }

/* ---------- 11. SECTION 2 · Cinematic slider ---------- */
.slider-section { }
.slider { position: relative; width: min(100%, 1000px); }
.slide-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--glass-border-2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2), 0 0 70px rgba(161,121,255,0.1);
  background: #100a1c;
}
@media (max-width: 640px){ .slide-stage { aspect-ratio: 4 / 5; } }
.c-slide { position: absolute; inset: 0; opacity: 0; }
.c-slide img { width: 100%; height: 100%; object-fit: cover; }
.c-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 25%, transparent 65%, rgba(7,7,12,0.5));
}
.slide-glass {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: .4;
  background: linear-gradient(125deg, rgba(255,255,255,0.28) 0%, transparent 34%, transparent 68%, rgba(255,255,255,0.14) 100%);
}
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: var(--glass-fill); border: 1px solid var(--glass-border-2);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 30px rgba(0,0,0,0.4);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.slider-nav svg { width: 22px; height: 22px; }
.slider-nav:hover { border-color: var(--rose-gold); box-shadow: 0 0 30px rgba(255,142,184,0.3); }
.slider-nav.prev { left: clamp(-10px, -2vw, 0px); }
.slider-nav.next { right: clamp(-10px, -2vw, 0px); }
@media (min-width: 900px){ .slider-nav.prev{ left: -28px } .slider-nav.next{ right: -28px } }
.slider-meta { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.6rem; font-family: var(--font-cormorant); color: var(--ink-soft); letter-spacing: 0.14em; }
.slider-meta span:first-child { color: var(--ink); }
.slider-bar { width: 160px; height: 1px; background: rgba(255,255,255,0.14); position: relative; }
.slider-bar i { position: absolute; inset: 0; width: 25%; background: linear-gradient(90deg, var(--rose-gold), var(--pink)); transition: width .8s var(--ease); }

/* ---------- 12. SECTION 3 · Gift ---------- */
.gift-section { }
.gift-stage { position: relative; width: min(90vw, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.giftbox { position: relative; width: 190px; height: 170px; transform-style: preserve-3d; }
.gift-glow { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(243,215,154,0.4), rgba(255,142,184,0.15) 45%, transparent 70%); filter: blur(14px); opacity: .55; transition: opacity 1s var(--ease); }
.gift-shadow { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 150px; height: 24px; background: radial-gradient(ellipse, rgba(0,0,0,0.55), transparent 70%); filter: blur(6px); }
.gift-base {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 160px; height: 108px; border-radius: 8px 8px 12px 12px;
  background: linear-gradient(160deg, #7a1329 0%, #4a0d1c 60%, #2e0712 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.12), inset 0 -18px 30px rgba(0,0,0,0.4), 0 20px 44px rgba(0,0,0,0.5);
  overflow: hidden;
}
.gift-base::before { /* velvet sheen */
  content:""; position:absolute; inset:0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
}
.gift-ribbon-v { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 26px; height: 100%; background: linear-gradient(90deg, #b8892f, #f3d79a, #b8892f); box-shadow: 0 0 14px rgba(243,215,154,0.4); }
.gift-lid {
  position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%);
  width: 178px; height: 46px; border-radius: 8px;
  background: linear-gradient(160deg, #8f1730, #5c0f21);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.18), 0 -6px 20px rgba(0,0,0,0.35);
  transform-origin: left center; z-index: 3;
  transition: transform 1.1s var(--ease);
}
.gift-ribbon-h { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 100%; height: 26px; background: linear-gradient(90deg, #b8892f, #f3d79a, #b8892f); box-shadow: 0 0 14px rgba(243,215,154,0.4); }
.gift-bow { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); width: 78px; height: 40px; z-index: 4; }
.gift-bow i { position: absolute; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 32% 30%, #f7e3ad, #c99a34 62%, #8a6a1f); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.gift-bow .bl { left: 0; top: 4px; width: 38px; height: 30px; transform: rotate(-24deg); }
.gift-bow .br { right: 0; top: 4px; width: 38px; height: 30px; transform: rotate(24deg); }
.gift-bow .bk { left: 50%; top: 8px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff2c4, #d4af37); box-shadow: 0 0 14px rgba(243,215,154,0.7); z-index: 2; }
.giftbox.open .gift-lid { transform: translateX(-50%) translateY(-38px) rotateZ(-118deg); }
.giftbox.open .gift-glow { opacity: 1; background: radial-gradient(circle, rgba(255,235,170,0.85), rgba(255,142,184,0.3) 50%, transparent 72%); }
.gift-hint { margin-top: 1.6rem; font-family: var(--font-cormorant); font-style: italic; font-size: 1.1rem; letter-spacing: 0.12em; color: var(--ink-soft); transition: opacity .5s; }
.gift-stage.opened .gift-hint { opacity: 0; }

.envelope { position: relative; width: min(92vw, 460px); margin-top: clamp(2rem, 5vh, 3rem); opacity: 0; transform: translateY(30px); pointer-events: none; }
.envelope.show { opacity: 1; transform: none; pointer-events: auto; }
.env-glass { padding: 2.4rem 1.8rem; text-align: center; display: grid; gap: 1.2rem; justify-items: center; border-radius: 22px; }
.env-seal { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffb6c8, #b3122c); box-shadow: 0 0 22px rgba(255,80,120,0.5); font-size: 1.1rem; }
.env-line { font-family: var(--font-cormorant); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); }

/* ---------- 13. SECTION 4 · Love letter (luxury stationery) ---------- */
.letter-section { }
.paper-wrap { position: relative; perspective: 1800px; width: min(92vw, 660px); }
.paper-shadow {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  width: 82%; height: 40px; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5), transparent 70%); filter: blur(12px);
}
.paper {
  position: relative; z-index: 1; transform-origin: top center;
  padding: clamp(2.6rem, 6vw, 4rem) clamp(1.8rem, 6vw, 3.6rem) clamp(3.2rem, 7vw, 4.4rem);
  border-radius: 4px; color: #43303a; overflow: hidden;
  /* warm ivory paper with soft vignette */
  background:
    radial-gradient(120% 90% at 50% 0%, #fffaf2 0%, #fdf4e6 45%, #f6e9d4 100%);
  box-shadow:
    0 50px 120px rgba(0,0,0,0.62),
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 0 90px rgba(180,130,70,0.14);
  border: 1px solid rgba(196,160,104,0.55);
  animation: paperFloat 8s var(--ease) infinite;
}
@keyframes paperFloat { 0%,100%{ transform: translateY(0) rotateZ(-0.15deg);} 50%{ transform: translateY(-8px) rotateZ(0.15deg);} }

/* fine paper grain + subtle horizontal deckle lines */
.paper-texture {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .55; border-radius: inherit;
  background-image:
    radial-gradient(rgba(150,110,60,0.05) 1px, transparent 1px),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(150,110,60,0.03) 33px 34px);
  background-size: 4px 4px, 100% 34px;
}
/* ornate gold double frame */
.paper-frame {
  position: absolute; inset: 16px; z-index: 2; pointer-events: none; border-radius: 2px;
  border: 1.5px solid rgba(176,131,66,0.7);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.4), inset 0 0 0 5px rgba(176,131,66,0.35);
}
/* gilded corner flourishes */
.corner { position: absolute; z-index: 3; width: 34px; height: 34px; pointer-events: none; }
.corner::before, .corner::after { content:""; position:absolute; background: linear-gradient(90deg, #b98a3f, #f2d79b, #b98a3f); }
.corner::before { width: 100%; height: 2px; }
.corner::after { width: 2px; height: 100%; }
.corner::before, .corner::after { box-shadow: 0 0 6px rgba(210,170,90,0.5); }
.c-tl { top: 22px; left: 22px; } .c-tl::before{top:0;left:0} .c-tl::after{top:0;left:0}
.c-tr { top: 22px; right: 22px; } .c-tr::before{top:0;right:0} .c-tr::after{top:0;right:0}
.c-bl { bottom: 22px; left: 22px; } .c-bl::before{bottom:0;left:0} .c-bl::after{bottom:0;left:0}
.c-br { bottom: 22px; right: 22px; } .c-br::before{bottom:0;right:0} .c-br::after{bottom:0;right:0}

/* letter head */
.paper-head { position: relative; z-index: 3; text-align: center; margin-bottom: 1.8rem; }
.paper-mono { display: inline-block; font-family: var(--font-serif); letter-spacing: 0.34em; font-size: 0.82rem; color: #b0752f; }
.paper-title {
  font-family: var(--font-script); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1; margin: .3rem 0 .8rem; color: #8f1730;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.paper-rule { display: flex; align-items: center; justify-content: center; gap: .8rem; color: #b0752f; }
.paper-rule i { display: block; width: clamp(40px, 18%, 90px); height: 1px; background: linear-gradient(90deg, transparent, #b98a3f); }
.paper-rule i:last-child { background: linear-gradient(90deg, #b98a3f, transparent); }
.paper-rule em { font-style: normal; font-size: 1rem; }

/* wax seal — signature at foot */
.wax-seal {
  position: absolute; z-index: 4; right: clamp(24px, 8%, 60px); bottom: clamp(26px, 7%, 54px);
  width: 62px; height: 62px; display: grid; place-items: center;
  transform: rotate(-8deg);
}
.wax-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wax-seal svg circle { fill: #8f1730; stroke: #b3122c; stroke-width: 3; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4)); }
.wax-seal em { position: relative; z-index: 2; font-family: var(--font-serif); font-style: normal; color: #ffd9c2; font-size: 1.6rem; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

/* body */
.paper-body {
  position: relative; z-index: 3; max-height: min(52vh, 440px);
  overflow-y: auto; padding: 0 clamp(.4rem, 2vw, 1rem);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.paper-body::-webkit-scrollbar { width: 5px; }
.paper-body::-webkit-scrollbar-thumb { background: rgba(150,100,50,0.4); border-radius: 4px; }
.paper-body p {
  font-family: var(--font-bn); font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.14rem); line-height: 2.15; letter-spacing: 0.005em;
  color: #4a3540; margin-bottom: 1.25rem; text-align: justify; text-justify: inter-word;
  opacity: 0; transform: translateY(10px);
}
.paper-body p.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
/* elegant drop-cap on first paragraph */
.paper-body p:first-child::first-letter {
  font-family: var(--font-serif); font-size: 2.8em; line-height: .8; float: left;
  padding: 6px 10px 0 0; color: #8f1730;
}
.paper-close { font-weight: 500; text-align: center; color: #7a1329 !important; }
.paper-sign {
  font-family: var(--font-script) !important; font-size: clamp(1.7rem, 5vw, 2.2rem) !important;
  text-align: center; color: #8f1730 !important; margin-top: .4rem;
}

/* ---------- 14. SECTION 5 · Together counter (Premium) ---------- */
.counter-panel {
  width: min(94vw, 1000px);
  padding: clamp(2.8rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(150% 80% at 50% 0%, rgba(30,18,50,0.92), transparent),
    linear-gradient(160deg, #0e081a 0%, #080414 100%);
  border: 1px solid rgba(243, 215, 154, 0.12);
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 80px rgba(243, 215, 154, 0.03);
  position: relative;
  overflow: hidden;
}
.counter-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(243,215,154,0.2), transparent 35%, transparent 65%, rgba(243,215,154,0.08));
  pointer-events: none; z-index: 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.counter-panel::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 30%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(243,215,154,0.06), transparent);
  transform: skewX(-18deg); pointer-events: none; z-index: 1;
  animation: cpStreak 10s ease-in-out infinite;
}
@keyframes cpStreak { 0%,55%{left:-60%} 80%,100%{left:130%} }

.counter-row {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: clamp(0.4rem, 1.5vw, 1rem);
}
.cu {
  text-align: center;
  min-width: 80px;
  padding: clamp(0.8rem, 1.5vw, 1.4rem) clamp(0.5rem, 1.2vw, 1.2rem);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  border: 1px solid rgba(243, 215, 154, 0.08);
  border-top: 2px solid rgba(243, 215, 154, 0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 24px rgba(0,0,0,0.25);
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s, border-color 0.5s;
}
.cu::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px;
  background: linear-gradient(125deg, rgba(255,255,255,0.15) 0%, transparent 35%, transparent 70%, rgba(255,255,255,0.05) 100%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.cu:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(243,215,154,0.06);
  border-color: rgba(243, 215, 154, 0.18);
  border-top-color: rgba(243, 215, 154, 0.4);
}
.cu:hover::after { opacity: 1; }
.cu b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #fce4ec 20%, #f3d79a 45%, #ff9ec4 75%, #e8d0ff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  filter: drop-shadow(0 0 24px rgba(255,158,196,0.1));
}
.cu:first-child b {
  font-size: clamp(3rem, 7vw, 4.4rem);
}
.cu:first-child {
  min-width: 100px;
  border-color: rgba(243, 215, 154, 0.15);
  border-top-color: rgba(243, 215, 154, 0.35);
}
.cu span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-cormorant);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 215, 154, 0.5);
}
.cu-div {
  display: flex; align-items: center; justify-content: center;
  flex: none;
  color: rgba(243, 215, 154, 0.25);
  font-size: 0.5rem;
  width: auto; height: auto;
}
.cu-div::before { content: "◆"; }

.cu .num-glow {
  animation: numPulse 0.35s ease-out;
}
@keyframes numPulse {
  0% { filter: drop-shadow(0 0 20px rgba(243,215,154,0.5)) brightness(1.3); }
  100% { filter: drop-shadow(0 0 24px rgba(255,158,196,0.1)); }
}

/* --- rotating golden orbit ring behind numbers --- */
.counter-orbit {
  position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  width: 160%; height: 160%; left: -30%; top: -30%;
  border-radius: 50%;
  border: 1px solid rgba(243, 215, 154, 0.06);
  animation: orbitSpin 24s linear infinite;
}
.counter-orbit::before {
  content: ""; position: absolute; top: -2px; left: 50%; width: 8px; height: 8px;
  margin-left: -4px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold), transparent);
  box-shadow: 0 0 20px var(--gold), 0 0 40px rgba(243,215,154,0.3);
}
.counter-orbit-2 {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  width: 140%; height: 140%; left: -20%; top: -20%;
  border-radius: 50%;
  border: 1px solid rgba(255, 158, 196, 0.04);
  animation: orbitSpin 36s linear infinite reverse;
}
.counter-orbit-2::before {
  content: ""; position: absolute; top: 50%; right: -2px; width: 6px; height: 6px;
  margin-top: -3px; border-radius: 50%;
  background: radial-gradient(circle, var(--pink), transparent);
  box-shadow: 0 0 16px var(--pink), 0 0 30px rgba(255,158,196,0.2);
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* --- floating sparkle dust in panel --- */
.counter-dust {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  border-radius: 24px;
}
.counter-dust i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--gold);
  animation: dustFloat 8s ease-in-out infinite;
}
.counter-dust i:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; opacity: 0.3; }
.counter-dust i:nth-child(2) { left: 30%; top: 60%; animation-delay: 1.2s; width: 3px; height: 3px; opacity: 0.5; }
.counter-dust i:nth-child(3) { left: 55%; top: 30%; animation-delay: 2.8s; opacity: 0.2; }
.counter-dust i:nth-child(4) { left: 70%; top: 70%; animation-delay: 4s; width: 1.5px; height: 1.5px; background: var(--pink); opacity: 0.4; }
.counter-dust i:nth-child(5) { left: 85%; top: 15%; animation-delay: 5.5s; opacity: 0.3; }
.counter-dust i:nth-child(6) { left: 45%; top: 85%; animation-delay: 3.2s; width: 2.5px; height: 2.5px; background: var(--purple); opacity: 0.35; }
@keyframes dustFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translateY(-120px) scale(1.4); opacity: 0.8; }
  80% { opacity: 0.2; }
}

/* --- enhanced glow on numbers --- */
.cu b {
  text-shadow: 0 0 30px rgba(255,158,196,0.08), 0 0 60px rgba(243,215,154,0.05);
}
.cu:hover b {
  text-shadow: 0 0 40px rgba(255,158,196,0.25), 0 0 80px rgba(243,215,154,0.15);
  background: linear-gradient(135deg, #fff 0%, #ffe4ec 15%, #f3d79a 35%, #ff9ec4 65%, #e8d0ff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- decorative corner glints --- */
.counter-panel .c-glint {
  position: absolute; z-index: 2; pointer-events: none;
  width: 40px; height: 40px;
}
.counter-panel .c-glint::before, .counter-panel .c-glint::after {
  content: ""; position: absolute;
  background: linear-gradient(135deg, var(--gold), transparent);
  border-radius: 50%;
  filter: blur(1px);
  animation: glintPulse 3s ease-in-out infinite;
}
.counter-panel .c-glint-tl { top: 12px; left: 12px; }
.counter-panel .c-glint-tl::before { width: 20px; height: 2px; top: 0; left: 0; }
.counter-panel .c-glint-tl::after { width: 2px; height: 20px; top: 0; left: 0; animation-delay: 0.5s; }
.counter-panel .c-glint-tr { top: 12px; right: 12px; }
.counter-panel .c-glint-tr::before { width: 20px; height: 2px; top: 0; right: 0; background: linear-gradient(225deg, var(--gold), transparent); }
.counter-panel .c-glint-tr::after { width: 2px; height: 20px; top: 0; right: 0; background: linear-gradient(225deg, var(--gold), transparent); animation-delay: 0.5s; }
.counter-panel .c-glint-bl { bottom: 12px; left: 12px; }
.counter-panel .c-glint-bl::before { width: 20px; height: 2px; bottom: 0; left: 0; background: linear-gradient(45deg, var(--gold), transparent); }
.counter-panel .c-glint-bl::after { width: 2px; height: 20px; bottom: 0; left: 0; background: linear-gradient(45deg, var(--gold), transparent); animation-delay: 0.5s; }
.counter-panel .c-glint-br { bottom: 12px; right: 12px; }
.counter-panel .c-glint-br::before { width: 20px; height: 2px; bottom: 0; right: 0; background: linear-gradient(315deg, var(--gold), transparent); }
.counter-panel .c-glint-br::after { width: 2px; height: 20px; bottom: 0; right: 0; background: linear-gradient(315deg, var(--gold), transparent); animation-delay: 0.5s; }
@keyframes glintPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --- premium entry animation for counter --- */
.counter-panel {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s;
}
.counter-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 100px rgba(243, 215, 154, 0.08);
}

@media (max-width: 700px){
  .counter-panel { padding: 1.8rem 1rem; }
  .cu-div { display: none; }
  .counter-row { gap: 0.6rem; }
  .cu { min-width: 27%; padding: 0.7rem 0.5rem; }
  .cu b { font-size: clamp(2rem, 7vw, 2.6rem); }
  .cu:first-child b { font-size: clamp(2.3rem, 8vw, 3rem); }
  .cu:first-child { min-width: 30%; }
  .counter-orbit, .counter-orbit-2 { display: none; }
}
@media (max-width: 420px){
  .cu { min-width: 42%; }
}

/* ---------- 15. SECTION 6 · Carousel showcase ---------- */
.showcase-section { }
.carousel-wrap {
  width: min(100%, var(--maxw));
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  user-select: none;
  -webkit-user-select: none;
}
.carousel-track {
  display: flex;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 33.333%;
  padding: 0.6rem;
  box-sizing: border-box;
}
.carousel-slide-inner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border-2);
  box-shadow: 0 18px 46px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
  cursor: none;
  aspect-ratio: 3 / 4;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
body.touch .carousel-slide-inner { cursor: pointer; }
.carousel-slide-inner img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .8s var(--ease);
}
/* Glass reflection overlay */
.carousel-slide-inner::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,0.2) 0%, transparent 38%, rgba(255,255,255,0.02) 70%, transparent 100%);
  opacity: 0.7; transition: opacity .5s;
  border-radius: inherit;
}
/* Crystal border inner glow */
.carousel-slide-inner::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 30px rgba(255,142,184,0.04);
  opacity: 0; transition: opacity .5s;
}
/* Hover effects */
.carousel-slide-inner:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 28px 64px rgba(0,0,0,0.55), 0 0 42px rgba(255,142,184,0.28);
}
.carousel-slide-inner:hover img { transform: scale(1.05); filter: contrast(1.04) saturate(1.06); }
.carousel-slide-inner:hover::before { opacity: 1; }
.carousel-slide-inner:hover::after { opacity: 1; }

@media (max-width: 1023px) { .carousel-slide { flex: 0 0 50%; } }
@media (max-width: 767px) { .carousel-slide { flex: 0 0 100%; } }

/* ---------- 16. SECTION 7 · One Last Wish + Finale overlay ---------- */
.wish-section { }
.wish-inner { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 1rem; }
.wish-btn-wrap { margin-top: clamp(1.6rem, 4vh, 2.6rem); }

/* Full-screen cinematic finale */
.finale {
  position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #170d2e 0%, #0a0518 55%, #05030c 100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 1.4s var(--ease), visibility 1.4s;
}
.finale.open { opacity: 1; visibility: visible; pointer-events: auto; }
.finale-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.finale-inner { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: clamp(1.6rem, 4vh, 2.8rem); padding: 1.5rem; }
.finale-heart { width: min(46vw, 200px); filter: drop-shadow(0 0 50px rgba(255,142,184,0.75)); opacity: 0; transform: scale(.4); }
.finale-heart.beat { animation: beatSlow 3.4s var(--ease) infinite; }
.finale-heart svg { width: 100%; }
.finale-lines p { font-family: var(--font-play); font-style: italic; font-size: clamp(1.3rem, 4.5vw, 2.3rem); line-height: 1.55; color: var(--crystal); opacity: 0; transform: translateY(14px); text-shadow: 0 0 28px rgba(255,182,210,0.4); }
.finale-final { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 7vw, 3.8rem); line-height: 1.2; opacity: 0; transform: translateY(14px); }
.finale-final span { font-family: var(--font-script); display: inline-block; margin-top: .5rem; font-size: 1.35em; background: linear-gradient(100deg, #fff, var(--gold), #fff); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldSweep 6s linear infinite; }
.finale-close {
  position: absolute; top: clamp(1rem,3vw,1.8rem); right: clamp(1rem,3vw,1.8rem); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.7rem; line-height: 1; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border-2);
  opacity: 0; transition: opacity .6s var(--ease) 2s, border-color .3s;
}
.finale.open .finale-close { opacity: 1; }
.finale-close:hover { border-color: var(--rose-gold); }

/* ---------- 17. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem); background: rgba(5,4,10,0.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { max-width: min(88vw, 720px); max-height: 86vh; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border-2); box-shadow: 0 40px 110px rgba(0,0,0,0.7), 0 0 60px rgba(255,142,184,0.25); transform: scale(.92); transition: transform .5s var(--ease); }
.lightbox.open .lb-figure { transform: scale(1); }
.lb-figure img { max-height: 86vh; width: auto; object-fit: contain; background: #0d0817; }
.lb-close { position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; color: #fff; background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border-2); z-index: 3; }
.lb-arrow { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border-2); flex: none; transition: border-color .3s, box-shadow .3s; }
.lb-arrow svg { width: 22px; height: 22px; }
.lb-arrow:hover { border-color: var(--rose-gold); box-shadow: 0 0 26px rgba(255,142,184,0.3); }
@media (max-width: 640px){ .lb-arrow { position: absolute; bottom: 2rem; } .lb-prev { left: 25%; } .lb-next { right: 25%; } }

/* ---------- 18. Start overlay (autoplay fallback) ---------- */
.start-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #170d2e 0%, #0a0518 55%, #05030c 100%);
  cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 1s var(--ease), visibility 1s;
}
.start-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
.start-overlay.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.start-glass {
  text-align: center; display: grid; justify-items: center; gap: 1.4rem;
  padding: 2.8rem 2.4rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border-2);
  border-radius: 26px;
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}
.start-heart { width: 60px; filter: drop-shadow(0 0 24px rgba(255,142,184,0.6)); animation: beat 1.6s var(--ease) infinite; }
.start-heart svg { width: 100%; }
.start-text {
  font-family: var(--font-cormorant); font-style: italic;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem); letter-spacing: 0.06em;
  color: var(--ink-soft); max-width: 24rem; line-height: 1.5;
}
.start-emoji { display: inline-block; animation: startHeartPulse 1.6s var(--ease) infinite; }
@keyframes startHeartPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.18)} }
.start-cue {
  width: 22px; height: 36px; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px; position: relative;
}
.start-cue::after {
  content: ""; position: absolute; top: 6px; left: 50%;
  width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: var(--rose-gold);
  animation: cue 1.8s var(--ease) infinite;
}

/* ---------- 19. Responsive polish ---------- */
@media (max-width: 1023px) {
  .section { padding: clamp(3.5rem, 8vh, 5rem) var(--pad); }
  .music { width: 44px; height: 44px; }
  .music-disc { width: 16px; height: 16px; }
}
@media (max-width: 767px) {
  .section { padding: clamp(2.5rem, 6vh, 4rem) var(--pad); min-height: auto; }
  .hero-crystal { width: min(70vw, 240px); }
  .hero-name { font-size: clamp(2.2rem, 9vw, 3.8rem); }
  .giftbox { width: 150px; height: 135px; }
  .gift-base { width: 126px; height: 86px; }
  .gift-lid { width: 140px; height: 36px; bottom: 80px; }
  .slider-meta { font-size: 0.8rem; }
  .slider-bar { width: 100px; }
  .paper { padding: clamp(1.8rem, 5vw, 2.6rem) clamp(1.2rem, 4vw, 2rem); }
  .paper-body { max-height: min(60vh, 360px); }
  .finale-heart { width: min(50vw, 140px); }
  .lb-arrow { width: 44px; height: 44px; }
  .lb-arrow svg { width: 18px; height: 18px; }
  .lb-close { width: 40px; height: 40px; font-size: 1.4rem; }
  .carousel-slide-inner { aspect-ratio: 2 / 3; }
}
@media (max-width: 480px) {
  .hero-crystal { width: min(80vw, 200px); }
  .glass-btn { padding: 0.8rem 1.6rem; font-size: 1rem; }
  .glass-btn.small { padding: 0.6rem 1.2rem; }
  .env-glass { padding: 1.6rem 1.2rem; }
  .env-line { font-size: 1.1rem; }
}
/* Large screens */
@media (min-width: 1600px) {
  .section { padding: clamp(6rem, 10vh, 10rem) var(--pad); }
  .hero-crystal { width: min(60vw, 400px); }
}

/* ---------- 20. Ending signature ---------- */
.ending-section {
  min-height: auto;
  padding-top: clamp(5rem, 12vh, 9rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.ending-glass {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(2rem, 5vw, 4rem);
  border-radius: 20px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 60px rgba(255,142,184,0.02), inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(30px);
}
.ending-content {
  position: relative;
  z-index: 2;
  animation: endFloat 5s ease-in-out infinite;
}
.ending-line {
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
  animation: endPulse 4s ease-in-out infinite;
}
.ending-name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.2;
  color: var(--crystal);
  animation: endPulse 4s ease-in-out infinite 0.5s;
}
.ending-heart {
  display: inline-block;
  animation: endHeartPulse 2.5s var(--ease) infinite;
  filter: drop-shadow(0 0 12px rgba(255,142,184,0.15));
}
@keyframes endFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes endPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes endHeartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
/* Glass reflection streak */
.ending-reflection {
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-18deg);
  pointer-events: none; z-index: 1;
  animation: endRefStreak 8s ease-in-out infinite;
}
@keyframes endRefStreak {
  0%, 40% { left: -100%; }
  55%, 100% { left: 150%; }
}

@media (max-width: 767px) {
  .ending-section { padding-top: clamp(3rem, 8vh, 5rem); padding-bottom: clamp(2rem, 5vh, 4rem); }
}

/* ---------- 21. Chapter lock (Task 1) ---------- */
body.chapter-locked {
  overflow: hidden; height: 100vh; width: 100%;
  position: fixed; top: 0; left: 0;
  touch-action: none;
}
body.chapter-locked .section:not(#hero) {
  display: none !important;
}
body.chapter-locked #music { opacity: 0 !important; transform: translateY(-8px) !important; }
body.chapter-locked .rail { opacity: 0; }
/* ---------- 22. Love frame (Task 3) ---------- */
.love-frame {
  width: min(72vw, 560px);
  margin: 0 auto;
  perspective: 1600px;
}
.love-frame-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border-2);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 60px rgba(255,142,184,0.04),
    0 0 80px rgba(161,121,255,0.06);
  animation: loveFloat 7s ease-in-out infinite;
}
@keyframes loveFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.love-frame-inner::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(80% 50% at 20% 0%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(60% 40% at 100% 100%, rgba(161,121,255,0.06), transparent 60%);
  border-radius: inherit;
}
.love-stage {
  position: relative;
  width: 100%; height: 100%;
}
.love-slide {
  position: absolute; inset: 0;
  opacity: 0;
}
.love-slide img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-user-drag: none; user-select: none;
}
.love-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 35%, transparent 65%, rgba(7,7,12,0.4));
}
/* Moving light streak */
.love-shine {
  position: absolute; top: 0; left: -100%; width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-18deg);
  pointer-events: none; z-index: 3;
  animation: loveStreak 8s ease-in-out infinite;
}
@keyframes loveStreak {
  0%, 55% { left: -100%; }
  80%, 100% { left: 150%; }
}
@media (max-width: 1023px) {
  .love-frame { width: min(82vw, 480px); }
}
@media (max-width: 767px) {
  .love-frame { width: min(90vw, 400px); }
  .love-frame-inner { aspect-ratio: 2 / 3; }
}

/* ---------- 23. Letter hidden state (Task 2) ---------- */
body.letter-hidden #letter .paper-wrap {
  display: none;
}

/* ---------- 24. Reveal defaults (GSAP targets) ---------- */
[data-reveal], .reveal-line, .reveal-name { will-change: transform, opacity; }

/* ---------- 25. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
