/* =====================================================
   UNDANGAN EXCLUSIVE MEWAH — EMERALD & GOLD (ISTANA)
   dipakai oleh index-mewah.html dan live-mewah.html
   ===================================================== */

/* ============ VARIABEL WARNA ============ */
:root {
  --deep: #04261f;
  --emerald: #0a3d31;
  --emerald-soft: #115443;
  --gold: #d4af6a;
  --gold-light: #f3dfa8;
  --gold-dark: #8f6f2e;
  --ivory: #f8f1e2;
  --champagne: #efe3c8;
  --ink: #10241e;
  --muted: #6b7d75;
  --on-dark: #e9e2cf;

  --font-display: "Bellefair", serif;
  --font-script: "Monsieur La Doulaise", cursive;
  --font-serif: "EB Garamond", serif;
  --font-sans: "Tenor Sans", sans-serif;

  --gold-grad: linear-gradient(135deg, var(--gold-dark), var(--gold-light) 38%, var(--gold) 58%, var(--gold-dark));
  --foil: linear-gradient(110deg, #8f6f2e 0%, #f3dfa8 24%, #d4af6a 42%, #fff6d6 52%, #d4af6a 64%, #8f6f2e 100%);

  /* Pola damask */
  --damask-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23d4af6a' stroke-width='1' opacity='.17'%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%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='80' cy='0' r='3'/%3E%3Ccircle cx='0' cy='80' r='3'/%3E%3Ccircle cx='80' cy='80' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --damask-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%230a3d31' stroke-width='1' opacity='.07'%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%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='80' cy='0' r='3'/%3E%3Ccircle cx='0' cy='80' r='3'/%3E%3Ccircle cx='80' cy='80' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

/* ============ EFEK EMAS ============ */
.foil { 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(--damask-soft), var(--ivory); }
.champagne { background: var(--damask-soft), var(--champagne); }
.emerald   { background: var(--damask-gold), linear-gradient(180deg, var(--emerald), var(--deep)); color: var(--on-dark); }
.deep      { background: var(--damask-gold), radial-gradient(circle at 50% 0%, #0d4a3a, var(--deep) 70%); 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(--font-sans); font-size: .68rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-dark); padding-left: .5em; margin-bottom: 8px; }
.emerald .kicker, .deep .kicker { color: var(--gold); }
.title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 7.4vw, 3.8rem); line-height: 1.12; text-align: center; letter-spacing: .02em; color: var(--emerald); }
.emerald .title, .deep .title { color: var(--gold-light); }
.flourish { display: block; width: 220px; height: auto; margin: 14px auto 56px; overflow: visible; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 40px;
  background: var(--gold-grad);
  color: var(--deep);
  border: 0; border-radius: 2px;
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: .35s;
  box-shadow: 0 10px 30px rgba(212,175,106,.28), 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,.55), transparent); transform: skewX(-20deg); transition: left .7s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(212,175,106,.45), inset 0 0 0 1px rgba(255,255,255,.5); }
