/* ============================================================
   Wedding Invitation v2 - Hendra & Juliani
   Cinematic Dramatic Chinese Premium
   - Dark dramatic cover with huge dragon/phoenix
   - Alternating dark/light sections
   - Parallax depth layers
   - Big dramatic typography
   - GPU transforms only
   ============================================================ */

/* ---------- Design tokens (locked, same as v1) ---------- */
:root {
  --crimson:        #8B1A1A;
  --crimson-deep:   #5C0F0F;
  --gold:           #C9A24B;
  --gold-bright:    #E6C97A;
  --gold-dark:      #A8802F;
  --gold-border:    #D4B87A;
  --cream:          #FAF6EE;
  --cream-2:        #F2EAD8;
  --cream-on-red:   #F5E6C8;
  --ink:            #2A1A12;
  --tea:            #6B5848;
  --white:          #FFFFFF;

  --ff-heading:  'Playfair Display', Georgia, serif;
  --ff-body:     'Cormorant Garamond', Georgia, serif;
  --ff-script:   'Great Vibes', cursive;
  --ff-cn:       'Noto Serif SC', serif;
  --ff-ui:       'Inter', system-ui, sans-serif;

  --container:      640px;
  --container-wide: 1080px;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-dramatic:  cubic-bezier(0.16, 1, 0.3, 1);
  --anim-dur:       1600ms;
  --anim-ease:      ease-in-out;

  --gold-foil: 0 0 0.5px rgba(201,162,75,0.5), 0 1px 8px rgba(201,162,75,0.25);
  --gold-glow: 0 0 24px rgba(201,162,75,0.45), 0 0 60px rgba(201,162,75,0.2);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--crimson-deep);
  color: var(--ink);
  line-height: 1.7;
  font-size: clamp(1rem, 2.6vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Body lock before opening */
body.locked { overflow: hidden; height: 100vh; }

/* ---------- Container ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 560px; }
.container.container-wide { max-width: var(--container-wide); }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 1200; background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-bright));
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
  box-shadow: 0 0 8px rgba(201,162,75,0.6);
}

/* ============================================================
   LOADER (dark dramatic)
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--crimson-deep);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 18px;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(201,162,75,0.18);
  border-top-color: var(--gold-bright);
  animation: spin 0.9s linear infinite;
}
.loader-xi {
  font-family: var(--ff-cn); font-weight: 900;
  font-size: 2.4rem; color: var(--gold-bright);
  text-shadow: var(--gold-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.5; transform: scale(0.92); } }

/* ============================================================
   COVER - dark dramatic cinematic, parallax depth
   ============================================================ */
.cover {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--crimson-deep);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform 1.1s var(--ease-dramatic), opacity 1.1s var(--ease-dramatic);
  will-change: transform;
}
.cover.cover-opened {
  transform: translateY(-100%) scale(1.04);
  opacity: 0;
  pointer-events: none;
}
/* parallax bg layers (different speeds via JS or CSS scroll-driven) */
.cover-bg-deep {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(139,26,26,0.45), transparent 60%),
    linear-gradient(180deg, #4a0c0c 0%, #5C0F0F 50%, #3a0808 100%);
}
.cover-bg-marble {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("assets/textures/marble-gold.svg");
  background-size: 320px 320px; opacity: 0.12; mix-blend-mode: overlay;
}
.cover-bg-pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><text x='40' y='52' font-family='serif' font-size='48' fill='%23E6C97A' opacity='0.6' text-anchor='middle'>囍</text></svg>");
  background-size: 80px 80px; opacity: 0.05; mix-blend-mode: screen;
}

/* huge dragon/phoenix full-height, gold overlay opacity 0.3 */
.cover-beasts { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cover-beast {
  position: absolute; color: var(--gold-bright); opacity: 0.3;
  width: clamp(180px, 38vw, 360px); height: auto;
  filter: drop-shadow(0 0 24px rgba(201,162,75,0.4));
  will-change: transform;
}
.cover-dragon { left: -4%; top: 8%; transform: rotate(-6deg); }
.cover-phoenix { right: -4%; top: 8%; transform: rotate(6deg) scaleX(-1); }

/* atmospheric effects */
.cover-light-ray {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 520px; pointer-events: none; z-index: 1; opacity: 0.22;
  mix-blend-mode: screen;
}
.cover-mist {
  position: absolute; bottom: 0; left: 0; width: 100%; pointer-events: none; z-index: 1; opacity: 0.18;
  mix-blend-mode: screen;
}
.cover-sparkle {
  position: absolute; pointer-events: none; z-index: 3;
  width: clamp(24px, 5vw, 48px); height: auto;
  animation: ornTwinkle 2.4s ease-in-out infinite;
}
.sp-1 { top: 16%; left: 18%; }
.sp-2 { top: 24%; right: 20%; animation-delay: 0.6s; }
.sp-3 { bottom: 22%; left: 28%; animation-delay: 1.2s; }
.cover-imperial-frame {
  position: absolute; inset: 16px; pointer-events: none; z-index: 2; opacity: 0.5;
  width: calc(100% - 32px); height: calc(100% - 32px);
  filter: drop-shadow(0 0 12px rgba(201,162,75,0.3));
}

.cover-inner {
  position: relative; z-index: 4;
  text-align: center;
  padding: 24px;
  max-width: 620px;
}

/* giant 囍 with glow effect */
.cover-deco {
  font-family: var(--ff-cn); font-weight: 900;
  font-size: clamp(4.5rem, 16vw, 8.5rem);
  color: var(--gold-bright);
  text-shadow: var(--gold-glow);
  line-height: 1; margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(201,162,75,0.5));
}

