/* ===== TOKENS ===== */
:root {
  --maroon: #6f171b;
  --maroon-deep: #310a0d;
  --maroon-rich: #4a0f12;
  --gold: #c89b4b;
  --gold-light: #e6c483;
  --gold-soft: #ead6a9;
  --cream: #fff7e9;
  --paper: #f6ead7;
  --paper-warm: #f0dfc6;
  --leaf: #4a7d3e;
  --ink: #2a1410;
  --muted: #7b665c;
  --shadow-lg: 0 30px 80px rgba(49, 10, 13, .28);
  --shadow-md: 0 16px 42px rgba(49, 10, 13, .16);
  --shadow-sm: 0 8px 22px rgba(49, 10, 13, .12);
  --radius: 26px;

  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "Cinzel", Georgia, serif;
  --font-script: "Great Vibes", "Cormorant Garamond", cursive;
  --font-arabic: "Amiri", "Traditional Arabic", serif;

  --ease-soft: cubic-bezier(.7, 0, .15, 1);
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(200, 155, 75, .22), transparent 30%),
    radial-gradient(circle at 82% 86%, rgba(111, 23, 27, .18), transparent 30%),
    linear-gradient(135deg, #fff7ea 0%, #f0dfc6 46%, #e9cfaa 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%236f171b' stroke-opacity='.07' stroke-width='1'><path d='M0 60 Q30 30 60 60 T120 60'/><path d='M0 30 Q30 0 60 30 T120 30'/><path d='M0 90 Q30 60 60 90 T120 90'/></g></svg>");
  background-attachment: fixed;
}
body.is-locked { overflow: hidden; height: 100vh; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== PAMPAS GRASS yang bergoyang lembut ===== */
.pampas {
  position: absolute;
  width: 130px; height: 300px;
  z-index: 3;
  pointer-events: none;
  bottom: -20px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.35));
  transform-origin: 50% 95%;
  animation: pampasSway 5s ease-in-out infinite alternate;
}
.pampas--l { left: -30px; animation-delay: -1.2s; }
.pampas--r { right: -30px; transform: scaleX(-1); animation-name: pampasSwayR; }
@keyframes pampasSway {
  from { transform: rotate(-3deg); }
  to   { transform: rotate(4deg);  }
}
@keyframes pampasSwayR {
  from { transform: scaleX(-1) rotate(-3deg); }
  to   { transform: scaleX(-1) rotate(4deg);  }
}

/* ===== KUPU-KUPU (CSS animation, ala Lottie tapi pure CSS) ===== */
.butterflies {
  position: fixed; inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.bfly {
  position: absolute;
  width: 56px; height: 42px;
  will-change: transform;
  filter: drop-shadow(0 8px 14px rgba(49,10,13,.35));
}
.bfly__svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Sayap berkepak (left/right wing flap independently) */
.bfly__wing {
  transform-box: fill-box;
  animation: wingFlap .22s ease-in-out infinite alternate;
}
.bfly__wing--l { transform-origin: 100% 50%; }
.bfly__wing--r { transform-origin: 0%   50%; }
@keyframes wingFlap {
  from { transform: scaleX(1); }
  to   { transform: scaleX(.18); }
}

/* Body bergoyang halus mengikuti flight */
.bfly__body {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: bodyTilt .8s ease-in-out infinite alternate;
}
@keyframes bodyTilt {
  from { transform: rotate(-3deg); }
  to   { transform: rotate(3deg);  }
}

/* === Flight paths === */
.bfly--1 {
  top: 18%; left: 0;
  animation: bflyPath1 26s linear infinite;
}
.bfly--2 {
  top: 60%; left: 0;
  width: 44px; height: 33px;
  animation: bflyPath2 32s linear infinite;
  animation-delay: -8s;
}
.bfly--3 {
  top: 38%; left: 0;
  width: 64px; height: 48px;
  animation: bflyPath3 30s linear infinite;
  animation-delay: -16s;
}

/* Path 1: arah kanan dengan zig-zag halus */
@keyframes bflyPath1 {
  0%   { transform: translate(-15vw, 0)     rotate(-6deg); opacity: 0; }
  6%   { opacity: 1; }
  20%  { transform: translate(22vw, -50px)  rotate(8deg);  }
  40%  { transform: translate(45vw, 30px)   rotate(-4deg); }
  60%  { transform: translate(68vw, -40px)  rotate(10deg); }
  80%  { transform: translate(90vw, 20px)   rotate(-6deg); }
  94%  { opacity: 1; }
  100% { transform: translate(115vw, -10px) rotate(6deg);  opacity: 0; }
}

/* Path 2: lintasan figure-8 halus, dari kanan ke kiri */
@keyframes bflyPath2 {
  0%   { transform: translate(110vw, 0)     rotate(8deg);   opacity: 0; }
  5%   { opacity: 1; }
  18%  { transform: translate(86vw, -36px)  rotate(-10deg); }
  35%  { transform: translate(62vw, 40px)   rotate(6deg);   }
  50%  { transform: translate(48vw, -20px)  rotate(-8deg);  }
  68%  { transform: translate(30vw, 28px)   rotate(10deg);  }
  85%  { transform: translate(12vw, -32px)  rotate(-6deg);  }
  95%  { opacity: 1; }
  100% { transform: translate(-15vw, 14px)  rotate(8deg);   opacity: 0; }
}

/* Path 3: spiral lambat dari kiri-atas ke kanan-bawah */
@keyframes bflyPath3 {
  0%   { transform: translate(-12vw, -10px) rotate(0deg) scale(.85); opacity: 0; }
  8%   { opacity: 1; }
  25%  { transform: translate(25vw, 40px)   rotate(8deg)  scale(.95); }
  50%  { transform: translate(50vw, -30px)  rotate(-6deg) scale(1);   }
  75%  { transform: translate(75vw, 50px)   rotate(10deg) scale(.9);  }
  92%  { opacity: 1; }
  100% { transform: translate(115vw, 0)     rotate(-4deg) scale(.85); opacity: 0; }
}

/* Pada desktop, jaga kupu-kupu tetap melintas di seluruh viewport */
@media (min-width: 920px) {
  .butterflies { z-index: 5; }
  .bfly--1 { top: 12%; }
  .bfly--2 { top: 50%; }
  .bfly--3 { top: 75%; }
}

/* ===== Hujan Kelopak (SVG kelopak satu per satu, transparent murni) ===== */
.petals {
  position: fixed; inset: 0; pointer-events: none; z-index: 4; overflow: hidden;
  /* Hujan daun muncul saat awal, lalu fade-out perlahan supaya tidak mengganggu baca */
  animation: petalsCycle 32s ease-in-out 6s forwards;
}
@keyframes petalsCycle {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
.petals .petal {
  position: absolute; top: -60px;
  width: 20px; height: 26px;
  opacity: .9;
  filter: drop-shadow(0 4px 6px rgba(49,10,13,.35));
  animation: petalFall linear infinite;
  will-change: transform;
  transform-origin: 50% 50%;
}
.petals .p-gold { filter: drop-shadow(0 4px 8px rgba(200,155,75,.55)); }
.petals .p-leaf { opacity: .75; }
.petals .p-bud  { width: 16px; height: 16px; }

.petals .petal:nth-child(1)  { left: 4%;  width: 18px; animation-duration: 14s; animation-delay: 0s;  }
.petals .petal:nth-child(2)  { left: 11%; width: 14px; animation-duration: 18s; animation-delay: 3s; opacity: .65; }
.petals .petal:nth-child(3)  { left: 17%; width: 22px; animation-duration: 12s; animation-delay: 7s; }
.petals .petal:nth-child(4)  { left: 23%; width: 16px; animation-duration: 20s; animation-delay: 1s; }
.petals .petal:nth-child(5)  { left: 29%; width: 18px; animation-duration: 16s; animation-delay: 5s; }
.petals .petal:nth-child(6)  { left: 36%; width: 24px; animation-duration: 13s; animation-delay: 9s; }
.petals .petal:nth-child(7)  { left: 42%; width: 14px; animation-duration: 19s; animation-delay: 2s; opacity: .7; }
.petals .petal:nth-child(8)  { left: 48%; width: 16px; animation-duration: 15s; animation-delay: 6s; }
.petals .petal:nth-child(9)  { left: 54%; width: 20px; animation-duration: 17s; animation-delay: 10s; }
.petals .petal:nth-child(10) { left: 60%; width: 22px; animation-duration: 14s; animation-delay: 4s; }
.petals .petal:nth-child(11) { left: 66%; width: 18px; animation-duration: 21s; animation-delay: 8s; opacity: .7; }
.petals .petal:nth-child(12) { left: 72%; width: 16px; animation-duration: 16s; animation-delay: 11s; }
.petals .petal:nth-child(13) { left: 78%; width: 20px; animation-duration: 13s; animation-delay: 0s; }
.petals .petal:nth-child(14) { left: 84%; width: 14px; animation-duration: 22s; animation-delay: 15s; opacity: .6; }
.petals .petal:nth-child(15) { left: 90%; width: 18px; animation-duration: 17s; animation-delay: 6s; }
.petals .petal:nth-child(16) { left: 95%; width: 16px; animation-duration: 20s; animation-delay: 12s; }
.petals .petal:nth-child(17) { left: 8%;  width: 14px; animation-duration: 25s; animation-delay: 18s; opacity: .55; }
.petals .petal:nth-child(18) { left: 75%; width: 12px; animation-duration: 24s; animation-delay: 20s; opacity: .55; }
@keyframes petalFall {
  0%   { transform: translateY(-10vh) translateX(0)    rotate(0deg);   opacity: 0; }
  10%  { opacity: .85; }
  25%  { transform: translateY(25vh)  translateX(20px) rotate(120deg); }
  50%  { transform: translateY(50vh)  translateX(-25px) rotate(220deg); }
  75%  { transform: translateY(75vh)  translateX(15px) rotate(320deg); }
  90%  { opacity: .85; }
  100% { transform: translateY(115vh) translateX(-10px) rotate(420deg); opacity: 0; }
}

/* ===== Desktop side (hanya tampil di desktop, hidden di mobile) ===== */
.desktop-side { display: none; }
@media (max-width: 919px) {
  .desktop-side { display: none !important; }
}
.desktop-side__bg {
  position: absolute; inset: 0;
  background:
    url("assets/photos/photo-01.jpg") center 30% / cover no-repeat;
  filter: saturate(.95) brightness(.78);
}
.desktop-side__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,247,233,.08), transparent 40%),
    radial-gradient(ellipse at 50% 50%, transparent 25%, rgba(20,4,6,.45) 95%);
  pointer-events: none;
}
/* Corner ornament emas tipis */
.ds-corner {
  position: absolute; width: 110px; height: 110px;
  color: var(--gold);
  opacity: .55;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.4));
  z-index: 3;
}
.ds-corner--tl { top: 24px; left: 24px; }
.ds-corner--tr { top: 24px; right: 24px; transform: scaleX(-1); }
.ds-corner--bl { bottom: 24px; left: 24px; transform: scaleY(-1); }
.ds-corner--br { bottom: 24px; right: 24px; transform: scale(-1,-1); }
.desktop-side__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(49,10,13,.92) 0%,
      rgba(49,10,13,.78) 18%,
      rgba(49,10,13,.55) 38%,
      rgba(49,10,13,.32) 58%,
      rgba(49,10,13,.45) 78%,
      rgba(49,10,13,.78) 100%);
}
.desktop-side__art {
  position: absolute; left: 6vw; top: 50%;
  transform: translateY(-50%);
  z-index: 2; color: var(--cream);
  text-align: left; max-width: 38vw;
  padding-right: 60px;
}
.desktop-side__art .overline.light { animation: fadeUpSoft 1s .2s ease both; }
.desktop-side__art .display-name span:nth-child(1) { display: inline-block; animation: fadeUpSoft 1s .5s ease both; }
.desktop-side__art .display-name .amp { display: inline-block; animation: fadeUpSoft 1s .8s ease both; }
.desktop-side__art .display-name span:nth-child(3) { display: inline-block; animation: fadeUpSoft 1s 1.1s ease both; }
.desktop-side__art .divider.light { animation: fadeUpSoft 1s 1.4s ease both; }
.desktop-side__art .display-date.light { animation: fadeUpSoft 1s 1.6s ease both; }
.desktop-side__art .display-place.light { animation: fadeUpSoft 1s 1.8s ease both; }
.desktop-side__art .ds-flora--top { animation: fadeUpSoft 1.2s 0s ease both; }
.desktop-side__art .ds-flora--bot { animation: fadeUpSoft 1.2s 2s ease both; }
.ds-flora { display: block; width: 130px; height: 180px; color: var(--gold); margin: 0; filter: drop-shadow(0 10px 20px rgba(0,0,0,.45)); }
.ds-flora--top { transform: rotate(-12deg); margin-bottom: 12px; }
.ds-flora--bot { transform: rotate(168deg) scale(.7); margin-top: 16px; opacity: .8; }

