/* ===== MAPLE UNDANGAN DIGITAL — ADAT JAWA DEMO ===== */
:root{
  --maroon:#4a1f1a;
  --maroon-dark:#331310;
  --maroon-deep:#200c09;
  --gold:#c9a227;
  --gold-light:#e8cc6d;
  --gold-dim:rgba(201,162,39,.55);
  --cream:#f5efe0;
  --cream-dim:rgba(245,239,224,.72);
  --serif:'Cormorant Garamond',Georgia,serif;
  --script:'Great Vibes',cursive;
  --jawa:'Noto Sans Javanese',sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:var(--maroon-deep);
  color:var(--cream);
  font-family:var(--serif);
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
}
body.opened{overflow:auto}
img{max-width:100%;display:block}

/* Kawung batik pattern — interlocking circles via layered radial-gradients */
.kawung{
  background-color:var(--maroon);
  background-image:
    radial-gradient(circle at 50% 50%, transparent 43px, rgba(201,162,39,.13) 44px, rgba(201,162,39,.13) 46px, transparent 47px),
    radial-gradient(circle at 0 0, transparent 43px, rgba(201,162,39,.13) 44px, rgba(201,162,39,.13) 46px, transparent 47px),
    radial-gradient(circle at 100% 0, transparent 43px, rgba(201,162,39,.13) 44px, rgba(201,162,39,.13) 46px, transparent 47px),
    radial-gradient(circle at 0 100%, transparent 43px, rgba(201,162,39,.13) 44px, rgba(201,162,39,.13) 46px, transparent 47px),
    radial-gradient(circle at 100% 100%, transparent 43px, rgba(201,162,39,.13) 44px, rgba(201,162,39,.13) 46px, transparent 47px);
  background-size:96px 96px;
}
.kawung-soft{
  background-color:#3d1814;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 43px, rgba(201,162,39,.09) 44px, rgba(201,162,39,.09) 46px, transparent 47px),
    radial-gradient(circle at 0 0, transparent 43px, rgba(201,162,39,.09) 44px, rgba(201,162,39,.09) 46px, transparent 47px),
    radial-gradient(circle at 100% 0, transparent 43px, rgba(201,162,39,.09) 44px, rgba(201,162,39,.09) 46px, transparent 47px),
    radial-gradient(circle at 0 100%, transparent 43px, rgba(201,162,39,.09) 44px, rgba(201,162,39,.09) 46px, transparent 47px),
    radial-gradient(circle at 100% 100%, transparent 43px, rgba(201,162,39,.09) 44px, rgba(201,162,39,.09) 46px, transparent 47px);
  background-size:96px 96px;
}

.script{font-family:var(--script);font-weight:400}

/* ===== COVER ===== */
#cover{
  position:fixed;inset:0;z-index:200;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:2rem 1.5rem;
  transition:transform 1s ease,visibility 0s 1s;
}
#cover.open{transform:translateY(-100%);visibility:hidden;pointer-events:none}
.gunungan{display:block}
.gunungan-cover{width:min(46vw,190px);height:auto;margin-bottom:1.2rem;filter:drop-shadow(0 4px 18px rgba(201,162,39,.35))}
.cover-kicker{
  font-family:var(--script);font-size:2.6rem;color:var(--gold-light);line-height:1.2;
}
.cover-jawa{font-family:var(--jawa);font-size:.95rem;color:var(--cream-dim);margin:.2rem 0 .8rem}
.cover-names{font-size:1.7rem;font-weight:600;line-height:1.5;color:var(--cream)}
.cover-names .amp{font-family:var(--script);color:var(--gold-light);font-size:2rem;display:block;margin:.2rem 0}
.cover-date{margin:1rem 0 1.8rem;letter-spacing:.3em;text-transform:uppercase;font-size:.85rem;color:var(--cream-dim)}
#open-invitation{
  font-family:var(--serif);font-size:1.05rem;font-weight:600;letter-spacing:.12em;
  background:var(--gold);color:var(--maroon-deep);
  border:2px solid var(--gold-light);border-radius:999px;
  padding:.85rem 2.6rem;cursor:pointer;
  box-shadow:0 6px 24px rgba(201,162,39,.35);
  transition:transform .25s,box-shadow .25s;
}
#open-invitation:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(201,162,39,.5)}

/* ===== MUSIC TOGGLE ===== */
#music-toggle{
  position:fixed;right:1rem;bottom:1rem;z-index:150;
  width:56px;height:56px;border-radius:50%;
  background:radial-gradient(circle at 30% 30%,#6b2b21,#200c09);
  border:2px solid var(--gold);
  color:var(--gold-light);font-size:1.5rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 16px rgba(0,0,0,.5),0 0 12px rgba(201,162,39,.35);
}
#music-toggle .note{display:inline-block;line-height:1}
#music-toggle .eq{display:none;align-items:flex-end;gap:3px;height:20px}
#music-toggle .eq i{width:4px;border-radius:2px;background:var(--gold-light);animation:eqBounce .9s ease-in-out infinite}
#music-toggle .eq i:nth-child(2){animation-delay:.25s;height:70%}
#music-toggle .eq i:nth-child(1){height:100%}
#music-toggle .eq i:nth-child(3){animation-delay:.5s;height:55%}
@keyframes eqBounce{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)}}
/* Saat musik mati: denyut emas mengajak user menyalakan */
#music-toggle.paused{animation:musicPulse 1.8s ease-in-out infinite}
#music-toggle.paused .eq{display:none}
#music-toggle.paused .note{display:inline-block}
@keyframes musicPulse{
  0%,100%{box-shadow:0 4px 16px rgba(0,0,0,.5),0 0 0 0 rgba(201,162,39,.55)}
  50%{box-shadow:0 4px 16px rgba(0,0,0,.5),0 0 0 16px rgba(201,162,39,0)}
}
/* Saat musik menyala: equalizer menari */
#music-toggle.playing .eq{display:flex}
#music-toggle.playing .note{display:none}
#music-toggle.playing{animation:none}
/* Hint bubble di samping tombol */
#music-hint{
  position:fixed;right:4.6rem;bottom:1.7rem;z-index:150;
  background:var(--gold);color:var(--maroon-deep);
  font-size:.78rem;font-weight:600;padding:.4rem .8rem;border-radius:999px;
  box-shadow:0 4px 14px rgba(0,0,0,.4);white-space:nowrap;
  animation:hintBob 1.8s ease-in-out infinite;
  transition:opacity .4s,transform .4s;
}
#music-hint.gone{opacity:0;transform:translateX(10px);pointer-events:none}
@keyframes hintBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}