/* names HUGE dramatic typography */
.cover-names {
  font-family: var(--ff-heading); font-weight: 600;
  font-size: clamp(3rem, 11vw, 6.5rem);
  color: var(--cream-on-red);
  letter-spacing: 0.06em; line-height: 1.02;
  display: flex; flex-direction: column; align-items: center; gap: 0.05em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.cover-name {
  display: block;
  background: linear-gradient(180deg, var(--cream-on-red) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cover-amp {
  font-family: var(--ff-script);
  font-size: clamp(2rem, 7vw, 3.6rem);
  color: var(--gold);
  line-height: 1; transform: translateY(-0.1em);
  text-shadow: var(--gold-foil);
  -webkit-text-fill-color: var(--gold);
}
.cover-tagline {
  font-family: var(--ff-script);
  font-size: clamp(1.5rem, 4.6vw, 2.4rem);
  color: var(--gold-bright);
  margin: 22px 0 16px; line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.cover-subtitle {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: 12px;
}
.cover-subtitle span:first-child {
  font-family: var(--ff-ui); font-weight: 500;
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--gold);
}
.cover-subtitle-cn {
  font-family: var(--ff-cn); font-weight: 700;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  color: var(--gold-bright);
}
.cover-date {
  font-family: var(--ff-body); font-size: clamp(1rem, 3vw, 1.2rem);
  color: rgba(245,230,200,0.85); margin-bottom: 32px;
  letter-spacing: 0.06em;
}

/* gold shimmer pulse button */
.cover-btn-wrap { margin: 0 auto 28px; }
.btn-open {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 42px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  color: var(--cream-on-red);
  font-family: var(--ff-ui); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 24px rgba(201,162,75,0.3);
  z-index: 1;
  min-height: 52px;
  overflow: hidden;
}
.btn-open:hover, .btn-open:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 40px rgba(201,162,75,0.5);
  background: linear-gradient(135deg, var(--crimson-deep), var(--crimson));
  outline: none;
}
.btn-open:active { transform: translateY(-1px) scale(1.01); }
/* shimmer sweep */
.btn-open-shimmer {
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,230,200,0.35), transparent);
  animation: shimmerSweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmerSweep {
  0% { left: -120%; }
  60%, 100% { left: 220%; }
}
.btn-open-ring {
  position: absolute; inset: -6px; border-radius: 999px;
  border: 1px solid var(--gold-bright);
  opacity: 0; animation: btnRing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes btnRing {
  0% { opacity: 0.7; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.22); }
}
/* gold pulse attention */
.btn-open:not(:hover):not(:focus-visible) {
  animation: goldPulse 2.4s ease-in-out infinite;
  animation-delay: 1.8s;
}
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 24px rgba(201,162,75,0.3); }
  50% { box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 44px rgba(201,162,75,0.55); }
}

/* mouse scroll indicator */
.cover-mouse {
  display: flex; justify-content: center;
  opacity: 0.7;
}
.mouse {
  width: 22px; height: 36px; border-radius: 12px;
  border: 1.5px solid var(--gold);
  position: relative; display: block;
}
.wheel {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--gold-bright);
  animation: mouseWheel 1.6s ease-in-out infinite;
}
@keyframes mouseWheel {
  0% { opacity: 0; top: 5px; }
  40% { opacity: 1; }
  100% { opacity: 0; top: 18px; }
}

/* ============================================================
   MAIN APP (hidden until opened)
   ============================================================ */
.main-app {
  position: relative; z-index: 1;
  background: var(--cream);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.main-app.opened { opacity: 1; }

/* ============================================================
   SECTION BASE - alternating dark/light
   ============================================================ */
.section {
  position: relative;
  padding: clamp(72px, 14vw, 130px) 0;
  overflow: hidden;
}
.section-dark {
  background: var(--crimson-deep);
  color: var(--cream-on-red);
}
.section-light {
  background: var(--cream);
  color: var(--ink);
}

/* parallax depth layer: bg moves slower than fg (scroll-driven) */
.section-bg-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><text x='40' y='52' font-family='serif' font-size='48' fill='%23C9A24B' opacity='0.5' text-anchor='middle'>囍</text></svg>");
  background-size: 80px 80px;
  background-repeat: repeat;
  pointer-events: none; z-index: 0;
  will-change: transform;
}
.section-light .section-bg-pattern { opacity: 0.04; }
.section-dark .section-bg-pattern {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><text x='40' y='52' font-family='serif' font-size='48' fill='%23E6C97A' opacity='0.6' text-anchor='middle'>囍</text></svg>");
  opacity: 0.05;
}
.section-bg-marble {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("assets/textures/marble-gold.svg");
  background-size: 320px 320px; opacity: 0.1; mix-blend-mode: overlay;
  will-change: transform;
}
.section > .container { position: relative; z-index: 2; }

