/* ==========================================================
   TEMPLATE 02 — GATSBY NOIR (Art Deco)
   Onyx · Emerald · Brass. Bootstrap hanya untuk grid & utility.
   ========================================================== */

:root {
  --onyx: #0D0E11;
  --ink: #15171C;
  --em: #0F3A32;
  --em-d: #0A2A24;
  --gold: #C9A45C;
  --gold-d: #9E7B3A;
  --gold-l: #EADBB6;
  --ivory: #F4EEDD;
  --champ: #E9DCB9;
  --text: #CFC8B4;

  --f-display: 'Poiret One', 'Josefin Sans', sans-serif;
  --f-sans: 'Josefin Sans', system-ui, sans-serif;
  --f-serif: 'Playfair Display', Georgia, serif;

  --col: 480px;
  --vh: 100svh;
  --pad: 1.6rem;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --sky: polygon(0 100%, 0 20%, 9% 20%, 9% 11%, 20% 11%, 20% 4.5%, 34% 4.5%, 34% 0, 66% 0, 66% 4.5%, 80% 4.5%, 80% 11%, 91% 11%, 91% 20%, 100% 20%, 100% 100%);
}

html { scrollbar-gutter: stable; background: #08090B; }
body {
  margin: 0; font-family: var(--f-sans); font-weight: 300; font-size: 1rem; line-height: 1.7;
  color: var(--text); background: #08090B url(../assets/ornaments/scallop.svg) 0 0 / 46px;
  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(--onyx); }

.invite { position: relative; width: min(100%, var(--col)); margin-inline: auto; background: var(--onyx); overflow: hidden; container-type: inline-size; box-shadow: 0 0 0 1px rgba(201, 164, 92, .35), 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; }
}

/* ---------- helpers ---------- */
.cut { clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.gold {
  background: linear-gradient(100deg, #9E7B3A 0%, #EADBB6 28%, #C9A45C 50%, #F3E7C6 72%, #9E7B3A 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen { to { background-position: -220% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.sec { position: relative; padding: 5rem var(--pad); overflow: hidden; isolation: isolate; text-align: center; }
.sec > *:not(.deco):not(.deco-frame):not(.bg-photo):not(.hero-photo) { position: relative; z-index: 2; }
.sec + .sec { box-shadow: inset 0 1px 0 var(--gold), inset 0 5px 0 rgba(0, 0, 0, .25), inset 0 6px 0 rgba(201, 164, 92, .4); }
.s-onyx { background: var(--onyx); }
.s-onyx::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../assets/textures/marble.svg) 0 0 / 600px; opacity: .38; }
.s-em { background: radial-gradient(130% 70% at 50% 0, #17564A, var(--em) 55%, var(--em-d)); }
.s-em::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../assets/ornaments/scallop.svg) 0 0 / 44px; opacity: .13; -webkit-mask-image: linear-gradient(#000, transparent 45%, transparent 60%, #000); mask-image: linear-gradient(#000, transparent 45%, transparent 60%, #000); }
.s-champ { background: linear-gradient(170deg, #F1E7C8, #E0CE9E); color: #33403B; }
.s-champ::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../assets/ornaments/scallop-dark.svg) 0 0 / 44px; opacity: .1; }
.s-photo { background: var(--onyx); }
.bg-photo { position: absolute; inset: -12% 0; z-index: -2; }
.bg-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.bg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13, 14, 17, .95), rgba(13, 14, 17, .84) 50%, rgba(13, 14, 17, .96)); }

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

.eyebrow { display: block; font-weight: 600; font-size: .6rem; letter-spacing: .52em; text-indent: .52em; text-transform: uppercase; color: var(--gold); }
.eyebrow--dark { color: var(--em); }
.title { font-family: var(--f-display); font-size: clamp(2rem, 9.6cqw, 2.6rem); line-height: 1.15; letter-spacing: .16em; text-indent: .16em; text-transform: uppercase; margin: .7rem 0 1rem; white-space: nowrap; }
.title--dark { color: var(--em); -webkit-text-stroke: .5px var(--em); }
.divider { width: 236px; margin-inline: auto; }
.lead { max-width: 33ch; margin: 1.2rem auto 0; font-size: .98rem; }
.lead--dark { color: #33403B; font-weight: 400; }
.roman { font-weight: 400; font-size: .64rem; letter-spacing: .42em; text-indent: .42em; text-transform: uppercase; color: var(--gold-l); }

.btn-d { display: inline-block; padding: 1px; border: 0; background: linear-gradient(120deg, var(--gold-d), var(--gold-l), var(--gold-d)); --c: 11px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); cursor: pointer; }
.btn-d span { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.6rem .9rem; background: var(--onyx); clip-path: inherit; font-weight: 600; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-l); transition: background .5s, color .5s; }
.btn-d i { font-size: .8rem; color: var(--gold); transition: color .5s; }
.btn-d:hover span { background: transparent; color: var(--onyx); }
.btn-d:hover i { color: var(--onyx); }
.btn-d--ink { background: var(--onyx); }
.btn-d--ink:hover span { background: var(--em); color: var(--gold-l); }
.btn-d--ink:hover i { color: var(--gold); }

