:root {
  --gold: #C9A96E;
  --gold2: #E3D29B;
  --dark: #0A0806;
  --card: rgba(255, 255, 255, 0.03);
  --card-h: rgba(201, 169, 110, 0.08);
  --serif: 'Cormorant Garamond', serif;
  --script: 'Great Vibes', cursive;
  --sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  background-color: var(--dark);
  color: #fff;
  font-family: var(--sans);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ════════════════════════════════════════════════
   GATE — SINGLE HERO LAYOUT
════════════════════════════════════════════════ */
#gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--dark);
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s;
}
#gate.out { transform: translateY(-100%); opacity: 0; pointer-events: none; }

.gate-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: url('assets/photos/cover1.webp');
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}

.petals { position: absolute; inset: 0; pointer-events: none; }
.petal { position: absolute; border-radius: 50% 0 50% 0; opacity: 0; background: var(--gold); animation: petal-fall linear infinite; }

@keyframes petal-fall {
  0%   { opacity: 0; transform: translateY(-5vh) rotate(0deg) scale(.8); }
  10%  { opacity: .2; }
  90%  { opacity: .1; }
  100% { opacity: 0; transform: translateY(110vh) rotate(540deg) scale(1.1); }
}

.gate-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.gate-panel-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #16121a, #0b090c);
}

.gate-body {
  position: relative;
  z-index: 3;
  width: min(92vw, 520px);
  text-align: center;
  padding: clamp(28px, 4vw, 42px) clamp(20px, 4vw, 34px);
  border-radius: 26px;
  border: 1px solid rgba(227, 210, 155, .34);
  background: linear-gradient(165deg, rgba(11,9,12,.66), rgba(11,9,12,.44));
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.gate-label { font-family: var(--sans); font-size: .65rem; letter-spacing: 3px; color: rgba(255,255,255,.6); margin-bottom: 8px; text-transform: uppercase; }
.gate-couple { font-family: var(--script); font-size: clamp(3rem, 5vw, 4.5rem); color: var(--gold2); margin-bottom: 30px; text-shadow: 0 4px 15px rgba(0,0,0,0.5); line-height: 1.1; }
.gate-to { font-family: var(--sans); font-size: .75rem; letter-spacing: 1px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.gate-name {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: #fff; margin-bottom: 24px;
  word-break: break-word; hyphens: auto; padding: 0 4px;
}
.gate-sub { font-family: var(--sans); font-size: .75rem; font-weight: 300; color: rgba(255,255,255,.5); margin-bottom: 32px; line-height: 1.6; max-width: 300px; margin-left: auto; margin-right: auto; }

.gate-open {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(201,169,110,.4); color: var(--gold);
  padding: 12px 28px; border-radius: 30px; cursor: pointer;
  font-family: var(--sans); font-size: .75rem; letter-spacing: 2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s; backdrop-filter: blur(5px);
  animation: pulse-btn 2.2s infinite ease-in-out;
}
.gate-open:hover { 
  background: rgba(201,169,110,.15); 
  border-color: var(--gold); 
  transform: translateY(-3px) scale(1.02); 
  color: #fff;
  box-shadow: 0 8px 25px rgba(201,169,110,0.25);
  animation-play-state: paused;
}
.gate-open:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }

@keyframes pulse-btn {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4), 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 12px rgba(201, 169, 110, 0), 0 6px 15px rgba(201, 169, 110, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0), 0 4px 10px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 800px) {
  .gate-photo {
    width: 100%;
    height: 100%;
    background-size: auto 130%;
    background-position: 62% 65%;
  }
  .gate-panel {
    width: 100%;
    height: 100%;
    left: 0;
    align-items: flex-end;
    padding-bottom: 12vh;
  }
  .gate-panel-bg {
    background:
      radial-gradient(circle at 62% 65%, rgba(201,169,110,.08), rgba(0,0,0,0) 42%),
      linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(5,4,7,.15) 35%, rgba(5,4,7,.85) 100%);
    backdrop-filter: none;
  }
  .gate-body {
    width: calc(100% - 28px);
    padding: 24px 20px;
    border-radius: 20px;
  }
  .gate-couple { margin-bottom: 20px; }
  .gate-name { font-size: 1.6rem; margin-bottom: 16px; }
  .gate-sub { font-size: .7rem; margin-bottom: 24px; }
}