/* section dramatic dark ::after glow */
.section-dark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,162,75,0.1), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(201,162,75,0.08), transparent 45%);
}

/* section deco big dramatic CN char */
.section-deco {
  font-family: var(--ff-cn); font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 5rem);
  color: var(--gold);
  text-shadow: var(--gold-foil);
  text-align: center; line-height: 1; margin-bottom: 14px;
  opacity: 1;
}
.section-deco-light {
  color: var(--gold-bright);
  filter: drop-shadow(0 0 16px rgba(201,162,75,0.4));
}
.section-title {
  font-family: var(--ff-heading); font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--crimson);
  text-align: center; letter-spacing: 0.04em;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(139,26,26,0.15);
}
.section-title-light {
  color: var(--cream-on-red);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.section-title-sm {
  font-family: var(--ff-heading); font-weight: 500;
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  color: var(--crimson);
  text-align: center; letter-spacing: 0.02em; margin-bottom: 14px;
}

/* dividers - ornamental */
.divider { display: flex; align-items: center; justify-content: center; margin: 18px auto 28px; width: 22%; min-width: 90px; max-width: 240px; position: relative; }
.divider-gold span {
  display: block; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}
.divider-gold-light span {
  display: block; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,230,200,0.6), transparent);
  box-shadow: 0 0 8px rgba(201,162,75,0.3);
}
.divider-cloud { color: var(--gold); width: 120px; height: 36px; margin: 16px auto 0; opacity: 0.75; }
.divider-cloud svg { width: 100%; height: 100%; }

/* ============================================================
   Section 2: Pembukaan Buddha (DARK) - big lotus
   ============================================================ */
.pembukaan-lotus-big {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(140px, 36vw, 280px); color: var(--gold); opacity: 0.18;
  pointer-events: none; z-index: 1;
}
.pembukaan-lotus-big svg { width: 100%; height: auto; }
.pembukaan-quote p {
  font-family: var(--ff-script); font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--cream-on-red);
  text-align: center; line-height: 1.45;
  margin: 6px 0 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.pembukaan-translate {
  text-align: center; font-size: clamp(1.05rem, 3vw, 1.2rem);
  color: var(--gold-bright); margin-bottom: 18px;
  font-style: italic;
}
.pembukaan-body {
  text-align: center; max-width: 460px; margin: 0 auto;
  color: rgba(245,230,200,0.85); line-height: 1.85;
}

/* ============================================================
   Section 3: Greeting (LIGHT)
   ============================================================ */
.greeting-card {
  background: var(--white);
  border: 1px solid var(--gold-border);
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 36px);
  text-align: center;
  box-shadow: 0 16px 48px rgba(92,15,15,0.12);
  position: relative;
}
.greeting-card::before, .greeting-card::after {
  content: ''; position: absolute; width: 30px; height: 30px;
  border: 1px solid var(--gold);
}
.greeting-card::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.greeting-card::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.greeting-line { font-size: clamp(1rem, 3vw, 1.15rem); color: var(--tea); margin: 2px 0; }
.greeting-name {
  font-family: var(--ff-heading); font-weight: 500;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--crimson); margin: 12px 0 8px;
  word-break: break-word;
}

/* ============================================================
   Section 4: Couple (DARK) - dragon/phoenix backdrop
   ============================================================ */