/* ===== Phone container ===== */
.phone {
  position: relative; z-index: 2;
  width: 100%; max-width: 100%;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ===== Typography ===== */
.serif, .display-name, .cover__title, .closing__name { font-family: var(--font-serif); font-weight: 500; }
h2.serif, .cover__title { line-height: 1.05; margin: .4em 0; }

.display-name {
  font-size: clamp(50px, 9vw, 96px);
  line-height: .92;
  color: var(--maroon);
  margin: .1em 0;
  font-weight: 500;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.display-name span { display: block; }
.display-name .amp { color: var(--gold); font-family: var(--font-script); font-size: .65em; line-height: 1; }
.display-name.light { color: #fff8eb; text-shadow: 0 4px 18px rgba(0,0,0,.4); }
.display-name.light .amp { color: var(--gold-light); }

.display-date { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.display-date.light, .display-place.light { color: #fff8eb; }
.display-place { color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }

.overline, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; font-size: 11px;
}
.overline.light { color: var(--gold-light); }
.overline::before, .overline::after,
.kicker::before, .kicker::after {
  content: ""; width: 28px; height: 1px; background: currentColor;
}

.divider { display: block; width: 200px; height: 22px; margin: 18px auto; color: var(--gold); }
.divider.light { color: var(--gold-light); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
  position: relative; overflow: hidden;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  color: #fff8eb;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon) 45%, var(--gold) 130%);
  box-shadow: 0 14px 30px rgba(111, 23, 27, .35);
}
.btn--primary:hover { box-shadow: 0 20px 38px rgba(111, 23, 27, .45); }
.btn--ghost-light {
  color: #fff8eb;
  background: rgba(255, 247, 233, .14);
  border: 1px solid rgba(234, 214, 169, .5);
  backdrop-filter: blur(6px);
}
.btn--shimmer::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  animation: shimmer 2.4s infinite;
}
@keyframes shimmer { 0% { left: -120%; } 60%, 100% { left: 140%; } }

/* ===== COVER ===== */
.cover {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 32px 22px 28px;
  overflow: hidden; color: #fff8eb;
  isolation: isolate;
}
.cover__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 22%;
  filter: saturate(1) brightness(.92);
  animation: kenBurns 18s ease-in-out infinite alternate;
  transition: opacity .45s ease;
  z-index: 0;
}
/* Hanya sembunyikan foto cover ketika video benar-benar PLAYING / DONE.
   Saat masih loading, biarkan foto tetap terlihat (tidak blank). */
.cover:has(.cover__video.is-playing) .cover__bg,
.cover:has(.cover__video.is-done) .cover__bg { opacity: 0; }
/* Video sinematik (main sekali setelah klik Buka Undangan) */
.cover__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
  filter: saturate(.95) brightness(.9);
}
.cover__video.is-playing { opacity: 1; }
.cover__video.is-done     { opacity: 0; }

/* Foto poster mempelai (overlay setelah video selesai) */
.cover__poster {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 5;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}
.cover__poster.is-on { opacity: 1; }
.cover__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20,4,6,.10) 0%,
      rgba(20,4,6,.05) 35%,
      rgba(20,4,6,.18) 52%,
      rgba(20,4,6,.55) 72%,
      rgba(20,4,6,.88) 100%);
  z-index: 2;
}
.cover__sparkle {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,231,180,.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 75% 22%, rgba(255,231,180,.8), transparent 60%),
    radial-gradient(2px 2px at 88% 60%, rgba(255,231,180,.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 75%, rgba(255,231,180,.8), transparent 60%),
    radial-gradient(2px 2px at 60% 85%, rgba(255,231,180,.9), transparent 60%);
  animation: twinkle 3.5s ease-in-out infinite alternate;
  z-index: 3;
}
@keyframes twinkle { from { opacity: .3; } to { opacity: 1; } }
@keyframes kenBurns { from { transform: scale(1.08) translate(0,0); } to { transform: scale(1.18) translate(-1%, -2%); } }
@keyframes desktopPhotoFloat {
  from { transform: translate3d(-1.2%, 0, 0) scale(1.01); }
  to { transform: translate3d(1.2%, -1%, 0) scale(1.04); }
}
@keyframes desktopMountainDrift {
  from { transform: translate3d(-1%, 1%, 0) scale(1.02); }
  to { transform: translate3d(1%, -1%, 0) scale(1.06); }
}

