/* =========================================================
   UNDANGAN PERNIKAHAN -- STYLESHEET UTAMA
   =========================================================
   Warna & font diatur lewat CSS variables yang dicetak inline
   oleh index.php (lihat content.php -> 'theme'). File ini
   mengatur STRUKTUR, jadi biasanya tidak perlu diubah kalau
   kamu cuma ingin ganti warna/font/teks.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------
   BACKDROP -- area di luar kolom .page (layar lebar/desktop)
   DAN section transparan (hero, countdown, closing) memakai
   lapisan foto yang sama di sini. Kalau foto lebih dari satu,
   main.js akan menyilangkan opacity antar .page-backdrop__slide
   setiap beberapa detik (lihat data-interval).
--------------------------------------------------------- */
.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.page-backdrop__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center calc(50% - 15%);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.page-backdrop__slide.is-active {
  opacity: 1;
  animation: backdrop-kenburns 16s ease-in-out infinite alternate;
}
@keyframes backdrop-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

body.is-locked {
  overflow: hidden;
  height: 100%;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; font-family: var(--font-heading); font-weight: 500; }

p { margin: 0; line-height: 1.7; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ---------------------------------------------------------
   Utilitas
--------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin-bottom: 1.6rem;
}

.flourish {
  width: 96px;
  height: 14px;
  color: var(--gold);
  margin: 1.4rem 0;
}
.flourish--light { color: var(--gold-soft); }

/* Reveal-on-scroll: easing premium (ease-out-expo), variasi arah &
   skala supaya tidak monoton "fade-up" semua, plus stagger halus
   untuk grup berulang (galeri, kartu acara, timeline). */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 2.65s cubic-bezier(0.16, 1, 0.3, 1), transform 2.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal--left  { transform: translate3d(-36px, 12px, 0); }
.reveal--right { transform: translate3d(36px, 12px, 0); }
.reveal--scale { transform: scale(0.88); }
.reveal--fade  { transform: none; transition: opacity 2.85s ease; }

/* Stagger galeri -- foto muncul satu-satu, bukan serentak */
.gallery__item:nth-child(1) { transition-delay: 0s; }
.gallery__item:nth-child(2) { transition-delay: 0.08s; }
.gallery__item:nth-child(3) { transition-delay: 0.16s; }
.gallery__item:nth-child(4) { transition-delay: 0.24s; }
.gallery__item:nth-child(5) { transition-delay: 0.32s; }
.gallery__item:nth-child(6) { transition-delay: 0.4s; }
.gallery__item:nth-child(n+7) { transition-delay: 0.46s; }

/* Stagger kartu acara & timeline kisah cinta */
.events__list > .event-card:nth-child(1) { transition-delay: 0s; }
.events__list > .event-card:nth-child(2) { transition-delay: 0.12s; }
.events__list > .event-card:nth-child(3) { transition-delay: 0.24s; }
.story__timeline > .story__item:nth-child(1) { transition-delay: 0s; }
.story__timeline > .story__item:nth-child(2) { transition-delay: 0.15s; }
.story__timeline > .story__item:nth-child(3) { transition-delay: 0.3s; }
.story__timeline > .story__item:nth-child(4) { transition-delay: 0.45s; }

/* ---------------------------------------------------------
   Tombol
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.btn:active { transform: scale(0.96); }
.btn--solid {
  background: var(--deep);
  color: var(--ivory);
  border: 1px solid var(--deep);
  width: 100%;
}
.btn--solid:hover { background: var(--deep-soft); }
.btn--ghost {
  border: 1px solid var(--gold);
  color: var(--deep);
  padding: 0.7rem 1.4rem;
  font-size: 0.88rem;
}
.btn--ghost:hover { background: var(--gold); color: var(--ivory); }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.btn--open {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--gold-soft);
  padding: 0.85rem 2.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.btn--open:hover { background: rgba(217, 185, 155, 0.14); transform: translateY(-2px); }

/* ---------------------------------------------------------
   COVER
--------------------------------------------------------- */
.cover {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  /* Mengatur jarak agar elemen terdorong ke atas dan ke bawah */
  justify-content: space-between; 
  align-items: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Berikan jarak padding atas dan bawah yang aman */
  padding: max(3rem, env(safe-area-inset-top)) 1.5rem max(3rem, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--ivory);
  background: var(--deep);
  transition: opacity 1.2s cubic-bezier(0.65, 0, 0.35, 1), visibility 1.2s cubic-bezier(0.65, 0, 0.35, 1), transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  pointer-events: none;
}