/* ════════════════════════════════════════════════
   MUSIC BUTTON
════════════════════════════════════════════════ */
#musicBtn {
  position: fixed; bottom: max(28px, env(safe-area-inset-bottom)); right: max(24px, env(safe-area-inset-right)); z-index: 1100;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(201,169,110,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(201,169,110,.35);
  backdrop-filter: blur(8px);
  transition: transform .2s, box-shadow .2s, opacity .35s ease, visibility .35s ease;
}

body.inv-open #musicBtn {
  bottom: calc(max(28px, env(safe-area-inset-bottom)) + 86px);
}

#musicBtn.music-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#musicBtn:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 4px;
}
#musicBtn.on { animation: pulse-ring 2s infinite; }
.music-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
}
#musicBtn.on .music-icon-wrap { animation: music-spin 4s linear infinite; }
@keyframes pulse-ring {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,169,110,.4), 0 4px 24px rgba(201,169,110,.35); }
  50%      { box-shadow: 0 0 0 8px rgba(201,169,110,0), 0 4px 24px rgba(201,169,110,.5); }
}
@keyframes music-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════
   MAIN
════════════════════════════════════════════════ */
#main { opacity: 0; transition: opacity .8s ease; }
#main.on { opacity: 1; }

.ps { position: relative; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }

/* ════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  background-image: url('assets/photos/cover2.webp');
  background-size: cover; background-position: center 30%;
  position: relative;
  isolation: isolate;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.7) 100%);
}
.hero-inner {
  position: relative; z-index: 1; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 28px;
}
.hero-ar { font-family: var(--serif); font-size: 1.4rem; color: rgba(255,255,255,.7); margin-bottom: 40px; }
.hero-tag { font-family: var(--sans); font-size: .6rem; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.hero-name { font-family: var(--serif); font-size: clamp(2.5rem, 10vw, 5rem); font-weight: 300; line-height: 1; }
.hero-amp { font-family: var(--script); font-size: clamp(2rem, 8vw, 4rem); color: var(--gold2); display: block; margin: 5px 0; }
.hero-line { display: flex; align-items: center; gap: 15px; margin: 30px auto; width: 180px; }
.hero-line span { flex: 1; height: 1px; background: rgba(255,255,255,.3); }
.hero-line i { color: var(--gold); font-size: .6rem; font-style: normal; }
.hero-date { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: rgba(255,255,255,.8); letter-spacing: 2px; }

.scroll-cue { margin-top: 60px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue span { font-size: .55rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,.4); }
.scroll-cue .line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollDrop 2s infinite; }

@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ════════════════════════════════════════════════
   AYAT
════════════════════════════════════════════════ */
#ayat {
  min-height: 55vh; 
  background-image: url('assets/photos/ayat-bg.webp');
  background-size: cover; 
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}
#ayat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--dark) 0%, rgba(10,8,6,0.3) 50%, var(--dark) 100%);
  z-index: 0;
}
.ayat-inner { position: relative; z-index: 1; padding: 40px 32px; max-width: 650px; text-align: center; }
.ayat-quote { 
  font-family: var(--serif); 
  font-size: clamp(1.1rem, 3.5vw, 1.4rem); 
  font-style: italic; 
  line-height: 1.8; 
  margin-bottom: 24px; 
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}
.ayat-cite { 
  font-family: var(--sans); 
  font-size: .65rem; 
  letter-spacing: 3px; 
  color: var(--gold); 
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

/* ════════════════════════════════════════════════
   MEMPELAI — foto portrait bleeding ke tepi
════════════════════════════════════════════════ */

#mempelai { background: var(--dark); padding: 0; position: relative; }

.mp-intro { text-align: center; padding: 80px 28px 48px; }
.mp-intro .tag { font-family: var(--sans); font-size: .58rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.mp-intro .ttl { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 300; color: #fff; margin-bottom: 10px; }
.mp-intro .sub { font-family: var(--sans); font-size: .75rem; font-weight: 300; color: rgba(255,255,255,.4); letter-spacing: 1px; }
.mp-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}
.mp-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.mp-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}
.mp-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 110, 0.35);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px rgba(201, 169, 110, 0.08);
}
.mp-photo-wrapper {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  border: 1px solid rgba(201, 169, 110, 0.15);
}
.mp-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.mp-card:hover .mp-photo {
  transform: scale(1.06);
}
.mp-info {
  padding: 8px 12px;
}
.mp-role { 
  font-family: var(--sans); 
  font-size: .6rem; 
  letter-spacing: 4px; 
  text-transform: uppercase; 
  color: var(--gold); 
  margin-bottom: 12px; 
}
.mp-name { 
  font-family: var(--serif); 
  font-size: clamp(1.4rem, 2.5vw, 1.8rem); 
  font-weight: 300; 
  color: #fff; 
  margin-bottom: 10px; 
  line-height: 1.2; 
  letter-spacing: 0.5px;
}
.mp-parents { 
  font-family: var(--sans); 
  font-size: .72rem; 
  font-weight: 300; 
  color: rgba(255,255,255,.5); 
  line-height: 1.7; 
}
.mp-connector {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--dark);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.mp-connector span { 
  font-family: var(--script); 
  font-size: 2.8rem; 
  color: var(--gold); 
  line-height: 1;
  margin-top: -3px;
}

