/* =========================================================================
   BeezInvite — "Luxe" layer
   Loaded AFTER invite.css. Purely additive: it never changes markup, PHP data
   or JS behaviour, and every colour is derived from the template's own theme
   variables (--p, --a, --bg, --t), so each design keeps its palette.

   Scope rules (so the 30 hand-built skins keep their identity):
   - SERIF layouts  (formal / traditional / romantic) get the editorial type,
     glass cards, foil names and the staged hero entrance.
   - ALL layouts get: floating-label forms, press/loading states, success
     states, the glass dock with active-section marker, gentler scroll reveal,
     and the split desktop layout for RSVP + guestbook.
   - Layouts that already own a treatment (royal / aurora / deco foil names,
     party / retro / modern buttons…) are left alone where they would clash.

   Kill-switch for motion on thumbnails / editor previews: --lx-t: 0.
   ========================================================================= */

body.inv {
  --lx-ease: cubic-bezier(.22, 1, .36, 1);
  --lx-spring: cubic-bezier(.34, 1.56, .64, 1);
  --lx-display: 'Cormorant Garamond', var(--hf), Georgia, serif;
  --lx-ui: 'Montserrat', var(--bf), system-ui, sans-serif;
  --lx-hair: color-mix(in srgb, var(--p) 20%, transparent);
  --lx-glow: color-mix(in srgb, var(--p) 42%, transparent);
  --lx-hi: rgba(255, 255, 255, .6);
  --lx-glint: var(--a-ink); /* the band of light that crosses the names: always a readable tone */
  --lx-t: 1; /* motion time-scale; 0 = instant */
}