/* ===== SUNDA PAINTED SCENE ===== */
.sunda-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: .95;
  mix-blend-mode: normal;
}
.sunda-scene--cover {
  opacity: .96;
  filter: saturate(1.02) sepia(.06);
}
.sunda-scene--hero {
  opacity: .9;
  filter: saturate(1.02) sepia(.04);
}
.scene__sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,249,230,.95) 0%, rgba(230,238,229,.72) 35%, rgba(191,212,209,.56) 67%, rgba(113,84,63,.28) 100%),
    radial-gradient(circle at 22% 18%, rgba(255,238,188,.9), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(194,222,226,.75), transparent 28%);
}
.scene__sun {
  position: absolute;
  top: 10%;
  right: 11%;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,231,163,.85), rgba(255,231,163,.22) 48%, transparent 70%);
  animation: sceneGlow 6s ease-in-out infinite alternate;
}
.scene__mount {
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: 28%;
  height: 46%;
  opacity: .58;
  clip-path: polygon(0 80%, 10% 58%, 19% 66%, 29% 36%, 40% 58%, 51% 24%, 62% 56%, 74% 34%, 86% 62%, 100% 44%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(62,78,74,.32), rgba(29,52,50,.62));
  animation: mountainDrift 18s ease-in-out infinite alternate;
}
.scene__mount--far {
  bottom: 36%;
  opacity: .26;
  transform: scale(1.12);
  filter: blur(1px);
  animation-duration: 26s;
}
.scene__mount--near {
  background: linear-gradient(180deg, rgba(77,91,75,.28), rgba(32,56,48,.66));
}
.scene__trees {
  position: absolute;
  bottom: 22%;
  width: 58%;
  height: 38%;
  opacity: .62;
  background:
    radial-gradient(ellipse at 20% 70%, rgba(24,55,48,.84) 0 18%, transparent 19%),
    radial-gradient(ellipse at 38% 54%, rgba(24,55,48,.8) 0 20%, transparent 21%),
    radial-gradient(ellipse at 57% 66%, rgba(24,55,48,.74) 0 18%, transparent 19%),
    radial-gradient(ellipse at 75% 48%, rgba(24,55,48,.72) 0 16%, transparent 17%);
  filter: blur(.15px);
  animation: treeBreathe 4.8s ease-in-out infinite alternate;
}
.scene__trees--left {
  left: -17%;
}
.scene__trees--right {
  right: -22%;
  transform: scaleX(-1);
  animation: treeBreatheRight 4.8s ease-in-out infinite alternate;
  animation-delay: -1.2s;
}
.scene__waterfall {
  position: absolute;
  left: 44%;
  bottom: 29%;
  width: 84px;
  height: 260px;
  transform: translateX(-50%) rotate(2deg);
  opacity: .72;
  border-radius: 45% 45% 18% 18%;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.62) 14%, rgba(143,194,205,.58) 38%, rgba(255,255,255,.76) 53%, rgba(126,179,196,.5) 75%, transparent 92%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.86) 0 8px, rgba(111,170,190,.35) 9px 19px);
  background-size: 100% 100%, 100% 46px;
  animation: waterfallFlow 1.25s linear infinite;
  filter: blur(.15px) drop-shadow(0 18px 22px rgba(255,255,255,.28));
}
.scene__waterfall span {
  position: absolute;
  top: 7%;
  bottom: 0;
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(134,193,207,.18));
  opacity: .52;
  animation: waterRibbon 2.4s ease-in-out infinite alternate;
}
.scene__waterfall span:nth-child(1) { left: 14%; animation-delay: -.4s; }
.scene__waterfall span:nth-child(2) { left: 42%; width: 24px; animation-delay: -1s; }
.scene__waterfall span:nth-child(3) { right: 12%; animation-delay: -.1s; }
.scene__mist {
  position: absolute;
  left: 28%;
  right: 18%;
  bottom: 28%;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.68), rgba(255,255,255,.24) 46%, transparent 72%);
  filter: blur(10px);
  animation: mistFloat 8s ease-in-out infinite alternate;
}
.scene__mist--two {
  left: 10%;
  right: 3%;
  bottom: 18%;
  height: 180px;
  opacity: .65;
  animation-duration: 11s;
  animation-delay: -4s;
}
.scene__lake {
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -3%;
  height: 35%;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255,255,255,.82), transparent 24%),
    repeating-linear-gradient(175deg, rgba(255,255,255,.42) 0 4px, rgba(94,151,170,.14) 5px 13px, transparent 14px 24px),
    linear-gradient(180deg, rgba(135,189,196,.46), rgba(96,143,147,.52));
  border-radius: 50% 50% 0 0 / 18% 18% 0 0;
  animation: lakeMove 4.4s ease-in-out infinite alternate;
}
.scene__flora {
  position: absolute;
  bottom: -7%;
  width: 54%;
  max-width: none;
  opacity: .8;
  filter: drop-shadow(0 18px 24px rgba(49,10,13,.3));
  animation: floraSway 5s ease-in-out infinite alternate;
}
.scene__flora--left {
  left: -24%;
  transform-origin: 30% 100%;
}
.scene__flora--right {
  right: -24%;
  transform: scaleX(-1);
  transform-origin: 70% 100%;
  animation: floraSwayRight 5s ease-in-out infinite alternate;
  animation-delay: -1.8s;
}
.scene__butterfly {
  position: absolute;
  width: 54px;
  height: 42px;
  z-index: 5;
  color: var(--gold-light);
  filter: drop-shadow(0 7px 8px rgba(49,10,13,.34));
  transform-origin: center;
}
.scene__butterfly--one {
  left: 8%;
  top: 30%;
  animation: butterflyPathOne 12s ease-in-out infinite;
}
.scene__butterfly--two {
  right: 8%;
  top: 52%;
  width: 44px;
  opacity: .85;
  animation: butterflyPathTwo 14s ease-in-out infinite;
}
.scene__butterfly--three {
  left: 52%;
  top: 22%;
  width: 38px;
  opacity: .72;
  animation: butterflyPathThree 16s ease-in-out infinite;
}
.bfly__wing--l {
  transform-box: fill-box;
  transform-origin: 100% 50%;
  animation: wingLeft .28s ease-in-out infinite alternate;
}
.bfly__wing--r {
  transform-box: fill-box;
  transform-origin: 0% 50%;
  animation: wingRight .28s ease-in-out infinite alternate;
}
@keyframes sceneGlow { from { transform: scale(.94); opacity: .55; } to { transform: scale(1.08); opacity: .92; } }
@keyframes mountainDrift { from { transform: translateX(-1.2%) scale(1.05); } to { transform: translateX(1.2%) scale(1.08); } }
@keyframes treeBreathe { from { transform: translateY(0) scale(1); } to { transform: translateY(4px) scale(1.02); } }
@keyframes treeBreatheRight { from { transform: translateY(0) scaleX(-1) scale(1); } to { transform: translateY(4px) scaleX(-1) scale(1.02); } }
@keyframes waterfallFlow { to { background-position: 0 0, 0 46px; } }
@keyframes waterRibbon { from { transform: translateX(-4px) scaleX(.82); opacity: .32; } to { transform: translateX(5px) scaleX(1.1); opacity: .72; } }
@keyframes mistFloat { from { transform: translateX(-8%) translateY(0) scale(.94); opacity: .44; } to { transform: translateX(8%) translateY(-8px) scale(1.08); opacity: .78; } }
@keyframes lakeMove { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 42px 0, 0 0; } }
@keyframes floraSway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes floraSwayRight { from { transform: scaleX(-1) rotate(-2deg); } to { transform: scaleX(-1) rotate(2deg); } }
@keyframes butterflyPathOne {
  0%, 100% { transform: translate(0, 0) rotate(-10deg) scale(.85); }
  26% { transform: translate(105px, -48px) rotate(9deg) scale(1); }
  55% { transform: translate(205px, 24px) rotate(-7deg) scale(.92); }
  78% { transform: translate(96px, 70px) rotate(12deg) scale(1.06); }
}
@keyframes butterflyPathTwo {
  0%, 100% { transform: translate(0, 0) rotate(8deg) scaleX(-1); }
  30% { transform: translate(-85px, -32px) rotate(-10deg) scaleX(-1); }
  60% { transform: translate(-190px, 22px) rotate(12deg) scaleX(-1); }
  82% { transform: translate(-72px, 60px) rotate(-7deg) scaleX(-1); }
}
@keyframes butterflyPathThree {
  0%, 100% { transform: translate(0, 0) rotate(6deg) scale(.75); }
  38% { transform: translate(-70px, 46px) rotate(-8deg) scale(.96); }
  70% { transform: translate(50px, 78px) rotate(14deg) scale(.82); }
}
@keyframes wingLeft { from { transform: rotateY(12deg); } to { transform: rotateY(64deg); } }
@keyframes wingRight { from { transform: rotateY(-12deg); } to { transform: rotateY(-64deg); } }

.corner { position: absolute; width: 90px; height: 90px; color: var(--gold-light); opacity: .85; z-index: 2; }
.corner--tl { top: 14px; left: 14px; }
.corner--tr { top: 14px; right: 14px; transform: scaleX(-1); }
.corner--bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.corner--br { bottom: 14px; right: 14px; transform: scale(-1, -1); }

.cover__inner {
  position: relative; z-index: 6;
  isolation: isolate;
  text-align: center; max-width: 380px; width: 100%;
  padding-bottom: 50px;
  margin-top: auto;
  animation: fadeUp 1s ease both;
}
@media (min-width: 920px) {
  .cover__inner { padding-bottom: 160px; }
}
/* Tidak ada kartu backdrop — biarkan wajah mempelai pada foto terlihat */
.cover__inner::before { content: none; display: none; }

.cover__kicker,
.cover__title,
.cover__date,
.cover__place,
.cover__inner .bismillah {
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.75);
}

.bismillah {
  font-family: var(--font-arabic);
  font-size: 22px; color: var(--gold-light);
  margin: 0 0 10px;
  animation: glow 4s ease-in-out infinite alternate;
}
.cover__inner .bismillah {
  font-size: 17px;
  margin: 0 0 10px;
  animation: fadeUpSoft 1.1s .1s ease both;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
@keyframes glow {
  from { text-shadow: 0 0 6px rgba(230,196,131,.4); }
  to   { text-shadow: 0 0 18px rgba(230,196,131,.85), 0 0 30px rgba(230,196,131,.4); }
}
.cover__kicker {
  font-family: var(--font-script);
  font-size: 22px; color: var(--gold-light);
  margin: 6px 0 10px; line-height: 1;
}
.cover__title {
  font-size: clamp(30px, 7.6vw, 46px);
  line-height: 1.08; margin: 6px 0 8px; color: #fff8eb;
  font-weight: 500;
}
.cover__title span { display: block; }
.cover__title .amp {
  font-family: var(--font-script); color: var(--gold-light);
  font-size: .72em; margin: 2px 0; line-height: 1;
}
.cover__title .t1 { animation: fadeUpSoft 1s .4s ease both; }
.cover__title .t2 { animation: fadeUpSoft 1s .7s ease both; }
.cover__title .t3 { animation: fadeUpSoft 1s 1.0s ease both; }
@keyframes fadeUpSoft {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.cover__kicker { animation: fadeUpSoft 1s .25s ease both; }
.cover__date {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-light); margin: 14px 0 8px; font-weight: 700;
  animation: fadeUpSoft 1s 1.3s ease both;
}
.cover__place {
  max-width: 320px;
  margin: 0 auto 8px;
  color: #fff8eb;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.7;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(49, 10, 13, .72);
  animation: fadeUpSoft 1s 1.5s ease both;
}
.cover__inner .divider {
  margin: 8px auto 6px;
  animation: fadeUpSoft 1s 1.15s ease both;
}

.guest-card {
  margin-top: 20px;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 247, 233, .14), rgba(255, 247, 233, .06));
  border: 1px solid rgba(234, 214, 169, .35);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  animation: fadeUp 1s 1.6s ease both;
}
.guest-card h2 { font-family: var(--font-serif); font-size: 28px; margin: 6px 0 10px; color: var(--gold-light); font-weight: 500; }
.guest-card__note { color: rgba(255, 247, 233, .85); font-size: 13px; line-height: 1.7; margin: 0 0 18px; }

/* ===== BLOOM (SVG bouquet di kiri-kanan section, mekar pas section terbuka) ===== */
.bloom {
  position: absolute;
  width: 180px; height: 260px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform-origin: 50% 100%;
  transition: opacity 1.4s ease, transform 1.6s var(--ease-soft);
  filter: drop-shadow(0 10px 20px rgba(49,10,13,.35));
}
.bloom--l  { left: -50px;  bottom: -30px; transform: rotate(-12deg) translateY(40px) scale(.4); }
.bloom--r  { right: -50px; bottom: -30px; transform: rotate(12deg)  translateY(40px) scale(.4) scaleX(-1); }
.bloom--lt { left: -50px;  top: -30px;    transform: rotate(168deg) translateY(40px) scale(.4); }
.bloom--rt { right: -50px; top: -30px;    transform: rotate(192deg) translateY(40px) scale(.4) scaleX(-1); }
.bloom--cover-l { left: -40px; bottom: 6%; width: 170px; height: 240px; transform: rotate(-12deg) scale(.4); transition: opacity 2s ease, transform 2.2s var(--ease-soft); z-index: 4; }
.bloom--cover-r { right: -40px; bottom: 6%; width: 170px; height: 240px; transform: rotate(12deg) scale(.4) scaleX(-1); transition: opacity 2s ease, transform 2.2s var(--ease-soft); z-index: 4; }

