/* ============ RESET & TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0B1512;
  --surface:   #12211B;
  --surface-2: #1B2E26;
  --gold:      #D4B872;
  --gold-deep: #A8873F;
  --ink:       #F5F1E6;
  --muted:     #9DAFA2;
  --on-gold:   #0B1512;
  --ease-door: cubic-bezier(0.77, 0, 0.18, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100vh; }

img, svg { max-width: 100%; }
a { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ TYPO UTILITIES ============ */
.eyebrow {
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--muted);
}
.display { font-family: 'Fraunces', Georgia, serif; font-weight: 300; }
.script  { font-family: 'Pinyon Script', cursive; font-weight: 400; }
.arabic  {
  font-family: 'Amiri', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--gold);
  line-height: 2;
  direction: rtl;
}

/* ============ LAYOUT ============ */
main { display: block; }
.section {
  position: relative;
  overflow: hidden;
  padding: 76px 24px;
}
.container { max-width: 480px; margin: 0 auto; position: relative; }
.center { text-align: center; }

.ghost {
  position: absolute;
  top: 8px; right: -4px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 120px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.sec-head { position: relative; z-index: 1; margin-bottom: 40px; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.2;
  color: var(--ink);
}

.divider-wrap { display: flex; justify-content: center; margin: 28px auto; }
.divider-wrap svg { width: 120px; height: 12px; color: var(--gold); }

/* ============ BUTTONS ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s ease, transform 0.15s ease, border-color 0.4s ease;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-door);
  z-index: 0;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(120deg, transparent, rgba(245,241,230,0.28), transparent);
  transform: skewX(-18deg);
  z-index: 1;
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn > * { position: relative; z-index: 2; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--on-gold); }
.btn:hover::after, .btn:focus-visible::after { left: 120%; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn--solid { background: var(--gold); color: var(--on-gold); }
.btn--solid::before { background: var(--gold-deep); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--on-gold); border-color: var(--gold-deep); }

.btn--dark {
  border-color: var(--on-gold);
  color: var(--on-gold);
  background: transparent;
}
.btn--dark::before { background: var(--on-gold); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--gold); }

/* ============ COVER OVERLAY ============ */
.cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
}
.cover-panel {
  flex: 0 0 50%;
  overflow: hidden;
  position: relative;
  transition: transform 0.9s var(--ease-door);
}
.cover-inner {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  background:
  radial-gradient(ellipse at 50% 40%, #10201A 0%, #0B1512 55%, #070D0B 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 56px 32px;
  text-align: center;
}
/* Centering aman-overflow: margin auto runtuh jadi 0 saat konten melebihi tinggi,
sehingga tombol "Buka Undangan" selalu terjangkau via scroll di viewport pendek */
.cover-inner::before, .cover-inner::after { content: ''; flex: 0 0 auto; }
.cover-inner::before { margin-top: auto; }
.cover-inner::after  { margin-bottom: auto; }
@media (max-height: 640px) {
  .cover-inner { padding: 28px 32px; }
  .cover-mono { width: 48px; height: 48px; margin-bottom: 16px; }
  .cover-vline { height: 28px; margin: 14px auto; }
  .guest-chip { margin-bottom: 20px; }
  .cover-names .name { font-size: clamp(44px, 12vw, 84px); }
}
.cover-panel--right .cover-inner { left: auto; right: 0; }
.cover.is-open .cover-panel--left  { transform: translateX(-100%); }
.cover.is-open .cover-panel--right { transform: translateX(100%); }

.cover-frame {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  pointer-events: none;
}
.cover-frame rect {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawIn 2.2s ease-out 0.15s forwards;
}
.cover-corner {
  position: absolute;
  width: 24px; height: 24px;
  color: var(--gold);
  pointer-events: none;
}
.cover-corner--tl { top: 10px;  left: 10px; }
.cover-corner--tr { top: 10px;  right: 10px; transform: rotate(90deg); }
.cover-corner--br { bottom: 10px; right: 10px; transform: rotate(180deg); }
.cover-corner--bl { bottom: 10px; left: 10px; transform: rotate(270deg); }

.cover-mono {
  width: 72px; height: 72px;
  color: var(--gold);
  margin-bottom: 26px;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawIn 2.2s ease-out 0.3s forwards;
}

@keyframes drawIn { to { stroke-dashoffset: 0; } }

.cover-fade {
  opacity: 0;
  transform: translateY(14px);
  animation: coverFade 0.9s ease-out forwards;
}
.cf-1 { animation-delay: 1.5s; }
.cf-2 { animation-delay: 1.62s; }
.cf-3 { animation-delay: 1.74s; }
.cf-4 { animation-delay: 1.86s; }
.cf-5 { animation-delay: 1.98s; }
.cf-6 { animation-delay: 2.1s; }
@keyframes coverFade { to { opacity: 1; transform: none; } }

.cover-names {
  position: relative;
  margin: 16px 0 14px;
  line-height: 1.02;
}
.cover-names .name {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(58px, 16vw, 104px);
  color: var(--ink);
}
.cover-names .name--bride { font-style: italic; }
.cover-amp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(74px, 21vw, 140px);
  color: var(--gold);
  z-index: 2;
  pointer-events: none;
  line-height: 1;
}
.cover-date { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; }
.cover-vline {
  width: 1px; height: 48px;
  background: var(--gold);
  opacity: 0.7;
  margin: 22px auto;
}

