*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #1C1F1A;
  --bg2:         #1E211C;
  --bg3:         #22261F;
  --bg4:         #252920;
  --gold:        #C9A84C;
  --gold-dim:    #C9A84C66;
  --gold-faint:  #C9A84C14;
  --gold-border: #C9A84C33;
  --sage:        #4A5240;
  --sage-light:  #6B7560;
  --ivory:       #F0ECD8;
  --ivory-dim:   #F0ECD899;
  --muted:       #6B7560;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold-dim); color: var(--ivory); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 2px; }

/* ══════════════════════════════
   MUSIC BAR
══════════════════════════════ */
#music-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(28,31,26,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
}
.music-info { display: flex; align-items: center; gap: 10px; }
.music-note {
  width: 18px; height: 18px;
  animation: spin-note 4s linear infinite;
  animation-play-state: paused;
}
.music-note.playing { animation-play-state: running; }
@keyframes spin-note { to { transform: rotate(360deg); } }
.music-label {
  font-family: var(--sans); font-size: 10px;
  color: var(--muted); letter-spacing: 0.5px;
}
.music-label span { color: var(--gold); font-weight: 500; }
#toggle-music {
  background: none; border: 1px solid var(--gold-border);
  border-radius: 20px; color: var(--gold);
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 2px; padding: 5px 14px;
  cursor: pointer; transition: all .3s;
}
#toggle-music:hover { background: var(--gold-faint); }
#toggle-music.playing { background: var(--gold); color: var(--ivory); border-color: var(--gold); }

/* ══════════════════════════════
   HERO — CINEMATIC SLIDESHOW
══════════════════════════════ */
#hero {
  min-height: 100svh;
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 32px 80px;
  overflow: hidden;
}

/* Slideshow container */
#hero-slides {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  will-change: transform, opacity;
  overflow: hidden;
}
/* Layer blur — foto diperbesar & di-blur sebagai bg */
.hero-slide .slide-blur {
  position: absolute; inset: -40px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(22px) brightness(0.85) saturate(1.1);
  transform: scale(1.08);
}
/* Layer foto asli — contain di tengah */
.hero-slide .slide-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-slide .slide-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* Ken Burns pada layer blur saja */
.hero-slide:nth-child(1) .slide-blur { animation: kb-zoom-in  18s ease-in-out infinite; }
.hero-slide:nth-child(2) .slide-blur { animation: kb-pan-right 18s ease-in-out infinite; }
.hero-slide:nth-child(3) .slide-blur { animation: kb-zoom-out  18s ease-in-out infinite; }
.hero-slide:nth-child(4) .slide-blur { animation: kb-pan-left  18s ease-in-out infinite; }

@keyframes kb-zoom-in    { 0%,100%{transform:scale(1.12);} 50%{transform:scale(1.04);} }
@keyframes kb-pan-right  { 0%,100%{transform:scale(1.12) translateX(-2%);} 50%{transform:scale(1.04) translateX(2%);} }
@keyframes kb-zoom-out   { 0%,100%{transform:scale(1.04);} 50%{transform:scale(1.12);} }
@keyframes kb-pan-left   { 0%,100%{transform:scale(1.12) translateX(2%);} 50%{transform:scale(1.04) translateX(-2%);} }

/* Fade slide aktif */
.hero-slide.active {
  opacity: 1;
  animation: ink-reveal 1.6s cubic-bezier(.77,0,.18,1) forwards;
}
.hero-slide.leaving {
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(.77,0,.18,1);
}
@keyframes ink-reveal {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}

/* Overlay putih di atas semua slide — z-index 1 */
#hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(28,31,26,0.55) 0%,
      rgba(28,31,26,0.35) 30%,
      rgba(28,31,26,0.55) 65%,
      rgba(28,31,26,0.96) 100%);
  pointer-events: none;
}

/* Konten teks hero — selalu di atas overlay & slide */
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
}