.is-visible > .bloom--l  { opacity: 1; transform: rotate(-12deg) translateY(0) scale(1); }
.is-visible > .bloom--r  { opacity: 1; transform: rotate(12deg)  translateY(0) scale(1) scaleX(-1); }
.is-visible > .bloom--lt { opacity: 1; transform: rotate(168deg) translateY(0) scale(1); }
.is-visible > .bloom--rt { opacity: 1; transform: rotate(192deg) translateY(0) scale(1) scaleX(-1); }

.cover.is-loaded .bloom--cover-l { opacity: 1; transform: rotate(-12deg) scale(1); }
.cover.is-loaded .bloom--cover-r { opacity: 1; transform: rotate(12deg) scale(1) scaleX(-1); }

/* ===== GATE / PINTU GERBANG BATIK ===== */
.gate {
  position: absolute; inset: 0;
  z-index: 20;
  display: flex;
  pointer-events: auto;
  transition: opacity .6s 1.6s ease;
}
.gate.is-open { pointer-events: none; opacity: 0; visibility: hidden; transition-delay: 1.8s; }
.gate__panel {
  flex: 1; position: relative;
  background:
    radial-gradient(circle at 50% 30%, rgba(200,155,75,.12), transparent 36%),
    linear-gradient(180deg, rgba(49,10,13,.76), rgba(74,15,18,.68));
  transition: transform 2.2s var(--ease-soft);
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(0,0,0,.46);
  backdrop-filter: blur(1.4px) saturate(1.08);
}
.gate__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .34; }
.gate__edge {
  position: absolute; top: 0; bottom: 0; right: 0; width: 14px;
  background: linear-gradient(90deg, transparent, rgba(200,155,75,.5), var(--gold), rgba(200,155,75,.5), transparent);
  box-shadow: 0 0 30px rgba(200,155,75,.6);
}
.gate__edge--r { right: auto; left: 0; }
.gate__rose {
  position: absolute; bottom: 6%; right: -30px;
  width: 140px; height: 200px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
  z-index: 2;
}
.gate__rose--r { right: auto; left: -30px; transform: rotate(8deg) scaleX(-1); }
.gate__kujang {
  position: absolute; top: 14%; right: 18%;
  width: 36px; height: 100px;
  opacity: .9;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
  animation: swayK 3s ease-in-out infinite alternate;
}
.gate__kujang--r { right: auto; left: 18%; transform: scaleX(-1); }
@keyframes swayK { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.gate__panel--right .gate__kujang { animation-direction: alternate-reverse; }
.gate__living-scene {
  z-index: 5;
  opacity: .38;
  mix-blend-mode: normal;
  filter: none;
}
.gate__living-scene .scene__sun {
  right: 17%;
  top: 12%;
}
.gate__living-scene .scene__waterfall {
  left: 53%;
  bottom: 30%;
  opacity: .85;
}
.gate__living-scene .scene__lake {
  opacity: .8;
}
.gate__living-scene .scene__flora {
  display: none;
}
.gate__living-scene .scene__butterfly {
  opacity: .95;
}
/* CTA welcome card di tengah gate (TOMBOL ADA DI SINI - bisa diklik) */
.gate__cta {
  position: absolute;
  left: 50%; top: 43%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: min(360px, calc(100% - 40px));
  text-align: center;
  color: var(--cream);
  transition: opacity .5s ease, transform .8s var(--ease-soft);
  padding: 0 10px;
  pointer-events: auto;
}
.gate__cta .bismillah { font-size: 20px; margin: 0 0 8px; }
.gate__cta-name {
  font-family: var(--font-serif);
  font-size: clamp(40px, 9vw, 56px);
  color: var(--gold-light);
  line-height: 1; margin: 4px 0 6px; font-weight: 500;
  text-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.gate__cta-date { color: var(--gold-light); letter-spacing: .26em; text-transform: uppercase; font-size: 11px; font-weight: 700; margin: 4px 0 18px; }
.gate__cta-card {
  margin-top: 10px;
  padding: 16px 18px 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(49,10,13,.76), rgba(111,23,27,.58));
  border: 1px solid rgba(234, 214, 169, .62);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,.52), inset 0 0 34px rgba(255,247,233,.06);
  opacity: 1;
}
.gate__cta-card h3 { font-size: 24px; color: var(--gold-light); margin: 6px 0 8px; font-weight: 500; }
.gate__cta-note { color: rgba(255,247,233,.85); font-size: 12.5px; line-height: 1.65; margin: 0 0 16px; }
.gate__cta .btn { animation: fadeUp 1s .9s ease both; }

.gate.is-open .gate__panel--left  { transform: translateX(-105%); }
.gate.is-open .gate__panel--right { transform: translateX(105%); }
.gate.is-open .gate__cta { opacity: 0; transform: translate(-50%, -50%) scale(.85); transition-duration: .4s; }

/* ===== CONTENT ===== */
.content { display: none; }
.content.is-open { display: block; animation: fadeIn 1s ease; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid; place-items: center;
  text-align: center;
  padding: 60px 22px 118px;
  overflow: hidden;
  isolation: isolate;
  color: #fff8eb;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 25%;
  animation: kenBurns 22s ease-in-out infinite alternate;
  z-index: 0;
}
/* Video sinematik kedua di hero (main sekali setelah hero terlihat) */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .55s ease;
  pointer-events: none;
  filter: saturate(.95) brightness(.9);
}
.hero__video.is-playing { opacity: 1; }
.hero__video.is-done    { opacity: 0; }
/* Foto poster mempelai (overlay setelah video kedua selesai) */
.hero__poster {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  z-index: 5;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
  overflow: hidden;
}
.hero__poster.is-on { opacity: 1; }
.hero__poster.is-preview {
  opacity: .24;
  filter: saturate(.92) brightness(.92);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: heroPhotoSwap 25s ease-in-out infinite;
}
.hero__slide--1 { animation-delay: 0s; }
.hero__slide--2 { animation-delay: 5s; }
.hero__slide--3 { animation-delay: 10s; }
.hero__slide--4 { animation-delay: 15s; }
.hero__slide--5 { animation-delay: 20s; }
@keyframes heroPhotoSwap {
  0%, 18% { opacity: 1; transform: scale(1.06) translateY(0); }
  24%, 100% { opacity: 0; transform: scale(1.12) translateY(-1.2%); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(49,10,13,.08), rgba(49,10,13,.58) 78%),
    linear-gradient(180deg, rgba(49,10,13,.18), rgba(49,10,13,.54));
  z-index: 2;
}
.hero__inner { position: relative; z-index: 2; max-width: 420px; }
.hero--mempelai {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  background: var(--maroon-deep);
}
.hero--mempelai::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/mempelai-baru.png") center / cover no-repeat;
  filter: blur(18px) saturate(.92) brightness(.72);
  transform: scale(1.08);
}
.hero--mempelai::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 86%, rgba(111,23,27,.42), transparent 34%),
    radial-gradient(ellipse at 82% 86%, rgba(111,23,27,.42), transparent 34%),
    linear-gradient(180deg, transparent, rgba(49,10,13,.18));
}
.hero--mempelai .hero__bg {
  z-index: 1 !important;
  opacity: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: none;
  transform: none !important;
  filter: none;
}
.hero--mempelai .hero__overlay {
  z-index: 2 !important;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(49,10,13,.16) 82%),
    linear-gradient(180deg, rgba(49,10,13,.12), rgba(49,10,13,.02) 42%, rgba(49,10,13,.2));
}
.hero--mempelai .bloom,
.hero--mempelai .janur {
  display: none;
}
.hero--mempelai .hero__inner {
  z-index: 6;
  display: grid;
  justify-items: center;
  align-self: end;
  margin: 0 auto;
  padding: 0 20px calc(92px + env(safe-area-inset-bottom));
  text-shadow: 0 4px 18px rgba(49, 10, 13, .72);
  position: relative;
  isolation: isolate;
}
.hero--mempelai .hero__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  bottom: calc(74px + env(safe-area-inset-bottom));
  width: min(100%, 340px);
  transform: translateX(-50%);
  z-index: -1;
  border-radius: 26px;
  border: 1px solid rgba(234, 214, 169, .2);
  background:
    radial-gradient(circle at 50% 0%, rgba(234, 214, 169, .11), transparent 58%),
    rgba(49, 10, 13, .34);
  box-shadow: 0 18px 46px rgba(49, 10, 13, .28);
  backdrop-filter: blur(5px);
}
.hero--mempelai .display-name {
  font-size: clamp(42px, 12vw, 68px);
}
.hero--mempelai .display-place {
  max-width: 320px;
  line-height: 1.7;
}
.janur { position: absolute; left: 0; right: 0; height: 30px; color: var(--gold-light); z-index: 2; }
.janur--bot { bottom: 16px; opacity: .8; }

/* ===== SECTION BASE + CURTAIN REVEAL ===== */
.section {
  position: relative;
  padding: 90px 22px;
  text-align: center;
  overflow: hidden;
}
.section::before {
  content: ""; position: absolute; inset: 22px;
  border-radius: 32px;
  border: 1px solid rgba(200, 155, 75, .22);
  box-shadow:
    inset 0 0 0 6px rgba(255, 247, 233, .04),
    inset 0 0 60px rgba(200, 155, 75, .06);
  pointer-events: none;
  z-index: 2;
}
/* Pattern emas tile — statis & ringan, seperti ornamen undangan klasik */
.section::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200, 155, 75, .10), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(111, 23, 27, .08), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'><g fill='none' stroke='%23c89b4b' stroke-opacity='.22' stroke-width='1'><circle cx='55' cy='55' r='26'/><circle cx='55' cy='55' r='16'/><path d='M55 12 L61 30 L55 38 L49 30 Z'/><path d='M55 98 L61 80 L55 72 L49 80 Z'/><path d='M12 55 L30 49 L38 55 L30 61 Z'/><path d='M98 55 L80 49 L72 55 L80 61 Z'/><circle cx='55' cy='55' r='3' fill='%23c89b4b' fill-opacity='.35'/></g></svg>");
  background-size: auto, auto, 110px 110px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
.section > * { position: relative; z-index: 1; }
.kicker { margin-bottom: 14px; }