.couple-beasts { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.couple-beast {
  position: absolute; color: var(--gold); opacity: 0.2;
  width: clamp(140px, 30vw, 260px); height: auto;
  filter: drop-shadow(0 0 16px rgba(201,162,75,0.3));
}
.couple-dragon { left: -4%; top: 12%; transform: rotate(-8deg); }
.couple-phoenix { right: -4%; top: 12%; transform: rotate(8deg) scaleX(-1); }
.couple-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  margin-top: 30px; align-items: start; position: relative; z-index: 2;
}
@media (min-width: 720px) {
  .couple-grid { grid-template-columns: 1fr auto 1fr; gap: 24px; }
}
.couple-card { position: relative; text-align: center; padding: 20px 8px; }
.couple-frame {
  position: relative; width: clamp(120px, 30vw, 160px); aspect-ratio: 3/4;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  border: 2px solid var(--gold);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 0 0 6px var(--crimson-deep), 0 0 24px rgba(201,162,75,0.3);
  display: flex; align-items: center; justify-content: center;
}
.couple-monogram {
  font-family: var(--ff-heading); font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  color: var(--gold-bright);
  text-shadow: var(--gold-glow);
}
.couple-label {
  font-family: var(--ff-ui); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.couple-name {
  font-family: var(--ff-heading); font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  color: var(--cream-on-red); line-height: 1.15; margin-bottom: 2px;
  letter-spacing: 0.03em;
}
.couple-nickname {
  font-family: var(--ff-body); font-style: italic;
  color: var(--gold-bright); font-size: 1.1rem; margin-bottom: 8px;
}
.couple-desc { color: rgba(245,230,200,0.85); line-height: 1.6; font-size: 1rem; }
.couple-amp {
  display: flex; align-items: center; justify-content: center;
  min-height: 60px;
}
.couple-amp-cn {
  font-family: var(--ff-cn); font-weight: 900;
  font-size: clamp(2.8rem, 10vw, 4.4rem);
  color: var(--gold-bright); text-shadow: var(--gold-glow);
  filter: drop-shadow(0 0 16px rgba(201,162,75,0.4));
}
@media (max-width: 719px) {
  .couple-amp { order: 2; }
  .couple-card:first-of-type { order: 1; }
  .couple-card:last-of-type { order: 3; }
}

/* ============================================================
   Section 5: Ucapan (LIGHT) - full-width plum blossom
   ============================================================ */
.ucapan-plum-full {
  position: absolute; top: 0; left: 0; width: 100%;
  pointer-events: none; z-index: 1; opacity: 0.18;
  display: flex; justify-content: center;
}
.ucapan-plum-full svg {
  width: clamp(280px, 90vw, 800px); height: auto;
  color: var(--gold-dark);
  filter: drop-shadow(0 4px 16px rgba(139,26,26,0.15));
}
.ucapan-body { max-width: 540px; margin: 0 auto; position: relative; z-index: 2; }
.ucapan-body p {
  margin-bottom: 18px; line-height: 1.85;
  text-align: justify; color: var(--ink);
}
.ucapan-body p:last-child { margin-bottom: 0; }
.ucapan-signature {
  font-family: var(--ff-script);
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  color: var(--gold-dark);
  text-align: center; margin-top: 24px;
  text-shadow: var(--gold-foil);
}

/* ============================================================
   Section 6: Acara (DARK) - hanging lanterns
   ============================================================ */
.acara-lanterns { position: absolute; top: 0; left: 0; right: 0; height: 0; pointer-events: none; z-index: 1; }
.acara-lantern {
  position: absolute; top: 0;
  width: clamp(48px, 12vw, 76px); color: var(--gold);
  opacity: 0.5;
  transform-origin: top center;
}
.acara-lantern-1 { left: 8%; }
.acara-lantern-2 { right: 8%; }
.acara-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-top: 28px;
}
@media (min-width: 720px) { .acara-grid { grid-template-columns: 1fr 1fr; } }
.acara-card {
  position: relative;
  background: rgba(245,230,200,0.06);
  border: 1px solid rgba(201,162,75,0.4);
  padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 32px) clamp(24px, 5vw, 32px);
  text-align: center;
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.acara-title {
  font-family: var(--ff-heading); font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--gold-bright); margin-bottom: 18px;
  position: relative; padding-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.acara-title::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 50px; height: 1px; background: var(--gold);
  box-shadow: 0 0 8px rgba(201,162,75,0.4);
}
.acara-list { text-align: left; }
.acara-list div { padding: 8px 0; border-bottom: 1px dashed rgba(201,162,75,0.25); }
.acara-list div:last-child { border-bottom: 0; }
.acara-list dt {
  font-family: var(--ff-ui); font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 3px;
}
.acara-list dd { color: var(--cream-on-red); line-height: 1.55; }
.acara-btn-wrap { text-align: center; margin-top: 30px; }

/* button link */
.btn-link {
  display: inline-block; padding: 12px 32px;
  background: var(--crimson); color: var(--cream-on-red);
  font-family: var(--ff-ui); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1.5px solid var(--gold); border-radius: 999px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  box-shadow: 0 6px 20px rgba(139,26,26,0.25), 0 0 16px rgba(201,162,75,0.2);
  min-height: 46px; line-height: 1.4;
}
.btn-link:hover, .btn-link:focus-visible {
  transform: translateY(-2px); background: var(--crimson-deep);
  box-shadow: 0 10px 28px rgba(139,26,26,0.35), 0 0 28px rgba(201,162,75,0.35); outline: none;
}

/* ============================================================
   Section 7: Countdown (LIGHT)
   ============================================================ */