/* ════════════════════════════════════════════════
   COUNTDOWN
════════════════════════════════════════════════ */
#countdown {
  position: relative;
  isolation: isolate;
  min-height: 60vh; 
  background-image: url('assets/photos/foto-cincin.webp');
  background-size: cover; 
  background-position: center; 
  background-attachment: fixed;
  display: flex; 
  align-items: center; 
  justify-content: center;
}
#countdown::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.cd-inner { position: relative; z-index: 1; text-align: center; width: 100%; padding: 80px 24px; }
.cd-tag { font-size: .6rem; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-bottom: 40px; }
.cd-nums { display: flex; justify-content: center; gap: 5px; margin-bottom: 30px; }
.cd-unit { flex: 1; max-width: 100px; }
.cd-num { font-family: var(--serif); font-size: clamp(3rem, 12vw, 6rem); font-weight: 300; display: block; line-height: 1; }
.cd-lbl { font-size: .55rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.4); }
.cd-sep { font-family: var(--serif); font-size: clamp(2rem, 8vw, 4rem); color: var(--gold); opacity: .3; margin-top: 5px; }
.cd-date { font-family: var(--serif); font-style: italic; font-size: 1rem; color: rgba(255,255,255,.5); }
.cd-done { font-family: var(--sans); font-size: .8rem; font-style: normal; color: var(--gold2); max-width: 320px; margin: 12px auto 0; line-height: 1.6; min-height: 0; opacity: .9; }

.cd-num.flip { animation: numFlip .35s cubic-bezier(.22,.61,.36,1); }
@keyframes numFlip {
  0%  { opacity: .2; transform: translateY(-16px) scaleY(.5); }
  60% { transform: translateY(4px) scaleY(1.04); }
  100%{ opacity: 1; transform: translateY(0) scaleY(1); }
}

/* ════════════════════════════════════════════════
   ACARA — CENTER, ELEGAN, MEWAH
════════════════════════════════════════════════ */
#acara {
  position: relative;
  background-image: url('assets/photos/latar-venue.webp');
  background-size: cover; 
  background-position: center;
  background-attachment: fixed;
}
#acara::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(4,3,2,.88) 0%, rgba(8,5,2,.85) 100%);
}
.acara-inner { position: relative; z-index: 1; }

.acara-header { padding: 96px 32px 72px; text-align: center; max-width: 560px; margin: 0 auto; }
.acara-tag { font-family: var(--sans); font-size: .55rem; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }
.acara-ttl { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 300; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.acara-sub { font-family: var(--sans); font-size: .68rem; font-weight: 300; color: rgba(255,255,255,.3); letter-spacing: 1px; line-height: 1.8; }

.acara-divider { display: flex; align-items: center; gap: 16px; max-width: 200px; margin: 0 auto 72px; }
.acara-divider span { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(201,169,110,.5)); }
.acara-divider span:last-child { background: linear-gradient(to left, transparent, rgba(201,169,110,.5)); }
.acara-divider i { color: var(--gold); font-style: normal; font-size: .5rem; opacity: .8; letter-spacing: 2px; }
.ev-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}
.ev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.ev-panel {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}
.ev-panel:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 110, 0.35);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px rgba(201, 169, 110, 0.08);
}
.ev-type {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .55rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,169,110,.25); padding: 7px 20px; border-radius: 24px; margin-bottom: 24px;
}
.ev-heading {
  font-family: var(--serif); 
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 300; 
  font-style: italic; 
  color: #fff; 
  line-height: 1.2;
  margin-bottom: 24px; 
  letter-spacing: -.01em;
}
.ev-rule { width: 40px; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); margin: 0 auto 24px; opacity: .6; }