/* PARTICLE CANVAS */
#particle-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
/* Parallax rings */
.parallax-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--gold-border);
  pointer-events: none; z-index: 0;
}
.parallax-ring.r1 { width: 300px; height: 300px; top: -80px; right: -80px; opacity: .25; }
.parallax-ring.r2 { width: 200px; height: 200px; bottom: 40px; left: -60px; opacity: .18; }
.parallax-ring.r3 { width: 120px; height: 120px; top: 30%; left: 10%; opacity: .12; }
.parallax-line {
  position: absolute; pointer-events: none; z-index: 0;
  background: var(--gold-border); opacity: .15;
}
.parallax-line.l1 { width: 1px; height: 40vh; top: 10%; left: 15%; transform: rotate(15deg); }
.parallax-line.l2 { width: 1px; height: 30vh; bottom: 5%; right: 18%; transform: rotate(-20deg); }

/* ── SCROLL INDICATOR — BULU PENA ── */
.scroll-indicator {
  position: absolute; bottom: 32px;
  left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  gap: 6px; z-index: 4;
  opacity: 0; animation: fadeUp .9s 1.4s forwards;
  cursor: default; user-select: none;
}
.feather-wrap {
  position: relative; width: 28px; height: 44px;
  margin: 0 auto;
}
.feather-svg {
  width: 28px; height: 44px;
  display: block;
  animation: feather-float 2.4s ease-in-out infinite;
}
@keyframes feather-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.ink-drop {
  position: absolute; bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 0;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
  animation: ink-drip 2.4s ease-in-out infinite;
}
@keyframes ink-drip {
  0%,40%  { height: 0; opacity: 1; }
  70%     { height: 12px; opacity: .5; }
  100%    { height: 0; opacity: 0; transform: translateX(-50%) translateY(6px); }
}
.scroll-text {
  font-family: var(--sans); font-size: 8px;
  letter-spacing: 4px; color: var(--muted);
  margin-top: 4px; text-align: center;
  display: block;
}

/* ══════════════════════════════
   QUOTE
══════════════════════════════ */
#quote {
  background: var(--gold);
  padding: 52px 32px;
  text-align: center;
}
.quote-mark { font-size: 40px; color: rgba(28,31,26,0.2); font-style: italic; line-height: .8; margin-bottom: 16px; display: block; }
.quote-text {
  font-size: clamp(15px, 4vw, 19px);
  color: var(--ivory);
  font-style: italic; font-weight: 300;
  line-height: 1.85; max-width: 480px;
  margin: 0 auto;
}
.quote-source {
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 3px; color: rgba(28,31,26,0.6);
  margin-top: 18px;
}

/* ══════════════════════════════
   COUNTDOWN
══════════════════════════════ */
#countdown {
  background: var(--bg2);
  padding: 70px 32px;
  text-align: center;
}
.section-eyebrow {
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 5px; color: var(--gold);
  margin-bottom: 40px; font-weight: 400;
}
.cd-row {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 0;
  max-width: 380px; margin: 0 auto;
}
.cd-item { flex: 1; text-align: center; }
.cd-num {
  font-size: clamp(48px, 12vw, 64px);
  font-weight: 300; font-style: italic;
  color: var(--ivory); line-height: 1; display: block;
}
.cd-unit {
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 2px; color: var(--muted);
  margin-top: 6px; display: block;
}
.cd-sep {
  font-size: 36px; color: var(--gold-border);
  padding: 0 2px; padding-top: 8px;
  font-style: italic; align-self: flex-start;
}

