/* =====================================================
   UNDANGAN EXCLUSIVE MEWAH & ELEGAN — ROYAL VELVET
   dipakai oleh index-royal.html dan live-royal.html
   ===================================================== */

/* ============ VARIABEL WARNA ============ */
:root {
  --wine-dark: #2e0a14;
  --wine: #5a1428;
  --velvet: #8a2441;
  --gold: #cfa95a;
  --gold-light: #f1deaa;
  --gold-dark: #9a7a34;
  --ivory: #fbf5ea;
  --blush: #f3e6dc;
  --ink: #2a0f17;
  --muted: #7d6a68;
  --on-dark: #eadfd2;

  --f-display: "Rufina", serif;
  --f-script: "Mrs Saint Delafield", cursive;
  --f-body: "Libre Caslon Text", serif;
  --f-label: "Questrial", sans-serif;

  --gold-grad: linear-gradient(135deg, var(--gold-dark), var(--gold-light) 38%, var(--gold) 60%, var(--gold-dark));
  --foil: linear-gradient(110deg, #9a7a34 0%, #f1deaa 24%, #cfa95a 42%, #fff6d8 52%, #cfa95a 64%, #9a7a34 100%);

  /* Beludru: lipatan halus + butiran */
  --pleat: repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 2px, transparent 2px 16px, rgba(255,255,255,.025) 16px 18px, transparent 18px 34px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .3 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --lace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%239a7a34' stroke-width='1' opacity='.1'%3E%3Cpath d='M40 6 C52 18 52 30 40 40 C28 30 28 18 40 6Z'/%3E%3Cpath d='M40 40 C52 52 52 62 40 74 C28 62 28 52 40 40Z'/%3E%3Cpath d='M6 40 C18 28 30 28 40 40 C30 52 18 52 6 40Z'/%3E%3Cpath d='M40 40 C52 28 62 28 74 40 C62 52 52 52 40 40Z'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 1.04rem;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ EFEK EMAS ============ */
.gold { background: var(--foil); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); animation: foil 8s linear infinite; }
@keyframes foil { from { background-position: 100% 0; } to { background-position: -160% 0; } }

/* ============ LAYOUT UMUM ============ */
.section { padding: 118px 22px; position: relative; overflow: hidden; }
.ivory { background: var(--lace), linear-gradient(180deg, var(--ivory), #f6ecdc); }
.blush { background: var(--lace), linear-gradient(180deg, var(--blush), var(--ivory)); }
.velvet { background: var(--pleat), var(--grain), radial-gradient(circle at 50% 0%, var(--velvet) 0%, var(--wine) 45%, var(--wine-dark) 100%); color: var(--on-dark); }
.center { text-align: center; }
.container { max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
.narrow { max-width: 700px; }

.kicker { text-align: center; font-family: var(--f-label); font-size: .66rem; letter-spacing: .52em; text-transform: uppercase; color: var(--gold-dark); padding-left: .52em; margin-bottom: 12px; }
.velvet .kicker { color: var(--gold); }

/* Pita swallowtail untuk judul */
.rb-wrap { text-align: center; filter: drop-shadow(0 10px 14px rgba(46,10,20,.32)); }
.rb { display: inline-block; padding: 2px 0; background: var(--gold-grad); clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 50%, 100% 100%, 0 100%, 26px 50%); }
.rb span { display: block; padding: 13px 70px; font-family: var(--f-display); font-size: clamp(.95rem, 2.8vw, 1.25rem); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); background: linear-gradient(180deg, var(--velvet), var(--wine)); clip-path: polygon(0 0, 100% 0, calc(100% - 25px) 50%, 100% 100%, 0 100%, 25px 50%); }
.velvet .rb { background: var(--gold-light); }
.velvet .rb span { color: var(--wine); background: linear-gradient(180deg, #fffaf0, #f1e4cb); }
.flourish { display: block; width: 220px; height: auto; margin: 14px auto 56px; overflow: visible; }
.head-gap { height: 18px; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 40px;
  background: var(--gold-grad); color: var(--wine-dark);
  border: 0; border-radius: 999px;
  font-family: var(--f-label); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: .35s;
  box-shadow: 0 10px 28px rgba(207,169,90,.3), inset 0 0 0 1px rgba(255,255,255,.4);
}
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: skewX(-20deg); transition: left .7s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { left: 130%; }
.btn.ghost { background: transparent; color: var(--wine); box-shadow: inset 0 0 0 1px var(--gold-dark); }
.btn.ghost:hover { background: var(--wine); color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--wine); }
.velvet .btn.ghost, .btn.ghost.on-dark { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.velvet .btn.ghost:hover, .btn.ghost.on-dark:hover { background: var(--gold); color: var(--wine-dark); }
.btn.small { padding: 10px 24px; font-size: .62rem; }

/* Animasi scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ============ ORNAMEN ============ */
[data-orn] { position: relative; }
.oc { position: absolute; width: 56px; height: 56px; pointer-events: none; z-index: 3; }
.oc svg { width: 100%; height: 100%; overflow: visible; }
.oc.tl { top: -2px; left: -2px; } .oc.tr { top: -2px; right: -2px; transform: scaleX(-1); }
.oc.bl { bottom: -2px; left: -2px; transform: scaleY(-1); } .oc.br { bottom: -2px; right: -2px; transform: scale(-1, -1); }
.oc.lg { width: 78px; height: 78px; }

.spk { position: absolute; width: var(--s); height: var(--s); pointer-events: none; z-index: 1; opacity: 0; background: linear-gradient(135deg, #fff6d8, var(--gold)); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: .95; transform: scale(1) rotate(45deg); } }

.chand { position: absolute; top: 0; left: 50%; width: min(300px, 72vw); transform: translateX(-50%); z-index: 3; overflow: visible; filter: drop-shadow(0 0 40px rgba(255,214,140,.3)); transform-origin: 50% 0; animation: swingc 8s ease-in-out infinite alternate; }
@keyframes swingc { from { transform: translateX(-50%) rotate(-1.2deg); } to { transform: translateX(-50%) rotate(1.2deg); } }
.glow { position: absolute; top: -10%; left: 50%; width: 120%; height: 70%; transform: translateX(-50%); z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 0%, rgba(255,214,140,.32), transparent 62%); }

/* Segel lilin + inisial */
.seal { position: relative; width: 84px; height: 84px; margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; letter-spacing: .04em; color: var(--gold-light); text-shadow: 0 2px 3px rgba(0,0,0,.5); padding-top: 2px; }
.seal.sm { width: 64px; height: 64px; } .seal.sm b { font-size: 1.1rem; }

/* ============ COVER ============ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 270px 28px 110px; overflow: hidden; color: var(--on-dark); background: var(--pleat), var(--grain), radial-gradient(circle at 50% 0%, #9a2b4a 0%, var(--wine) 45%, var(--wine-dark) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 50% 55%, transparent 40%, rgba(0,0,0,.5)); }
.frame { position: absolute; inset: 16px; border: 1px solid rgba(207,169,90,.7); z-index: 2; pointer-events: none; }
.frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(207,169,90,.28); }
.hero-inner { position: relative; z-index: 4; width: 100%; max-width: 560px; }
.eyebrow { font-family: var(--f-label); font-size: .66rem; letter-spacing: .6em; text-transform: uppercase; color: var(--gold); padding-left: .6em; margin: 20px 0 30px; }

/* Bingkai oval emas */
.oval-wrap { position: relative; width: min(250px, 62vw); margin: 0 auto 40px; }
.oval-wrap .fl { position: absolute; top: -34px; left: 50%; width: 38px; margin-left: -19px; z-index: 3; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.oval { aspect-ratio: 3 / 4; border-radius: 50%; padding: 9px; background: var(--gold-grad); box-shadow: 0 0 0 7px var(--wine-dark), 0 0 0 9px rgba(207,169,90,.8), 0 34px 70px rgba(0,0,0,.65); outline: 3px dotted rgba(241,222,170,.7); outline-offset: 16px; }
.oval figure { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #a63552, var(--wine-dark)); display: grid; place-items: center; color: var(--gold-light); font-family: var(--f-label); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; box-shadow: inset 0 0 0 3px rgba(46,10,20,.9); }
.oval img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.names { font-family: var(--f-script); font-weight: 400; font-size: clamp(4.4rem, 20vw, 8rem); line-height: .85; display: flex; flex-direction: column; align-items: center; padding: .12em 0; }
.names em { font-style: normal; font-size: .4em; padding: .1em 0; line-height: 1; }
.names.small { font-size: clamp(3.4rem, 12vw, 5.6rem); flex-direction: row; justify-content: center; align-items: center; gap: .14em; line-height: 1; }
.names.small em { font-size: .5em; padding: 0; }
.dateline { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 26px 0 26px; font-family: var(--f-label); font-size: .8rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-light); }
.dateline::before, .dateline::after { content: ""; width: 44px; height: 1px; background: var(--gold); }
.guest-card { position: relative; padding: 22px 26px; margin: 0 auto 30px; max-width: 380px; border: 1px solid rgba(207,169,90,.55); background: rgba(255,255,255,.04); }
.guest-card span { display: block; font-family: var(--f-label); font-size: .6rem; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); }
.guest-card b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.3; color: #fff; margin: 4px 0; }
.guest-card small { display: block; font-size: .78rem; color: rgba(234,223,210,.6); }

/* ============ COUNTDOWN ============ */
.cameos { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.cameo { width: 108px; padding: 4px; aspect-ratio: 3 / 4; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 16px 30px rgba(46,10,20,.28); outline: 2px dotted rgba(154,122,52,.7); outline-offset: 5px; }
.cameo div { width: 100%; height: 100%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 25%, var(--velvet), var(--wine-dark)); box-shadow: inset 0 0 0 2px rgba(46,10,20,.9), inset 0 0 0 3px rgba(207,169,90,.55); }
.cameo b { font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.cameo span { font-family: var(--f-label); font-size: .5rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); padding-left: .28em; margin-top: 4px; }
.count-note { margin-top: 46px; font-family: var(--f-script); font-size: 3.2rem; line-height: 1; color: var(--velvet); }

/* ============ AYAT ============ */
.quote-frame { max-width: 740px; margin: 0 auto; padding: 66px 38px; border: 1px solid rgba(207,169,90,.55); background: rgba(255,255,255,.03); }
.quote-frame .fl { width: 40px; height: 54px; margin: 0 auto 6px; display: block; overflow: visible; }
.salam { font-family: var(--f-label); font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin: 10px 0 26px; }
.quote { font-family: var(--f-display); font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.75; color: #fff; }
.source { margin-top: 26px; font-family: var(--f-label); font-size: .66rem; letter-spacing: .44em; text-transform: uppercase; color: var(--gold); padding-left: .44em; }

/* ============ MEMPELAI ============ */
.couple { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 56px 34px; }
.person { text-align: center; }
.portrait { position: relative; width: min(220px, 62vw); margin: 0 auto 40px; }
.portrait .fl { position: absolute; top: -30px; left: 50%; width: 32px; margin-left: -16px; z-index: 3; overflow: visible; filter: drop-shadow(0 4px 5px rgba(46,10,20,.4)); }
.p-oval { aspect-ratio: 3 / 4; border-radius: 50%; padding: 8px; background: var(--gold-grad); box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px rgba(154,122,52,.7), 0 24px 46px rgba(46,10,20,.32); outline: 3px dotted rgba(154,122,52,.6); outline-offset: 14px; }
.p-oval figure { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #a63552, var(--wine-dark)); display: grid; place-items: center; color: var(--gold-light); font-family: var(--f-label); font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; box-shadow: inset 0 0 0 3px rgba(46,10,20,.9); }
.p-oval img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-family: var(--f-script); font-weight: 400; font-size: 3rem; line-height: 1.05; color: var(--velvet); }
.role { font-family: var(--f-label); font-size: .6rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-dark); padding-left: .42em; margin: 6px 0 12px; }
.par { color: var(--muted); }

/* ============ JADWAL ============ */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px 30px; max-width: 880px; margin: 40px auto 0; }
.card { position: relative; padding: 58px 30px 40px; text-align: center; background: linear-gradient(180deg, #fffaf0, #f6ebd8); color: var(--ink); border: 1px solid var(--gold); box-shadow: inset 0 0 0 7px #fffaf0, inset 0 0 0 8px rgba(207,169,90,.6), 0 26px 50px rgba(0,0,0,.4); }
.card .seal { position: absolute; top: -42px; left: 50%; transform: translateX(-50%); }
.card h3 { font-family: var(--f-script); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--velvet); }
.card .time { font-family: var(--f-label); font-size: .74rem; letter-spacing: .28em; color: var(--gold-dark); margin: 6px 0 10px; }
.card p { color: var(--muted); }
.card .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.letter-banner { position: relative; max-width: 880px; margin: 56px auto 0; padding: 36px 38px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; background: linear-gradient(180deg, #fffaf0, #f6ebd8); color: var(--ink); border: 1px solid var(--gold); box-shadow: inset 0 0 0 6px #fffaf0, inset 0 0 0 7px rgba(207,169,90,.6), 0 26px 50px rgba(0,0,0,.4); }
.letter-banner .lead { display: flex; align-items: center; gap: 22px; }
.letter-banner h3 { font-family: var(--f-script); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--velvet); }
.letter-banner p { color: var(--muted); font-size: .98rem; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e0485a; margin-right: 10px; animation: pulse 1.6s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,72,90,.6); } 50% { box-shadow: 0 0 0 9px rgba(224,72,90,0); } }

/* ============ TIMELINE KISAH CINTA ============ */
.timeline { position: relative; max-width: 700px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(var(--gold), rgba(207,169,90,.2)); }
.t-item { position: relative; width: 50%; padding: 0 52px 44px 0; }
.t-item:nth-child(even) { margin-left: 50%; padding: 0 0 44px 52px; }
.t-seal { position: absolute; top: -8px; right: -29px; width: 58px; height: 58px; filter: drop-shadow(0 6px 8px rgba(46,10,20,.4)); }
.t-seal svg { width: 100%; height: 100%; overflow: visible; }
.t-seal b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 400; font-size: .8rem; color: var(--gold-light); padding-top: 1px; }
.t-item:nth-child(even) .t-seal { right: auto; left: -29px; }
.t-box { position: relative; padding: 28px 30px; background: linear-gradient(180deg, #fffaf0, #f6ebd8); border: 1px solid var(--gold); box-shadow: inset 0 0 0 5px #fffaf0, inset 0 0 0 6px rgba(207,169,90,.5), 0 18px 36px rgba(46,10,20,.14); }
.t-year { font-family: var(--f-script); font-size: 2.8rem; line-height: 1; }
.t-box h3 { font-family: var(--f-label); font-weight: 400; font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--wine); margin: 6px 0 8px; }
.t-box p { color: var(--muted); font-size: .98rem; line-height: 1.75; }

/* ============ GALERI ============ */
.gallery { columns: 2; column-gap: 16px; }
.g { break-inside: avoid; margin-bottom: 16px; width: 100%; display: grid; place-items: center; overflow: hidden; border: 11px solid transparent; border-image: linear-gradient(135deg, #9a7a34, #f1deaa 38%, #cfa95a 60%, #9a7a34) 1; background: linear-gradient(160deg, #a63552, var(--wine-dark)); box-shadow: inset 0 0 0 7px rgba(46,10,20,.92), inset 0 0 0 8px rgba(207,169,90,.5), 0 24px 44px rgba(0,0,0,.5); color: var(--gold-light); font-family: var(--f-label); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; transition: transform .5s; }
.g:hover { transform: translateY(-5px); }
.g:nth-child(1) { height: 320px; } .g:nth-child(2) { height: 220px; } .g:nth-child(3) { height: 270px; }
.g:nth-child(4) { height: 250px; } .g:nth-child(5) { height: 340px; } .g:nth-child(6) { height: 210px; }
.g img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.hint { text-align: center; margin-top: 20px; font-family: var(--f-label); font-size: .72rem; color: rgba(234,223,210,.55); }
.lightbox { position: fixed; inset: 0; z-index: 99; background: rgba(24,4,10,.96); display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 92vh; border: 3px solid var(--gold); }

/* ============ TANDA KASIH (AMPLOP) ============ */
.gift-note { text-align: center; max-width: 560px; margin: -38px auto 54px; color: var(--muted); }
.envs { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 30px; max-width: 800px; margin: 0 auto; }
.env { position: relative; padding: 96px 24px 32px; text-align: center; background: linear-gradient(180deg, #fffaf0, #f4e8d3); border: 1px solid var(--gold); box-shadow: inset 0 0 0 6px #fffaf0, inset 0 0 0 7px rgba(207,169,90,.55), 0 26px 50px rgba(46,10,20,.2); }
.env-flap { position: absolute; top: 0; left: 0; right: 0; height: 74px; background: linear-gradient(180deg, #ecd9b6, #e1c895); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env-flap::after { content: ""; position: absolute; inset: 0; background: var(--lace); }
.env .seal { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; z-index: 2; }
.env strong { display: block; font-family: var(--f-label); font-weight: 400; font-size: .68rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-dark); padding-left: .38em; }
.env .no { display: block; font-family: var(--f-display); font-size: 1.8rem; letter-spacing: .06em; color: var(--wine); margin: 4px 0 0; }
.env em { display: block; font-style: normal; color: var(--muted); margin-bottom: 16px; }
.address { max-width: 800px; margin: 30px auto 0; padding: 32px 24px; text-align: center; background: linear-gradient(180deg, #fffaf0, #f4e8d3); border: 1px solid var(--gold); box-shadow: inset 0 0 0 5px #fffaf0, inset 0 0 0 6px rgba(207,169,90,.5); }
.address b { display: block; font-family: var(--f-label); font-weight: 400; font-size: .64rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.address p { color: var(--muted); margin-bottom: 16px; }

/* ============ RSVP ============ */
.letter { position: relative; padding: 70px 40px 46px; background: linear-gradient(180deg, #fffaf0, #f6ebd8); color: var(--ink); border: 1px solid var(--gold); box-shadow: inset 0 0 0 7px #fffaf0, inset 0 0 0 8px rgba(207,169,90,.6), 0 30px 60px rgba(0,0,0,.45); }
.letter > .seal { position: absolute; top: -42px; left: 50%; transform: translateX(-50%); }
.rsvp { display: grid; gap: 28px; }
.field label, .field > span { display: block; font-family: var(--f-label); font-size: .62rem; letter-spacing: .36em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.rsvp input[type="text"], .rsvp input[type="number"], .rsvp textarea { width: 100%; padding: 10px 2px; font-family: var(--f-body); font-size: 1.15rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(154,122,52,.6); border-radius: 0; outline: none; transition: .3s; }
.rsvp textarea { resize: vertical; line-height: 1.6; }
.rsvp input:focus, .rsvp textarea:focus { border-bottom-color: var(--velvet); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--wine); }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 13px 4px; text-align: center; font-family: var(--f-label); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); cursor: pointer; border-right: 1px solid var(--wine); transition: .3s; }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--wine); color: var(--gold-light); }
.rsvp .btn { justify-self: center; }
.wishes { margin-top: 44px; display: grid; gap: 14px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.wish { padding: 22px 26px; background: rgba(255,250,240,.06); border: 1px solid rgba(207,169,90,.4); border-left: 3px solid var(--gold); }
.wish strong { font-family: var(--f-script); font-weight: 400; font-size: 2rem; color: var(--gold-light); }
.wish small { margin-left: 10px; font-family: var(--f-label); font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.wish p { color: rgba(234,223,210,.75); }

/* ============ FOOTER ============ */
.footer { position: relative; text-align: center; padding: 280px 22px 130px; overflow: hidden; background: var(--pleat), var(--grain), radial-gradient(circle at 50% 0%, #9a2b4a, var(--wine) 40%, var(--wine-dark) 100%); color: var(--on-dark); }
.footer .chand { width: min(240px, 60vw); }
.footer-in { position: relative; z-index: 4; max-width: 580px; margin: 0 auto; }
.footer-in > p { color: rgba(234,223,210,.78); }
.copy { font-family: var(--f-display); font-size: 1.2rem; margin-top: 18px; color: var(--gold-light); }
.thanks { margin-top: 22px; font-family: var(--f-label); font-size: .66rem; letter-spacing: .62em; text-transform: uppercase; color: var(--gold); padding-left: .62em; }
.footer .btn { margin-top: 32px; }

/* ============ DOCK NAVIGASI ============ */
.dock { position: fixed; left: 50%; bottom: 16px; z-index: 50; transform: translate(-50%, 140%); display: flex; gap: 4px; padding: 7px; background: rgba(46,10,20,.9); border: 1px solid rgba(207,169,90,.6); border-radius: 999px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: transform .5s ease; }
.dock.show { transform: translate(-50%, 0); }
.dock a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: rgba(234,223,210,.7); transition: .3s; }
.dock a:hover { background: var(--gold); color: var(--wine-dark); }
.dock svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================================
   HALAMAN LIVE STREAMING — GALERI BERLILIN
   ===================================================== */
.live-page { position: relative; min-height: 100vh; overflow: hidden; padding: 290px 18px 100px; color: var(--on-dark); background: var(--pleat), var(--grain), radial-gradient(circle at 50% 0%, #9a2b4a 0%, var(--wine) 45%, var(--wine-dark) 100%); }
.live-page::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 50% 45%, transparent 40%, rgba(0,0,0,.5)); }
.live-wrap { position: relative; z-index: 4; max-width: 960px; margin: 0 auto; text-align: center; }
.live-head .eyebrow { margin: 16px 0 12px; }
.live-head .dateline { margin: 14px 0 6px; }
.hello { color: rgba(234,223,210,.75); }
.hello b { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; color: #fff; }

.hall { position: relative; margin: 66px auto 0; padding: 0 clamp(34px, 8vw, 84px); }
.hall .candle { position: absolute; bottom: -34px; width: clamp(40px, 7vw, 64px); z-index: 5; overflow: visible; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.hall .candle.l { left: -4px; } .hall .candle.r { right: -4px; }
.gilt { position: relative; padding: 26px; background: var(--gold-grad); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), inset 0 0 0 9px rgba(46,10,20,.18), 0 0 90px rgba(255,214,140,.25), 0 40px 90px rgba(0,0,0,.65); }
.gilt::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(46,10,20,.4); pointer-events: none; z-index: 3; }
.gilt .crest { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; z-index: 6; border-radius: 50%; background: var(--wine-dark); border: 2px solid var(--gold); display: grid; place-items: center; box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.gilt .crest svg { width: 26px; height: 36px; overflow: visible; }
.stage { position: relative; aspect-ratio: 16 / 9; background: #12030a; overflow: hidden; z-index: 2; box-shadow: 0 0 0 3px var(--wine-dark), inset 0 0 40px rgba(0,0,0,.6); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 16px; overflow: hidden; background: var(--pleat), radial-gradient(circle at 50% 0%, #9a2b4a, var(--wine-dark) 80%); color: #fff; }
.poster h2 { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.2rem, 8vw, 4rem); line-height: 1; }
.poster p { color: rgba(234,223,210,.8); font-size: clamp(.7rem, 2vw, .92rem); max-width: 400px; }
.poster .mini-count { display: flex; gap: clamp(12px, 3.4vw, 28px); margin: 6px 0; }
.poster .mini-count div { text-align: center; }
.poster .mini-count b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 6.6vw, 3.2rem); line-height: 1; color: var(--gold-light); }
.poster .mini-count span { font-family: var(--f-label); font-size: clamp(.44rem, 1.5vw, .58rem); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

.status-plaque { position: relative; z-index: 6; display: inline-flex; align-items: center; gap: 10px; margin-top: 44px; padding: 10px 34px; background: var(--gold-grad); color: var(--wine-dark); font-family: var(--f-label); font-size: .64rem; letter-spacing: .38em; text-transform: uppercase; box-shadow: 0 14px 28px rgba(0,0,0,.5), inset 0 0 0 3px rgba(255,255,255,.35); }
.status-plaque i { width: 8px; height: 8px; border-radius: 50%; background: var(--wine); display: block; }
.status-plaque.live i { background: #e0243c; animation: pulse 1.6s ease-in-out infinite; }
.plaque { margin-top: 14px; font-family: var(--f-label); font-size: .62rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); padding-left: .5em; }

.live-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 44px 0 50px; }
.live-info { position: relative; padding: 50px 38px; text-align: left; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; border: 1px solid rgba(207,169,90,.55); background: rgba(255,250,240,.04); }
.live-info h3 { font-family: var(--f-script); font-weight: 400; font-size: 2.4rem; line-height: 1; margin-bottom: 8px; color: var(--gold-light); }
.live-info ul { list-style: none; }
.live-info li { padding: 12px 0; border-bottom: 1px solid rgba(207,169,90,.3); display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.live-info li:last-child { border-bottom: 0; }
.live-info li span { color: rgba(234,223,210,.72); }
.live-info li b { font-family: var(--f-label); font-weight: 400; font-size: .76rem; letter-spacing: .16em; color: var(--gold); align-self: center; }
.tips li { display: block; color: rgba(234,223,210,.75); }
.live-foot { margin-top: 50px; font-family: var(--f-label); font-size: .62rem; letter-spacing: .5em; text-transform: uppercase; color: rgba(207,169,90,.7); }

/* ============ RESPONSIF ============ */
@media (min-width: 760px) {
  .gallery { columns: 3; column-gap: 18px; }
  .g { margin-bottom: 18px; }
}
@media (max-width: 650px) {
  .section { padding: 76px 16px; }
  .hero { padding: clamp(140px, 24vh, 180px) 16px 84px; }
  .chand { width: min(190px, 52vw); }
  .frame { inset: 10px; }
  .frame::before { inset: 4px; }

  .names { font-size: clamp(2.6rem, 13vw, 4.6rem); }
  .names.small { font-size: clamp(2.2rem, 9vw, 3.6rem); }
  .eyebrow { font-size: .58rem; letter-spacing: .42em; margin: 6px 0 18px; }
  .dateline { font-size: .64rem; letter-spacing: .2em; gap: 8px; margin: 18px 0; }
  
  .guest-card { padding: 18px 16px; margin: 0 auto 22px; max-width: 100%; }
  .guest-card b { font-size: 1.35rem; }
  .oval-wrap { margin: 0 auto 24px; }
  .oval figure { width: min(190px, 54vw); height: min(250px, 72vw); }

  .oc { width: 40px; height: 40px; }
  .oc.lg { width: 54px; height: 54px; }
  .rb span { padding: 10px 28px; font-size: clamp(0.72rem, 2.5vw, 0.85rem); }
  .flourish { width: 180px; }

  /* Cameo Countdown 4 Kolom 1 Baris di HP */
  .cameos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 360px; margin: 0 auto; }
  .cameo { width: 100%; min-width: 0; padding: 12px 2px 8px; outline-offset: 2px; }
  .cameo b { font-size: clamp(1.2rem, 5.5vw, 1.6rem); }
  .cameo span { font-size: .38rem; letter-spacing: .1em; padding-left: .1em; }
  .count-note { font-size: 1.5rem; margin-top: 24px; }

  .quote-frame { padding: 48px 18px; }
  .quote { font-size: 1.25rem; line-height: 1.6; }

  /* Mempelai */
  .couple { grid-template-columns: 1fr; gap: 36px; }
  .portrait .p-oval { width: min(200px, 58vw); }
  .person h3 { font-size: 1.35rem; }

  /* Jadwal Acara */
  .events { margin-top: 48px; gap: 46px; }
  .card { padding: 46px 18px 28px; }
  .card h3 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .card .time { font-size: .68rem; letter-spacing: .18em; }
  .card .links { gap: 8px; }
  .card .links .btn { width: 100%; max-width: 200px; margin: 0 auto; }

  .letter-banner { padding: 24px 18px; }

  /* Timeline satu sisi di HP */
  .timeline::before { left: 24px; }
  .t-item, .t-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 32px 58px; }
  .t-seal, .t-item:nth-child(even) .t-seal { left: -1px; right: auto; width: 44px; height: 44px; top: -4px; }
  .t-box h3 { font-size: 1.25rem; }
  .t-box p { font-size: .88rem; line-height: 1.6; }

  /* Galeri */
  .gallery { columns: 2; column-gap: 8px; }
  .g { margin-bottom: 8px; border-width: 6px; }

  /* Tanda Kasih / Amplop */
  .gift-note { margin: -20px auto 30px; font-size: 0.9rem; }
  .envs { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
  .env { padding: 80px 16px 26px; }
  .env .seal { width: 50px; height: 50px; top: 38px; }
  .env .no { font-size: clamp(1.2rem, 5.2vw, 1.65rem); letter-spacing: .05em; word-break: break-all; }
  .env em { font-size: .88rem; }
  .env .btn { width: 100%; max-width: 220px; margin: 0 auto; }
  .address { padding: 24px 16px; }

  /* RSVP Form */
  .letter { padding: 56px 18px 28px; margin-top: 48px; }
  .letter > .seal { width: 56px; height: 56px; top: -36px; }
  .rsvp { gap: 20px; }
  .seg { grid-template-columns: repeat(3, 1fr); }
  .seg span { padding: 11px 2px; font-size: .58rem; letter-spacing: .06em; }
  .rsvp input[type="text"], .rsvp input[type="number"], .rsvp textarea { font-size: 16px; padding: 10px 4px; }
  .wish { padding: 16px 16px; }
  .wish strong { font-size: 1.6rem; }

  /* Footer */
  .footer { padding: 140px 16px 90px; }
  .footer .chand { width: min(160px, 45vw); }

  /* Dock & Music Button */
  .dock { bottom: 12px; padding: 5px; gap: 3px; }
  .dock a { width: 42px; height: 42px; }
  .music-btn { bottom: 74px; right: 16px; width: 42px; height: 42px; }

  /* Live Page */
  .live-page { padding: clamp(140px, 24vh, 180px) 14px 60px; }
  .hall { padding: 0; margin-top: 36px; }
  .hall .candle { display: none; }
  .gilt { padding: 10px; }
  .gilt::before { inset: 5px; }
  .gilt .crest { width: 50px; height: 50px; top: -24px; }
  .gilt .crest svg { width: 20px; height: 28px; }
  .live-info { padding: 30px 18px; }
  .stage:has(#stageBody > div) { aspect-ratio: auto; min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .spk { opacity: .6; }
}
