/* ============================================================
   UNDANGAN WALIMATUL KHITAN — STYLESHEET
   Palette: cream + white + brown (mocha latte)
   ============================================================ */

:root {
  /* coklat (menggantikan emerald) */
  --emerald-900: #2b1d14;
  --emerald-800: #3b281b;
  --emerald-700: #563a27;
  --emerald-600: #6f4b31;
  --emerald-500: #8b6242;
  /* gold → caramel / latte */
  --gold-100: #f7ecdc;
  --gold-300: #ecd6b8;
  --gold-400: #d9bb95;
  --gold-500: #c39a72;
  --gold-600: #a67a52;
  --cream: #f8f1e6;
  --cream-2: #f0e5d5;
  --ink: #2e2219;
  --ink-soft: #7a6a5c;
  --white: #ffffff;
  /* aksen kontras untuk teks di atas coklat */
  --latte: #f2e3cd;

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

  --shadow-sm: 0 2px 8px rgba(43, 29, 20, .06);
  --shadow-md: 0 10px 30px rgba(43, 29, 20, .10);
  --shadow-lg: 0 24px 60px rgba(43, 29, 20, .18);
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ============================================================
   BACKGROUND CANVASES & PETALS
   ============================================================ */
#particles, #confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
#confetti { z-index: 90; }

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -8vh;
  width: 12px;
  height: 12px;
  border-radius: 50% 0 50% 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  opacity: .5;
  animation: petalFall linear infinite;
  will-change: transform;
}
@keyframes petalFall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .45; }
  100% { transform: translate3d(var(--drift, 40px), 110vh, 0) rotate(540deg); opacity: 0; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #563a27, #2b1d14);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pre-inner { text-align: center; position: relative; }
.pre-ring { width: 130px; height: 130px; transform: rotate(-90deg); }
.pre-ring circle {
  fill: none;
  stroke: rgba(201, 168, 130, .20);
  stroke-width: 1.5;
}
.pre-ring .pre-ring-2 {
  stroke: var(--gold-400);
  stroke-linecap: round;
  stroke-dasharray: 90 225;
  animation: preSpin 1.4s linear infinite;
}
@keyframes preSpin { to { stroke-dashoffset: -315; } }
.pre-mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--arabic);
  font-size: 2rem;
  color: var(--gold-300);
  animation: prePulse 2s ease-in-out infinite;
}
@keyframes prePulse { 50% { opacity: .55; transform: scale(.94); } }
.pre-text {
  margin-top: 1rem;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(242, 227, 205, .72);
}

/* ============================================================
   COVER / OPENING
   ============================================================ */
.cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: safe center;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--emerald-900);
  transition: transform 1.1s var(--ease), opacity .9s ease, filter 1.1s ease;
  will-change: transform;
}
.cover::-webkit-scrollbar { display: none; }
.cover.hidden {
  transform: translateY(-100%) scale(1.04);
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
}

.cover-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 20% 15%, rgba(196, 156, 124, .55), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(150, 110, 80, .55), transparent 50%),
    linear-gradient(160deg, #2b1d14, #563a27 55%, #2b1d14);
  animation: bgDrift 22s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -2%); }
}

.cover-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(201, 168, 130, .18), transparent 55%);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse { 50% { opacity: .45; transform: scale(1.08); } }

/* Ornamental arabesque corners */
.cover-ornament {
  position: absolute;
  left: 50%;
  width: min(420px, 88vw);
  height: 120px;
  transform: translateX(-50%);
  opacity: .5;
  background:
    radial-gradient(circle at 50% 100%, transparent 22px, rgba(201,168,130,.5) 23px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(201,168,130,.38) 0 1px, transparent 1px 14px);
  mask-image: radial-gradient(ellipse at 50% 100%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000 25%, transparent 72%);
}
.cover-ornament.top { top: 4vh; transform: translateX(-50%) rotate(180deg); }
.cover-ornament.bottom { bottom: 4vh; }

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 2rem 1.35rem;
  max-width: 560px;
  width: 100%;
}