/* ══════════════════════════════
   MEMPELAI — SIDE BY SIDE
══════════════════════════════ */
#mempelai { background: var(--bg); padding: 70px 32px; }
.mempelai-inner { max-width: 480px; margin: 0 auto; }
.couple-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: start; margin-top: 36px; }
.couple-card { text-align: center; }
.portrait-frame {
  position: relative; width: 100%;
  aspect-ratio: 3/4; border-radius: 4px;
  overflow: hidden; background: var(--bg3);
  margin-bottom: 16px;
}
.portrait-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; display: block;
}
.portrait-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; background: var(--bg3);
}
.portrait-placeholder svg { opacity: .3; }
.portrait-placeholder p { font-family: var(--sans); font-size: 8px; color: var(--muted); letter-spacing: 2px; text-align: center; }
.frame-corner { position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 2; }
.frame-corner.tl { top: 8px; left: 8px; border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.frame-corner.tr { top: 8px; right: 8px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }
.frame-corner.bl { bottom: 8px; left: 8px; border-bottom: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.frame-corner.br { bottom: 8px; right: 8px; border-bottom: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }
.couple-role { font-family: var(--sans); font-size: 8px; letter-spacing: 3px; color: var(--gold); margin-bottom: 5px; }
.couple-name { font-size: 20px; font-style: italic; color: var(--ivory); margin-bottom: 5px; }
.couple-fullname { font-family: var(--sans); font-size: 11px; color: var(--ivory-dim); margin-bottom: 6px; font-weight: 400; }
.couple-parent { font-family: var(--sans); font-size: 11px; color: var(--muted); line-height: 1.7; }
.couple-divider { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 12px; padding-top: 30%; }
.divider-line { width: 1px; flex: 1; background: var(--gold-border); }
.divider-amp { font-size: 28px; font-style: italic; color: var(--gold); padding: 10px 0; }

/* ══════════════════════════════
   ACARA
══════════════════════════════ */
#acara {
  background: var(--bg2);
  padding: 70px 32px;
}
.acara-inner { max-width: 480px; margin: 0 auto; }
.event-list { margin-top: 36px; }
.event-item {
  display: flex; gap: 18px;
  margin-bottom: 32px;
}
.event-item:last-of-type { margin-bottom: 0; }
.event-time-col { text-align: right; min-width: 52px; padding-top: 3px; }
.event-hour { font-size: 30px; font-style: italic; color: var(--gold); line-height: 1; }
.event-wib { font-family: var(--sans); font-size: 8px; color: var(--muted); letter-spacing: 1px; margin-top: 2px; }
.event-connector { display: flex; flex-direction: column; align-items: center; padding-top: 7px; }
.event-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--bg2); flex-shrink: 0; }
.event-dot.filled { background: var(--gold); }
.event-vline { flex: 1; width: 1px; background: var(--gold-border); margin-top: 4px; min-height: 40px; }
.event-name { font-size: 22px; font-style: italic; color: var(--ivory); margin-bottom: 5px; }
.event-time-range { font-family: var(--sans); font-size: 12px; color: var(--ivory-dim); margin-bottom: 3px; }
.event-location { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.7; }
.map-container {
  width: 100%; height: 190px;
  background: var(--bg3); border-radius: 8px;
  margin-top: 32px; border: 1px solid var(--gold-border);
  overflow: hidden; position: relative;
}
.map-container iframe { width: 100%; height: 100%; border: none; }
.map-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.map-placeholder-icon { font-size: 28px; color: var(--gold-dim); }
.map-placeholder-text { font-family: var(--sans); font-size: 9px; color: var(--muted); letter-spacing: 2px; }
.map-btn {
  display: inline-block; margin-top: 14px;
  border: 1px solid var(--gold-border); border-radius: 2px;
  padding: 9px 24px; font-family: var(--sans);
  font-size: 10px; letter-spacing: 3px;
  color: var(--gold); text-decoration: none; transition: all .3s;
}
.map-btn:hover { background: var(--gold-faint); }

/* LIGHTBOX */
#lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(44,44,44,0.95);
  z-index: 200; align-items: center; justify-content: center; padding: 20px;
}
#lightbox.active { display: flex; }
#lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 4px; }
#lightbox-close {
  position: fixed; top: 20px; right: 20px;
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 38px; height: 38px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
#lightbox-close:hover { background: rgba(255,255,255,0.1); }