/* Curtain overlay yang menutup section sampai discroll ke view */
.curtain { position: relative; }
.curtain > * { position: relative; z-index: 3; }
.curtain > .hero__bg,
.curtain > .hero__overlay,
.curtain > .sunda-scene,
.curtain > .closing__bg,
.curtain > .closing__overlay {
  position: absolute;
}
.curtain > .hero__bg,
.curtain > .closing__bg { z-index: 0; }
.curtain > .sunda-scene { z-index: 1; }
.curtain > .hero__overlay,
.curtain > .closing__overlay { z-index: 2; }
.curtain > .bloom { z-index: 1; }
/* Section selalu visible. Transisi masuk pakai fade-up halus via class.
   Tirai maroon kaget tetap dihilangkan. */
.curtain { position: relative; }
.curtain::after, .curtain::before { content: none !important; display: none !important; }

/* Konten selalu visible (fallback aman). Entrance halus hanya saat belum visible */
.curtain:not(.is-visible) > .kicker,
.curtain:not(.is-visible) > h2.serif,
.curtain:not(.is-visible) > p,
.curtain:not(.is-visible) > .arabic,
.curtain:not(.is-visible) > .divider {
  opacity: .25;
  transform: translateY(10px);
  transition: opacity .8s ease, transform .9s var(--ease-soft);
}
.curtain.is-visible > .kicker,
.curtain.is-visible > h2.serif,
.curtain.is-visible > p,
.curtain.is-visible > .arabic,
.curtain.is-visible > .divider {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .9s var(--ease-soft);
}
.curtain.is-visible > h2.serif { transition-delay: .1s; }
.curtain.is-visible > .arabic { transition-delay: .15s; }
.curtain.is-visible > p { transition-delay: .25s; }
.curtain.is-visible > .divider { transition-delay: .35s; }

/* ===== VERSE ===== */
.verse { background: linear-gradient(180deg, var(--cream), var(--paper)); }
.arabic {
  font-family: var(--font-arabic);
  font-size: 26px; color: var(--maroon);
  line-height: 2; margin: 18px auto;
  max-width: 600px;
}
.verse__text {
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; line-height: 1.85;
  color: var(--muted); max-width: 560px; margin: 12px auto 0;
}
.verse__bismillah {
  margin: 14px auto 4px;
  color: var(--maroon);
  font-size: 24px;
  animation: glow 4s ease-in-out infinite alternate;
  text-shadow: none;
}
.verse__bismillah-tr {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 auto 14px;
  max-width: 460px;
}
.mendung { position: absolute; left: 50%; transform: translateX(-50%); width: 60%; height: 30px; color: var(--maroon); opacity: .35; z-index: 1; }
.mendung--top { top: 36px; }
.mendung--bot { bottom: 36px; transform: translateX(-50%) scaleY(-1); }

/* ===== COUPLE ===== */
.couple {
  background:
    radial-gradient(circle at top, rgba(111,23,27,.08), transparent 40%),
    var(--paper);
}
.couple__intro {
  color: var(--muted); max-width: 460px;
  margin: 16px auto 60px; font-size: 15px;
}
.person {
  margin: 22px auto;
  max-width: 360px;
  padding: 22px 22px 26px;
  border-radius: 28px;
  background: rgba(255, 247, 233, .82);
  border: 1px solid rgba(200, 155, 75, .35);
  box-shadow: var(--shadow-md);
  position: relative;
}
.person__frame {
  width: 180px; height: 180px;
  margin: -60px auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold), var(--shadow-md);
  position: relative;
}
.person__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.person:hover .person__frame img { transform: scale(1.08); }
.person__ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(200,155,75,.6);
  animation: spinRing 12s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.person h3 { color: var(--maroon); font-size: 32px; margin: 8px 0 6px; }
.person__role { color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin: 0; }
.person__parents { color: var(--muted); margin: 8px 0 0; line-height: 1.65; }
.amp-big {
  font-family: var(--font-script);
  color: var(--gold); font-size: 80px; line-height: 1;
  margin: 12px auto;
  animation: floatY 3.5s ease-in-out infinite;
}

/* ===== LOVE STORY TIMELINE (vertical card, foto full, tahun di header) ===== */
.lovestory {
  position: relative;
  color: var(--cream);
  padding: 56px 18px 36px;
  background:
    radial-gradient(circle at 50% 0%, rgba(200,155,75,.22), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(200,155,75,.18), transparent 55%),
    linear-gradient(180deg, var(--maroon-rich) 0%, var(--maroon-deep) 100%);
}
@media (min-width: 768px) {
  .lovestory { padding: 70px 22px 48px; }
}
.lovestory::after {
  /* Texture batik ornament emas di background maroon — jelas terlihat */
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .42;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><g fill='none' stroke='%23e6c483' stroke-width='1.2'><circle cx='50' cy='50' r='24'/><circle cx='50' cy='50' r='14'/><path d='M50 10 L56 28 L50 36 L44 28 Z'/><path d='M50 90 L56 72 L50 64 L44 72 Z'/><path d='M10 50 L28 44 L36 50 L28 56 Z'/><path d='M90 50 L72 44 L64 50 L72 56 Z'/><circle cx='50' cy='50' r='3' fill='%23e6c483'/></g></svg>");
}
.lovestory > * { position: relative; z-index: 1; }
.lovestory .kicker {
  display: inline-block;
  color: transparent;
  background: linear-gradient(135deg, #f5d98a 0%, #e6c483 40%, #c89b4b 70%, #f5d98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-script);
  font-size: 26px;
  letter-spacing: .04em;
  text-transform: none;
  font-weight: 500;
  margin-bottom: 6px;
  text-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(230, 196, 131, .4));
}
.lovestory h2.serif {
  color: #fff8eb;
  font-size: clamp(26px, 7vw, 36px);
  margin: 4px 0 8px;
}
.ls__sub {
  color: var(--gold-light); font-style: italic;
  max-width: 460px; margin: 6px auto 22px;
  font-family: var(--font-serif); font-size: 15px; line-height: 1.55;
}

.ls-timeline {
  position: relative;
  padding: 8px 0 4px;
  max-width: 420px; margin: 0 auto;
}
.ls-line {
  position: absolute; left: 50%; top: 14px; bottom: 14px;
  transform: translateX(-50%) scaleY(0);
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-light) 6%, var(--gold) 94%, transparent);
  transform-origin: top;
  transition: transform 2.4s var(--ease-soft);
  z-index: 1;
}
.lovestory.is-visible .ls-line { transform: translateX(-50%) scaleY(1); }

.ls-item {
  position: relative;
  margin-bottom: 18px;
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s ease, transform 1s var(--ease-soft);
  z-index: 2;
}
.ls-item:last-child { margin-bottom: 0; }
.lovestory.is-visible .ls-item:nth-child(2) { transition-delay: .35s; }
.lovestory.is-visible .ls-item:nth-child(3) { transition-delay: .7s; }
.lovestory.is-visible .ls-item:nth-child(4) { transition-delay: 1.05s; }
.lovestory.is-visible .ls-item:nth-child(5) { transition-delay: 1.4s; }
.lovestory.is-visible .ls-item:nth-child(6) { transition-delay: 1.75s; }
.lovestory.is-visible .ls-item { opacity: 1; transform: none; }

.ls-dot {
  position: absolute; left: 50%; top: -12px;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  display: grid; place-items: center;
  color: var(--gold-light);
  box-shadow: 0 0 0 3px var(--maroon-deep), 0 0 0 4px var(--gold);
  z-index: 5;
  animation: heartBeat 1.6s ease-in-out infinite;
}
.ls-dot svg { width: 14px; height: 14px; }
.ls-dot--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--maroon-deep); animation-duration: 1.1s; box-shadow: 0 0 0 3px var(--maroon-deep), 0 0 0 4px var(--cream), 0 0 24px rgba(230,196,131,.6); }
@keyframes heartBeat {
  0%, 100% { transform: translateX(-50%) scale(1); }
  20%      { transform: translateX(-50%) scale(1.18); }
  40%      { transform: translateX(-50%) scale(.95); }
  60%      { transform: translateX(-50%) scale(1.12); }
}

.ls-card {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,247,233,.97), rgba(246,234,215,.95));
  border: 1px solid rgba(200,155,75,.5);
  box-shadow: 0 16px 44px rgba(0,0,0,.32);
  text-align: center;
  color: var(--ink);
}

.ls-card__year {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 7px 18px;
  margin: -38px auto 12px;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  border: 1px solid rgba(234,214,169,.5);
  border-radius: 14px;
  color: var(--gold-light);
  box-shadow: 0 12px 26px rgba(49,10,13,.4);
  position: relative;
  z-index: 2;
}
.ls-card__year--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, #a87a32);
  color: var(--maroon-deep);
  border-color: var(--cream);
}
.ls-year-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
}
.ls-year-num small { font-family: var(--font-script); font-size: 18px; margin: 0 4px; opacity: .8; }
.ls-year-sub {
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 4px;
  opacity: .95;
}

.ls-card__photo {
  width: 100%;
  aspect-ratio: 5 / 6;
  height: auto;
  min-height: 220px;
  max-height: 360px;
  border-radius: 14px;
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  background-color: rgba(49, 10, 13, .08);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(200,155,75,.4);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.ls-card__photo::after {
  /* Vignette halus di pojok foto — ringan supaya wajah tetap terlihat jelas */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 65%, rgba(49,10,13,.18) 100%),
    linear-gradient(180deg, transparent 80%, rgba(49,10,13,.15) 100%);
}

.ls-card__body { text-align: center; padding: 0 2px; }
.ls-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--maroon);
  font-size: 14px;
  margin: 0 0 4px;
  opacity: .85;
}
.ls-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--maroon);
  margin: 0 0 6px;
  font-weight: 500;
  line-height: 1.15;
}
.ls-card p {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}

.ls-card--final {
  background: linear-gradient(160deg, var(--maroon-rich) 0%, var(--maroon-deep) 100%);
  color: var(--cream);
  border-color: var(--gold);
  box-shadow: 0 22px 60px rgba(0,0,0,.55), 0 0 0 2px rgba(200,155,75,.3);
}
.ls-card--final .ls-quote { color: var(--gold-light); }
.ls-card--final h3 { color: var(--gold-light); }
.ls-card--final p { color: rgba(255,247,233,.92); }
.ls-blessing {
  margin: 16px auto 0 !important;
  padding: 14px 18px;
  border-top: 1px solid rgba(234,214,169,.35);
  border-bottom: 1px solid rgba(234,214,169,.35);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light) !important;
  font-size: 14.5px;
  line-height: 1.7;
}