.guest-chip {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--gold);
  padding: 16px 34px 18px;
  margin-bottom: 30px;
  max-width: 320px;
}
.guest-chip .chip-corner {
  position: absolute;
  width: 12px; height: 12px;
  color: var(--gold);
}
.chip-corner--tl { top: 3px; left: 3px; }
.chip-corner--tr { top: 3px; right: 3px; transform: rotate(90deg); }
.chip-corner--br { bottom: 3px; right: 3px; transform: rotate(180deg); }
.chip-corner--bl { bottom: 3px; left: 3px; transform: rotate(270deg); }
.guest-chip .chip-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.guest-chip .chip-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--gold);
  margin-top: 6px;
  overflow-wrap: anywhere;
}

/* ============ SPARKLES ============ */
.spark {
  position: absolute;
  color: var(--gold);
  pointer-events: none;
}

/* ============ HERO (No. I) ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 0;
  background: radial-gradient(ellipse at 50% 40%, #10201A 0%, #0B1512 55%, #070D0B 100%);
}
.hero-content {
  position: relative;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s var(--ease-door), transform 0.9s var(--ease-door);
  padding: 0 16px;
}
body.is-opened .hero-content { opacity: 1; transform: scale(1); }

.hero-names {
  position: relative;
  text-align: center;
  line-height: 0.98;
  margin-bottom: 30px;
  font-weight: 300;
}
.hero-names .word {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(64px, 18vw, 120px);
  color: var(--ink);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-door);
}
.hero-names .word--sarah { font-style: italic; }
body.is-opened .hero-names .word { clip-path: inset(0 0 -10% 0); }
body.is-opened .hero-names .word--andre { transition-delay: 0.35s; }
body.is-opened .hero-names .word--sarah { transition-delay: 0.47s; }
.hero-amp {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -54%);
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(84px, 24vw, 160px);
  color: var(--gold);
  z-index: 2;
  line-height: 1;
  pointer-events: none;
}
.hero-date-num {
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(44px, 13vw, 80px);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.hero-sub {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero-scroll {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; margin-top: 44px; color: var(--muted);
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 42px;
  background: linear-gradient(var(--gold), transparent);
}

.marquee {
  margin-top: 56px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  padding-right: 2em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ QUOTE (No. II) ============ */