/* ===== SECTIONS ===== */
.section{padding:4.5rem 1.25rem;position:relative}
.orn{display:flex;align-items:center;justify-content:center;gap:.7rem;margin-bottom:1rem}
.orn i{display:block;width:64px;height:1px;background:linear-gradient(90deg,transparent,var(--gold))}
.orn i:last-child{background:linear-gradient(90deg,var(--gold),transparent)}
.orn b{width:11px;height:11px;background:var(--maroon-deep);border:2px solid var(--gold);transform:rotate(45deg)}
.section-title{
  text-align:center;font-size:1.9rem;font-weight:600;letter-spacing:.32em;text-transform:uppercase;
  color:var(--gold-light);margin-bottom:.4rem;text-indent:.32em;
}
.section-sub{text-align:center;color:var(--cream-dim);font-style:italic;font-size:1.1rem;margin-bottom:2.5rem}

/* Batik divider band between sections */
.batik-divider{
  height:58px;position:relative;
  background-color:var(--maroon-dark);
  background-image:
    radial-gradient(circle at 50% 50%, transparent 43px, rgba(201,162,39,.16) 44px, rgba(201,162,39,.16) 46px, transparent 47px),
    radial-gradient(circle at 0 0, transparent 43px, rgba(201,162,39,.16) 44px, rgba(201,162,39,.16) 46px, transparent 47px),
    radial-gradient(circle at 100% 0, transparent 43px, rgba(201,162,39,.16) 44px, rgba(201,162,39,.16) 46px, transparent 47px),
    radial-gradient(circle at 0 100%, transparent 43px, rgba(201,162,39,.16) 44px, rgba(201,162,39,.16) 46px, transparent 47px),
    radial-gradient(circle at 100% 100%, transparent 43px, rgba(201,162,39,.16) 44px, rgba(201,162,39,.16) 46px, transparent 47px);
  background-size:96px 96px;
  border-top:2px solid var(--gold);border-bottom:2px solid var(--gold);
  display:flex;align-items:center;justify-content:center;
}
.divider-diamond{
  width:16px;height:16px;background:var(--maroon-dark);
  border:2px solid var(--gold);transform:rotate(45deg);
  box-shadow:0 0 12px rgba(201,162,39,.5);
}

/* ===== HERO ===== */
.hero{
  min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:3.5rem 1.5rem;
}
.gunungan-hero{
  width:min(62vw,300px);height:auto;margin-bottom:1.6rem;
  filter:drop-shadow(0 6px 26px rgba(201,162,39,.4));
  animation:float 5s ease-in-out infinite;
}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.hero-greeting{font-size:3.2rem;color:var(--gold-light);line-height:1.15}
.hero-jawa{font-family:var(--jawa);font-size:1rem;color:var(--cream-dim);margin:.3rem 0 1.2rem}
.hero-intro{color:var(--cream-dim);font-size:1.1rem;line-height:1.7;margin-bottom:1.8rem}
.couple{display:flex;flex-direction:column;align-items:center}
.couple-name{font-size:2.5rem;font-weight:600;color:var(--cream);line-height:1.25}
.couple-parents{font-size:.95rem;color:var(--cream-dim);font-style:italic;margin:.4rem 0 1rem;max-width:34ch}
.couple .amp{font-size:3rem;color:var(--gold-light);margin:.6rem 0;line-height:1}
.hero-date{
  margin-top:2rem;display:flex;align-items:center;gap:1rem;
  letter-spacing:.28em;text-transform:uppercase;font-size:.9rem;color:var(--gold-light);text-indent:.1em;
}
.hero-date span{display:block;width:56px;height:1px;background:var(--gold-dim)}

/* ===== TATA CARA TIMELINE ===== */
.rituals{list-style:none;position:relative;max-width:680px;margin:0 auto;padding:1rem 0}
.rituals::before{
  content:'';position:absolute;left:50%;top:0;bottom:0;width:2px;transform:translateX(-50%);
  background:linear-gradient(to bottom,transparent,var(--gold) 12%,var(--gold) 88%,transparent);
}
.ritual{position:relative;width:50%;padding:0 2.4rem 2.2rem 0;text-align:right}
.ritual:nth-child(even){margin-left:50%;padding:0 0 2.2rem 2.4rem;text-align:left}
.ritual-num{
  position:absolute;top:-4px;right:-21px;
  width:42px;height:42px;transform:rotate(45deg);
  background:var(--maroon-deep);border:2px solid var(--gold);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 14px rgba(201,162,39,.35);
}
.ritual:nth-child(even) .ritual-num{right:auto;left:-21px}
.ritual-num{font-size:1rem;font-weight:700;color:var(--gold-light)}
.ritual-num span{transform:rotate(-45deg)}
.ritual-card{
  background:rgba(32,12,9,.82);border:1px solid var(--gold);
  box-shadow:inset 0 0 0 5px #2a100d,inset 0 0 0 6px rgba(201,162,39,.55),0 8px 26px rgba(0,0,0,.45);
  padding:1.5rem 1.4rem;
}
.ritual-card h3{font-size:1.5rem;color:var(--gold-light);letter-spacing:.08em;margin-bottom:.3rem}
.ritual-time{font-size:.9rem;letter-spacing:.12em;text-transform:uppercase;color:var(--cream-dim);margin-bottom:.7rem}
.ritual-card p:last-child{line-height:1.65;font-size:1.05rem}
.venue-note{text-align:center;margin-top:1rem;color:var(--cream-dim);font-size:1.05rem;line-height:1.8}
.venue-note strong{color:var(--gold-light);font-size:1.2rem}

