/* Invitation pages. Colours come from the --i-* variables set per design. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked, html.locked body { overflow: hidden; }
body.invite-page { margin: 0; background: #1c1a19; }
[hidden] { display: none !important; }

.inv {
  --col: 480px;
  position: relative; max-width: var(--col); margin: 0 auto; min-height: 100vh;
  background: var(--i-bg); color: var(--i-ink); overflow-x: clip;
  font: 400 16px/1.65 'Mukta', 'Segoe UI', system-ui, sans-serif; text-align: center;
  box-shadow: 0 0 60px rgba(0, 0, 0, .35);
}
.inv h1, .inv h2, .inv h3 { margin: 0; font-weight: 600; line-height: 1.2; font-family: 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif; overflow-wrap: anywhere; }
.inv h2 { font-size: 1.9rem; color: var(--i-deep); }
.inv h3 { font-size: 1.5rem; color: var(--i-accent); }
.inv p { margin: .35em 0; overflow-wrap: anywhere; }
.inv a { color: var(--i-accent); }
.inv img { max-width: 100%; display: block; }

/* names */
.names { display: flex; flex-direction: column; align-items: center; color: var(--i-hero); margin: 0; }
.names span { font-size: 15cqw; line-height: 1.05; font-weight: 400; max-width: 92cqw; }
.names em { font: italic 500 5.4cqw/1.6 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif; color: var(--i-hero-soft); }
.lettering-script .names span, .lettering-script .sign { font-family: 'Great Vibes', 'Tiro Devanagari Hindi', 'Brush Script MT', cursive; }
.lettering-classic .names span, .lettering-classic .sign { font-family: 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif; font-size: 13cqw; font-weight: 600; }
.lettering-royal .names span, .lettering-royal .sign { font-family: 'Cinzel', 'Yatra One', Georgia, serif; font-size: 11cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.inv .when { font: 600 4.2cqw 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif; letter-spacing: .08em; color: var(--i-hero-soft); margin-top: .6em; }
.inv .guest { padding: 0 12cqw; font: 600 3.6cqw 'Mukta', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--i-hero-soft); margin-bottom: .6em; }

/* the painted picture at the top */
.hero { container-type: inline-size; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1060px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-art svg { display: block; width: 100%; height: 100%; }
/* The artwork is 400 x 840 and pinned to the top, so the names are placed in the artwork's own height.
   That keeps them in the same clear patch of sky on short and tall phones alike. */
.hero-text { position: absolute; left: 4%; right: 4%; top: calc(max(210cqw, 100%) * var(--i-name-top) / 100); z-index: 2; }
.scroll-hint { position: absolute; z-index: 2; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.scroll-hint i { display: block; width: 1px; height: 22px; margin: 4px auto 0; background: currentColor; animation: drip 1.6s ease-in-out infinite; }
.embed .scroll-hint { display: none; }

/* sections */
.sec { position: relative; padding: 46px 24px; }
.sec:nth-of-type(even) { background: var(--i-paper); }
.sec.will { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.sec.will.in { opacity: 1; transform: none; }
.motif { width: 40px; height: 40px; color: var(--i-gold); display: block; margin: 0 auto; }
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 22px; }
.divider span { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--i-gold)); }
.divider span:last-child { transform: scaleX(-1); }
.divider .motif { width: 22px; height: 22px; margin: 0; }
.blessing.arch { margin: 28px 18px; padding: 54px 20px 38px; border: 1.5px solid var(--i-gold); border-radius: 220px 220px 18px 18px; background: var(--i-paper); outline: 1px solid var(--i-gold); outline-offset: 5px; }
.inv .inv-head { font: 400 1.35rem/1.6 'Tiro Devanagari Hindi', 'Amiri', serif; color: var(--i-accent); margin: 14px 0 10px; }
.inv .inv-body { font: 500 1.05rem/1.8 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif; }
.inv .lead { font: 500 1.2rem/1.65 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif; max-width: 34ch; margin-inline: auto; }
.hosts { font-weight: 600; color: var(--i-accent); letter-spacing: .04em; }
.person { margin: 20px 0; }
.person h3 { font-size: 2.3rem; }
.person .full { font-weight: 600; }
.person p, .small { font-size: .92rem; opacity: .85; }
.inv .amp { font: italic 500 1.5rem 'Cormorant Garamond', 'Tiro Devanagari Hindi', serif; color: var(--i-gold); }
.family { list-style: none; padding: 0; margin: 0; animation: rise .7s ease; }
.family li { padding: 10px 0; border-bottom: 1px dashed var(--i-gold); }
.family span { display: block; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--i-accent); }