.opening-para { color: var(--muted); font-size: 15px; margin-top: 20px; }
.salam-fraunces {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 6.4vw, 30px);
  color: var(--ink);
  line-height: 1.45;
  margin-top: 18px;
}
.quote-block {
  position: relative;
  background: var(--surface-2);
  border-left: 2px solid var(--gold);
  padding: 26px 24px;
  margin-top: 40px;
  text-align: left;
}
.quote-block p {
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
}
.quote-block cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.olive-pair {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 30px 0 0;
  color: var(--gold);
}
.olive-pair svg { width: 64px; height: 44px; }
.olive-pair svg:first-child { transform: scaleX(-1); }

/* ============ COUPLE (No. III) ============ */
.couple-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  padding: 44px 28px 40px;
  text-align: center;
}
.couple-card .card-corner {
  position: absolute; width: 20px; height: 20px; color: var(--gold);
}
.portrait { width: min(220px, 62%); margin: 0 auto 26px; display: block; }
.couple-name {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 14px;
}
.couple-parents { color: var(--muted); font-size: 14px; margin-top: 12px; }
.couple-amp {
  text-align: center;
  font-family: 'Pinyon Script', cursive;
  font-size: 96px;
  line-height: 1;
  color: var(--gold);
  margin: 34px 0;
}

/* ============ COUNTDOWN (No. IV) ============ */
.countdown-wrap { position: relative; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 359px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
}
.cd-box {
  background: var(--surface);
  border: 1px solid rgba(168, 135, 63, 0.5);
  padding: 20px 4px 16px;
  text-align: center;
}
.cd-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 8.5vw, 56px);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.cd-num.tick { animation: tick 0.3s ease-out; }
@keyframes tick {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cd-label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.cd-done {
  display: none;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 26px;
  color: var(--gold);
  padding: 26px 12px;
  border: 1px solid rgba(168, 135, 63, 0.5);
  background: var(--surface);
}
.countdown-wrap.is-done .countdown { display: none; }
.countdown-wrap.is-done .cd-done { display: block; }

/* ============ EVENTS (No. V) ============ */
.event-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  padding: 42px 28px 34px;
  overflow: hidden;
}
.event-card + .event-card { margin-top: 26px; }
.event-card .ghost { font-size: 96px; top: 2px; right: 6px; }
.event-card .ev-icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 16px; position: relative; z-index: 1; }
.event-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 30px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.ev-rows { margin-top: 18px; display: grid; gap: 6px; position: relative; z-index: 1; }
.ev-rows p { font-size: 14px; color: var(--muted); }
.ev-rows .ev-strong { color: var(--ink); font-weight: 400; }
.ev-time {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 21px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.ev-dress { margin-top: 12px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); position: relative; z-index: 1; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; position: relative; z-index: 1; }
.ev-actions .btn { flex: 1 1 160px; font-size: 11.5px; padding-left: 14px; padding-right: 14px; }

/* ============ STORY (No. VI) ============ */
.timeline { position: relative; padding-left: 30px; margin-top: 8px; }
.timeline-spine {
  position: absolute;
  left: 3.5px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.8s ease-out;
}
.timeline.in .timeline-spine { transform: scaleY(1); }
.story-item { position: relative; padding-bottom: 40px; }
.story-item:last-child { padding-bottom: 4px; }
.story-node {
  position: absolute;
  left: -30px; top: 7px;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg) scale(0);
  transition: transform 0.5s ease-out;
}
.timeline.in .story-node { transform: rotate(45deg) scale(1); }
.timeline.in .story-item:nth-child(2) .story-node { transition-delay: 0.2s; }
.timeline.in .story-item:nth-child(3) .story-node { transition-delay: 0.4s; }
.timeline.in .story-item:nth-child(4) .story-node { transition-delay: 0.6s; }
.timeline.in .story-item:nth-child(5) .story-node { transition-delay: 0.8s; }
.story-year {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
}
.story-item h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  color: var(--ink);
  margin: 8px 0 10px;
}
.story-item p { font-size: 14px; color: var(--muted); }

