/* ==========================================================================
   Lovepreet & Jaspreet — wedding invitation, v7.2
   (v7: tighter/smaller cover, centred letterspaced headings, bold
   couple names. v7.2, at the family's request: scroll-snapping and
   the pinned Gurbani header strip are REMOVED entirely — scrolling
   is plain smooth free scrolling, and the Gurbani line appears only
   on the first page. Also: the formal card's families heading is
   sized/nowrap'd to always fit on one line.)
   Design system MEASURED from the reference site (danvirsukh.netlify.app):
     Ivory #F8F4EB · Paper #FCFAF5 · Sage #DCE5D5 · Deep Sage #7D8D72
     Sage Ink #566650 · Gold #C5A46D · Blush #F1D9D7 · Text #353A33
   ONE strict type system, applied uniformly in every section:
     Cormorant Garamond — all display/serif (headings, names, cards)
     Jost               — all sans (labels, meta rows, buttons, small text)
     Noto Serif Gurmukhi / Mukta Mahee — the Punjabi equivalents
   One size scale (see --fs-* below): display / title / body / meta / label.
   Type is set BIGGER and BOLDER than the reference per the family's request:
   body 19px/400 minimum, no 300-weight body text.
   Dates/countdown always Latin digits (.latin-date / .latin-num).
   ========================================================================== */
:root{
  --ivory:#F8F4EB;
  --paper:#FCFAF5;
  --sage:#DCE5D5;
  --sage-2:#D2DDCA;            /* door gradient edge, from the reference doors */
  --sage-pale:#EEF2EA;          /* gate-centre halo, from the reference */
  --sage-deep:#7D8D72;
  --sage-ink:#566650;
  --gold:#C5A46D;
  --gold-hi:#E9D6A4;            /* foil highlight — a tint of the same gold */
  --gold-deep:#A98B4F;          /* foil shade — a shade of the same gold */
  --gold-line:rgba(197,164,109,.55);
  --blush:#F1D9D7;
  --text:#353A33;
  --glow-1:#FFF9E6; --glow-2:#F7E8C4;   /* door light, from the reference */
  --f-display:'Cormorant Garamond',serif;
  --f-body:'Jost',sans-serif;
  --f-gurmukhi-serif:'Noto Serif Gurmukhi',serif;
  --f-gurmukhi-sans:'Mukta Mahee',sans-serif;
  /* one consistent size scale for the whole page */
  --fs-display:clamp(40px,9vw,58px);
  --fs-title:clamp(30px,7.4vw,40px);
  --fs-body:19px;
  --fs-meta:17.5px;
  --fs-label:13.5px;
  --ease:cubic-bezier(.16,1,.3,1);   /* v7 premium pass: one buttery ease-out for all motion */
  --gutter:clamp(22px,6vw,56px);
}
:lang(pa){
  --f-display:var(--f-gurmukhi-serif);
  --f-body:var(--f-gurmukhi-sans);
}
:lang(pa) *{font-style:normal !important;letter-spacing:normal}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none !important}
/* Scrolling is plain, smooth, FREE scrolling (scroll-snap was tried in
   v7/v7.1 and removed at the family's request — no snap-type, no
   snap-align, no snap scroll-margins anywhere). scroll-behavior:smooth
   remains only so anchor/button jumps (Open, Back to top) glide. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--ivory);color:var(--text);
  font-family:var(--f-body);font-weight:400;font-size:var(--fs-body);line-height:1.7;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
:lang(pa) body{line-height:1.9}
body.locked{overflow:hidden;height:100dvh}
h1,h2,h3,p,ul,ol,dl,dd,figure{margin:0}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
a{color:inherit}
:focus-visible{outline:2px solid var(--sage-ink);outline-offset:3px;border-radius:4px}
#petals{position:fixed;left:0;top:0;width:100%;height:100%;z-index:45;pointer-events:none}

/* ---------- shared typography & parts ---------- */
.label{font:500 var(--fs-label)/1.4 var(--f-body);letter-spacing:.34em;text-transform:uppercase;color:var(--sage-ink);text-indent:.34em;text-align:center}
:lang(pa) .label{font-size:16px;letter-spacing:.06em;text-transform:none}
.section-title{font:500 var(--fs-display)/1.12 var(--f-display);letter-spacing:.005em;margin-top:14px;color:var(--text);text-align:center}
.body{max-width:33em;margin-left:auto;margin-right:auto;font-size:clamp(17.5px,4.3vw,20px);line-height:1.8;font-weight:400;text-align:center}
.narrow{max-width:540px}
.onkar{font-family:var(--f-gurmukhi-serif);color:var(--gold);line-height:1.1;font-weight:500;user-select:none;text-shadow:0 2px 18px rgba(197,164,109,.30)}
.divider{display:flex;align-items:center;justify-content:center;gap:12px;width:min(280px,72%);margin:26px auto}
.divider span{flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--gold) 55%,var(--gold-hi));transform-origin:right center}
.divider span:last-child{background:linear-gradient(270deg,transparent,var(--gold) 55%,var(--gold-hi));transform-origin:left center}
.divider i{width:7px;height:7px;background:linear-gradient(135deg,var(--gold-hi),var(--gold) 55%,var(--gold-deep));transform:rotate(45deg);flex:none;font-size:0;box-shadow:0 1px 4px rgba(169,139,79,.45)}
.latin-date,.latin-num{font-family:'Jost',sans-serif;font-variant-numeric:lining-nums tabular-nums}