/* ══════════════════════════════
   AMPLOP DIGITAL
══════════════════════════════ */
#amplop { background: var(--bg2); padding: 70px 32px; }
.amplop-inner { max-width: 480px; margin: 0 auto; }



/* ══════════════════════════════
   AMPLOP — ACCORDION TOGGLE
══════════════════════════════ */
.amplop-buttons {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 0;
}
.amplop-toggle {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1.5px solid var(--gold-border);
  border-radius: 8px; padding: 14px 18px;
  color: var(--ivory); font-family: var(--sans);
  font-size: 11px; letter-spacing: 2px;
  cursor: pointer; transition: all .3s;
  text-align: left;
}
.amplop-toggle:hover { border-color: var(--gold); background: var(--gold-faint); }
.amplop-toggle.active {
  border-color: var(--gold); background: var(--gold-faint);
  color: var(--gold);
}
.amplop-toggle span { flex: 1; }
.toggle-arrow {
  color: var(--gold); flex-shrink: 0;
  transition: transform .35s cubic-bezier(.77,0,.18,1);
}
.amplop-toggle.active .toggle-arrow { transform: rotate(180deg); }

/* Accordion content */
.amplop-content {
  max-height: 0; overflow: hidden;
  transition: max-height .5s cubic-bezier(.77,0,.18,1), opacity .4s ease;
  opacity: 0;
}
.amplop-content.open {
  max-height: 600px; opacity: 1;
}
.amplop-content-inner { padding: 12px 0 4px; }