/* ============ GALLERY (No. VII) ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
  margin-top: 8px;
}
.g-cell { text-align: center; }
.g-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g-frame.ratio-11 { aspect-ratio: 1 / 1; }
.g-frame.ratio-45 { aspect-ratio: 4 / 5; }
.g-frame.is-square { border-radius: 4px; }
.g-frame.is-arch { border-radius: 999px 999px 4px 4px; }
.g-1 { background: linear-gradient(135deg, #12211B 0%, #1B2E26 60%, rgba(168,135,63,0.15) 100%); }
.g-2 { background: linear-gradient(135deg, #1B2E26 0%, #12211B 55%, rgba(168,135,63,0.12) 100%); }
.g-3 { background: linear-gradient(160deg, #12211B 10%, rgba(168,135,63,0.14) 100%); }
.g-4 { background: linear-gradient(120deg, #1B2E26 0%, rgba(168,135,63,0.1) 90%); }
.g-5 { background: linear-gradient(150deg, #12211B 0%, #1B2E26 70%, rgba(168,135,63,0.16) 100%); }
.g-6 { background: linear-gradient(135deg, #1B2E26 5%, #12211B 60%, rgba(168,135,63,0.13) 100%); }
.g-orn { width: 44%; max-width: 84px; color: var(--gold); opacity: 0.35; }
/* Foto galeri (disisipkan via JS): isi frame, klip mengikuti bentuk frame */
.g-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g-arch-line {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: var(--gold);
  opacity: 0.8;
  pointer-events: none;
}
.g-cap {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ RSVP (No. VIII) ============ */
.rsvp-card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  padding: 34px 26px;
}
.field { margin-bottom: 20px; text-align: left; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  padding: 13px 15px;
  min-height: 48px;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23D4B872' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(157,175,162,0.55); }
.rsvp-submit { width: 100%; }
.rsvp-note {
  display: none;
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.rsvp-note.show { display: block; opacity: 1; }
.rsvp-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
/* Tombol teruskan konfirmasi ke WhatsApp — muncul setelah kirim, hanya bila
CONFIG.rsvp.whatsapp diisi. [hidden] harus menang atas display .btn. */
.rsvp-wa { margin: 14px auto 0; display: flex; width: fit-content; }
.rsvp-wa[hidden] { display: none; }

.wish-list { margin-top: 34px; display: grid; gap: 14px; }
.wish-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  padding: 18px 18px 16px;
  text-align: left;
}
.wish-avatar {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  color: var(--gold);
}
.wish-body { min-width: 0; flex: 1; }
.wish-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wish-name { font-weight: 500; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.wish-badge {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,184,114,0.45);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.wish-msg { font-size: 14px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.wish-time { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ============ ENVELOPE (No. IX) ============ */
.seal-icon { width: 64px; height: 64px; color: var(--gold); margin: 0 auto 18px; display: block; }
.bank-card {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--on-gold);
  padding: 24px 24px 22px;
  text-align: left;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.6);
  overflow: hidden;
}
.bank-card + .bank-card { margin-top: 22px; }
.bank-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bank-chip { width: 40px; height: 30px; color: var(--on-gold); }
.bank-name {
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.bank-number {
  margin-top: 26px;
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: var(--on-gold);
}
.bank-holder { font-size: 13px; margin-top: 4px; font-weight: 400; opacity: 0.85; }
.bank-actions { margin-top: 20px; }
.copy-btn .ic-check { display: none; }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-check { display: block; }
.envelope-intro { color: var(--muted); font-size: 14px; margin-bottom: 34px; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  background: var(--surface-2);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 90;
  max-width: calc(100vw - 48px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  animation: microShake 0.5s ease 0.1s;
}
@keyframes microShake {
  0% { transform: translate(-50%, 0) scale(1); }
  40% { transform: translate(-50%, 0) scale(1.04); }
  100% { transform: translate(-50%, 0) scale(1); }
}

/* ============ CLOSING ============ */
.closing-names {
  position: relative;
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 11vw, 56px);
  color: var(--ink);
  line-height: 1.15;
  margin-top: 10px;
}
.closing-names .amp {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  font-size: 1.35em;
  color: var(--gold);
  vertical-align: -0.12em;
  padding: 0 0.08em;
}
.closing-mono { width: 64px; height: 64px; color: var(--gold); margin: 34px auto 0; display: block; }
.footer-note {
  text-align: center;
  padding: 0 24px 110px;
}
/* Watermark / kredit vendor: hadirmu.id */
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  margin-bottom: 18px;
  padding: 6px 4px;
}
.footer-brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--gold);
  transition: color 0.3s ease;
}
.footer-brand-tag {
  font-family: 'Archivo', Arial, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-brand:hover .footer-brand-name,
.footer-brand:focus-visible .footer-brand-name { color: var(--ink); }
.footer-made {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ MUSIC BUTTON ============ */
.music-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 80;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.7);
}
body.is-opened .music-btn { display: flex; }
.music-disc {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(212,184,114,0.55);
  animation: spin 8s linear infinite;
  animation-play-state: paused;
}
.music-btn.playing .music-disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-btn svg.ic-note { width: 20px; height: 20px; position: relative; }
.music-eq {
  position: fixed;
  right: 82px;
  bottom: 36px;
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  z-index: 80;
}
body.is-opened .music-eq.on { display: flex; }
.music-eq span {
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  animation: eq 0.9s ease-in-out infinite alternate;
}
.music-eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.music-eq span:nth-child(2) { height: 90%; animation-delay: 0.2s; }
.music-eq span:nth-child(3) { height: 60%; animation-delay: 0.4s; }
@keyframes eq { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }

/* Kontrol volume tamu — pil kecil di atas tombol musik */
.music-vol {
  position: fixed;
  right: 20px;
  bottom: 82px;
  width: 52px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--gold);
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.7);
  z-index: 80;
}
body.is-opened .music-vol { display: flex; }
/* Ikon speaker penanda bahwa pil ini pengatur volume (bukan ornamen) */
.music-vol-ic {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex: none;
}
.music-vol-range {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl; /* bawah = min, atas = maks */
  width: 24px;
  height: 76px;
  margin: 0;
  background: transparent;
  accent-color: var(--gold);
  cursor: pointer;
  touch-action: none;
}
.music-vol-range:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
/* Track & thumb konsisten lintas-browser (WebKit) */
.music-vol-range::-webkit-slider-runnable-track {
  width: 4px;
  border-radius: 2px;
  background: rgba(212,184,114,0.30);
}
.music-vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--surface);
}
.music-vol-range::-moz-range-track {
  width: 4px;
  border-radius: 2px;
  background: rgba(212,184,114,0.30);
}
.music-vol-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--gold);
}

/* ============ REVEAL & DRAW ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.in { opacity: 1; transform: translateY(0); }

[data-stagger].reveal > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
[data-stagger].reveal.in > * { opacity: 1; transform: translateY(0); }

svg.draw use {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s ease-out 0.15s;
}
svg.draw .orn-fill { opacity: 0; transition: opacity 0.6s ease 0.7s; }
svg.draw.in use { stroke-dashoffset: 0; }
svg.draw.in .orn-fill { opacity: 1; }

/* ============ REDUCED MOTION / RESPONSIVE ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
  .music-disc { animation: none !important; }
  .music-eq span { animation: none !important; }
  .cover-frame rect, .cover-mono, svg.draw use {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
  svg.draw .orn-fill { opacity: 1 !important; }
  .cover-fade { animation: none !important; opacity: 1; transform: none; }
  .reveal, [data-stagger].reveal > * { transform: none; }
  .hero-names .word { clip-path: inset(0) !important; }
  .hero-content { transform: none; }
}

@media (min-width: 720px) {
  .section { padding: 96px 24px; }
  .hero { padding: 96px 0 0; } /* jaga marquee tetap full-bleed */
  .ghost { font-size: 150px; }
}