/* Stacked couple names — one name per row, gold divider between */
.stacked-names{display:flex;flex-direction:column;align-items:center;text-align:center;font-weight:500;line-height:1.2}
.stacked-names .name-line{display:block;white-space:nowrap}
.stacked-names .name-amp{display:block;font-family:var(--f-display);font-style:italic;font-weight:500;font-size:.5em;color:var(--gold);line-height:1.5}
:lang(pa) .stacked-names .name-amp{font-family:var(--f-gurmukhi-serif)}

/* Monogram heart — clean typographic ♥ in gold (never a colour emoji) */
.mono-heart{font-size:.82em;padding:0 .08em;color:var(--gold);vertical-align:.04em}

/* Animated scroll-down arrow (bottom centre of each section, subtle gold) */
.scroll-arrow{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);z-index:4;pointer-events:none;animation:scrollBounce 1.9s ease-in-out infinite}
.scroll-arrow span{display:block;width:17px;height:17px;border-right:2px solid var(--gold);border-bottom:2px solid var(--gold);transform:rotate(45deg);opacity:.85}
@keyframes scrollBounce{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,10px)}}

/* ---------- buttons (reference .btn) ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 24px;
  border:1px solid var(--gold);background:rgba(252,250,245,.8);color:var(--text);border-radius:999px;
  font:500 15.5px/1.2 var(--f-body);letter-spacing:.04em;text-decoration:none;cursor:pointer;
  transition:background .3s,color .3s,border-color .3s,transform .3s var(--ease);
}
:lang(pa) .btn{font-size:17px;letter-spacing:0}
.btn{box-shadow:0 1px 2px rgba(53,58,51,.05),0 10px 22px -14px rgba(53,58,51,.28)}
.btn:hover{background:var(--sage);transform:translateY(-1px);box-shadow:0 2px 3px rgba(53,58,51,.05),0 16px 30px -14px rgba(53,58,51,.32)}
.btn:active{transform:scale(.98)}
.btn.ghost{background:transparent;margin-top:34px}

/* ---------- gate / doors (reference layout, measured) ---------- */
.gate{position:fixed;inset:0;z-index:40;perspective:1800px;overflow:hidden}
.gate.is-done{display:none}
.gate-light{position:absolute;inset:0;background:radial-gradient(ellipse 62% 70% at 50% 52%,var(--glow-1) 0%,var(--glow-2) 40%,var(--ivory) 80%)}
.gate.opening .gate-light{animation:lightGlow 1.4s ease-out forwards}
/* The glow must clear AS the doors part (gone by the end of the 1.4s
   swing): v7 held it opaque until 60%, so the opening doors revealed a
   blank glow instead of the finished first page behind them. */
@keyframes lightGlow{0%{opacity:1;filter:brightness(1)}30%{opacity:.8;filter:brightness(1.07)}100%{opacity:0}}
.door{
  position:absolute;top:0;bottom:0;width:50.3%;overflow:hidden;backface-visibility:hidden;
  background:
    linear-gradient(90deg,rgba(197,164,109,.10),rgba(197,164,109,0) 22%,rgba(197,164,109,0) 78%,rgba(197,164,109,.10)),
    linear-gradient(90deg,var(--sage-2),var(--sage) 38%,var(--sage) 62%,var(--sage-2));
  transition:transform 1.4s cubic-bezier(.66,0,.22,1),opacity .35s ease 1.15s;will-change:transform;
}
.door::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(53,58,51,0),rgba(53,58,51,.18));opacity:0;transition:opacity 1s ease;pointer-events:none}
/* Centre seam: the v10 subtle gold hairline, strengthened only
   slightly in v12 (1.5px deep gold at .8) so the two leaves still
   read as two doors meeting. (v11's heavy 2px/.95 seam is gone.) */
.door-l{left:0;transform-origin:0 50%;border-right:1.5px solid rgba(169,139,79,.8)}
.door-r{right:0;transform-origin:100% 50%;border-left:1.5px solid rgba(169,139,79,.8);background:linear-gradient(270deg,var(--sage-2),var(--sage) 38%,var(--sage) 62%,var(--sage-2))}
.door-r::after{background:linear-gradient(270deg,rgba(53,58,51,0),rgba(53,58,51,.18))}
.gate.opening .door-l{transform:rotateY(100deg);opacity:0}
.gate.opening .door-r{transform:rotateY(-100deg);opacity:0}
.gate.opening .door::after{opacity:1}
.door-lattice{position:absolute;inset:0;width:100%;height:100%}
/* (v16: the v15 big light heart on the doors is REMOVED — the
   heart moved into the cover seal, which is now heart-shaped.) */
/* Arch panel (v13): per-leaf SVG in door pixel coordinates (drawn by
   script.js, doorPanelSVG) — ONE large ivory pointed arch per leaf
   with a scalloped gold edge and paler lattice inside, replacing the
   v10–v12 thin nested arch pair that spanned both doors. */
.door-panel{position:absolute;inset:0;width:100%;height:100%}
/* Handle (v10 design, restored in v12): a small gold outline pull
   on the centre seam, placed a LITTLE BELOW the Open Invitation
   button (~74% of the cover height) — the family found v10's
   near-the-bottom position (~90%) too low, and v11's solid
   backplate pulls at mid-height were removed along with the panel
   mouldings and the doorway architrave. */
