/* ==========================================================
   TEMPLATE 05 — ROYAL BAROQUE
   Velvet, damask, gilded scrollwork and cameo portraits.
   Bootstrap hanya untuk grid & utility.
   ========================================================== */

:root {
  --wine: #4A0F1C;
  --wine-d: #33070F;
  --wine-l: #7A1426;
  --noir: #22050B;
  --gold: #C8A24B;
  --gold-d: #8C6A1E;
  --gold-l: #F0DC9A;
  --parch: #F3E9D2;
  --ink: #4A2E1E;
  --text: #EADBBB;

  --f-script: 'Great Vibes', 'Snell Roundhand', cursive;
  --f-serif: 'Playfair Display', Georgia, serif;
  --f-caps: 'Cormorant SC', 'Times New Roman', serif;
  --g-gold: linear-gradient(135deg, #8C6A1E 0%, #EBD28A 26%, #B4862C 50%, #F7E9B0 74%, #94701F 100%);
  --folds: repeating-linear-gradient(90deg, #33070F 0, #6B1626 7%, #4A0F1C 12%, #801B2E 17%, #3A0913 24%);

  --col: 480px;
  --vh: 100svh;
  --pad: 1.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scrollbar-gutter: stable; background: #170307; }
body { margin: 0; font-family: var(--f-serif); font-size: .98rem; line-height: 1.7; color: var(--text); background: #170307 url(../assets/textures/damask-wine.svg) 0 0 / 96px; background-blend-mode: soft-light; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; height: var(--vh); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--wine-d); }

.invite { position: relative; width: min(100%, var(--col)); margin-inline: auto; background: var(--wine); overflow: hidden; container-type: inline-size; box-shadow: 0 0 0 1px rgba(200, 162, 75, .5), 0 0 90px #000; }
.fixed-col { position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, var(--col)); margin-left: calc(min(100%, var(--col)) / -2); }
@media (min-width: 992px) {
  .invite { margin-right: 0; }
  .fixed-col { left: auto; right: 0; margin-left: 0; }
}

/* ---------- shared ---------- */
.sec { position: relative; padding: 4.4rem var(--pad) 5rem; overflow: hidden; isolation: isolate; text-align: center; }
.sec > *:not(.deco):not(.frame-b):not(.bg-photo) { position: relative; z-index: 2; }
.sec + .sec { box-shadow: inset 0 2px 0 var(--gold), inset 0 6px 0 rgba(0, 0, 0, .25), inset 0 7px 0 rgba(200, 162, 75, .5); }
.sec::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.s-wine { background: radial-gradient(120% 70% at 50% 0, #63162A, var(--wine) 55%, var(--wine-d)); }
.s-wine::before { background: url(../assets/textures/damask-dark.svg) 0 0 / 84px; opacity: .45; }
.s-noir { background: radial-gradient(120% 70% at 50% 0, #3A0A14, var(--noir) 60%); }
.s-noir::before { background: url(../assets/textures/damask-wine.svg) 0 0 / 84px; opacity: .3; }
.s-parch { background: var(--parch) url(../assets/textures/parchment.svg); color: var(--ink); }
.s-parch::before { background: url(../assets/textures/damask-gold.svg) 0 0 / 84px; opacity: .13; }
.s-photo { background: var(--wine-d); }
.bg-photo { position: absolute; inset: -12% 0; z-index: -2; }
.bg-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.4) saturate(.8); }
.bg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(51, 7, 15, .92), rgba(74, 15, 28, .78) 50%, rgba(51, 7, 15, .95)); }

.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; max-width: none; translate: 0 var(--py, 0px); }
.frame-b { position: absolute; inset: 10px; z-index: 1; pointer-events: none; border: 54px solid transparent; border-image: url(../assets/frames/border-baroque.svg) 150 / 54px stretch; }

.caps { font-family: var(--f-caps); font-weight: 600; font-size: .82rem; letter-spacing: .3em; text-indent: .3em; color: var(--gold-l); }
.caps--ink { color: var(--wine-l); }
.script { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.7rem, 13cqw, 3.4rem); line-height: 1.15; }
.script--ink { color: var(--wine); }
.gilt { background: var(--g-gold) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline: .12em; animation: sheen 10s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.head-crest { width: 210px; margin: 0 auto .9rem; }
.note { max-width: 31ch; margin: .9rem auto 0; }
.note--ink { color: #5E3D2A; }
.divider { width: 240px; margin-inline: auto; }

.btn-r { display: inline-flex; align-items: center; gap: .7rem; padding: .78rem 1.6rem; border: 0; border-radius: 3px; background: var(--g-gold); font-family: var(--f-caps); font-weight: 600; font-size: .88rem; letter-spacing: .18em; color: var(--wine-d); box-shadow: inset 0 0 0 1px #6E5215, inset 0 0 0 3px rgba(255, 248, 214, .45), 0 16px 24px -12px rgba(0, 0, 0, .8); cursor: pointer; transition: transform .5s var(--ease), filter .5s; }
.btn-r i { font-size: .8rem; }
.btn-r:hover { color: var(--wine-d); transform: translateY(-2px); filter: brightness(1.08); }
.btn-r--wine { background: linear-gradient(135deg, #7A1426, #4A0F1C); color: var(--gold-l); box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 4px rgba(51, 7, 15, .6), inset 0 0 0 5px rgba(200, 162, 75, .5), 0 16px 24px -12px rgba(51, 7, 15, .8); }
.btn-r--wine:hover { color: #fff; }
.ig { display: inline-flex; align-items: center; gap: .5rem; padding: .22rem .8rem; border: 1px solid rgba(200, 162, 75, .75); border-radius: 2px; background: transparent; font-family: var(--f-caps); font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--gold-l); cursor: pointer; transition: background .4s, color .4s; }
.ig:hover { background: var(--gold); color: var(--wine-d); }

/* cameo portrait in gilded oval frame */
.cameo { position: relative; display: block; aspect-ratio: 440 / 600; }
.cameo-img { position: absolute; left: 12.4%; top: 14%; width: 75.2%; height: 72%; border-radius: 50%; overflow: hidden; display: block; }
.cameo-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.24) saturate(.88) contrast(1.02); }
.cameo-frame { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .55)); }
.gilded { position: relative; display: block; padding: 6px; background: var(--g-gold); box-shadow: inset 0 0 0 1px #6E5215, 0 18px 26px -14px rgba(0, 0, 0, .8); }
.gilded img { width: 100%; object-fit: cover; outline: 2px solid var(--wine-d); outline-offset: -1px; filter: sepia(.22) saturate(.9); }
.illum { float: left; width: 3.1rem; height: 3.1rem; margin: .25rem .7rem .1rem 0; display: grid; place-items: center; background: var(--wine) url(../assets/textures/damask-dark.svg) center / 40px; border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 2px; font-family: var(--f-serif); font-style: normal; font-size: 2.1rem; line-height: 1; color: var(--gold-l); }
.ribbon { width: 108%; margin-inline: -4%; }
.ribbon img { width: 100%; }
.ribbon span { position: absolute; inset: 0 0 12%; display: grid; place-items: center; font-family: var(--f-caps); font-weight: 600; font-size: clamp(.82rem, 4cqw, 1rem); letter-spacing: .14em; color: var(--wine); }

/* ---------- reveal ---------- */
[data-reveal] { transition: opacity 1.2s ease, transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px); }
[data-reveal="zoom"]:not(.is-in) { transform: scale(.9); }
[data-reveal="fade"]:not(.is-in) { transform: none; }

/* ==========================================================
   COVER — velvet curtains & plaque
   ========================================================== */
.cover { z-index: 1000; overflow: hidden; container-type: size; }
.curtain { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--folds); box-shadow: inset 0 90px 90px -40px rgba(0, 0, 0, .7), inset 0 -60px 60px -40px rgba(0, 0, 0, .5); transition: transform 1.7s cubic-bezier(.7, 0, .2, 1) .45s; }
.curtain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(90deg, #C8A24B 0 3px, #8C6A1E 3px 5px); border-top: 4px solid #EBD28A; }
.curtain--l { left: 0; border-right: 4px solid #B4862C; }
.curtain--r { right: 0; border-left: 4px solid #B4862C; }
.valance { position: absolute; left: 0; right: 0; top: 0; height: 58px; background: radial-gradient(ellipse 40px 50px at 50% 0, #5A1120 0 92%, #EBD28A 93% 99%, transparent 100%) 0 0 / 80px 58px repeat-x; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .5)); transition: transform 1.2s var(--ease) .5s; }
.cover-body { position: absolute; inset: 0; display: grid; place-items: center; padding: 3rem 1.3rem 1.6rem; transition: opacity .6s ease, transform .8s var(--ease); }
.cover.is-opening { pointer-events: none; }
.cover.is-opening .cover-body { opacity: 0; transform: scale(.9); }
.cover.is-opening .curtain--l { transform: translateX(-103%) skewX(5deg); }
.cover.is-opening .curtain--r { transform: translateX(103%) skewX(-5deg); }
.cover.is-opening .valance { transform: translateY(-110%); }
.plaque { position: relative; width: 100%; max-width: 372px; padding: clamp(2.4rem, 7cqh, 3.6rem) 1.8rem clamp(1.8rem, 5cqh, 2.6rem); text-align: center; color: var(--ink); background: var(--parch) url(../assets/textures/parchment.svg); box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px var(--wine-d), 0 0 0 6px rgba(200, 162, 75, .6), 0 40px 60px -10px rgba(0, 0, 0, .8); }
.plaque > *:not(.frame-b):not(.plaque-seal) { position: relative; z-index: 2; }
.plaque .frame-b { inset: 6px; border-width: 46px; border-image-width: 46px; }
.plaque-crown { width: 70px; margin: 0 auto .5rem; }
.plaque-cameo { width: min(47%, calc(26cqh * .733)); margin: .7rem auto .3rem; }
.plaque-names { font-family: var(--f-script); font-size: clamp(2.6rem, 13cqw, 3.5rem); line-height: 1.15; color: var(--wine); }
.plaque-names span { color: var(--gold-d); font-size: .7em; }
.plaque-guest { margin-top: clamp(.6rem, 2cqh, 1.1rem); display: flex; flex-direction: column; }
.plaque-guest span { font-style: italic; font-size: .84rem; }
.plaque-guest strong { font-weight: 500; font-size: 1.2rem; color: var(--wine); line-height: 1.3; }
.plaque .btn-r { margin-top: clamp(.7rem, 2.2cqh, 1.2rem); }
.plaque-seal { position: absolute; z-index: 3; right: -12px; bottom: -22px; width: 76px; rotate: 14deg; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
.cv { animation: cvIn 1.3s var(--ease) both; animation-delay: calc(.3s + var(--i) * .13s); }
@keyframes cvIn { from { opacity: 0; transform: translateY(16px); } }

/* ==========================================================
   HERO
   ========================================================== */
.hero { padding-top: 3.6rem; padding-bottom: 5.6rem; }
.hero-acan { width: 62%; opacity: .45; bottom: -2%; }
.hero-acan--l { left: -18%; }
.hero-acan--r { right: -18%; scale: -1 1; }
.hero-crest { width: 250px; margin: 0 auto 1rem; }
.hero-names { display: flex; justify-content: center; align-items: baseline; gap: .3rem; margin-top: .6rem; font-family: var(--f-script); font-size: clamp(3.4rem, 17cqw, 4.7rem); line-height: 1.2; white-space: nowrap; }
.hero-names i { font-family: var(--f-serif); font-size: .34em; color: var(--gold-l); }
.hero-cameo { width: 78%; margin: 3.4rem auto 0; }
.cameo-crown { position: absolute; z-index: 3; left: 50%; top: -11%; width: 27%; margin-left: -13.5%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
.kenburns { animation: kb 22s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.13); } }
.hero .ribbon { margin-top: -1.2rem; }
.hero-note { margin-top: .8rem; font-style: italic; line-height: 1.6; color: var(--gold-l); }

/* ==========================================================
   QUOTE
   ========================================================== */
.quote { padding: 5.4rem 2.9rem 5.2rem; }
.quote-fleur { width: 44px; margin: 0 auto 1.2rem; }
.quote blockquote { margin: 0 0 1.4rem; text-align: left; font-size: clamp(1.4rem, 6.6cqw, 1.65rem); line-height: 1.42; color: var(--wine); }
.quote-verse { margin: 1.3rem 0 1rem; font-size: .94rem; font-style: italic; }

/* ==========================================================
   COUPLE — twin cameos
   ========================================================== */
.twins { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .4rem; margin: 1.8rem -.6rem 0; }
.twin .caps { margin-top: .5rem; font-size: .72rem; }
.twin .script { font-size: clamp(1.5rem, 7.5cqw, 2rem); margin: .1rem 0 .2rem; white-space: nowrap; }
.twin p:not(.caps) { font-size: .8rem; line-height: 1.5; margin-bottom: .8rem; }
.twins-amp { position: absolute !important; z-index: 4 !important; left: 50%; top: 19%; width: 60px; height: 60px; margin-left: -30px; display: grid; place-items: center; }
.twins-amp img { grid-area: 1 / 1; width: 100%; animation: spin 60s linear infinite; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.twins-amp b { grid-area: 1 / 1; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--wine-d); font-family: var(--f-script); font-weight: 400; font-size: 1.2rem; line-height: 1; color: var(--gold-l); }

/* ==========================================================
   EVENT — decree scrolls
   ========================================================== */
.decree { max-width: 344px; margin: 2.4rem auto 0; }
.decree-roll { position: relative; z-index: 2; height: 22px; margin: 0 -12px; border-radius: 11px; background: linear-gradient(#8C6A1E, #F3E3B3 32%, #C8A24B 58%, #7A5A18); box-shadow: 0 8px 12px rgba(0, 0, 0, .55); }
.decree-roll::before, .decree-roll::after { content: ""; position: absolute; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #B02A40, #5A0E1C); box-shadow: 0 0 0 2px #B4862C; }
.decree-roll::before { left: -9px; } .decree-roll::after { right: -9px; }
.decree-body { position: relative; padding: 1.9rem 1.3rem 2.2rem; background: var(--parch) url(../assets/textures/parchment.svg); color: var(--ink); box-shadow: inset 0 18px 18px -14px rgba(90, 50, 10, .6), inset 0 -18px 18px -14px rgba(90, 50, 10, .6); }
.decree-fleur { width: 32px; margin: 0 auto .5rem; }
.decree .script { font-size: 3rem; color: var(--wine); line-height: 1.1; }
.decree-date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: .4rem; }
.decree-date span { padding: .3rem 0; border-block: 1px solid var(--gold); font-family: var(--f-caps); font-weight: 600; font-size: .9rem; letter-spacing: .12em; }
.decree-date strong { padding: 0 .8rem; font-weight: 500; font-size: 3.4rem; line-height: 1; color: var(--wine); font-variant-numeric: lining-nums; }
.decree-time { margin-top: .7rem; font-family: var(--f-caps); font-weight: 600; font-size: .98rem; letter-spacing: .1em; color: var(--wine-l); }
.decree-place { margin-top: .5rem; font-style: italic; font-size: 1.3rem; line-height: 1.25; color: var(--wine); }
.decree-addr { max-width: 26ch; margin: .2rem auto 1.1rem; font-size: .86rem; line-height: 1.5; }
.decree-seal { position: absolute; z-index: 3; right: -8px; bottom: -24px; width: 72px; rotate: 14deg; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }

/* ==========================================================
   COUNTDOWN — coins
   ========================================================== */
.coins { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin: 1.6rem -.3rem 2rem; }
.coin { aspect-ratio: 1; display: grid; place-content: center; background: url(../assets/frames/round-gilded.svg) center / 100% no-repeat, radial-gradient(circle, #5A1120 0 58%, transparent 60%); filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .5)); }
.coin strong { font-weight: 500; font-size: clamp(1.5rem, 7.4cqw, 1.9rem); line-height: 1; color: var(--gold-l); font-variant-numeric: lining-nums tabular-nums; }
.coin span { font-family: var(--f-caps); font-weight: 600; font-size: .64rem; letter-spacing: .14em; color: var(--gold); }

/* ==========================================================
   STORY — illuminated tale
   ========================================================== */
.tale { margin-top: 2.6rem; }
.tale-no { display: flex; align-items: center; gap: .8rem; }
.tale-no span { font-family: var(--f-caps); font-weight: 600; font-size: .86rem; letter-spacing: .18em; color: var(--wine-l); }
.tale-no i { flex: 1; height: 4px; border-block: 1px solid var(--gold); }
.tale .gilded { margin: 1rem 0 1.1rem; }
.tale .gilded img { aspect-ratio: 16 / 10; }
.tale h3 { font-style: italic; font-size: 1.55rem; line-height: 1.2; color: var(--wine); margin-bottom: .5rem; }
.tale p:not(.tale-no) { text-align: left; font-size: .95rem; line-height: 1.65; }
.story .divider { margin-top: 2.6rem; }

/* ==========================================================
   GALLERY — salon wall
   ========================================================== */
.salon { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 12px; align-items: center; margin-top: 2rem; }
.ph { cursor: zoom-in; }
.ph img { transition: filter .8s; }
.ph:hover img { filter: none; }
.g1 { grid-column: 1 / 5; } .g1 img { aspect-ratio: 4 / 4.6; }
.g2 { grid-column: 5 / 7; } .g2 img { aspect-ratio: 2 / 3.3; }
.g3 { grid-column: 1 / 4; } .g3 img { aspect-ratio: 1; }
.g4 { grid-column: 4 / 7; }
.g5 { grid-column: 1 / 7; } .g5 img { aspect-ratio: 16 / 8.6; }
.g6 { grid-column: 1 / 3; } .g7 { grid-column: 3 / 5; } .g8 { grid-column: 5 / 7; }
.g6 img, .g7 img, .g8 img { aspect-ratio: 2 / 2.9; }
.plate { display: inline-block; margin-top: 2rem; padding: .3rem 1.3rem; border-radius: 2px; background: var(--g-gold); box-shadow: inset 0 0 0 1px #6E5215, 0 8px 12px -6px #000; font-family: var(--f-caps); font-weight: 600; font-size: .82rem; letter-spacing: .16em; color: var(--wine-d); }

/* ==========================================================
   VIDEO — the stage
   ========================================================== */
.stage { position: relative; display: block; width: 100%; margin-top: 1.8rem; padding: 0; border: 0; background: #170307; overflow: hidden; box-shadow: 0 0 0 3px #B4862C, 0 0 0 4px #F3E3B3, 0 0 0 7px #8C6A1E, 0 30px 40px -18px #000; cursor: pointer; }
.stage-img { display: block; aspect-ratio: 16 / 11.5; }
.stage-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.3) saturate(.85) brightness(.82); }
.stage-drape { position: absolute; top: 0; bottom: 0; width: 19%; background: var(--folds); background-size: 220% 100%; box-shadow: inset 0 40px 40px -20px rgba(0, 0, 0, .7); transition: transform 1.2s var(--ease); }
.stage-drape--l { left: 0; border-radius: 0 0 100% 0 / 0 0 34% 0; }
.stage-drape--r { right: 0; border-radius: 0 0 0 100% / 0 0 0 34%; }
.stage:hover .stage-drape--l { transform: translateX(-30%); }
.stage:hover .stage-drape--r { transform: translateX(30%); }
.stage-valance { position: absolute; left: 0; right: 0; top: 0; height: 30px; background: radial-gradient(ellipse 22px 26px at 50% 0, #5A1120 0 90%, #EBD28A 91% 98%, transparent 100%) 0 0 / 44px 30px repeat-x; }
.stage-play { position: absolute; left: 50%; top: 52%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border-radius: 50%; background: var(--g-gold); color: var(--wine-d); font-size: 1rem; padding-left: 4px; box-shadow: inset 0 0 0 1px #6E5215, inset 0 0 0 4px rgba(255, 248, 214, .4), 0 0 0 8px rgba(51, 7, 15, .45); }
.video .note { font-style: italic; margin-top: 1.5rem; }

/* ==========================================================
   LIVE
   ========================================================== */
.live { padding-block: 3.8rem 4.2rem; }
.live-crown { width: 84px; margin: 0 auto .8rem; }
.live .caps { margin: 1rem 0 1.3rem; font-size: .8rem; letter-spacing: .2em; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: .3rem; border-radius: 50%; background: #E0485E; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ==========================================================
   RSVP — the letter
   ========================================================== */
.letter { margin-top: 2.4rem; padding: 3.1rem 2rem 2.6rem; text-align: left; background: #FBF4E2 url(../assets/textures/parchment.svg); background-blend-mode: soft-light; box-shadow: 0 0 0 1px rgba(200, 162, 75, .7), 0 28px 40px -22px rgba(60, 20, 10, .7); }
.letter .frame-b { inset: 5px; border-width: 40px; border-image-width: 40px; }
.letter > form, .letter > .rsvp-done { position: relative; z-index: 2; }
.letter-seal { position: absolute; z-index: 3; right: -10px; top: -26px; width: 74px; rotate: 12deg; filter: drop-shadow(0 6px 6px rgba(60, 20, 10, .5)); }
.lbl { display: block; margin-bottom: .2rem; font-family: var(--f-caps); font-weight: 600; font-size: .88rem; letter-spacing: .16em; color: var(--wine-l); }
.fld { width: 100%; padding: .35rem 0; border: 0; border-bottom: 1px solid rgba(122, 20, 38, .45); border-radius: 0; background: transparent; font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--ink); outline: 0; transition: border-color .4s, box-shadow .4s; }
.fld::placeholder { color: rgba(74, 46, 30, .4); }
.fld:focus { border-color: var(--gold-d); box-shadow: 0 1px 0 var(--gold-d); }
.fld.is-invalid { border-color: #B02A40; box-shadow: 0 1px 0 #B02A40; }
textarea.fld { resize: none; padding: .6rem .8rem; border: 1px solid rgba(122, 20, 38, .4); line-height: 1.5; }
.choice { display: flex; gap: .4rem; }
.choice label { flex: 1; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: .45rem .1rem; border: 1px solid var(--gold); text-align: center; font-family: var(--f-caps); font-weight: 600; font-size: .82rem; letter-spacing: .04em; white-space: nowrap; transition: background .4s, color .4s; }
.choice input:checked + span { background: linear-gradient(135deg, #7A1426, #4A0F1C); border-color: var(--wine); color: var(--gold-l); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-d); outline-offset: 2px; }
.stepper { display: flex; align-items: center; gap: .3rem; }
.stepper button { width: 38px; height: 38px; border: 1px solid var(--gold); background: transparent; font-size: 1.2rem; line-height: 1; color: var(--wine); transition: background .3s, color .3s; }
.stepper button:hover { background: var(--wine); color: var(--gold-l); }
.stepper output { width: 3rem; text-align: center; font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--wine); font-variant-numeric: lining-nums; }
.stepper em { margin-left: .3rem; }
.rsvp-done { text-align: center; animation: cvIn 1s var(--ease) both; }
.rsvp-done img { width: 74px; margin: 0 auto .4rem; }
.rsvp-done p { max-width: 27ch; margin: .3rem auto 1rem; }
.link-btn { border: 0; background: none; font-style: italic; color: var(--wine-l); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   WISHES — ledger
   ========================================================== */
.ledger { list-style: none; margin: 1.8rem 0 0; padding: 0 .7rem 0 0; max-height: 490px; overflow-y: auto; text-align: left; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.entry { position: relative; padding: 1.05rem 0 1.05rem 2.1rem; border-bottom: 3px double rgba(200, 162, 75, .5); }
.entry::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 20px; height: 23px; background: url(../assets/ornaments/fleur.svg) center / contain no-repeat; }
.entry.is-new { animation: cvIn 1s var(--ease) both; }
.entry-name { font-family: var(--f-caps); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; color: var(--gold-l); line-height: 1.3; }
.tag { margin-left: .3rem; padding: 0 .45rem; border: 1px solid var(--gold); font-style: normal; font-size: .7rem; letter-spacing: .1em; color: var(--gold); vertical-align: middle; }
.tag--no { border-color: #D98A96; color: #E9A6B0; } .tag--maybe { border-color: #BDB08A; color: #D6CBA8; }
.entry-text { margin-top: .25rem; font-style: italic; font-size: .96rem; line-height: 1.55; }
.entry-time { margin-top: .3rem; font-family: var(--f-caps); font-size: .76rem; letter-spacing: .1em; opacity: .6; }

/* ==========================================================
   GIFT
   ========================================================== */
.royal-card { position: relative; overflow: hidden; display: flex; flex-direction: column; max-width: 336px; aspect-ratio: 1.586; margin: 2.2rem auto 0; padding: 1.1rem 1.3rem 1rem; border-radius: 10px; text-align: left; background: linear-gradient(135deg, #7A1426, #4A0F1C 60%, #33070F); box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 5px var(--wine-d), inset 0 0 0 6px rgba(200, 162, 75, .55), 0 34px 40px -20px #000; }
.royal-card::before { content: ""; position: absolute; inset: 0; background: url(../assets/textures/damask-dark.svg) 0 0 / 56px; opacity: .5; }
.royal-card > * { position: relative; }
.royal-card-crown { position: absolute !important; width: 170px; right: -34px; top: 22%; opacity: .16; }
.royal-card-top { display: flex; justify-content: space-between; align-items: center; }
.royal-card .caps { font-size: .7rem; letter-spacing: .2em; text-indent: 0; }
.royal-card-top b { font-weight: 500; font-size: 1.55rem; letter-spacing: .12em; line-height: 1; }
.royal-card-no { margin-top: auto; align-self: flex-start; font-weight: 500; font-size: clamp(1.45rem, 7.2cqw, 1.75rem); letter-spacing: .1em; line-height: 1.3; font-variant-numeric: lining-nums; }
.royal-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.royal-card-bottom p { font-size: 1rem; line-height: 1.3; color: var(--parch); }
.royal-card-bottom .caps { display: block; }
.send { margin-top: 2.8rem; }
.send img { width: 34px; margin: 0 auto .2rem; }
.send .script { font-size: 2.6rem; }
.send p { max-width: 29ch; margin: .2rem auto 1.3rem; font-size: .95rem; }

/* ==========================================================
   LOCATION
   ========================================================== */
.globe { width: 78%; aspect-ratio: 1; margin: 2rem auto 0; }
.globe-map { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; }
.globe-map img { width: 100%; height: 100%; object-fit: cover; }
.globe-frame { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 14px 16px rgba(60, 20, 10, .5)); }
.globe-pin { position: absolute; left: 50%; top: 50%; width: 54px; margin: -27px 0 0 -27px; filter: drop-shadow(0 6px 6px rgba(60, 20, 10, .5)); animation: pin 3s ease-in-out infinite; }
@keyframes pin { 50% { transform: translateY(-6px); } }
.globe-venue { position: absolute !important; width: 40%; right: -13%; bottom: -12%; }
.ribbon--venue { margin-top: 1.8rem; }
.location .btn-r { margin-top: 1.3rem; }

/* ==========================================================
   CLOSING + FOOTER
   ========================================================== */
.closing { min-height: max(var(--vh), 720px); padding: 5rem 2.7rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.closing-crest { width: 240px; margin-bottom: .6rem; }
.closing-title { font-family: var(--f-script); font-size: clamp(4.4rem, 22cqw, 5.8rem); line-height: 1.15; }
.closing-sub { font-style: italic; font-size: 1.2rem; color: var(--gold-l); }
.closing-names { margin: 1.4rem 0 .2rem; font-family: var(--f-script); font-size: 2.8rem; line-height: 1.2; }
.closing-seal { width: 78px; margin-top: 1.5rem; }

.footer { position: relative; padding: 3.4rem var(--pad) 7rem; text-align: center; background: #170307; border-top: 2px solid var(--gold); }
.footer-crown { width: 64px; margin: 0 auto .6rem; }
.footer-names { font-family: var(--f-script); font-size: 2.5rem; line-height: 1.2; }
.footer .caps { margin: .2rem 0 1.2rem; }
.footer-credit { margin-top: 1.2rem; font-size: .78rem; font-style: italic; opacity: .5; }

/* ==========================================================
   FLOATING UI
   ========================================================== */
.ui { z-index: 800; pointer-events: none; opacity: 0; transition: opacity 1.2s ease 1.2s; }
body.is-open .ui { opacity: 1; }
.ui > * { pointer-events: auto; }
.dock { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: .1rem; padding: .3rem .4rem; border-radius: 999px; background: rgba(34, 5, 11, .94); box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px rgba(34, 5, 11, .8), 0 0 0 5px rgba(200, 162, 75, .5), 0 16px 26px -10px #000; }
.dock a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #B99B62; transition: background .4s, color .4s; }
.dock a.is-active { background: var(--g-gold); color: var(--wine-d); }
.fab { position: absolute; right: 12px; width: 50px; height: 50px; display: grid; place-items: center; border: 0; background: url(../assets/ornaments/seal.svg) center / 100% no-repeat; color: var(--gold-l); font-size: .82rem; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .6)); transition: opacity .5s, transform .5s var(--ease), visibility .5s; }
.fab--music { bottom: 76px; }
.fab--music.is-playing { animation: spin 14s linear infinite; }
.fab--music:not(.is-playing) i { opacity: .5; }
.fab--top { bottom: 134px; opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab--top.is-show { opacity: 1; visibility: visible; transform: none; }
.toast-inv { position: absolute; left: 50%; bottom: 78px; translate: -50% 0; width: max-content; max-width: 74%; padding: .5rem 1.1rem; border-radius: 3px; background: var(--parch); box-shadow: 0 0 0 1px var(--gold), 0 12px 20px -8px #000; color: var(--wine); font-style: italic; font-size: .92rem; line-height: 1.35; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none !important; }
.toast-inv.is-show { opacity: 1; transform: none; }
.grain { position: fixed; inset: 0; z-index: 3000; pointer-events: none; background: url(../assets/textures/velvet.svg) 0 0 / 300px; opacity: .22; mix-blend-mode: multiply; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(23, 3, 7, .96); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-fig { margin: 0; text-align: center; }
.lb-media { display: inline-block; padding: 8px; background: var(--g-gold); box-shadow: inset 0 0 0 1px #6E5215, 0 30px 50px -20px #000; }
.lb-media img { max-width: min(84vw, 880px); max-height: 70vh; outline: 2px solid var(--wine-d); outline-offset: -1px; }
.lb-media iframe { display: block; width: min(90vw, 940px); aspect-ratio: 16 / 9; border: 0; background: #000; }
.lb-fig figcaption { margin-top: .8rem; }
.lb-cap { display: block; font-family: var(--f-script); font-size: 2rem; line-height: 1.2; color: var(--gold-l); }
.lb-count { display: block; font-family: var(--f-caps); font-size: .8rem; letter-spacing: .3em; color: var(--gold); }
.lb-btn { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: var(--wine-d); color: var(--gold-l); display: grid; place-items: center; transition: background .3s, color .3s; }
.lb-btn:hover { background: var(--gold); color: var(--wine-d); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 10px; top: 50%; translate: 0 -50%; } .lb-next { right: 10px; top: 50%; translate: 0 -50%; }
.lightbox.is-video .lb-prev, .lightbox.is-video .lb-next, .lightbox.is-video figcaption { display: none; }

/* desktop side */
.side { position: fixed; left: 0; top: 0; bottom: 0; width: calc(100% - var(--col)); align-items: center; justify-content: center; text-align: center; overflow: hidden; background: radial-gradient(90% 70% at 50% 40%, #63162A, var(--wine) 50%, var(--wine-d)); }
.side::before { content: ""; position: absolute; inset: 0; background: url(../assets/textures/damask-dark.svg) 0 0 / 120px; opacity: .45; }
.side .frame-b { inset: 24px; border-width: 90px; border-image-width: 90px; }
.side-body { position: relative; z-index: 2; }
.side-crown { width: 120px; margin: 0 auto 1.2rem; }
.side-names { font-family: var(--f-script); font-size: clamp(4rem, 7.4vw, 8rem); line-height: 1.25; margin: .4rem 0 .6rem; }
.side .divider { width: 300px; margin-bottom: 1rem; }

@media (max-width: 374px) {
  :root { --pad: 1.2rem; }
  .quote { padding-inline: 2.5rem; }
  .letter { padding-inline: 1.7rem; }
  .twin p:not(.caps) { font-size: .76rem; }
  .dock a { width: 35px; height: 35px; }
}
.is-shot .ui, .is-shot .grain { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  [data-reveal] { transition-duration: .01s; }
}