.chip { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem .45rem; border: 1px solid rgba(201, 164, 92, .7); background: transparent; font-weight: 600; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-l); transition: background .4s, color .4s; }
.chip:hover { background: var(--gold); color: var(--onyx); }

/* skyline photo */
.sky { position: relative; }
.sky-img { aspect-ratio: 3 / 4; clip-path: var(--sky); overflow: hidden; }
.sky-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.sky-line { position: absolute; left: -9px; top: -9px; width: calc(100% + 18px); height: calc(100% + 18px); max-width: none; }

/* monogram */
.mono { position: relative; width: 112px; height: 112px; margin: 0 auto 1.4rem; display: grid; grid-auto-flow: column; place-content: center; align-items: center; gap: .7rem; }
.mono::before, .mono::after { content: ""; position: absolute; inset: 17px; border: 1px solid var(--gold); transform: rotate(45deg); }
.mono::after { inset: 9px; border-color: rgba(201, 164, 92, .35); }
.mono span { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; color: var(--gold-l); }
.mono i { width: 1px; height: 30px; background: var(--gold); }
.mono--sm { transform: scale(.86); }

/* ---------- reveal ---------- */
[data-reveal] { transition: opacity 1s ease, transform 1.2s var(--ease), clip-path 1.4s var(--ease), letter-spacing 1.8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="wipe"] { clip-path: inset(-70px); }
[data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
[data-reveal="fade"]:not(.is-in) { transform: none; }
[data-reveal="wipe"]:not(.is-in) { transform: none; clip-path: inset(0 50% 0 50%); }
[data-reveal="track"]:not(.is-in) { transform: none; letter-spacing: .7em; }
[data-reveal="line"]:not(.is-in) { transform: scaleX(0); }
[data-reveal="track"] { white-space: nowrap; }

/* ==========================================================
   COVER — the curtain
   ========================================================== */
.cover { z-index: 1000; overflow: hidden; container-type: size; background: var(--onyx); box-shadow: 0 30px 60px #000; transition: translate 1.7s cubic-bezier(.76, 0, .24, 1); }
.cover::before { content: ""; position: absolute; inset: 0; background: url(../assets/textures/marble.svg) 0 0 / 600px; opacity: .4; }
.cover.is-opening { translate: 0 -104%; pointer-events: none; }
.cover-sun { width: 190%; left: -45%; top: 4%; opacity: .13; animation: spin 140s linear infinite; }
.cover-rise { width: 136%; left: -18%; bottom: 14px; opacity: .5; }
.cover-hem { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: url(../assets/ornaments/chevron.svg) 0 0 / 28px 14px repeat-x; border-bottom: 2px solid var(--gold); }
.cover-body { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.4rem 2rem 3.4rem; text-align: center; }
.cover-crest { width: 112px; margin-bottom: .8rem; }
.cover-sky { width: min(44%, calc(29cqh * .75)); margin: clamp(1.2rem, 3.4cqh, 2rem) 0 clamp(1rem, 3cqh, 1.7rem); }
.cover-names { display: flex; flex-direction: column; align-items: center; font-family: var(--f-display); font-size: clamp(2.5rem, 13.5cqw, 3.5rem); line-height: 1.05; letter-spacing: .24em; text-indent: .24em; text-transform: uppercase; }
.cover-names em, .closing-names em { font-family: var(--f-serif); font-size: 1.25rem; letter-spacing: 0; text-indent: 0; color: var(--gold); display: flex; align-items: center; gap: .8rem; text-transform: none; }
.cover-names em::before, .cover-names em::after { content: ""; width: 46px; height: 1px; background: var(--gold); opacity: .7; }
.cover .roman { margin-top: .7rem; }
.cover-guest { margin-top: clamp(.9rem, 3cqh, 1.6rem); display: flex; flex-direction: column; }
.cover-guest span { font-size: .78rem; letter-spacing: .06em; }
.cover-guest strong { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; letter-spacing: .1em; color: var(--ivory); line-height: 1.3; }
.cover .btn-d { margin-top: clamp(.9rem, 2.6cqh, 1.4rem); }
.cv { animation: cvIn 1.2s var(--ease) both; animation-delay: calc(.3s + var(--i) * .13s); }
@keyframes cvIn { from { opacity: 0; transform: translateY(16px); } }

/* ==========================================================
   HERO
   ========================================================== */
.hero { min-height: max(var(--vh), 760px); padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.hero-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.1); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13, 14, 17, .82), rgba(13, 14, 17, .12) 26%, rgba(13, 14, 17, .1) 42%, rgba(13, 14, 17, .9) 68%, var(--onyx) 92%); }
.kenburns { animation: kb 24s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.03); } to { transform: scale(1.15); } }
.rail { top: 0; bottom: 0; width: 5px; border-inline: 1px solid rgba(201, 164, 92, .55); z-index: 1; }
.rail--l { left: 13px; } .rail--r { right: 13px; }
.hero-top { padding-top: 3.4rem; }
.hero-crest { width: 128px; margin: 0 auto .7rem; }
.hero-bottom { padding: 0 2.2rem 3.6rem; }
.hero-sun { width: 170%; left: -35%; top: -10%; opacity: .1; animation: spin 160s linear infinite; z-index: -1; }
.hero-names { display: flex; flex-direction: column; font-family: var(--f-display); font-size: clamp(4rem, 20.5cqw, 6rem); line-height: 1; letter-spacing: .1em; text-indent: .1em; text-transform: uppercase; }
.hero-amp { display: flex; align-items: center; gap: 1rem; margin: .1rem 0 .3rem; }
.hero-amp::before, .hero-amp::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-amp::after { transform: scaleX(-1); }
.hero-amp em { font-family: var(--f-serif); font-size: 1.7rem; line-height: 1; letter-spacing: 0; text-indent: 0; color: var(--gold); text-transform: none; }
.trio { display: flex; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.trio div { position: relative; width: 78px; padding: .75rem 0 .55rem; border: 1px solid rgba(201, 164, 92, .8); }
.trio div::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(201, 164, 92, .28); }
.trio strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--ivory); }
.trio span { display: block; margin-top: .35rem; font-weight: 600; font-size: .5rem; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: var(--gold); }
.cue { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: 1.6rem; }
.cue i { width: 10px; height: 10px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); animation: cue 1.8s ease-in-out infinite; }
.cue i:nth-child(2) { animation-delay: .2s; } .cue i:nth-child(3) { animation-delay: .4s; }
@keyframes cue { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* ==========================================================
   QUOTE
   ========================================================== */
.quote { padding: 5.6rem 2.7rem 6rem; }
.quote-fan { width: 150px; margin: 0 auto; }
.quote-lotus { width: 76%; left: 12%; bottom: -70px; opacity: .14; }
.quote blockquote { margin: 1.6rem 0 1.5rem; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 7.6cqw, 1.95rem); line-height: 1.3; color: var(--em); }
.quote-verse { margin: 1.5rem 0 1.2rem; font-weight: 400; font-size: .95rem; }