.btn:hover::after { left: 130%; }
.btn.ghost { background: transparent; color: var(--gold-dark); box-shadow: inset 0 0 0 1px var(--gold-dark); }
.btn.ghost:hover { background: var(--gold-dark); color: #fff; }
.emerald .btn.ghost, .deep .btn.ghost, .btn.ghost.on-dark { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.emerald .btn.ghost:hover, .deep .btn.ghost:hover, .btn.ghost.on-dark:hover { background: var(--gold); color: var(--deep); }
.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: 54px; height: 54px; 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: 74px; height: 74px; }

.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* Lambang (mahkota + karangan daun + inisial) */
.crest { position: relative; width: 104px; height: 104px; margin: 0 auto 14px; }
.crest .laurel { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.crest .crown { position: absolute; top: -26px; left: 50%; width: 38px; margin-left: -19px; overflow: visible; }
.crest b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: .02em; padding-top: 6px; }
.crest.sm { width: 80px; height: 80px; }
.crest.sm b { font-size: 1.3rem; }
.crest.sm .crown { width: 30px; margin-left: -15px; top: -20px; }

/* ============ COVER ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 100px 28px 110px; overflow: hidden;
  background: var(--damask-gold), radial-gradient(circle at 50% 32%, #136050 0%, var(--emerald) 40%, var(--deep) 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,.5)); }
.frame { position: absolute; inset: 16px; border: 1px solid rgba(212,175,106,.7); z-index: 2; pointer-events: none; }
.frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(212,175,106,.28); }
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: 560px; }
.eyebrow { font-family: var(--font-sans); font-size: .68rem; letter-spacing: .6em; text-transform: uppercase; color: var(--gold); padding-left: .6em; margin: 24px 0 28px; }

.photo-arch {
  position: relative; width: min(250px, 62vw); aspect-ratio: 3 / 4; margin: 0 auto 36px;
  border-radius: 999px 999px 6px 6px; padding: 6px; background: var(--gold-grad);
  box-shadow: 0 0 0 10px rgba(4,38,31,.92), 0 0 0 11px rgba(212,175,106,.7), 0 34px 70px rgba(0,0,0,.65);
}
.photo-arch figure { position: relative; width: 100%; height: 100%; border-radius: 999px 999px 2px 2px; overflow: hidden; background: linear-gradient(160deg, #1a6a55, var(--deep)); display: grid; place-items: center; color: var(--gold-light); font-family: var(--font-sans); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; }
.photo-arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.names { font-family: var(--font-script); font-weight: 400; font-size: clamp(3.8rem, 17vw, 7.2rem); line-height: .95; display: flex; flex-direction: column; align-items: center; }
.names em { font-style: normal; font-size: .46em; padding: .1em 0; line-height: 1; }
.names.small { font-size: clamp(3rem, 11vw, 5rem); flex-direction: row; justify-content: center; align-items: center; gap: .18em; line-height: 1.1; }
.names.small em { font-size: .55em; padding: 0; }
.dateline { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 26px 0 26px; font-family: var(--font-sans); 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(212,175,106,.55); background: rgba(255,255,255,.04); }
.guest-card span { display: block; font-family: var(--font-sans); font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.guest-card b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; line-height: 1.3; color: #fff; margin: 4px 0; }
.guest-card small { display: block; font-size: .78rem; color: rgba(233,226,207,.65); }

/* ============ COUNTDOWN ============ */
.plaques { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.plaque { position: relative; width: 112px; padding: 24px 0 16px; background: linear-gradient(180deg, #fff, #f4ead2); border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(212,175,106,.6), 0 16px 34px rgba(16,36,30,.16); }
.plaque b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.7rem; line-height: 1; color: var(--emerald); }
.plaque span { font-family: var(--font-sans); font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-dark); padding-left: .3em; }
.count-note { margin-top: 40px; font-family: var(--font-script); font-size: 2.6rem; line-height: 1.1; color: var(--gold-dark); }

/* ============ AYAT ============ */
.quote-frame { max-width: 740px; margin: 0 auto; padding: 66px 38px; border: 1px solid rgba(212,175,106,.5); background: rgba(255,255,255,.03); }
.salam { font-family: var(--font-sans); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 14px 0 26px; }
.quote { font-family: var(--font-display); font-size: clamp(1.4rem, 4.2vw, 1.9rem); line-height: 1.7; color: #fff; }
.source { margin-top: 26px; font-family: var(--font-sans); font-size: .68rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); padding-left: .42em; }

/* ============ MEMPELAI ============ */
.couple { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 46px 34px; }
.person { text-align: center; }
.portrait { position: relative; width: min(250px, 70vw); aspect-ratio: 3 / 4; margin: 0 auto; border-radius: 999px 999px 6px 6px; padding: 6px; background: var(--gold-grad); box-shadow: 0 0 0 9px var(--champagne), 0 0 0 10px rgba(143,111,46,.6), 0 26px 50px rgba(16,36,30,.28); }
.portrait figure { position: relative; width: 100%; height: 100%; border-radius: 999px 999px 2px 2px; overflow: hidden; background: linear-gradient(160deg, #1a6a55, var(--deep)); display: grid; place-items: center; color: var(--gold-light); font-family: var(--font-sans); font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate { position: relative; z-index: 2; display: inline-block; margin-top: -24px; padding: 16px 30px 14px; background: linear-gradient(180deg, #fff, #f4ead2); border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(212,175,106,.55), 0 18px 34px rgba(16,36,30,.2); }
.plate h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.2; color: var(--emerald); }
.plate .role { font-family: var(--font-sans); font-size: .58rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-dark); padding-left: .4em; margin-top: 2px; }
.person p.par { margin-top: 18px; color: var(--muted); }

/* ============ JADWAL ============ */
.events { display: grid; gap: 26px; max-width: 800px; margin: 0 auto; }
.event { position: relative; display: grid; grid-template-columns: 116px 1fr; gap: 30px; align-items: center; padding: 38px 36px; border: 1px solid rgba(212,175,106,.55); background: rgba(255,255,255,.04); }
.medal { width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: var(--gold-grad); box-shadow: 0 0 30px rgba(212,175,106,.3); }
.medal div { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #136050, var(--deep)); display: grid; place-content: center; text-align: center; box-shadow: inset 0 0 0 3px rgba(4,38,31,.9), inset 0 0 0 4px rgba(212,175,106,.55); }
.medal b { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; }
.medal span { font-family: var(--font-sans); font-size: .5rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); padding-left: .26em; }
.event h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1.15; color: #fff; }
.event .time { font-family: var(--font-sans); font-size: .76rem; letter-spacing: .28em; color: var(--gold); margin: 4px 0 8px; }
.event p { color: rgba(233,226,207,.72); }
.event .links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }
.live-banner { position: relative; max-width: 800px; margin: 28px auto 0; padding: 36px 38px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; background: linear-gradient(135deg, #f8f1e2, #efe3c8); color: var(--ink); border: 1px solid var(--gold); box-shadow: inset 0 0 0 5px #f8f1e2, inset 0 0 0 6px rgba(143,111,46,.55), 0 24px 50px rgba(0,0,0,.35); }
.live-banner h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.15; color: var(--emerald); }
.live-banner p { color: var(--muted); font-size: 1.02rem; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #d9374a; margin-right: 12px; animation: pulse 1.6s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,55,74,.6); } 50% { box-shadow: 0 0 0 9px rgba(217,55,74,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(212,175,106,.2)); }
.t-item { position: relative; width: 50%; padding: 0 50px 44px 0; }
.t-item:nth-child(even) { margin-left: 50%; padding: 0 0 44px 50px; }
.t-coin { position: absolute; top: -6px; right: -26px; width: 52px; height: 52px; border-radius: 50%; padding: 3px; background: var(--gold-grad); box-shadow: 0 8px 20px rgba(16,36,30,.25); }
.t-coin div { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #136050, var(--deep)); box-shadow: inset 0 0 0 2px rgba(4,38,31,.9), inset 0 0 0 3px rgba(212,175,106,.55); }
.t-coin svg { width: 24px; height: 24px; overflow: visible; }
.t-item:nth-child(even) .t-coin { right: auto; left: -26px; }
.t-box { position: relative; padding: 26px 28px; background: linear-gradient(180deg, #fff, #f7eeda); border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(212,175,106,.5), 0 16px 34px rgba(16,36,30,.12); }
.t-year { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.t-box h3 { font-family: var(--font-sans); font-weight: 400; font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--emerald); margin: 8px 0 8px; }
.t-box p { color: var(--muted); font-size: 1.06rem; line-height: 1.7; }

/* ============ GALERI ============ */
.gallery { columns: 2; column-gap: 14px; }
.g {
  break-inside: avoid; margin-bottom: 14px; width: 100%;
  display: grid; place-items: center; overflow: hidden;
  border: 7px solid transparent; border-image: linear-gradient(135deg, #8f6f2e, #f3dfa8 40%, #d4af6a 60%, #8f6f2e) 1;
  background: linear-gradient(160deg, #1a6a55, var(--deep));
  box-shadow: inset 0 0 0 8px rgba(4,38,31,.92), 0 22px 44px rgba(0,0,0,.4);
  color: var(--gold-light); font-family: var(--font-sans); font-size: .62rem; letter-spacing: .28em; 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: 260px; }
.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(--font-sans); font-size: .72rem; color: rgba(233,226,207,.55); }

.lightbox { position: fixed; inset: 0; z-index: 99; background: rgba(2,18,14,.95); 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 ============ */
.gift-note { text-align: center; max-width: 560px; margin: -36px auto 46px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; max-width: 800px; margin: 0 auto; }
.bankcard { position: relative; overflow: hidden; aspect-ratio: 1.62; padding: 24px 26px; border-radius: 18px; background: radial-gradient(circle at 15% 0%, #15705a, var(--emerald) 45%, var(--deep)); border: 1px solid var(--gold); box-shadow: 0 26px 50px rgba(16,36,30,.38), inset 0 0 0 1px rgba(255,255,255,.08); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.bankcard::before { content: ""; position: absolute; inset: 0; background: var(--damask-gold); opacity: .8; pointer-events: none; }
.bankcard::after { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent); transform: skewX(-20deg); animation: sweep 6s ease-in-out infinite; }
@keyframes sweep { 0%, 55% { left: -60%; } 100% { left: 160%; } }
.bankcard > * { position: relative; z-index: 2; }
.bc-top { display: flex; justify-content: space-between; align-items: center; }
.chip { width: 44px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #f3dfa8, #b8923f); position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.chip::before { content: ""; position: absolute; inset: 6px 8px; border: 1px solid rgba(0,0,0,.28); border-radius: 3px; }
.bc-top strong { font-family: var(--font-sans); font-weight: 400; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }
.bc-no { font-family: var(--font-display); font-size: clamp(1.5rem, 5.4vw, 1.95rem); letter-spacing: .1em; }
.bc-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.bc-bot small { display: block; font-family: var(--font-sans); font-size: .5rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.bc-bot em { font-style: normal; font-size: 1rem; }
.address { max-width: 800px; margin: 28px auto 0; padding: 32px 24px; text-align: center; background: linear-gradient(180deg, #fff, #f7eeda); border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(212,175,106,.5); }
.address b { display: block; font-family: var(--font-sans); font-weight: 400; font-size: .66rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.address p { color: var(--muted); margin-bottom: 16px; }

/* ============ RSVP ============ */
.rsvp-frame { padding: 54px 40px 46px; border: 1px solid rgba(143,111,46,.55); background: rgba(255,255,255,.55); }
.rsvp { display: grid; gap: 28px; }
.field label, .field > span { display: block; font-family: var(--font-sans); 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: 12px 2px; font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(143,111,46,.55); border-radius: 0; outline: none; transition: .3s; }
.rsvp textarea { resize: vertical; line-height: 1.5; }
.rsvp input:focus, .rsvp textarea:focus { border-bottom-color: var(--emerald); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--emerald); }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 14px 4px; text-align: center; font-family: var(--font-sans); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--emerald); cursor: pointer; border-right: 1px solid var(--emerald); transition: .3s; }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--emerald); 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: linear-gradient(180deg, #fff, #f7eeda); border: 1px solid rgba(212,175,106,.7); border-left: 4px solid var(--emerald); }
.wish strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--emerald); }
.wish small { margin-left: 10px; font-family: var(--font-sans); font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-dark); }
.wish p { color: var(--muted); }

/* ============ FOOTER ============ */
.footer { position: relative; text-align: center; padding: 150px 22px 150px; overflow: hidden; background: var(--damask-gold), radial-gradient(circle at 50% 0%, #0f5444, var(--deep) 70%); color: var(--on-dark); }
.footer .frame { inset: 16px; }
.footer-in { position: relative; z-index: 3; max-width: 580px; margin: 0 auto; }
.footer-in > p { color: rgba(233,226,207,.75); }
.copy { font-family: var(--font-display); font-size: 1.3rem; margin-top: 18px; color: var(--gold-light); }
.thanks { margin-top: 22px; font-family: var(--font-sans); font-size: .68rem; letter-spacing: .6em; text-transform: uppercase; color: var(--gold); padding-left: .6em; }
.footer .btn { margin-top: 32px; }

/* ============ DOCK NAVIGASI ============ */
.dock { position: fixed; left: 50%; bottom: 16px; z-index: 50; transform: translate(-50%, 140%); display: flex; gap: 2px; padding: 6px; background: rgba(4,38,31,.9); border: 1px solid rgba(212,175,106,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0,0,0,.45); transition: transform .5s ease; }
.dock.show { transform: translate(-50%, 0); }
.dock a { width: 46px; height: 46px; display: grid; place-items: center; color: rgba(233,226,207,.7); transition: .3s; }
.dock a:hover { background: var(--gold); color: var(--deep); }
.dock svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================================
   HALAMAN LIVE STREAMING — PANGGUNG TEATER
   ===================================================== */
.live-page { position: relative; min-height: 100vh; overflow: hidden; padding: 0 18px 100px; background: var(--damask-gold), radial-gradient(circle at 50% 0%, #136050, var(--deep) 72%); color: var(--on-dark); }
.valance { position: relative; z-index: 6; height: 54px; margin: 0 -18px; background: repeating-linear-gradient(90deg, #0e5240 0 14px, #082f25 14px 28px); border-bottom: 3px solid var(--gold); }
.valance::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; background: radial-gradient(circle at 50% 0, #0a3d31 0 19px, transparent 19.5px), radial-gradient(circle at 50% 0, var(--gold) 0 22px, transparent 22.5px); background-size: 48px 24px; background-repeat: repeat-x; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.live-wrap { position: relative; z-index: 3; max-width: 960px; margin: 0 auto; text-align: center; padding-top: 76px; }
.live-head .eyebrow { margin: 20px 0 14px; }
.live-head .dateline { margin: 16px 0 6px; }
.hello { color: rgba(233,226,207,.72); font-size: 1.02rem; }
.hello b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: #fff; }

.theatre { position: relative; margin: 60px auto 50px; padding: 0 clamp(30px, 8vw, 84px); }
.side { position: absolute; top: -34px; bottom: -22px; width: clamp(34px, 8vw, 84px); z-index: 4; background: repeating-linear-gradient(90deg, #0e5240 0 9px, #082f25 9px 18px); box-shadow: inset 0 0 40px rgba(0,0,0,.55); border-bottom: 3px solid var(--gold); }
.side::after { content: ""; position: absolute; left: 0; right: 0; top: 60%; height: 18px; background: var(--gold-grad); box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.side.l { left: 0; border-right: 2px solid var(--gold); } .side.r { right: 0; border-left: 2px solid var(--gold); }
.proscenium { position: relative; z-index: 3; padding: 20px; background: var(--gold-grad); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 0 90px rgba(212,175,106,.28), 0 40px 90px rgba(0,0,0,.6); }
.proscenium::before, .proscenium::after { content: ""; position: absolute; left: 14px; right: 14px; height: 8px; background: radial-gradient(circle, #fff3c4 0 2.6px, transparent 3.4px) 0 50% / 22px 8px repeat-x; filter: drop-shadow(0 0 5px #ffd978); animation: bulbs 2.4s steps(1) infinite; }
.proscenium::before { top: 6px; } .proscenium::after { bottom: 6px; animation-delay: 1.2s; }
@keyframes bulbs { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.status { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); z-index: 8; display: inline-flex; align-items: center; gap: 10px; padding: 8px 26px; background: var(--deep); border: 1px solid var(--gold); color: var(--gold); font-family: var(--font-sans); font-size: .62rem; letter-spacing: .36em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 0 0 3px var(--deep), inset 0 0 0 4px rgba(212,175,106,.4); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #7d9a8e; display: block; }
.status.live { color: #fff; box-shadow: 0 0 30px rgba(217,55,74,.45), 0 10px 24px rgba(0,0,0,.5), inset 0 0 0 3px var(--deep), inset 0 0 0 4px rgba(212,175,106,.4); }
.status.live i { background: #ff4a5e; animation: pulse 1.6s ease-in-out infinite; }
.status.after i { background: var(--gold); }

.stage { position: relative; aspect-ratio: 16 / 9; background: #02100c; overflow: hidden; box-shadow: 0 0 0 3px var(--deep), inset 0 0 40px rgba(0,0,0,.6); }
.stage-body { position: absolute; inset: 0; }
.stage-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.drape { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.drape .half { position: absolute; top: 0; bottom: 0; width: 51%; transition: transform 2.4s cubic-bezier(.7, 0, .2, 1); background: repeating-linear-gradient(90deg, #0f5744 0 clamp(8px, 2.4vw, 20px), #082f25 clamp(8px, 2.4vw, 20px) clamp(16px, 4.8vw, 40px)); box-shadow: inset 0 0 60px rgba(0,0,0,.55); }
.drape .half::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 35%, transparent 70%, rgba(0,0,0,.4)); }
.drape .l { left: 0; border-right: 2px solid var(--gold); } .drape .r { right: 0; border-left: 2px solid var(--gold); }
.drape.open .l { transform: translateX(-102%); } .drape.open .r { transform: translateX(102%); }
.drape-msg { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 16px; transition: opacity 1s; pointer-events: auto; }
.drape.open .drape-msg { opacity: 0; pointer-events: none; }
.drape-msg h2 { font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.05; }
.drape-msg p { color: rgba(233,226,207,.8); font-size: clamp(.72rem, 2vw, .95rem); max-width: 400px; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.drape-msg .mini-count { display: flex; gap: clamp(12px, 3.4vw, 28px); margin: 6px 0; }
.drape-msg .mini-count div { text-align: center; }
.drape-msg .mini-count b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 6.6vw, 3.2rem); line-height: 1; color: var(--gold-light); text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.drape-msg .mini-count span { font-family: var(--font-sans); font-size: clamp(.46rem, 1.5vw, .6rem); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.plaque { position: relative; z-index: 3; margin-top: 30px; font-family: var(--font-sans); 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: 12px; margin-bottom: 48px; }
.live-info { position: relative; padding: 46px 38px; text-align: left; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; border: 1px solid rgba(212,175,106,.55); background: rgba(255,255,255,.04); }
.live-info h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; margin-bottom: 10px; color: var(--gold-light); }
.live-info ul { list-style: none; }
.live-info li { padding: 12px 0; border-bottom: 1px solid rgba(212,175,106,.3); display: flex; justify-content: space-between; gap: 12px; font-size: 1.05rem; }
.live-info li:last-child { border-bottom: 0; }
.live-info li span { color: rgba(233,226,207,.7); }
.live-info li b { font-family: var(--font-sans); font-weight: 400; font-size: .76rem; letter-spacing: .16em; color: var(--gold); align-self: center; }
.tips li { display: block; color: rgba(233,226,207,.72); }
.live-foot { margin-top: 50px; font-family: var(--font-sans); font-size: .64rem; letter-spacing: .5em; text-transform: uppercase; color: rgba(212,175,106,.7); }

/* ============ RESPONSIF ============ */
@media (min-width: 760px) {
  .gallery { columns: 3; column-gap: 16px; }
  .g { margin-bottom: 16px; }
}
@media (max-width: 650px) {
  .section { padding: 92px 18px; }
  .hero { padding-top: 96px; }
  .frame { inset: 10px; }
  .oc { width: 40px; height: 40px; } .oc.lg { width: 52px; height: 52px; }
  .plaque { width: 76px; padding: 18px 0 12px; }
  .plaque b { font-size: 1.9rem; }
  .plaque span { font-size: .46rem; letter-spacing: .14em; }
  .quote-frame { padding: 54px 22px; }
  .event { grid-template-columns: 84px 1fr; gap: 20px; padding: 32px 22px; }
  .medal { width: 78px; height: 78px; } .medal b { font-size: 2rem; } .medal span { font-size: .42rem; }
  .event .links { grid-column: 1 / -1; }
  .live-banner { padding: 30px 24px; }
  .rsvp-frame { padding: 44px 22px 38px; }
  .proscenium { padding: 14px; }
  .live-info { padding: 40px 24px; }

  /* timeline satu sisi di HP */
  .timeline::before { left: 25px; }
  .t-item, .t-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 36px 66px; }
  .t-coin, .t-item:nth-child(even) .t-coin { left: -1px; right: auto; }
}

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