/* ===== COUNTDOWN PRASASTI ===== */
#countdown{text-align:center}
.prasasti{
  max-width:600px;margin:0 auto;
  background:linear-gradient(160deg,#3d2312,#241109 55%,#180b06);
  border:3px double var(--gold);border-radius:8px;
  padding:2.4rem 1rem;
  box-shadow:0 12px 44px rgba(0,0,0,.55),inset 0 0 70px rgba(201,162,39,.09);
  position:relative;
}
.prasasti-inner{display:flex;justify-content:center;gap:1.4rem;flex-wrap:wrap}
.cd-cell{display:flex;flex-direction:column;align-items:center;min-width:74px}
.cd-cell span{
  font-size:3rem;font-weight:700;color:var(--gold-light);line-height:1;
  text-shadow:0 2px 0 rgba(0,0,0,.6),0 0 22px rgba(201,162,39,.35);
}
.cd-cell label{
  margin-top:.5rem;font-size:.8rem;letter-spacing:.28em;text-transform:uppercase;
  color:var(--cream-dim);text-indent:.28em;
}
.venue{margin-top:1.8rem;line-height:2;color:var(--cream-dim);font-size:1.1rem;letter-spacing:.06em}

/* ===== GALLERY ===== */
.gallery-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;
  max-width:860px;margin:0 auto;
}
@media(min-width:720px){.gallery-grid{grid-template-columns:repeat(3,1fr)}}
.batik-frame{
  background-color:#2a100d;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 43px, rgba(201,162,39,.14) 44px, rgba(201,162,39,.14) 46px, transparent 47px),
    radial-gradient(circle at 0 0, transparent 43px, rgba(201,162,39,.14) 44px, rgba(201,162,39,.14) 46px, transparent 47px),
    radial-gradient(circle at 100% 0, transparent 43px, rgba(201,162,39,.14) 44px, rgba(201,162,39,.14) 46px, transparent 47px),
    radial-gradient(circle at 0 100%, transparent 43px, rgba(201,162,39,.14) 44px, rgba(201,162,39,.14) 46px, transparent 47px),
    radial-gradient(circle at 100% 100%, transparent 43px, rgba(201,162,39,.14) 44px, rgba(201,162,39,.14) 46px, transparent 47px);
  background-size:96px 96px;
  border:2px solid var(--gold);padding:9px;
  box-shadow:inset 0 0 0 3px var(--maroon-deep),0 8px 24px rgba(0,0,0,.45);
}
.batik-frame img{
  width:100%;aspect-ratio:3/4;object-fit:cover;
  border:1px solid rgba(245,239,224,.35);
}

/* ===== AMPLOP ===== */
.envelope{
  max-width:430px;margin:0 auto;text-align:center;
  background:rgba(32,12,9,.82);border:1px solid var(--gold);
  box-shadow:inset 0 0 0 5px #2a100d,inset 0 0 0 6px rgba(201,162,39,.55),0 10px 34px rgba(0,0,0,.5);
  padding:2.2rem 1.6rem;
}
.bank-logo-wrap{
  background:#fff;border-radius:10px;display:inline-block;
  padding:.5rem 1.1rem;margin-bottom:1rem;
}
.bank-logo{width:44px;height:44px;border-radius:50%;object-fit:cover}
.bank-name{letter-spacing:.3em;text-transform:uppercase;font-size:.85rem;color:var(--cream-dim);text-indent:.3em}
.account-number{
  font-size:1.7rem;font-weight:600;letter-spacing:.14em;color:var(--gold-light);margin:.8rem 0 .3rem;
}
.account-name{color:var(--cream-dim);font-style:italic;margin-bottom:1.4rem}
#copy-account{
  font-family:var(--serif);font-size:1rem;font-weight:600;letter-spacing:.08em;
  background:transparent;color:var(--gold-light);
  border:2px solid var(--gold);border-radius:999px;padding:.7rem 2rem;cursor:pointer;
  transition:background .25s,color .25s;
}
#copy-account:hover{background:var(--gold);color:var(--maroon-deep)}
.copy-note{margin-top:.8rem;color:var(--gold-light);font-style:italic}

