:root {
  --putih: #fff;
  --font-judul: "Alice", serif;
  --font-couple: "Great Vibes", cursive;
  --font-teks: "Montserrat", sans-serif;
  --font-brush: "Water Brush", cursive;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-teks); color: var(--putih); background: #111; }
body.locked { overflow: hidden; }


/* ================= COVER ================= */
.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;          /* teks di bagian bawah, foto mempelai tetap terlihat */
  align-items: center;
  text-align: center;
  padding: clamp(24px, 5vh, 56px) clamp(20px, 6vw, 56px) clamp(28px, 6vh, 64px);
  background-color: #2a2a2e;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--pos-bg, center);
  overflow: hidden;
}
.cover::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 55%),
    rgba(0, 0, 0, var(--overlay, .55));
}
.cover__top, .cover__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
}
.cover__bottom { margin-top: clamp(20px, 4.5vw, 44px); }

#judul {
  font-family: var(--font-teks);
  font-weight: 400;
  font-size: clamp(14px, 2.7vw, 22px);
  letter-spacing: .3px;
}
#couple {
  font-family: var(--font-brush);     /* Water Brush */
  font-weight: 400;
  font-size: clamp(44px, 11vw, 84px);
  line-height: 1.15;
  margin-top: clamp(4px, 1vw, 10px);
  text-wrap: balance;
}