/* ==========================================================
   COUPLE
   ========================================================== */
.couple { padding-bottom: 10rem; }
.couple-palm--a { width: 74%; right: -34%; top: -70px; rotate: 196deg; opacity: .55; }
.couple-palm--b { width: 78%; left: 11%; bottom: -76px; opacity: .85; }
.star { margin-top: 3.2rem; }
.star-row { display: flex; justify-content: center; align-items: center; gap: 1.3rem; }
.star-sky { width: 60%; }
.star-vert { writing-mode: vertical-rl; font-family: var(--f-display); font-size: clamp(3.3rem, 17cqw, 4.7rem); line-height: 1; letter-spacing: .2em; text-transform: uppercase; }
.star--alt .star-vert { rotate: 180deg; }
.star-no { position: absolute; left: 50%; bottom: -19px; translate: -50% 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); background: var(--em); box-shadow: 0 0 0 4px var(--em), 0 0 0 5px rgba(201, 164, 92, .4); font-family: var(--f-display); font-size: .95rem; color: var(--gold-l); }
.star-info { margin-top: 2.6rem; }
.star-info h3 { font-family: var(--f-display); font-size: 1.75rem; letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; color: var(--ivory); margin: .5rem 0 .5rem; }
.star-info p { font-size: .96rem; margin-bottom: 1rem; }
.amp { display: flex; align-items: center; gap: 1.4rem; margin: 3rem 0 0; }
.amp::before, .amp::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.amp::after { transform: scaleX(-1); }
.amp span { position: relative; width: 56px; height: 56px; display: grid; place-items: center; font-family: var(--f-serif); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--gold-l); }
.amp span::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* ==========================================================
   EVENT — tickets
   ========================================================== */