.countdown-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2vw, 16px); margin: 30px auto 0;
  max-width: 560px;
}
.count-cell {
  background: var(--white);
  border: 1.5px solid var(--gold-border);
  border-radius: 8px;
  padding: clamp(16px, 3.5vw, 24px) 4px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(92,15,15,0.1);
}
.count-num {
  display: block;
  font-family: var(--ff-heading); font-weight: 700;
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--crimson);
  line-height: 1; letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(139,26,26,0.2);
  transition: transform 0.3s var(--ease);
  position: relative; overflow: hidden;
  min-height: 1em;
}
.count-num.tick { animation: tickAnim 0.4s ease-out; }
@keyframes tickAnim {
  0% { transform: translateY(-6px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}
.count-label {
  display: block;
  font-family: var(--ff-ui); font-weight: 500; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dark); margin-top: 8px;
}
.countdown-ended {
  margin-top: 24px; font-style: italic;
  color: var(--crimson); max-width: 460px; margin-left: auto; margin-right: auto;
}

/* ============================================================
   Section 8: Gallery (DARK) - full-width masonry, zoom on hover
   ============================================================ */
.gallery-masonry {
  column-count: 1; column-gap: 14px;
  margin-top: 28px;
}
@media (min-width: 600px) { .gallery-masonry { column-count: 2; } }
@media (min-width: 980px) { .gallery-masonry { column-count: 3; } }
.g-item {
  position: relative; break-inside: avoid;
  margin-bottom: 14px; cursor: zoom-in;
  border: 2px solid var(--gold);
  padding: 6px; background: rgba(245,230,200,0.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.g-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5), 0 0 24px rgba(201,162,75,0.4);
}
.g-item img {
  width: 100%; display: block;
  filter: sepia(0.12) saturate(1.05) brightness(1.02) contrast(0.98);
  transition: transform 0.6s var(--ease), filter 0.5s var(--ease);
}
.g-item:hover img {
  transform: scale(1.08);
  filter: sepia(0) saturate(1.1) brightness(1.05);
}
.g-frame-corner {
  position: absolute; width: 16px; height: 16px;
  border: 1.5px solid var(--gold-bright); z-index: 2; pointer-events: none;
}
.g-frame-corner.tl { top: 2px; left: 2px; border-right: 0; border-bottom: 0; }
.g-frame-corner.tr { top: 2px; right: 2px; border-left: 0; border-bottom: 0; }
.g-frame-corner.bl { bottom: 2px; left: 2px; border-right: 0; border-top: 0; }
.g-frame-corner.br { bottom: 2px; right: 2px; border-left: 0; border-top: 0; }

/* lightbox with blur backdrop */
.lightbox {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(42,26,18,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 0.35s var(--ease);
  backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }
.lightbox.show { opacity: 1; }
.lightbox-figure { max-width: 92vw; max-height: 86vh; }
.lightbox-figure img {
  max-width: 100%; max-height: 86vh;
  border: 2px solid var(--gold); padding: 6px; background: var(--cream);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 32px rgba(201,162,75,0.3);
  transform: scale(0.94); transition: transform 0.35s var(--ease);
}
.lightbox.show .lightbox-figure img { transform: scale(1); }
.lightbox-close, .lightbox-nav {
  position: absolute; color: var(--cream-on-red);
  background: rgba(139,26,26,0.6); border: 1px solid var(--gold);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--crimson); transform: scale(1.08); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ============================================================
   Section 9 & 10: Forms (RSVP LIGHT, Wish DARK)
   ============================================================ */
.rsvp-sub {
  text-align: center; max-width: 480px; margin: 0 auto 24px;
  color: var(--tea); font-style: italic;
}
.section-dark .rsvp-sub { color: rgba(245,230,200,0.8); }
.rsvp-form, .wish-form {
  background: var(--white);
  border: 1px solid var(--gold-border);
  padding: clamp(22px, 5vw, 36px);
  box-shadow: 0 12px 36px rgba(92,15,15,0.1);
  border-radius: 8px;
  max-width: 520px; margin: 0 auto;
  position: relative;
  color: var(--ink);
}
.section-dark .rsvp-form, .section-dark .wish-form {
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 24px rgba(201,162,75,0.15);
}
.field { margin-bottom: 18px; }
.field label, .field legend {
  display: block;
  font-family: var(--ff-ui); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px;
  background: var(--cream);
  border: 1px solid var(--gold-border);
  border-radius: 4px; color: var(--ink);
  font-family: var(--ff-body); font-size: 1.05rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.18);
}
.field textarea { resize: vertical; min-height: 80px; }
fieldset.field { border: 0; }
.radio {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 6px;
  background: var(--cream); border: 1px solid var(--gold-border);
  border-radius: 4px; cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.radio:hover { border-color: var(--gold); }
.radio input { width: auto; accent-color: var(--crimson); }
.radio span { font-size: 1rem; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px;
  background: var(--crimson); color: var(--cream-on-red);
  font-family: var(--ff-ui); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1.5px solid var(--gold); border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-height: 50px;
  box-shadow: 0 6px 20px rgba(139,26,26,0.25), 0 0 16px rgba(201,162,75,0.2);
}
.btn-submit:hover, .btn-submit:focus-visible {
  transform: translateY(-2px); background: var(--crimson-deep);
  box-shadow: 0 10px 28px rgba(139,26,26,0.35), 0 0 28px rgba(201,162,75,0.3); outline: none;
}
.btn-submit:disabled { opacity: 0.7; cursor: wait; }
.btn-submit-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(245,230,200,0.3);
  border-top-color: var(--cream-on-red);
  animation: spin 0.8s linear infinite;
}
.form-success {
  margin-top: 16px; padding: 14px; text-align: center;
  background: rgba(201,162,75,0.1); border: 1px solid var(--gold);
  border-radius: 4px; color: var(--crimson-deep); font-style: italic;
}

/* wish list */
.wish-list {
  margin-top: 28px; max-width: 520px; margin-left: auto; margin-right: auto;
  max-height: 420px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding-right: 4px;
}
.wish-list::-webkit-scrollbar { width: 5px; }
.wish-list::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 3px; }
.wish-empty { text-align: center; color: rgba(245,230,200,0.7); font-style: italic; padding: 20px; }
.wish-card {
  background: rgba(245,230,200,0.06); border: 1px solid rgba(201,162,75,0.35);
  padding: 14px 16px; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  backdrop-filter: blur(2px);
}
.wish-card-name {
  font-family: var(--ff-heading); font-weight: 600;
  color: var(--gold-bright); font-size: 1.1rem; margin-bottom: 4px;
}
.wish-card-msg { color: var(--cream-on-red); line-height: 1.6; font-size: 1rem; }
.wish-card-time {
  font-family: var(--ff-ui); font-size: 0.7rem; color: var(--gold);
  margin-top: 6px; letter-spacing: 0.05em;
}

