/* Guest invitation. One layout; each .t-* theme sets the tokens and ornaments. */
:root { --bg: #6d0f1f; --paper: #fff8ec; --ink: #3a1418; --muted: #7a5a50; --accent: #b8862b; --accent2: #8c1c2c;
  --env: #8c1c2c; --env2: #a52a3a; --head: #8a5a00; --names: 'Great Vibes', 'Noto Serif Bengali', serif; --body: 'Cormorant Garamond', 'Noto Serif Bengali', 'Hind Siliguri', serif; }
.t-floral { --bg: #f3efe7; --paper: #fffdf8; --ink: #2f3a33; --muted: #5f6d62; --accent: #7d9a7e; --accent2: #8f4f55; --head: #5f6d62;
  --env: #dfe7dc; --env2: #c8d6c5; --names: 'Cormorant Garamond', 'Noto Serif Bengali', serif; --body: 'Cormorant Garamond', 'Hind Siliguri', serif; }
.t-holud { --bg: #fff1b8; --paper: #fffaf0; --ink: #4a3410; --muted: #7a5c20; --accent: #f29e1f; --accent2: #3f6b25; --head: #8a5a00;
  --env: #f6b93b; --env2: #ffd36b; --names: 'Baloo Da 2', 'Hind Siliguri', sans-serif; --body: 'Hind Siliguri', sans-serif; }
.t-family { --bg: #eef0e8; --paper: #fffdf7; --ink: #2f3a33; --muted: #5a6a5e; --accent: #b9c4a7; --accent2: #4a6650; --head: #7a5a38;
  --env: #e6e0cf; --env2: #f1ece0; --names: 'Noto Serif Bengali', 'Cormorant Garamond', serif; --body: 'Hind Siliguri', sans-serif; }
.t-party { --bg: #2b2257; --paper: #fffaf3; --ink: #2b2257; --muted: #6a6390; --accent: #ff6b8b; --accent2: #0f766e; --head: #b4235a;
  --env: #8e7dff; --env2: #a99cff; --names: 'Baloo Da 2', 'Hind Siliguri', sans-serif; --body: 'Hind Siliguri', sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.t-classic { background: radial-gradient(circle at 50% 0, #8e1a2c, transparent 60%), repeating-radial-gradient(circle at 0 0, transparent 0 22px, rgba(255, 210, 120, .05) 22px 23px), var(--bg); }
.t-floral { background: radial-gradient(circle at 15% 10%, #f8e1e1, transparent 40%), radial-gradient(circle at 90% 90%, #e2ebdf, transparent 45%), var(--bg); }
.t-holud { background: linear-gradient(180deg, #ffe58a, #fff6d6 40%, #ffe9f0); }
.t-party { background: radial-gradient(circle at 20% 20%, #4b3a9e, transparent 50%), radial-gradient(circle at 80% 70%, #7a2f6e, transparent 50%), var(--bg); }

/* ---------- Envelope ---------- */
.stage { position: fixed; inset: 0; z-index: 10; display: grid; place-content: center; justify-items: center; gap: 28px; transition: opacity .6s 1.5s, visibility 0s 2.1s; }
.envelope { display: block; position: relative; width: min(78vw, 320px); aspect-ratio: 3 / 2; border: 0; padding: 0; background: none; cursor: pointer; perspective: 900px; animation: bob 2.4s ease-in-out infinite; }
.envelope > span { position: absolute; inset: 0; border-radius: 6px; }
.env-back { background: var(--env); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.env-letter { inset: 8px 14px 10px !important; background: var(--paper); border-radius: 4px; transition: transform .8s .5s cubic-bezier(.2, .8, .2, 1); }
.env-front { background: var(--env2); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); }
.env-flap { background: var(--env); filter: brightness(.92); clip-path: polygon(0 0, 100% 0, 50% 58%); transform-origin: top; transition: transform .6s ease-in; z-index: 2; }
.seal { inset: auto !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50% !important; z-index: 3;
  display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #e0554f, #9c1c1f); color: #ffe7c2; font: 600 16px/1 var(--body); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); transition: opacity .3s; }
.t-floral .seal { background: radial-gradient(circle at 35% 30%, #e7b3b6, #b9777c); }
.t-holud .seal { background: radial-gradient(circle at 35% 30%, #8fc06a, #4d7a2e); }
.t-party .seal { background: radial-gradient(circle at 35% 30%, #ffd36b, #ff8a3d); color: #3a1f00; }
.tap { margin: 0; color: var(--paper); font: 600 15px/1.4 'Hind Siliguri', sans-serif; letter-spacing: .04em; animation: pulse 1.8s ease-in-out infinite; }
.t-floral .tap, .t-holud .tap { color: var(--ink); }

.is-open .envelope { animation: none; }
.rewind, .rewind * { transition: none !important; animation: none !important; } /* ?play loop: snap shut before reopening */
.is-open .seal { opacity: 0; }
.is-open .env-flap { transform: rotateX(180deg); z-index: 0; }
.is-open .env-letter { transform: translateY(-55%); }
.is-open .stage { opacity: 0; visibility: hidden; pointer-events: none; }
.is-open .tap { opacity: 0; }

/* ---------- Card ---------- */
.card { position: relative; max-width: 520px; margin: 0 auto; padding: 28px 16px 24px; opacity: 0; }
.is-open .card { opacity: 1; transition: opacity .6s 1.2s; }
.frame { position: relative; background: var(--paper); border-radius: 18px; padding: 36px 22px 30px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.r { opacity: 0; transform: translateY(14px); }
.is-open .r { animation: up .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(1.3s + var(--n, 0) * .12s); }
.frame > .r:nth-child(2) { --n: 1 } .frame > .r:nth-child(3) { --n: 2 } .frame > .r:nth-child(4) { --n: 3 } .frame > .r:nth-child(5) { --n: 4 }
.frame > .r:nth-child(6) { --n: 5 } .frame > .r:nth-child(n+7) { --n: 6 }

.kicker { margin: 0 0 14px; color: var(--head); font: 700 15px/1.3 'Hind Siliguri', sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.photo { display: block; width: 132px; height: 132px; margin: 0 auto 10px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--accent); }
.mono { display: grid; place-items: center; background: var(--accent2); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent2) 70%, #fff), var(--accent2) 70%); color: var(--paper); font: 600 30px/1 var(--names); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); } /* no photo: a wax-seal monogram, not a blank disc (UX-REVIEW #5) */
.names, .venue, .parents, .events a { overflow-wrap: anywhere; }
.names { margin: 8px 0 6px; font: 400 clamp(40px, 12vw, 56px)/1.1 var(--names); color: var(--accent2); display: flex; flex-direction: column; align-items: center; }
.amp { font-size: .55em; color: var(--accent); margin: 2px 0; }
.turns { margin: 0 0 8px; font-weight: 600; color: var(--head); }
.parents { color: var(--muted); font-size: 15px; } .parents p { margin: 2px 0; }
.invite { margin: 14px auto 6px; max-width: 34ch; font-style: italic; font-size: 19px; }
:lang(bn) .invite, :lang(bn) .names { font-style: normal; } /* Bangla has no italic; a faked slant looks broken (UX-REVIEW #10) */
section { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(0, 0, 0, .14); border-top: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
h2 { margin: 0 0 8px; color: var(--head); font: 600 13px/1 'Hind Siliguri', sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.date { margin: 0; font-size: 22px; font-weight: 600; } .time { margin: 0 0 12px; color: var(--muted); }
.venue { margin: 0 0 12px; font-size: 20px; }
.countdown { display: flex; justify-content: center; gap: 8px; margin: 6px 0 16px; }
.countdown div { min-width: 62px; padding: 8px 4px; border-radius: 12px; background: rgba(0, 0, 0, .05); background: color-mix(in srgb, var(--accent) 12%, var(--paper)); }
.countdown b { display: block; font: 700 24px/1.1 'Hind Siliguri', sans-serif; color: var(--accent2); font-variant-numeric: tabular-nums; }
.countdown span { font: 12px/1 'Hind Siliguri', sans-serif; color: var(--muted); }
.countdown.done { font-weight: 600; color: var(--accent2); }
.events ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.events li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .14); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.events li span { color: var(--muted); font-size: 15px; } .events a { color: var(--accent2); font-size: 15px; }
.btn { display: inline-block; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 0; background: var(--accent2); color: #fff; font: 600 16px/24px 'Hind Siliguri', sans-serif; text-decoration: none; cursor: pointer; }
.btn.ghost { background: none; color: var(--accent2); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, .envelope:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.stage .envelope:focus-visible, .made a:focus-visible { outline-color: var(--paper); }

.rsvp form { display: grid; gap: 12px; text-align: left; font: 15px/1.4 'Hind Siliguri', sans-serif; }
.rsvp label { display: grid; gap: 4px; }
.rsvp input:not([type=radio]) { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .14); border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); font: inherit; font-size: 16px; background: #fff; color: #222; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice label { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .14); border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.rsvp .btn { justify-self: center; }
.thanks { font-weight: 600; color: var(--accent2); } .err { color: #b00020; margin: 0; }
.rsvp .more { margin: .6rem 0 0; font-size: .9em; } .rsvp .more a { color: inherit; }
.made { text-align: center; padding: 22px 0 8px; font: 14px/1.4 'Hind Siliguri', sans-serif; }
.made a { color: var(--paper); opacity: .85; text-decoration: none; } .made b { font-weight: 600; }
.t-floral .made a, .t-holud .made a { color: var(--ink); }

/* ---------- Theme ornaments ---------- */
.t-classic .frame { border: 2px solid var(--accent); outline: 1px solid var(--accent); outline-offset: -10px; background: linear-gradient(#fffaf0, #fbefd9); }
.mandala { display: block; width: 150px; margin: -6px auto -72px; position: relative; z-index: 1; color: #e6b75a; animation: spin 60s linear infinite; }
.t-classic .frame { padding-top: 84px; }
.fall { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.fall i { position: absolute; top: -20px; left: calc(var(--x) * 1%); width: 12px; height: 9px; border-radius: 12px 0; background: #e8475a; opacity: .75; animation: fall calc(var(--d) * 1s) linear infinite; animation-delay: calc(var(--x) * -.12s); }
.t-party .fall i { border-radius: 2px; width: 8px; height: 12px; background: hsl(calc(var(--x) * 37), 85%, 65%); }
/* the hidden card must not sit over the envelope and swallow the tap/click before it opens */
.card { z-index: 1; pointer-events: none; } .is-open .card { pointer-events: auto; }

.branch { display: block; width: 100%; max-width: 300px; margin: 0 auto -18px; color: var(--accent); position: relative; z-index: 1; }
.branch .bloom { color: var(--accent2); }
.draw { stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-open .draw { animation: draw 2.6s 1.4s ease forwards; }
.t-floral .names { font-style: italic; font-weight: 500; }
.t-floral .frame { border: 1px solid #dde5da; }

.garlands { display: flex; justify-content: space-between; height: 120px; margin: -28px -16px -40px; position: relative; z-index: 2; pointer-events: none; }
.garland { display: flex; flex-direction: column; align-items: center; transform-origin: top; animation: sway calc(3s + var(--i) * .3s) ease-in-out infinite alternate; }
.garland::before { content: ''; width: 1.5px; height: calc(10px + var(--i) * 3px); background: #5f8f3e; }
.garland i { width: 16px; height: 16px; margin-top: -3px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd36b, #f29e1f 60%, #d9730d); }
.garland i:nth-child(odd) { background: radial-gradient(circle at 40% 35%, #fff2a8, #ffc93c 60%, #e8a20c); }
.garland b { width: 10px; height: 14px; margin-top: -2px; border-radius: 0 0 50% 50%; background: #5f8f3e; }
.t-holud .frame { border: 3px dashed #f6c64f; padding-top: 52px; overflow: hidden; }
/* Alpona sits behind the photo and draws itself in. */
.t-holud .frame > .alpona { position: absolute; z-index: 0; left: 50%; top: 32px; width: 250px; transform: translateX(-50%); color: #e5731b; opacity: .35; pointer-events: none; }
.t-holud .frame > * { position: relative; }

.balloons { position: fixed; inset: auto 0 0; height: 0; z-index: 2; pointer-events: none; }
/* One burst of balloons as the card opens, rising along the sides so they don't cross the name (QA L7). */
.balloon { position: absolute; bottom: -100px; left: calc(var(--x) * 1%); width: 46px; opacity: 0; }
.is-open .balloon { animation: rise calc(4s + var(--i) * .5s) calc(.9s + var(--i) * .25s) ease-in 1 both; }
.t-party .frame { border-top: 8px solid; border-image: repeating-linear-gradient(90deg, #ff6b8b 0 20px, #ffc93c 0 40px, #5ad1c8 0 60px, #8e7dff 0 80px) 8; }

/* ---------- Preview watermark ---------- */
.watermark { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.watermark span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-28deg); width: 160vmax; padding: 10px 0; text-align: center; font: 700 18px/1.2 'Hind Siliguri', sans-serif; letter-spacing: .02em;
  color: rgba(255, 255, 255, .9); background: rgba(90, 70, 70, .35); white-space: nowrap; } /* one band, not a tile grid (UX-REVIEW #4) */

@keyframes up { to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { transform: scale(1.06); } } /* size, not opacity: the hint keeps full contrast */
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes fall { to { transform: translate(calc((var(--w) - 1.5) * 40px), 110vh) rotate(540deg); } }
@keyframes rise { from { opacity: 1; } to { opacity: 1; transform: translateY(-130vh) rotate(6deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .r, .draw { opacity: 1; transform: none; stroke-dashoffset: 0; }
  .fall, .balloons { display: none; }
}
@media (min-width: 700px) { .card { padding-top: 56px; } .frame { padding: 48px 48px 40px; } }
/* Wide tracking breaks Bangla conjuncts and vowel signs. */
:lang(bn) .kicker, :lang(bn) h2 { letter-spacing: .02em; text-transform: none; }
:lang(bn) .kicker { font-size: 18px; } :lang(bn) h2 { font-size: 16px; }

/* Language toggle (lang=both), per-event RSVP, gift. */
.lang { position: absolute; top: 12px; right: 12px; z-index: 20; display: flex; background: var(--paper); background: color-mix(in srgb, var(--paper) 88%, transparent); border-radius: 999px; padding: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); font: 600 14px/1 'Hind Siliguri', sans-serif; }
.lang a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; min-height: 32px; display: grid; place-items: center; }
.lang a[aria-current] { background: var(--accent2); color: var(--paper); }
.which { border: 0; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.which legend { width: 100%; margin-bottom: 6px; font-size: 15px; color: var(--muted); text-align: center; }
.which label { display: inline-flex; gap: 6px; align-items: center; font-size: 16px; }
.rsvp .which input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--accent2); }
.gift-num { font-size: 20px; margin: 6px 0 12px; } .gift-num span { color: var(--muted); font-size: 15px; margin-right: 4px; } .gift-num b { letter-spacing: .04em; }
.gift h2 { letter-spacing: .08em; }
.gift-num b { font-family: 'Hind Siliguri', sans-serif; font-weight: 600; }

/* Round 3: host line, extra photos, contact, reply-by. */
.host-line { margin: 10px 0 0; color: var(--head); font-weight: 600; }
.more-photos { display: flex; justify-content: center; gap: 10px; margin: 14px 0 4px; }
.more-photos img { width: 104px; height: 104px; object-fit: cover; border-radius: 14px; border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--accent), 0 6px 16px rgba(0, 0, 0, .12); }
.call { margin: 12px 0 0; font-size: 16px; color: var(--muted); } .call a { color: var(--accent2); font: 600 16px 'Hind Siliguri', sans-serif; white-space: nowrap; }
.by { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.cal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }

/* Shanti: aqiqah / family events. Soft, still, Bangla first. */
.t-family { background: radial-gradient(circle at 50% 0, #fdf8ec, transparent 55%), radial-gradient(circle at 10% 90%, #e1e8d9, transparent 45%), var(--bg); }
.t-family .seal { background: radial-gradient(circle at 35% 30%, #dcc9a2, #a8895a); color: #fffaf0; }
.t-family .tap, .t-family .made a { color: var(--ink); }
.moon { display: block; width: 190px; margin: 0 auto -34px; color: #b08d57; position: relative; z-index: 1; }
.moon .twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s calc(var(--i) * .6s) ease-in-out infinite; }
.t-family .frame { border: 1px solid #e3dccb; padding-top: 50px; }
.t-family .names { font-weight: 500; font-size: clamp(36px, 10vw, 48px); line-height: 1.3; }
.t-family .invite { font-style: normal; font-size: 18px; }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.7); } }
/* Round 4: Bismillah line, per-event note and calendar links. */
.bismillah { margin: 0 0 10px; color: var(--head); font-size: 15px; letter-spacing: .02em; }
.events .ev-note { color: var(--ink); font-size: 14px; font-style: normal; }
.events .ev-cal { font-size: 13px; } .events .ev-cal a { font-size: 13px; }
.wishes ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; text-align: left; max-height: 420px; overflow-y: auto; }
.wishes li { padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.wishes li p { margin: 0 0 4px; } .wishes li small { color: var(--muted); }
.wishes textarea { padding: 8px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); font: inherit; font-size: 16px; background: #fff; color: #222; resize: vertical; }
.music-btn { position: fixed; right: 14px; bottom: 14px; z-index: 30; width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: var(--paper); color: var(--accent2); font-size: 20px; cursor: pointer; opacity: .75; }
.music-btn.on { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- Shahi (Premium showpiece) ----------
   Tap → the wax seal cracks in two → the flap opens → the card slides out → velvet curtains part → the names are
   written in gold → each section, and the programme one event at a time, appears as it scrolls in (invite.js adds .seen).
   Everything that moves is transform/opacity (composited) except the short gold-ink mask on the names. */
.t-royal { --bg: #0f2a24; --paper: #fbf3df; --ink: #2a1d14; --muted: #6b5a45; --accent: #b8913a; --accent2: #6b1424; --head: #7a5a1c;
  --env: #efe0bd; --env2: #f8eed7; --gold: linear-gradient(100deg, #8a6420, #e9cf7c 35%, #b8892e 55%, #f3dc95 75%, #9c7428);
  --names: 'Great Vibes', 'Noto Serif Bengali', serif; --body: 'Cormorant Garamond', 'Noto Serif Bengali', 'Hind Siliguri', serif;
  background: radial-gradient(circle at 50% 18%, #1d4a3f, transparent 60%), repeating-linear-gradient(45deg, transparent 0 26px, rgba(233, 207, 124, .035) 26px 27px), var(--bg); }
.t-royal .tap, .t-royal .made a, .to { color: #f3dc95; }
.to { margin: 0; font: 400 clamp(30px, 9vw, 40px)/1.2 var(--names); text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); padding: 0 16px; }
.is-open .to { opacity: 0; transition: opacity .3s; } /* the opened flap would cover it; the card repeats it */
.t-family .to, .t-floral .to, .t-holud .to { color: var(--accent2); text-shadow: none; }
.t-royal .envelope { box-shadow: 0 0 0 1px #c9a24a; border-radius: 6px; }
.t-royal .env-back { background: linear-gradient(#e8d6ad, #efe0bd); }
.t-royal .env-front { background: linear-gradient(160deg, #fbf3df, #efe0bd); box-shadow: inset 0 0 0 2px rgba(184, 145, 58, .5); }
.t-royal .env-flap { background: linear-gradient(#e2cd9c, #efe0bd); filter: none; transition: transform .7s .45s ease-in; }
.t-royal .env-letter { background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(184, 145, 58, .18) 9px 10px), var(--paper); transition: transform 1s 1.05s cubic-bezier(.2, .8, .2, 1); }
.t-royal.is-open .env-letter { transform: translateY(-78%); }
/* The seal is two wax halves (::before/::after) under the initials; on open they crack apart and fall. */
.t-royal .seal { width: 76px; height: 76px; background: none; box-shadow: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); /* not box-shadow: clip-path would square it off */ color: #f3dc95; font: 600 17px/1 var(--body); }
.t-royal .seal::before, .t-royal .seal::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a3243a, #5c0f1f 70%); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .12), inset 0 0 0 7px rgba(243, 220, 149, .35);
  transition: transform .6s cubic-bezier(.5, 0, .8, .4), opacity .6s .2s; }
.t-royal .seal::before { clip-path: polygon(0 0, 52% 0, 44% 30%, 56% 52%, 46% 74%, 52% 100%, 0 100%); }
.t-royal .seal::after { clip-path: polygon(52% 0, 100% 0, 100% 100%, 52% 100%, 46% 74%, 56% 52%, 44% 30%); }
.t-royal.is-open .seal { opacity: 1; animation: crack .18s ease-out; }
.t-royal.is-open .seal::before { transform: translate(-30px, 70px) rotate(-38deg); opacity: 0; }
.t-royal.is-open .seal::after { transform: translate(30px, 76px) rotate(34deg); opacity: 0; }
.t-royal.is-open .seal { color: transparent; transition: color .2s; }
.t-royal .stage { transition: opacity .7s 2s, visibility 0s 2.7s; }
.t-royal.is-open .envelope { transform: scale(.9); transition: transform .8s 1.6s; }
.t-royal.is-open .card { transition: opacity .5s 1.9s; }
/* Curtains: behind the envelope at first (a velvet backdrop), then they part over the card. */
.curtains { position: fixed; inset: 0; z-index: 5; pointer-events: none; display: flex; }
.curtains i { flex: 1; will-change: transform; background:
  linear-gradient(180deg, transparent 88%, rgba(243, 220, 149, .9) 88% 89%, transparent 89% 91%, rgba(243, 220, 149, .55) 91% 92%, transparent 92%),
  repeating-linear-gradient(90deg, #4a0b16 0, #7d1a2c 18px, #9b2a3c 26px, #6a1324 38px, #4a0b16 48px); box-shadow: inset 0 -30px 50px rgba(0, 0, 0, .35); }
.curtains i:first-child { transform-origin: left; box-shadow: inset -12px 0 24px rgba(0, 0, 0, .45); }
.curtains i:last-child { transform-origin: right; box-shadow: inset 12px 0 24px rgba(0, 0, 0, .45); }
.t-royal.is-open .curtains i:first-child { animation: part-l 1.5s .3s cubic-bezier(.6, 0, .3, 1) both; }
.t-royal.is-open .curtains i:last-child { animation: part-r 1.5s .3s cubic-bezier(.6, 0, .3, 1) both; }
.t-royal.tapped .curtains i { animation-delay: 2.2s !important; }
/* Gold dust drifting up instead of petals. */
.t-royal .fall i { top: auto; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #f3dc95; box-shadow: 0 0 8px 2px rgba(243, 220, 149, .6); opacity: .7; animation-name: dust; }
.t-royal .card { z-index: 2; } .t-royal .stage { z-index: 6; }
.t-royal .frame { background: radial-gradient(circle at 50% 0, #fffaf0, transparent 70%), var(--paper); border: 1px solid #c9a24a; outline: 1px solid #c9a24a; outline-offset: -9px;
  box-shadow: 0 0 0 5px rgba(201, 162, 74, .25), 0 30px 80px rgba(0, 0, 0, .45); padding-top: 92px; }
.t-royal .frame::before, .t-royal .frame::after { content: '❖ ❖'; position: absolute; left: 16px; right: 16px; color: #b8913a; font-size: 16px; line-height: 1; text-align: justify; text-align-last: justify; pointer-events: none; }
.t-royal .frame::before { top: 15px; } .t-royal .frame::after { bottom: 15px; }
.arch { display: block; width: 210px; margin: 0 auto -100px; position: relative; z-index: 1; color: #b8913a; }
.t-royal .draw { stroke-dasharray: 700; stroke-dashoffset: 700; }
.t-royal.is-open .draw { animation: draw 2.4s .9s ease forwards; }
.t-royal.tapped .draw { animation-delay: 3s; }
.t-royal .kicker { color: #7a5a1c; }
.dear { margin: 0 0 6px; font: 400 26px/1.2 var(--names); color: var(--accent2); }
.t-royal .frame > :is(.dear, .bismillah):first-child { margin-top: 26px; } /* clear the arch's legs: the greeting or bismillah is wider than the arch */
.t-royal .names { font-size: clamp(46px, 14vw, 64px); }
.t-royal .names span:not(.amp) { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .12em; }
.t-royal .amp { color: #b8913a; font-family: 'Cormorant Garamond', 'Noto Serif Bengali', serif; font-size: .4em; letter-spacing: .3em; }
/* Scroll reveal: .r waits for .seen (JS); --d staggers the items that arrive together. Without JS the noscript rule shows all. */
.t-royal.is-open .r { animation: none; }
.t-royal.is-open .r.seen { animation: up .9s var(--d, 0s) cubic-bezier(.2, .8, .2, 1) both; }
.t-royal .names.seen span:not(.amp) { -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 250% 100% no-repeat; mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 250% 100% no-repeat;
  animation: write 1.5s calc(var(--d, 0s) + .4s) cubic-bezier(.45, .1, .4, 1) both; }
.t-royal .names.seen span:last-child { animation-delay: calc(var(--d, 0s) + 1.6s); }
.t-royal .names.seen .amp { animation: up .6s calc(var(--d, 0s) + 1.4s) both; }
/* The programme as a gold timeline; each event comes in after the one before it. */
.t-royal .events ol { position: relative; padding-left: 30px; gap: 14px; }
.t-royal .events ol::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#e9cf7c, #b8913a); transform-origin: top; transform: scaleY(0); }
.t-royal .events.seen ol::before { transform: scaleY(1); transition: transform 1.8s .3s ease-out; }
.t-royal .events li { position: relative; background: color-mix(in srgb, #e9cf7c 10%, var(--paper)); border-color: color-mix(in srgb, #b8913a 45%, transparent); opacity: 0; }
.t-royal .events li::before { content: ''; position: absolute; left: -27px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px #b8913a, 0 0 0 5px rgba(233, 207, 124, .35); }
.t-royal .events.seen li { animation: slide .8s calc(.4s + var(--k, 0) * .45s) cubic-bezier(.2, .8, .2, 1) both; }
.t-royal .events li:nth-child(2) { --k: 1 } .t-royal .events li:nth-child(3) { --k: 2 } .t-royal .events li:nth-child(4) { --k: 3 }
.t-royal .events li b { font-size: 20px; color: var(--accent2); }
.t-royal .btn { background: linear-gradient(#7d1a2c, #5c0f1f); box-shadow: 0 0 0 1px #c9a24a, 0 6px 18px rgba(92, 15, 31, .3); }
.t-royal .btn.ghost { background: none; color: var(--accent2); box-shadow: inset 0 0 0 1.5px #b8913a; }
.t-royal .countdown div { background: color-mix(in srgb, #e9cf7c 16%, var(--paper)); box-shadow: inset 0 0 0 1px rgba(184, 145, 58, .4); }
.t-royal section { border-top: 0; background: linear-gradient(90deg, transparent, #c9a24a, transparent) top / 70% 1px no-repeat; }
@keyframes crack { 40% { transform: translate(-50%, -50%) scale(1.12) rotate(-4deg); } }
@keyframes part-l { to { transform: translateX(-102%) scaleX(.6); } }
@keyframes part-r { to { transform: translateX(102%) scaleX(.6); } }
@keyframes write { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes slide { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes dust { from { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } to { transform: translate(calc((var(--w) - 1.5) * 30px), -105vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .curtains { display: none; }
  .t-royal .r, .t-royal .events li { opacity: 1; transform: none; }
  .t-royal .events ol::before { transform: none; }
  .t-royal .names span:not(.amp) { -webkit-mask: none; mask: none; }
}

/* ---------- Shoishob (childhood polaroid) ----------
   A rose Mughal panel (lotus butas on the sides, an orange motif border) with a cream scalloped-arch window under a vine of
   fuchsias that sway. In the window: a taped polaroid that develops from milky white, the two childhood photos pop in as
   white-outlined stickers, their names and little hearts are doodled in, then "Save the Date". Static without motion. */
.t-shoishob { --bg: #fbf1e4; --paper: #fff9f1; --ink: #5a2a33; --muted: #85585d; --accent: #d97483; --accent2: #b4465c; --head: #b4465c;
  --env: #d97483; --env2: #e7929e; --rose: #dc7b89; --names: 'Great Vibes', 'Noto Serif Bengali', serif; --body: 'Cormorant Garamond', 'Noto Serif Bengali', 'Hind Siliguri', serif;
  background: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .14 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 0, #fff8ef, transparent 60%), var(--bg); }
.t-shoishob .tap, .t-shoishob .made a, .t-shoishob .to { color: var(--accent2); text-shadow: none; }
.t-shoishob .seal { background: radial-gradient(circle at 35% 30%, #fff3ea, #f2c4cb 70%); color: var(--accent2); font: 600 18px/1 'Playfair Display', var(--body); box-shadow: 0 0 0 2px #fff3ea, 0 0 0 3px #e39a6c, 0 4px 10px rgba(120, 40, 50, .3); }
.t-shoishob .env-letter { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42'%3E%3Cdefs%3E%3Cpattern id='p' width='14' height='14' patternUnits='userSpaceOnUse'%3E %3Cpath fill='%23e39a6c' d='M7 2c1.8 1.8 1.8 3.6 0 5-1.8-1.4-1.8-3.2 0-5zM7 12c-1.8-1.8-1.8-3.6 0-5 1.8 1.4 1.8 3.2 0 5zM2 7c1.8-1.8 3.6-1.8 5 0-1.4 1.8-3.2 1.8-5 0zM12 7c-1.8 1.8-3.6 1.8-5 0 1.4-1.8 3.2-1.8 5 0z'/%3E%3C/pattern%3E%3C/defs%3E %3Crect width='42' height='42' fill='%23fbf1e4'/%3E%3Crect width='42' height='42' fill='url(%23p)'/%3E%3C/svg%3E") 0 0 / 14px repeat, var(--paper); }
.t-shoishob .fall i { background: #f3aab8; opacity: .6; }
.t-shoishob .card { padding: 64px 8px 24px; }
.fuchsias { display: block; width: min(100%, 400px); margin: 0 auto -172px; position: relative; z-index: 3; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(90, 30, 40, .18)); overflow: visible; }
.fuchsias .fx { transform-box: view-box; animation: sway calc(3.2s + var(--i) * .35s) calc(var(--i) * -.7s) ease-in-out infinite alternate; }
.t-shoishob .frame { border: 14px solid #fbf1e4; border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42'%3E%3Cdefs%3E%3Cpattern id='p' width='14' height='14' patternUnits='userSpaceOnUse'%3E %3Cpath fill='%23e39a6c' d='M7 2c1.8 1.8 1.8 3.6 0 5-1.8-1.4-1.8-3.2 0-5zM7 12c-1.8-1.8-1.8-3.6 0-5 1.8 1.4 1.8 3.2 0 5zM2 7c1.8-1.8 3.6-1.8 5 0-1.4 1.8-3.2 1.8-5 0zM12 7c-1.8 1.8-3.6 1.8-5 0 1.4-1.8 3.2-1.8 5 0z'/%3E%3C/pattern%3E%3C/defs%3E %3Crect width='42' height='42' fill='%23fbf1e4'/%3E%3Crect width='42' height='42' fill='url(%23p)'/%3E%3C/svg%3E") 14 / 14px round; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='84' viewBox='0 0 30 84'%3E%3Cg fill='%23fdeee6'%3E %3Cpath d='M15 6c3.4 4.4 3.4 10 0 14.5-3.4-4.5-3.4-10.1 0-14.5z'/%3E%3Cpath d='M15 21c-1.6-5.4-5.6-8.6-10.4-8.8 1 5.4 5 8.6 10.4 8.8zM15 21c1.6-5.4 5.6-8.6 10.4-8.8-1 5.4-5 8.6-10.4 8.8z'/%3E %3Cpath d='M15 21.5c-4.4-1.4-9.4-.4-12.6 2.8 4.4 1.2 9.4.2 12.6-2.8zM15 21.5c4.4-1.4 9.4-.4 12.6 2.8-4.4 1.2-9.4.2-12.6-2.8z'/%3E %3Crect x='14.4' y='22' width='1.2' height='36'/%3E%3Cpath d='M15 42c-3-4.4-8.4-5.6-11.6-3.2 2.2 4.2 7.6 5.4 11.6 3.2zM15 35c3-4.4 8.4-5.6 11.6-3.2-2.2 4.2-7.6 5.4-11.6 3.2z'/%3E %3Cpath d='M15 50c-2-3.2-6.2-3.4-8.4-1.2 2 3.2 6.2 3.4 8.4 1.2zM15 50c2-3.2 6.2-3.4 8.4-1.2-2 3.2-6.2 3.4-8.4 1.2z'/%3E%3Cpath d='M8.5 58h13l-2.2 3.4h-8.6z'/%3E%3C/g%3E%3C/svg%3E") left 5px top 18px / 24px 68px repeat-y, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='84' viewBox='0 0 30 84'%3E%3Cg fill='%23fdeee6'%3E %3Cpath d='M15 6c3.4 4.4 3.4 10 0 14.5-3.4-4.5-3.4-10.1 0-14.5z'/%3E%3Cpath d='M15 21c-1.6-5.4-5.6-8.6-10.4-8.8 1 5.4 5 8.6 10.4 8.8zM15 21c1.6-5.4 5.6-8.6 10.4-8.8-1 5.4-5 8.6-10.4 8.8z'/%3E %3Cpath d='M15 21.5c-4.4-1.4-9.4-.4-12.6 2.8 4.4 1.2 9.4.2 12.6-2.8zM15 21.5c4.4-1.4 9.4-.4 12.6 2.8-4.4 1.2-9.4.2-12.6-2.8z'/%3E %3Crect x='14.4' y='22' width='1.2' height='36'/%3E%3Cpath d='M15 42c-3-4.4-8.4-5.6-11.6-3.2 2.2 4.2 7.6 5.4 11.6 3.2zM15 35c3-4.4 8.4-5.6 11.6-3.2-2.2 4.2-7.6 5.4-11.6 3.2z'/%3E %3Cpath d='M15 50c-2-3.2-6.2-3.4-8.4-1.2 2 3.2 6.2 3.4 8.4 1.2zM15 50c2-3.2 6.2-3.4 8.4-1.2-2 3.2-6.2 3.4-8.4 1.2z'/%3E%3Cpath d='M8.5 58h13l-2.2 3.4h-8.6z'/%3E%3C/g%3E%3C/svg%3E") right 5px top 18px / 24px 68px repeat-y, 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .14 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"), var(--rose);
  box-shadow: inset 0 0 0 4px var(--rose), inset 0 0 0 5.5px #fff3ea, 0 24px 60px rgba(140, 50, 60, .2); padding: 152px 44px 128px; }
/* The cream window: an arch on top (stretches with the width), straight sides below. */
.t-shoishob .frame::before { content: ''; position: absolute; inset: 22px 34px 26px; background: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .14 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(#fffaf2, #fdf3e8); box-shadow: 0 0 0 1px #fff3ea;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='600' viewBox='0 0 300 600'%3E%3Cpath d='M0 600V118A18 18 0 0 1 20 88A18 18 0 0 1 46 66A18 18 0 0 1 74 52A18 18 0 0 1 102 40A18 18 0 0 1 128 24A20 20 0 0 1 150 0A20 20 0 0 1 172 24A18 18 0 0 1 198 40A18 18 0 0 1 226 52A18 18 0 0 1 254 66A18 18 0 0 1 280 88A18 18 0 0 1 300 118V600z'/%3E%3C/svg%3E") top / 100% auto no-repeat, linear-gradient(#000, #000) 0 300px / 100% calc(100% - 300px) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='600' viewBox='0 0 300 600'%3E%3Cpath d='M0 600V118A18 18 0 0 1 20 88A18 18 0 0 1 46 66A18 18 0 0 1 74 52A18 18 0 0 1 102 40A18 18 0 0 1 128 24A20 20 0 0 1 150 0A20 20 0 0 1 172 24A18 18 0 0 1 198 40A18 18 0 0 1 226 52A18 18 0 0 1 254 66A18 18 0 0 1 280 88A18 18 0 0 1 300 118V600z'/%3E%3C/svg%3E") top / 100% auto no-repeat, linear-gradient(#000, #000) 0 300px / 100% calc(100% - 300px) no-repeat; }
.t-shoishob .frame::after { content: ''; position: absolute; left: 50%; bottom: 30px; width: 150px; height: 96px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='96' viewBox='0 0 150 96'%3E %3Cg fill='%236f9a5a'%3E%3Cpath d='M75 90C60 80 36 74 14 78C34 66 58 70 75 90z'/%3E%3Cpath d='M75 90C90 80 114 74 136 78C116 66 92 70 75 90z'/%3E%3Cpath d='M75 92C72 74 64 58 52 48C70 54 78 72 75 92z'/%3E%3C/g%3E %3Cg transform='translate(36 60) rotate(-35)'%3E%3Cpath d='M0 0C-7-4-12-16-9-26C-4-20 4-20 9-26C12-16 7-4 0 0z' fill='%23f2a9ba' stroke='%23e0899f' stroke-width='.8'/%3E%3C/g%3E %3Cg transform='translate(114 60) rotate(35)'%3E%3Cpath d='M0 0C-7-4-12-16-9-26C-4-20 4-20 9-26C12-16 7-4 0 0z' fill='%23f2a9ba' stroke='%23e0899f' stroke-width='.8'/%3E%3C/g%3E %3Cg transform='translate(75 52)' fill='%23f6b8c6' stroke='%23e0899f' stroke-width='.8'%3E%3Cpath transform='rotate(0)' d='M0 0C5-6 4.5-19 0-26C-4.5-19-5-6 0 0z'/%3E%3Cpath transform='rotate(60)' d='M0 0C5-6 4.5-19 0-26C-4.5-19-5-6 0 0z'/%3E%3Cpath transform='rotate(120)' d='M0 0C5-6 4.5-19 0-26C-4.5-19-5-6 0 0z'/%3E%3Cpath transform='rotate(180)' d='M0 0C5-6 4.5-19 0-26C-4.5-19-5-6 0 0z'/%3E%3Cpath transform='rotate(240)' d='M0 0C5-6 4.5-19 0-26C-4.5-19-5-6 0 0z'/%3E%3Cpath transform='rotate(300)' d='M0 0C5-6 4.5-19 0-26C-4.5-19-5-6 0 0z'/%3E %3Cpath transform='rotate(0)' d='M0 -3V-16' stroke='%23d9718c' fill='none'/%3E%3Cpath transform='rotate(60)' d='M0 -3V-16' stroke='%23d9718c' fill='none'/%3E%3Cpath transform='rotate(120)' d='M0 -3V-16' stroke='%23d9718c' fill='none'/%3E%3Cpath transform='rotate(180)' d='M0 -3V-16' stroke='%23d9718c' fill='none'/%3E%3Cpath transform='rotate(240)' d='M0 -3V-16' stroke='%23d9718c' fill='none'/%3E%3Cpath transform='rotate(300)' d='M0 -3V-16' stroke='%23d9718c' fill='none'/%3E %3Cg fill='%238a3b52' stroke='none'%3E%3Ccircle cx='-4' cy='-12' r='1.3'/%3E%3Ccircle cx='4' cy='-13' r='1.3'/%3E%3Ccircle cx='0' cy='-15' r='1.3'/%3E%3Ccircle cx='-7' cy='-6' r='1.3'/%3E%3Ccircle cx='7' cy='-7' r='1.3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
.t-shoishob .frame > * { position: relative; }
.t-shoishob .kicker { color: var(--accent2); }
.t-shoishob .names { color: var(--accent2); font-size: clamp(42px, 13vw, 58px); }
.t-shoishob .amp { font: italic 500 .42em/1.4 'Playfair Display', 'Noto Serif Bengali', serif; color: var(--rose); }
.t-shoishob .amp::before, .t-shoishob .amp::after { content: ''; display: inline-block; vertical-align: middle; width: 34px; height: 1px; margin: 0 10px; background: currentColor; }
.t-shoishob .parents, .t-shoishob .invite { color: var(--muted); }
.t-shoishob section { border-top: 0; background: linear-gradient(90deg, transparent, #e7a2ad, transparent) top / 80% 1px no-repeat; }
.t-shoishob .countdown { gap: 5px; } .t-shoishob .countdown div { min-width: 50px; background: #fde9ea; box-shadow: inset 0 0 0 1px #f3c3cb; }
.t-shoishob .btn { background: linear-gradient(#cf6679, #b4465c); box-shadow: 0 6px 16px rgba(180, 70, 92, .25); } .t-shoishob .btn.ghost { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.t-shoishob .events li { background: #fffaf5; border-color: #f0c6cc; }

.polaroid { position: relative; width: min(100%, 340px); margin: 0 auto 20px; padding: 12px 12px 0; background: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .14 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(#fbf6ec, #f3eadb); transform: rotate(-1.6deg);
  box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(60, 30, 20, .18), 0 18px 34px rgba(90, 40, 40, .25); }
.tape { position: absolute; z-index: 3; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; transform: rotate(3deg); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='3' cy='3' r='1.1' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='9' cy='9' r='1.1' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") 0 0 / 12px, rgba(240, 160, 175, .72); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 45%); }
.snap { position: relative; aspect-ratio: 10 / 9; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .14 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(ellipse at 50% 30%, rgba(255, 214, 170, .28), transparent 55%), radial-gradient(ellipse at 50% 120%, #2a1814, transparent 70%), linear-gradient(160deg, #5b3c32, #3a2620 55%, #24160f); }
.snap::after { content: ''; position: absolute; inset: 0; background: #f5efe4; opacity: 0; pointer-events: none; } /* the milky film of an undeveloped instant photo */
.kid { position: relative; width: 57%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.kid .tag { flex-shrink: 0; } .kid img { min-height: 0; object-fit: contain; object-position: bottom; } /* a tall photo shrinks so a two-line name tag stays inside the snap */
.kid.k0 { margin-right: -4%; z-index: 1; } .kid.k1 { margin-left: -4%; }
.kid img, .snap .one { display: block; width: 100%; filter: sepia(.16) saturate(.92) drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.snap .one { height: 100%; object-fit: cover; filter: sepia(.12); }
.snap .mono { margin: auto; }
.tag { margin: 0 0 4px; display: flex; align-items: flex-end; gap: 2px; color: #fff; font: 600 clamp(22px, 7vw, 30px)/1 'Caveat', 'Baloo Da 2', cursive; transform: rotate(-5deg); text-shadow: 0 1px 3px rgba(0, 0, 0, .45); white-space: nowrap; }
.kid.k1 .tag { transform: rotate(4deg); }
.doo { width: 18px; height: 18px; flex: none; color: #fff; overflow: visible; }
.doo.spark { margin-bottom: 14px; } .doo.h1 { margin-bottom: 16px; width: 16px; }
.doo.h2 { position: absolute; width: 15px; height: 15px; top: 46%; left: -4%; transform: rotate(-14deg); }
.kid.k1 .doo.h2 { left: auto; right: -2%; top: 40%; transform: rotate(12deg); }
.polaroid figcaption { padding: 12px 4px 14px; text-align: center; color: #4a2e2a; }
.std { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 clamp(21px, 6.6vw, 34px)/1.1 'Playfair Display', 'Noto Serif Bengali', serif; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.std i { font: italic 500 .62em/1 'Playfair Display', 'Noto Serif Bengali', serif; text-transform: none; }
.std .doo { color: #4a2e2a; width: 16px; height: 16px; stroke-width: 1.3; }
.std-date { margin: 6px 0 0; padding-top: 6px; font: 600 clamp(12px, 3.8vw, 15px)/1.2 'Playfair Display', 'Noto Serif Bengali', serif; letter-spacing: .28em; text-transform: uppercase; background: linear-gradient(90deg, transparent, #4a2e2a 18%, #4a2e2a 82%, transparent) top / 100% 1px no-repeat; }
:lang(bn) .std { font-size: clamp(22px, 7vw, 28px); text-transform: none; } :lang(bn) .std i { font-style: normal; font-size: 1em; } :lang(bn) .std-date { letter-spacing: .04em; font-size: 17px; }
/* Opening: polaroid drops in, develops, stickers pop, doodles draw. */
.is-open .polaroid { animation: drop 1s 1.4s cubic-bezier(.2, .9, .3, 1.15) both; }
.is-open .snap::after { animation: develop 3.2s 2s ease-out both; }
.is-open .kid { animation: pop .7s calc(3.2s + var(--k, 0) * .35s) cubic-bezier(.3, 1.6, .5, 1) both; } .kid.k1 { --k: 1; }
.is-open .tag span { -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 250% 100% no-repeat; mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 250% 100% no-repeat;
  animation: write 1s calc(4s + var(--k, 0) * .6s) ease-in-out both; }
.doo path { stroke-dasharray: 1; }
.is-open .doo path { animation: doodle .8s calc(4.6s + var(--k, 0) * .6s) ease-out both; }
.is-open .std .doo path { animation-delay: 2.4s; }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) rotate(-9deg); } to { opacity: 1; transform: rotate(-1.6deg); } }
@keyframes develop { from { opacity: 1; } to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.86); } }
@keyframes doodle { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (min-width: 700px) { .t-shoishob .frame { padding: 170px 72px 136px; background-size: 30px 84px, 30px 84px, auto, auto; background-position: left 9px top 18px, right 9px top 18px, 0 0, 0 0; }
  .t-shoishob .frame::before { inset: 24px 48px 28px; } .fuchsias { margin-bottom: -190px; } }
@media (prefers-reduced-motion: reduce) { .is-open .tag span { -webkit-mask: none; mask: none; } }

/* ---------- Shoishob landscape & print ----------
   One card face: polaroid | arch window with both families, date, venue, programme. On screen the RSVP, map, countdown and
   calendar sit below it as cream boxes; printing gives only the face on one A4 landscape page, with an RSVP QR. */
.t-shoishob-wide .card { max-width: 1100px; padding-top: 28px; }
.t-shoishob-wide .frame { padding: 26px 34px 30px; }
.t-shoishob-wide .frame::before, .t-shoishob-wide .frame::after { display: none; }
.face-pic { padding: 26px 4px 8px; }
.face-pic .polaroid { margin-bottom: 0; }
.face-text { position: relative; margin-top: 20px; text-align: center; }
.win { display: block; width: 100%; aspect-ratio: 5 / 2; fill: #fffaf2; overflow: visible; }
.win-body { display: flow-root; padding: 6% 22px 34px; background: linear-gradient(#fffaf2, #fdf3e8); }
.win-body { position: relative; z-index: 1; }
.face-text .fuchsias { position: absolute; z-index: 2; top: -44px; left: 50%; width: 100%; max-width: 440px; margin: 0; transform: translateX(-50%); }
.face-text .kicker { margin-bottom: 10px; }
.pair { display: grid; gap: 0; }
.pair .nm { margin: 0; font: 400 clamp(40px, 11vw, 54px)/1.1 var(--names); color: var(--accent2); overflow-wrap: anywhere; }
.pair .of { margin: 0 auto; max-width: 34ch; font: 500 16px/1.35 var(--body); color: var(--muted); }
.pair .amp { margin: 10px 0 4px; font-size: 22px; }
.face-text .invite { margin: 16px auto 0; font-size: 17px; }
.f-when { margin: 16px 0 0; font-size: 21px; font-weight: 600; color: var(--ink); } .f-when span { display: block; font-size: 17px; font-weight: 500; color: var(--muted); }
.f-where { margin: 6px auto 0; max-width: 30ch; font-size: 18px; }
.f-events { list-style: none; margin: 12px 0 0; padding: 10px 0 0; display: grid; gap: 3px; font-size: 15px; color: var(--muted); background: linear-gradient(90deg, transparent, #e7a2ad, transparent) top / 70% 1px no-repeat; }
.f-events b { color: var(--accent2); font-weight: 600; }
.f-qr { display: none; }
.t-shoishob-wide .frame > section, .t-shoishob-wide .print-row { margin: 16px 0 0; padding: 22px 18px; background: #fffaf2; border-radius: 16px; box-shadow: inset 0 0 0 1px #f3c9cf; }
.t-shoishob-wide .print-row { background: none; box-shadow: none; padding: 4px 0 0; text-align: center; }
.t-shoishob-wide .print-row .btn { background: #fffaf2; }
@media (min-width: 860px) {
  .t-shoishob-wide .frame { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; padding: 30px 60px 36px; }
  .t-shoishob-wide .frame > * { grid-column: 1 / -1; }
  .t-shoishob-wide .frame > :is(.when, .where) { grid-column: auto; margin: 0; height: 100%; }
  .face { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
  .face-pic { padding: 40px 0 20px 10px; }
  .face-text { margin-top: 30px; } .win-body { padding-top: 2%; }
}

@page card { size: A4 landscape; margin: 0; }
@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .t-shoishob-wide *, .t-shoishob-wide *::before, .t-shoishob-wide *::after { animation: none !important; transition: none !important; }
  .t-shoishob-wide :is(.stage, .lang, .fall, .music-btn, .made, .curtains) { display: none !important; }
  .t-shoishob-wide .frame > :not(.face) { display: none !important; }
  .t-shoishob-wide .card { page: card; width: 297mm; height: 209mm; max-width: none; margin: 0; padding: 5mm; opacity: 1 !important; overflow: hidden; }
  .t-shoishob-wide .frame { display: flex; align-items: center; height: 100%; padding: 4mm 17mm; box-shadow: inset 0 0 0 4px var(--rose), inset 0 0 0 5.5px #fff3ea; }
  .t-shoishob-wide .r { opacity: 1 !important; transform: none !important; }
  .face { width: 100%; display: grid; grid-template-columns: .9fr 1.1fr; gap: 12mm; align-items: center; } /* explicit: print media ignores the screen breakpoint */
  .face-pic { padding: 6mm 0 0; } .face .polaroid { transform: rotate(-1.6deg) !important; max-width: 118mm; box-shadow: 0 0 0 .3mm rgba(90, 40, 40, .18); } /* blurred shadows print as grey boxes */
  .face-text { margin-top: 5mm; } .win-body { padding: 0 8mm 6mm; } .win-body > :first-child { margin-top: -5%; }
  .face-text .fuchsias { top: -8mm; width: 80%; }
  .face-text .kicker { margin-bottom: 4px; } .pair .nm { font-size: 40px; } .pair .of { font-size: 14.5px; } .pair .amp { margin: 4px 0 2px; }
  .face-text .invite { margin-top: 10px; font-size: 15px; } .f-when { margin-top: 10px; font-size: 18px; } .f-when span { display: inline; font-size: 16px; } .f-when span::before { content: ' · '; }
  .f-where { font-size: 16px; } .f-events { font-size: 13px; margin-top: 8px; padding-top: 6px; }
  .f-qr { display: grid; justify-items: center; gap: 1px; margin: 8px auto 0; } .f-qr svg { width: 22mm; height: 22mm; }
  .f-qr small { font: 600 10px/1 'Hind Siliguri', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent2); }
  .t-shoishob-wide .tag span { -webkit-mask: none !important; mask: none !important; }
  .t-shoishob-wide .tag { text-shadow: none; } /* PDF output turns soft text shadows into boxes */
}
.tag.long { font-size: clamp(17px, 4.6vw, 24px); white-space: normal; text-align: center; max-width: 100%; } /* full names ("Farzana Karim Shifa") wrap instead of overflowing the photo */