/* ===== GUESTBOOK ===== */
#wish-form{max-width:520px;margin:0 auto 2.5rem;display:flex;flex-direction:column;gap:.9rem}
#wish-form input,#wish-form textarea{
  font-family:var(--serif);font-size:1.05rem;
  background:rgba(32,12,9,.8);color:var(--cream);
  border:1px solid var(--gold-dim);border-radius:4px;
  padding:.85rem 1rem;resize:vertical;
}
#wish-form input:focus,#wish-form textarea:focus{outline:none;border-color:var(--gold-light);box-shadow:0 0 0 2px rgba(201,162,39,.25)}
#wish-form input::placeholder,#wish-form textarea::placeholder{color:rgba(245,239,224,.4);font-style:italic}
#wish-form button{
  font-family:var(--serif);font-size:1.05rem;font-weight:600;letter-spacing:.12em;
  background:var(--gold);color:var(--maroon-deep);border:none;border-radius:999px;
  padding:.85rem;cursor:pointer;transition:transform .25s,box-shadow .25s;
  box-shadow:0 6px 22px rgba(201,162,39,.3);
}
#wish-form button:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(201,162,39,.45)}
#wishes-list{max-width:520px;margin:0 auto;display:flex;flex-direction:column;gap:1rem}
.wish-card{
  background:rgba(32,12,9,.7);border:1px solid var(--gold-dim);border-left:4px solid var(--gold);
  padding:1rem 1.2rem;border-radius:0 6px 6px 0;
}
.wish-card h4{color:var(--gold-light);font-size:1.15rem;margin-bottom:.3rem}
.wish-card p{line-height:1.65;color:var(--cream-dim)}
.wish-card time{display:block;margin-top:.5rem;font-size:.8rem;letter-spacing:.1em;color:rgba(245,239,224,.4)}
.wishes-empty{text-align:center;color:var(--cream-dim);font-style:italic}

/* --- voice comment (komen suara) --- */
.voice-row{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
#wish-form .btn-voice{
  font-family:var(--serif);font-size:.95rem;font-weight:600;letter-spacing:.08em;
  background:transparent;color:var(--gold-light);border:1px solid var(--gold);
  border-radius:999px;padding:.6rem 1.2rem;cursor:pointer;
  transition:background .25s,color .25s,transform .25s;box-shadow:none;
}
#wish-form .btn-voice:hover{background:rgba(201,162,39,.15);transform:translateY(-1px);box-shadow:0 6px 18px rgba(201,162,39,.25)}
#wish-form .btn-voice.recording{
  background:#a33;color:#fff;border-color:#a33;
  animation:voicePulse 1.2s ease-in-out infinite;
}
@keyframes voicePulse{0%,100%{box-shadow:0 0 0 0 rgba(200,40,40,.5)}50%{box-shadow:0 0 0 10px rgba(200,40,40,0)}}
.voice-status{font-size:.85rem;color:var(--gold-light);font-style:italic}
.voice-preview{width:100%;margin-top:.2rem;accent-color:var(--gold)}
.wish-audio{width:100%;margin-top:.6rem;accent-color:var(--gold)}

/* ===== FOOTER ===== */
footer{
  text-align:center;padding:3.5rem 1.5rem 2.5rem;
  border-top:2px solid var(--gold);
}
.footer-logo{width:64px;height:auto;margin:0 auto 1rem;border-radius:50%;border:2px solid var(--gold)}
.brand{font-size:1.6rem;font-weight:600;color:var(--gold-light);letter-spacing:.06em}
.tagline{color:var(--cream-dim);font-style:italic;margin:.4rem 0 1.4rem}
.credit{margin-top:1.8rem;font-size:.85rem;color:rgba(245,239,224,.45);font-style:italic}

/* ===== REVEAL ===== */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .8s ease,transform .8s ease}
.reveal.visible{opacity:1;transform:none}

/* ===== MOBILE TWEAKS ===== */
@media(max-width:560px){
  .rituals::before{left:14px}
  .ritual,.ritual:nth-child(even){
    width:100%;margin-left:0;padding:0 0 1.8rem 3rem;text-align:left;
  }
  .ritual-num,.ritual:nth-child(even) .ritual-num{left:14px;right:auto;transform:translateX(-50%) rotate(45deg)}
  .ritual-num span{transform:rotate(-45deg)}
  .couple-name{font-size:2rem}
  .hero-greeting{font-size:2.6rem}
  .section-title{font-size:1.5rem}
  .cd-cell span{font-size:2.3rem}
  .cd-cell{min-width:62px}
  .account-number{font-size:1.35rem}
}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  .gunungan-hero{animation:none}
  html{scroll-behavior:auto}
}

/* ============================================================
   POWER-UP: animasi & interaksi penuh (append 10 Okt 2026)
   Tema Jawa: maroon #4a1f1a + emas #c9a227, gunungan, kawung
   ============================================================ */

/* --- Kawung berdenyut sangat perlahan (subtil) --- */
@keyframes kawungPulse{
  0%,100%{background-size:96px 96px}
  50%{background-size:102px 102px}
}
.kawung,.kawung-soft,.batik-divider,.batik-frame{animation:kawungPulse 14s ease-in-out infinite}

/* --- Gunungan mengambang + "bernapas" (float + scale halus) --- */
@keyframes floatJawa{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-10px) scale(1.015)}
}
.gunungan{animation:floatJawa 7s ease-in-out infinite}
.gunungan-cover{animation-duration:6.2s}
.gunungan-hero{animation:floatJawa 5s ease-in-out infinite}

/* --- Shimmer / glow halus pada ornamen emas --- */
@keyframes goldShimmer{
  0%,100%{box-shadow:0 0 12px rgba(201,162,39,.5)}
  50%{box-shadow:0 0 24px rgba(201,162,39,.9)}
}
.divider-diamond{animation:goldShimmer 3.2s ease-in-out infinite}
@keyframes ornGlow{
  0%,100%{box-shadow:0 0 14px rgba(201,162,39,.35)}
  50%{box-shadow:0 0 24px rgba(201,162,39,.65)}
}
.ritual-num{animation:ornGlow 4s ease-in-out infinite}
@keyframes titleGlow{
  0%,100%{text-shadow:0 0 22px rgba(201,162,39,.22)}
  50%{text-shadow:0 0 36px rgba(201,162,39,.45)}
}
.section-title{animation:titleGlow 5s ease-in-out infinite}

