/* =========================================================
   SECTION 01 — COVER
   Semua ukuran memakai cqw/cqh (container query units) agar
   komposisi tetap proporsional di 360–480px.
   ========================================================= */
.cover-wrap { position: relative; height: 100svh; z-index: 2; }
.is-cinematic .cover-wrap { height: 200svh; }          /* 100svh ekstra = jarak scroll untuk zoom-out */

.cover {
  position: sticky; top: 0;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  container-type: size;
  background: var(--c-bg);
  /* posisi lengkung (dipakai juga untuk mask pemandangan) */
  --arch-w: 134cqw;
  --arch-x: -17cqw;
  --arch-y: -13cqw;
  --arch-h: calc(var(--arch-w) * 1.4971);
}
.cover > *, .cv-world > * { position: absolute; }

/* Latar: ivory + kisi geometris + cahaya hangat */
.cv-bg { inset: 0;
  background:
    radial-gradient(60% 40% at 50% 28%, rgba(255, 246, 225, .9), rgba(255, 246, 225, 0) 70%),
    url('../../assets/img/lattice.svg') center top / 12cqw auto repeat,
    linear-gradient(#FBF6EC, #F6EEDF);
  opacity: .75;
}
.cv-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(248, 245, 236, .55), rgba(248, 245, 236, .15) 30%, rgba(248, 245, 236, .15) 70%, rgba(248, 245, 236, .55)); }

/* Dunia (pemandangan + lengkung) — diskalakan bersama saat zoom */
.cv-world { inset: 0; transform-origin: 50% 46%; will-change: transform; }