.event-sun { width: 150%; left: -25%; top: -2px; rotate: 180deg; opacity: .28; }
.ticket { max-width: 344px; margin: 2.4rem auto 0; color: #1C211F; background: linear-gradient(155deg, #F3E9CA, #DCC790); filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .7)); }
.ticket::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(28, 33, 31, .45); pointer-events: none; }
.ticket-stub { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.15rem 1.4rem .85rem; border-bottom: 2px dashed rgba(28, 33, 31, .45); }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; bottom: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--onyx); z-index: 2; }
.ticket-stub::before { left: -11px; } .ticket-stub::after { right: -11px; }
.ticket-stub span { font-weight: 600; font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; }
.ticket-stub strong { font-family: var(--f-display); font-weight: 400; font-size: 3.4rem; line-height: 1; padding: 0 .9rem; color: var(--em); -webkit-text-stroke: .7px var(--em); }
.ticket-body { position: relative; padding: 1.7rem 1.4rem 1.9rem; }
.ticket-no { position: absolute; top: .9rem; right: 1.1rem; font-weight: 600; font-size: .5rem; letter-spacing: .24em; opacity: .6; }
.ticket-fan { width: 84px; margin: 0 auto .7rem; }
.ticket h3 { font-family: var(--f-display); font-size: 2.2rem; line-height: 1.15; letter-spacing: .14em; text-indent: .14em; text-transform: uppercase; color: var(--em); -webkit-text-stroke: .6px var(--em); margin: .5rem 0 .7rem; }
.ticket-time { font-weight: 600; font-size: .72rem; letter-spacing: .26em; }
.ticket-place { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; line-height: 1.2; margin-top: .8rem; color: #1C211F; }
.ticket-addr { font-weight: 400; font-size: .9rem; line-height: 1.5; max-width: 26ch; margin: .35rem auto 1.2rem; }

/* ==========================================================
   COUNTDOWN
   ========================================================== */
.countdown { padding-top: 4.4rem; }
.dial { width: 250px; height: 125px; overflow: hidden; margin: 0 auto 1.6rem; border-bottom: 1px solid var(--gold); }
.dial img { width: 250px; max-width: none; animation: spin 80s linear infinite; }
.count { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 350px; margin: 1.4rem auto 1.7rem; }
.count div + div { border-left: 1px solid rgba(201, 164, 92, .5); }
.count strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.3rem, 11.5cqw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.count span { display: block; margin-top: .5rem; font-weight: 600; font-size: .5rem; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--gold-l); }
.countdown .roman { margin-bottom: 1.7rem; letter-spacing: .22em; text-indent: .22em; font-size: .6rem; }

/* ==========================================================
   STORY — acts
   ========================================================== */
.acts { list-style: none; margin: 0; padding: 0; }
.act { margin-top: 3rem; text-align: left; }
.act--alt { text-align: right; }
.act-head { display: flex; align-items: flex-end; gap: 1rem; }
.act--alt .act-head { flex-direction: row-reverse; }
.act-no { font-family: var(--f-display); font-size: 4.8rem; line-height: .8; letter-spacing: .06em; background: linear-gradient(160deg, var(--gold-l), var(--gold-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.act-year { flex: 1; padding-bottom: .55rem; border-bottom: 1px solid rgba(201, 164, 92, .55); font-weight: 600; font-size: .58rem; letter-spacing: .36em; text-transform: uppercase; color: var(--gold-l); }
.plate { margin: 1.2rem 0 1.1rem; padding: 1px; background: linear-gradient(120deg, var(--gold-d), var(--gold-l), var(--gold-d)); --c: 22px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)) !important; }
.plate div { aspect-ratio: 16 / 10.5; overflow: hidden; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.plate img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: transform 2s var(--ease), filter 1.2s; }
.plate:hover img { transform: scale(1.06); filter: grayscale(.2); }
.act-text h3 { font-family: var(--f-display); font-size: 1.65rem; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory); margin-bottom: .4rem; }
.act-text p { font-size: .96rem; max-width: 32ch; }
.act--alt .act-text p { margin-left: auto; }
.story-end { width: 150px; margin: 3.2rem auto 0; }

/* ==========================================================
   GALLERY — film reel
   ========================================================== */