/* --- Animasi masuk cover yang dramatis (fade + rise berurutan) --- */
body.anim #cover > *{opacity:0}
body.anim #cover.ready > *{animation:coverRise .9s cubic-bezier(.22,.8,.32,1) both}
body.anim #cover.ready > :nth-child(1){animation-delay:.05s}
body.anim #cover.ready > :nth-child(2){animation-delay:.22s}
body.anim #cover.ready > :nth-child(3){animation-delay:.38s}
body.anim #cover.ready > :nth-child(4){animation-delay:.54s}
body.anim #cover.ready > :nth-child(5){animation-delay:.7s}
body.anim #cover.ready > :nth-child(6){animation-delay:.9s}
@keyframes coverRise{
  from{opacity:0;transform:translateY(36px)}
  to{opacity:1;transform:none}
}

/* --- Tombol Buka Undangan: glow pulse --- */
#open-invitation{animation:btnPulse 2.8s ease-in-out infinite}
@keyframes btnPulse{
  0%,100%{box-shadow:0 6px 24px rgba(201,162,39,.35)}
  50%{box-shadow:0 6px 38px rgba(201,162,39,.8),0 0 0 7px rgba(201,162,39,.10)}
}

/* --- Micro-interactions: hover scale + shadow emas --- */
.batik-frame.reveal,.envelope.reveal{transition:opacity .8s ease,transform .35s ease,box-shadow .35s ease}
.ritual-card,.wish-card{transition:transform .3s ease,box-shadow .3s ease}
.batik-frame:hover{
  transform:scale(1.04);
  box-shadow:inset 0 0 0 3px var(--maroon-deep),0 14px 34px rgba(0,0,0,.55),0 0 22px rgba(201,162,39,.45);
  z-index:2;
}
.ritual-card:hover{
  transform:scale(1.04);
  box-shadow:inset 0 0 0 5px #2a100d,inset 0 0 0 6px rgba(201,162,39,.55),0 12px 32px rgba(0,0,0,.5),0 0 20px rgba(201,162,39,.35);
}
.envelope:hover{
  transform:scale(1.04);
  box-shadow:inset 0 0 0 5px #2a100d,inset 0 0 0 6px rgba(201,162,39,.55),0 14px 38px rgba(0,0,0,.55),0 0 22px rgba(201,162,39,.4);
}
.wish-card:hover{
  transform:scale(1.02);
  box-shadow:0 8px 26px rgba(0,0,0,.5),0 0 16px rgba(201,162,39,.3);
}
#copy-account:hover,#wish-form button:hover{transform:scale(1.04)}
#music-toggle:hover{transform:scale(1.08)}
.gallery-grid .batik-frame{cursor:zoom-in}

/* --- Countdown tick: scale kecil saat angka berubah --- */
.cd-cell span{display:inline-block}
.cd-cell span.tick{animation:cdTick .45s ease}
@keyframes cdTick{
  0%{transform:scale(1)}
  40%{transform:scale(1.22)}
  100%{transform:scale(1)}
}

/* --- Lightbox galeri --- */
.lightbox{
  position:fixed;inset:0;z-index:400;
  display:flex;align-items:center;justify-content:center;
  background:rgba(12,5,4,.94);
  opacity:0;visibility:hidden;
  transition:opacity .35s ease,visibility 0s linear .35s;
  padding:1rem;
}
.lightbox.open{opacity:1;visibility:visible;transition:opacity .35s ease}
.lightbox[hidden]{display:none}
.lb-figure{
  margin:0;border:2px solid var(--gold);padding:10px;background:#2a100d;
  box-shadow:0 20px 60px rgba(0,0,0,.7),0 0 40px rgba(201,162,39,.25);
}
.lb-figure img{
  display:block;max-width:84vw;max-height:74vh;width:auto;height:auto;
  transform:scale(.92);transition:transform .35s ease;
}
.lightbox.open .lb-figure img{transform:scale(1)}
.lb-btn{
  position:absolute;background:rgba(32,12,9,.85);border:2px solid var(--gold);
  color:var(--gold-light);width:52px;height:52px;border-radius:50%;
  font-size:1.6rem;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:transform .25s ease,background .25s ease,color .25s ease;
}
.lb-btn:hover{transform:scale(1.1);background:var(--gold);color:var(--maroon-deep)}
.lb-close{top:1rem;right:1rem}
.lb-prev{left:.6rem;top:50%;transform:translateY(-50%)}
.lb-next{right:.6rem;top:50%;transform:translateY(-50%)}
.lb-prev:hover{transform:translateY(-50%) scale(1.1)}
.lb-next:hover{transform:translateY(-50%) scale(1.1)}
.lb-counter{
  position:absolute;bottom:1.1rem;left:0;right:0;text-align:center;
  color:var(--gold-light);letter-spacing:.25em;font-size:1rem;
}
body.lb-lock{overflow:hidden!important}

/* --- Reduced motion: matikan semua animasi power-up --- */
@media(prefers-reduced-motion:reduce){
  .gunungan,.gunungan-cover,.gunungan-hero,
  .divider-diamond,.ritual-num,.section-title,
  .kawung,.kawung-soft,.batik-divider,.batik-frame,
  #open-invitation{animation:none}
  body.anim #cover > *{opacity:1}
  body.anim #cover.ready > *{animation:none}
  .lightbox,.lightbox *{transition:none}
}