/* ============================================================
   Section 12: Wish Carousel (DARK)
   ============================================================ */
.section-wish-carousel .container { max-width: 1100px; }
.wish-carousel {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px;
}
.carousel-track-wrap {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.carousel-track {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 18px;
  scrollbar-width: none;
  outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { box-shadow: 0 0 0 2px var(--gold); border-radius: 6px; }

.carousel-card {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  background: rgba(245,230,200,0.06);
  border: 1px solid rgba(201,162,75,0.35);
  padding: 22px 24px;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  min-height: 180px;
  display: flex; flex-direction: column;
  position: relative;
}
.carousel-card::before {
  content: '\201C';
  position: absolute; top: -6px; left: 14px;
  font-family: var(--ff-heading);
  font-size: 3.4rem; line-height: 1;
  color: var(--gold-bright); opacity: 0.35;
  pointer-events: none;
}
.carousel-card-name {
  font-family: var(--ff-heading); font-weight: 600;
  color: var(--gold-bright); font-size: 1.15rem;
  margin-bottom: 8px; position: relative; z-index: 1;
}
.carousel-card-msg {
  color: var(--cream-on-red); line-height: 1.65;
  font-size: 1rem; flex: 1; position: relative; z-index: 1;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.carousel-card-time {
  font-family: var(--ff-ui); font-size: 0.7rem;
  color: var(--gold); margin-top: 12px;
  letter-spacing: 0.05em; position: relative; z-index: 1;
}

.carousel-btn {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(201,162,75,0.12);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.carousel-btn:hover, .carousel-btn:focus-visible {
  background: rgba(201,162,75,0.25);
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(201,162,75,0.4);
  outline: none;
}
.carousel-btn:disabled {
  opacity: 0.3; cursor: not-allowed;
  transform: none; box-shadow: none;
}
.carousel-empty {
  text-align: center; max-width: 520px; margin: 24px auto 0;
  color: rgba(245,230,200,0.7); font-style: italic; padding: 20px;
}

@media (max-width: 860px) {
  .carousel-card {
    flex: 0 0 calc((100% - 18px) / 2);
  }
}
@media (max-width: 620px) {
  .carousel-card { flex: 0 0 86%; }
  .carousel-btn { width: 38px; height: 38px; font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
  .carousel-btn { transition: none; }
}

/* ============================================================
   Section 11: Maps (LIGHT)
   ============================================================ */
.lokasi-addr {
  text-align: center; max-width: 460px; margin: 0 auto 22px;
  color: var(--ink); line-height: 1.7;
}
.map-wrap {
  position: relative; max-width: 640px; margin: 0 auto 24px;
  border: 2px solid var(--gold); padding: 6px; background: var(--white);
  border-radius: 4px; overflow: hidden;
  height: clamp(280px, 50vw, 400px);
  box-shadow: 0 8px 24px rgba(92,15,15,0.1);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-skeleton {
  position: absolute; inset: 6px;
  background: linear-gradient(90deg, var(--cream-2) 0%, var(--cream) 50%, var(--cream-2) 100%);
  background-size: 200% 100%; animation: shimmer 1.5s linear infinite;
  z-index: 1;
}
.map-skeleton.hide { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.map-btn { display: block; text-align: center; margin: 0 auto; max-width: 320px; }

/* ============================================================
   Section 12: Footer (DARK) - dramatic
   ============================================================ */
.section-footer {
  text-align: center; padding: clamp(80px, 16vw, 140px) 0;
  position: relative; overflow: hidden;
}
.footer-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% 30%, rgba(201,162,75,0.12), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(0,0,0,0.4), transparent 60%);
  pointer-events: none;
}
.footer-ornaments { position: absolute; inset: 0; pointer-events: none; }
.footer-orn {
  position: absolute; bottom: -8%; color: var(--gold);
  width: clamp(120px, 26vw, 220px); opacity: 0.3;
  filter: drop-shadow(0 0 16px rgba(201,162,75,0.3));
}
.footer-dragon { left: 2%; transform: rotate(-6deg); }
.footer-phoenix { right: 2%; transform: rotate(6deg) scaleX(-1); }
.footer-deco {
  font-family: var(--ff-cn); font-weight: 900;
  font-size: clamp(3.5rem, 12vw, 6rem);
  color: var(--gold-bright); text-shadow: var(--gold-glow);
  line-height: 1; margin-bottom: 24px;
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 24px rgba(201,162,75,0.5));
}
.footer-body {
  max-width: 460px; margin: 0 auto 24px;
  color: rgba(245,230,200,0.85); line-height: 1.85;
  position: relative; z-index: 2;
}
.footer-signature {
  font-family: var(--ff-script);
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  color: var(--gold-bright); margin-bottom: 10px;
  text-shadow: var(--gold-glow);
  position: relative; z-index: 2;
}
.footer-date {
  color: var(--cream-on-red); letter-spacing: 0.04em;
  font-size: clamp(1rem, 3vw, 1.15rem);
  position: relative; z-index: 2;
}

/* ============================================================
   MUSIC PLAYER (vinyl, prominent right-bottom with glow)
   ============================================================ */
.music-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 1100;
  width: 64px; height: 64px; border-radius: 50%;
  background: transparent;
  border: 0;
  display: none; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease);
  padding: 0;
}
.music-btn.show { display: flex; }
.music-btn:hover { transform: scale(1.1); }
.music-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.music-vinyl { position: relative; width: 64px; height: 64px; display: block; }
.vinyl-disc { width: 100%; height: 100%; display: block; }
.music-btn.playing .vinyl-disc { animation: vinylSpin 4s linear infinite; }
@keyframes vinylSpin { to { transform: rotate(360deg); } }
/* prominent glow */
.music-btn::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0; pointer-events: none;
}
.music-btn.playing::after {
  opacity: 0.7; animation: vinylRing 2s ease-out infinite;
  box-shadow: 0 0 24px rgba(201,162,75,0.5);
}
@keyframes vinylRing {
  0% { opacity: 0.7; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.3); }
}
.music-btn::before {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  box-shadow: 0 0 20px rgba(201,162,75,0.4);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.music-btn.playing::before { opacity: 1; }

/* ============================================================
   DOT NAV
   ============================================================ */
.dot-nav {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 900; display: none; flex-direction: column; gap: 10px;
}
@media (min-width: 880px) { .dot-nav.show { display: flex; } }
.dot-nav button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(201,162,75,0.35); border: 1px solid var(--gold-dark);
  padding: 0; transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.dot-nav button.active { background: var(--gold-bright); transform: scale(1.3); box-shadow: 0 0 8px rgba(201,162,75,0.5); }
.dot-nav button:hover { background: var(--gold-bright); }

/* ============================================================
   PETAL CANVAS (full screen fixed, always running)
   ============================================================ */
.petal-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none; z-index: 50;
  opacity: 0.7;
}