.ev-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  overflow: hidden;
}
.ev-meta-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-align: left;
}
.ev-meta-row:last-child { border-bottom: 0; }
.ev-meta-key {
  font-family: var(--sans);
  font-size: .64rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  align-self: center;
  font-weight: 500;
}
.ev-meta-val {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: rgba(255,255,255,.9);
  line-height: 1.4;
  text-align: right;
  font-weight: 300;
}
.ev-meta-val strong { font-weight: 600; color: #fff; }

.ev-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.btn-ghost {
  font-family: var(--sans); font-size: .6rem; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,169,110,.35); padding: 11px 28px;
  border-radius: 32px; background: transparent;
  cursor: pointer; transition: all .3s; display: inline-flex; align-items: center; gap: 6px;
  text-align: center; text-decoration: none;
}
.btn-ghost:hover { background: rgba(201,169,110,.12); border-color: var(--gold); }
.btn-ghost:active { transform: scale(.95); }
.btn-ghost:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }

/* ════════════════════════════════════════════════
   MAPS — tipis, minimalis
════════════════════════════════════════════════ */
#lokasi { background: #0A0806; padding: 80px 28px; text-align: center; }
.lok-tag { font-family: var(--sans); font-size: .58rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.lok-ttl { font-family: var(--serif); font-size: clamp(1.8rem,5vw,2.8rem); font-weight: 300; color: #fff; margin-bottom: 48px; }
.lok-map { width: 100%; max-width: 680px; margin: 0 auto 32px; height: 300px; border-radius: 20px; overflow: hidden; filter: saturate(.7) brightness(.8); border: 1px solid rgba(255,255,255,.06); }
.lok-map iframe { width: 100%; height: 100%; border: none; }

.btn-solid {
  font-family: var(--sans); font-size: .6rem; letter-spacing: 2px;
  text-transform: uppercase; color: #000; background: var(--gold);
  border: none; padding: 13px 32px; border-radius: 32px;
  cursor: pointer; transition: all .3s; display: inline-flex; align-items: center; gap: 7px;
  text-align: center; text-decoration: none;
}
.btn-solid:hover { background: var(--gold2); }
.btn-solid:active { transform: scale(.95); }
.btn-solid:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }

/* ════════════════════════════════════════════════
   STORY & GALLERY
════════════════════════════════════════════════ */
#story { background: var(--dark); padding-bottom: 60px; }
.story-intro { text-align: center; padding: 100px 28px 50px; }
.story-intro .tag { font-size: .6rem; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-bottom: 15px; }
.story-intro .ttl { font-family: var(--serif); font-size: 2.8rem; font-weight: 300; }

/* Sticky Parallax Container */
.story-parallax { position: relative; }
.sp-bg { position: sticky; top: 0; width: 100%; height: 100vh; overflow: hidden; z-index: 0; }
.sp-photo { width: 100%; height: 100%; background-size: cover; background-position: center; }
.sp-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.8) 75%, var(--dark) 100%); }

/* Container content for sticky scrolling with fade mask */
.sp-content { 
  position: relative; 
  z-index: 1; 
  margin-top: -100vh; 
  padding-top: 50vh; 
  padding-bottom: 50vh; 
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Timeline vertical line */
.sp-content::before {
  content: '';
  position: absolute;
  top: 50vh;
  bottom: 50vh;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  transform: translateX(-50%);
  opacity: 0.5;
  z-index: -1;
}

/* Story Item */
.sp-item { 
  min-height: 60vh; /* Reduced distance so they are closer */
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  padding: 40px 30px; 
  text-align: center; 
  position: relative; 
}

/* Glowing Timeline Dot */
.sp-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(201,169,110,0.6);
}

.st-num { 
  font-family: var(--serif); 
  font-size: 8rem; 
  color: var(--gold); 
  opacity: .18; 
  line-height: 1; 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -55%); 
  z-index: 0; 
  pointer-events: none; 
}
.st-ttl { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 14px; text-shadow: 0 4px 12px rgba(0,0,0,0.5); position: relative; z-index: 2; }
.st-body { font-size: .9rem; color: rgba(255,255,255,.7); max-width: 450px; margin: 0 auto; line-height: 1.8; text-shadow: 0 2px 8px rgba(0,0,0,0.5); position: relative; z-index: 2; }