.amplop-intro { font-size: 16px; font-style: italic; color: var(--muted); line-height: 1.85; text-align: center; margin: 16px 0 24px; }
.bank-card { border: 1px solid var(--gold-border); border-radius: 8px; padding: 20px 22px; margin-bottom: 12px; background: var(--bg3); position: relative; }
.bank-logo { font-family: var(--sans); font-size: 9px; letter-spacing: 3px; color: var(--gold); margin-bottom: 10px; }
.bank-number { font-family: 'Courier New', monospace; font-size: 22px; color: var(--ivory); letter-spacing: 4px; margin-bottom: 5px; }
.bank-name { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.copy-btn {
  position: absolute; top: 20px; right: 18px;
  background: none; border: 1px solid var(--gold-border);
  color: var(--gold); font-family: var(--sans);
  font-size: 9px; letter-spacing: 2px; padding: 5px 12px;
  border-radius: 3px; cursor: pointer; transition: all .3s;
}
.copy-btn:hover { background: var(--gold-faint); }
.copy-btn.copied { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.address-card { border: 1px solid var(--gold-border); border-radius: 8px; padding: 20px 22px; background: var(--bg3); }
.address-label { font-family: var(--sans); font-size: 9px; letter-spacing: 3px; color: var(--gold); margin-bottom: 12px; }
.address-icon { font-size: 22px; color: var(--gold-dim); margin-bottom: 8px; }
.address-text { font-family: var(--sans); font-size: 13px; color: var(--ivory-dim); line-height: 1.85; }
.address-subtext { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.address-map-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  border: 1px solid var(--gold-border); border-radius: 3px; padding: 7px 16px;
  font-family: var(--sans); font-size: 9px; letter-spacing: 2px; color: var(--gold);
  text-decoration: none; transition: all .3s;
}
.address-map-btn:hover { background: var(--gold-faint); }

/* ══════════════════════════════
   UCAPAN & DOA
══════════════════════════════ */
#ucapan { background: var(--bg); padding: 70px 32px; }
.ucapan-inner { max-width: 480px; margin: 0 auto; }
.ucapan-desc {
  font-size: 15px; font-style: italic;
  color: var(--muted); line-height: 1.8;
  text-align: center; margin: 12px 0 28px;
}
.wishes-scroll {
  display: flex; gap: 12px;
  overflow-x: auto; padding-bottom: 8px;
  margin-left: -32px; padding-left: 32px; padding-right: 32px;
}
.wishes-scroll::-webkit-scrollbar { height: 2px; }
.wishes-scroll::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 2px; }
.wish-empty {
  width: 100%; text-align: center;
  padding: 28px 0;
  font-family: var(--sans); font-size: 12px;
  color: var(--muted); font-style: italic;
  border: 1px dashed var(--gold-border); border-radius: 8px;
}
.wish-card {
  min-width: 220px; flex-shrink: 0;
  border-left: 2px solid var(--gold);
  padding: 14px 16px;
  background: var(--bg2);
  border-radius: 0 8px 8px 0;
  animation: fadeIn .4s ease;
}
.wish-name { font-size: 14px; font-style: italic; color: var(--ivory); margin-bottom: 5px; }
.wish-msg { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.7; }
.wish-time { font-family: var(--sans); font-size: 10px; color: #bbb; margin-top: 8px; }
.wish-form { margin-top: 28px; }
.wish-label { font-family: var(--sans); font-size: 9px; letter-spacing: 3px; color: var(--gold); display: block; margin-bottom: 6px; }
.wish-input-wrap { margin-bottom: 18px; }
.wish-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid var(--gold-border);
  color: var(--ivory); font-family: var(--serif);
  font-size: 16px; padding: 8px 0;
  outline: none; transition: border-color .3s;
}
.wish-input:focus { border-color: var(--gold); }
.wish-input::placeholder { color: #ccc; font-style: italic; }
.wish-textarea {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid var(--gold-border);
  color: var(--ivory); font-family: var(--serif);
  font-size: 15px; padding: 8px 0;
  outline: none; resize: none; height: 64px;
  transition: border-color .3s;
}
.wish-textarea:focus { border-color: var(--gold); }
.wish-textarea::placeholder { color: #ccc; font-style: italic; }
.wish-submit {
  float: right; background: transparent;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 3px; padding: 9px 22px;
  border-radius: 2px; cursor: pointer; transition: all .3s;
}
.wish-submit:hover { background: var(--gold); color: var(--ivory); }

/* ══════════════════════════════
   RSVP
══════════════════════════════ */
#rsvp { background: var(--bg2); padding: 70px 32px; }
.rsvp-inner { max-width: 480px; margin: 0 auto; }
.rsvp-desc {
  font-size: 15px; font-style: italic;
  color: var(--muted); line-height: 1.8;
  text-align: center; margin: 12px 0 28px;
}
.rsvp-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.rsvp-option {
  border: 1.5px solid var(--gold-border);
  border-radius: 8px; padding: 16px 12px;
  text-align: center; cursor: pointer; transition: all .3s;
}
.rsvp-option:hover { border-color: var(--gold); background: var(--gold-faint); }
.rsvp-option.selected { border-color: var(--gold); background: var(--gold-faint); }
.rsvp-option-icon { font-size: 22px; margin-bottom: 5px; }
.rsvp-option-text { font-family: var(--sans); font-size: 11px; color: var(--ivory-dim); letter-spacing: 1px; }
.rsvp-submit {
  float: right; background: transparent;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 3px; padding: 9px 22px;
  border-radius: 2px; cursor: pointer; transition: all .3s;
}
.rsvp-submit:hover { background: var(--gold); color: var(--ivory); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
#footer {
  background: var(--gold);
  padding: 60px 32px;
  text-align: center;
}
.footer-ornament { font-size: 32px; color: rgba(255,255,255,0.2); font-style: italic; margin-bottom: 16px; }
.footer-names { font-size: clamp(34px, 9vw, 52px); font-weight: 300; font-style: italic; color: var(--ivory); line-height: 1.1; }
.footer-amp { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: 6px; color: rgba(255,255,255,0.6); font-style: normal; font-weight: 300; margin: 8px 0; }
.footer-divider { width: 60px; height: 1px; background: rgba(255,255,255,0.3); margin: 20px auto; }
.footer-date { font-family: var(--sans); font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.7); }
.footer-share {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.2); border-radius: 24px;
  padding: 11px 24px; margin-top: 24px;
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 2px; color: var(--ivory);
  border: none; cursor: pointer; transition: background .3s;
}
.footer-share:hover { background: rgba(255,255,255,0.3); }

/* ══════════════════════════════
   UTILITIES
══════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.25,.46,.45,.94), transform .8s cubic-bezier(.25,.46,.45,.94);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Static delays (dipakai di hero) */
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
/* Stagger dari JS akan override ini secara inline */

@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

#toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg4); color: var(--ivory);
  border: 1px solid var(--gold-border);
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 2px; padding: 11px 22px;
  border-radius: 3px; opacity: 0;
  transition: all .3s; pointer-events: none; z-index: 300;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════
   COVER PAGE — HALAMAN PEMBUKA
══════════════════════════════ */
#cover-page {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .8s ease, transform .8s cubic-bezier(.77,0,.18,1);
}
#cover-page.closing {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}
#cover-page.hidden { display: none; }