#sapaan {
  font-family: var(--font-teks);
  font-weight: 400;
  font-size: clamp(12px, 2.5vw, 19px);
}
.guest {
  font-family: var(--font-judul);     /* Alice */
  font-weight: 400;
  font-size: clamp(24px, 5.6vw, 42px);
  line-height: 1.2;
  margin: clamp(8px, 1.8vw, 16px) 0 clamp(20px, 4.5vw, 40px);
  max-width: 100%;
  overflow-wrap: anywhere;            /* nama tamu panjang tidak keluar layar */
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 16px);
  padding: clamp(10px, 2.2vw, 18px) clamp(24px, 6vw, 52px);
  font: 400 clamp(16px, 3.4vw, 26px) var(--font-teks);
  color: var(--putih);
  background: transparent;
  border: clamp(1.5px, .3vw, 2px) solid var(--putih);
  border-radius: clamp(8px, 1.6vw, 14px);
  cursor: pointer;
  transition: background .3s, color .3s;
}
.btn svg { width: clamp(24px, 5.6vw, 44px); height: auto; flex: none; }
.btn:hover { background: var(--putih); color: #111; }
.btn:focus-visible { outline: 2px solid var(--putih); outline-offset: 4px; }

.note {
  font-family: var(--font-teks);
  font-size: clamp(11px, 2.1vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  margin-top: clamp(20px, 4.5vw, 40px);
  max-width: 22em;
  opacity: .95;
  text-wrap: balance;
}

/* Transisi slide up */
.anim { opacity: 0; transform: translateY(40px); }
.cover.ready .anim {
  animation: slideUp .9s cubic-bezier(.22, .8, .3, 1) forwards;
  animation-delay: calc(var(--i) * .22s + .2s);
}
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* HP landscape / layar pendek */
@media (max-height: 520px) {
  .cover { padding-top: 4vh; padding-bottom: 4vh; }
  .cover__bottom { margin-top: 12px; }
  .guest { margin: 6px 0 14px; }
  .note { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1; transform: none; animation: none !important; }
  html { scroll-behavior: auto; }
}


/* ================= DETAIL ACARA ================= */
.detail {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(48px, 10vh, 96px) clamp(16px, 5vw, 48px);
  text-align: center;
  overflow: hidden;
}
.bg-tetap { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; overflow: hidden; background: #1a1a1c; }
.bg-tetap .slide {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: center / cover no-repeat;
  opacity: 0;
  will-change: transform, opacity;
}
.bg-tetap::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  background: rgba(0, 0, 0, var(--overlay-detail, .6));
}
.detail__isi {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  --garis: clamp(2px, .6vw, 4px);
}

.aksara { display: block; width: clamp(150px, 42vw, 280px); height: auto; filter: brightness(0) invert(1); } /* SVG otomatis jadi putih */
.aksara[hidden] { display: none; }
.cover, #isi-undangan { position: relative; z-index: 1; }

/* Semua teks detail acara: Alice (kecuali salam: Great Vibes) */
.detail__isi { font-family: var(--font-teks); }
.salam {
  font-family: var(--font-brush);     /* Water Brush */
  font-weight: 400;
  font-size: clamp(44px, 12vw, 84px);
  line-height: 1.15;
  margin: clamp(4px, 1.2vw, 10px) 0 clamp(10px, 2.5vw, 20px);
}
.pembuka { font-size: clamp(13px, 2.9vw, 19px); line-height: 1.6; max-width: 32em; text-wrap: balance; }

/* Foto lengkung */
.foto-acara {
  display: block;
  width: clamp(240px, 74vw, 430px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 999px 999px 0 0;   /* bentuk lengkung (arch) */
  margin-top: clamp(20px, 5vw, 36px);
  background: #2a2a2e;
}
.foto-acara[hidden] { display: none; }

/* Tanggal, jam, lokasi */
.jadwal { width: 100%; margin-top: clamp(24px, 6vw, 44px); }
.jadwal__tgl {
  font-family: var(--font-brush);   /* Water Brush */
  font-weight: 400;
  font-size: clamp(40px, 12vw, 68px);
  line-height: 1.2;
}
.jadwal__tgl strong { font-weight: 400; }
.jadwal__jam { margin-top: clamp(8px, 2vw, 14px); font-size: clamp(17px, 4.8vw, 26px); line-height: 1.4; }
.jadwal__lokasi { margin-top: clamp(6px, 1.6vw, 12px); font-size: clamp(12px, 3.3vw, 18px); line-height: 1.5; }

/* Hitung mundur: garis atas & bawah */
.hitung {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-top: clamp(24px, 6vw, 44px);
  padding: clamp(10px, 2.6vw, 18px) 0;
  border-top: var(--garis) solid var(--putih);
  border-bottom: var(--garis) solid var(--putih);
}
.hitung div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.hitung b { font-weight: 400; font-size: clamp(24px, 7vw, 40px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hitung span { font-size: clamp(13px, 3.8vw, 22px); }

/* Tombol putih */
.aksi { display: flex; justify-content: center; gap: clamp(10px, 3vw, 24px); width: 100%; margin-top: clamp(26px, 7vw, 56px); }
.btn-putih {
  flex: 1;
  max-width: 230px;
  padding: clamp(12px, 3vw, 16px) 8px;
  font: 700 clamp(11px, 2.8vw, 15px) var(--font-teks);
  text-align: center;
  text-decoration: none;
  color: #111;
  background: var(--putih);
  border: 0;
  cursor: pointer;
  transition: opacity .3s;
}
.detail .btn-putih {
  font: 700 clamp(11px, 2.8vw, 15px) var(--font-teks);
  border-radius: clamp(8px, 1.8vw, 12px);
}
.btn-putih:hover { opacity: .85; }
.btn-putih:focus-visible { outline: 2px solid var(--putih); outline-offset: 3px; }

.penutup { margin-top: clamp(18px, 4.5vw, 34px); font-size: clamp(13px, 2.9vw, 19px); line-height: 1.6; max-width: 32em; text-wrap: balance; }

/* Slide up saat di-scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.22, .8, .3, 1), transform .9s cubic-bezier(.22, .8, .3, 1); transition-delay: calc(var(--d, 0) * .12s); }
.reveal.in-view { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .detail__isi { max-width: 720px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-tetap .slide:first-child { opacity: 1; }
}

/* ================= MEMPELAI ================= */
.mempelai {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(48px, 10vh, 96px) clamp(16px, 5vw, 48px);
  text-align: center;
}
.mempelai__isi { width: 100%; max-width: 1000px; display: flex; flex-direction: column; align-items: center; }
.mp-judul { font-family: var(--font-judul); font-weight: 400; font-size: clamp(28px, 7.5vw, 52px); margin-bottom: clamp(24px, 6vw, 44px); }

.mempelai__grid {
  --foto-w: clamp(200px, 62vw, 340px);
  display: flex;                 /* HP & tablet: vertikal */
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 3vw, 24px);
  width: 100%;
}
.mp { display: flex; flex-direction: column; align-items: center; width: min(100%, 440px); }
.mp__bingkai {
  position: relative;
  flex: none;                    /* jangan ikut menyusut/melar di flex */
  width: var(--foto-w);
  height: var(--foto-w);         /* kotak pasti 1:1 -> lingkaran penuh */
  border-radius: 50%;
  overflow: hidden;
}
.mp__bingkai::after {            /* garis lingkaran putih */
  content: "";
  position: absolute;
  inset: 5%;
  border: clamp(2px, .5vw, 3px) solid var(--putih);
  border-radius: 50%;
  pointer-events: none;
}
.mp__foto {
  position: absolute;
  inset: 0;                      /* foto mengisi bingkai, tinggi tidak mengikuti rasio foto */
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;   /* fokus ke wajah */
  border-radius: 50%;
  background: #2a2a2e;
}
.mp__nama { font-family: var(--font-judul); font-weight: 400; font-size: clamp(20px, 5.4vw, 30px); line-height: 1.3; margin-top: clamp(14px, 3.5vw, 24px); }
.mp__info { font-size: clamp(12px, 3vw, 16px); line-height: 1.65; margin-top: clamp(8px, 2vw, 14px); white-space: pre-line; opacity: .92; }
.dan { font-family: var(--font-couple); font-size: clamp(56px, 16vw, 96px); line-height: 1; }

/* Desktop: berdampingan */
@media (min-width: 1024px) {
  .mempelai__grid {
    --foto-w: clamp(240px, 24vw, 320px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(16px, 4vw, 48px);
  }
  .mp { justify-self: center; }
  .dan { margin-top: calc(var(--foto-w) * .5 - .5em); }
}

/* ================= QUOTES ================= */
.quotes {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 8vh, 80px) clamp(16px, 5vw, 48px) clamp(40px, 8vh, 72px);
  text-align: center;
}
.quotes__isi { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.q__kaca {                      /* kotak kaca blur */
  width: 100%;
  padding: clamp(18px, 5vw, 36px) clamp(16px, 5vw, 40px) clamp(22px, 6vw, 40px);
  background: rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: clamp(16px, 4vw, 28px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; align-items: center;
}
.q__tanda { font-size: clamp(16px, 4vw, 24px); line-height: 1; margin-top: clamp(8px, 2vw, 14px); }
.q__teks { font-size: clamp(12px, 3.1vw, 17px); line-height: 1.7; margin-top: clamp(8px, 2vw, 14px); white-space: pre-line; max-width: 42em; }
.q__garis { display: block; width: clamp(160px, 50%, 360px); height: clamp(2px, .5vw, 3px); background: var(--putih); margin-top: clamp(40px, 10vh, 80px); }

/* ================= GOOGLE MAPS ================= */
.maps { padding-top: clamp(40px, 8vh, 80px); text-align: center; }
.maps__isi {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gm-sub { font-family: var(--font-judul); font-weight: 700; font-size: clamp(18px, 4.6vw, 28px); color: var(--putih); }
.gm-judul { font-family: var(--font-brush); font-weight: 400; font-size: clamp(44px, 12vw, 84px); line-height: 1.15; color: var(--putih); margin-bottom: clamp(20px, 5vw, 40px); }
.gm-peta {
  width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: clamp(12px, 2.4vw, 20px);
  overflow: hidden;
  background: #cbd0d8;
}
.gm-peta iframe { width: 100%; height: 100%; border: 0; display: block; }
.gm-tombol { flex: none; width: clamp(180px, 50vw, 260px); max-width: none; margin-top: clamp(16px, 4vw, 26px); }
.gm-kutipan { font-size: clamp(13px, 3.4vw, 20px); line-height: 1.5; max-width: 26em; margin-top: clamp(18px, 4.5vw, 32px); }

/* Galeri berjalan kiri -> kanan, selebar layar */
.gm-galeri { margin-top: clamp(20px, 5vw, 36px); overflow: hidden; width: 100%; }
.gm-track { display: flex; width: max-content; animation: geserKanan var(--durasi, 30s) linear infinite; }
.gm-track img {
  flex: none;
  width: clamp(130px, 30vw, 260px);
  height: clamp(110px, 26vw, 220px);
  object-fit: cover;
  margin-right: clamp(2px, .6vw, 6px);
  background: #2a2a2e;
}
@keyframes geserKanan { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .gm-track { animation: none; } }

/* ================= GALERI FOTO ================= */
.galeri { padding: clamp(40px, 8vh, 80px) 0 clamp(40px, 8vh, 80px); text-align: center; }
.galeri__isi {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gl-sub { font-family: var(--font-judul); font-weight: 700; font-size: clamp(18px, 4.6vw, 28px); }
.gl-judul { font-family: var(--font-brush); font-weight: 400; font-size: clamp(36px, 10vw, 72px); line-height: 1.2; margin-bottom: clamp(24px, 6vw, 48px); }
.gl-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 2.4vw, 20px);
}
.gl-foto { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; display: block; background: #2a2a2e; }  /* 2 kolom, semua portrait */

/* ================= MODAL PREVIEW FOTO ================= */
.gl-foto { cursor: zoom-in; }
.gl-foto:focus-visible { outline: 2px solid var(--putih); outline-offset: 3px; }
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .95);
  font-family: var(--font-teks);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.buka { opacity: 1; visibility: visible; }
.lb-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) clamp(10px, 3vw, 24px) 8px;
  background: linear-gradient(rgba(0, 0, 0, .65), transparent);
}
.lb-hitung { font-size: clamp(12px, 3.2vw, 15px); font-weight: 600; }
.lb-aksi { display: flex; gap: clamp(4px, 1.5vw, 10px); }
.lb-btn, .lb-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 10vw, 48px);
  height: clamp(40px, 10vw, 48px);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: var(--putih);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s;
}
.lb-btn:hover, .lb-nav:hover { background: rgba(255, 255, 255, .3); }
.lb-btn:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--putih); outline-offset: 2px; }
.lb-stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.lb-track { display: flex; height: 100%; transition: transform .4s cubic-bezier(.22, .8, .3, 1); will-change: transform; }
.lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 64px) clamp(0px, 2vw, 16px) calc(env(safe-area-inset-bottom, 0px) + 16px);
}
.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .25s ease-out;
  -webkit-user-drag: none;
}
.lightbox.menggeser .lb-track,
.lightbox.menggeser .lb-slide img,
.lb-track.tanpa-anim { transition: none; }
.lb-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); display: none; }
.lb-prev { left: clamp(12px, 2vw, 24px); }
.lb-next { right: clamp(12px, 2vw, 24px); }
@media (min-width: 768px) { .lb-nav { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lb-track, .lb-slide img { transition: none; }
}

/* ================= RSVP & UCAPAN ================= */
.rsvp { display: flex; justify-content: center; padding: clamp(40px, 8vh, 80px) clamp(12px, 3vw, 32px); text-align: center; }
.rsvp__isi { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.rsvp-sub { font-family: var(--font-judul); font-size: clamp(18px, 4.6vw, 28px); }
.rsvp-judulbar { display: flex; align-items: center; gap: clamp(8px, 2.5vw, 20px); width: 100%; margin-bottom: clamp(20px, 5vw, 40px); }
.rsvp-judulbar h2 { font-family: var(--font-brush); font-weight: 400; font-size: clamp(40px, 11vw, 76px); line-height: 1.2; white-space: nowrap; }
.rsvp-garis { flex: 1; height: 2px; background: var(--putih); }

.rsvp-kaca {
  width: 100%;
  padding: clamp(14px, 4vw, 32px);
  border-radius: clamp(18px, 4vw, 28px);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: left;
}
#rsvpForm { display: flex; flex-direction: column; gap: clamp(10px, 2.6vw, 16px); }
.rsvp-baris { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(10px, 2.6vw, 16px); }
.rsvp-field {
  display: block;
  width: 100%;
  padding: clamp(12px, 3vw, 16px) clamp(12px, 3vw, 18px);
  font: 400 clamp(14px, 3.6vw, 18px) var(--font-judul);
  color: var(--putih);
  background: transparent;
  border: 2px solid var(--putih);
  border-radius: 0;
  outline: none;
  transition: background .25s;
}
.rsvp-field::placeholder { color: var(--putih); opacity: .95; }
.rsvp-field:focus { background: rgba(255, 255, 255, .12); }
.rsvp-field:focus-visible { outline: 2px solid var(--putih); outline-offset: 2px; }
textarea.rsvp-field { min-height: clamp(110px, 28vw, 160px); resize: vertical; }
select.rsvp-field {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
select.rsvp-field option { color: #111; background: #fff; }
.rsvp-kirim {
  width: 100%;
  padding: clamp(14px, 3.6vw, 18px);
  font: 400 clamp(14px, 3.6vw, 18px) var(--font-judul);
  letter-spacing: .08em;
  color: #111;
  background: var(--putih);
  border: 0;
  border-radius: clamp(12px, 3vw, 16px);
  cursor: pointer;
  transition: opacity .25s;
}
.rsvp-kirim:hover { opacity: .88; }
.rsvp-kirim:disabled { opacity: .55; cursor: wait; }
.rsvp-kirim:focus-visible { outline: 2px solid var(--putih); outline-offset: 3px; }
.rsvp-status { min-height: 1.4em; font-family: var(--font-judul); font-size: clamp(13px, 3.3vw, 16px); text-align: center; }
.rsvp-status.galat { color: #ffb4b4; }

/* Daftar ucapan */
.rsvp-daftar {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vw, 20px);
  max-height: clamp(280px, 52vh, 460px);
  margin-top: clamp(14px, 3.5vw, 24px);
  padding-right: clamp(10px, 2.6vw, 18px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #fff transparent;
}
.rsvp-daftar::-webkit-scrollbar { width: 8px; }
.rsvp-daftar::-webkit-scrollbar-track { background: transparent; }
.rsvp-daftar::-webkit-scrollbar-thumb { background: #fff; border-radius: 8px; }
.ucapan {
  flex-shrink: 0;   /* kartu tidak mengecil, tinggi mengikuti isi teks */
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: clamp(100px, 24vw, 140px);
  padding: clamp(10px, 2.6vw, 16px);
  font-family: var(--font-judul);
  border: 2px solid var(--putih);
  border-radius: clamp(12px, 3vw, 16px);
  animation: munculNaik .6s cubic-bezier(.22, .8, .3, 1) both;
}
.ucapan__nama { font-size: clamp(15px, 3.9vw, 19px); font-weight: 700; overflow-wrap: anywhere; }
.ucapan__isi { flex: 1 0 auto; font-size: clamp(13px, 3.3vw, 16px); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ucapan__status { align-self: flex-end; padding: 6px clamp(14px, 4vw, 24px); font-size: clamp(11px, 2.9vw, 14px); color: #111; background: var(--putih); border-radius: 6px; }
.ucapan-kosong { font-family: var(--font-judul); font-size: clamp(13px, 3.3vw, 16px); text-align: center; opacity: .9; }
@keyframes munculNaik { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 420px) { .rsvp-baris { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ucapan { animation: none; } }
/* ================= AMPLOP DIGITAL ================= */
.amplop {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(48px, 10vh, 96px) clamp(16px, 5vw, 48px);
  text-align: center;
  background: transparent; /* Transparan agar latar foto tetap terlihat */
}
.amplop__isi {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.amplop__judulbar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
  width: 100%;
  margin-bottom: clamp(16px, 4vw, 28px);
}
.amplop__judulbar h2 {
  font-family: var(--font-brush); /* Water Brush */
  font-weight: 400;
  font-size: clamp(38px, 10vw, 76px);
  line-height: 1.15;
  white-space: nowrap;
  color: var(--putih);
}
.amplop__garis {
  flex: 1;
  height: 1.5px;
  background: var(--putih);
}
.amplop__deskripsi {
  font-family: var(--font-teks); /* Montserrat */
  font-size: clamp(12px, 3.2vw, 16px);
  line-height: 1.65;
  max-width: 38em;
  margin-bottom: clamp(24px, 6vw, 36px);
  color: var(--putih);
  opacity: .95;
}
.amplop__btn {
  font-family: var(--font-teks); /* Montserrat */
  font-weight: 700;
  letter-spacing: .06em;
  min-width: clamp(200px, 50vw, 280px);
}

/* ================= MODAL REKENING ================= */
.modal-amplop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(16px, 4vw, 32px);
  background: rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal-amplop.buka {
  opacity: 1;
  visibility: visible;
}
.modal-amplop__kaca {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  padding: clamp(24px, 5vw, 36px) clamp(18px, 4vw, 28px);
  border-radius: 16px;
  text-align: center;
  color: #222;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.modal-amplop__judul {
  font-family: var(--font-brush); /* Water Brush */
  font-weight: 400;
  font-size: clamp(32px, 8vw, 48px);
  color: #111;
  margin-bottom: clamp(16px, 4vw, 24px);
}
.modal-amplop__daftar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.rek-card {
  background: #cbd5e1; /* Abu-abu sesuai desain foto */
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-teks); /* Montserrat */
}
.rek-card__bank {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 700;
  color: #1e1b18;
  margin-bottom: 8px;
}
.rek-card__label {
  font-size: clamp(11px, 2.9vw, 13px);
  color: #555;
  margin-top: 4px;
}
.rek-card__nomor, .rek-card__pemilik {
  font-size: clamp(14px, 3.6vw, 17px);
  font-weight: 700;
  color: #111;
}
.rek-card__salin {
  margin-top: 12px;
  padding: 6px 28px;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 20px;
  font-family: var(--font-teks);
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
/* Tombol berwarna putih saat diklik/berhasil menyalin */
.rek-card__salin.tersalin {
  background: #ffffff;
  color: #111;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.modal-amplop__tutup {
  width: 100%;
  padding: 12px;
  background: #cfc5b3; /* Warna krem/tan lembut sesuai foto */
  border: none;
  border-radius: 4px;
  font-family: var(--font-teks);
  font-size: clamp(13px, 3.3vw, 15px);
  font-weight: 700;
  color: #111;
  cursor: pointer;
  transition: opacity .2s;
}
.modal-amplop__tutup:hover {
  opacity: .88;
}

/* Penyempurnaan amplop digital */
.amplop__isi > .reveal:last-child { width: 100%; display: flex; justify-content: center; }
.amplop__btn { width: clamp(220px, 80vw, 540px); max-width: none; }
.modal-amplop__kaca {
  max-height: 90vh;
  max-height: 90svh;
  transform: translateY(40px);
  transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}
.modal-amplop.buka .modal-amplop__kaca { transform: none; }
.rek-card__salin:focus-visible, .modal-amplop__tutup:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .modal-amplop, .modal-amplop__kaca { transition: none; }
}

/* ================= PENUTUP ================= */
.closing { display: flex; justify-content: center; padding: clamp(40px, 8vh, 80px) clamp(16px, 5vw, 48px) clamp(60px, 14vh, 140px); text-align: center; }
.closing__isi { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; }
.cl-garis { display: block; width: 100%; max-width: 400px; height: clamp(2px, .6vw, 3px); background: var(--putih); }
.cl-ucapan { margin-top: clamp(30px, 8vw, 56px); font-size: clamp(14px, 3.6vw, 20px); line-height: 1.6; max-width: 24em; }
.cl-bahagia { margin-top: clamp(50px, 13vw, 100px); font-size: clamp(14px, 3.6vw, 20px); }
.cl-nama { margin-top: clamp(24px, 6vw, 48px); font-family: var(--font-brush); font-weight: 400; font-size: clamp(44px, 13vw, 84px); line-height: 1.2; }
.cl-aksara { display: block; width: clamp(200px, 60vw, 380px); height: auto; margin-top: clamp(50px, 13vw, 110px); filter: brightness(0) invert(1); }
.cl-aksara[hidden] { display: none; }
.cl-salam { margin-top: clamp(14px, 3.5vw, 26px); font-family: var(--font-brush); font-size: clamp(24px, 6.5vw, 40px); line-height: 1.3; }

/* ================= FOOTER ================= */
.footer {
  position: relative;
  z-index: 1;
  background: #000;               /* hitam polos, menutupi background tetap */
  padding: clamp(48px, 10vh, 96px) clamp(16px, 5vw, 48px);
  text-align: center;
}
.footer__isi { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.ft-judul { font-size: clamp(14px, 3.6vw, 20px); }
.ft-mandala { display: block; width: clamp(180px, 50vw, 290px); height: auto; margin: clamp(16px, 4vw, 28px) 0 clamp(24px, 6vw, 44px); filter: brightness(0) invert(1); }
.ft-mandala[hidden] { display: none; }
.ft-nama { font-weight: 600; font-size: clamp(22px, 5.8vw, 34px); }
.ft-web { margin-top: clamp(12px, 3vw, 20px); font-size: clamp(14px, 3.5vw, 19px); color: var(--putih); text-decoration: none; }
.ft-web:hover { text-decoration: underline; }
.ft-sosmed { display: flex; justify-content: center; gap: clamp(20px, 6vw, 40px); margin-top: clamp(14px, 3.5vw, 24px); }
.ft-ikon { display: block; width: clamp(40px, 10vw, 54px); height: clamp(40px, 10vw, 54px); color: var(--putih); transition: opacity .25s, transform .25s; }
.ft-ikon:hover { opacity: .75; transform: translateY(-2px); }
.ft-web:focus-visible, .ft-ikon:focus-visible { outline: 2px solid var(--putih); outline-offset: 4px; }

/* ================= TOMBOL MUSIK ================= */
.musik {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + clamp(12px, 3vw, 24px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(12px, 3vw, 24px));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 8.5vw, 44px);
  height: clamp(34px, 8.5vw, 44px);
  padding: 0;
  color: var(--putih);
  background: #000;
  border: clamp(2px, .55vw, 3px) solid var(--putih);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .5s, transform .5s cubic-bezier(.22, .8, .3, 1), visibility .5s, background .25s;
}
.musik.tampil { opacity: 1; visibility: visible; transform: none; }
.musik:hover { background: #1a1a1a; }
.musik:focus-visible { outline: 2px solid var(--putih); outline-offset: 3px; }
.musik svg { width: 56%; height: 56%; animation: putarNada 4s linear infinite; animation-play-state: paused; }
.musik.main svg { animation-play-state: running; }   /* berputar saat musik hidup, berhenti di posisi terakhir saat musik berhenti */
@keyframes putarNada { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .musik { transition: none; } .musik svg { animation: none; } }