#galeri { background: var(--dark); padding-bottom: 100px; }
.gal-intro { text-align: center; padding: 80px 28px 50px; }
.gal-intro .tag { font-size: .6rem; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-bottom: 15px; }
.gal-intro .ttl { font-family: var(--serif); font-size: 2.8rem; font-weight: 300; margin-bottom: 12px; }
.gal-sub { font-family: var(--sans); font-size: .72rem; font-weight: 300; color: rgba(255,255,255,.35); letter-spacing: 1px; }

/* Gallery grid — clean 2×2 portrait grid, wajah tidak terpotong */
.gal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Each gallery item — semua portrait 3:4 */
.gi {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  aspect-ratio: 3/4;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}

.gi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.5s ease;
  filter: brightness(0.9) saturate(0.95);
}

/* Gold overlay on hover */
.gi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,.18) 0%, rgba(0,0,0,.45) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gi-icon {
  font-size: 2.2rem;
  color: rgba(255,255,255,.9);
  transform: scale(0.7);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  line-height: 1;
}
.gi:hover img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1.05);
}
.gi:hover .gi-overlay { opacity: 1; }
.gi:hover .gi-icon { transform: scale(1); }

/* Gold border glow on hover */
.gi::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(201,169,110,0);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}
.gi:hover::after {
  border-color: rgba(201,169,110,.4);
  box-shadow: inset 0 0 20px rgba(201,169,110,.06);
}

/* ── Lightbox ─────────────────────────────────── */
.gal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(8px);
}
.gal-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.glb-img-wrap {
  width: 92vw;
  height: 90vh;
  overflow: hidden;
  position: relative;
  border-radius: 14px;
}
.glb-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.glb-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.glb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.gal-lightbox.open .glb-slide img { transform: scale(1); }

.glb-close, .glb-prev, .glb-next {
  position: absolute;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  border-radius: 50%;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  line-height: 1;
}
.glb-close {
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  font-size: 1.1rem;
}
.glb-prev, .glb-next {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2rem;
  font-weight: 300;
}
.glb-prev { left: 20px; }
.glb-next { right: 20px; }
.glb-close:hover, .glb-prev:hover, .glb-next:hover {
  background: rgba(201,169,110,.2);
  border-color: rgba(201,169,110,.5);
  color: var(--gold);
}
.glb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════
   RSVP & WISHES
════════════════════════════════════════════════ */
#rsvp { position: relative; background-image: url('assets/photos/bg-rsvp.webp'); background-size: cover; background-position: center; background-attachment: fixed; }
#rsvp::before { content: ''; position: absolute; inset: 0; background: rgba(10,8,6,.92); }
.rsvp-inner { position: relative; z-index: 1; padding: 100px 32px; max-width: 550px; margin: 0 auto; }
.rsvp-tag { font-size: .6rem; letter-spacing: 5px; color: var(--gold); text-transform: uppercase; margin-bottom: 15px; text-align: center; }
.rsvp-ttl { font-family: var(--serif); font-size: 3rem; font-weight: 300; margin-bottom: 50px; text-align: center; }