.cover-eyebrow {
  font-family: var(--serif);
  font-size: clamp(.78rem, 2.6vw, .9rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1.4rem;
}

.cover-small {
  font-size: .68rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(242, 227, 205, .58);
  margin-bottom: .5rem;
}

.cover-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 9.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #ffffff 10%, #f7ecdc 55%, var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.6rem;
}

/* Arch frame with name */
.cover-arch {
  position: relative;
  padding: 2.2rem 1.4rem;
  margin: 0 auto 1.6rem;
  max-width: 380px;
  border-radius: 190px 190px 24px 24px;
  border: 1px solid rgba(201, 168, 130, .45);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.cover-arch::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 184px 184px 18px 18px;
  border: 1px solid rgba(201, 168, 130, .20);
  pointer-events: none;
}
.cover-arch::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
  transform: rotate(12deg);
  animation: archSheen 6s ease-in-out infinite;
}
@keyframes archSheen {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
.cover-arch-icon {
  display: block;
  color: var(--gold-400);
  font-size: 1rem;
  margin-bottom: .6rem;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .4; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
.cover-name {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 6.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--cream);
}
.cover-name span {
  font-family: var(--script);
  font-size: 1.18em;
  color: var(--gold-300);
}
.cover-note {
  margin-top: .9rem;
  font-size: clamp(.72rem, 2.9vw, .82rem);
  line-height: 1.7;
  color: rgba(242, 227, 205, .70);
  letter-spacing: .04em;
}

.cover-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin-bottom: 1.6rem;
}
.cd-line {
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 130, .6));
}
.cd-line:last-child { background: linear-gradient(90deg, rgba(201, 168, 130, .6), transparent); }
.cover-day {
  font-family: var(--serif);
  font-size: clamp(.95rem, 3.6vw, 1.12rem);
  letter-spacing: .06em;
  color: var(--latte);
}
.cover-place {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242, 227, 205, .55);
}

.cover-guest {
  margin-bottom: 1.4rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(201, 168, 130, .32);
  background: rgba(255, 255, 255, .03);
}
.guest-label {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242, 227, 205, .55);
}
.guest-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--latte);
  margin-top: .2rem;
}

/* Open button */
.btn-open {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 2rem;
  border: none;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--emerald-900);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 55%, var(--gold-400));
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(195, 154, 114, .35), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: btnFloat 3.4s ease-in-out infinite;
}
.btn-open svg { width: 18px; height: 18px; }
.btn-open:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 42px rgba(195,154,114,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-open:active { transform: translateY(0) scale(.98); }
.btn-open-shine {
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 55% { left: -120%; }
  100% { left: 160%; }
}
@keyframes btnFloat {
  0%, 100% { box-shadow: 0 10px 30px rgba(195,154,114,.30); }
  50% { box-shadow: 0 16px 40px rgba(195,154,114,.50); }
}

.cover-hint {
  margin-top: 1rem;
  font-size: .64rem;
  letter-spacing: .06em;
  color: rgba(242, 227, 205, .40);
}

/* Layar pendek (laptop/HP landscape) — rapatkan agar tombol Buka Undangan tidak terpotong */
@media (max-height: 820px) {
  .cover-content { padding: 1.1rem 1.35rem; }
  .cover-eyebrow { margin-bottom: .8rem; }
  .cover-title { margin-bottom: .9rem; font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .cover-arch { padding: 1.25rem 1.1rem; margin-bottom: 1rem; }
  .cover-name { font-size: clamp(1.35rem, 5.5vw, 1.8rem); }
  .cover-note { margin-top: .55rem; }
  .cover-date { margin-bottom: 1rem; }
  .cover-guest { margin-bottom: 1rem; padding: .6rem .9rem; }
  .cover-hint { margin-top: .7rem; }
  .cover-ornament { height: 80px; }
}
@media (max-height: 680px) {
  .cover-content { padding: .6rem 1.35rem; }
  .cover-title { font-size: clamp(1.5rem, 6.5vw, 2.1rem); margin-bottom: .7rem; }
  .cover-arch { padding: 1rem .9rem; margin-bottom: .8rem; }
  .cover-arch-icon { margin-bottom: .3rem; }
  .cover-name { font-size: clamp(1.2rem, 4.8vw, 1.5rem); }
  .cover-note { font-size: .66rem; line-height: 1.55; }
  .cover-guest { margin-bottom: .8rem; }
  .cover-eyebrow { margin-bottom: .6rem; }
  .cover-hint { display: none; }
  .cover-ornament { display: none; }
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid rgba(201, 168, 130, .38);
  border-radius: 12px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
  opacity: .7;
}
.scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold-400);
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* Cover reveal animation */
.cover .reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: coverIn .9s var(--ease) forwards;
  animation-delay: calc(.25s + var(--d, 0) * .14s);
}
@keyframes coverIn { to { opacity: 1; transform: none; } }

