/* ==========================================================
   TEMPLATE 14 — WINTER FROST (Seasonal)
   Ice crystals, snowflakes, frosted glass, aurora night.
   Bootstrap hanya untuk grid & utility.
   ========================================================== */

@property --melt { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

:root {
  --snow: #F7FAFC;
  --ice: #DCEAF4;
  --frost: #A9C8DE;
  --steel: #5E7F9B;
  --night: #16263A;
  --silver: #C8D2DC;
  --ink: #4A6177;

  --f-display: 'Italiana', 'Times New Roman', serif;
  --f-script: 'Alex Brush', cursive;
  --f-sans: 'Raleway', system-ui, sans-serif;

  --col: 480px;
  --vh: 100svh;
  --pad: 1.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

html { scrollbar-gutter: stable; background: #0E1A2A; }
body { margin: 0; font-family: var(--f-sans); font-weight: 400; font-size: .94rem; line-height: 1.75; color: var(--ink); background: linear-gradient(#16263A, #0E1A2A) fixed; -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(--frost); color: var(--night); }

.invite { position: relative; width: min(100%, var(--col)); margin-inline: auto; background: var(--snow); overflow: hidden; container-type: inline-size; box-shadow: 0 0 80px rgba(0, 0, 0, .6); }
.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.2rem var(--pad) 6.6rem; overflow: hidden; isolation: isolate; text-align: center; }
.sec > *:not(.deco):not(.drift):not(.bg-photo):not(.snowfall):not(.aurora):not(.pines):not(.icicles) { position: relative; z-index: 2; }
.s-snow { background: var(--snow); }
.s-white { background: #fff; }
.s-ice { background: linear-gradient(var(--ice), #EAF3F9); }
.s-night { background: linear-gradient(#16263A, #1E3550 60%, #2B4A6B); color: #D6E4F0; }
.s-photo { background: var(--night); color: #E8F1F8; }
.bg-photo { position: absolute; inset: 0; z-index: -2; }
.bg-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.8) contrast(1.05); }
.bg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(22, 38, 58, .8), rgba(60, 100, 140, .55) 50%, rgba(22, 38, 58, .75)); }
.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; max-width: none; translate: 0 var(--py, 0px); }
.drift { position: absolute; left: 0; right: 0; bottom: -1px; height: 54px; z-index: 3; pointer-events: none; background: center / 100% 100% no-repeat; }
.drift--snow { background-image: url(../assets/ornaments/drift-snow.svg); } .drift--ice { background-image: url(../assets/ornaments/drift-ice.svg); }
.drift--white { background-image: url(../assets/ornaments/drift-white.svg); } .drift--night { background-image: url(../assets/ornaments/drift-night.svg); }
.icicles { position: absolute; left: 0; right: 0; top: -1px; height: 46px; z-index: 3; background: url(../assets/ornaments/icicles-ice.svg) 0 0 / 300px 100% repeat-x; pointer-events: none; }
.snowfall { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url(../assets/textures/snow-a.svg) 0 0 / 300px, url(../assets/textures/snow-b.svg) 80px 0 / 420px; animation: snow 16s linear infinite; }
@keyframes snow { to { background-position: 60px 300px, 20px 420px; } }
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(70% 40% at 30% 18%, rgba(120, 230, 200, .34), transparent 70%), radial-gradient(60% 34% at 72% 26%, rgba(150, 140, 255, .3), transparent 70%); filter: blur(10px); animation: aurora 9s ease-in-out infinite alternate; }
@keyframes aurora { from { opacity: .55; transform: translateX(-4%) skewX(-6deg); } to { opacity: 1; transform: translateX(4%) skewX(6deg); } }
.pines { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 1; pointer-events: none; background: url(../assets/ornaments/pines.svg) 0 100% / 400px 100% repeat-x; }
.pines::before { content: ""; position: absolute; inset: -30px 0 20px; background: url(../assets/ornaments/pines-far.svg) 120px 100% / 340px 100% repeat-x; z-index: -1; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }

.cap-w { font-weight: 600; font-size: .62rem; letter-spacing: .4em; text-indent: .4em; text-transform: uppercase; color: var(--steel); }
.cap-w--light { color: #BFD8EA; }
.ttl-w { font-family: var(--f-display); font-size: clamp(2.2rem, 10.6cqw, 2.8rem); line-height: 1.12; letter-spacing: .06em; color: var(--night); margin-top: .5rem; }
.ttl-w--light { color: #fff; }
.note-w { max-width: 31ch; margin: .8rem auto 0; }
.note-w b { font-weight: 600; color: var(--night); }
.note-w--light { color: inherit; }

.btn-w { display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.7rem .85rem 1.2rem; border: 1px solid rgba(255, 255, 255, .8); border-radius: 4px; background: rgba(255, 255, 255, .16); font-weight: 600; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 14px 22px -12px rgba(10, 25, 45, .7), inset 0 0 20px rgba(255, 255, 255, .12); cursor: pointer; transition: background .4s, transform .5s var(--ease); }
.btn-w img { width: 18px; transition: transform 1s var(--ease); }
.btn-w:hover { color: #fff; background: rgba(255, 255, 255, .3); transform: translateY(-3px); }
.btn-w:hover img { transform: rotate(120deg); }
.btn-w--steel { border-color: var(--steel); background: linear-gradient(135deg, #6E90AD, #4A6B88); }
.btn-w--steel:hover { background: linear-gradient(135deg, #7FA1BE, #5A7B98); }
.chip-w { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .9rem; border: 1px solid var(--frost); border-radius: 3px; background: rgba(255, 255, 255, .6); font-weight: 600; font-size: .72rem; color: var(--steel); cursor: pointer; transition: background .3s, color .3s; }
.chip-w:hover { background: var(--steel); color: #fff; }
.chip-w--light { border-color: rgba(255, 255, 255, .7); background: transparent; color: #fff; }
.chip-w--light:hover { background: #fff; color: var(--night); }
.glass { padding: 1.8rem 1.5rem; border-radius: 6px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 26px 40px -24px rgba(60, 100, 140, .6), inset 0 0 30px rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* crystal = hexagon photo */
.crystal { position: relative; aspect-ratio: 1 / 1.1547; }
.crystal-img { position: absolute; inset: 5%; clip-path: var(--hex); }
.crystal-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.crystal-img img, .hx img, .iceframe-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(1.06) contrast(1.02); }

/* ---------- reveal ---------- */
[data-reveal] { transition: opacity 1.3s ease, transform 1.4s var(--ease), filter 1.3s ease; transition-delay: var(--d, 0s); }
[data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
[data-reveal="frost"]:not(.is-in) { transform: scale(.96); filter: blur(10px) brightness(1.5); }

/* ==========================================================
   COVER — frost melts from the centre
   ========================================================== */
.cover { z-index: 1000; overflow: hidden; container-type: size; --melt: 0%; -webkit-mask: radial-gradient(circle at 50% 50%, transparent calc(var(--melt) - 12%), #000 var(--melt)); mask: radial-gradient(circle at 50% 50%, transparent calc(var(--melt) - 12%), #000 var(--melt)); transition: --melt 2s cubic-bezier(.5, 0, .2, 1); }
.cover.is-opening { --melt: 135%; pointer-events: none; }
.cover-photo { position: absolute; inset: 0; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(1.05); }
.cover-frost { position: absolute; inset: 0; background: url(../assets/textures/frost.svg) 0 0 / 400px, linear-gradient(rgba(220, 234, 244, .8), rgba(169, 200, 222, .7)); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.cover-flake { opacity: .7; animation: spin 80s linear infinite; }
.cover-flake--a { width: 60%; left: -24%; top: -8%; }
.cover-flake--b { width: 34%; right: -8%; top: 18%; animation-duration: 60s; animation-direction: reverse; }
.cover-flake--c { width: 70%; right: -30%; bottom: -12%; animation-duration: 110s; }
.cover-body { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.4rem 1.6rem; text-align: center; color: var(--night); }
.cover .cap-w { color: #3B5A76; }
.cover-names { display: flex; flex-direction: column; align-items: center; font-family: var(--f-display); font-size: clamp(3.6rem, 18cqw, 5rem); line-height: 1; letter-spacing: .08em; text-indent: .08em; text-transform: uppercase; color: var(--night); margin: 1.2rem 0; text-shadow: 0 0 30px rgba(255, 255, 255, .9); }
.cover-names i, .hero-names i { font-family: var(--f-script); font-style: normal; font-size: .5em; line-height: 1; letter-spacing: 0; text-indent: 0; text-transform: none; color: var(--steel); }
.cover-guest { margin-top: clamp(1rem, 3.4cqh, 2rem); display: flex; flex-direction: column; }
.cover-guest span { font-size: .8rem; }
.cover-guest strong { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .04em; line-height: 1.3; }
.cover .btn-w { margin-top: clamp(1rem, 3cqh, 1.6rem); border-color: var(--steel); background: linear-gradient(135deg, #6E90AD, #4A6B88); }
.cover-ice { position: absolute; left: 0; right: 0; top: 0; height: 56px; z-index: 4; background: url(../assets/ornaments/icicles.svg) 0 0 / 320px 100% repeat-x; }
.cv { animation: cvIn 1.5s var(--ease) both; animation-delay: calc(.3s + var(--i) * .15s); }
@keyframes cvIn { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } }

/* ==========================================================
   HERO
   ========================================================== */
.hero { padding-top: 4rem; }
.hero-flake { opacity: .55; animation: spin 90s linear infinite; }
.hero-flake--a { width: 74%; left: -34%; top: -5%; }
.hero-flake--b { width: 46%; right: -16%; top: 44%; animation-direction: reverse; }
.hero-names { display: flex; flex-direction: column; align-items: center; margin-top: .8rem; font-family: var(--f-display); font-size: clamp(3.9rem, 19.6cqw, 5.3rem); line-height: 1; letter-spacing: .1em; text-indent: .1em; text-transform: uppercase; color: var(--night); }
.hero-crystal { width: 76%; margin: 2rem auto 0; filter: drop-shadow(0 26px 26px rgba(60, 100, 140, .35)); }
.crystal-flake { width: 26%; right: -6%; top: 2%; z-index: 3; animation: spin 30s linear infinite; }
.kenburns { animation: kb 24s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.13); } }
.hero-date { margin-top: 1.8rem; font-family: var(--f-display); font-size: 1.7rem; letter-spacing: .06em; color: var(--night); }
.hero-date span { display: block; font-family: var(--f-sans); font-weight: 600; font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--steel); }

/* ==========================================================
   QUOTE
   ========================================================== */
.quote { padding-inline: 2.2rem; }
.quote-flake { width: 110%; left: -5%; top: 50%; margin-top: -55%; opacity: .3; animation: spin 140s linear infinite; }
.quote blockquote { margin: 0; font-family: var(--f-script); font-size: clamp(2.6rem, 12.6cqw, 3.2rem); line-height: 1.1; color: var(--steel); }
.rule { display: flex; align-items: center; gap: 1rem; margin: 1.3rem auto; max-width: 240px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--frost)); }
.rule::after { transform: scaleX(-1); }
.rule img { width: 28px; animation: spin 20s linear infinite; }
.quote-verse { margin-bottom: 1rem; }

/* ==========================================================
   COUPLE — interlocking crystals
   ========================================================== */
.duo { position: relative; width: 100%; aspect-ratio: 1 / .96; margin-top: 2rem; }
.duo-a, .duo-b { position: absolute !important; width: 56%; filter: drop-shadow(0 20px 20px rgba(60, 100, 140, .3)); }
.duo-a { left: 0; top: 0; }
.duo-b { right: 0; bottom: 0; }
.duo-flake { width: 22%; left: 39%; top: 39%; z-index: 3; animation: spin 26s linear infinite; background: var(--snow); border-radius: 50%; padding: 6px; box-shadow: 0 0 0 1px var(--frost); }
.who { margin-top: 1.4rem; }
.who > div { padding: 0 .6rem; }
.who-script { font-family: var(--f-script); font-size: 2.8rem; line-height: 1; color: var(--steel); }
.who h3 { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: .04em; color: var(--night); margin: .2rem 0 .3rem; }
.who p:not(.cap-w):not(.who-script) { font-size: .8rem; line-height: 1.55; margin-bottom: .7rem; }
.who .cap-w { font-size: .56rem; letter-spacing: .28em; text-indent: .28em; }
.couple { padding-bottom: 4.4rem; }

/* ==========================================================
   EVENT — frosted panes
   ========================================================== */
.event { padding-top: 5.6rem; }
.pane { position: relative; max-width: 330px; margin: 2rem auto 0; padding: 2.4rem 1.4rem 1.9rem; border-radius: 6px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 26px 40px -22px rgba(0, 10, 25, .8), inset 0 0 40px rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pane::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url(../assets/textures/frost.svg) 0 0 / 300px; opacity: .35; pointer-events: none; }
.pane > * { position: relative; }
.pane-flake { position: absolute !important; left: 50%; top: -24px; width: 48px; margin-left: -24px; padding: 6px; border-radius: 50%; background: #4A6B88; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); animation: spin 30s linear infinite; }
.pane h3 { font-family: var(--f-display); font-size: 2.5rem; line-height: 1.1; letter-spacing: .06em; color: #fff; margin: .3rem 0 .6rem; }
.pane-date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.pane-date span { padding: .35rem 0; border-block: 1px solid rgba(255, 255, 255, .6); font-weight: 600; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; }
.pane-date strong { padding: 0 .8rem; font-family: var(--f-display); font-weight: 400; font-size: 3.6rem; line-height: 1; color: #fff; }
.pane-time { margin-top: .7rem; font-weight: 600; font-size: .74rem; letter-spacing: .2em; color: #BFD8EA; }
.pane-place { max-width: 25ch; margin: .4rem auto .9rem; font-size: .84rem; line-height: 1.55; }
.pane-place b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; letter-spacing: .04em; color: #fff; }

/* ==========================================================
   COUNTDOWN — gems
   ========================================================== */
.gems { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: 1.8rem -.2rem 2.2rem; }
.gem { aspect-ratio: 1 / 1.1547; display: grid; place-content: center; clip-path: var(--hex); background: linear-gradient(150deg, #fff 0, var(--ice) 34%, var(--frost) 50%, #EAF3F9 66%, #B9D2E4); animation: float 6s ease-in-out infinite; }
.gem:nth-child(even) { animation-delay: -3s; background: linear-gradient(210deg, #fff 0, var(--ice) 34%, var(--frost) 50%, #EAF3F9 66%, #B9D2E4); }
.gem strong { font-family: var(--f-display); font-size: clamp(1.6rem, 8cqw, 2rem); line-height: 1; color: var(--night); font-variant-numeric: tabular-nums; }
.gem span { font-weight: 600; font-size: .5rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }

/* ==========================================================
   STORY
   ========================================================== */
.path { list-style: none; margin: 2rem 0 0; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 1px; background: linear-gradient(transparent, var(--frost) 10%, var(--frost) 90%, transparent); }
.stop { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.6rem; align-items: center; margin-bottom: 1rem; }
.stop:last-child { margin-bottom: 0; }
.stop-flake { position: absolute !important; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; background: var(--ice) url(../assets/ornaments/flake-1.svg) center / 78% no-repeat; border-radius: 50%; animation: spin 16s linear infinite; }
.stop .crystal { filter: drop-shadow(0 14px 14px rgba(60, 100, 140, .3)); }
.stop .crystal-img { inset: 0; }
.stop--alt .crystal { order: 2; }
.stop-text { text-align: left; }
.stop--alt .stop-text { text-align: right; }
.stop-year { display: block; font-family: var(--f-display); font-size: 2.5rem; line-height: 1; letter-spacing: .06em; color: var(--steel); }
.stop h3 { font-family: var(--f-script); font-size: 1.8rem; line-height: 1.1; color: var(--night); margin: .1rem 0 .2rem; }
.stop p { font-size: .8rem; line-height: 1.55; }

/* ==========================================================
   GALLERY — honeycomb
   ========================================================== */
.hive { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 6px; margin: 2.2rem calc(var(--pad) * -.5) 0; padding-bottom: 9.4%; }
.hx { grid-column: span 2; aspect-ratio: 1 / 1.1547; clip-path: var(--hex); margin-bottom: -27.2%; display: block; overflow: hidden; }
.hx:nth-child(5n + 4) { grid-column: 2 / span 2; }
.ph { cursor: zoom-in; }
.hx img { transition: transform 1.6s var(--ease), filter .8s; }
.ph:hover img { transform: scale(1.08); filter: none; }
.hx--ice { display: grid; place-items: center; background: linear-gradient(150deg, #6E90AD, #4A6B88); }
.hx--ice img { width: 62%; height: auto; filter: none; animation: spin 40s linear infinite; }

/* ==========================================================
   VIDEO
   ========================================================== */
.iceframe { position: relative; display: block; width: 100%; margin-top: 2rem; padding: 10px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 6px; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 26px 36px -18px rgba(0, 10, 25, .8); cursor: pointer; }
.iceframe-img { display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 3px; }
.iceframe-ice { position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: url(../assets/ornaments/icicles.svg) 0 0 / 260px 100% repeat-x; opacity: .95; }
.iceframe-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 78px; margin: -39px 0 0 -34px; display: grid; place-items: center; clip-path: var(--hex); background: linear-gradient(135deg, #6E90AD, #4A6B88); color: #fff; padding-left: 4px; transition: transform .5s var(--ease); }
.iceframe:hover .iceframe-play { transform: scale(1.1); }
.video .note-w { margin-top: 1.6rem; }

/* ==========================================================
   LIVE
   ========================================================== */
.pulse { width: 130px; height: 130px; margin: 0 auto 1rem; display: grid; place-items: center; }
.pulse i { position: absolute; inset: 0; border: 1px solid var(--frost); border-radius: 50%; animation: wave 3.4s ease-out infinite; }
.pulse i:nth-child(2) { animation-delay: 1.7s; }
@keyframes wave { from { transform: scale(.4); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.pulse img { width: 64px; animation: spin 20s linear infinite; }
.live .btn-w { margin-top: 1.5rem; }

/* ==========================================================
   RSVP
   ========================================================== */
.rsvp .glass { margin-top: 2rem; padding: 2.1rem 1.5rem 1.9rem; text-align: left; }
.lbl { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--steel); }
.fld { width: 100%; padding: .7rem .9rem; border: 1px solid var(--frost); border-radius: 4px; background: rgba(255, 255, 255, .7); font-family: var(--f-sans); font-size: .98rem; color: var(--night); outline: 0; transition: border-color .3s, box-shadow .3s; }
.fld::placeholder { color: rgba(74, 97, 119, .45); }
.fld:focus { border-color: var(--steel); box-shadow: 0 0 0 4px rgba(169, 200, 222, .5); }
.fld.is-invalid { border-color: #C96A7A; box-shadow: 0 0 0 4px rgba(201, 106, 122, .2); }
textarea.fld { resize: none; 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: .65rem .1rem; border: 1px solid var(--frost); border-radius: 4px; background: rgba(255, 255, 255, .7); text-align: center; font-weight: 600; font-size: .78rem; white-space: nowrap; transition: background .4s, color .4s, border-color .4s; }
.choice input:checked + span { background: linear-gradient(135deg, #6E90AD, #4A6B88); border-color: var(--steel); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }
.stepper { display: flex; align-items: center; gap: .3rem; }
.stepper button { width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--frost); background: rgba(255, 255, 255, .7); font-size: 1.2rem; line-height: 1; color: var(--steel); transition: background .3s, color .3s; }
.stepper button:hover { background: var(--steel); color: #fff; }
.stepper output { width: 3rem; text-align: center; font-weight: 600; font-size: 1.4rem; line-height: 1; color: var(--night); }
.stepper em { margin-left: .3rem; font-style: normal; }
.rsvp-done { text-align: center; animation: cvIn 1.2s var(--ease) both; }
.rsvp-done img { width: 70px; margin: 0 auto .4rem; animation: spin 20s linear infinite; }
.rsvp-done p { max-width: 28ch; margin: .4rem auto 1rem; }
.link-btn { border: 0; background: none; font-weight: 600; color: var(--steel); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   WISHES
   ========================================================== */
.flakes { list-style: none; margin: 1.8rem 0 0; padding: 4px 8px 4px 2px; max-height: 500px; overflow-y: auto; text-align: left; scrollbar-width: thin; scrollbar-color: var(--frost) transparent; }
.fw { position: relative; margin-bottom: 12px; padding: 1.1rem 1.2rem 1rem 3.6rem; border-radius: 6px; background: linear-gradient(135deg, #fff, var(--ice)); border: 1px solid #fff; box-shadow: 0 12px 16px -12px rgba(60, 100, 140, .5); }
.fw::before { content: ""; position: absolute; left: .9rem; top: 1.1rem; width: 32px; height: 32px; background: url(../assets/ornaments/flake-1.svg) center / contain no-repeat; }
.fw:nth-child(3n + 2)::before { background-image: url(../assets/ornaments/flake-2.svg); } .fw:nth-child(3n)::before { background-image: url(../assets/ornaments/flake-3.svg); }
.fw.is-new { animation: cvIn 1.2s var(--ease) both; }
.fw-text { font-size: .93rem; line-height: 1.65; }
.fw-by { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.fw-by b { font-family: var(--f-script); font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--steel); }
.tg { padding: .05rem .5rem; border: 1px solid var(--frost); border-radius: 3px; font-style: normal; font-weight: 600; font-size: .54rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.tg--no { border-color: #D9A6B0; color: #B0647A; } .tg--maybe { border-color: var(--silver); color: #7A8794; }

/* ==========================================================
   GIFT — silver card
   ========================================================== */
.silver { 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(120deg, #EEF3F7 0, #C8D2DC 30%, #F7FAFC 48%, #B8C6D4 70%, #E4ECF3 100%); box-shadow: inset 0 0 0 1px #fff, 0 26px 32px -18px rgba(60, 100, 140, .6); }
.silver::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .7) 48%, transparent 60%); animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-80%); } 100% { transform: translateX(80%); } }
.silver > * { position: relative; z-index: 1; }
.silver-flake { position: absolute !important; z-index: 0 !important; width: 170px; right: -46px; top: -40px; opacity: .8; }
.silver .cap-w { font-size: .54rem; letter-spacing: .28em; text-indent: 0; }
.silver-top { display: flex; justify-content: space-between; align-items: center; }
.silver-top b { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; letter-spacing: .12em; line-height: 1; color: var(--night); }
.silver-no { margin-top: auto; font-family: var(--f-display); font-size: clamp(1.7rem, 8.4cqw, 2rem); letter-spacing: .1em; line-height: 1.25; color: var(--night); }
.silver-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.silver-bottom p { font-weight: 600; font-size: .98rem; line-height: 1.35; color: var(--night); }
.silver-bottom .cap-w { display: block; }
.send { margin-top: 2.4rem; }
.send .ttl-w { font-size: 2rem; }
.send p { max-width: 29ch; margin: .3rem auto 1.4rem; }

/* ==========================================================
   LOCATION
   ========================================================== */
.loc-crystal { width: 84%; margin: 2rem auto 0; filter: drop-shadow(0 22px 22px rgba(60, 100, 140, .3)); }
.loc-pin { position: absolute; left: 50%; top: 50%; width: 52px; height: 60px; margin: -30px 0 0 -26px; display: grid; place-items: center; clip-path: var(--hex); background: linear-gradient(135deg, #6E90AD, #4A6B88); color: #fff; font-size: 1.2rem; animation: float 4s ease-in-out infinite; }
.loc-venue { position: absolute !important; width: 36%; right: -6%; bottom: -4%; }
.loc-venue .crystal-img { inset: 0; }
.loc-venue::before { content: ""; position: absolute; inset: -5px; clip-path: var(--hex); background: #fff; }
.loc { margin-top: 2rem; }
.loc h3 { font-family: var(--f-display); font-size: 1.9rem; letter-spacing: .04em; color: var(--night); }
.loc p { margin: .4rem 0 1.4rem; }

/* ==========================================================
   CLOSING + FOOTER
   ========================================================== */
.closing { padding-top: 5rem; padding-bottom: 9.4rem; }
.closing-crystal { width: 58%; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(150, 220, 230, .35)); }
.closing-title { margin-top: 1.8rem; font-family: var(--f-display); font-size: clamp(3.4rem, 17cqw, 4.6rem); line-height: 1.05; letter-spacing: .08em; text-indent: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 0 30px rgba(150, 220, 230, .5); }
.closing-sub { font-family: var(--f-script); font-size: 2.2rem; line-height: 1.1; color: #BFD8EA; }
.closing-names { margin: 1.6rem 0 .5rem; font-family: var(--f-display); font-size: 1.8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.closing-names i, .footer-names i, .side-names i { font-family: var(--f-script); font-style: normal; text-transform: none; letter-spacing: 0; color: #BFD8EA; }

.footer { padding: 2rem var(--pad) 7rem; text-align: center; background: #0E1A2A; color: #9FB6CA; }
.footer-names { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-credit { margin-top: .8rem; font-size: .74rem; opacity: .6; }

/* ==========================================================
   FLOATING UI
   ========================================================== */
.ui { z-index: 800; pointer-events: none; opacity: 0; transition: opacity 1.2s ease 1.4s; overflow: hidden; }
body.is-open .ui { opacity: 1; }
.ui > *:not(.snowfall) { pointer-events: auto; }
.snowfall--ui { opacity: .9; filter: drop-shadow(0 0 1px rgba(94, 127, 155, .8)); }
.dock { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: .1rem; padding: .3rem .4rem; border-radius: 6px; background: rgba(255, 255, 255, .7); border: 1px solid #fff; box-shadow: 0 16px 26px -12px rgba(22, 38, 58, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.dock a { width: 38px; height: 38px; border-radius: 4px; display: grid; place-items: center; font-size: .8rem; color: var(--frost); transition: background .4s, color .4s; }
.dock a.is-active { background: linear-gradient(135deg, #6E90AD, #4A6B88); color: #fff; }
.fab { position: absolute; right: 14px; width: 44px; height: 50px; display: grid; place-items: center; border: 0; clip-path: var(--hex); background: linear-gradient(135deg, #fff, var(--ice)); color: var(--steel); font-size: .85rem; transition: opacity .5s, transform .5s var(--ease), visibility .5s; }
.fab--music { bottom: 74px; }
.fab--music.is-playing i { animation: spin 5s linear infinite; }
.fab--music:not(.is-playing) { color: var(--frost); }
.fab--top { bottom: 132px; 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: .55rem 1.1rem; border-radius: 4px; background: rgba(22, 38, 58, .92); border: 1px solid rgba(255, 255, 255, .5); color: #fff; font-size: .84rem; 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; }
.grain { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(14, 26, 42, .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(84vw, 880px); max-height: 70vh; border-radius: 4px; box-shadow: 0 0 0 1px #fff, 0 0 0 9px rgba(255, 255, 255, .14), 0 0 60px rgba(150, 220, 230, .25); }
.lb-media iframe { display: block; width: min(90vw, 940px); aspect-ratio: 16 / 9; border: 1px solid #fff; border-radius: 4px; background: #000; }
.lb-fig figcaption { margin-top: 1.3rem; }
.lb-cap { display: block; font-family: var(--f-script); font-size: 2.2rem; line-height: 1.1; color: #fff; }
.lb-count { display: block; font-weight: 600; font-size: .58rem; letter-spacing: .34em; color: #BFD8EA; }
.lb-btn { position: absolute; z-index: 2; width: 44px; height: 50px; border: 0; clip-path: var(--hex); background: linear-gradient(135deg, #fff, var(--ice)); color: var(--steel); display: grid; place-items: center; }
.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: linear-gradient(#0E1A2A, #1E3550 60%, #2B4A6B); }
.side-flake { position: absolute; width: 84vh; max-width: none; left: 50%; top: 50%; margin: -42vh 0 0 -42vh; opacity: .12; animation: spin 200s linear infinite; }
.side-body { position: relative; z-index: 2; margin-bottom: 8vh; }
.side-names { font-family: var(--f-display); font-size: clamp(3rem, 5.4vw, 6rem); line-height: 1.15; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: .8rem 0; text-shadow: 0 0 40px rgba(150, 220, 230, .5); }
.side .pines { height: 24vh; background-size: 560px 100%; }
.side .pines::before { background-size: 480px 100%; }

@media (max-width: 374px) {
  :root { --pad: 1.2rem; }
  .rsvp .glass { padding-inline: 1.2rem; }
  .dock a { width: 35px; height: 35px; }
}
.is-shot .ui { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  [data-reveal] { transition-duration: .01s; }
}