/* ===== COUNTDOWN ===== */
.countdown {
  background:
    radial-gradient(circle at 50% 0%, rgba(200,155,75,.18), transparent 50%),
    linear-gradient(180deg, var(--maroon-rich), var(--maroon-deep));
  color: var(--cream);
}
.countdown .kicker, .countdown__date { color: var(--gold-light); }
.countdown h2 { color: #fff8eb; }
.countdown__date { letter-spacing: .22em; text-transform: uppercase; font-size: 12px; margin-bottom: 22px; font-weight: 700; }
.timer {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin: 24px auto; max-width: 420px;
}
.timer__cell {
  padding: 18px 6px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,247,233,.14), rgba(255,247,233,.04));
  border: 1px solid rgba(234,214,169,.35);
  backdrop-filter: blur(8px);
  position: relative;
}
.timer__cell::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px;
  background: rgba(234,214,169,.2);
}
.timer__cell strong {
  display: block; font-family: var(--font-serif);
  font-size: 36px; color: #fff8eb; line-height: 1; font-weight: 500;
}
.timer__cell span { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-top: 6px; font-weight: 700; }

/* ===== EVENT ===== */
.event { background: var(--paper); }
.event-card {
  margin: 18px auto; max-width: 380px;
  padding: 26px 24px; border-radius: 24px;
  background: rgba(255, 247, 233, .85);
  border: 1px solid rgba(200, 155, 75, .35);
  box-shadow: var(--shadow-md);
  position: relative;
}
.event-card__head { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--maroon); margin-bottom: 8px; }
.event-card__head h3 { margin: 0; font-size: 28px; color: var(--maroon); }
.event-card__date { font-weight: 700; color: var(--ink); margin: 8px 0 0; }
.event-card__time { color: var(--maroon); font-weight: 800; letter-spacing: .04em; margin: 4px 0 12px; }
.event-card__place { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }
.event-card--accent {
  background: linear-gradient(135deg, var(--maroon-rich), var(--maroon));
  color: #fff8eb; border-color: rgba(234, 214, 169, .35);
}
.event-card--accent .event-card__head,
.event-card--accent .event-card__head h3,
.event-card--accent .event-card__time { color: var(--gold-light); }

/* ===== MAP ===== */
.map-section { background: var(--cream); }
.map-section__addr { color: var(--muted); margin: 8px 0 18px; line-height: 1.65; }
.map-wrap {
  width: 100%; height: 340px;
  margin: 16px 0 22px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(200, 155, 75, .4);
  box-shadow: var(--shadow-md);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ===== GALLERY dengan overlay reveal ===== */
.gallery {
  background:
    radial-gradient(circle at center, rgba(111, 23, 27, .12), transparent 50%),
    var(--paper);
}
.gallery__sub { color: var(--muted); margin: 8px 0 24px; font-style: italic; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 110px;
  gap: 8px; margin-top: 18px;
}
.g-tile {
  border: 0; padding: 0; cursor: pointer;
  border-radius: 14px; overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  background: var(--paper-warm);
  transition: transform .4s ease, box-shadow .4s ease;
}
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.g-veil {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon) 60%, var(--gold));
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 1s var(--ease-soft);
  pointer-events: none;
}
.g-veil::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at center, rgba(200,155,75,.4) 0%, transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><g fill='none' stroke='%23c89b4b' stroke-opacity='.35'><circle cx='20' cy='20' r='10'/><circle cx='20' cy='20' r='5'/></g></svg>");
}
.gallery.is-visible .g-tile .g-veil { transform: scaleY(0); }
.gallery.is-visible .g-tile:nth-child(2) .g-veil { transition-delay: .08s; }
.gallery.is-visible .g-tile:nth-child(3) .g-veil { transition-delay: .16s; }
.gallery.is-visible .g-tile:nth-child(4) .g-veil { transition-delay: .24s; }
.gallery.is-visible .g-tile:nth-child(5) .g-veil { transition-delay: .32s; }
.gallery.is-visible .g-tile:nth-child(6) .g-veil { transition-delay: .4s; }
.gallery.is-visible .g-tile:nth-child(7) .g-veil { transition-delay: .48s; }
.gallery.is-visible .g-tile:nth-child(8) .g-veil { transition-delay: .56s; }
.gallery.is-visible .g-tile:nth-child(9) .g-veil { transition-delay: .64s; }
.gallery.is-visible .g-tile:nth-child(10) .g-veil { transition-delay: .72s; }
.gallery.is-visible .g-tile:nth-child(11) .g-veil { transition-delay: .8s; }
.gallery.is-visible .g-tile:nth-child(12) .g-veil { transition-delay: .88s; }
.gallery.is-visible .g-tile:nth-child(13) .g-veil { transition-delay: .96s; }
.gallery.is-visible .g-tile:nth-child(14) .g-veil { transition-delay: 1.04s; }
.gallery.is-visible .g-tile:nth-child(15) .g-veil { transition-delay: 1.12s; }
.gallery.is-visible .g-tile:nth-child(16) .g-veil { transition-delay: 1.2s; }

.g-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(49,10,13,.55));
  opacity: 0; transition: opacity .3s;
}
.g-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(49,10,13,.22); }
.g-tile:hover img { transform: scale(1.08); }
.g-tile:hover::after { opacity: 1; }
.g-tile--big  { grid-row: span 2; }
.g-tile--wide { grid-column: span 2; }