.door .handle{position:absolute;top:74%;width:18px;height:42px;transform:translateY(-50%)}
.door .handle svg{display:block;width:100%;height:100%}
.door-l .handle{right:9px}
.door-r .handle{left:9px}
/* Door flowers (v11 whisper; v16 mix + lighter): each door panel
   carries only a whisper of decoration (drawn by script.js,
   doorFloralSVG) — 12 small flowers per panel, a MIX of white/cream
   and pink (the flower bed's kinds), no leaves, around a clean
   blank elliptical centre where the cover text sits, and the whole
   layer is faded to .4 (v16, down from .55) so the flowers sit very
   lightly. Because the layer lives INSIDE the door (which has
   overflow:hidden), each half carries its flowers away as it swings
   open — nothing floats or is left behind. */
.door-floral{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.4}
.door-bed{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.gate-lang{
  position:absolute;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:4;
  min-height:38px;padding:7px 16px;border:1px solid var(--gold-line);border-radius:999px;background:rgba(252,250,245,.8);
  font:500 15px/1 var(--f-gurmukhi-sans);color:var(--text);transition:opacity .4s;
}
/* v7: the centre block is SMALLER and TIGHTER, like the reference cover —
   one compact centred unit (max-width 320px), reduced gaps throughout. */
.gate-centre{
  position:absolute;top:0;bottom:0;left:0;right:0;width:100%;max-width:320px;margin-left:auto;margin-right:auto;z-index:3;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:clamp(4px,1svh,9px);padding:max(52px,env(safe-area-inset-top)) 18px 7svh;text-align:center;
  transition:opacity .5s ease,transform .7s ease;
}
.gate-centre::before{
  content:"";position:absolute;z-index:-1;left:50%;top:47%;width:min(440px,118vw);height:min(580px,86svh);transform:translate(-50%,-50%);
  /* v10 halo restored in v12 (v11 had eased the peak to .90/.84 so
     its panelled doors showed through; the panels are gone again). */
  background:radial-gradient(closest-side,rgba(238,242,234,.97) 0,rgba(238,242,234,.93) 52%,rgba(238,242,234,0) 100%);
}
.gate.opening .gate-centre{opacity:0;transform:scale(1.06);pointer-events:none}
.gate.opening .gate-lang{opacity:0;pointer-events:none}
.gate .onkar{font-size:clamp(28px,5svh,42px)}
/* Cover seal (v16): a HEART-shaped badge — ivory heart with a
   double gold heart outline (the old seal's double-ring weight,
   redrawn as two nested heart paths) holding "L ∞ J" in its upper
   bowl — v17 centred the words (baseline y=60); v19 moves them
   BACK UP at the family's request: baseline y=42 again, above the
   heart's middle point, as in v16.
   The drop-shadow filter follows the heart's own outline;
   there is deliberately no box-shadow (it would hug a rectangle,
   not the heart). */
.gate-seal{width:clamp(66px,11.5svh,92px);aspect-ratio:1;transition:opacity .4s ease,transform .5s ease;
  filter:drop-shadow(0 10px 14px rgba(169,139,79,.35)) drop-shadow(0 0 10px rgba(233,214,164,.35))}
.gate.opening .gate-seal{opacity:0;transform:scale(.88)}
.mono{display:block;width:100%;height:100%}
.mono .m-fill{fill:#FBF8F1}
.mono .m-ring1{fill:none;stroke:var(--gold);stroke-width:1.3}
.mono .m-ring2{fill:none;stroke:var(--gold);stroke-width:.6}
.mono .m-text{font-family:var(--f-display);font-style:italic;font-weight:500;font-size:31px;fill:var(--text)}
.mono .m-heart{font-style:normal;font-size:19px;fill:var(--gold)}
.mono-seal-heart .m-text{font-size:23px}
.mono .m-inf{font-style:normal;font-size:20px;fill:var(--gold)}
.gate-eyebrow{font:500 10.5px/1.3 var(--f-body);letter-spacing:.32em;text-transform:uppercase;color:var(--sage-ink);margin-top:0;text-indent:.32em}
:lang(pa) .gate-eyebrow{font-size:13.5px;letter-spacing:.06em;text-transform:none}
.gate-names{font:500 clamp(22px,2.8svh + .8vw,32px)/1.15 var(--f-display)}
:lang(pa) .gate-names{font-size:clamp(19px,2.6svh + .6vw,28px);line-height:1.35}
.gate-date{font:400 11.5px/1.4 var(--f-body);letter-spacing:.22em;text-transform:uppercase;text-indent:.22em}
:lang(pa) .gate-date{font-size:14px;letter-spacing:.04em;text-transform:none;text-indent:0}
.gate-btn{
  position:relative;z-index:0;margin-top:clamp(2px,.8svh,8px);padding:12px 28px;min-height:44px;border:1px solid var(--gold);border-radius:999px;
  background:var(--paper);color:var(--text);font:500 11.5px/1 var(--f-body);letter-spacing:.22em;text-transform:uppercase;cursor:pointer;
  /* continuous gentle "tap me" motion: a soft pulsing glow (btnGlow,
     warmed to pink-gold in v16) plus a slight scale breathing, and —
     the v16 star — light RADIATING outward from the border itself
     (the ::before/::after rings below). The button face stays clean
     cream; all the colour lives at and beyond its edge. */
  animation:btnGlow 2.6s ease-in-out infinite,btnBreath 2.6s ease-in-out infinite;
}
/* Radiating border (v16 — family correction): the v15 pink bloom
   behind the button is GONE (no pink fill, no blush halo). Instead
   the border itself radiates: two thin warm rose-gold rings are
   born at the button's edge and expand outward while fading, on
   the same 2.6s breathing cycle, staggered half a cycle apart so
   the radiance never fully rests. The y-scale runs larger than x
   so the ring clears the wide pill evenly on all sides. */
.gate-btn::before,.gate-btn::after{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:999px;pointer-events:none;
  border:1.5px solid rgba(219,150,148,.75);
  animation:btnRadiate 2.6s ease-out infinite;
}
.gate-btn::after{animation-delay:1.3s}
@keyframes btnRadiate{
  0%{opacity:.9;transform:scale(1,1)}
  70%{opacity:0}
  100%{opacity:0;transform:scale(1.13,1.62)}
}
:lang(pa) .gate-btn{font-size:14.5px;letter-spacing:.02em;text-transform:none}
@keyframes btnGlow{
  0%,100%{box-shadow:0 0 0 0 rgba(214,150,140,0),0 0 14px 1px rgba(214,150,140,.30)}
  50%{box-shadow:0 0 0 8px rgba(230,175,160,.14),0 0 34px 8px rgba(219,140,148,.48)}
}
@keyframes btnBreath{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.04)}
}