/* ============================================================
   MAIN / GLOBAL SECTION
   ============================================================ */
main {
  opacity: 0;
  transition: opacity .6s ease;
  position: relative;
  z-index: 4;
}
main.visible { opacity: 1; }

section { position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) 0; }

.section-eyebrow {
  text-align: center;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--emerald-500);
  margin-bottom: .55rem;
}
.section-title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  line-height: 1.18;
  color: var(--emerald-800);
  margin-bottom: 1rem;
}
.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.4rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--d, 0) * .1s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: clamp(2.5rem, 7vh, 4rem);
  padding-bottom: clamp(4rem, 12vh, 7rem);
  background: linear-gradient(180deg, #40291b 0%, #563a27 45%, #6f4b31 100%);
  overflow: hidden;
  color: var(--cream);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: blobMove 18s ease-in-out infinite alternate;
}
.blob.b1 { width: 340px; height: 340px; background: #a9825c; top: -80px; left: -90px; }
.blob.b2 { width: 300px; height: 300px; background: #d8bb95; bottom: -60px; right: -70px; animation-delay: -6s; opacity: .32; }
.blob.b3 { width: 240px; height: 240px; background: #7a5433; top: 40%; left: 60%; animation-delay: -11s; }
@keyframes blobMove {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -40px) scale(1.25); }
}
.arabesque {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image:
    radial-gradient(circle at 50% 0, transparent 34%, rgba(217,187,149,.9) 35%, transparent 36%),
    radial-gradient(circle at 50% 100%, transparent 34%, rgba(217,187,149,.9) 35%, transparent 36%);
  background-size: 120px 120px;
  background-position: 0 0, 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 78%);
  animation: arabesqueDrift 40s linear infinite;
}
@keyframes arabesqueDrift { to { background-position: 120px 120px, 180px 180px; } }

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(720px, 100% - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Photo frame */
.photo-frame {
  position: relative;
  width: clamp(150px, 42vw, 200px);
  aspect-ratio: 1;
  margin-bottom: 1.6rem;
  display: grid;
  place-items: center;
}
.frame-glow {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,130,.38), transparent 68%);
  animation: glowPulse 4.5s ease-in-out infinite;
}
.frame-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 168, 130, .5);
  animation: ringSpin 26s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.frame-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201, 168, 130, .8);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
/* Foto hero */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
  animation: heroImgIn .8s var(--ease) both;
}
@keyframes heroImgIn {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-img[hidden] { display: none; }
.ph-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .25rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(236, 214, 184, .55), transparent 62%),
    linear-gradient(160deg, #f3e7d3, #c9a882 50%, #7a5433);
}
.ph-placeholder[hidden] { display: none; }
.ph-initial {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: #6b4a2f;
  line-height: 1;
}
.ph-hint {
  font-size: .52rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(43, 29, 20, .55);
}