/* ============================================================
   ANIMATION SYSTEM: data-anim (one-shot, never reverse)
   ============================================================ */
[data-anim] { will-change: transform, opacity; }
[data-anim].animation-invisible { visibility: hidden; }
[data-anim].has-animate {
  animation-duration: var(--anim-dur);
  animation-timing-function: var(--anim-ease);
  animation-fill-mode: both;
}
[data-anim].anim-loop {
  animation-duration: 5000ms;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: both;
}
[data-anim].anim-paused { animation-play-state: paused; }

[data-anim="fade"].has-animate { animation-name: fadeAnim; }
[data-anim="fade-up"].has-animate { animation-name: fadeUp; }
[data-anim="fade-down"].has-animate { animation-name: fadeDown; }
[data-anim="fade-left"].has-animate { animation-name: fadeLeft; }
[data-anim="fade-right"].has-animate { animation-name: fadeRight; }
[data-anim="zoom-in"].has-animate { animation-name: zoomIn; }
[data-anim="zoom-out"].has-animate { animation-name: zoomOut; }
[data-anim="scale-x"].has-animate { animation-name: scaleX; }

/* 3D + bounce (GPU transforms) */
[data-anim="bounce-in"].has-animate { animation-name: kekBounceIn; animation-duration: 750ms; animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
[data-anim="flip-in-x"].has-animate { animation-name: kekFlipInX; animation-duration: 1000ms; animation-timing-function: ease-in; backface-visibility: visible; }
[data-anim="flip-in-y"].has-animate { animation-name: kekFlipInY; animation-duration: 1000ms; animation-timing-function: ease-in; backface-visibility: visible; }
[data-anim="roll-in"].has-animate { animation-name: kekRollIn; animation-duration: 1000ms; animation-timing-function: ease-out; }
[data-anim="slide-down"].has-animate { animation-name: kekSlideInDown; animation-duration: 600ms; animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
[data-anim="slide-up"].has-animate { animation-name: kekSlideInUp; animation-duration: 600ms; animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }

/* section reveal: scale + fade (cinematic, not slide) */
[data-anim="section-reveal"].has-animate { animation-name: sectionReveal; animation-duration: 1200ms; animation-timing-function: var(--ease-dramatic); }

[data-anim="flip-in-x"], [data-anim="flip-in-y"] { perspective: 400px; transform-style: preserve-3d; }

@keyframes fadeAnim { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp    { from { transform: translate3d(0, 60px, 0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }
@keyframes fadeDown  { from { transform: translate3d(0, -60px, 0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }
@keyframes fadeLeft  { from { transform: translate3d(60px, 0, 0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }
@keyframes fadeRight { from { transform: translate3d(-60px, 0, 0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }
@keyframes zoomIn    { from { transform: scale3d(0.6, 0.6, 0.6); opacity: 0; } to { transform: scale3d(1,1,1); opacity: 1; } }
@keyframes zoomOut   { from { transform: scale3d(1.5, 1.5, 1.5); opacity: 0; } to { transform: scale3d(1,1,1); opacity: 1; } }
@keyframes scaleX    { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* cinematic section reveal: scale 0.92 + fade, ease-out dramatic */
@keyframes sectionReveal {
  from { opacity: 0; transform: scale3d(0.92, 0.92, 0.92); }
  to   { opacity: 1; transform: scale3d(1, 1, 1); }
}

/* kekondangan GPU keyframes */
@keyframes kekBounceIn {
  0%   { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
  20%  { opacity: 1; transform: scale3d(1.1, 1.1, 1.1); }
  40%  { transform: scale3d(0.9, 0.9, 0.9); }
  60%  { transform: scale3d(1.03, 1.03, 1.03); }
  80%  { transform: scale3d(0.97, 0.97, 0.97); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}
@keyframes kekFlipInX {
  from { opacity: 0; transform: perspective(400px) rotate3d(1, 0, 0, 90deg); }
  to   { opacity: 1; transform: perspective(400px) rotate3d(1, 0, 0, 0deg); }
}
@keyframes kekFlipInY {
  from { opacity: 0; transform: perspective(400px) rotate3d(0, 1, 0, 90deg); }
  to   { opacity: 1; transform: perspective(400px) rotate3d(0, 1, 0, 0deg); }
}
@keyframes kekRollIn {
  from { opacity: 0; transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) rotate3d(0, 0, 1, 0deg); }
}
@keyframes kekSlideInDown {
  from { opacity: 0; transform: translate3d(0, -100%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes kekSlideInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ornament loop animations */
[data-anim-loop] { animation-duration: 5000ms; animation-iteration-count: infinite; animation-direction: alternate; animation-timing-function: ease-in-out; }
.cover-dragon[data-anim-loop], .cover-phoenix[data-anim-loop] { animation-name: floatY; }
.cover-phoenix[data-anim-loop] { animation-delay: -1.2s; }
.pembukaan-lotus-big[data-anim-loop] { animation-name: breath; }
.couple-beast[data-anim-loop] { animation-name: floatY; }
.couple-amp[data-anim-loop] { animation-name: breath; }
.acara-lantern[data-anim-loop] { animation-name: hangingSway; transform-origin: top center; }
.footer-orn[data-anim-loop] { animation-name: floatY; }
.ucapan-plum-full[data-anim-loop] { animation-name: breath; }
@keyframes floatY    { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes breath    { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes hangingSway {
  0%, 100% { transform: rotate(-5deg); }
  25%, 75% { transform: rotate(0deg); }
  50%      { transform: rotate(5deg); }
}
/* dragon/phoenix specific loop preserving base transform */
.cover-dragon[data-anim-loop] { animation-name: floatDragon; }
@keyframes floatDragon { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(-6deg) translateY(-14px); } }
.cover-phoenix[data-anim-loop] { animation-name: floatPhoenix; }
@keyframes floatPhoenix { from { transform: rotate(6deg) scaleX(-1) translateY(0); } to { transform: rotate(6deg) scaleX(-1) translateY(-14px); } }
.couple-dragon[data-anim-loop] { animation-name: floatDragon2; }
@keyframes floatDragon2 { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(-8deg) translateY(-12px); } }
.couple-phoenix[data-anim-loop] { animation-name: floatPhoenix2; }
@keyframes floatPhoenix2 { from { transform: rotate(8deg) scaleX(-1) translateY(0); } to { transform: rotate(8deg) scaleX(-1) translateY(-12px); } }

/* wobble layered entrance for big 囍 chars */
@keyframes wobble {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(5deg); }
  50%  { transform: rotate(-5deg); }
  75%  { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}
.cover-deco.has-animate,
.footer-deco.has-animate {
  animation-name: kekBounceIn, wobble;
  animation-duration: 750ms, 750ms;
  animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1), ease-in-out;
  animation-iteration-count: 1, 1;
}

/* twinkle for sparkles */
@keyframes ornTwinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { will-change: auto; }
  [data-anim].animation-invisible { visibility: visible; }
  .cover { transition: none; }
  .cover.cover-opened { transform: none; opacity: 0; visibility: hidden; }
  .petal-canvas { display: none; }
  .music-btn.playing .vinyl-disc { animation: none; }
  .music-btn.playing::after, .music-btn.playing::before { animation: none; opacity: 0; }
  .btn-open { animation: none; }
  .btn-open-shimmer { animation: none; }
  .count-num.tick { animation: none; }
  .cover-sparkle, .confetti-piece { animation: none !important; }
}

/* ============================================================
   SECTION DIVIDER (between some sections)
   ============================================================ */
.section-divider-orn {
  display: block; margin: 0 auto;
  max-width: clamp(160px, 40vw, 280px); height: auto; opacity: 0.5; color: var(--gold);
  padding: 20px 0; pointer-events: none;
}