/* ---------- top bar (reference) ---------- */
.topbar{
  position:fixed;top:0;left:0;right:0;z-index:50;height:56px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:rgba(248,244,235,.88);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(197,164,109,.35);
}
/* Top-bar monogram badge (v15 heart, v16 text): a HEART outline
   instead of the old circle — an inline SVG heart (ivory fill,
   gold stroke) with the monogram text inside. v17: the text nudge
   changed from translateY(-4px) to translateY(2px) so the words
   sit in the heart's visual middle, not its upper bowl.
   v16: the text is "L ∞ J", matching the new heart-shaped cover
   seal. (The closing section's monogram medallion was removed in
   v16 — the monogram now lives only here and on the cover seal.) */
.topbar-monogram{
  position:relative;width:50px;height:47px;flex:none;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--f-display);font-style:italic;font-weight:500;font-size:11.5px;color:var(--text);white-space:nowrap;
}
.topbar-monogram .mono-heart-badge{
  position:absolute;inset:0;width:100%;height:100%;
  fill:#FBF8F1;stroke:var(--gold);stroke-width:1.6;
  filter:drop-shadow(0 4px 6px rgba(169,139,79,.35));
}
.topbar-monogram .mono-txt{position:relative;transform:translateY(-4px)}
.topbar-monogram .mono-inf{font-style:normal;font-size:10.5px;color:var(--gold);padding:0 .05em}
.topbar-actions{display:flex;align-items:center;gap:10px}
.bar-btn{
  min-width:40px;height:40px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--gold-line);border-radius:999px;background:rgba(252,250,245,.8);color:var(--sage-ink);
  font:500 15px/1 var(--f-body);cursor:pointer;transition:background .3s;
}
.bar-btn:hover{background:var(--sage)}
.bar-btn .music-off{display:none}
.bar-btn.paused .music-on{display:none}
.bar-btn.paused .music-off{display:inline}

/* ---------- sections (reference rhythm: cream, sage bands) ---------- */
.section{position:relative;padding:clamp(84px,13vh,150px) var(--gutter);overflow:hidden;isolation:isolate;text-align:center}
.band{background:linear-gradient(var(--ivory) 0,var(--sage) 110px,var(--sage) calc(100% - 110px),var(--ivory) 100%)}
.mandala{position:absolute;left:50%;top:50%;z-index:-1;width:min(135vw,1000px);aspect-ratio:1;color:var(--gold);opacity:.13;pointer-events:none;transform:translate(-50%,-50%)}
.mandala svg{width:100%;height:100%;display:block}
/* Side-edge garland chains (v11 — REPLACING the leafy side vines
   page-wide, at the family's request): vertical garlands of flowers
   and leaves strung down both edges of each section, drawn in code
   by script.js (edgeGarlandSVG). They are deliberately FAINT —
   opacity .28, in the same spirit as the faded vines before them —
   so they read as a soft background texture, never a feature. */
.edge-garland{position:absolute;top:-16%;height:132%;z-index:-1;width:clamp(56px,15vw,150px);opacity:.28;pointer-events:none}
.eg-l{left:-14px}
.eg-r{right:-14px}
.edge-garland svg{width:100%;height:100%;display:block;overflow:visible}
/* Reveals (v7.1): kept deliberately subtle and triggered EARLY (the
   observer uses a 45% bottom rootMargin, so the fade runs well before a
   section reaches the eye) — a gentle fade with only 8px of travel and
   no blur, so a visitor arriving at a section never meets a blank block
   or text visibly rising from the bottom. */