/* ===== PHOTO BACKGROUNDS (full-bleed + parallax + veil) ===== */
.photo-bg{
  background-size:cover;background-position:center;background-repeat:no-repeat;
}
.photo-cover{background-image:url('couple-1.jpg')}
.photo-tatacara{background-image:url('couple-2.jpg')}
.photo-countdown{background-image:url('couple-3.jpg')}
.photo-gallery{background-image:url('couple-1.jpg')}
.photo-amplop{background-image:url('couple-2.jpg')}
.photo-guestbook{background-image:url('couple-3.jpg')}
/* parallax halus di desktop */
@media(hover:hover) and (min-width:768px){
  .photo-bg{background-attachment:fixed}
}
/* veil: overlay maroon gelap agar teks terbaca + kawung tetap samar */
.photo-bg{position:relative}
.photo-bg::after{
  content:'';position:absolute;inset:0;pointer-events:none;z-index:0;
  background:linear-gradient(rgba(42,16,13,.82),rgba(42,16,13,.86));
}
.photo-bg > *{position:relative;z-index:1}
/* keterbacaan teks di atas foto */
.photo-bg .section-title,.photo-bg .section-sub,.photo-bg .venue,.photo-bg .venue-note,
.photo-bg .ritual-card p,.photo-bg .ritual-card h3,.photo-bg p{
  text-shadow:0 1px 10px rgba(0,0,0,.55);
}
/* kartu ritual & amplop & form: beri panel solid agar kontras */
.photo-bg .ritual-card,.photo-bg .envelope,.photo-bg #wish-form{
  background:rgba(42,16,13,.72);
  backdrop-filter:blur(2px);
}
/* cover: inner wrapper + veil khusus */
#cover.photo-cover{padding:0}
.photo-veil{position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(rgba(30,10,8,.55),rgba(30,10,8,.78));}
.cover-inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:2rem 1.5rem;height:100%;width:100%}
.cover-inner .cover-names,.cover-inner .cover-kicker,.cover-inner .cover-date{text-shadow:0 2px 14px rgba(0,0,0,.65)}