.event { background: var(--i-bg); border: 1px solid color-mix(in srgb, var(--i-gold) 55%, transparent); border-radius: 120px 120px 16px 16px; padding: 28px 18px 18px; margin: 18px auto; max-width: 340px; }
.sec:nth-of-type(odd) .event, .sec:nth-of-type(odd) .card { background: var(--i-paper); }
.ico { width: 40px; height: 40px; color: var(--i-gold); margin: 0 auto 4px; display: block; }
.ev-date { font-weight: 600; }
.ev-venue { font: 600 1.15rem 'Cormorant Garamond', 'Tiro Devanagari Hindi', serif; margin-top: 10px !important; }
.note { font-style: italic; }
.chip { display: inline-block; font-size: .8rem; padding: 3px 12px; border-radius: 99px; border: 1px solid var(--i-gold); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .88rem; font-weight: 600; }

.portrait { margin: 0 auto 20px; width: 250px; max-width: 80%; padding: 8px; border: 1.5px solid var(--i-gold); border-radius: 160px 160px 14px 14px; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 150px 150px 8px 8px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery button:nth-child(3n + 1):last-child, .gallery button:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 90vh; border-radius: 8px; }
.lightbox button { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }

.sec.dark { background: var(--i-deep) !important; color: #fdf6e6; }
.sec.dark h2, .sec.dark .motif { color: #f6dc9c; }
.inv:not(.is3d) .sec.dark .btn.ghost { color: #f6dc9c !important; border-color: rgba(246, 220, 156, .7); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; }
.count div { border: 1px solid rgba(246, 220, 156, .5); border-radius: 60px 60px 10px 10px; padding: 16px 2px 10px; }
.count b { display: block; font: 600 1.9rem 'Cormorant Garamond', serif; font-variant-numeric: tabular-nums; }
.count span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

.card { background: var(--i-bg); border-radius: 16px; padding: 18px; margin: 12px auto; max-width: 340px; border: 1px solid color-mix(in srgb, var(--i-gold) 40%, transparent); }
.card h3 { font-size: 1.25rem; }
.swatches { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.25); }
.map { position: relative; margin: 14px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--i-gold); height: 230px; }
.map iframe, .map-stub { width: 100%; height: 100%; border: 0; }
.map-stub { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #e9e5da 0 14px, #f2eee3 14px 28px); color: #777; }
.map-lock { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.18); color: #fff; font: 600 14px 'Mukta', sans-serif; cursor: pointer; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.reach { list-style: none; margin: 0; padding: 0; }
.reach li { padding: 12px 0; border-bottom: 1px dashed var(--i-gold); }
.reach b { display: block; color: var(--i-accent); }
.video { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; }

.btn { display: inline-block; border: 1.5px solid var(--i-accent); border-radius: 99px; background: var(--i-accent); color: #fff !important; padding: 11px 26px; font: 600 15px 'Mukta', sans-serif; text-decoration: none; cursor: pointer; margin-top: 10px; }
.btn.ghost { background: transparent; color: var(--i-accent) !important; }
.btn:disabled { opacity: .6; }
.rsvp { display: grid; gap: 14px; text-align: left; max-width: 360px; margin: 14px auto 0; }
.rsvp label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.rsvp input:not([type]), .rsvp input[type=text], .rsvp select, .rsvp textarea { width: 100%; font: 16px 'Mukta', sans-serif; padding: 11px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--i-gold) 60%, transparent); background: #fff; color: #222; }
.rsvp fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rsvp legend { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.rsvp .pill { display: inline-block; }
.rsvp .pill input { position: absolute; opacity: 0; }
.rsvp .pill span { display: block; padding: 7px 15px; border: 1px solid var(--i-accent); border-radius: 99px; font-size: .86rem; cursor: pointer; }
.rsvp .pill input:checked + span { background: var(--i-accent); color: #fff; }
.rsvp .pill input:focus-visible + span { outline: 3px solid var(--i-gold); }
.rsvp .btn { justify-self: center; }
.rsvp .form-note { text-align: center; color: var(--i-accent); min-height: 1.2em; }
.rsvp .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.closing { padding-bottom: 90px; }
.closing .sign { font-size: 2.6rem; font-weight: 400; margin: 10px 0; text-transform: none; }
.made { margin-top: 30px !important; font-size: .78rem; opacity: .7; }

.music { position: fixed; z-index: 45; right: max(14px, calc(50% - var(--col) / 2 + 14px)); bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--i-gold); background: var(--i-deep); color: #fff; display: grid; place-items: center; cursor: pointer; }
.music svg { width: 20px; height: 20px; }
.music[aria-pressed=true] { animation: spin 6s linear infinite; }
.music[aria-pressed=false] { opacity: .75; }
.petals { position: fixed; z-index: 30; top: 0; left: 50%; transform: translateX(-50%); pointer-events: none; }
.watermark { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='150'%3E%3Ctext x='20' y='90' transform='rotate(-28 100 75)' font-family='sans-serif' font-size='28' font-weight='700' fill='%23808080' stroke='%23ffffff' stroke-width='.6'%3EPREVIEW%3C/text%3E%3C/svg%3E"); }

.demo-bar { position: sticky; top: 0; z-index: 55; display: flex; gap: 10px; align-items: center; justify-content: safe center; height: 46px; overflow-x: auto; white-space: nowrap; padding: 0 12px; background: #2a0a3a; border-bottom: 2px solid #ffc62e; color: #fff; font: 500 13px 'Mukta', sans-serif; }
.demo-bar a { color: #2a0a3a; background: #ffc62e; padding: 5px 14px; border-radius: 99px; text-decoration: none; font-weight: 700; }
.demo-bar a.plan { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); font-weight: 500; }
.demo-bar a.plan.on { background: #d6106f; border-color: #d6106f; color: #fff; }
.demo-bar ~ .inv .cover { top: 46px; height: calc(100% - 46px); }
.demo-bar .demo-faith { font: 500 13px 'Mukta', sans-serif; color: #2a0a3a; background: #fff; border: 0; border-radius: 99px; padding: 4px 10px; max-width: 170px; }

.twinkle { animation: twinkle 3.5s ease-in-out infinite; }
.inv .flame { animation: flicker 1.4s ease-in-out infinite; transform-origin: center bottom; transform-box: fill-box; }
.inv .bob { animation: bob 5s ease-in-out infinite; }

@keyframes twinkle { 50% { opacity: .2; } }
@keyframes flicker { 50% { transform: scaleY(1.18) skewX(3deg); } }
@keyframes bob { 50% { transform: translateY(5px); } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes pulse { 50% { filter: brightness(1.18); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inv * { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
@media (max-width: 480px) { .demo-bar { gap: 6px; font-size: 12px; } .demo-bar span { display: none; } .demo-bar a, .demo-bar a.plan { padding: 4px 11px; } }
.embed .music { display: none; }
.hero-text:has(.guest) { top: calc(max(210cqw, 100%) * (var(--i-name-top) - 3) / 100); }

/* ---------- new cards, in every design ---------- */
.lettering-italiana .names span, .lettering-italiana .sign { font-family: 'Italiana', 'Tiro Devanagari Hindi', Georgia, serif; font-weight: 400; }
.mi { display: block; width: 100%; height: 100%; overflow: visible; }
.mi-flicker .flame { animation: flicker 1.1s ease-in-out infinite; transform-origin: 50% 100%; transform-box: fill-box; }
.mi-swing { animation: swing 2.4s ease-in-out infinite; transform-origin: 50% 3px; }
.mi-rock { animation: swing 4.2s ease-in-out infinite; }
.mi-rock .glow, .mi-swing .glow { animation: twinkle 2.2s ease-in-out infinite; }
.mi-wave .cloth { animation: wave 1.5s ease-in-out infinite; transform-origin: 0 50%; transform-box: fill-box; }
.mi-spin { animation: spin 16s linear infinite; }
.mi-bob { animation: bob 3.4s ease-in-out infinite; }
.mi-fly { animation: fly 4.6s ease-in-out infinite; }
.mi-bounce { animation: hop 1.1s ease-in-out infinite; }
.mi-bounce .stick { animation: tap .55s ease-in-out infinite; transform-origin: 50% 60%; }
.mi-beat { animation: beat 1.5s ease-in-out infinite; }

.medals { display: flex; justify-content: center; align-items: center; gap: 12px; }
.medals i { font-style: normal; font-size: 1.3rem; color: var(--i-accent); animation: beat 1.5s ease-in-out infinite; }
.medal { display: block; width: 88px; height: 88px; padding: 3px; border-radius: 50%; background: conic-gradient(#ffd36a, #fff3b0, #c99a35, #fff3b0, #ffd36a); box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }
.medal img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.medal.big { width: 136px; height: 136px; margin: 0 auto 10px; }

.scratch { position: relative; width: 264px; max-width: 100%; height: 150px; margin: 10px auto; overflow: hidden; border-radius: 22px; border: 1.5px solid var(--i-gold); background: color-mix(in srgb, var(--i-gold) 12%, transparent); user-select: none; -webkit-user-select: none; }
.scratch-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.scratch-under b { font: 400 4.4rem/1 'Italiana', 'Cormorant Garamond', serif; color: var(--i-deep); }
.scratch-under small, .scratch-under span { font: 600 .98rem 'Mukta', sans-serif; letter-spacing: .06em; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .6s; }
.scratch.done canvas { opacity: 0; pointer-events: none; }
.inv .linklike { background: none; border: 0; padding: 4px 8px; color: var(--i-accent); text-decoration: underline; cursor: pointer; font: 500 .86rem 'Mukta', sans-serif; }

.album-up { display: grid; gap: 12px; margin: 14px auto 0; max-width: 340px; }
.album-name { display: grid; gap: 4px; text-align: left; font-size: .9rem; font-weight: 600; }
.album-name input { width: 100%; font: 16px 'Mukta', sans-serif; padding: 11px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--i-gold) 60%, transparent); background: #fff; color: #222; }
.album-buttons { display: grid; gap: 4px; }
.album-buttons .btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.album-buttons .btn:focus-within { outline: 3px solid var(--i-gold); outline-offset: 2px; }
.album-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.album-strip img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; border: 2px solid var(--i-gold); animation: popin .45s cubic-bezier(.2, 1.6, .4, 1); }
.album-up progress { width: 100%; accent-color: var(--i-gold); }
.album-status { font-weight: 600; }
.album-note { font-size: .8rem; opacity: .7; }

.upi-qr { margin: 10px auto 4px; width: 184px; }
.upi-qr canvas { display: block; width: 184px; height: 184px; border-radius: 12px; border: 4px solid #fff; }
.upi-id { font-weight: 700; user-select: all; }
.btn.wa { background: #1f9d50; border-color: #1f9d50; color: #fff !important; }
.rsvp.wish textarea { resize: vertical; }

.ask-float { position: fixed; z-index: 45; left: max(14px, calc(50% - var(--col) / 2 + 14px)); bottom: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #1f9d50; color: #fff !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); animation: hop 2.8s ease-in-out infinite; }
.ask-float svg { width: 26px; height: 26px; }
.embed .ask-float { display: none; }
.sky-lantern { position: fixed; z-index: 70; width: 74px; height: 74px; pointer-events: none; filter: drop-shadow(0 0 20px #ffb637); }

/* every button answers a touch */
.inv .btn, .rsvp .pill span, .inv .actions a, .music, .filmbtn { transition: translate .18s ease, scale .18s ease, filter .18s ease; }
.inv .btn:hover, .rsvp .pill span:hover, .inv .actions a:hover, .filmbtn:hover { translate: 0 -2px; filter: brightness(1.08); }
.inv .btn:active, .rsvp .pill span:active, .inv .actions a:active, .music:active, .filmbtn:active { scale: .94; }
.rsvp .pill input:checked + span { animation: popin .35s cubic-bezier(.2, 1.8, .4, 1); }

/* ---------- 3D invitations ---------- */
.inv.is3d { background: rgb(var(--w-veil)); color: var(--w-ink); }
.stage { position: fixed; z-index: 0; top: 0; bottom: 0; left: 50%; width: min(100%, var(--col)); transform: translateX(-50%); overflow: hidden; pointer-events: none; background: rgb(var(--w-veil)) center / cover no-repeat; }
.stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.stage.ready canvas { opacity: 1; }
.stage.flat canvas { display: none; }
.demo-bar ~ .inv .stage { top: 46px; }
.is3d .hero3d, .is3d main { position: relative; z-index: 1; }
.inv.covered .hero-text, .inv.covered .scroll-hint, .is3d.covered .hero3d, .is3d.covered main, .inv.covered > .music, .inv.covered > .filmbtn, .inv.covered > .ask-float, .inv.covered > .pgnav { visibility: hidden; }

.is3d h1, .is3d h2, .is3d h3, .is3d .sign { font-family: 'Italiana', 'Tiro Devanagari Hindi', Georgia, serif; font-weight: 400; }
.is3d h2 { font-size: 2.15rem; color: var(--w-name); }
.is3d h3 { font-size: 1.65rem; color: var(--w-accent); }
.is3d a { color: var(--w-accent); }
.is3d.lettering-script .names span, .is3d.lettering-script .sign { font-family: 'Great Vibes', 'Tiro Devanagari Hindi', cursive; }
.is3d.lettering-classic .names span, .is3d.lettering-classic .sign { font-family: 'Cormorant Garamond', 'Tiro Devanagari Hindi', serif; font-weight: 600; }
.is3d.lettering-royal .names span, .is3d.lettering-royal .sign { font-family: 'Cinzel', 'Yatra One', serif; font-weight: 700; }
.is3d .names span { font-size: 17cqw; line-height: 1.02; color: var(--w-name); }
.is3d .names em { color: var(--w-soft); }
.is3d.lettering-royal .names span { font-size: 11cqw; }
.is3d.lettering-classic .names span { font-size: 14cqw; }

.hero3d { height: 100svh; min-height: 580px; max-height: none; overflow: hidden; }
.hero3d::before { content: ''; position: absolute; inset: 0 0 38% 0; background: linear-gradient(rgba(var(--w-veil), .7), rgba(var(--w-veil), .44) 66%, transparent); pointer-events: none; }
.sky-text { position: absolute; z-index: 2; left: 4%; right: 4%; top: 7svh; text-shadow: 0 2px 18px rgba(var(--w-shadow), .9), 0 0 5px rgba(var(--w-shadow), .85); }
.is3d .sky-text .inv-head { color: var(--w-accent); font-size: 1.15rem; margin: 0 0 6px; padding: 0 12%; }
.is3d .sky-text .when { color: var(--w-soft); margin: .45em 0 0; font-size: 4.4cqw; }
.is3d .sky-text .when ~ .when { margin-top: 0; }
.is3d.opened:not(.previewing) .sky-text > * { animation: sky-in 1.3s cubic-bezier(.2, .8, .2, 1) both; }
.is3d.opened:not(.previewing) .sky-text > :nth-child(2) { animation-delay: .25s; }
.is3d.opened:not(.previewing) .sky-text > :nth-child(3) { animation-delay: .55s; }
.is3d.opened:not(.previewing) .sky-text > :nth-child(4) { animation-delay: .75s; }
.is3d .scroll-hint { color: var(--w-name); bottom: 78px; text-shadow: 0 1px 8px rgba(var(--w-shadow), .95); }
.is3d.previewing .scroll-hint, .is3d.embed .scroll-hint { bottom: 14px; }

.hang { position: absolute; z-index: 3; top: 0; width: 66px; height: auto; pointer-events: none; overflow: visible; }
.hang-l { left: 0; }
.hang-r { right: 0; }
.strand { animation: sway 4.6s ease-in-out infinite; }
.bulb { animation: twinkle 1.7s ease-in-out infinite; }

/* each card floats over the world, with room between them to look around */
.inv.is3d .sec { background: transparent; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: 74svh; padding: 0 18px 34px; }
.inv.is3d .sec.dark { background: transparent !important; color: var(--w-ink); }
.is3d .sec.dark h2 { color: var(--w-name); }
.inv.is3d.previewing .sec { min-height: 0; padding-top: 26svh; }
.inv.is3d .sec.closing { padding-bottom: 96px; }
.is3d .plate { position: relative; width: 100%; max-width: 372px; padding: 46px 20px 30px; border-radius: 126px 126px 20px 20px; background: var(--w-card); border: 1.5px solid var(--w-edge); box-shadow: 0 0 0 4px rgba(var(--w-shadow), .5), 0 24px 54px rgba(0, 0, 0, .34); }
.is3d .plate::after, .is3d .event::after { content: ''; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--w-edge) 42%, transparent); border-radius: 120px 120px 15px 15px; pointer-events: none; }
.is3d .plate.group { padding: 0; background: none; border: 0; box-shadow: none; }
.is3d .plate.group::after { display: none; }
.is3d .plate.group > h2 { text-shadow: 0 2px 14px rgba(var(--w-shadow), .95), 0 0 4px rgba(var(--w-shadow), .9); }
.is3d .orn { position: absolute; z-index: 2; top: 30px; width: 40px; height: 40px; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.is3d .orn-l { left: -9px; }
.is3d .orn-r { right: -9px; scale: -1 1; }
.divider3d { width: 30px; height: 30px; margin: 8px auto 16px; }
.mark { display: block; width: 58px; height: 58px; margin: 0 auto 6px; }
.inv.is3d .blessing .plate { padding-top: 54px; }
.is3d .inv-head { color: var(--w-accent); }

.is3d .event { position: relative; max-width: 348px; margin: 22px auto 26svh; padding: 38px 20px 24px; border-radius: 126px 126px 20px 20px; background: var(--w-card); border: 1.5px solid var(--w-edge); box-shadow: 0 0 0 4px rgba(var(--w-shadow), .5), 0 24px 54px rgba(0, 0, 0, .34); }
.is3d .event:last-child { margin-bottom: 0; }
.is3d.previewing .event { margin-bottom: 20px; }
.is3d .sec:nth-of-type(odd) .event { background: var(--w-card); }
.is3d .ico { color: var(--w-accent); width: 46px; height: 46px; animation: bob 3.2s ease-in-out infinite; }
.is3d .card, .is3d .sec:nth-of-type(odd) .card { background: color-mix(in srgb, var(--w-edge) 11%, transparent); border-color: color-mix(in srgb, var(--w-edge) 45%, transparent); }
.is3d .actions a { border: 1px solid var(--w-edge); border-radius: 99px; padding: 5px 14px; text-decoration: none; }
.is3d .chip { border-color: var(--w-edge); }
.is3d .count div { border-color: var(--w-edge); }
.is3d .count b { color: var(--w-name); font-family: 'Italiana', 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 400; }
.is3d .map { border-color: var(--w-edge); }
.is3d .closing .sign, .inv.is3d .sign { color: var(--w-name); }

.is3d .btn { border: 0; background: var(--w-btn); background-size: 220% 100%; color: var(--w-btnink) !important; font-weight: 700; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); animation: shine 3.4s ease-in-out infinite; }
.is3d .btn.ghost { background: transparent; color: var(--w-accent) !important; border: 1.5px solid var(--w-edge); box-shadow: none; animation: none; }
.is3d .btn.wa { background: #1f9d50; color: #fff !important; animation: none; }
.is3d .music { background: rgba(var(--w-shadow), .8); border-color: var(--w-edge); color: var(--w-name); }
.is3d .rsvp input:not([type]), .is3d .rsvp input[type=text], .is3d .rsvp select, .is3d .rsvp textarea, .is3d .album-name input { background: rgba(255, 252, 246, .97); color: #2b1730; border-color: var(--w-edge); }
.is3d .rsvp .pill span { border-color: var(--w-edge); }
.is3d .rsvp .pill input:checked + span { background: var(--w-btn); color: var(--w-btnink); border-color: transparent; font-weight: 700; }

.is3d [data-anchor].will { opacity: 0; transform: perspective(900px) translateY(60px) rotateX(16deg) scale(.93); transform-origin: 50% 100%; transition: opacity .7s ease, transform .95s cubic-bezier(.2, .9, .25, 1.15); }
.is3d [data-anchor].will.in { opacity: 1; transform: none; }

/* the chapel is the one daylight scene, so its words need a pale halo rather than a dark one */
.world-church .sky-text, .world-church .plate.group > h2 { text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 18px #fff; }

.filmbtn { position: fixed; z-index: 45; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; white-space: nowrap; padding: 9px 17px; border-radius: 99px; border: 1px solid var(--w-edge); background: rgba(var(--w-shadow), .82); color: var(--w-name); font: 600 13px 'Mukta', sans-serif; cursor: pointer; }
.filmbtn svg { width: 14px; height: 14px; }
.filmbtn.compact { left: auto; right: max(14px, calc(50% - var(--col) / 2 + 14px)); bottom: 74px; transform: none; justify-content: center; width: 46px; height: 46px; padding: 0; }
.filmbtn.compact span { display: none; }
.filming .music, .filming .ask-float, .filming .scroll-hint { opacity: 0; pointer-events: none; }
.filming .filmbtn { opacity: .5; }

@keyframes swing { 0%, 100% { rotate: -9deg; } 50% { rotate: 9deg; } }
@keyframes wave { 50% { transform: skewY(-7deg) scaleX(.88); } }
@keyframes fly { 0%, 100% { translate: 0 0; rotate: -5deg; } 25% { translate: 3px -6px; } 50% { translate: 0 -2px; rotate: 6deg; } 75% { translate: -3px -7px; } }
@keyframes hop { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -6px; } }
@keyframes tap { 50% { rotate: 8deg; } }
@keyframes beat { 0%, 100% { scale: 1; } 20% { scale: 1.16; } 40% { scale: 1; } 60% { scale: 1.1; } }
@keyframes beat-soft { 50% { scale: 1.045; } }
@keyframes sway { 50% { rotate: 3.2deg; } }
@keyframes popin { from { scale: .5; opacity: 0; } }
@keyframes shine { 0%, 40% { background-position: 100% 0; } 70%, 100% { background-position: -20% 0; } }
@keyframes sky-in { from { opacity: 0; translate: 0 22px; filter: blur(7px); } }

@media (prefers-reduced-motion: reduce) {
  .inv *, .ask-float { animation: none !important; }
}