/* ===== AMPLOP DIGITAL (envelopes 3D) ===== */
.gift { background: linear-gradient(180deg, var(--paper), var(--paper-warm)); }
.gift__sub { color: var(--muted); margin: 8px 0 28px; }
.gift-reveal {
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(200, 155, 75, .5);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(230, 196, 131, .36), transparent 34%),
    linear-gradient(145deg, var(--maroon-deep), var(--maroon) 62%, #8f672c 130%);
  color: #fff8eb;
  box-shadow: 0 18px 48px rgba(49, 10, 13, .3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.gift-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.18), transparent);
  transform: translateX(-120%) skewX(-16deg);
  animation: giftShine 3s ease-in-out infinite;
}
.gift-reveal__seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--maroon-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: inset 0 0 0 1px rgba(255,247,233,.42), 0 10px 24px rgba(0,0,0,.22);
  position: relative;
  z-index: 1;
}
.gift-reveal__seal svg { width: 26px; height: 26px; }
.gift-reveal__text {
  display: grid;
  gap: 3px;
  position: relative;
  z-index: 1;
}
.gift-reveal__text strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.gift-reveal__text small {
  color: rgba(255,247,233,.78);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.45;
}
.gift-reveal.is-open {
  background: linear-gradient(145deg, #473015, var(--gold), var(--gold-light));
  color: var(--maroon-deep);
}
.gift-reveal.is-open .gift-reveal__seal {
  color: var(--gold-light);
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
}
.gift-reveal.is-open .gift-reveal__text small { color: rgba(49, 10, 13, .72); }
@keyframes giftShine {
  0%, 58% { transform: translateX(-120%) skewX(-16deg); }
  100% { transform: translateX(140%) skewX(-16deg); }
}
.envelopes {
  display: grid; gap: 28px;
  max-width: 420px;
  margin: 0 auto;
}
.envelope {
  background: transparent; border: 0; padding: 0; cursor: pointer;
  perspective: 900px;
  display: block;
}
.envelope__shape {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 14px;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-soft);
}
.envelope__back, .envelope__front, .envelope__flap {
  position: absolute; inset: 0;
  border-radius: 14px;
}
.envelope__back {
  background:
    linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  box-shadow: var(--shadow-md);
}
.envelope__front {
  background:
    linear-gradient(135deg, var(--maroon), var(--maroon-rich));
  box-shadow: inset 0 0 20px rgba(0,0,0,.4);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: translateZ(2px);
  z-index: 3;
}
.envelope__front::before {
  content: ""; position: absolute; inset: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><g fill='none' stroke='%23c89b4b' stroke-opacity='.3' stroke-width='1'><circle cx='30' cy='30' r='12'/><path d='M30 12 L34 22 L30 28 L26 22 Z'/><path d='M30 48 L34 38 L30 32 L26 38 Z'/></g></svg>");
  border-radius: 14px;
}
.envelope__flap {
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 0, 0 0);
  transform-origin: top;
  transition: transform .9s var(--ease-soft);
  z-index: 5;
  border-bottom: 1px solid rgba(200,155,75,.5);
}
.envelope__flap::after {
  content: ""; position: absolute;
  left: 50%; top: 60%; transform: translate(-50%, -50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.envelope__seal {
  position: absolute;
  left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  z-index: 6;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.4));
  transition: transform .4s, opacity .4s;
}
.envelope__letter {
  position: absolute; inset: 8px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px dashed rgba(200,155,75,.5);
  padding: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  z-index: 2;
  transform: translateY(0);
  transition: transform .9s .3s var(--ease-soft);
}
.envelope__brand {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 800; font-size: 11px; letter-spacing: .2em;
  margin: 0 0 8px; color: #fff;
}
.envelope__brand--dana { background: linear-gradient(135deg, #118eea, #0070d8); }
.envelope__brand--bsi  { background: linear-gradient(135deg, #00643b, #00382a); }
.envelope__letter strong {
  display: block; font-family: var(--font-serif);
  font-size: 24px; color: var(--maroon); letter-spacing: .04em;
}
.envelope__name { margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.envelope__copy {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--cream);
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  cursor: pointer;
}
.envelope__hint {
  display: block;
  margin-top: 14px;
  color: var(--gold);
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; font-weight: 700;
  animation: hintPulse 1.8s ease-in-out infinite;
}
@keyframes hintPulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

.envelope.is-open .envelope__flap { transform: rotateX(-180deg); }
.envelope.is-open .envelope__seal { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
.envelope.is-open .envelope__letter { transform: translateY(-50%); }
.envelope.is-open .envelope__shape { height: 280px; }
.envelope.is-open .envelope__hint { opacity: 0; }

/* ===== RSVP ===== */
.rsvp { background: var(--paper); position: relative; }
.rsvp__intro {
  max-width: 460px;
  margin: 14px auto 22px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.88;
}
#rsvpForm { display: grid; gap: 14px; max-width: 460px; margin: 0 auto; }
.rsvp__field {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 247, 233, 0.58);
  border: 1px solid rgba(200, 155, 75, 0.28);
  border-radius: 16px;
  text-align: left;
}
.rsvp__field label {
  font-size: 12px;
  color: var(--maroon);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.rsvp__field select {
  width: 100%;
  border: 1px solid rgba(111, 23, 27, .2);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .86);
  outline: none;
  color: var(--ink);
  font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
.rsvp__field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,155,75,.2);
}
.rsvp__wish {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 247, 233, 0.58);
  border: 1px solid rgba(200, 155, 75, 0.28);
  border-radius: 16px;
  text-align: left;
}
.rsvp__wish label {
  font-size: 12px;
  color: var(--maroon);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.rsvp__wish small {
  color: var(--ink);
  opacity: 0.6;
  font-size: 11.5px;
}
.rsvp__wish textarea {
  min-height: 110px;
  margin: 0;
}
.attendance {
  max-width: 620px;
  margin: 28px auto 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(200, 155, 75, 0.28);
  border-radius: 22px;
}
.wish-box {
  max-width: 620px;
  margin: 28px auto 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(200, 155, 75, 0.28);
  border-radius: 22px;
}
.wish-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0 16px;
}
.wish-box h3 {
  margin: 0;
  color: var(--maroon);
  font-size: 24px;
}
.wish-box__count {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 233, 0.9);
  border: 1px solid rgba(200, 155, 75, 0.24);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== WISHES ===== */
input, textarea {
  width: 100%;
  border: 1px solid rgba(111, 23, 27, .2);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .76);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
input:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,155,75,.2);
}
textarea { min-height: 110px; resize: vertical; }
.wish-list { margin: 24px auto 0; max-width: 520px; text-align: left; }
.wish-empty {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 247, 233, .82);
  border: 1px solid rgba(200, 155, 75, .3);
  color: var(--ink);
  text-align: center;
}
.wish-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.wish-slider__viewport {
  overflow: hidden;
}
.wish-slider__track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}
.wish-slider__panel {
  min-width: 100%;
  display: grid;
  gap: 12px;
}
.wish-slider__nav {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 155, 75, .28);
  border-radius: 999px;
  background: rgba(255, 247, 233, .92);
  color: var(--maroon);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.wish-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.wish-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(200, 155, 75, .3);
  cursor: pointer;
  padding: 0;
}
.wish-slider__dot.is-active {
  width: 26px;
  background: var(--gold);
}
.wish-item {
  padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 247, 233, .82);
  border: 1px solid rgba(200, 155, 75, .3);
  box-shadow: var(--shadow-sm);
  animation: fadeUp .6s ease both;
}
.wish-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.wish-item strong { color: var(--maroon); font-family: var(--font-serif); font-size: 18px; display: block; }
.wish-item .time { color: var(--gold); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.wish-item p { margin: 6px 0 0; color: var(--ink); line-height: 1.6; }
.wish-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.wish-badge--hadir {
  color: #2f8459;
  background: rgba(46, 190, 115, .12);
  border-color: rgba(46, 190, 115, .24);
}
.wish-badge--ragu {
  color: var(--gold-dark);
  background: rgba(201, 154, 74, .12);
  border-color: rgba(201, 154, 74, .24);
}
.wish-badge--tidak_hadir {
  color: #a34b4b;
  background: rgba(184, 80, 80, .12);
  border-color: rgba(184, 80, 80, .24);
}

@media (max-width: 480px) {
  .wish-box__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .wish-slider {
    grid-template-columns: 1fr;
  }
  .wish-slider__nav {
    display: none;
  }
  .wish-item__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== INVITED ===== */
.invited { background: var(--paper); }
.invited-list {
  list-style: none; padding: 0; margin: 22px auto 0;
  max-width: 460px; display: grid; gap: 10px; text-align: left;
}
.invited-list li {
  padding: 12px 18px; border-radius: 14px;
  background: rgba(255, 247, 233, .78);
  border: 1px solid rgba(200, 155, 75, .3);
  color: var(--ink); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.invited-list li::before { content: "❦"; color: var(--gold); margin-right: 4px; }
.invited-list li span { color: var(--muted); font-weight: 400; font-size: 13px; }

/* ===== CLOSING ===== */
.closing {
  position: relative; isolation: isolate;
  color: var(--cream);
  padding: 90px 22px 130px;
}
.closing::before { display: none; }
.closing__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(.9) brightness(.55);
  animation: kenBurns 22s ease-in-out infinite alternate;
}
.closing__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(49,10,13,.4), rgba(49,10,13,.85) 70%),
    linear-gradient(180deg, rgba(49,10,13,.55), rgba(49,10,13,.92));
}
.closing__inner { position: relative; z-index: 2; max-width: 480px; margin: 0 auto; }
.closing__thank { font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.8; color: #fff8eb; margin: 0 0 16px; }
.closing__name { font-size: clamp(48px, 10vw, 78px); color: #fff8eb; margin: 8px 0; }
.closing__date { letter-spacing: .26em; text-transform: uppercase; font-size: 12px; font-weight: 700; margin-bottom: 20px; }
.closing-respect {
  margin: 22px auto 24px;
  padding: 20px 18px 16px;
  border-radius: 28px;
  border: 1px solid rgba(234, 214, 169, .34);
  background:
    radial-gradient(circle at 50% 0%, rgba(234, 214, 169, .16), transparent 56%),
    rgba(49, 10, 13, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 235, .06), 0 18px 48px rgba(22, 5, 7, .28);
  backdrop-filter: blur(8px);
}
.closing-respect__title {
  display: inline-block;
  margin: 0 0 16px;
  color: #fff8eb;
  font-size: 21px;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.closing-respect__families {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.closing-respect__family {
  display: grid;
  gap: 4px;
  color: #fff8eb;
  line-height: 1.35;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .24);
}
.closing-respect__family span {
  display: block;
}
.closing-respect__signature {
  margin: 16px 0 0;
  color: #fff8eb;
  font-family: var(--font-script);
  font-size: clamp(44px, 13vw, 74px);
  line-height: .95;
  text-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  z-index: 30;
  width: min(440px, calc(100% - 24px));
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px;
  border-radius: 999px;
  background: rgba(49, 10, 13, .9);
  border: 1px solid rgba(234, 214, 169, .35);
  box-shadow: 0 18px 50px rgba(49, 10, 13, .42);
  backdrop-filter: blur(14px);
}
.bottom-nav a {
  display: grid; place-items: center; gap: 2px;
  min-height: 46px; color: var(--cream);
  border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
.bottom-nav a svg { width: 18px; height: 18px; }
.bottom-nav a:hover { background: rgba(200,155,75,.22); }

/* ===== MUSIC FAB ===== */
.music-fab {
  position: fixed; right: 16px; bottom: 90px;
  z-index: 31;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(234, 214, 169, .55);
  color: var(--cream);
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon), var(--gold));
  box-shadow: 0 16px 38px rgba(49, 10, 13, .42);
  cursor: pointer;
  display: grid; place-items: center;
}
.music-fab__disc svg { width: 22px; height: 22px; }
.music-fab.is-playing .music-fab__disc { animation: spin 4.5s linear infinite; }
.music-fab.is-playing { animation: pulseRing 2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 16px 38px rgba(49, 10, 13, .42), 0 0 0 0 rgba(200,155,75,.4); }
  50%      { box-shadow: 0 16px 38px rgba(49, 10, 13, .42), 0 0 0 14px rgba(200,155,75,0); }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: none; place-items: center;
  padding: 20px;
  background: rgba(15, 5, 6, .92);
  backdrop-filter: blur(8px);
}
.lightbox.is-open { display: grid; animation: fadeIn .3s ease; }
.lightbox img {
  max-width: min(100%, 1000px); max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: fadeIn .35s ease;
}
.lb-close, .lb-nav {
  position: absolute; border: 0; cursor: pointer;
  background: rgba(255, 247, 233, .14);
  color: #fff8eb;
  border: 1px solid rgba(234, 214, 169, .4);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 1;
}
.lb-close { top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; }
.lb-close::before,
.lb-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.lb-close::before { transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; }
.lb-nav::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}
.lb-prev::before { transform: translateX(3px) rotate(-45deg); }
.lb-next::before { transform: translateX(-3px) rotate(135deg); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--gold-light); font-size: 12px; letter-spacing: .2em; }

/* ===== TOAST ===== */
.toast {
  position: fixed; left: 50%; bottom: 160px;
  transform: translateX(-50%) translateY(20px);
  z-index: 60;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--maroon-deep);
  color: var(--cream);
  font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ===== DESKTOP ===== */