.cover__frame {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border: 1px solid rgba(217, 185, 155, 0.55);
  pointer-events: none;
}
.corner { position: absolute; width: 46px; height: 46px; color: var(--gold-soft); }
.corner--tl { top: -1px; left: -1px; }
.corner--tr { top: -1px; right: -1px; transform: scaleX(-1); }
.corner--bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.corner--br { bottom: -1px; right: -1px; transform: scale(-1, -1); }

.cover__content {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cover-fade 1.4s ease both;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
/* Kita buat pembagian khusus untuk area atas (Nama Pasangan) dan bawah (Tamu & Tombol) */
.cover__top-section {
  width: 100%;
}

.cover__bottom-section {
  width: 100%;
  margin-top: auto; /* Memastikan bagian ini menempel di bawah jika layar tinggi */
}
.cover.is-hidden .cover__content {
  opacity: 0;
  transform: translateY(-16px) scale(0.97);
}
@keyframes cover-fade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.cover__eyebrow {
  font-family: var(--font-heading);
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  margin: 0 0 0.6rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.cover__names {
  display: flex;
  flex-direction: row; /* Mengubah susunan menjadi menyamping (horizontal) */
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* Jarak antara nama pertama, simbol &, dan nama kedua */
  font-family: var(--font-script);
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

.cover__names span {
  /* Memperkecil ukuran font sedikit agar muat dalam satu baris secara horizontal di layar HP */
  font-size: clamp(2.2rem, 9vw, 3.2rem); 
  font-weight: 700;
}

.cover__amp {
  display: inline-block; /* Mengubah ampersand agar sejajar horizontal */
  font-style: normal;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-weight: 700;
  color: var(--gold-soft);
  margin: 0 0.2rem;
}

.cover__divider {
  width: 60px;
  height: 1px;
  background: var(--gold-soft);
  margin: 1.6rem auto;
}

.cover__guest-label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.cover__guest-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ---------------------------------------------------------
   LAYOUT UMUM
--------------------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.page.is-visible {
  opacity: 1;
  transform: scale(1);
}

.section {
  padding: 5rem 1.8rem;
  text-align: center;
}

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */
.hero {
  background: transparent;
  color: var(--ivory);
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero__names {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 4rem);
  margin-bottom: 0.4rem;
}
.hero .flourish { margin-left: auto; margin-right: auto; }
.quote {
  margin: 0 auto;
  max-width: 400px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.8;
}
.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--gold-soft);
}

/* ---------------------------------------------------------
   COUPLE
--------------------------------------------------------- */
.couple {
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.couple__card { max-width: 320px; }
.couple__photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.3rem;
  border: 1px solid var(--gold-soft);
  padding: 6px;
}
.couple__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.couple__name { font-size: 1.5rem; margin-bottom: 0.4rem; }
.couple__parents { font-size: 0.92rem; color: var(--ink); opacity: 0.75; max-width: 280px; margin: 0 auto; }
.couple__ig { display: inline-block; margin-top: 0.7rem; font-size: 0.85rem; color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.couple__amp {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--gold);
  margin: 0.6rem 0;
}

/* --- Mode SINGLE: satu foto berdua + detail bride/groom di bawah --- */
.couple--single { gap: 1.8rem; }
.couple__together {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  padding: 8px;
}
.couple__together img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.couple__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
}
.couple__detail { max-width: 260px; }
.couple__amp--inline { margin: 0; }

/* ---------------------------------------------------------
   STORY / TIMELINE
--------------------------------------------------------- */
.story { background: var(--ivory-dim); }
.story__timeline {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
  padding-left: 2rem;
}
.story__timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--gold-soft);
}
.story__item { position: relative; padding-bottom: 2.4rem; }
.story__item:last-child { padding-bottom: 0; }
.story__marker {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ivory-dim);
  border: 1px solid var(--gold);
}
.story__date { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--gold); margin-bottom: 0.3rem; }
.story__title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.story__text { font-size: 0.92rem; opacity: 0.8; }