.fg { margin-bottom: 30px; }
.fg label { display: block; font-size: .55rem; letter-spacing: 3px; color: rgba(255,255,255,.3); text-transform: uppercase; margin-bottom: 12px; }
.fg input, .fg select, .fg textarea {
  width: 100%; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 12px 14px; color: #fff; font-size: .95rem;
  outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.fg input::placeholder, .fg textarea::placeholder { color: rgba(255,255,255,.25); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: rgba(201,169,110,.55);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
  background: rgba(255,255,255,.05);
}
.fg select option { background: #1a1815; color: #fff; }

.radio-row { display: flex; gap: 30px; padding: 10px 0; }
.rl { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.6); cursor: pointer; }
.rl input { width: auto; accent-color: var(--gold); }

.rsvp-msg { text-align: center; margin-top: 20px; font-size: .8rem; color: var(--gold2); min-height: 1.5em; }

#ucapan { background: #080605; padding: 100px 24px; text-align: center; }
.uc-icon { margin-bottom: 24px; }
.uc-tag { font-size: .6rem; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-bottom: 15px; }
.uc-ttl { font-family: var(--serif); font-size: 2.8rem; font-weight: 300; margin-bottom: 50px; }

/* Panel Container */
.uc-panel {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  text-align: left;
}

.uc-form-box {
  padding: 40px 32px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

/* Wish List Scrollable Area */
.wish-list { 
  max-height: 450px;
  overflow-y: auto;
  padding: 32px;
  background: rgba(255, 255, 255, 0.01);
  /* Custom Scrollbar for Wish List */
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(255,255,255,0.05);
}
.wish-list::-webkit-scrollbar { width: 6px; }
.wish-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
.wish-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* Chat Bubble Wish Items */
.wc { 
  display: flex;
  gap: 16px;
  padding: 24px 0; 
  border-bottom: 1px dashed rgba(255,255,255,.08); 
  animation: fadeIn 0.5s ease forwards;
}
.wc:first-child { padding-top: 0; }
.wc:last-child { border-bottom: none; padding-bottom: 0; }

.wc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.wc-content {
  flex-grow: 1;
  background: rgba(255,255,255,0.03);
  padding: 16px 20px;
  border-radius: 0 16px 16px 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.wc-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.wc-name { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }
.wc-date { font-size: .6rem; color: rgba(255,255,255,0.3); letter-spacing: 1px; text-transform: uppercase; }
.wc-text { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.8; }

/* ════════════════════════════════════════════════
   REKENING
════════════════════════════════════════════════ */
#rekening { 
  position: relative;
  background-image: url('assets/photos/foto-cincin.webp'); 
  background-size: cover; 
  background-position: center; 
  background-attachment: fixed;
  padding: 100px 24px; 
  text-align: center; 
}
#rekening::before { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  /* Fades from 85% opacity to 100% solid var(--dark) at the bottom to seamlessly blend with the footer */
  background: linear-gradient(to bottom, rgba(10,8,6,0.85) 0%, rgba(10,8,6,0.92) 80%, var(--dark) 100%); 
}
#rekening > * { position: relative; z-index: 1; }
.rek-icon { margin-bottom: 24px; }
.rek-tag { font-size: .6rem; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-bottom: 15px; }
.rek-ttl { font-family: var(--serif); font-size: 2.8rem; font-weight: 300; margin-bottom: 15px; }
.rek-sub { font-size: .85rem; color: rgba(255,255,255,.4); max-width: 450px; margin: 0 auto 60px; line-height: 1.8; }

.rek-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }

/* Glassmorphism Premium Card */
.rek-card { 
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-left: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  padding: 30px; 
  text-align: left; 
  border-radius: 20px; 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  aspect-ratio: 1.586; /* Standard credit card ratio */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.rek-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 20px rgba(201,169,110,0.15);
}