body.inv.is-dark { --lx-hi: rgba(255, 255, 255, .09); --lx-glint: color-mix(in srgb, var(--a-ink) 70%, #fff); }

body.inv.is-embed, body.inv.mode-thumb { --lx-t: 0; }

/* ---- Layout groups (kept in one place so they are easy to edit) -----------
   SERIF  : classic royal floral romance temple peacock lotus mandap boho watercolor celestial festive
   NAMED  : SERIF minus royal (royal animates its own names)
   FOIL   : classic floral romance temple peacock lotus mandap boho watercolor
   -------------------------------------------------------------------------- */

/* =========================================================================
   1. ATMOSPHERE — a whisper of paper grain on the formal designs
   ========================================================================= */

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive):not(.is-embed):not(.mode-thumb)::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================================
   2. TYPE — editorial serif for headings, quiet sans for details
   ========================================================================= */

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .sec-title .kick {
    font-family: var(--lx-display); font-style: italic; font-weight: 500;
    font-size: clamp(1.1rem, 2.6vw, 1.3rem); letter-spacing: .02em; text-transform: none;
    color: var(--a-ink); margin-bottom: .3rem;
  }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .sec-title h2,
body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .foot-names {
    font-family: var(--lx-display); font-weight: 500; letter-spacing: -.012em; line-height: 1;
  }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .sec-title h2 { font-size: clamp(2.5rem, 9vw, 4.4rem); }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .sec-title::after {
    content: ''; display: block; width: 64px; height: 1px; margin: 20px auto 0;
    background: linear-gradient(90deg, transparent, var(--a), transparent);
    transform: scaleX(0); transition: transform calc(1.4s * var(--lx-t)) var(--lx-ease) .3s;
  }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .sec-title.reveal.in::after,
body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .reveal.in .sec-title::after { transform: scaleX(1); }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .message { font-family: var(--lx-display); font-weight: 500; font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.65; max-width: 38ch; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .dear { font-family: var(--lx-ui); font-size: .95rem; letter-spacing: .03em; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .dear b { font-family: var(--lx-display); font-weight: 500; font-size: 1.9em; letter-spacing: 0; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .closing { font-family: var(--lx-display); font-size: 1.3rem; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .cd b,
body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .ev-date b,
body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .event h3,
body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .detail p,
body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .wish p { font-family: var(--lx-display); }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .cd b { font-weight: 500; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .event h3 { font-weight: 600; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .ev-when,
body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .ev-where,
body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .detail small,
body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .wish cite { font-family: var(--lx-ui); letter-spacing: .02em; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .ev-when,
body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .ev-where { font-size: .88rem; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .detail p { font-size: 1.25rem; font-weight: 600; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .wish p { font-size: 1.2rem; line-height: 1.5; font-style: italic; font-weight: 500; }

/* =========================================================================
   3. SURFACES — frosted paper cards with a lit top edge
   ========================================================================= */

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .card {
    background: color-mix(in srgb, var(--card-bg) 74%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--lx-hair);
    box-shadow: inset 0 1px 0 var(--lx-hi), 0 1px 2px color-mix(in srgb, var(--p) 10%, transparent), 0 36px 60px -40px var(--lx-glow);
  }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .event { border-radius: 30px; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .form { border-radius: 32px; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .detail { border-radius: 22px; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .wish { border-radius: 20px; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .map { border-radius: 26px; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .quiz { border-radius: 28px; }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .cd > div { border-color: var(--lx-hair); box-shadow: inset 0 1px 0 var(--lx-hi), 0 24px 40px -30px var(--lx-glow); }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .ev-date { box-shadow: 0 0 0 6px color-mix(in srgb, var(--p) 12%, transparent), 0 0 0 7px var(--lx-hair); }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .event { transition-timing-function: var(--lx-ease); }

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .event:hover { box-shadow: inset 0 1px 0 var(--lx-hi), 0 2px 4px color-mix(in srgb, var(--p) 12%, transparent), 0 44px 70px -38px var(--lx-glow); }

/* =========================================================================
   4. HERO — one staged entrance, held until the envelope/seal is opened
   ========================================================================= */

@keyframes lxRise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes lxFoil { from { background-position: 100% 0; } to { background-position: 0 0; } }

@keyframes lxFade { from { opacity: 0; } to { opacity: .7; } }

body.inv .hero .h-head { animation-delay: calc(.25s * var(--lx-t)); }

body.inv .hero .h-second { animation-delay: calc(.8s * var(--lx-t)); }

body.inv .hero .h-sub { animation-delay: calc(.95s * var(--lx-t)); }

body.inv .hero .h-date { animation-delay: calc(1.15s * var(--lx-t)); }

body.inv:is(.layout-classic, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .hero .names {
  animation: lxRise calc(1.5s * var(--lx-t)) var(--lx-ease) calc(.45s * var(--lx-t)) both;
}

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .hero .scroll-cue {
  animation: lxFade calc(1.2s * var(--lx-t)) ease calc(1.8s * var(--lx-t)) both;
}

/* Foil-stamp: one slow band of light crosses the names, then they settle into their normal colour. */

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body.inv:is(.layout-classic, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor) .hero .names {
    background-image: linear-gradient(100deg, var(--p-ink) 0 38%, var(--lx-glint) 50%, var(--p-ink) 62% 100%);
    background-size: 250% 100%; background-position: 100% 0; background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; text-shadow: none;
    animation:
      lxRise calc(1.5s * var(--lx-t)) var(--lx-ease) calc(.45s * var(--lx-t)) both,
      lxFoil calc(2.8s * var(--lx-t)) var(--lx-ease) calc(1.3s * var(--lx-t)) both;
  }
  body.inv:is(.layout-classic, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor) .hero .names .amp {
    -webkit-text-fill-color: var(--a-ink); color: var(--a-ink);
  }
}

/* wait behind the intro gate; start the moment it opens */

body.intro-on .hero :is(.h-head, .names, .h-second, .h-sub, .h-date, .scroll-cue),
body.intro-on .dock { animation-play-state: paused !important; }

/* =========================================================================
   5. SCROLL REVEAL — shorter travel, longer settle (replaces the 28px slide)
   ========================================================================= */

body.inv .reveal { transform: translateY(16px); transition: opacity 1.1s var(--lx-ease), transform 1.1s var(--lx-ease); }

body.inv .reveal.in { transform: none; }

/* =========================================================================
   6. BUTTONS — larger targets, press feedback, one sheen on hover
   ========================================================================= */

body.inv .ibtn {
  min-height: 48px; position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: transform .5s var(--lx-ease), box-shadow .5s var(--lx-ease), background .3s, color .3s, border-color .3s, opacity .3s;
}

body.inv .ibtn-sm { min-height: 44px; }

body.inv .ibtn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--lx-ease);
}

body.inv .ibtn:hover::after { transform: translateX(120%); }

body.inv .ibtn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }

body.inv:is(.layout-classic, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .ibtn {
  font-family: var(--lx-ui); font-weight: 500; font-size: .88rem; letter-spacing: .05em;
}

body.inv:is(.layout-classic, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .ibtn-ghost {
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Loading: the button shimmers and shows a spinner (class set by invite-luxe.js while the request is in flight) */

@keyframes lxSweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

@keyframes lxSpin { to { transform: rotate(360deg); } }

@keyframes lxBar { from { background-position: -60% 0; } to { background-position: 160% 0; } }

body.inv .ibtn.is-loading { pointer-events: none; cursor: progress; opacity: .92; }

body.inv .ibtn.is-loading::after { transform: none; animation: lxSweep 1.1s ease-in-out infinite; }

body.inv .ibtn.is-loading::before {
  content: ''; width: 1em; height: 1em; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: lxSpin .7s linear infinite;
}

/* =========================================================================
   7. FORMS — floating labels, soft focus glow, springy choices
   (floating layout only applies once invite-luxe.js has run, so a failed
   script never leaves a label sitting on top of typed text)
   ========================================================================= */

body.inv .form { position: relative; }

html.lx-js body.inv .fld { position: relative; display: block; }

html.lx-js body.inv .fld > span {
  position: absolute; z-index: 2; left: 1.1em; top: 1.05em; max-width: calc(100% - 2.4em);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  font-size: .95rem; font-weight: 400; letter-spacing: .01em; color: var(--muted);
  transform-origin: left top;
  transition: transform .4s var(--lx-ease), color .25s, letter-spacing .4s var(--lx-ease);
}

html.lx-js body.inv .fld :is(input, select, textarea) {
  min-height: 58px; padding: 1.65em 1.1em .5em;
  transition: border-color .3s, box-shadow .4s var(--lx-ease), background .3s;
}

html.lx-js body.inv .fld textarea { padding-top: 1.9em; min-height: 120px; }

html.lx-js body.inv .fld:focus-within > span,
html.lx-js body.inv .fld.is-filled > span {
  transform: translateY(-.72em) scale(.78); letter-spacing: .05em; font-weight: 500;
}
/* separate rule: a browser without :has() must not discard the one above */
html.lx-js body.inv .fld:has(input:-webkit-autofill) > span {
  transform: translateY(-.72em) scale(.78); letter-spacing: .05em; font-weight: 500;
}

html.lx-js body.inv .fld:focus-within > span { color: var(--p-ink); }

html.lx-js body.inv .fld :is(input, select, textarea):focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 14%, transparent), 0 14px 30px -16px var(--lx-glow);
}

/* placeholders only appear once the label has floated out of their way */

html.lx-js body.inv .fld :is(input, textarea)::placeholder { color: transparent; transition: color .3s; }

html.lx-js body.inv .fld:focus-within :is(input, textarea)::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }

/* select: custom chevron */

html.lx-js body.inv .fld select { appearance: none; -webkit-appearance: none; padding-right: 2.8em; cursor: pointer; }

html.lx-js body.inv .fld.is-select::after {
  content: ''; position: absolute; right: 1.3em; top: 50%; width: .55em; height: .55em; margin-top: -.42em;
  border-right: 1.6px solid var(--p-ink); border-bottom: 1.6px solid var(--p-ink);
  transform: rotate(45deg); pointer-events: none; transition: transform .35s var(--lx-ease);
}

html.lx-js body.inv .fld.is-select:focus-within::after { transform: rotate(225deg) translate(-2px, -2px); }

/* file picker (guest photo wall) */

body.inv .fld input[type="file"] { cursor: pointer; }

body.inv .fld input[type="file"]::file-selector-button {
  margin-right: .9em; padding: .45em 1em; border: 0; border-radius: 99px; cursor: pointer;
  background: color-mix(in srgb, var(--p) 14%, transparent); color: var(--p-ink);
  font: inherit; font-size: .85rem; font-weight: 600; transition: background .25s;
}

body.inv .fld input[type="file"]::file-selector-button:hover { background: color-mix(in srgb, var(--p) 24%, transparent); }

/* attending: springy choice chips */

body.inv .seg span {
  min-height: 52px; display: grid; place-items: center;
  transition: transform .45s var(--lx-spring), background .3s, color .3s, box-shadow .4s var(--lx-ease), border-color .3s;
}

body.inv .seg label:hover input:not(:checked) + span { border-color: var(--p); transform: translateY(-1px); }

body.inv .seg label:active span { transform: scale(.96); }

body.inv .seg input:checked + span { box-shadow: 0 14px 26px -16px var(--p); }

/* sending: hairline progress across the top of the card, fields soften */

body.inv .form.is-sending::after {
  content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--a), transparent) no-repeat; background-size: 45% 100%;
  animation: lxBar 1.1s ease-in-out infinite;
}

body.inv .form.is-sending .fld { opacity: .75; transition: opacity .3s; }

/* result: success reads as a confirmation, errors shake once */

@keyframes lxPop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

@keyframes lxShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

body.inv .form.done .form-msg:not(:empty) {
  display: flex; align-items: center; justify-content: center; gap: .65em;
  padding: .85em 1em; border-radius: 16px; background: color-mix(in srgb, var(--p) 10%, transparent);
  animation: lxPop .6s var(--lx-spring);
}

body.inv .form.done .form-msg:not(:empty)::before {
  content: '✓'; flex: none; width: 1.7em; height: 1.7em; display: grid; place-items: center;
  border-radius: 50%; background: var(--p); color: var(--btn-text); font-size: .8em; line-height: 1;
}

body.inv .form-msg.err { animation: lxShake .45s; }

body.inv .form.done :disabled { opacity: .55; }

/* =========================================================================
   8. DOCK — frosted pill with a marker for the section you're in
   ========================================================================= */

@keyframes lxDockIn { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%); } }

body.inv .dock {
  gap: 2px; background: color-mix(in srgb, var(--bg) 58%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--lx-hair);
  box-shadow: inset 0 1px 0 var(--lx-hi), 0 20px 40px -18px rgba(0, 0, 0, .4);
  animation: lxDockIn calc(.9s * var(--lx-t)) var(--lx-ease) calc(.9s * var(--lx-t)) both;
}

body.inv .dock :is(a, button) { width: 48px; height: 48px; position: relative; transition: background .3s, color .3s, transform .35s var(--lx-spring); }

body.inv .dock :is(a, button):active { transform: scale(.88); }

body.inv .dock a.is-active { background: color-mix(in srgb, var(--p) 16%, transparent); }

body.inv .dock a.is-active::after {
  content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--a);
}

/* Intro gate buttons (formal designs): frosted pill, wider tracking */

body.inv:is(.layout-classic, .layout-royal, .layout-floral, .layout-romance, .layout-temple, .layout-peacock, .layout-lotus, .layout-mandap, .layout-boho, .layout-watercolor, .layout-celestial, .layout-festive) .intro-btn {
  min-height: 52px; font-family: var(--lx-ui); font-weight: 500; letter-spacing: .28em;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* =========================================================================
   9. DESKTOP — balanced columns instead of one long stretched column
   ========================================================================= */

@media (min-width: 960px) {
  body.inv .sec-rsvp .wrap, body.inv .sec-wishes .wrap {
    width: min(1040px, 100%); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 88px); align-items: start;
  }
  body.inv .sec-rsvp .sec-title, body.inv .sec-wishes .sec-title { text-align: left; margin: 0; position: sticky; top: 96px; }
  body.inv .sec-rsvp .sec-title::after, body.inv .sec-wishes .sec-title::after { margin-left: 0; background: linear-gradient(90deg, var(--a), transparent); }
  body.inv .sec-wishes .wishes { grid-column: 1 / -1; }
  body.inv .sec-rsvp .sec-title h2, body.inv .sec-wishes .sec-title h2 { font-size: clamp(3rem, 5vw, 4.6rem); }
}

@media (min-width: 1100px) { body.inv .sec { padding-block: 130px; } }

/* =========================================================================
   9b. AMBIENT DEPTH — the existing background stays; three quiet layers sit on top of it, under the cards.
       Slow breathing (Ken Burns) wash · drifting blurred bokeh · floating baby's-breath florets.
       Everything animates with transform / opacity only (blur is static) → compositor-only, 60fps.
   ========================================================================= */

.lx-ambient { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; contain: strict; }
.lx-wash { position: absolute; inset: -8%; will-change: transform; transform-origin: 50% 40%;
  background:
    radial-gradient(48% 40% at 22% 18%, color-mix(in srgb, var(--a) 26%, transparent), transparent 70%),
    radial-gradient(52% 44% at 82% 70%, color-mix(in srgb, var(--p) 20%, transparent), transparent 72%),
    radial-gradient(60% 50% at 50% 100%, color-mix(in srgb, #fff 24%, transparent), transparent 70%);
  animation: lxKen 36s ease-in-out infinite alternate; }
.lx-bokeh i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), color-mix(in srgb, var(--a) 55%, #fff) 45%, transparent 72%);
  filter: blur(10px); opacity: 0; animation: lxBokeh var(--d) ease-in-out var(--dl) infinite; }
.lx-bokeh i[style*="--c:1"] { background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), color-mix(in srgb, var(--p) 45%, #fff) 45%, transparent 72%); }
.lx-bokeh i[style*="--c:2"] { background: radial-gradient(circle at 35% 35%, #fff, rgba(255, 244, 214, .85) 45%, transparent 72%); }
.is-dark .lx-bokeh i { mix-blend-mode: screen; }
.lx-florets b { position: absolute; left: var(--x); top: -6%; width: var(--s); height: var(--s); will-change: transform, opacity; opacity: 0; animation: lxFloat var(--d) linear var(--dl) infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23fff' fill-opacity='.95'%3E%3Ccircle cx='20' cy='9' r='7'/%3E%3Ccircle cx='31' cy='17' r='7'/%3E%3Ccircle cx='27' cy='30' r='7'/%3E%3Ccircle cx='13' cy='30' r='7'/%3E%3Ccircle cx='9' cy='17' r='7'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='4.2' fill='%23e9d8a6'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(18, 36, 26, .22)); }
@keyframes lxKen    { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes lxBokeh  { 0%, 100% { transform: translate3d(0, 0, 0) scale(.9); opacity: 0; } 25% { opacity: .38; } 50% { transform: translate3d(3vw, -4vh, 0) scale(1.1); opacity: .26; } 75% { opacity: .38; } }
@keyframes lxFloat  { 0% { transform: translate3d(0, 0, 0) rotate(var(--r)); opacity: 0; } 8% { opacity: .85; } 50% { transform: translate3d(5vw, 55vh, 0) rotate(calc(var(--r) + 120deg)); } 92% { opacity: .7; } 100% { transform: translate3d(-3vw, 112vh, 0) rotate(calc(var(--r) + 260deg)); opacity: 0; } }

/* Cards float above the background on their own parallax layer (JS writes --lx-py; `translate` never fights `transform`) */
body.inv:not(.mode-thumb) .card { translate: 0 var(--lx-py, 0px); will-change: translate;
  box-shadow: inset 0 1px 0 var(--lx-hi, rgba(255,255,255,.6)), 0 2px 4px color-mix(in srgb, var(--p) 10%, transparent), 0 28px 50px -30px var(--lx-glow, rgba(0,0,0,.3)), 0 60px 90px -60px rgba(18, 36, 26, .35); }
body.inv.is-embed .lx-bokeh i:nth-child(n+7), body.inv.is-embed .lx-florets b:nth-child(n+5) { display: none; }   /* lighter inside the phone preview */

/* Phone / embedded view: scrollbars hidden, scrolling untouched (touch, momentum, keyboard all keep working) */
html.is-embed, html.is-embed body, body.inv.is-embed, body.inv.is-embed * { scrollbar-width: none; -ms-overflow-style: none; }
html.is-embed::-webkit-scrollbar, body.inv.is-embed::-webkit-scrollbar, body.inv.is-embed *::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (max-width: 640px) { .tips-panel { scrollbar-width: none; -ms-overflow-style: none; } .tips-panel::-webkit-scrollbar { display: none; } }

/* =========================================================================
   10. REDUCED MOTION — everything lands in its final state immediately
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  body.inv { --lx-t: 0; }
  body.inv .ibtn::after, body.inv .ibtn.is-loading::before, body.inv .form.is-sending::after { animation: none !important; }
  body.inv .sec-title::after { transform: scaleX(1) !important; }
  body.inv .reveal { transform: none; }
  .lx-wash, .lx-bokeh i, .lx-florets b { animation: none !important; }
  .lx-florets { display: none; }
  .lx-bokeh i { opacity: .28; }
  body.inv .card { translate: none !important; }
}