/* ---------------------------------------------------------
   COUNTDOWN
--------------------------------------------------------- */
.countdown { background: transparent; color: var(--ivory); }
.countdown .eyebrow { color: var(--gold-soft); }
.countdown__grid {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  padding: 1rem 0.4rem;
  border: 1px solid rgba(217, 185, 155, 0.35);
}
.countdown__num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--gold-soft);
  display: inline-block;
}
@keyframes countdown-tick {
  from { opacity: 0.35; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.countdown__num.is-ticking {
  animation: countdown-tick 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.countdown__label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
  opacity: 0.85;
}

/* ---------------------------------------------------------
   EVENTS
--------------------------------------------------------- */
.events__list { display: flex; flex-direction: column; gap: 1.6rem; max-width: 380px; margin: 0 auto; }
.events { background: var(--ivory); }
.event-card {
  border: 1px solid var(--gold-soft);
  padding: 2rem 1.6rem;
}
.event-card__label { font-size: 1.3rem; margin-bottom: 0.3rem; }
.event-card__date { font-size: 0.95rem; margin-bottom: 0.1rem; }
.event-card__time { font-size: 0.88rem; opacity: 0.75; }
.event-card__divider { width: 40px; height: 1px; background: var(--gold-soft); margin: 1.2rem auto; }
.event-card__venue { font-size: 1.02rem; font-family: var(--font-heading); margin-bottom: 0.3rem; }
.event-card__address { font-size: 0.85rem; opacity: 0.75; max-width: 280px; margin: 0 auto; }
.event-card__actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------------------------------------------------------
   GALLERY
   Latar gradasi lembut blush -> sage -> teal, meniru palet
   pastel yang muncul di foto galeri (kebaya, kain, pintu),
   supaya section ini terasa "bernapas" dibanding ivory polos.
--------------------------------------------------------- */
.gallery {
  background:
    linear-gradient(135deg,
      rgba(232, 180, 168, 0.16) 0%,
      var(--ivory-dim) 45%,
      rgba(156, 175, 136, 0.14) 75%,
      rgba(63, 124, 116, 0.10) 100%);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.gallery__item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(217, 185, 155, 0.6);
  padding: 3px;
  background: var(--ivory);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery .eyebrow { color: var(--teal); }

.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  background: rgba(28, 27, 25, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 88vh; max-width: 100%; border: 1px solid var(--gold-soft); }
.lightbox__close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  color: var(--ivory);
  font-size: 1.6rem;
  line-height: 1;
}

/* ---------------------------------------------------------
   GIFT
--------------------------------------------------------- */
.gift { background: var(--ivory); }
.gift__intro { max-width: 380px; margin: 0 auto 2rem; opacity: 0.85; font-size:0.8rem; }
.gift__accounts { display: flex; flex-direction: column; gap: 1rem; max-width: 380px; margin: 0 auto; }
.gift__account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--gold-soft);
  padding: 1.2rem 1.4rem;
  text-align: left;
}
.gift__bank { font-family: var(--font-heading); font-size: 1.05rem; }
.gift__number { font-size: 1.1rem; letter-spacing: 0.03em; margin: 0.2rem 0; }
.gift__owner { font-size: 0.82rem; opacity: 0.7; }
.gift__address {
  max-width: 380px;
  margin: 1.6rem auto 0;
  padding: 1.2rem 1.4rem;
  border: 1px dashed var(--gold-soft);
}
.gift__address-label { font-family: var(--font-heading); margin-bottom: 0.3rem; }
.gift__address-text { font-size: 0.9rem; opacity: 0.8; }