/* Shine sweep animation */
.rek-card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shineSweep 6s infinite;
  pointer-events: none;
}
@keyframes shineSweep {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Card Layout Elements */
.rek-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.rek-bank-logo { color: #fff; font-size: 1.2rem; opacity: 0.9; }
.rek-chip { width: 36px; height: 28px; opacity: 0.8; }

.rek-card-mid { margin-top: auto; margin-bottom: 20px; }
.rek-num { font-size: clamp(1.2rem, 3vw, 1.6rem); font-family: monospace; letter-spacing: 4px; color: #fff; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }

.rek-card-bot { display: flex; justify-content: space-between; align-items: flex-end; }
.rek-label { font-size: .5rem; letter-spacing: 2px; color: rgba(255,255,255,.3); text-transform: uppercase; display: block; margin-bottom: 4px; }
.rek-name { font-size: .9rem; color: rgba(255,255,255,.9); letter-spacing: 1px; text-transform: uppercase; }

.rek-copy { 
  background: rgba(201,169,110,0.15); 
  border: 1px solid rgba(201,169,110,0.4); 
  color: var(--gold); 
  font-size: .6rem; 
  letter-spacing: 2px; 
  padding: 8px 16px; 
  border-radius: 30px; 
  cursor: pointer; 
  text-transform: uppercase; 
  transition: all 0.3s; 
  backdrop-filter: blur(4px);
}
.rek-copy:hover { background: var(--gold); color: var(--dark); }
.rek-copy.copied { background: #4CAF50; border-color: #4CAF50; color: #fff; }

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */

footer {
  position: relative;
  background-color: var(--dark);
  padding: 80px 24px 100px;
  text-align: center;
}
.ft-photostrip {
  max-width: 260px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}
.ft-photostrip:hover {
  transform: rotate(0deg) scale(1.02);
}
.ft-photostrip img {
  width: 100%;
  display: block;
}
.ft-orn { color: var(--gold); opacity: .3; font-size: .7rem; letter-spacing: 4px; }
.ft-date { font-size: .7rem; letter-spacing: 6px; color: rgba(255,255,255,.4); text-transform: uppercase; margin-bottom: 30px; }
.ft-doa { font-family: var(--serif); font-style: italic; font-size: 1rem; color: rgba(255,255,255,.5); max-width: 400px; margin: 0 auto; line-height: 1.8; }
.ft-credit { font-size: .6rem; color: rgba(255,255,255,.2); letter-spacing: 1px; margin-top: 40px; }

/* ════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════ */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .16s; }
.rv.d3 { transition-delay: .24s; }
.rv.d4 { transition-delay: .32s; }

/* ════════════════════════════════════════════════
   MOBILE OVERRIDES
════════════════════════════════════════════════ */
@media (max-width: 680px) {
  /* mempelai: modern card layout side-by-side on mobile */
  #mempelai { flex-direction: column; }
  .mp-intro { padding: 48px 24px 24px; text-align: center; width: 100%; }
  .mp-container { padding: 0 16px 48px; width: 100%; }
  .mp-grid { grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
  .mp-card { padding: 12px; border-radius: 18px; }
  .mp-photo-wrapper { margin-bottom: 12px; border-radius: 12px; }
  .mp-role { font-size: .45rem; letter-spacing: 2px; margin-bottom: 6px; }
  .mp-name { font-size: clamp(0.78rem, 3.2vw, 0.95rem); margin-bottom: 6px; }
  .mp-parents { display: block; font-size: 0.56rem; line-height: 1.4; color: rgba(255,255,255,.5); }
  .mp-connector { display: flex; width: 36px; height: 36px; top: 32%; }
  .mp-connector span { font-size: 1.8rem; margin-top: -2px; }

  /* acara: kartu grid menjadi 1 kolom di mobile */
  .ev-container { padding: 0 16px 48px; }
  .ev-grid { grid-template-columns: 1fr; gap: 20px; }
  .ev-panel { padding: 28px 20px; border-radius: 20px; }
  .ev-heading { font-size: clamp(1.6rem, 7vw, 2rem); margin-bottom: 20px; }
  .ev-meta-row {
    grid-template-columns: 70px 1fr;
    gap: 8px;
    padding: 14px 16px;
  }
  .ev-meta-key { font-size: .6rem; }
  .ev-meta-val { font-size: 0.85rem; }
  .ev-btns { gap: 8px; }
  .btn-ghost { padding: 10px 18px; font-size: .52rem; letter-spacing: 2px; }
  .acara-header { padding: 64px 24px 32px; }
  .acara-divider { margin-bottom: 36px; }

  /* countdown */
  .cd-num { font-size: clamp(2.8rem, 14vw, 5rem); }
  .cd-sep { font-size: clamp(2rem, 10vw, 3.5rem); }
  .cd-lbl { font-size: .5rem; letter-spacing: 2px; }

  /* gallery: 2×2 portrait di mobile */
  .gal-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px; }
  .gi { border-radius: 14px; aspect-ratio: 3/4; }
  .glb-prev { left: 8px; }
  .glb-next { right: 8px; }

  .rek-grid { grid-template-columns: 1fr; }

  .lok-map { height: 220px; border-radius: 14px; }

  /* story photo taller on mobile */
  .st-photo { aspect-ratio: 3/4; }
  .st-caption { padding: 24px 20px 28px; }
  .st-body { font-size: .75rem; }

  #hero, #ayat, #countdown, #acara, #rsvp, #rekening, footer { background-attachment: scroll !important; }
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .petal { display: none; }
  .scroll-cue .line { animation: none !important; }
  #musicBtn.on { animation: none !important; }
  #musicBtn.on .music-icon-wrap { animation: none !important; }
  .cd-num.flip { animation: none !important; }
}

@keyframes kenBurns {
  from { background-size: 110%; background-position: 48% 48%; }
  to   { background-size: 120%; background-position: 52% 52%; }
}

/* ════════════════════════════════════════════════
   LUXE MOBILE UPGRADE
════════════════════════════════════════════════ */
:root {
  --bg-soft: #121018;
  --gold-soft: #f0d19b;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(201, 169, 110, 0.15), transparent 60%),
    linear-gradient(180deg, #090709 0%, #0b090d 100%);
}

#hero::before {
  background:
    radial-gradient(circle at 50% 20%, rgba(201,169,110,.2) 0%, rgba(0,0,0,0) 40%),
    linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 48%, rgba(0,0,0,.82) 100%);
}

.hero-inner {
  padding: 72px 24px;
}

.hero-name {
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hero-glass {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(240, 209, 155, 0.35);
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero-glass-label {
  font-size: .55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.hero-glass-text {
  font-family: var(--serif);
  font-size: .92rem;
  letter-spacing: 1px;
  color: var(--gold-soft);
}

.ev-panel,
.rek-card,
.rsvp-inner {
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(240, 209, 155, .12);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.ev-panel {
  padding-top: 24px;
}

.btn-solid {
  box-shadow: 0 10px 24px rgba(201,169,110,.28);
}

.btn-solid:hover {
  transform: translateY(-1px);
}

#mobileBar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 950;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(240, 209, 155, .26);
  background: rgba(7, 6, 9, .82);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: .35s ease;
}

body.inv-open #mobileBar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mb-item {
  min-height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .67rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: all 0.3s ease;
}

.mb-item.is-active, .mb-main {
  color: #111;
  background: linear-gradient(180deg, #f0d19b, #c9a96e);
  border-color: rgba(255,255,255,.15);
  font-weight: 600;
}

@media (min-width: 681px) {
  #mobileBar {
    display: none;
  }
}

#themeSwitcher {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 980;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: min(92vw, 320px);
  padding: 7px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10, 9, 12, .68);
  backdrop-filter: blur(8px);
}

.theme-btn {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.84);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .55rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s ease;
}

.theme-btn.is-active {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.2);
  color: #fff;
}