@media (min-width: 920px) {
  body {
    background: linear-gradient(135deg, #2a0608 0%, #4a0f12 100%);
    background-attachment: fixed;
  }

  /* Foto cover full-screen di belakang sebagai latar dekoratif */
  .desktop-side {
    display: block;
    position: fixed; inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  .desktop-side__bg {
    position: absolute; inset: 0;
    background:
      url("assets/photos/photo-01.jpg") center 30% / cover no-repeat;
    filter: saturate(.95) brightness(.78);
  }
  .desktop-side__veil {
    position: absolute; inset: 0;
    background:
      linear-gradient(90deg,
        rgba(49,10,13,.92) 0%,
        rgba(49,10,13,.78) 18%,
        rgba(49,10,13,.55) 38%,
        rgba(49,10,13,.32) 58%,
        rgba(49,10,13,.45) 78%,
        rgba(49,10,13,.78) 100%);
  }
  .desktop-side__art {
    position: absolute; left: 6vw; top: 50%;
    transform: translateY(-50%);
    z-index: 2; color: var(--cream);
    text-align: left;
    max-width: calc(100vw - 440px - 12vw - 80px);
    padding-right: 40px;
  }

  /* Phone frame di KANAN layar, sebagai kartu undangan premium */
  .phone {
    width: 440px;
    margin: 24px 6vw 24px auto;
    border-radius: 38px;
    overflow: hidden;
    min-height: calc(100vh - 48px);
    position: relative;
    z-index: 2;
    box-shadow:
      0 50px 120px rgba(0, 0, 0, .65),
      0 0 0 1px rgba(200, 155, 75, .25),
      0 0 60px rgba(200, 155, 75, .12);
  }

  /* Bottom nav, FAB, toast — align ke phone di kanan */
  .bottom-nav {
    left: auto; right: 6vw;
    transform: none;
    width: 440px;
    bottom: 36px;
  }
  .music-fab {
    left: auto; right: calc(6vw + 16px);
    transform: none;
    bottom: 104px;
  }
  .toast {
    left: auto; right: calc(6vw + 16px);
    transform: translateY(20px);
  }
  .toast.is-on { transform: translateY(0); }
}

@media (max-width: 430px) {
  .section { padding: 70px 18px; }
  .section::before { inset: 16px; }
  .timer { gap: 8px; }
  .timer__cell { padding: 14px 4px; }
  .timer__cell strong { font-size: 28px; }
  .gallery-grid { grid-auto-rows: 95px; gap: 6px; }
  .person__frame { width: 150px; height: 150px; margin-top: -50px; }
  .arabic { font-size: 22px; }
  .verse__text { font-size: 16px; }
  .corner { width: 70px; height: 70px; }
  .bismillah { font-size: 18px; }
  .cover__title { font-size: clamp(30px, 8.5vw, 44px); }
  .closing-respect {
    padding: 18px 12px 14px;
    border-radius: 24px;
  }
  .closing-respect__families {
    gap: 8px;
  }
  .closing-respect__family {
    font-size: 15px;
  }
  .closing-respect__signature {
    font-size: 48px;
  }
  .gate__cta-name { font-size: 36px; }
  .gate__cta-card { padding: 14px; }
  .gate__cta-note { font-size: 11.5px; }
  .gate__rose { width: 100px; height: 140px; }
  .bloom { width: 150px; height: 210px; }
  .ls-card__photo { aspect-ratio: 5 / 6; height: auto; min-height: 240px; max-height: 360px; background-position: center 28%; }
  .ls-card h3 { font-size: 19px; }
}

/* ============================================================
   MOBILE PERFORMANCE — kurangi animasi yg berat
   ============================================================ */
@media (max-width: 768px) {
  /* Kupu-kupu: TETAP 3 ekor di mobile, biar terlihat seperti referensi */
  .butterflies { z-index: 6; }
  .bfly { width: 44px; height: 33px; }
  .bfly--2, .bfly--3 { width: 38px; height: 28px; }

  /* Petals: tetap semua aktif di mobile, terlihat seperti hujan bunga */
  .petals { z-index: 4; }

  /* Pampas sway: sedikit lebih lambat (ringan tapi tetap bergerak) */
  .pampas { animation-duration: 6s !important; }

  /* Curtain reveal: tetap ada, durasi normal */
  .curtain::after { transition-duration: .8s; }

  /* Cerita Kami: foto pakai cover supaya wajah utuh */
  .lovestory .ls-line {
    transform: translateX(-50%) scaleY(1);
  }
  .lovestory .ls-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ls-card__photo {
    background-size: cover;
    background-position: center 28%;
    aspect-ratio: 5 / 6;
    min-height: 220px;
    max-height: 340px;
  }

  /* Disable background-attachment fixed di mobile (iOS bug), parallax JS-based tetap jalan */
  .cover__bg, .hero__bg, .closing__bg {
    background-attachment: scroll !important;
  }
}

/* Reduce motion users — matikan semua animasi yg loop */
@media (prefers-reduced-motion: reduce) {
  .bfly, .petals, .pampas, .bloom, .corner-flora { animation: none !important; }
  .cover__bg, .hero__bg, .closing__bg { animation: none !important; }
}

/* ============================================================
   NEW COMPONENTS (v6) - gift cards, ls-year, text-reveal
   ============================================================ */

/* Heading text-reveal: kata default selalu terlihat (fallback aman),
   animasi muncul lebih halus saat is-visible aktif */
.text-reveal { display: inline-block; }
.text-reveal .word {
  display: inline-block;
  opacity: 1;
  transform: none;
  filter: none;
}
.curtain:not(.is-visible) .text-reveal .word {
  opacity: 0; transform: translateY(20px); filter: blur(4px);
  transition: opacity .8s ease, transform .8s var(--ease-soft), filter .8s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.is-visible .text-reveal .word { opacity: 1; transform: none; filter: none; transition: opacity .8s ease, transform .8s var(--ease-soft), filter .8s ease; transition-delay: calc(var(--i, 0) * 90ms); }

/* ===== GIFT CARDS (kartu rekening jelas tanpa ribet) ===== */
.gift-cards {
  display: grid;
  gap: 18px;
  max-width: 360px;
  margin: 28px auto 0;
}
.gift-cards[hidden] { display: none; }
.gift-cards.is-open {
  animation: giftCardsOpen .7s var(--ease-soft) both;
}
@keyframes giftCardsOpen {
  from { opacity: 0; transform: translateY(20px) scale(.97); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.gcard {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 18px 50px rgba(49, 10, 13, .25), 0 0 0 1px rgba(200,155,75,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gcard:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(49, 10, 13, .32), 0 0 0 1px rgba(200,155,75,.5); }
.gcard__head {
  position: relative;
  padding: 22px 22px 28px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden;
}
.gcard__head::before {
  content: ""; position: absolute;
  top: -40%; right: -20%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.gcard__head::after {
  content: ""; position: absolute;
  bottom: -50%; left: -20%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.gcard__head--dana { background: linear-gradient(135deg, #118eea 0%, #0070d8 60%, #004e9b 100%); }
.gcard__head--bsi  { background: linear-gradient(135deg, #00a37a 0%, #00643b 60%, #00382a 100%); }
.gcard__logo {
  position: relative; z-index: 2;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: .08em;
}
.gcard__chip {
  position: relative; z-index: 2;
  width: 42px; height: 32px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, #e6c483 0%, #c89b4b 60%, #8a6a2c 100%);
  box-shadow: inset 0 0 8px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.3);
}
.gcard__chip::before, .gcard__chip::after {
  content: ""; position: absolute;
  background: rgba(0,0,0,.18);
}
.gcard__chip::before { left: 8px; right: 8px; top: 8px; height: 1px; }
.gcard__chip::after  { left: 8px; right: 8px; bottom: 8px; height: 1px; }
.gcard__body {
  padding: 20px 22px 22px;
  text-align: left;
}
.gcard__label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 4px;
}
.gcard__name {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--maroon);
  margin: 0 0 14px;
  font-weight: 600;
}
.gcard__number {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--maroon-deep);
  letter-spacing: .04em;
  font-weight: 600;
  margin: 0 0 16px;
  word-break: break-all;
}
.btn--copy { width: 100%; min-height: 46px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .petals { display: none; }
  .curtain::after { display: none; }
}

/* === MOBILE VIDEO PERFORMANCE BOOST ===
   Saat video sedang main di HP, hentikan animasi & filter berat
   supaya video tidak ngelag/macet. */
@media (max-width: 919px) {
  .cover.is-video-active .butterflies,
  .cover.is-video-active .petals,
  .cover.is-video-active .pampas,
  .cover.is-video-active .cover__sparkle,
  .cover.is-video-active .bloom,
  .cover.is-video-active .janur,
  .cover.is-video-active .scene__butterfly,
  .cover.is-video-active .scene__waterfall {
    animation-play-state: paused !important;
    visibility: hidden;
  }
  .cover.is-video-active .cover__bg,
  .cover.is-video-active .cover__poster {
    animation: none !important;
  }
  .cover.is-video-active * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .cover__video {
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  /* Hero video tetap aktif, tapi pakai GPU layer terpisah supaya lancar */
  .hero__video {
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  /* Saat hero video main, pause animasi & blur berat (mirip cover) */
  .hero.is-video-active .butterflies,
  .hero.is-video-active .petals,
  .hero.is-video-active .pampas,
  .hero.is-video-active .bloom,
  .hero.is-video-active .janur,
  .hero.is-video-active .scene__butterfly,
  .hero.is-video-active .scene__waterfall {
    animation-play-state: paused !important;
    visibility: hidden;
  }
  .hero.is-video-active .hero__bg,
  .hero.is-video-active .hero__poster {
    animation: none !important;
  }
  .hero.is-video-active * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 480px) {
  .petals .petal:nth-child(n+8),
  .butterflies .bfly:nth-child(n+2) { display: none; }
  .sunda-scene--cover .scene__flora,
  .sunda-scene--hero .scene__flora { display: none; }
  .scene__sun { width: 88px; }
  .scene__waterfall { width: 64px; height: 220px; }
  .scene__butterfly { width: 42px; height: 34px; }
  .gate__living-scene { opacity: .36; }
  .cover__bg,
  .hero__bg,
  .closing__bg {
    animation: none;
    transform: none !important;
  }
}

/* ===== INTRO VIDEO (sinematik, di dalam phone frame) ===== */
.video-intro {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #000;
  display: none !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity .55s ease;
  border-radius: inherit;
}
.video-intro.is-on {
  display: flex;
  opacity: 1;
}
.video-intro.is-off {
  opacity: 0;
  pointer-events: none;
}
.video-intro__player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none;
  display: block;
}
.video-intro__player::-webkit-media-controls,
.video-intro__player::-webkit-media-controls-enclosure,
.video-intro__player::-webkit-media-controls-panel,
.video-intro__player::-webkit-media-controls-play-button,
.video-intro__player::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}
.video-intro__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 85%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.video-intro__skip {
  position: absolute;
  right: 18px;
  bottom: 22px;
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff7e9;
  background: rgba(49, 10, 13, .55);
  border: 1px solid rgba(230, 196, 131, .55);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  animation: vintro-skip-in .6s ease 2.6s forwards;
  transition: background .3s ease, transform .25s ease;
}
.video-intro__skip:hover { background: rgba(111, 23, 27, .75); transform: translateY(-1px); }

/* vintro-zoom dihapus — video sekarang pakai object-fit:contain, tidak zoom */
@keyframes vintro-skip-in {
  to { opacity: 1; }
}

/* ===== Made by alsamedia.com (footer credit kecil) ===== */
.made-by {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 6px 12px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 247, 233, .82);
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(230, 196, 131, .35);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.made-by:hover {
  color: var(--gold-light);
  background: rgba(49, 10, 13, .55);
  transform: translateY(-1px);
}
.made-by img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.made-by strong {
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: .08em;
}
