/* =========================================================
   Shahi Lifafa — maroon embossed envelope, scalloped-arch hero,
   scratch-to-reveal date, letter rising from a lace envelope
   ========================================================= */
:root {
  --maroon: #5B1A28; --maroon-2: #44111D; --maroon-3: #6E2434;
  --paper: #F8F4F3; --white: #FFFDFC;
  --ink: #3F2F33; --ink-2: #5C4B4F; --mute: #7A6A6D;
  --gold: #B08A4E; --gold-ink: #8A6A35; --lace: #E9C9C4; --line: #DCD0D0;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --serif: "Cormorant Garamond", "Amiri", "Tiro Devanagari Hindi", "Noto Serif Devanagari", "Noto Serif Gurmukhi", "Noto Serif Tamil", "Noto Nastaliq Urdu", Georgia, serif;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", var(--serif);
  --maxw: 480px; --ease: cubic-bezier(.22, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.55; color: var(--ink);
  background: #E9E2E1; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
body.is-locked { overflow: hidden; height: 100vh; height: 100svh; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; } button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--maroon-3); outline-offset: 3px; }
:lang(hi) { font-family: var(--deva); }
:lang(ar), :lang(ur) { font-family: "Amiri", "Noto Naskh Arabic", "Noto Nastaliq Urdu", serif; font-style: normal; }
.h-inv:lang(ar) { font-size: 22px; line-height: 1.6; color: var(--maroon-3); margin-bottom: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { max-width: var(--maxw); margin: 0 auto; background: var(--paper); position: relative; overflow-x: clip; box-shadow: 0 0 50px rgba(60,20,30,.12); }
section, footer { position: relative; text-align: center; }
.paper { background: var(--paper) url("../assets/img/paper.webp") 0 0 / 360px 360px; padding: 70px 24px; }

/* shared type */
.kicker { margin: 0 0 6px; font-weight: 600; font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }
.script-title { margin: 0; font-family: var(--script); font-weight: 400; font-size: 36px; line-height: 1.25; color: var(--maroon); }
.script-title.big { font-size: 40px; }
.sub { margin: 14px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.sub.it { font-style: italic; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 26px; border: 1px solid #B9ABAD; background: rgba(255,255,255,.55);
  font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); text-decoration: none; cursor: pointer; transition: background .25s; }
.btn-line:hover { background: #fff; }
.btn-line span { font-size: 15px; letter-spacing: 0; }
.btn-line.small { min-height: 44px; padding: 0 22px; font-size: 12.5px; }

/* ================= COVER: envelope ================= */
.cover { position: fixed; inset: 0; z-index: 60; cursor: pointer; -webkit-tap-highlight-color: transparent; overflow: hidden; }
.cover.gone { opacity: 0; transition: opacity .6s; pointer-events: none; }
.cover.open-done { pointer-events: none; }
.cover.open-done .skip { pointer-events: auto; }
.cover.fade-out .env, .cover.fade-out .seal, .cover.fade-out .cover-text, .cover.ready.fade-out .cover-text { opacity: 0; transition: opacity .45s ease; }
.env { position: absolute; top: 0; bottom: 0; left: 50%; width: 100%; max-width: var(--maxw); transform: translateX(-50%); perspective: 1400px; perspective-origin: 50% 0; }
.fw { position: absolute; inset: 0; will-change: transform; }
.fw-bottom .fs { filter: brightness(.86); }
.fw-left .fs { filter: drop-shadow(4px 2px 5px rgba(12,0,4,.7)) brightness(.95); }
.fw-right .fs { filter: drop-shadow(-4px 2px 5px rgba(12,0,4,.7)) brightness(.95); }
.fw-top { transform-origin: 50% 0; }
.fw-top .fs { filter: drop-shadow(0 6px 7px rgba(12,0,4,.8)); }
.fs { position: absolute; inset: 0; }
.flap { position: absolute; inset: 0; background: var(--maroon) url("../assets/img/envelope-emboss.webp") center / cover no-repeat; }
.f-top { clip-path: polygon(0 0, 100% 0, 50% 53%); }
.f-left { clip-path: polygon(0 0, 51% 50%, 0 100%); }
.f-right { clip-path: polygon(100% 0, 49% 50%, 100% 100%); }
.f-bottom { clip-path: polygon(0 100%, 50% 49%, 100% 100%); }
.f-top::after, .f-left::after, .f-right::after, .f-bottom::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.f-top::after { background: linear-gradient(rgba(255,220,210,.06), rgba(0,0,0,.08)); }
.f-bottom::after { background: linear-gradient(rgba(0,0,0,.1), rgba(255,220,210,.03) 40%); }
.seal { position: absolute; z-index: 3; left: 50%; top: 51%; width: 96px; height: 96px; margin: -48px 0 0 -48px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.seal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(20,0,6,.55)); }
.seal-mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; font-weight: 600; font-size: 27px; letter-spacing: .02em;
  color: #F2D2A6; text-shadow: 0 1px 0 rgba(60,0,10,.7), 0 -1px 0 rgba(255,230,190,.25); }
.seal-mono .amp, .pm .amp, .c-mono .amp { font-style: italic; font-weight: 500; font-size: .5em; margin: .35em .12em 0; }
.cover.ready:not(.opening) .seal img { animation: sealPulse 2.4s ease-in-out 1.2s infinite; }
@keyframes sealPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.cover-text { position: absolute; z-index: 3; left: 0; right: 0; top: 66%; text-align: center; pointer-events: none; opacity: 0; transition: opacity .9s .3s; }
.cover-text::before { content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; top: -30px; bottom: -26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40,6,14,.62), rgba(40,6,14,0)); }
.cover.ready .cover-text { opacity: 1; }
.cover-guest { margin: 0 0 4px; font-style: italic; color: #F2DACB; font-size: 17px; }
.cover-script { margin: 0; font-family: var(--script); font-size: 36px; line-height: 1.2; color: #F3DCCB; text-shadow: 0 2px 8px rgba(20,0,6,.6); }
.cover-tap { margin: 30px 0 0; font-weight: 600; font-size: 12.5px; letter-spacing: .34em; text-transform: uppercase; color: #EBCFC0; text-shadow: 0 1px 4px rgba(20,0,6,.7); }
.skip { position: absolute; z-index: 5; right: max(16px, calc(50% - var(--maxw) / 2 + 16px)); bottom: calc(10% + env(safe-area-inset-bottom)); min-height: 44px; padding: 0 18px; opacity: 0;
  border: 1px solid rgba(255,240,235,.7); border-radius: 999px; background: rgba(60,12,22,.35); color: #FFF4EE; cursor: pointer; font-style: italic; font-size: 15px; }
.skip span { font-style: normal; font-size: 12px; margin-left: 4px; }

/* ================= HERO ================= */
.hero { height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #F3D9C4; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(rgba(248,244,243,0), var(--paper) 92%); }
.hero-text { position: absolute; z-index: 2; left: 14%; right: 14%; top: 22%; text-align: center; }
.h-bless { margin: 0; font-style: italic; font-weight: 500; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); display: flex; flex-direction: column; }
.h-inv { font-style: normal; font-size: 15px; color: var(--maroon-3); margin-bottom: 2px; }
.guest-line { margin: 8px 0 0; font-style: italic; color: var(--ink-2); }
.h-names { margin: 16px 0 10px; font-weight: 500; font-size: 40px; line-height: 1.15; color: var(--maroon); letter-spacing: .01em; }
.h-amp { font-style: italic; font-size: .42em; color: var(--maroon-3); vertical-align: .25em; margin: 0 .1em; }
.h-tag { margin: 0; font-style: italic; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.hero .h-bless > *, .hero .guest-line, .hero .h-one, .hero .h-amp, .hero .h-two, .hero .h-tag { opacity: 0; display: inline-block; transform: translateY(10px); }
.hero .h-bless > * { display: block; }
.hero.in .h-bless > *, .hero.in .guest-line, .hero.in .h-one, .hero.in .h-amp, .hero.in .h-two, .hero.in .h-tag { animation: ghostIn 1.1s var(--ease) forwards; }
.hero.in .h-bless > :nth-child(2) { animation-delay: .35s; }
.hero.in .guest-line { animation-delay: .6s; }
.hero.in .h-one { animation-delay: .9s; } .hero.in .h-amp { animation-delay: 1.25s; } .hero.in .h-two { animation-delay: 1.45s; }
.hero.in .h-tag { animation-delay: 2.1s; }
/* the reel's soft "double image" settle: a faint offset copy fades as the text lands */
@keyframes ghostIn { 0% { opacity: 0; transform: translateY(10px); text-shadow: 0 -8px 0 rgba(91,26,40,.18); } 60% { opacity: 1; text-shadow: 0 -3px 0 rgba(91,26,40,.1); } 100% { opacity: 1; transform: none; text-shadow: 0 0 0 rgba(91,26,40,0); } }

/* ================= SAVE THE DATE ================= */
#savedate { padding-top: 40px; }
.hint { margin: 18px 0 0; font-style: italic; font-size: 15px; color: var(--mute); transition: opacity .3s; min-height: 1.5em; }
.hint .star { color: var(--gold); font-style: normal; margin-right: 4px; }
.hint .heart { color: var(--maroon-3); font-style: normal; }
.hint.swap { opacity: 0; }
.tiles { display: flex; align-items: center; justify-content: center; gap: 0; margin: 26px auto 0; }
.tile { position: relative; width: min(27vw, 106px); aspect-ratio: 1; margin: 0 4px; cursor: pointer; outline-offset: 4px; }
.t-cover { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; box-shadow: 0 8px 16px -10px rgba(60,10,20,.6); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.tile.open .t-cover { opacity: 0; transform: scale(1.04); pointer-events: none; }
.t-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.t-val b { font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.tile:nth-of-type(2) .t-val b { font-style: italic; font-size: 26px; }
.t-val small { margin-top: 4px; font-weight: 600; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.t-dot { font-style: normal; color: var(--mute); opacity: 0; transition: opacity .6s; width: 8px; }
.tiles.done .t-dot { opacity: 1; }
.date-plain { margin: 22px 0 0; font-size: 24px; color: var(--ink); }
.save-wrap { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .8s var(--ease), opacity .6s .2s, margin .8s var(--ease); }
.save-wrap.show { max-height: 120px; opacity: 1; margin-top: 34px; }
.cd-block { margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(16px); transition: max-height 1s var(--ease), opacity .9s .15s, transform .9s .15s var(--ease), margin 1s var(--ease); }
.cd-block.show { max-height: 260px; opacity: 1; transform: none; margin-top: 56px; }
.cd-title { margin: 0 0 16px; font-style: italic; font-size: 20px; color: var(--ink-2); }
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: 6px; }
.countdown div { min-width: 64px; }
.countdown b { display: block; font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown span { font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.countdown i { font-style: normal; font-size: 22px; color: var(--mute); line-height: 1.6; }
.after-msg { font-style: italic; font-size: 24px; color: var(--maroon); }

/* ================= YOU'RE INVITED: envelope + letter ================= */
#families { padding: 70px 0 0; }
.stage { position: relative; height: 140svh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.envelope { position: absolute; left: 50%; bottom: 13svh; width: min(90%, 400px); aspect-ratio: 900 / 1115; transform: translateX(-50%); }
.env-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(60,10,20,.25)); }
.letter-clip { position: absolute; left: 7%; right: 7%; top: -400vh; bottom: 6%; overflow: hidden; pointer-events: none; }
.letter { position: absolute; left: 0; right: 0; background: var(--white); will-change: transform; pointer-events: auto;
  box-shadow: 0 0 0 1px #E3D8D8, 0 -6px 18px -8px rgba(60,10,20,.25); }
.letter::before { content: ""; position: absolute; inset: 7px; border: 1px solid #D6C9CA; pointer-events: none; }
.letter-in { padding: 28px 20px 40px; }
.l-dear { margin: 0 0 14px; font-family: var(--script); font-size: 26px; color: var(--maroon); }
.l-p { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); }
.l-star { display: block; margin: 16px 0; color: var(--gold); font-size: 14px; }
.l-fam { margin: 12px 0 0; font-style: italic; font-size: 17px; color: var(--ink-2); }
.l-love { margin: 22px 0 6px; font-style: italic; font-size: 17px; color: var(--ink-2); }
.p-name { margin: 0; font-weight: 500; font-size: 30px; line-height: 1.2; color: var(--maroon); }
.p-parents { margin: 6px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.p-lines { margin: 2px 0 0; font-size: 15px; color: var(--mute); }
.l-amp { margin: 10px 0; font-size: 22px; color: var(--ink-2); }
.pocket { position: absolute; inset: 0; clip-path: polygon(0 37.4%, 50% 70.2%, 100% 37.4%, 100% 100%, 0 100%); }
.pocket img { width: 100%; height: 100%; object-fit: contain; }
.pocket-mono { position: absolute; left: 0; right: 0; top: 85%; display: flex; flex-direction: column; align-items: center; }
.pm { display: flex; align-items: center; font-weight: 500; font-size: 28px; color: #EBD6C4; letter-spacing: .04em; }
.pm-sub { margin-top: 2px; font-weight: 600; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #D8BCAC; }
.stage.still { height: auto; }
.stage.still .sticky { position: relative; height: auto; }
.stage.still .envelope { position: relative; left: auto; bottom: auto; transform: none; margin: 0 auto 60px; }

/* ================= SCHEDULE ================= */
#celebrations { padding-top: 40px; }
.tl { position: relative; max-width: 360px; margin: 40px auto 0; }
.tl-line { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; margin-left: -.5px; background: rgba(176,138,78,.22); }
.tl-line i { position: absolute; inset: 0; background: var(--gold); transform-origin: 50% 0; transform: scaleY(0); }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.tl-dia { position: absolute; left: 50%; top: 12px; width: 9px; height: 9px; margin-left: -4.5px; background: var(--gold); transform: rotate(45deg); }
.tl-box { padding: 0 6px; }
.tl-item.right .tl-box { grid-column: 2; text-align: left; padding-left: 22px; }
.tl-item.left .tl-box { grid-column: 1; text-align: right; padding-right: 22px; }
.tl-day { margin: 0 0 2px; font-weight: 600; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.tl-time { margin: 0; font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--ink); }
.tl-time i { font-size: .62em; color: var(--mute); }
.tl-script { margin: 2px 0 0; font-size: 17px; color: var(--maroon-3); }
.tl-name { margin: 4px 0 0; font-weight: 500; font-size: 21px; line-height: 1.2; color: var(--ink-2); }
.tl-note { margin: 6px 0 0; font-style: italic; font-size: 15px; line-height: 1.4; color: var(--mute); }
.tl-venue { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.tl-dress { margin: 6px 0 0; font-style: italic; font-size: 14px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tl-item.left .tl-dress { justify-content: flex-end; }
.tl-dress i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.tl-links { margin: 8px 0 0; font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.tl-links a { color: var(--maroon-3); text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
.tl-item.fx { transform: translateY(16px); }
.tl-item.right.fx { transform: translateX(14px); } .tl-item.left.fx { transform: translateX(-14px); }
.tl-item.fx.in { transform: none; }

/* ================= VENUE + RSVP card ================= */
#venue { padding-top: 40px; }
.v-card { max-width: 340px; margin: 34px auto 0; padding: 16px; background: var(--white); box-shadow: 0 0 0 1px #EAE1E1, 0 20px 40px -26px rgba(60,10,20,.4); }
.v-arch { position: relative; padding: 50px 18px 30px; }
.v-orn { display: block; color: var(--ink-2); font-size: 18px; margin-bottom: 14px; }
.v-name { margin: 0; font-weight: 500; font-size: 30px; line-height: 1.2; color: var(--ink); }
.v-addr { margin: 12px 0 0; font-size: 17px; color: var(--ink-2); line-height: 1.4; }
.v-what { margin: 2px 0 0; font-size: 17px; color: var(--ink-2); }
.v-rule { display: block; width: 36px; height: 1px; background: #9A8B8D; margin: 18px auto; }
.v-date { margin: 0; font-size: 18px; color: var(--ink); }
.v-time { margin: 2px 0 22px; font-style: italic; font-size: 16px; color: var(--ink-2); }

#rsvp { padding-top: 40px; }
.form-card { text-align: left; padding: 24px 20px; }
.field { display: block; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field > span, .field > legend { display: block; font-weight: 600; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); margin: 0 0 7px; padding: 0; }
input, select, textarea { width: 100%; font: 500 18px/1.4 var(--serif); color: var(--ink); background: var(--paper); border: 1px solid #CDBFC0; border-radius: 0; padding: 10px 14px; min-height: 48px; }
textarea { resize: vertical; min-height: 92px; }
input::placeholder, textarea::placeholder { color: #85767A; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(91,26,40,.25); border-color: var(--maroon); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235B1A28' stroke-width='1.6'/%3E%3C/svg%3E"); }
.choice-row { display: flex; gap: 8px; } .choice-row.wrap-row { flex-wrap: wrap; }
.pill { position: relative; flex: 1 1 auto; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pill span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 6px 12px; border: 1px solid #CDBFC0; background: var(--paper); font-size: 17px; line-height: 1.25; transition: all .2s; }
.pill input:checked + span { background: var(--maroon); border-color: var(--maroon); color: #FBEFEA; }
.pill input:focus-visible + span { outline: 2px solid var(--maroon-3); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0 0 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--maroon); flex: none; }
.form-error { color: #8E1B24; background: #FBE7E6; padding: 10px 12px; font-size: 17px; margin: 0 0 14px; }
.btn-solid { width: 100%; min-height: 50px; border: 0; background: var(--maroon); color: #FBEFEA; cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; }
.btn-solid:disabled { opacity: .6; cursor: wait; }
.thanks { text-align: center; outline: none; padding: 20px 0; }
.thanks p:last-child { color: var(--ink-2); }

/* ================= CLOSING ================= */
.closing { background: #F6F1F0 url("../assets/img/marble.webp") center / cover; padding: 80px 30px 0; }
.c-p { margin: 18px auto 0; max-width: 32ch; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.c-love { margin: 26px 0 4px; font-style: italic; font-size: 18px; color: var(--ink-2); }
.c-names { margin: 0; font-weight: 500; font-size: 30px; color: var(--ink); }
.c-mono { margin: 34px 0 6px; display: flex; justify-content: center; align-items: center; font-weight: 500; font-size: 60px; line-height: 1; color: #9A7539; letter-spacing: .02em; }
.c-forever { margin: 14px 0 0; font-style: italic; font-size: 18px; color: var(--ink-2); }
.c-tag { margin: 4px 0 26px; font-style: italic; font-size: 16px; color: var(--mute); word-break: break-word; }
.credit { margin: 0; padding: 40px 0 calc(90px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--mute); }
.credit a { color: var(--ink); text-underline-offset: 3px; }

/* ================= music button + petals ================= */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.sound-btn { position: fixed; z-index: 61; right: max(16px, calc(50% - var(--maxw) / 2 + 16px)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--maroon); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(40,5,12,.6); }
.eq { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.eq i { width: 2px; height: 5px; border-radius: 1px; background: #FFF4F0; }
.eq i:nth-child(2) { height: 11px; } .eq i:nth-child(3) { height: 15px; } .eq i:nth-child(4) { height: 8px; }
.sound-btn.on .eq i { animation: eq 1s ease-in-out infinite; }
.sound-btn.on .eq i:nth-child(2) { animation-delay: -.3s; } .sound-btn.on .eq i:nth-child(3) { animation-delay: -.6s; } .sound-btn.on .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

/* ================= reveals ================= */
.fx { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease), text-shadow 1.2s var(--ease); text-shadow: 0 -6px 0 rgba(91,26,40,.12); }
.fx.in { opacity: 1; transform: none; text-shadow: 0 0 0 rgba(91,26,40,0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .fx, .hero .h-bless > *, .hero .guest-line, .hero .h-one, .hero .h-amp, .hero .h-two, .hero .h-tag { opacity: 1 !important; transform: none !important; text-shadow: none !important; }
  .cover.fade-out .env, .cover.fade-out .seal, .cover.fade-out .cover-text, .cover.ready.fade-out .cover-text { transition: opacity .4s ease !important; }
}


/* =========================================================
   Finishing touches (extras.js) — transform / opacity only
   ========================================================= */
/* reading-progress thread */
.progress { position: fixed; z-index: 59; top: 0; left: 50%; width: 100%; max-width: var(--maxw); height: 2px; transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity .6s; }
body:not(.is-locked) .progress { opacity: 1; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, rgba(176,138,78,.2), var(--gold), #E6C78E); transform-origin: 0 50%; transform: scaleX(0); }

/* cover: a slow light sheen across the embossed paper */
.sheen { position: absolute; z-index: 2; top: 0; bottom: 0; left: 50%; width: 100%; max-width: var(--maxw); transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.sheen i { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; transform: rotate(14deg) translateX(0);
  background: linear-gradient(90deg, rgba(255,214,196,0), rgba(255,214,196,.09) 45%, rgba(255,236,224,.16) 50%, rgba(255,214,196,.09) 55%, rgba(255,214,196,0)); }
.cover.ready:not(.opening) .sheen i { animation: sheen 5.5s ease-in-out .8s infinite; }
.cover.opening .sheen { opacity: 0; transition: opacity .3s; }
@keyframes sheen { 0% { transform: rotate(14deg) translateX(0); } 55%, 100% { transform: rotate(14deg) translateX(560%); } }

/* gold sparks */
.sparks { position: fixed; inset: 0; z-index: 75; pointer-events: none; }
.sparks i { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #FFE9BE;
  box-shadow: 0 0 10px 3px rgba(240,190,110,.9); animation: spark 1.2s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes spark { 0% { transform: translate(0,0) scale(1); opacity: 1; } 70% { opacity: .9; } 100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* hero: slow cinematic settle + fireflies over the lamp pool + gold sweep through the names */
.hero-img { transform: scale(1.08); transition: transform 12s cubic-bezier(.2,.6,.2,1); }
.hero.in .hero-img { transform: scale(1); }
.fireflies { position: absolute; z-index: 1; left: 0; right: 0; bottom: 4%; height: 58%; pointer-events: none; }
.fireflies i { position: absolute; bottom: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(closest-side, #FFF6DA 0, #FFD58A 22%, rgba(255,160,60,.5) 45%, rgba(255,150,60,0) 100%); }
.hero.in.live .fireflies i { animation: firefly var(--t, 7s) ease-in-out var(--d, 0s) infinite; }
@keyframes firefly { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: .95; } 50% { transform: translate(var(--x, 10px), -45%) scale(1); } 85% { opacity: .7; } 100% { opacity: 0; transform: translate(calc(var(--x, 10px) * -.6), -95%) scale(.5); } }
.fireflies i:nth-child(1)  { left: 8%;  --t: 7s;   --d: .2s; --x: 14px; }
.fireflies i:nth-child(2)  { left: 16%; --t: 9s;   --d: 2.1s; --x: -10px; }
.fireflies i:nth-child(3)  { left: 23%; --t: 6.5s; --d: 4s;  --x: 18px; }
.fireflies i:nth-child(4)  { left: 31%; --t: 8s;   --d: 1s;  --x: -16px; }
.fireflies i:nth-child(5)  { left: 38%; --t: 7.5s; --d: 3.2s; --x: 12px; }
.fireflies i:nth-child(6)  { left: 45%; --t: 10s;  --d: .6s; --x: -8px; }
.fireflies i:nth-child(7)  { left: 52%; --t: 6.8s; --d: 5s;  --x: 16px; }
.fireflies i:nth-child(8)  { left: 59%; --t: 8.6s; --d: 2.6s; --x: -14px; }
.fireflies i:nth-child(9)  { left: 66%; --t: 7.2s; --d: 1.6s; --x: 10px; }
.fireflies i:nth-child(10) { left: 73%; --t: 9.4s; --d: 3.8s; --x: -18px; }
.fireflies i:nth-child(11) { left: 80%; --t: 6.6s; --d: .9s; --x: 12px; }
.fireflies i:nth-child(12) { left: 88%; --t: 8.2s; --d: 4.6s; --x: -12px; }
.fireflies i:nth-child(13) { left: 12%; --t: 11s;  --d: 6s;  --x: 20px; width: 11px; height: 11px; }
.fireflies i:nth-child(14) { left: 42%; --t: 10.5s; --d: 7s; --x: -20px; width: 11px; height: 11px; }
.fireflies i:nth-child(15) { left: 62%; --t: 9.8s; --d: 5.6s; --x: 16px; width: 11px; height: 11px; }
.fireflies i:nth-child(16) { left: 92%; --t: 11.5s; --d: 8s; --x: -16px; width: 11px; height: 11px; }
.hero.in .h-one, .hero.in .h-two {
  background: linear-gradient(105deg, var(--maroon) 0%, var(--maroon) 42%, #C9886F 50%, var(--maroon) 58%, var(--maroon) 100%) 100% 0 / 260% 100% repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: nameIn 1.2s var(--ease) forwards, nameShine 2.4s ease-in-out forwards; }
.hero.in .h-one { animation-delay: .9s, 3.4s; } .hero.in .h-two { animation-delay: 1.45s, 3.7s; }
@keyframes nameIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nameShine { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.scroll-cue { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-weight: 600; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); opacity: 0; }
.hero.in .scroll-cue { animation: rise 1s 3.2s forwards; }
.scroll-cue i { width: 1px; height: 28px; background: linear-gradient(var(--ink-2), rgba(92,75,79,0)); transform-origin: 50% 0; }
.hero.in.live .scroll-cue i { animation: cue 1.8s ease-in-out 3.6s infinite; }
@keyframes rise { to { opacity: 1; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* script headings write themselves in */
.script-title.fx { text-shadow: none; }
.script-title.fx .w { display: inline-block; padding: 0 .12em; clip-path: inset(-30% 100% -30% 0); }
.script-title.fx.in .w { animation: write 1.5s cubic-bezier(.45,.05,.3,1) .15s forwards; }
@keyframes write { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -4% -30% -4%); } }

/* tiles: a soft light passes over them, inviting a scratch; values pop when revealed */
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(115deg, rgba(255,230,220,0) 35%, rgba(255,230,220,.22) 50%, rgba(255,230,220,0) 65%) -150% 0 / 300% 100% no-repeat; }
.tiles.in .tile:not(.open)::after { animation: tileShine 3.4s ease-in-out 1s infinite; }
.tiles.in .tile:nth-of-type(2):not(.open)::after { animation-delay: 1.25s; } .tiles.in .tile:nth-of-type(3):not(.open)::after { animation-delay: 1.5s; }
@keyframes tileShine { 0% { background-position: -150% 0; } 45%, 100% { background-position: 150% 0; } }
.tile.open .t-val b { animation: pop .7s cubic-bezier(.34,1.56,.64,1) both; }
.tile.open .t-val small { animation: rise .6s .25s both; opacity: 0; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.save-wrap.show .btn-line { animation: pop .7s cubic-bezier(.34,1.56,.64,1) .2s both; }

/* countdown digits drop in */
.countdown b.tick { animation: tick .45s cubic-bezier(.2,.7,.3,1); }
@keyframes tick { from { transform: translateY(-8px); opacity: .2; } to { transform: none; opacity: 1; } }

/* schedule: diamonds flare as the line reaches them */
.tl-dia { transition: background .4s, box-shadow .4s, transform .5s cubic-bezier(.34,1.56,.64,1); }
.tl-item.lit .tl-dia { background: #C79A52; box-shadow: 0 0 0 3px rgba(176,138,78,.18), 0 0 12px 2px rgba(230,180,100,.55); transform: rotate(45deg) scale(1.25); }
.tl-item .tl-dia::after { content: ""; position: absolute; inset: -6px; border: 1px solid var(--gold); opacity: 0; }
.tl-item.lit .tl-dia::after { animation: ring 1.1s ease-out; }
@keyframes ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

/* venue: the arch outline draws itself; the card lifts a little */
.v-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.v-svg path { fill: none; stroke: #BFAFB1; stroke-width: .34; stroke-dasharray: 1; stroke-dashoffset: 1; }
.v-card.in .v-svg path { transition: stroke-dashoffset 2.4s cubic-bezier(.45,.05,.3,1) .3s; stroke-dashoffset: 0; }
.v-card.fx { transform: translateY(26px) scale(.98); }
.v-card.fx.in { transform: none; }
.v-arch > *:not(.v-svg) { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.v-card.in .v-arch > *:not(.v-svg) { opacity: 1; transform: none; }
.v-card.in .v-arch > :nth-child(2) { transition-delay: .9s; } .v-card.in .v-arch > :nth-child(3) { transition-delay: 1.05s; }
.v-card.in .v-arch > :nth-child(4) { transition-delay: 1.2s; } .v-card.in .v-arch > :nth-child(5) { transition-delay: 1.3s; }
.v-card.in .v-arch > :nth-child(6) { transition-delay: 1.4s; } .v-card.in .v-arch > :nth-child(7) { transition-delay: 1.5s; }
.v-card.in .v-arch > :nth-child(8) { transition-delay: 1.6s; } .v-card.in .v-arch > :nth-child(9) { transition-delay: 1.75s; }
.form-card .v-arch, .form-card.fx { transform: none; }

/* closing: the monogram glints gold and little stars twinkle round it */
.c-mono-wrap { position: relative; display: inline-block; padding: 0 30px; }
.c-mono.fx { text-shadow: none; }
.c-mono span, .c-mono .amp {
  background: linear-gradient(105deg, #9A7539 0%, #9A7539 40%, #E8C98A 50%, #9A7539 60%, #9A7539 100%) 100% 0 / 260% 100% repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.closing.live .c-mono.in span, .closing.live .c-mono.in .amp { animation: nameShine 3.2s ease-in-out 1s infinite; }
.twinkles i { position: absolute; font-style: normal; font-size: 12px; color: #C9A062; opacity: 0; }
.closing.live .twinkles i { animation: twinkle 2.6s ease-in-out infinite; }
.twinkles i:nth-child(1) { left: 0; top: 20%; animation-delay: .2s; } .twinkles i:nth-child(2) { right: 0; top: 10%; animation-delay: 1.1s; font-size: 9px; }
.twinkles i:nth-child(3) { left: 14%; top: -10%; animation-delay: 1.8s; font-size: 8px; } .twinkles i:nth-child(4) { right: 12%; top: 78%; animation-delay: .6s; }
.twinkles i:nth-child(5) { left: 6%; top: 82%; animation-delay: 2.2s; font-size: 9px; } .twinkles i:nth-child(6) { right: 26%; top: -14%; animation-delay: 1.5s; font-size: 10px; }
.twinkles i:nth-child(7) { left: 40%; top: 98%; animation-delay: .9s; font-size: 8px; } .twinkles i:nth-child(8) { right: -4%; top: 46%; animation-delay: 2.6s; font-size: 9px; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* buttons: a quick glint when they arrive */
.btn-line { position: relative; overflow: hidden; }
.btn-line::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.7), rgba(255,255,255,0)); pointer-events: none; }
.fx.in .btn-line::after, .btn-line.fx.in::after, .save-wrap.show .btn-line::after, .v-card.in .btn-line::after { animation: glint 1.2s ease-in-out 1.6s; }
@keyframes glint { from { left: -60%; } to { left: 130%; } }

/* calm: reduced motion or catalogue preview — everything at rest */
.calm .hero-img { transform: none; transition: none; }
.calm .script-title.fx .w { clip-path: none; }
.calm .v-svg path { stroke-dashoffset: 0; }
.calm .v-arch > *:not(.v-svg) { opacity: 1; transform: none; }
.calm .fireflies, .calm .twinkles, .calm .sheen, .calm .progress { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-img { transform: none !important; }
  .script-title.fx .w { clip-path: none !important; }
  .v-svg path { stroke-dashoffset: 0 !important; }
  .v-arch > *:not(.v-svg) { opacity: 1 !important; transform: none !important; }
  .hero .h-one, .hero .h-two { opacity: 1 !important; transform: none !important; }
}

/* hero text: a soft blush glow keeps it readable over the palace */
.hero-text::before { content: ""; position: absolute; z-index: -1; left: -16%; right: -16%; top: -14%; bottom: -18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,240,230,.62), rgba(255,236,222,.34) 55%, rgba(255,236,222,0)); opacity: 0; transition: opacity 1.6s .6s; }
.hero.in .hero-text::before { opacity: 1; }
.hero-text { will-change: transform, opacity; }

/* envelope pocket monogram: a gold glint while the section is on screen */
.pm span, .pm .amp { background: linear-gradient(105deg, #EBD6C4 0%, #EBD6C4 40%, #FFF3D6 50%, #EBD6C4 60%, #EBD6C4 100%) 100% 0 / 260% 100% repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#families.live .pm span, #families.live .pm .amp { animation: nameShine 3.4s ease-in-out .8s infinite; }

/* music button: a soft halo pulses while the music plays */
.sound-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(91,26,40,.55); opacity: 0; pointer-events: none; }
.sound-btn.on::after { animation: halo 2.4s ease-out infinite; }
@keyframes halo { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.calm .hero-text::before { opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) { .hero-text::before { opacity: 1 !important; } }

/* ===== couple edition: venue list, verse ===== */
.v-list { display: grid; gap: 30px; margin-top: 34px; }
.v-list .v-card { margin: 0 auto; }
.v-what { margin: 0 0 6px !important; font-weight: 600; font-size: 12px !important; letter-spacing: .3em; text-transform: uppercase; color: var(--maroon-3) !important; }
.v-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.v-btns .btn-line { min-width: 200px; }
.verse { position: relative; max-width: 320px; margin: 0 auto 46px; padding: 26px 18px 22px; border-top: 1px solid rgba(176,138,78,.45); border-bottom: 1px solid rgba(176,138,78,.45); }
.verse .v-star { position: absolute; left: 50%; top: -10px; margin-left: -10px; width: 20px; background: #F6F1F0; color: var(--gold); font-size: 14px; line-height: 20px; }
.verse-ar { margin: 0; font-family: "Amiri", serif; font-size: 30px; line-height: 1.7; color: var(--maroon); }
.verse-en { margin: 8px 0 0; font-style: italic; font-size: 18px; color: var(--ink-2); }
.verse-ref { margin: 6px 0 0; font-weight: 600; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }

/* ================= v1.3: story, gallery, dividers, light rays ================= */
/* gold dividers that draw themselves */
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 28px; max-width: 220px; }
.divider i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(176,138,78,0), var(--gold)); transform: scaleX(0); transition: transform 1.3s cubic-bezier(.45,.05,.3,1) .1s; }
.divider i:last-child { background: linear-gradient(90deg, var(--gold), rgba(176,138,78,0)); }
.divider i:first-child { transform-origin: 100% 50%; } .divider i:last-child { transform-origin: 0 50%; }
.divider b { font-weight: 400; font-size: 13px; color: var(--gold); transform: scale(0) rotate(-90deg); transition: transform .8s cubic-bezier(.34,1.56,.64,1); }
.divider.fx { transform: none; text-shadow: none; }
.divider.in i { transform: scaleX(1); } .divider.in b { transform: none; }

/* hero: soft light rays falling through the arch */
.rays { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 70%; pointer-events: none; overflow: hidden; mix-blend-mode: soft-light; opacity: 0; transition: opacity 2.5s 1s; }
.hero.in .rays { opacity: 1; }
.rays i { position: absolute; top: -20%; left: 50%; width: 34%; height: 140%; margin-left: -17%; transform-origin: 50% 0;
  background: linear-gradient(rgba(255,244,220,.75), rgba(255,240,215,0) 75%); filter: none; clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.rays i:nth-child(1) { transform: rotate(-16deg); } .rays i:nth-child(2) { transform: rotate(2deg); opacity: .8; } .rays i:nth-child(3) { transform: rotate(18deg); opacity: .7; }
.hero.in.live .rays i { animation: ray 9s ease-in-out infinite; } .hero.in.live .rays i:nth-child(2) { animation-delay: -3s; } .hero.in.live .rays i:nth-child(3) { animation-delay: -6s; }
@keyframes ray { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

/* letter: settles with a little glow once it is fully out */
.letter { transition: box-shadow 1s; }
.letter.out { box-shadow: 0 0 0 1px #E3D8D8, 0 0 0 6px rgba(201,160,98,.12), 0 -10px 30px -10px rgba(176,138,78,.45); }

.calm .divider i, .calm .divider b { transform: none; transition: none; }
.calm .rays { display: none; } .calm .cd-block { transition: none; }
@media (prefers-reduced-motion: reduce) { .divider i, .divider b { transform: none !important; } .rays { display: none !important; } }