.reveal{opacity:0;transform:translateY(8px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.reveal.inview{opacity:1;transform:none}
/* The FIRST PAGE never reveals: it sits fully rendered behind the doors
   (final opacity, no transform, no transition) and is simply uncovered
   as they swing — exactly like the reference. */
.first-page .reveal{opacity:1 !important;transform:none !important;filter:none !important;transition:none !important}

/* ---------- first page: ONE composed page — ੴ + Gurbani line + invitation card ----------
   Tight by design: no gap between the line and the card (only the small
   gold divider sits between them) and compact spacing throughout, so the
   whole page — ੴ, line and the full card — fits one phone screen. */
.first-page{
  padding:calc(56px + clamp(10px,2vh,18px)) var(--gutter) clamp(40px,6vh,54px);
  background:linear-gradient(var(--ivory) 0,var(--sage) 168px,var(--sage) calc(100% - 64px),var(--ivory) 100%);
}
/* v7.1: the v7 shrink of the first page's ੴ + line is REVERTED — the
   family wants the first page's text BIG and readable (v6 sizes); the
   one-page composition is kept through spacing, not smaller text. */
.first-page .ik{font-size:clamp(46px,12vw,58px)}
.gurbani-line{font-family:var(--f-gurmukhi-serif);font-weight:500;font-size:clamp(23px,6vw,28px);line-height:1.8;margin:6px auto 0;max-width:560px;color:var(--text);text-align:center}
.first-page .divider{margin:8px auto 10px}

/* (No pinned Gurbani header: the strip, its CSS and its JS were removed
   at the family's request — the Gurbani line appears only on the first
   page. The slim top bar above is the only fixed header.) */

/* Formal invitation card — luxury stationery: ornamental corner flourishes,
   a small gold monogram at the top, letterspaced serif families line, an
   italic invitation line, large italic couple names, gold rule ornaments
   between blocks, and refined smaller serif for the parents' lines. */
.formal-card{
  position:relative;max-width:560px;margin:0 auto;text-align:center;
  padding:clamp(28px,6vw,42px) clamp(22px,6vw,40px);
  /* v7 premium: a whisper of paper sheen over the cream, and deep,
     soft, layered shadows — printed-stationery weight, Apple calm */
  background:linear-gradient(165deg,#FDFBF7 0%,var(--paper) 52%,#F6F1E4 100%);border:1px solid var(--gold);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 1px 2px rgba(53,58,51,.05),0 14px 28px -14px rgba(53,58,51,.20),0 36px 68px -34px rgba(53,58,51,.32);color:var(--text);
}
.formal-card::after{content:"";position:absolute;inset:9px;border:1px solid rgba(197,164,109,.6);pointer-events:none}
.formal-card .corner{position:absolute;width:42px;height:42px;z-index:1;opacity:.75;pointer-events:none}
.formal-card .corner svg{width:100%;height:100%;display:block}
.corner-tl{top:13px;left:13px}
.corner-tr{top:13px;right:13px;transform:scaleX(-1)}
.corner-bl{bottom:13px;left:13px;transform:scaleY(-1)}
.corner-br{bottom:13px;right:13px;transform:scale(-1)}
/* (v7.1: the card-top monogram was removed from the formal card at the
   family's request. v16: the monogram remains on the cover seal
   (heart-shaped, "L ∞ J") and the top-bar heart badge only — the
   closing section's medallion was removed.) */
.formal-inner{position:relative}
.formal-inner p{margin-bottom:6px}
.card-rule{display:flex;align-items:center;justify-content:center;gap:8px;width:132px;margin:9px auto}
.card-rule span{flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--gold) 55%,var(--gold-hi))}
.card-rule span:last-child{background:linear-gradient(270deg,transparent,var(--gold) 55%,var(--gold-hi))}
.card-rule i{width:6px;height:6px;background:linear-gradient(135deg,var(--gold-hi),var(--gold) 55%,var(--gold-deep));transform:rotate(45deg);flex:none;font-size:0}
/* text-indent equal to the letter-spacing compensates the trailing
   letter-space, so the heading is OPTICALLY centred (v7 fix — it read
   as left-shifted without it). Same fix applied to the other centred
   letterspaced headings below (.gate-date, .closing-date, badges). */
/* ONE line at every width (v7.2 fix — at 26px the heading wrapped to
   two lines on desktop): the size is vw-driven and capped so the full
   line always fits the card's inner width, and nowrap forbids wrapping.
   text-indent = letter-spacing keeps it optically centred. */
.formal-families{font:600 clamp(12.5px,3.55vw,23px)/1.35 var(--f-display);letter-spacing:.11em;text-transform:uppercase;color:var(--sage-ink);margin:2px 0 4px;text-align:center;text-indent:.11em;white-space:nowrap}
:lang(pa) .formal-families{font-family:var(--f-gurmukhi-serif);font-weight:600;font-size:clamp(14px,4.1vw,20px);letter-spacing:.03em;text-transform:none;text-indent:.03em;white-space:nowrap}
.formal-small{font:italic 500 clamp(17.5px,4.6vw,20px)/1.5 var(--f-display);color:var(--sage-ink);margin:8px 0 0}
.formal-names{font:500 clamp(20px,5.2vw,24px)/1.4 var(--f-display);color:var(--text)}
.formal-body{font:italic 500 clamp(19.5px,5vw,23px)/1.5 var(--f-display);max-width:27em;margin:8px auto 2px;color:var(--text)}
/* v7.1: ONE line per name — the vw-driven size is capped so the longest
   name ("Jaspreet Kaur Dhaliwal") fits the card's inner width even on a
   ~360px phone (v7's 9vw let it wrap to two lines while the groom's
   name fit on one); nowrap guarantees it can never wrap. */
.formal-couple{font:italic 700 clamp(22px,6.9vw,46px)/1.12 var(--f-display);margin:10px 0 2px;color:var(--text);white-space:nowrap}
.formal-line{font:500 clamp(18.5px,4.7vw,21.5px)/1.5 var(--f-display);max-width:28em;margin:0 auto 4px;color:var(--text)}
/* v7: each hometown sits on its OWN line under the parents' names */
.formal-place{font:500 clamp(17.5px,4.4vw,20.5px)/1.5 var(--f-display);margin:0 auto 4px;color:var(--sage-ink);text-align:center}
.formal-weds{font:italic 500 clamp(21px,5.4vw,26px)/1.3 var(--f-display);color:var(--gold);margin:6px 0 0}
/* Tiny floral touches on the formal card (v8): small pink/cream flower
   clusters nestled at the two top corners (over the gold flourishes'
   inner curve), and a miniature flower flanking the "Weds" divider.
   Pure decoration — no layout or text changes. */
.card-floral{position:absolute;width:54px;height:54px;z-index:1;pointer-events:none}
.card-floral svg{display:block;width:100%;height:100%}
.card-floral-tl{top:9px;left:9px}
.card-floral-tr{top:9px;right:9px;transform:scaleX(-1)}
.weds-fl{display:inline-block;width:17px;height:17px;margin:0 11px;vertical-align:-3px}
.weds-fl svg{display:block;width:100%;height:100%}
.weds-fl.flip{transform:scaleX(-1)}

/* ---------- functions (reference timeline cards) ---------- */
.timeline{position:relative;max-width:1000px;margin:40px auto 0;padding-left:38px;text-align:left}
.thread{position:absolute;left:11px;top:14px;bottom:14px;width:1px;background:rgba(197,164,109,.35)}
.thread-fill{position:absolute;left:0;top:0;width:100%;height:0;background:var(--gold)}
.func-card{
  position:relative;z-index:1;background:linear-gradient(170deg,#E2EAD9,var(--sage) 60%,#D4DEC9);border:1px solid rgba(197,164,109,.6);
  padding:28px clamp(20px,5vw,32px) 26px;margin-bottom:30px;color:var(--text);
  box-shadow:0 1px 2px rgba(53,58,51,.05),0 18px 36px -20px rgba(53,58,51,.28);
  opacity:0;transform:translateY(8px);transition:opacity .9s var(--ease),transform .9s var(--ease);
}
.func-card::after{content:"";position:absolute;inset:6px;border:1px solid rgba(197,164,109,.32);pointer-events:none}
.func-card.inview{opacity:1;transform:none}
/* Functions-section florals (v8) — same flat pink/cream/sage language
   as the door flowers: a draped swag garland under the section title,
   and small flower clusters tucked into each card's top-right and
   bottom-right corners (clear of the badge, text and buttons). */
.func-garland{width:min(560px,88vw);margin:18px auto 0;pointer-events:none}
.func-garland svg{display:block;width:100%;height:auto}
.func-floral{position:absolute;width:78px;height:78px;z-index:0;pointer-events:none}
.func-floral svg{display:block;width:100%;height:100%}
.func-floral-tr{top:5px;right:5px}
.func-floral-br{bottom:5px;right:5px;transform:scaleY(-1)}
.func-head{display:flex;align-items:center;gap:18px;margin-bottom:18px;position:relative;z-index:1}
.func-badge{
  flex:none;width:76px;padding:12px 0 9px;text-align:center;background:var(--paper);
  border:1px solid var(--gold-line);border-radius:999px 999px 8px 8px;color:var(--text);
}
.func-badge b{display:block;font:500 34px/1 var(--f-display)}
.func-badge span{display:block;margin-top:4px;font:500 11px/1.1 var(--f-body);letter-spacing:.18em;text-transform:uppercase;color:var(--sage-ink);text-indent:.18em}
.func-weekday{font:500 12px/1.3 var(--f-body);letter-spacing:.26em;text-transform:uppercase;color:var(--sage-ink)}
:lang(pa) .func-weekday{font-size:15.5px;letter-spacing:.04em;text-transform:none}
.func-name{font:500 var(--fs-title)/1.12 var(--f-display);margin-top:3px;color:var(--text)}
.func-meta{display:grid;gap:12px;padding-top:16px;border-top:1px solid rgba(197,164,109,.5);position:relative;z-index:1}
.frow{display:grid;grid-template-columns:84px 1fr;gap:12px;align-items:baseline}
.frow span{font:500 11.5px/1.5 var(--f-body);letter-spacing:.2em;text-transform:uppercase;color:var(--sage-ink)}
:lang(pa) .frow span{font-size:15px;letter-spacing:.02em;text-transform:none}
.frow p{font-size:var(--fs-meta);line-height:1.55;font-weight:400;color:var(--text)}
.func-actions{position:relative;z-index:3;display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
@media(min-width:920px){
  .timeline{padding-left:0}
  .thread{left:50%}
  #function-cards{display:flex;flex-direction:column;gap:42px}
  .func-card{width:calc(50% - 46px);margin-bottom:0}
  #function-cards .func-card:nth-child(odd){align-self:flex-start}
  #function-cards .func-card:nth-child(even){align-self:flex-end}
  .frow{grid-template-columns:96px 1fr}
}

/* ---------- countdown (reference tiles) ---------- */
.countdown .count-until{font:italic 500 clamp(20px,5vw,25px)/1.3 var(--f-display);color:var(--sage-ink);margin-top:12px}
.count-row{display:flex;justify-content:center;gap:clamp(8px,2.4vw,18px);flex-wrap:wrap;max-width:580px;margin:34px auto 0}
.count-tile{
  flex:1 1 0;min-width:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  padding:clamp(26px,7vw,38px) 4px clamp(15px,3.6vw,20px);
  background:linear-gradient(175deg,#E4EBDB,var(--sage) 65%,#D6E0CC);border:1px solid rgba(197,164,109,.6);border-radius:999px 999px 14px 14px;
  box-shadow:inset 0 0 0 4px rgba(248,244,235,.55),0 14px 28px -16px rgba(53,58,51,.30);
  opacity:0;transform:translateY(8px);transition:opacity .7s ease,transform .7s ease;
}
.count-row.inview .count-tile{opacity:1;transform:none}
.count-row.inview .count-tile:nth-child(2){transition-delay:.06s}
.count-row.inview .count-tile:nth-child(3){transition-delay:.12s}
.count-row.inview .count-tile:nth-child(4){transition-delay:.18s}
.count-tile strong{font:500 clamp(34px,9.4vw,56px)/1 var(--f-display);font-variant-numeric:tabular-nums lining-nums;color:var(--text)}
.count-tile span{font:500 11.5px/1.2 var(--f-body);letter-spacing:.22em;text-transform:uppercase;color:var(--sage-ink);text-indent:.22em}
:lang(pa) .count-tile span{font-size:14.5px;letter-spacing:.02em;text-transform:none;text-indent:.02em}
.count-message{margin:26px auto 0;font:italic 500 clamp(20px,5vw,25px)/1.4 var(--f-display);min-height:1.4em;color:var(--sage-ink);max-width:560px}

/* ---------- RSVP — ONE single box: heading + all the names together ---------- */
.rsvp-box{
  position:relative;max-width:640px;margin:0 auto;text-align:center;
  padding:clamp(30px,7vw,42px) clamp(22px,6vw,36px);
  background:linear-gradient(165deg,#FDFBF7 0%,var(--paper) 52%,#F6F1E4 100%);border:1px solid var(--gold);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 1px 2px rgba(53,58,51,.05),0 14px 28px -14px rgba(53,58,51,.18),0 36px 68px -34px rgba(53,58,51,.30);color:var(--text);
}
.rsvp-box::after{content:"";position:absolute;inset:9px;border:1px solid rgba(197,164,109,.6);pointer-events:none}
.rsvp-heading{font:500 clamp(27px,6.8vw,38px)/1.2 var(--f-display);color:var(--text);text-align:center}
.rsvp-box .divider{margin:16px auto 18px}
#rsvp-content{position:relative}
.rsvp-stars{font:500 var(--fs-label)/1.4 var(--f-body);letter-spacing:.3em;text-transform:uppercase;color:var(--sage-ink);margin:20px 0 10px;text-indent:.3em;text-align:center}
:lang(pa) .rsvp-stars{font-size:16px;letter-spacing:.05em;text-transform:none}
.rsvp-person{font:500 var(--fs-body)/1.55 var(--f-display);color:var(--text);text-align:center}
.rsvp-person span{font-family:var(--f-body);color:var(--sage-ink);font-size:16.5px}

/* ---------- closing (reference) ---------- */
/* The closing artwork (.closing-art, an <img> layer so it can
   lazy-load) is the flat-vector palki illustration on WHITE.
   v16 FULL-FRAME (family request): the v11–v15 radial/elliptical
   MASK is REMOVED — it made the picture appear as a circular
   vignette and hid much of it. The art now shows across the FULL
   section, unmasked. The blend into the section's ivory is done
   with soft FEATHERED EDGE FADES in the veil layer (.closing::
   before): four linear gradients, solid ivory at each edge easing
   to transparent 10–16% inward (top / bottom / left / right) — no
   circle anywhere in the treatment.
   v16 LEGIBILITY (family request): the closing LINE sits over the
   palki's blue drapes — the darkest, busiest part of the art — and
   read poorly. Behind the text zone the veil carries a soft
   HORIZONTAL IVORY BAND (a linear gradient: fading in from ~2%,
   .88–.90 through the monogram/line/names/date zone ~24–58%,
   easing out by ~80%) — deliberately a rectangular band, NOT a
   radial disc — over an overall linear wash. Combined, the
   backdrop behind the text is ~.9+ ivory and the text reads
   crisply, while the dome, pillars and couple show beyond the
   band and the feathered edges melt the art into the section.
   v17: the family asked for the palki "a bit more visible" — the
   overall wash is LIGHTENED from .22/.52/.74/.82/.86 to
   .06/.16/.26/.34/.40 so the dome, drapes and red couple read
   clearly; the horizontal text band above keeps its v16 strength
   (.88–.90 through the text zone), so the line, names and date
   stay crisp. Art and layout otherwise as v11. */
.closing{
  background:radial-gradient(ellipse 80% 45% at 50% 100%,rgba(241,217,215,.55),rgba(248,244,235,0) 70%),var(--ivory);
}
.closing::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    linear-gradient(to bottom, rgba(248,244,235,1) 0%, rgba(248,244,235,0) 11%),
    linear-gradient(to top, rgba(248,244,235,1) 0%, rgba(248,244,235,0) 15%),
    linear-gradient(to right, rgba(248,244,235,1) 0%, rgba(248,244,235,0) 9%),
    linear-gradient(to left, rgba(248,244,235,1) 0%, rgba(248,244,235,0) 9%),
    linear-gradient(to bottom,
      rgba(248,244,235,0) 2%,
      rgba(248,244,235,.55) 12%,
      rgba(248,244,235,.88) 24%,
      rgba(248,244,235,.90) 44%,
      rgba(248,244,235,.80) 58%,
      rgba(248,244,235,.45) 68%,
      rgba(248,244,235,0) 80%),
    linear-gradient(to bottom,
      rgba(248,244,235,.06) 0%,
      rgba(248,244,235,.16) 30%,
      rgba(248,244,235,.26) 54%,
      rgba(248,244,235,.34) 74%,
      rgba(248,244,235,.40) 100%);
}
/* v19: height 112% (was inset:0/100%), top-anchored — the square
   art renders ~12% larger, so the seated couple sits ~55px LOWER
   in the section while the text and buttons stay put; together
   with the share-row's extra 40px this takes the button stack
   clear of the couple's heads. The section's overflow:hidden
   clips the art's extra height at its bottom edge, under the
   ivory feather fade, so nothing spills. */
.closing-art{
  position:absolute;top:0;left:0;z-index:-2;width:100%;height:112%;
  object-fit:cover;object-position:50% 38%;pointer-events:none;
}
/* (v16: the .closing-monogram medallion is removed — see index.html.) */
.closing-line{font:italic 500 clamp(24px,6vw,32px)/1.45 var(--f-display);color:var(--text);max-width:560px;margin:4px auto 0;text-align:center}
.closing-names{font-family:var(--f-display);font-size:clamp(30px,9.5vw,58px);margin-top:26px;color:var(--text)}
.closing-date{font:400 14.5px/1.4 var(--f-body);letter-spacing:.28em;text-transform:uppercase;margin-top:14px;color:var(--text);text-indent:.28em}
:lang(pa) .closing-date{font-size:18px;letter-spacing:.04em;text-transform:none;text-indent:.04em}
/* v19: margin-top 34px → 74px — the button stack sat on the seated
   couple's heads in the palki art; the extra 40px drops the whole
   stack (Share/Copy/PDF, and Back-to-top below them) clear of the
   heads at phone size. */
.share-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:74px}
.share-row .btn{white-space:nowrap;flex:0 0 auto}
@media(max-width:400px){.share-row .btn{padding:12px 18px}}
.copied-note{margin-top:14px;color:var(--sage-ink);min-height:1.4em;font-size:16px}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001s !important;transition-duration:.001s !important;scroll-behavior:auto !important}
  .reveal,.count-tile,.func-card{opacity:1;transform:none;filter:none}
}
/* PDF sheet (v16): hidden on screen. In print it is the ONLY thing
   that prints — a purpose-built one-page short version of the
   invitation (renderPdfSheet in script.js): essentials only, no
   countdown, no closing/palki section, no petals. The Save as PDF
   button just calls window.print(). */
#pdf-sheet{display:none}
@media print{
  @page{size:A4;margin:11mm}
  #gate,#petals,.topbar,#main{display:none !important}
  html,body{background:#fff !important;height:auto !important;overflow:visible !important}
  #pdf-sheet{display:block !important;color:var(--text);font-family:var(--f-body);
    -webkit-print-color-adjust:exact;print-color-adjust:exact}
  .pdf-frame{border:2.4px solid var(--gold);outline:1px solid rgba(197,164,109,.55);outline-offset:4.5px;
    background:var(--paper);text-align:center;padding:8mm 10mm 7mm}
  .pdf-onkar{font-size:19pt;color:var(--gold);line-height:1.1}
  .pdf-seal{width:15.5mm;height:15.5mm;margin:2.2mm auto 0}
  .pdf-seal svg{width:100%;height:100%;display:block}
  .pdf-date{font-size:9.5pt;letter-spacing:.24em;text-transform:uppercase;margin-top:2.6mm;color:var(--sage-ink)}
  .pdf-rule{display:flex;align-items:center;gap:2.2mm;width:52mm;margin:3.6mm auto}
  .pdf-rule span{flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--gold))}
  .pdf-rule span:last-child{background:linear-gradient(90deg,var(--gold),transparent)}
  .pdf-rule i{width:1.8mm;height:1.8mm;background:var(--gold);transform:rotate(45deg);flex:none}
  #pdf-sheet p{margin:0 0 1.6mm}
  .pdf-formal-families{font:600 13pt/1.3 var(--f-display);letter-spacing:.1em;text-transform:uppercase}
  .pdf-formal-small{font:italic 500 10pt/1.35 var(--f-display);color:var(--sage-ink)}
  .pdf-formal-names{font:500 11.5pt/1.4 var(--f-display)}
  .pdf-formal-body{font:italic 400 10.5pt/1.45 var(--f-display)}
  .pdf-formal-couple{font:italic 700 16pt/1.3 var(--f-display);margin-top:2.2mm !important}
  .pdf-formal-line{font:400 10.5pt/1.45 var(--f-body)}
  .pdf-formal-place{font:400 10pt/1.4 var(--f-body);color:var(--sage-ink)}
  .pdf-formal-weds{font:italic 500 12.5pt/1.3 var(--f-display);color:var(--gold)}
  .pdf-h{font:600 11pt/1.3 var(--f-display);letter-spacing:.16em;text-transform:uppercase;margin:0 0 2.6mm}
  .pdf-funcs{display:flex;gap:8mm;justify-content:center}
  .pdf-func{flex:1;max-width:72mm}
  .pdf-func h3{font:500 14pt/1.25 var(--f-display);margin:0 0 1.4mm}
  .pdf-func-meta{font-size:10pt;font-weight:500}
  .pdf-func-venue{font-size:10pt;line-height:1.45}
  .pdf-person{font:500 10.5pt/1.5 var(--f-display)}
  .pdf-person span{color:var(--sage-ink);font-size:9.5pt}
  .pdf-stars{font:italic 500 10.5pt/1.4 var(--f-display);color:var(--sage-ink);margin:2.4mm 0 1.2mm}
  .pdf-closing{font:italic 500 13pt/1.4 var(--f-display);margin-top:4.5mm !important}
}