@media (max-width: 680px) {
  #musicBtn {
    right: 14px;
  }
  body.inv-open #musicBtn {
    bottom: calc(max(20px, env(safe-area-inset-bottom)) + 82px);
  }
  #themeSwitcher {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: calc(max(72px, env(safe-area-inset-bottom)) + 12px);
    justify-content: center;
  }
}

body.theme-royal {
  --gold: #d8ab6a;
  --gold2: #f2d2a5;
  --dark: #130910;
}

body.theme-blacktie {
  --gold: #c9a96e;
  --gold2: #e7d5af;
  --dark: #0a0806;
}

body.theme-pearl {
  --gold: #c9b28d;
  --gold2: #f6e8d1;
  --dark: #121114;
}

body.theme-royal {
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(216, 171, 106, 0.18), transparent 62%),
    linear-gradient(180deg, #130910 0%, #1a0f17 100%);
}

body.theme-blacktie {
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(201, 169, 110, 0.15), transparent 60%),
    linear-gradient(180deg, #090709 0%, #0b090d 100%);
}

body.theme-pearl {
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(201, 178, 141, 0.16), transparent 62%),
    linear-gradient(180deg, #121114 0%, #1a1a1f 100%);
}

body.theme-royal .hero-glass,
body.theme-royal .ev-panel,
body.theme-royal .rek-card,
body.theme-royal .rsvp-inner {
  border-color: rgba(242, 210, 165, .34);
}

body.theme-royal #hero::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(216,171,106,.26) 0%, rgba(0,0,0,0) 42%),
    linear-gradient(to bottom, rgba(22,8,18,.46) 0%, rgba(22,8,18,.26) 48%, rgba(22,8,18,.82) 100%);
}

body.theme-royal .btn-solid {
  background: linear-gradient(180deg, #f2d2a5, #d8ab6a);
}

body.theme-pearl .hero-glass,
body.theme-pearl .ev-panel,
body.theme-pearl .rek-card,
body.theme-pearl .rsvp-inner {
  border-color: rgba(246, 232, 209, .3);
}

body.theme-pearl #hero::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(246,232,209,.22) 0%, rgba(0,0,0,0) 42%),
    linear-gradient(to bottom, rgba(24,22,30,.5) 0%, rgba(24,22,30,.24) 48%, rgba(24,22,30,.82) 100%);
}

body.theme-pearl .btn-solid {
  background: linear-gradient(180deg, #f6e8d1, #c9b28d);
}

body.theme-blacktie .btn-solid {
  background: linear-gradient(180deg, #e7d5af, #c9a96e);
}

/* ─── FOOTER SPARKLES ─── */
#footer-sparkles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.sparkle {
  position: absolute;
  background: radial-gradient(circle, rgba(255,235,170,1) 0%, rgba(212,175,55,0.6) 40%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: floatSparkle linear infinite;
}
@keyframes floatSparkle {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  20% { opacity: 1; transform: translateY(-30px) scale(1); }
  80% { opacity: 0.8; transform: translateY(-240px) scale(0.8); }
  100% { transform: translateY(-300px) scale(0); opacity: 0; }
}