.hero-bismillah {
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 1.06;
  margin-bottom: 1.5rem;
  overflow: visible;
}
.hero-title .line {
  display: block;
  /* tanpa overflow:hidden agar ekor huruf script (y, g) tidak terpotong */
  padding-bottom: .18em;
}
.hero-title .line.accent {
  font-family: var(--script);
  font-size: 1.25em;
  line-height: 1.2;
  /* padding ini memperluas kotak background agar seluruh huruf script
     (termasuk ekor y & g) ikut terwarnai gradien */
  padding: .12em .08em .3em;
  background: linear-gradient(120deg, var(--gold-300), #fff 45%, var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: goldShine 5s linear infinite;
}
@keyframes goldShine { to { background-position: 200% center; } }

.hero-name { margin-bottom: 1.6rem; }
.hn-top {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242, 227, 205, .58);
  margin-bottom: .3rem;
}
.hn-name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5.6vw, 1.9rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 .6rem;
}
.hn-sub {
  font-size: .78rem;
  color: rgba(242, 227, 205, .66);
  letter-spacing: .04em;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  font-size: .74rem;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(201, 168, 130, .26);
  color: rgba(242, 227, 205, .90);
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), background .3s;
}
.chip:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.chip-ico { font-size: .85rem; }

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}
.wave-divider svg { width: 100%; height: clamp(50px, 8vw, 110px); }
.wave-divider path { fill: var(--cream); }

/* ============================================================
   QUOTE
   ============================================================ */