/* ---------------------------------------------------------
   RSVP
--------------------------------------------------------- */
.rsvp { background: var(--ivory); }
.rsvp__form { max-width: 380px; margin: 0 auto; text-align: left; }
.rsvp__field {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.rsvp__field legend, .rsvp__field > label:first-child {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 0.6rem;
  display: block;
}
.checkbox, .radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1.4rem;
  font-size: 0.95rem;
}
#jumlah_kehadiran {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gold-soft);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.notice {
  max-width: 380px;
  margin: 0 auto;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--gold-soft);
  font-size: 0.92rem;
  opacity: 0.9;
}
.notice--warn { border-color: #a35b3a; }
.form-message {
  margin-top: 1rem;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-message.is-success { color: var(--deep); }
.form-message.is-error { color: #a3402c; }

/* ---------------------------------------------------------
   WISHES
--------------------------------------------------------- */
.wishes { background: var(--ivory-dim); }
.wishes__subtitle { max-width: 340px; margin: 0 auto 2rem; opacity: 0.8; font-size:0.8rem;}
.wishes__form {
  max-width: 380px;
  margin: 0 auto 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}
.wishes__form input, .wishes__form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gold-soft);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
}
.wishes__list {
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.4rem;
  text-align: left;
}
.wishes__empty { text-align: center; opacity: 0.6; font-size: 0.9rem; }
.wish-item {
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.9rem;
  animation: wish-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes wish-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wish-item:nth-child(1) { animation-delay: 0s; }
.wish-item:nth-child(2) { animation-delay: 0.06s; }
.wish-item:nth-child(3) { animation-delay: 0.12s; }
.wish-item:nth-child(4) { animation-delay: 0.18s; }
.wish-item:nth-child(n+5) { animation-delay: 0.24s; }
.wish-item__name { font-family: var(--font-heading); font-size: 1.02rem; margin-bottom: 0.2rem; }
.wish-item__comment { font-size: 0.9rem; opacity: 0.85; }

/* ---------------------------------------------------------
   CLOSING
--------------------------------------------------------- */
.closing { background: transparent; color: var(--ivory); padding-bottom: 4rem; }
.closing .flourish { margin-left: auto; margin-right: auto; }
.closing__text { max-width: 360px; margin: 0 auto 1.6rem; opacity: 0.9; font-size:0.8rem;}
.closing__signature { font-family: var(--font-script); font-weight: 700; font-size: 2.6rem; margin-bottom: 1.6rem; }
.closing__credit { font-size: 0.75rem; opacity: 0.55; }

/* ---------------------------------------------------------
   MUSIC TOGGLE
--------------------------------------------------------- */
.music-toggle {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--deep);
  border: 1px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(28, 27, 25, 0.35);
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.music-toggle.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.music-toggle__disc {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--gold-soft) 0%, var(--gold-soft) 18%, transparent 20%),
              conic-gradient(from 0deg, var(--gold) 0deg, var(--deep-soft) 40deg, var(--gold) 90deg, var(--deep-soft) 140deg, var(--gold) 200deg, var(--deep-soft) 260deg, var(--gold) 320deg, var(--gold) 360deg);
  animation: spin 3.6s linear infinite;
  animation-play-state: paused;
}
.music-toggle.is-playing .music-toggle__disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (min-width: 640px) {
  .couple { flex-direction: row; align-items: flex-start; justify-content: center; gap: 2rem; }
  .couple__amp { margin-top: 3.5rem; }
  /* Mode single: foto tetap di ATAS, detail bride/groom di BAWAHNYA --
     jangan ikut jadi sejajar seperti mode double. */
  .couple--single { flex-direction: column; align-items: center; }
  .couple--single .couple__details { flex-direction: row; justify-content: center; align-items: flex-start; gap: 2.8rem; }
  .section { padding: 6rem 2.4rem; }
}

@media (max-width: 380px) {
  .section { padding: 4rem 1.2rem; }
  .gift__account { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

/* Layar pendek DAN sempit (ciri khas HP direbahkan/landscape): rapatkan
   jarak vertikal di cover supaya tombol "Buka Undangan" tidak terdorong
   keluar layar. Syarat lebar ikut dicek supaya jendela DESKTOP yang
   kebetulan tidak terlalu tinggi (laptop, window belum di-maximize, dst)
   TIDAK ikut ke-trigger jadi rata atas -- itu cuma untuk HP sungguhan. */
@media (max-height: 500px) and (max-width: 900px) {
  .cover { align-items: flex-start; padding-top: 1.6rem; padding-bottom: 1.6rem; }
  .cover__eyebrow { margin-bottom: 0.3rem; }
  .cover__divider { margin: 1rem auto; }
  .cover__guest-name { margin-bottom: 1.3rem; }
  .cover__names span { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .couple--single .couple__together { max-width: 220px; }
  .couple--single .couple__details { flex-direction: row; justify-content: center; align-items: flex-start; gap: 2rem; }
}