.gallery { padding-inline: 0; }
.reel-wrap { margin-top: 2.4rem; padding: 22px 0; }
.reel-wrap::before, .reel-wrap::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(90deg, rgba(201, 164, 92, .6) 0 10px, transparent 10px 22px); }
.reel-wrap::before { top: 0; } .reel-wrap::after { bottom: 0; }
.reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 15% 6px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.ph { flex: 0 0 70%; scroll-snap-align: center; text-align: left; cursor: zoom-in; }
.ph-img { display: block; aspect-ratio: 3 / 4.1; overflow: hidden; clip-path: var(--sky); }
.ph:nth-child(even) .ph-img { --c: 26px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: transform 1.8s var(--ease), filter 1.2s; }
.ph:hover img { transform: scale(1.05); filter: grayscale(.15); }
.ph em { display: block; margin-top: .8rem; padding-top: .6rem; border-top: 1px solid rgba(201, 164, 92, .4); font-style: normal; font-weight: 600; font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-l); }
.reel-meter { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; font-family: var(--f-display); font-size: 1.2rem; color: var(--gold); }
.reel-meter i { position: relative; width: 150px; height: 1px; background: rgba(201, 164, 92, .3); }
.reel-meter b { position: absolute; left: 0; top: -1px; height: 3px; width: 16.6%; background: var(--gold); transition: width .5s var(--ease); }
.reel-hint { margin-top: .7rem; font-weight: 400; font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; opacity: .6; }

/* ==========================================================
   VIDEO — marquee
   ========================================================== */
.marquee { display: block; width: 100%; margin-top: 1.6rem; padding: 18px; border: 0; background: var(--onyx); box-shadow: 0 0 0 1px var(--gold), 0 30px 40px -20px #000; cursor: pointer; }
.marquee-bulbs { position: absolute; inset: 0; background: radial-gradient(circle, #FBEFC8 1.8px, rgba(251, 239, 200, .3) 3px, transparent 4.6px) 0 0 / 18px 18px round; animation: twinkle 1.4s steps(2) infinite; }
@keyframes twinkle { 50% { opacity: .45; } }
.marquee-img { position: relative; display: block; aspect-ratio: 16 / 10.5; overflow: hidden; }
.marquee-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.8); transition: transform 2.4s var(--ease); }
.marquee:hover .marquee-img img { transform: scale(1.06); }
.marquee-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid var(--gold-l); background: rgba(13, 14, 17, .6); color: var(--gold-l); outline: 1px solid rgba(201, 164, 92, .55); outline-offset: 5px; }
.marquee-play i { transform: rotate(-45deg); margin-left: 3px; }
.marquee-cap { margin-top: 1.3rem; font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--gold-l); }
.marquee-cap b { font-family: var(--f-sans); font-style: normal; font-weight: 600; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory); margin-right: .2rem; }

/* ==========================================================
   LIVE
   ========================================================== */