.quote-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(195, 154, 114, .14), transparent 60%),
    var(--cream);
  padding-top: clamp(2rem, 6vw, 4rem);
}
.quote-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.2rem) clamp(1.4rem, 5vw, 3rem);
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--cream-2));
  border: 1px solid rgba(166, 122, 82, .24);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quote-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(166, 122, 82, .18);
  border-radius: 14px;
  pointer-events: none;
}
.quote-mark {
  position: absolute;
  top: -30px; left: 18px;
  font-family: var(--serif);
  font-size: 10rem;
  line-height: 1;
  color: rgba(166, 122, 82, .14);
  pointer-events: none;
}
.arabic {
  font-family: var(--arabic);
  font-size: clamp(1.15rem, 4.6vw, 1.6rem);
  line-height: 2.1;
  color: var(--emerald-700);
  direction: rtl;
  margin-bottom: 1.2rem;
}
.quote-trans {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(.92rem, 3.4vw, 1.06rem);
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: .8rem;
}
.quote-src {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: 2.4rem;
}
.ornament-line span {
  height: 1px;
  width: min(120px, 26vw);
  background: linear-gradient(90deg, transparent, rgba(166,122,82,.55));
}
.ornament-line span:last-child { background: linear-gradient(90deg, rgba(166,122,82,.55), transparent); }
.ornament-line i {
  font-style: normal;
  color: var(--gold-500);
  font-size: .85rem;
  animation: twinkle 3s ease-in-out infinite;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-section {
  background: var(--cream);
  padding-top: clamp(2rem, 5vw, 3rem);
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.5rem, 2vw, 1rem);
  max-width: 620px;
  margin: 0 auto 1.4rem;
}
.cd-box {
  position: relative;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(140deg, rgba(166,122,82,.55), rgba(166,122,82,.10) 50%, rgba(166,122,82,.45));
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cd-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cd-inner {
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--cream-2));
  padding: clamp(.8rem, 3vw, 1.35rem) .3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  overflow: hidden;
}
.cd-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 7.5vw, 2.6rem);
  line-height: 1;
  color: var(--emerald-800);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  background: linear-gradient(180deg, var(--emerald-700), var(--emerald-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cd-num.flip { animation: numFlip .5s var(--ease); }
@keyframes numFlip {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  45%  { transform: translateY(-60%) scale(.9); opacity: 0; }
  55%  { transform: translateY(60%) scale(.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cd-label {
  font-size: clamp(.58rem, 2.2vw, .68rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.countdown-note {
  text-align: center;
  font-size: .82rem;
  color: var(--ink-soft);
}
.countdown-note strong { color: var(--emerald-600); }

/* ============================================================
   EVENT DETAILS
   ============================================================ */
.event-section {
  background:
    radial-gradient(circle at 85% 10%, rgba(196,156,124,.16), transparent 45%),
    var(--cream);
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.event-card {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(43, 29, 20, .08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.event-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(166,122,82,.42);
}
.event-card.featured {
  background: linear-gradient(165deg, #3b281b, #6f4b31);
  color: var(--cream);
  border-color: transparent;
}
.event-card.featured .ec-title { color: #fff; }
.event-card.featured .ec-time { color: var(--gold-300); }
.event-card.featured .ec-desc { color: rgba(242,227,205,.74); }
.ec-top { position: relative; margin-bottom: .9rem; }
.ec-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.35rem;
  background: linear-gradient(140deg, rgba(217,187,149,.30), rgba(163,124,90,.16));
  border: 1px solid rgba(166,122,82,.30);
  transition: transform .5s var(--ease);
}
.event-card:hover .ec-ico { transform: rotate(-8deg) scale(1.08); }
.ec-shine {
  position: absolute;
  top: -40px; left: -60px;
  width: 60px; height: 160px;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: rotate(24deg);
  opacity: 0;
  transition: left .7s var(--ease), opacity .4s;
}
.event-card:hover .ec-shine { left: 130%; opacity: .8; }
.ec-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--emerald-800);
  margin-bottom: .2rem;
}
.ec-time {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold-600);
  margin-bottom: .6rem;
}
.ec-desc { font-size: .82rem; line-height: 1.7; color: var(--ink-soft); }

.event-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(.7rem, 3vw, 2rem);
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  background: var(--emerald-800);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.edr-item { text-align: center; }
.edr-k {
  display: block;
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(242,227,205,.55);
}
.edr-v {
  font-family: var(--serif);
  font-size: clamp(.95rem, 3.6vw, 1.15rem);
  color: var(--gold-300);
}
.edr-sep {
  width: 1px;
  height: 34px;
  background: rgba(201,168,130,.28);
}

/* ============================================================
   MAP
   ============================================================ */
.map-section { background: var(--cream-2); }
.map-address {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  color: var(--emerald-800);
  margin-bottom: 1.8rem;
}
.map-address span { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); }
.map-addr-sub { display: inline-block; max-width: 40ch; line-height: 1.6; }
.wishes-empty,
.gift-empty {
  text-align: center;
  font-size: .82rem;
  color: var(--ink-soft);
  opacity: .75;
  padding: 1.6rem 1rem;
  grid-column: 1 / -1;
}
.gift-empty { color: rgba(242, 227, 205, .7); }

.map-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto 1.8rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(166,122,82,.32);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  background: #e8e2d6;
}
.map-embed, .map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-skeleton {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 100%),
    repeating-linear-gradient(0deg, #e4ddd0 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, #e4ddd0 0 1px, transparent 1px 34px),
    #eeeee9;
  background-size: 200% 100%, auto, auto, auto;
  animation: mapShine 1.6s linear infinite;
  transition: opacity .5s;
}
@keyframes mapShine { to { background-position: -200% 0, 0 0, 0 0, 0 0; } }
.map-skeleton.hide { opacity: 0; pointer-events: none; }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  font-size: 1.8rem;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.3));
  animation: pinBounce 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pinBounce {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, -118%); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: none;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s;
}
.btn svg { width: 17px; height: 17px; }
.btn-outline {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  color: var(--emerald-700);
  background: transparent;
  border: 1px solid rgba(86, 58, 39, .3);
}
.btn-outline:hover {
  background: var(--emerald-800);
  color: var(--gold-300);
  border-color: var(--emerald-800);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-primary {
  color: var(--emerald-900);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 10px 26px rgba(195,154,114,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(195,154,114,.45); }
.btn-primary:active { transform: translateY(0) scale(.99); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section { background: var(--cream); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 1fr;
  gap: .7rem;
  max-width: 840px;
  margin-inline: auto;
}
.gallery:has(.g-item:nth-child(2)) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.g-item {
  position: relative;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .85rem; }
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.g-item:hover img { transform: scale(1.08); }
.gallery-empty {
  text-align: center;
  font-size: .8rem;
  color: var(--ink-soft);
  opacity: .7;
  padding: 1.6rem 0;
}
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(43,29,20,.45));
  opacity: 0;
  transition: opacity .4s;
}
.g-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); z-index: 2; }
.g-item:hover::after { opacity: 1; }
.g-zoom {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.6);
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity .35s, transform .45s var(--ease);
  z-index: 2;
}
.g-item:hover .g-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.gallery-note {
  text-align: center;
  font-size: .7rem;
  color: var(--ink-soft);
  opacity: .75;
  margin-top: 1rem;
}
.gallery-note code {
  background: rgba(43,29,20,.08);
  padding: .1rem .35rem;
  border-radius: 5px;
  font-size: .95em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .6rem;
  padding: 1rem;
  background: rgba(8, 22, 18, .92);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage {
  position: relative;
  width: 100%;
  height: min(72vh, 100%);
  display: grid;
  place-items: center;
}
.lb-photo {
  width: min(680px, 100%);
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(201,168,130,.45);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: scale(.93);
  transition: transform .5s var(--ease);
  background-size: cover;
}
.lightbox.open .lb-photo { transform: scale(1); }
.lb-close, .lb-nav {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,168,130,.34);
  color: var(--gold-300);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: grid; place-items: center;
  transition: background .3s, transform .3s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.18); transform: scale(1.08); }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }

/* ============================================================
   RSVP FORM
   ============================================================ */
.rsvp-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(42,125,104,.08), transparent 45%),
    var(--cream-2);
}
.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(43,29,20,.08);
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emerald-700);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .78rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(43,29,20,.16);
  background: var(--cream);
  font-size: .88rem;
  transition: border-color .3s, box-shadow .3s, background .3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(79,98,92,.5); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(195,154,114,.20);
}
.field input.invalid, .field textarea.invalid {
  border-color: #d1495b;
  box-shadow: 0 0 0 3px rgba(209,73,91,.14);
  animation: shake .4s;
}
@keyframes shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-pill { cursor: pointer; position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; }
.radio-pill span {
  display: block;
  padding: .6rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(86,58,39,.18);
  background: var(--cream);
  color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.radio-pill input:checked + span {
  background: linear-gradient(135deg, #563a27, #8b6242);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(86,58,39,.30);
  transform: translateY(-2px);
}
.radio-pill:hover span { border-color: var(--gold-500); }

.rsvp-form .btn-primary { margin-top: .4rem; padding-block: 1rem; }
.btn-primary.loading .btn-label { opacity: .6; }
.btn-primary.loading svg { animation: sendFly .8s var(--ease) infinite; }
@keyframes sendFly {
  0% { transform: translate(0,0); }
  50% { transform: translate(4px,-4px); }
  100% { transform: translate(0,0); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.2rem;
  border-radius: 14px;
  background: var(--emerald-800);
  color: var(--cream);
  font-size: .82rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, transform .4s var(--ease), visibility .4s;
  max-width: calc(100vw - 2rem);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--emerald-900);
  font-size: .7rem;
  font-weight: 700;
  flex: none;
}

/* ============================================================
   DIGITAL GIFT
   ============================================================ */
.gift-section {
  background: linear-gradient(180deg, #3b281b, #563a27 60%, #6f4b31);
  color: var(--cream);
}
.gift-section .section-title { color: #fff; }
.gift-section .section-eyebrow { color: var(--gold-300); }
.gift-section .section-sub { color: rgba(242,227,205,.68); }

.gift-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.gift-card {
  position: relative;
  padding: 1.3rem 1.3rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(201,168,130,.30);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.gift-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,130,.32), transparent 70%);
  transition: transform .6s var(--ease);
}
.gift-card:hover { transform: translateY(-6px); border-color: rgba(230,196,122,.6); box-shadow: 0 22px 50px rgba(0,0,0,.35); }
.gift-card:hover::before { transform: scale(1.6); }
.gc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  position: relative;
}
.gc-bank {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .24em;
  color: rgba(242,227,205,.58);
}
.gc-logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: .62rem;
  letter-spacing: .08em;
  color: var(--gold-300);
  padding: .3rem .55rem;
  border-radius: 8px;
  max-width: 96px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-body { position: relative; }
.gc-label {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242,227,205,.55);
}
.gc-num {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 4.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  margin: .15rem 0 .3rem;
}
.gc-num.small {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.6;
}
.gc-holder { font-size: .74rem; color: rgba(242,227,205,.62); }
.gc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.1rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--emerald-900);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.gc-btn svg { width: 14px; height: 14px; }
.gc-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(195,154,114,.35); }
.gc-btn.copied { background: linear-gradient(135deg, #e6d2b8, #c39a72); }

/* ============================================================
   GUEST WISHES
   ============================================================ */
.wishes-section { background: var(--cream); }
.wishes-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 2rem;
}
.ws-item { text-align: center; }
.ws-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--emerald-700);
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.ws-lbl {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ws-divider { width: 1px; height: 34px; background: rgba(43,29,20,.16); }

.wishes-list {
  display: grid;
  gap: .8rem;
  max-height: 520px;
  overflow: hidden;
  transition: max-height .8s var(--ease);
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
  padding-bottom: 1rem;
}
.wishes-list.expanded {
  max-height: 5000px;
  -webkit-mask-image: none;
  mask-image: none;
}
.wish {
  display: flex;
  gap: .9rem;
  padding: 1.05rem 1.15rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(43,29,20,.08);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.wish:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.wish-avatar {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--emerald-900);
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 4px 12px rgba(195,154,114,.35);
}
.wish-main { flex: 1; min-width: 0; }
.wish-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .2rem;
}
.wish-name {
  font-size: .84rem;
  font-weight: 700;
  color: var(--emerald-800);
}
.wish-badge {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .14rem .5rem;
  border-radius: 999px;
  background: rgba(163,124,90,.16);
  color: var(--emerald-600);
}
.wish-badge.tidak { background: rgba(209,73,91,.1); color: #c2455a; }
.wish-badge.ragu { background: rgba(195,154,114,.20); color: #a07a2c; }
.wish-time { font-size: .66rem; color: rgba(79,98,92,.65); margin-left: auto; }
.wish-text { font-size: .82rem; line-height: 1.7; color: var(--ink-soft); word-break: break-word; }
.wishes-more { margin-top: 1.2rem; }

/* ============================================================
   CLOSING
   ============================================================ */
.closing {
  position: relative;
  padding-top: clamp(4rem, 10vw, 7rem);
  background: linear-gradient(180deg, var(--cream), var(--cream-2));
  overflow: hidden;
}
.closing-ornament {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(500px, 100%);
  height: 200px;
  opacity: .3;
  background:
    radial-gradient(circle at 50% 0, transparent 40px, rgba(166,122,82,.5) 41px, transparent 42px);
  mask-image: radial-gradient(ellipse at 50% 0, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0, #000 20%, transparent 70%);
}
.closing-salam {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  line-height: 1.6;
  color: var(--emerald-700);
  margin-bottom: 2rem;
}
.closing-card {
  max-width: 680px;
  margin: 0 auto 2.4rem;
  padding: clamp(1.6rem, 5vw, 2.6rem);
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(166,122,82,.26);
  box-shadow: var(--shadow-md);
  position: relative;
}
.closing-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 14px;
  border: 1px solid rgba(166,122,82,.16);
  pointer-events: none;
}
.closing-thanks {
  font-size: .88rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.closing-sign { font-size: .74rem; color: rgba(79,98,92,.8); }
.closing-family {
  font-family: var(--serif);
  font-size: .95rem;
  line-height: 1.7;
  color: var(--emerald-800);
  margin-top: .1rem;
}
.closing-family strong { font-size: 1.1em; }

.share-block { text-align: center; margin-bottom: 3rem; }
.share-label {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .9rem;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid rgba(86,58,39,.18);
  background: #fff;
  color: var(--emerald-700);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.share-btn.wa { background: #25d366; border-color: #25d366; color: #06301a; }
.share-btn.wa:hover { box-shadow: 0 12px 28px rgba(37,211,102,.4); }
.share-btn.copied { background: var(--emerald-700); color: var(--gold-300); border-color: var(--emerald-700); }

.footer {
  text-align: center;
  padding: 1.6rem 1rem 6rem;
  border-top: 1px solid rgba(43,29,20,.10);
}
.footer p { font-size: .76rem; color: var(--ink-soft); }
.heart { color: #d1495b; animation: heartBeat 1.6s ease-in-out infinite; display: inline-block; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.18); }
}
.footer-sub {
  font-size: .62rem !important;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .55;
  margin-top: .25rem;
}

/* ============================================================
   FLOATING CONTROLS
   ============================================================ */
.float-bar {
  position: fixed;
  right: 1rem;
  bottom: 1.1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .5s, transform .5s var(--ease);
}
.float-bar.show { opacity: 1; transform: none; pointer-events: auto; }
.fab {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,130,.45);
  background: rgba(59,40,27,.92);
  color: var(--gold-300);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(43,29,20,.3);
  transition: transform .3s var(--ease), background .3s;
  position: relative;
  overflow: hidden;
}
.fab svg { width: 20px; height: 20px; }
.fab:hover { transform: scale(1.08); background: var(--emerald-700); }

/* music icon */
.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.music-bars i {
  width: 3px;
  border-radius: 2px;
  background: var(--gold-300);
  height: 100%;
  animation: barDance .9s ease-in-out infinite;
}
.music-bars i:nth-child(1) { animation-delay: 0s; }
.music-bars i:nth-child(2) { animation-delay: .15s; }
.music-bars i:nth-child(3) { animation-delay: .3s; }
.music-bars i:nth-child(4) { animation-delay: .45s; }
@keyframes barDance {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}
.fab.music.muted .music-bars i { animation-play-state: paused; height: 24%; }
.music-slash {
  position: absolute;
  width: 26px; height: 2px;
  border-radius: 2px;
  background: var(--gold-300);
  transform: rotate(-45deg) scaleX(0);
  transition: transform .3s var(--ease);
}
.fab.music.muted .music-slash { transform: rotate(-45deg) scaleX(1); }

/* ============================================================
   BOTTOM SHEET NAV
   ============================================================ */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.sheet.open { opacity: 1; visibility: visible; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30,20,13,.55);
  backdrop-filter: blur(4px);
}
.sheet-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #fff, var(--cream-2));
  border-radius: 24px 24px 0 0;
  padding: 1rem 1.2rem calc(1.6rem + env(safe-area-inset-bottom));
  display: grid;
  gap: .15rem;
  transform: translateY(100%);
  transition: transform .45s var(--ease);
  box-shadow: 0 -20px 50px rgba(0,0,0,.2);
}
.sheet.open .sheet-panel { transform: none; }
.sheet-handle {
  width: 42px; height: 4px;
  border-radius: 2px;
  background: rgba(43,29,20,.20);
  margin: 0 auto .8rem;
}
.sheet-panel a {
  padding: .8rem .9rem;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--emerald-800);
  transition: background .25s, padding-left .25s;
}
.sheet-panel a:hover, .sheet-panel a:active {
  background: rgba(122,84,51,.10);
  padding-left: 1.2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
  .rsvp-form { grid-template-columns: 1fr; }
  .edr-sep { display: none; }
  .event-date-row { gap: 1.1rem 2rem; }
  .lb-close { top: .6rem; right: .6rem; }
  .wishes-list { max-height: 460px; }
  .petal { width: 9px; height: 9px; }
}

@media (max-width: 400px) {
  .countdown { gap: .4rem; }
  .cd-inner { padding: .7rem .15rem; }
  .hero-chips .chip { font-size: .68rem; padding: .45rem .7rem; }
  .toast { bottom: 76px; font-size: .76rem; }
}

@media (min-width: 900px) {
  .sheet { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Print */
@media print {
  .cover, .float-bar, .preloader, #particles, #confetti, .petals, .shot-caption { display: none !important; }
  main { opacity: 1 !important; }
  body { background: #fff; }
}