/* ===== PROFIL MEMPELAI ===== */
.couple-cards{display:flex;flex-direction:column;gap:1.6rem;align-items:center;margin-top:1.4rem}
.person-card{
  width:100%;max-width:340px;text-align:center;
  background:rgba(42,16,13,.6);border:1px solid rgba(201,162,39,.4);border-radius:18px;
  padding:1.8rem 1.2rem;backdrop-filter:blur(2px);
  box-shadow:0 10px 34px rgba(0,0,0,.35);
  transition:transform .35s ease,box-shadow .35s ease;
}
.person-card:hover{transform:translateY(-6px);box-shadow:0 18px 44px rgba(0,0,0,.5),0 0 24px rgba(201,162,39,.25)}
.person-photo-wrap{
  width:172px;height:172px;margin:0 auto 1rem;border-radius:50%;padding:6px;
  background:conic-gradient(from 20deg,#c9a227,#f3d97b,#c9a227,#8a6a15,#c9a227);
  box-shadow:0 0 26px rgba(201,162,39,.45);
  animation:photoBreathe 4.5s ease-in-out infinite;
}
@keyframes photoBreathe{0%,100%{box-shadow:0 0 18px rgba(201,162,39,.35)}50%{box-shadow:0 0 34px rgba(201,162,39,.6)}}
.person-photo{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block;border:3px solid #2a100d}
.person-name{font-size:1.65rem;color:var(--gold-light);margin:.2rem 0 .3rem;line-height:1.3}
.person-role{font-size:.72rem;letter-spacing:.32em;text-transform:uppercase;color:var(--cream-dim);margin-bottom:.7rem}
.person-parents{font-size:.9rem;color:var(--cream);line-height:1.7}
.couple-sep{display:flex;flex-direction:column;align-items:center;gap:.2rem;color:var(--gold-light)}
.couple-sep .script{font-size:2.4rem;line-height:1}
.gunungan-mini{width:74px;height:auto;opacity:.95;filter:drop-shadow(0 3px 12px rgba(201,162,39,.35));
  animation:floatY 5s ease-in-out infinite}
@media(min-width:640px){
  .couple-cards{flex-direction:row;justify-content:center;align-items:stretch}
  .couple-sep{justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .person-photo-wrap,.gunungan-mini{animation:none}
}

/* ===== SAVE THE DATE ===== */
.photo-savedate{background-image:url('couple-3.jpg')}
.std-block{margin:1.6rem auto;max-width:340px;text-align:center;
  border-top:2px solid var(--gold);border-bottom:2px solid var(--gold);
  padding:1.4rem 1rem;position:relative}
.std-block::before,.std-block::after{
  content:'◆';position:absolute;left:50%;transform:translateX(-50%);color:var(--gold);font-size:.9rem}
.std-block::before{top:-.7em;background:transparent}
.std-block::after{bottom:-.7em}
.std-day{font-size:1.05rem;letter-spacing:.42em;text-transform:uppercase;color:var(--gold-light);
  text-shadow:0 2px 12px rgba(0,0,0,.6);margin-bottom:.4rem}
.std-num{font-family:var(--serif);font-size:5.2rem;font-weight:700;line-height:1;color:var(--cream);
  text-shadow:0 3px 22px rgba(0,0,0,.7);margin:.2rem 0}
.std-month{font-size:1.15rem;letter-spacing:.34em;color:var(--gold-light);
  text-shadow:0 2px 12px rgba(0,0,0,.6)}
.std-note{text-align:center;font-style:italic;color:var(--cream-dim);font-size:.92rem;
  text-shadow:0 1px 8px rgba(0,0,0,.6)}

/* ===== AKAD & RESEPSI CARDS ===== */
.event-cards{display:flex;flex-direction:column;gap:1.4rem;margin-top:1.4rem}
.event-card{
  background:rgba(42,16,13,.72);border:1px solid rgba(201,162,39,.45);border-radius:18px;
  padding:1.8rem 1.3rem;text-align:center;backdrop-filter:blur(2px);
  box-shadow:0 10px 34px rgba(0,0,0,.35);
  transition:transform .35s ease,box-shadow .35s ease;
}
.event-card:hover{transform:translateY(-6px);box-shadow:0 18px 44px rgba(0,0,0,.5),0 0 24px rgba(201,162,39,.25)}
.gunungan-card{width:64px;height:auto;margin:0 auto .6rem;filter:drop-shadow(0 3px 10px rgba(201,162,39,.35))}
.event-card h3{font-size:1.7rem;color:var(--gold-light);margin-bottom:.6rem}
.event-day{font-size:.78rem;letter-spacing:.3em;text-transform:uppercase;color:var(--cream-dim)}
.event-date{font-family:var(--serif);font-size:1.5rem;color:var(--cream);margin:.2rem 0}
.event-time{color:var(--gold-light);font-weight:600;margin-bottom:.8rem}
.event-venue{font-size:.88rem;color:var(--cream-dim);line-height:1.7;margin-bottom:1.2rem}
.map-btn{display:inline-block;background:transparent;border:1.5px solid var(--gold);color:var(--gold-light);
  border-radius:999px;padding:.6rem 1.6rem;text-decoration:none;font-weight:600;font-size:.88rem;
  transition:background .3s ease,color .3s ease,transform .2s ease}
.map-btn:hover{background:var(--gold);color:#2a100d;transform:scale(1.04)}
@media(min-width:640px){.event-cards{flex-direction:row;align-items:stretch}.event-card{flex:1}}

/* ===== RSVP ===== */
#rsvp-form{max-width:380px;margin:1.2rem auto 0;background:rgba(42,16,13,.6);
  border:1px solid rgba(201,162,39,.4);border-radius:18px;padding:1.6rem 1.3rem;text-align:left}
#rsvp-form input[type="text"],#rsvp-form select{
  width:100%;background:rgba(0,0,0,.3);border:1px solid rgba(201,162,39,.4);border-radius:10px;
  color:var(--cream);padding:.7rem .9rem;font-size:.95rem;margin-bottom:1rem;font-family:inherit}
#rsvp-form input::placeholder{color:rgba(245,239,224,.45)}
#rsvp-form select option{background:#2a100d}
.rsvp-radio{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1rem}
.rsvp-radio label{display:flex;align-items:center;gap:.6rem;cursor:pointer;font-size:.9rem;color:var(--cream)}
.rsvp-radio input{accent-color:#c9a227;width:1.1rem;height:1.1rem}
.rsvp-guests-label{display:block;font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--cream-dim);margin-bottom:.4rem}
#rsvp-form button[type="submit"]{
  width:100%;background:linear-gradient(135deg,#c9a227,#f3d97b);color:#2a100d;border:none;
  border-radius:999px;padding:.8rem;font-weight:700;font-size:.95rem;cursor:pointer;
  transition:transform .2s ease,box-shadow .3s ease}
#rsvp-form button[type="submit"]:hover{transform:scale(1.03);box-shadow:0 6px 22px rgba(201,162,39,.45)}
.rsvp-note{text-align:center;color:var(--gold-light);margin-top:1rem;font-size:.9rem}

/* ===== ORDER / CTA (hidup) ===== */
.order-section{
  position:relative;overflow:hidden;text-align:center;
  padding:4.5rem 1.5rem;
  background:linear-gradient(120deg,#2a100d,#4a1f1a 35%,#5c2a1e 50%,#4a1f1a 65%,#2a100d);
  background-size:220% 220%;
  animation:orderBgShift 9s ease-in-out infinite;
  border-top:2px solid var(--gold);
  border-bottom:2px solid var(--gold);
}
@keyframes orderBgShift{
  0%,100%{background-position:0% 50%}
  50%{background-position:100% 50%}
}
.order-glow{
  position:absolute;inset:-30%;pointer-events:none;
  background:radial-gradient(ellipse at 50% 55%,rgba(201,162,39,.28),transparent 60%);
  animation:orderGlowPulse 3.2s ease-in-out infinite;
}
@keyframes orderGlowPulse{
  0%,100%{opacity:.55;transform:scale(1)}
  50%{opacity:1;transform:scale(1.08)}
}
.order-orn{
  position:absolute;top:50%;font-size:3.2rem;color:rgba(201,162,39,.35);
  transform:translateY(-50%);
  animation:orderOrnFloat 5s ease-in-out infinite;
  pointer-events:none;
}
.order-orn-left{left:6%}
.order-orn-right{right:6%;animation-delay:2.5s}
@keyframes orderOrnFloat{
  0%,100%{transform:translateY(-50%) rotate(0deg);opacity:.35}
  50%{transform:translateY(-70%) rotate(25deg);opacity:.7}
}
.order-inner{position:relative;z-index:1;max-width:520px;margin:0 auto}
.order-eyebrow{
  font-size:.8rem;letter-spacing:.35em;text-transform:uppercase;
  color:var(--gold-light);margin-bottom:1rem;
}
.order-title{
  font-family:var(--serif);font-size:2.4rem;line-height:1.2;color:var(--cream);
  margin-bottom:.8rem;
}
.order-title span{
  font-family:var(--script);color:var(--gold-light);font-size:2.8rem;
}
.order-sub{color:var(--cream-dim);font-style:italic;margin-bottom:1.8rem;line-height:1.7}
.order-btn{
  position:relative;display:inline-block;overflow:hidden;
  background:linear-gradient(135deg,#c9a227,#f3d97b);
  color:#2a100d;font-weight:700;font-size:1.1rem;letter-spacing:.08em;
  text-decoration:none;padding:1rem 3rem;border-radius:999px;
  animation:orderBtnPulse 2.4s ease-in-out infinite;
  transition:transform .25s ease;
}
.order-btn:hover{transform:scale(1.06)}
@keyframes orderBtnPulse{
  0%,100%{box-shadow:0 6px 24px rgba(201,162,39,.4),0 0 0 0 rgba(201,162,39,.5)}
  50%{box-shadow:0 6px 34px rgba(201,162,39,.7),0 0 0 16px rgba(201,162,39,0)}
}
.order-btn-shine{
  position:absolute;top:0;left:-80%;width:55%;height:100%;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.65),transparent);
  transform:skewX(-20deg);
  animation:orderShine 2.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes orderShine{
  0%{left:-80%}
  55%,100%{left:130%}
}
.order-btn-text{position:relative;z-index:1}
.order-note{
  margin-top:1.4rem;font-size:.85rem;letter-spacing:.12em;
  color:var(--gold-light);text-transform:uppercase;
}

/* ===== PERSON ADDRESS ===== */
.person-address{font-size:.8rem;color:var(--cream-dim);font-style:italic;margin-top:.4rem;line-height:1.6}

/* ===== KISAH CINTA (Love Story timeline) ===== */
.story-timeline{position:relative;max-width:920px;margin:0 auto;padding:1.5rem 0 .5rem}
.story-line{
  position:absolute;left:50%;top:0;bottom:0;width:2px;transform:translateX(-50%);
  background:linear-gradient(to bottom,transparent,var(--gold) 12%,var(--gold-light) 50%,var(--gold) 88%,transparent);
  box-shadow:0 0 10px rgba(201,162,39,.35);
}
.story-item{position:relative;width:50%;padding:0 2.4rem 2.8rem 0}
.story-item:last-child{padding-bottom:.5rem}
.story-left{margin-right:auto;text-align:right}
.story-right{margin-left:auto;padding:0 0 2.8rem 2.4rem;text-align:left}
.story-dot{
  position:absolute;top:6px;width:18px;height:18px;border-radius:50%;
  background:var(--maroon-deep);border:3px solid var(--gold);
  box-shadow:0 0 14px rgba(201,162,39,.6);z-index:1;
}
.story-left .story-dot{right:-9px}
.story-right .story-dot{left:-9px}
.story-card{
  background:rgba(51,19,16,.72);
  border:1px solid rgba(201,162,39,.35);border-radius:14px;
  padding:1.2rem 1.1rem 1.3rem;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease;
}
.story-card:hover{transform:translateY(-4px);border-color:var(--gold);box-shadow:0 16px 38px rgba(0,0,0,.5),0 0 18px rgba(201,162,39,.25)}
.story-photo-wrap{
  width:96px;height:96px;border-radius:50%;overflow:hidden;margin:0 0 1rem;
  border:3px solid var(--gold);box-shadow:0 6px 18px rgba(0,0,0,.45),0 0 14px rgba(201,162,39,.35);
}
.story-left .story-photo-wrap{margin-left:auto}
.story-photo-wrap img{width:100%;height:100%;object-fit:cover}
.story-year{
  display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.28em;text-indent:.28em;
  color:var(--maroon-deep);background:linear-gradient(135deg,var(--gold-light),var(--gold));
  border-radius:999px;padding:.32rem .9rem;margin-bottom:.7rem;
  box-shadow:0 4px 14px rgba(201,162,39,.4);
}
.story-title{font-size:1.9rem;color:var(--gold-light);margin-bottom:.55rem;line-height:1.2}
.story-text{font-size:1.02rem;line-height:1.75;color:var(--cream-dim)}
/* alternating slide-in reveal */
.story-left.reveal{transform:translateX(-46px)}
.story-right.reveal{transform:translateX(46px)}
.story-left.reveal.visible,.story-right.reveal.visible{transform:none}
@media(max-width:560px){
  .story-item{padding:0 1.3rem 2.2rem 0}
  .story-right{padding:0 0 2.2rem 1.3rem}
  .story-title{font-size:1.6rem}
  .story-text{font-size:.95rem}
  .story-photo-wrap{width:78px;height:78px}
}
@media(prefers-reduced-motion:reduce){
  .story-card:hover{transform:none}
  .story-left.reveal,.story-right.reveal{transform:none}
}
@media(prefers-reduced-motion:reduce){
  .person-card:hover,.event-card:hover,.map-btn:hover,#rsvp-form button[type="submit"]:hover{transform:none}
  .order-section,.order-glow,.order-orn,.order-btn,.order-btn-shine{animation:none}
}

/* ---------- Instagram mempelai ---------- */
.person-ig{display:inline-flex;align-items:center;gap:.45rem;margin-top:.6rem;padding:.45rem 1rem;border:1px solid var(--gold-dim);border-radius:999px;color:var(--gold-light);text-decoration:none;font-size:.82rem;letter-spacing:.4px;transition:all .25s ease;background:rgba(201,162,39,.07)}
.person-ig:hover{background:rgba(201,162,39,.16);border-color:var(--gold);transform:translateY(-2px);box-shadow:0 6px 18px rgba(201,162,39,.25)}
.person-ig .ig-icon{width:16px;height:16px;flex-shrink:0}