.waves { width: 170px; height: 170px; margin: 0 auto 1.4rem; display: grid; place-items: center; }
.waves i { position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 50%; animation: wave 3.6s ease-out infinite; }
.waves i:nth-child(2) { animation-delay: 1.2s; } .waves i:nth-child(3) { animation-delay: 2.4s; }
@keyframes wave { from { transform: scale(.35); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.waves img { width: 74px; position: relative; }
.live .title { font-size: clamp(1.6rem, 7.6cqw, 2.2rem); letter-spacing: .1em; text-indent: .1em; }
.live .roman { margin: 1.3rem 0 1.6rem; }

/* ==========================================================
   RSVP
   ========================================================== */
.rsvp-fan { width: 150%; left: -25%; top: -2px; rotate: 180deg; opacity: .22; }
.panel { margin-top: 2.2rem; padding: 2.8rem 1.9rem 2.6rem; text-align: left; background: var(--onyx); color: var(--text); box-shadow: 0 30px 44px -22px rgba(13, 14, 17, .8); }
.panel::before { content: ""; position: absolute; inset: 7px; pointer-events: none; border: 40px solid transparent; border-image: url(../assets/frames/border-deco.svg) 124 / 40px stretch; }
.lbl { display: block; font-weight: 600; font-size: .56rem; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); margin-bottom: .45rem; }
.fld { width: 100%; padding: .5rem 0 .4rem; border: 0; border-bottom: 1px solid rgba(201, 164, 92, .55); border-radius: 0; background: transparent; font-family: var(--f-sans); font-weight: 300; font-size: 1.05rem; color: var(--ivory); outline: 0; transition: border-color .4s, box-shadow .4s; }
.fld::placeholder { color: rgba(207, 200, 180, .4); }
.fld:focus { border-color: var(--gold-l); box-shadow: 0 1px 0 var(--gold-l); }
.fld.is-invalid { border-color: #C2685A; box-shadow: 0 1px 0 #C2685A; }
textarea.fld { resize: none; border: 1px solid rgba(201, 164, 92, .45); padding: .7rem .8rem; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: grid; place-items: center; gap: .45rem; padding: .85rem 0 .65rem; border: 1px solid rgba(201, 164, 92, .55); font-weight: 600; font-size: .56rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); transition: background .4s, color .4s; }
.choice span i { font-size: .95rem; color: var(--gold); transition: color .4s; }
.choice input:checked + span { background: linear-gradient(120deg, var(--gold-d), var(--gold-l), var(--gold)); color: var(--onyx); border-color: var(--gold-l); }
.choice input:checked + span i { color: var(--onyx); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.stepper { display: flex; align-items: center; }
.stepper button { width: 42px; height: 42px; border: 1px solid rgba(201, 164, 92, .7); background: transparent; font-size: 1.2rem; line-height: 1; color: var(--gold-l); transition: background .3s, color .3s; }
.stepper button:hover { background: var(--gold); color: var(--onyx); }
.stepper output { width: 4rem; text-align: center; font-weight: 300; font-size: 1.7rem; line-height: 1; color: var(--ivory); }
.rsvp-done { text-align: center; animation: cvIn 1s var(--ease) both; }
.rsvp-done img { width: 120px; margin: 0 auto .8rem; }
.rsvp-done h3 { font-family: var(--f-display); font-size: 2rem; letter-spacing: .16em; text-transform: uppercase; }
.rsvp-done p { max-width: 28ch; margin: .5rem auto 1.1rem; }
.link-btn { border: 0; background: none; font-weight: 600; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding: 0 0 .2rem; }

/* ==========================================================
   WISHES — telegrams
   ========================================================== */
.grams { list-style: none; margin: 1.8rem 0 0; padding: 6px 8px 6px 4px; max-height: 480px; overflow-y: auto; text-align: left; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.gram { padding: .9rem 1.1rem 1.1rem; margin-bottom: 14px; color: #24221C; background: linear-gradient(160deg, #F3EACD, #E4D4A4); box-shadow: 0 14px 20px -12px #000; rotate: -.7deg; }
.gram:nth-child(even) { rotate: .7deg; }
.gram.is-new { animation: cvIn 1s var(--ease) both; }
.gram-top { display: flex; justify-content: space-between; padding-bottom: .5rem; border-bottom: 1px dashed rgba(36, 34, 28, .45); font-weight: 600; font-size: .5rem; letter-spacing: .3em; text-transform: uppercase; }
.gram-top span:first-child::before { content: "◆ "; color: var(--em); }
.gram-name { margin-top: .75rem; font-weight: 600; font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; }
.stamp { display: inline-block; margin-left: .4rem; padding: .22rem .4rem .1rem; border: 1.5px solid var(--em); color: var(--em); font-style: normal; font-size: .46rem; letter-spacing: .2em; rotate: -5deg; vertical-align: middle; }
.stamp--no { border-color: #8A2F2A; color: #8A2F2A; }
.stamp--maybe { border-color: #8A6A1E; color: #8A6A1E; }
.gram-text { margin-top: .4rem; font-weight: 400; font-size: .95rem; line-height: 1.55; }

/* ==========================================================
   GIFT
   ========================================================== */
.gift { padding-bottom: 6rem; }
.gift-palm { width: 74%; right: -34%; bottom: -70px; rotate: -24deg; opacity: .5; }
.lacquer { position: relative; overflow: hidden; display: flex; flex-direction: column; max-width: 336px; aspect-ratio: 1.586; margin: 2.4rem auto 0; padding: 1.2rem 1.3rem 1.05rem; text-align: left; background: var(--onyx) url(../assets/ornaments/scallop.svg) 0 0 / 34px; background-blend-mode: soft-light; box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px var(--onyx), 0 0 0 6px rgba(201, 164, 92, .5), 0 34px 40px -18px #000; }
.lacquer > * { position: relative; }
.lacquer-sun { position: absolute !important; width: 130%; max-width: none; right: -62%; bottom: -4px; opacity: .4; }
.lacquer-top { display: flex; justify-content: space-between; align-items: center; }
.lacquer-top span, .lacquer-bottom span { font-weight: 600; font-size: .5rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-l); }
.lacquer-top b { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1; letter-spacing: .22em; }
.lacquer-no { margin-top: auto; font-family: var(--f-display); font-size: clamp(1.7rem, 8.4cqw, 2rem); line-height: 1.2; letter-spacing: .12em; }
.lacquer-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: .3rem; }
.lacquer-bottom p { font-weight: 400; font-size: .98rem; line-height: 1.35; color: var(--ivory); letter-spacing: .06em; }
.lacquer-bottom span { display: block; }
.send { margin-top: 3rem; }
.diamond { position: relative; width: 60px; height: 60px; margin: 0 auto .6rem; display: grid; place-items: center; color: var(--gold-l); }
.diamond::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.send h3 { font-family: var(--f-display); font-size: 1.8rem; letter-spacing: .18em; text-indent: .18em; text-transform: uppercase; color: var(--ivory); }
.send p { max-width: 29ch; margin: .4rem auto 1.4rem; font-size: .96rem; }

/* ==========================================================
   LOCATION
   ========================================================== */
.atlas { width: 78%; margin: 3rem auto 0; }
.atlas-map, .atlas-venue { padding: 1px; background: linear-gradient(120deg, var(--gold-d), var(--gold-l), var(--gold-d)); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.atlas-map { --c: 46px; } .atlas-venue { --c: 16px; }
.atlas-map div, .atlas-venue div { position: relative; aspect-ratio: 1; overflow: hidden; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.atlas img { width: 100%; height: 100%; object-fit: cover; }
.atlas-pin { position: absolute; left: 50%; top: 50%; translate: -50% -92%; font-size: 2.4rem; line-height: 1; color: var(--gold-l); filter: drop-shadow(0 6px 6px #000); animation: pin 3s ease-in-out infinite; }
@keyframes pin { 50% { transform: translateY(-7px); } }
.atlas-compass { position: absolute; width: 96px !important; height: auto !important; right: -38px; top: -34px; animation: spin 50s linear infinite; }
.atlas-venue { position: absolute; width: 38%; left: -26px; bottom: -26px; }
.atlas-venue img { filter: grayscale(1) contrast(1.08); }
.loc { margin-top: 3.6rem; }
.loc h3 { font-family: var(--f-display); font-size: 1.85rem; line-height: 1.2; letter-spacing: .14em; text-indent: .14em; text-transform: uppercase; color: var(--ivory); }
.loc p { margin: .6rem 0 1.5rem; font-size: .96rem; }

/* ==========================================================
   CLOSING + FOOTER
   ========================================================== */
.closing { min-height: max(var(--vh), 760px); padding: 5rem 2.4rem 11rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.closing .bg-photo::after { background: linear-gradient(rgba(13, 14, 17, .9), rgba(13, 14, 17, .6) 45%, rgba(13, 14, 17, .88) 78%, var(--onyx)); }
.closing-crest { width: 130px; margin-bottom: 1rem; }
.closing-title { display: flex; flex-direction: column; font-family: var(--f-display); font-size: clamp(4.2rem, 22cqw, 6.2rem); line-height: 1; letter-spacing: .1em; text-indent: .1em; text-transform: uppercase; }
.closing-sub { font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: var(--gold-l); margin-top: .6rem; }
.closing-names { margin: 1.8rem 0 .6rem; display: flex; align-items: center; gap: .8rem; font-family: var(--f-display); font-size: 1.7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory); }
.closing-sun { width: 140%; left: -20%; bottom: 0; opacity: .7; }

.footer { position: relative; padding: 4rem var(--pad) 7.4rem; text-align: center; background: #08090B; border-top: 1px solid var(--gold); }
.footer-names { font-family: var(--f-display); font-size: 1.9rem; letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; }
.footer .roman { margin: .5rem 0 1.5rem; }
.footer .divider { width: 200px; }
.footer-credit { margin-top: 1.3rem; font-size: .72rem; letter-spacing: .12em; opacity: .5; }

/* ==========================================================
   FLOATING UI
   ========================================================== */
.ui { z-index: 800; pointer-events: none; opacity: 0; transition: opacity 1.2s ease .9s; overflow: hidden; }
body.is-open .ui { opacity: 1; }
.ui > *:not(.sparks) { pointer-events: auto; }
.dock { position: absolute; left: 0; right: 0; bottom: 0; height: 54px; display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(13, 14, 17, .94); border-top: 1px solid var(--gold); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dock a { position: relative; display: grid; place-items: center; font-size: .84rem; color: #8C8676; transition: color .4s; }
.dock a + a { border-left: 1px solid rgba(201, 164, 92, .18); }
.dock a::before { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; background: var(--gold); transform: rotate(45deg) scale(0); transition: transform .5s var(--ease); }
.dock a.is-active { color: var(--gold-l); }
.dock a.is-active::before { transform: rotate(45deg) scale(1); }
.fab { position: absolute; right: 18px; width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; color: var(--gold-l); font-size: .85rem; transition: opacity .5s, transform .5s var(--ease), visibility .5s; }
.fab::before { content: ""; position: absolute; inset: 6px; background: var(--onyx); border: 1px solid var(--gold); transform: rotate(45deg); box-shadow: 0 10px 20px -6px #000; }
.fab i { position: relative; }
.fab--music { bottom: 74px; }
.fab--music.is-playing i { animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.25); } }
.fab--music:not(.is-playing) i { opacity: .45; }
.fab--top { bottom: 128px; opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab--top.is-show { opacity: 1; visibility: visible; transform: none; }
.toast-inv { position: absolute; left: 50%; bottom: 72px; translate: -50% 0; width: max-content; max-width: 76%; padding: .7rem 1.1rem .55rem; background: var(--onyx); border: 1px solid var(--gold); color: var(--gold-l); font-weight: 400; font-size: .74rem; letter-spacing: .08em; line-height: 1.4; 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; }
.sparks { position: absolute; inset: 0; }
.sparks i { position: absolute; width: 5px; height: 5px; background: var(--gold-l); transform: rotate(45deg); opacity: 0; animation: spark 5s ease-in-out infinite; }
.sparks i:nth-child(1) { left: 9%; top: 18%; } .sparks i:nth-child(2) { left: 88%; top: 30%; animation-delay: 1.2s; }
.sparks i:nth-child(3) { left: 16%; top: 62%; animation-delay: 2.3s; } .sparks i:nth-child(4) { left: 78%; top: 72%; animation-delay: .6s; }
.sparks i:nth-child(5) { left: 50%; top: 8%; animation-delay: 3.1s; } .sparks i:nth-child(6) { left: 93%; top: 52%; animation-delay: 3.8s; }
.sparks i:nth-child(7) { left: 5%; top: 40%; animation-delay: 1.9s; }
@keyframes spark { 0%, 100% { opacity: 0; transform: rotate(45deg) scale(.3); } 50% { opacity: .7; transform: rotate(45deg) scale(1); } }

.grain { position: fixed; inset: 0; z-index: 3000; pointer-events: none; background: url(../assets/textures/grain.svg) 0 0 / 300px; opacity: .1; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(8, 9, 11, .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 img { max-width: min(86vw, 900px); max-height: 72vh; box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--onyx), 0 0 0 8px rgba(201, 164, 92, .5); }
.lb-media iframe { display: block; width: min(92vw, 960px); aspect-ratio: 16 / 9; border: 1px solid var(--gold); background: #000; }
.lb-fig figcaption { margin-top: 1.4rem; }
.lb-cap { display: block; font-family: var(--f-display); font-size: 1.4rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); }
.lb-count { display: block; margin-top: .3rem; font-weight: 600; font-size: .55rem; letter-spacing: .4em; color: var(--gold); }
.lb-btn { position: absolute; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--gold); background: var(--onyx); color: var(--gold-l); display: grid; place-items: center; transition: background .3s, color .3s; }
.lb-btn:hover { background: var(--gold); color: var(--onyx); }
.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: var(--onyx); }
.side::before { content: ""; position: absolute; inset: 0; background: url(../assets/textures/marble.svg) 0 0 / 600px; opacity: .3; }
.side-sun { position: absolute; width: 150vh; max-width: none; left: 50%; top: 50%; margin: -75vh 0 0 -75vh; opacity: .12; animation: spin 180s linear infinite; }
.side .deco-frame { inset: 24px; border-width: 84px; border-image-width: 84px; }
.side-body { position: relative; z-index: 2; }
.side-names { display: flex; flex-direction: column; align-items: center; font-family: var(--f-display); font-size: clamp(4rem, 7.6vw, 8rem); line-height: 1.05; letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; margin: 1rem 0 1.4rem; }
.side-names em { font-family: var(--f-serif); font-size: 2rem; letter-spacing: 0; text-indent: 0; -webkit-text-fill-color: var(--gold); text-transform: none; }
.side-date { margin-top: 1.2rem; font-weight: 400; font-size: .8rem; letter-spacing: .5em; color: var(--gold-l); }

@media (max-width: 374px) {
  :root { --pad: 1.3rem; }
  .hero-bottom { padding-inline: 1.9rem; }
  .quote { padding-inline: 2.3rem; }
  .panel { padding-inline: 1.6rem; }
  .trio div { width: 72px; }
}
.is-shot .ui, .is-shot .grain { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  [data-reveal] { transition-duration: .01s; }
}