/* Background pattern halus */
#cover-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,168,76,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201,168,76,0.07) 0%, transparent 50%);
}
/* Border tipis gold di tepi */
#cover-bg::before {
  content: '';
  position: absolute; inset: 16px;
  border: 1px solid var(--gold-border);
  pointer-events: none;
}
/* Ornamen sudut */
#cover-bg::after {
  content: '';
  position: absolute; inset: 20px;
  border: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 16px no-repeat;
  pointer-events: none;
}

#cover-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  min-height: 70vh; width: 100%;
  max-width: 380px; padding: 48px 32px;
  text-align: center;
}

/* Top */
.cover-top {
  display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: fadeUp .8s .2s forwards;
}
.cover-ornament-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border));
}
.cover-ornament-line:last-child {
  background: linear-gradient(270deg, transparent, var(--gold-border));
}
.cover-label {
  font-family: var(--sans); font-size: 8px;
  letter-spacing: 4px; color: var(--gold);
  white-space: nowrap; font-weight: 400;
}

/* Mid */
.cover-mid {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 0;
}
.cover-kepada {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 3px; color: var(--muted);
  margin-bottom: 10px;
  opacity: 0; animation: fadeUp .8s .4s forwards;
}
.cover-guest-name {
  font-size: clamp(26px, 7vw, 36px);
  font-style: italic; font-weight: 300;
  color: var(--ivory); line-height: 1.2;
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp .8s .5s forwards;
}
.cover-divider {
  display: flex; align-items: center; gap: 10px;
  width: 100%; margin-bottom: 24px;
  opacity: 0; animation: fadeUp .8s .6s forwards;
}
.cover-divider-line {
  flex: 1; height: 1px;
  background: var(--gold-border);
}
.cover-message {
  font-size: 13px; font-style: italic;
  color: var(--muted); line-height: 1.85;
  margin-bottom: 16px;
  opacity: 0; animation: fadeUp .8s .7s forwards;
}
.cover-names-small {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 3px; color: var(--gold);
  font-weight: 400;
  opacity: 0; animation: fadeUp .8s .8s forwards;
}

/* Bottom */
.cover-bottom {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  opacity: 0; animation: fadeUp .8s 1s forwards;
}
#cover-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--ivory);
  border: none; border-radius: 2px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 3px; padding: 14px 32px;
  cursor: pointer;
  transition: background .3s, transform .2s;
}
#cover-btn:hover { background: #a07f58; }
#cover-btn:active { transform: scale(0.97); }
.cover-btn-icon {
  transition: transform .3s;
}
#cover-btn:hover .cover-btn-icon { transform: translateY(3px); }
.cover-date {
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 3px; color: var(--muted);
}