.cv-scene {
  inset: 0; overflow: hidden;
  /* tampil di dalam lengkung + pita taman di bawah */
  -webkit-mask-image: url('../../assets/img/arch-mask.png'), linear-gradient(transparent 0, transparent 66%, #000 80%);
  mask-image: url('../../assets/img/arch-mask.png'), linear-gradient(transparent 0, transparent 66%, #000 80%);
  -webkit-mask-size: var(--arch-w) var(--arch-h), 100% 100%;
  mask-size: var(--arch-w) var(--arch-h), 100% 100%;
  -webkit-mask-position: var(--arch-x) var(--arch-y), 0 0;
  mask-position: var(--arch-x) var(--arch-y), 0 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-over; mask-composite: add;
}
.cv-sky { position: absolute; inset: 0;
  background:
    radial-gradient(70% 36% at 50% 34%, rgba(255, 250, 236, 1) 0%, rgba(255, 246, 228, .85) 40%, rgba(255, 240, 222, 0) 80%),
    linear-gradient(180deg, #F3F1EC 0%, #F9F1E6 30%, #F8E6DA 60%, #F3D9CF 100%);
}
.cv-garden {
  position: absolute; left: 7cqw; width: 86cqw; height: auto;
  /* kubah masjid ± tepat di bawah tanggal; menyesuaikan tinggi layar */
  top: max(62cqw, calc(100cqh - 140cqw));
  transform-origin: 50% 42%;
  -webkit-mask-image: linear-gradient(transparent 0, transparent 20%, #000 40%), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(transparent 0, transparent 20%, #000 40%), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  filter: saturate(.74) sepia(.1) brightness(1.06) contrast(.96);
}
.cv-haze { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(252, 248, 238, .8) 0%, rgba(252, 248, 238, .62) 42%, rgba(252, 246, 234, .25) 58%, rgba(251, 246, 236, 0) 72%);
}
.cv-arch { left: var(--arch-x); top: var(--arch-y); width: var(--arch-w); height: auto; filter: drop-shadow(0 6px 14px rgba(150, 110, 50, .18)); }
.cv-sun { left: 18cqw; right: 18cqw; top: 20cqw; height: 70cqw; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(50% 50% at 50% 40%, rgba(255, 244, 214, .7), rgba(255, 244, 214, 0) 70%);
  animation: sun-breathe 7s ease-in-out infinite; }
@keyframes sun-breathe { 50% { opacity: .65; } }

/* Tanaman merambat */
.cv-vine { height: auto; pointer-events: none; }
.cv-vine--top { width: 12cqw; right: 9cqw; top: 9cqw; height: 34cqw; object-fit: cover; object-position: top; opacity: .9;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.cv-vine--l { width: 21cqw; left: -4cqw; top: calc(min(100cqh, 210cqw) * .43); }
.cv-vine--r { width: 19cqw; right: -5cqw; top: calc(min(100cqh, 210cqw) * .47); transform: scaleY(.9); }

/* Rangkaian bunga kiri atas + lentera */
.cv-tl { left: 0; top: 0; width: 100cqw; height: 80cqw; pointer-events: none; }
.cv-tl > * { position: absolute; }
.cv-floral { height: auto; pointer-events: none; }
.cv-floral--tl { width: 64cqw; left: -7cqw; top: -5cqw; transform-origin: 0 0; }
.cover .lantern--a { left: 4.5cqw; top: 8cqw; width: 10cqw; --chain: 24cqw; }
.cover .lantern--b { left: 15cqw; top: 8cqw; width: 8cqw; --chain: 14cqw; animation-delay: -2.4s; animation-duration: 7s; }

/* Konten teks */
.cv-content {
  left: 10cqw; right: 10cqw; top: 31cqw;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.cv-bismillah { font-size: 6.4cqw; line-height: 1.5; color: #6A4A2A; font-weight: 400; white-space: nowrap; }
.cv-div { margin-top: 1.4cqw; }
.cv-eyebrow {
  margin-top: 4.6cqw;
  font-family: var(--f-head); font-weight: 500; font-size: 4.25cqw; letter-spacing: .28em; text-transform: uppercase;
  color: #5F4732; padding-left: .28em;
}
.cv-names { display: flex; flex-direction: column; align-items: center; margin-top: 2.4cqw; font-weight: 400; line-height: 1; }
.cv-name {
  font-family: var(--f-script); font-size: 18.5cqw; line-height: 1.12;
  padding: 0 .18em .06em; /* ruang untuk swash script */
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 250, 235, .9)) drop-shadow(0 3px 6px rgba(140, 100, 40, .18));
}
.cv-amp { display: flex; align-items: center; gap: 3cqw; width: 38cqw; margin: -2.4cqw 0 -3.2cqw; }
.cv-amp i { flex: 1; height: 1.2px; background: linear-gradient(90deg, rgba(197, 161, 91, 0), #C5A15B); }
.cv-amp i:last-child { transform: scaleX(-1); }
.cv-amp b { font-family: var(--f-script); font-weight: 400; font-size: 13cqw; line-height: 1;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em; }
.cv-content .cv-div:nth-of-type(2) { margin-top: 2.6cqw; }
.cv-date { margin-top: 3.2cqw; display: flex; flex-direction: column; gap: .5cqw;
  font-family: var(--f-body); font-weight: 600; font-size: 4.7cqw; letter-spacing: .1em; text-transform: uppercase; color: #5C4630; }

/* Bunga bawah (lapisan depan) */
.cv-floral--bl { width: 68cqw; left: -13cqw; bottom: -9cqw; transform-origin: 0 100%; z-index: 3; }
.cv-floral--br { width: 62cqw; right: -15cqw; bottom: -1cqw; transform-origin: 100% 100%; z-index: 3; }

/* Kupu-kupu */
.cv-bf--1 { width: 10cqw; left: 13cqw; top: calc(31cqw + 46cqw); }
.cv-bf--2 { width: 9cqw; right: 12cqw; top: calc(31cqw + 76cqw); animation-delay: -4s; animation-duration: 11s; }

/* Tombol buka + nama tamu */
.cv-cta { left: 0; right: 0; bottom: max(7cqw, 3cqh); z-index: 5; display: flex; flex-direction: column; align-items: center; }
.cv-guest {
  margin-bottom: 3.4cqw; padding: 1.6cqw 5cqw 1.8cqw; text-align: center; border-radius: 3cqw;
  font-size: 3.2cqw; line-height: 1.35; color: var(--c-brown);
  background: rgba(255, 251, 242, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(197, 161, 91, .45);
}
.cv-guest__name { display: block; margin-top: .2cqw; font-family: var(--f-italic); font-style: italic; font-weight: 600; font-size: 5cqw; color: var(--c-olive); }
.btn-open { font-size: 5.1cqw; min-width: 45cqw; padding: 2.9cqw 6cqw 3.1cqw; }
.cv-chev { margin-top: 3.2cqw; width: 6cqw; height: 6cqw; color: #F4E3B5; filter: drop-shadow(0 1px 3px rgba(80, 60, 30, .7)); animation: chev 2.2s ease-in-out infinite; }
.cv-chev svg, .cv-scrollhint svg { width: 100%; height: 100%; }
@keyframes chev { 50% { transform: translateY(4px); opacity: .6; } }

.cv-scrollhint { left: 0; right: 0; bottom: max(9cqw, 4cqh); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 1cqw;
  font-family: var(--f-italic); font-style: italic; font-size: 4cqw; color: #FFF9EC; text-shadow: 0 1px 6px rgba(90, 70, 40, .6);
  opacity: 0; visibility: hidden; }
.cv-scrollhint svg { width: 6cqw; height: 6cqw; color: #FBEFD2; filter: drop-shadow(0 1px 4px rgba(90, 70, 40, .5)); animation: chev 2.2s ease-in-out infinite; }

.cv-flash { inset: 0; z-index: 8; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 45% at 50% 60%, rgba(255, 246, 220, 1), rgba(255, 238, 200, .6) 45%, rgba(255, 238, 200, 0) 75%); }
.cv-veil { inset: 0; z-index: 9; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(248, 245, 236, .3) 0%, rgba(248, 245, 236, .75) 50%, #F8F5EC 100%); }

/* Layar pendek (mis. 375×667): rapatkan blok teks */
@container (min-aspect-ratio: 1/1.85) {
  .cv-content { top: 25cqw; scale: .88; transform-origin: 50% 0; }
  .cv-bf--1 { top: 66cqw; }
}

/* Tanpa GSAP / gerak dikurangi: semua tampil statis */
.no-motion .cover-wrap { height: 100svh; }

/* Waktu kehadiran sesi (di bawah tanggal) */
.cover .cv-time { position: static; margin-top: 2.2cqw; padding: 1.2cqw 4.6cqw 1.4cqw; border-radius: 999px;
  font-family: var(--f-body); font-size: 4cqw; letter-spacing: .04em; color: #5C4630;
  background: rgba(255, 251, 240, .7); box-shadow: 0 0 0 1px rgba(197, 161, 91, .6); }
.cover .cv-time b { font-weight: 600; color: var(--c-olive); }
