/* =========================================================================
   Classic Minang — Wedding Invitation (clean rebuild)
   index.html + css/style.css + js/script.js + assets/
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Maigre";
  src: url("../assets/fonts/maigre.ttf") format("truetype");
  font-weight: 100 400; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Tangerine";
  src: url("../assets/fonts/tangerine-regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Tangerine";
  src: url("../assets/fonts/tangerine-bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Caudex";
  src: url("../assets/fonts/caudex-regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Caudex";
  src: url("../assets/fonts/caudex-bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Amethysta";
  src: url("../assets/fonts/amethysta-regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Undangan selalu tampil light — cegah Auto Dark Theme Chrome/Android mengubah warna */
  color-scheme: only light;

  --maroon: #5d0505;
  --maroon-soft: #a85f5f;
  --gold: #bb8e4b;
  --gold-light: #d8c278;
  --cream: #fff6df;
  --cream-2: #f2eade;
  --paper: #fffdf4;
  --ink: #21242a;

  --canvas: 480px;

  --f-title: "Maigre", serif;     /* section titles */
  --f-script: "Tangerine", cursive;/* couple names   */
  --f-caps: "Caudex", serif;       /* small caps     */
  --f-serif: "Cormorant Garamond", serif; /* cover names + body */
  --f-body: "Amethysta", serif;    /* paragraph body */

  --shadow-card: 0 10px 30px rgba(93, 5, 5, .12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  /* Cegah Chrome Android membesarkan teks otomatis (font boosting) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--maroon);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
input, textarea { accent-color: var(--maroon); caret-color: var(--maroon); }

/* ---------- Shared type ---------- */
.caps {
  font-family: var(--f-caps);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin: 0;
}
.script {
  font-family: var(--f-script);
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
  margin: 0;
}
.title {
  font-family: var(--f-title);
  font-weight: 400;
  color: var(--maroon);
  font-size: 30px;
  letter-spacing: .5px;
  margin: 0;
}
.title--light { color: #fff; }
.title--gold { color: var(--gold); }
.title-caps {
  font-family: var(--f-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 24px;
  color: var(--maroon);
  margin: 0;
}
.title-caps--light { color: #fff; }

.divider {
  display: block;
  width: min(78%, 320px);
  height: 2px;
  margin: 14px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* =========================================================================
   Layout: desktop split + invitation canvas
   ========================================================================= */
.stage-side { display: none; }

.invite {
  position: relative;
  width: 100%;
  max-width: var(--canvas);
  margin: 0 auto;
  background:
    linear-gradient(rgba(255, 253, 244, .55), rgba(255, 253, 244, .55)),
    url("../assets/img/paper-texture.jpg");
  background-size: cover;
  background-attachment: scroll;
  box-shadow: 0 0 40px rgba(0, 0, 0, .35);
  overflow: hidden;
}

/* =========================================================================
   Reveal animation
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 40px;
  padding: 14px 34px;
  font-family: var(--f-caps);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
}
.btn--sm { padding: 11px 26px; font-size: 13px; }
.btn--user { text-transform: none; letter-spacing: .5px; }
.btn--solid {
  color: #fff;
  background: linear-gradient(100deg, #4a0404 0%, #7c1414 50%, #a85f5f 100%);
  box-shadow: 0 8px 20px rgba(93, 5, 5, .35);
}
.btn--solid:active { transform: translateY(1px); }
.btn--outline {
  color: #fff;
  background: transparent;
  border: 1.5px solid #fff;
  border-radius: 14px;
  text-transform: none;
  font-size: 17px;
  letter-spacing: .5px;
  padding: 13px 30px;
}

/* ---------- Inline icons (CSS masks where possible) ---------- */
[class^="ico-"] { display: inline-block; width: 1em; height: 1em; }
.ico-envelope { background: url("../assets/img/amplop-logo.png") center / contain no-repeat; filter: brightness(0) invert(1); }
.ico-ig { background: url("../assets/img/instagram-logo.svg") center / contain no-repeat; }
.ico-map { background: url("../assets/img/maps-logo.png") center / contain no-repeat; }
.ico-play::before { content: "\25B6"; }
.ico-copy { background: url("../assets/img/copy-logo.png") center / contain no-repeat; filter: brightness(0) invert(1); }
.ico-gift { color: var(--gold); font-size: 30px; }
.ico-gift::before { content: "\1F381"; }

/* =========================================================================
   Photo oval (shared)
   ========================================================================= */
.photo-oval {
  border-radius: 50% / 50%;
  overflow: hidden;
  border: 3px solid var(--maroon);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
.photo-oval img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   Scene wrapper (Minang composite background sections)
   ========================================================================= */
.scene {
  position: relative;
  background:
    linear-gradient(rgba(255, 250, 238, .72), rgba(255, 250, 238, .72)),
    url("../assets/img/minang-scene.jpg") center top / cover no-repeat;
}
.scene__paper {
  position: relative;
  padding: 48px 26px 56px;
  text-align: center;
}

/* Varian scene maroon transparan (verse, countdown) */
.verse, .countdown {
  background:
    linear-gradient(rgba(70, 5, 5, .82), rgba(70, 5, 5, .82)),
    url("../assets/img/minang-scene.jpg") center top / cover no-repeat;
}
/* Couple: tetap terang, overlay krem dipertebal agar teks lebih jelas */
.couple {
  background:
    linear-gradient(rgba(255, 250, 238, .9), rgba(255, 250, 238, .9)),
    url("../assets/img/minang-scene.jpg") center top / cover no-repeat;
}

/* =========================================================================
   1. COVER
   ========================================================================= */
.cover {
  position: fixed;
  inset: 0;
  z-index: 60;
  max-width: var(--canvas);
  margin: 0 auto;
  background: var(--cream) url("../assets/img/cover-minang.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity .9s ease, visibility .9s ease, transform .9s ease;
}
.cover.is-open {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  pointer-events: none;
}
.cover__inner {
  padding: 0 30px;
  width: 100%;
  transition: opacity .45s ease, transform .45s ease;
}
.cover.is-exiting .cover__inner { opacity: 0; transform: translateY(-16px); }
.cover__gadang {
  width: 58%;
  max-width: 230px;
  margin: 0 auto 20px;
  opacity: .95;
}
.cover__label { color: var(--maroon); letter-spacing: 4px; font-size: 15px; }
.cover__names {
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--maroon);
  font-size: 42px;
  margin: 8px 0 18px;
  line-height: 1;
}
.cover__to { color: #000; letter-spacing: 1px; margin-bottom: 4px; }
.cover__guest {
  font-family: var(--f-caps);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 10px;
  color: #000;
}
.cover__note {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 15px;
  color: #3a2a2a;
  margin: 0 auto 26px;
  max-width: 300px;
  line-height: 1.4;
}

/* =========================================================================
   2. OPENING (video)
   ========================================================================= */
.opening {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a0303;
}
.opening__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
body.opened .opening__video { animation: kenburns 20s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .opening__video { animation: none !important; }
}
.opening__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(255, 246, 223, .35), rgba(93, 5, 5, .15) 60%, rgba(255, 246, 223, .45));
}
.opening__content { position: relative; text-align: center; padding: 0 24px; }
.opening__gadang {
  display: block;
  width: 58%;
  max-width: 230px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 2px 8px rgba(255, 246, 223, .6));
}
.opening__content .caps { color: var(--maroon); letter-spacing: 3px; text-shadow: 0 1px 6px rgba(255, 246, 223, .8); }
.opening__content .script { font-size: 64px; margin: 6px 0; text-shadow: 0 2px 10px rgba(255, 246, 223, .7); }
.opening__date { color: var(--maroon); font-size: 16px; letter-spacing: 4px; text-shadow: 0 1px 6px rgba(255, 246, 223, .8); }

/* =========================================================================
   3. VERSE
   ========================================================================= */
.verse__monogram {
  font-family: var(--f-serif);
  color: var(--cream);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  padding-top: 10px;
}
.verse__initial {
  font-size: 104px;
  transform: translateY(-16px);
}
.verse__initial--b { transform: translateY(16px); }
.verse__amp {
  font-size: 46px;
  color: var(--gold-light);
  margin: 0 4px;
}
.verse__ayat {
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--cream);
  max-width: 380px;
  margin: 0 auto 16px;
}
.verse__ref { color: var(--gold-light); letter-spacing: 1px; }

/* =========================================================================
   4. COUPLE
   ========================================================================= */
.couple__greet {
  font-family: var(--f-caps);
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: .5px;
  font-size: clamp(12px, 3.4vw, 16px);
  white-space: nowrap;
  margin: 0 0 14px;
}
.couple__intro {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 600;
  color: #2a1a1a;
  max-width: 380px;
  margin: 0 auto 30px;
}
.person { margin: 22px 0; }
.person__photo {
  width: 62%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  margin: 0 auto 16px;
}
.person__nick {
  font-size: clamp(36px, 12vw, 50px);
  margin: 0 0 6px;
}
.person__name {
  font-family: var(--f-serif);
  font-weight: 600;
  color: var(--maroon);
  font-size: clamp(17px, 5vw, 23px);
  margin: 0 0 12px;
  white-space: nowrap;
}
.person__role {
  font-family: var(--f-caps);
  font-weight: 700;
  margin: 0 0 2px;
  font-size: 16px;
}
.person__parents {
  font-family: var(--f-serif);
  font-size: clamp(15px, 4.4vw, 19px);
  font-weight: 600;
  margin: 0 0 16px;
  color: #2a1a1a;
  white-space: nowrap;
}
.person__parents span { color: var(--maroon); }
.couple__amp {
  font-family: var(--f-serif);
  font-size: 40px;
  color: var(--maroon);
  margin: 6px 0;
}
.couple__bunga { width: 120px; margin: 0 auto -10px; opacity: .95; }
.couple__amp span { display: block; }

/* =========================================================================
   5. COUNTDOWN
   ========================================================================= */
.countdown__title {
  font-size: clamp(46px, 14vw, 60px);
  color: var(--gold-light);
}
.countdown__quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 600;
  color: var(--cream);
  max-width: 360px;
  margin: 4px auto 28px;
}
.countdown__grid {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.cd-box {
  min-width: 66px;
  padding: 14px 6px;
  border-radius: 12px;
  background: linear-gradient(160deg, #6b0a0a, #3d0303);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.cd-num {
  display: block;
  font-family: var(--f-title);
  font-size: 30px;
  line-height: 1;
  color: var(--gold-light);
}
.cd-lbl {
  display: block;
  margin-top: 6px;
  font-family: var(--f-caps);
  font-size: 12px;
  letter-spacing: 1px;
}

/* =========================================================================
   6. SAVE THE DATE
   ========================================================================= */
.card {
  background: linear-gradient(180deg, #fffdf8, #f6ecdc);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 30px 24px 34px;
  margin: 0 auto 26px;
  max-width: 420px;
}
.card .divider { margin: 12px auto 20px; }
.card__title {
  font-family: var(--f-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 24px;
  color: var(--maroon);
  margin: 0;
}
.card__day { font-size: 48px; margin: 0 0 4px; }
.card__num {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 62px;
  line-height: 1;
  color: var(--maroon);
  margin: 0 0 8px;
}
.card__month { font-weight: 700; font-size: 15px; letter-spacing: 2px; color: #2a1a1a; margin: 0 0 16px; }
.card__time {
  font-family: var(--f-serif);
  font-size: 20px;
  margin: 0 0 4px;
  color: #2a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.card__loc-label { font-weight: 700; font-size: 14px; color: #2a1a1a; margin: 20px 0 6px; }
.ico-clock {
  width: .9em; height: .9em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232a1a1a' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.6l4.2 2.5-.8 1.35L11 13.2V6h2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card__place { font-family: var(--f-serif); font-size: 19px; margin: 0 0 22px; color: #2a1a1a; line-height: 1.5; }
.card__place strong { font-weight: 700; }

/* =========================================================================
   7. GALLERY
   ========================================================================= */
.gallery {
  background: var(--maroon);
  padding: 48px 14px 54px;
  text-align: center;
}
.gallery .title { margin-bottom: 24px; }
.gallery__video { max-width: 440px; margin: 0 auto 18px; }
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #2a0303 radial-gradient(circle at center, #3d0303, #1a0202);
}
.yt img, .yt iframe { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.yt__play {
  position: absolute; inset: 0;
  margin: auto;
  width: 68px; height: 48px;
  border: none; border-radius: 12px;
  background: rgba(220, 30, 30, .92);
}
.yt__play::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 2px;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
/* a little rhythm: make some items span/taller */
.gallery__item:nth-child(2) { grid-column: span 1; }
.gallery__item:nth-child(1) img { aspect-ratio: 3 / 4; }
.gallery__item:nth-child(3),
.gallery__item:nth-child(4) { grid-row: span 1; }
.gallery__item:nth-child(3) img,
.gallery__item:nth-child(4) img { aspect-ratio: 3 / 4.4; }

/* =========================================================================
   9. WEDDING GIFT
   ========================================================================= */
.gift { padding: 40px 0 46px; }
.gift__frame {
  position: relative;
  margin: 0 18px;
  padding: 38px 22px 42px;
  text-align: center;
  background: #f6ecdc;
  border-radius: 18px;
  outline: 2px solid var(--gold);
  outline-offset: -10px;
  box-shadow: var(--shadow-card);
}
.gift__title {
  font-size: clamp(46px, 14vw, 60px);
  margin: 0 0 18px;
}
.gift__intro {
  font-family: var(--f-serif);
  font-size: 16px;
  color: #2a1a1a;
  max-width: 380px;
  margin: 0 auto 15px;
}
.gift__intro:last-of-type { margin-bottom: 30px; }
.gift__card {
  position: relative;
  text-align: left;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 18px 20px 20px;
  margin: 0 auto 20px;
  max-width: 420px;
  background: #630909 url("../assets/img/songket-card.jpg") left center / auto 100% no-repeat;
  box-shadow: 0 0 12px rgba(0, 0, 0, .15);
}
.gift__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.gift__banklogo {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; min-width: 64px;
  background: #fff; border-radius: 8px; padding: 8px 10px;
}
.gift__banklogo img { width: 85px; height: auto; display: block; }
.gift__banklogo--plain { background: transparent; padding: 0; min-width: 0; min-height: 0; }
.gift__banklogo .ico-gift { font-size: 48px; line-height: 1; }
.gift__chip { width: 56px; height: auto; flex: none; }
.gift__label {
  display: block;
  font-family: var(--f-caps); font-weight: 700; font-size: 14px;
  margin-bottom: 5px;
}
.gift__no {
  display: block;
  font-family: var(--f-caps); font-size: 16px; letter-spacing: 1px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.gift__no--addr { letter-spacing: 0; line-height: 1.35; }
.gift__bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px;
}
.gift__acc { min-width: 0; }
.gift__name {
  display: block;
  font-family: var(--f-serif); font-style: italic; font-size: 18px;
}
.gift__copy {
  display: inline-flex; align-items: center; gap: 6px;
  flex: none;
  background: #fff; color: #471c1c;
  border: none; border-radius: 25px;
  padding: 5px 12px;
  font-family: var(--f-caps); font-size: 14px;
  cursor: pointer;
}
.gift__copy .ico-copy { filter: brightness(0); }

/* =========================================================================
   10. RESERVASI (Best Wish + RSVP digabung)
   ========================================================================= */
.rsvp {
  background: #f6ecdc;
  padding: 46px 22px 56px;
  text-align: center;
}
.rsvp__sub {
  font-family: var(--f-serif);
  font-style: italic;
  color: #4a2020;
  font-size: 19px;
  margin: 8px 0 24px;
}
.rsvp__form { display: flex; flex-direction: column; gap: 14px; max-width: 440px; margin: 0 auto 30px; }
.rsvp__form input,
.rsvp__form textarea {
  font-family: var(--f-body);
  font-style: normal;
  font-weight: 400;
  font-size: 19px;
  border: 1px solid rgba(93, 5, 5, .12);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  color: #333;
  resize: vertical;
  box-shadow: 0 2px 8px rgba(93, 5, 5, .06);
}
.rsvp__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-body);
  font-size: 20px;
  color: #2a1a1a;
  margin-top: 8px;
}
.rsvp__divider::before,
.rsvp__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(42, 26, 26, .3);
}
.rsvp__pills { display: flex; gap: 14px; }
.pill { position: relative; flex: 1; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill__face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--maroon);
  border-radius: 999px;
  padding: 14px 8px;
  font-family: var(--f-body);
  font-size: 17px;
  white-space: nowrap;
  color: #2a1a1a;
  opacity: .5;
  transition: opacity .2s, background .2s, box-shadow .2s;
}
.pill input:checked + .pill__face {
  opacity: 1;
  background: #fff;
  box-shadow: 0 0 0 3px #f6ecdc, 0 0 0 4px var(--maroon), 0 4px 12px rgba(93, 5, 5, .15);
}
.pill input:focus-visible + .pill__face { outline: 2px solid var(--gold); outline-offset: 2px; }
.pill__ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #2a1a1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: none;
}
.rsvp__form .btn { align-self: stretch; margin-top: 8px; }
.rsvp__done { color: var(--maroon); font-family: var(--f-caps); margin: 0 0 24px; letter-spacing: 1px; }
.wishes__list { max-width: 440px; margin: 0 auto; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.wish {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  text-align: left;
}
.wish__avatar {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: url("../assets/img/minang-scene.jpg") center / 180px;
}
.wish__bubble {
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  flex: 1;
}
.wish__name { font-family: var(--f-caps); font-weight: 700; font-size: 15px; color: #2a1a1a; }
.wish__msg { font-family: var(--f-serif); font-size: 18px; color: #333; margin-top: 2px; }

/* =========================================================================
   12. CLOSING
   ========================================================================= */
.closing__photo {
  width: 60%;
  max-width: 250px;
  aspect-ratio: 3 / 4;
  margin: 0 auto 26px;
  border-width: 4px;
}
.closing__text {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--maroon);
  max-width: 380px;
  margin: 0 auto 26px;
}
.closing__thanks {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--maroon);
  line-height: 1.5;
  margin: 0 0 12px;
}
.closing__names { font-size: 58px; }
.closing__tag {
  font-family: var(--f-caps);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 15px;
  color: var(--maroon);
  margin: 14px 0 0;
}

/* =========================================================================
   MUSIC TOGGLE
   ========================================================================= */
.music {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  display: grid;
  place-items: center;
}
.music__disc {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--maroon);
  box-shadow: inset 0 0 0 5px var(--gold-light), inset 0 0 0 7px var(--maroon);
}
.music.is-playing { animation: spin 3.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 2, 2, .94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: #fff; font-size: 40px; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .12); border: none; color: #fff;
  font-size: 40px; width: 54px; height: 70px; border-radius: 8px;
}
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* =========================================================================
   DESKTOP SPLIT LAYOUT (>= 992px)
   ========================================================================= */
@media (min-width: 992px) {
  body { background: #1a0303; }

  .stage-side {
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    right: var(--canvas);
    background: #1a0303 url("../assets/photo/side.jpg") center 30% / cover no-repeat;
  }
  .stage-side__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 2, 2, .55) 0%, rgba(20, 2, 2, .68) 50%, rgba(20, 2, 2, .9) 100%);
  }
  .stage-side__text {
    position: absolute;
    left: 0; right: 0; bottom: 11%;
    text-align: center;
    color: #fff;
    padding: 0 8%;
  }
  .stage-side__text .caps { color: #fff; letter-spacing: 3px; }
  .side-names {
    font-family: var(--f-serif);
    font-weight: 400;
    font-size: 64px;
    margin: 10px 0;
    line-height: 1;
  }
  .side-date { font-size: 14px; }

  .invite {
    margin: 0 0 0 auto;
    box-shadow: -10px 0 50px rgba(0, 0, 0, .55);
  }
  .cover { left: auto; right: 0; width: var(--canvas); margin: 0; }
  .music { right: calc((100vw - var(--canvas)) / 2 - 23px); }
  @media (max-width: 1100px) { .music { right: 16px; } }
}

/* =========================================================================
   LOVE STORY (timeline) — khusus Dinda & Abil
   ========================================================================= */
.story {
  background:
    linear-gradient(rgba(255, 250, 238, .86), rgba(255, 250, 238, .86)),
    url("../assets/img/minang-scene.jpg") center bottom / cover no-repeat;
}
.story__eyebrow { color: var(--gold); letter-spacing: 4px; margin-bottom: 4px; }
.story__title { font-size: clamp(46px, 14vw, 60px); }
.story__list {
  position: relative;
  list-style: none;
  margin: 26px auto 0;
  padding: 0;
  max-width: 420px;
  text-align: left;
}
/* garis emas vertikal */
.story__list::before {
  content: "";
  position: absolute;
  left: 21px; top: 10px; bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 6%, var(--gold) 90%, transparent);
}
.story__item {
  position: relative;
  padding-left: 58px;
  margin-bottom: 22px;
}
.story__item:last-child { margin-bottom: 0; }
.story__node {
  position: absolute;
  left: 0; top: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-light);
  background: linear-gradient(160deg, #7c1414, #3d0303);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 250, 238, .95), 0 6px 14px rgba(93, 5, 5, .3);
}
.story__node--heart::before {
  content: "";
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d8c278' d='M12 21s-7.5-4.6-10-9.2C.3 8.6 2.1 4.5 6 4.5c2.3 0 3.7 1.3 6 3.6 2.3-2.3 3.7-3.6 6-3.6 3.9 0 5.7 4.1 4 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.story__item.is-visible .story__node--heart { animation: storyBeat 1.8s ease-in-out .6s infinite; }
@keyframes storyBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.12); }
  30% { transform: scale(1); }
  45% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .story__item.is-visible .story__node--heart { animation: none; }
}
.story__card {
  position: relative;
  background: linear-gradient(180deg, #fffdf8, #f6ecdc);
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--gold);
}
/* ekor kecil yang menunjuk ke node */
.story__card::before {
  content: "";
  position: absolute;
  left: -10px; top: 26px;
  border: 8px solid transparent;
  border-right-color: var(--gold);
  border-left: 0;
}
.story__date {
  display: inline-block;
  font-family: var(--f-caps);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(100deg, #4a0404, #7c1414);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 8px;
}
.story__head {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--maroon);
  margin: 0 0 6px;
  letter-spacing: .5px;
}
.story__card p {
  font-family: var(--f-serif);
  font-size: 17px;
  line-height: 1.55;
  color: #2a1a1a;
  margin: 0;
}
.story__card--last {
  background: linear-gradient(160deg, #6b0a0a, #3d0303);
  border-left-color: var(--gold-light);
}
.story__card--last::before { border-right-color: var(--gold-light); }
.story__card--last .story__date { background: var(--gold); color: #3d0303; }
.story__card--last .story__head { color: var(--gold-light); }
.story__card--last p { color: var(--cream); font-style: italic; }

/* nomor HP penerima di kartu alamat kado */
.gift__phone {
  display: block;
  font-family: var(--f-caps);
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* =========================================================================
   FOTO ASLI — opening, galeri (override template)
   ========================================================================= */
.opening { align-items: flex-end; }
.opening__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
body.opened .opening__photo { animation: kenburns 20s ease-out both; }
@media (prefers-reduced-motion: reduce) { .opening__photo { animation: none !important; } }
.opening__scrim {
  background: linear-gradient(180deg, rgba(20, 2, 2, .15) 0%, rgba(20, 2, 2, 0) 35%, rgba(40, 3, 3, .55) 62%, rgba(40, 3, 3, .92) 100%);
}
.opening__content { padding: 0 24px 12vh; }
.opening__gadang {
  width: 40%; max-width: 160px; margin-bottom: 14px;
  filter: brightness(0) invert(.92) sepia(.35) drop-shadow(0 2px 8px rgba(0, 0, 0, .4));
}
.opening__content .caps,
.opening__date { color: var(--cream); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.opening__content .script { color: var(--gold-light); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }

.gallery__eyebrow { color: var(--gold-light); letter-spacing: 4px; margin-bottom: 4px; }
.gallery__title { font-size: clamp(46px, 14vw, 60px); color: var(--gold-light); }
.gallery .divider { margin-bottom: 26px; }
.gallery__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery__grid .gallery__item { border-radius: 4px; }
.gallery__grid .gallery__item img { aspect-ratio: 2 / 3; }
.gallery__grid .gallery__item--wide { grid-column: 1 / -1; }
.gallery__grid .gallery__item--wide img { aspect-ratio: 3 / 2; }
/* foto asli udah ramai — ikon rumah gadang di opening disembunyikan */
.opening .opening__gadang { display: none; }
