/* Prem Sandesh: olive doors, a peach curtain, a parrot carrying a love letter; cream and gold inside */
:root {
  /* Prem Sandesh: cream paper, peach silk, olive and gold, bougainvillea rose (the engine's names are kept) */
  --maroon: #6a3a2a;      /* cocoa: headings and strong text */
  --maroon-2: #8a4a36;
  --maroon-3: #4a2a1e;
  --maroon-4: #3a2016;
  --gold: #c69a45;
  --gold-hi: #f3d68f;
  --gold-text: #a87a2c;
  --cream: #fbf5ec;
  --cream-2: #f6e8da;
  --peach: #f0b9a1;
  --peach-2: #e79a7e;
  --olive: #66743a;
  --olive-2: #4f5b2c;
  --rose: #d2546f;
  --ink: #4a2e22;
  --ink-soft: #7d5a48;
  --display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Great Vibes', cursive;
  --deva: 'Tiro Devanagari Hindi', serif;
  --sans: 'Mulish', system-ui, sans-serif;
  --vw: 100vw;
  --gold-grad: linear-gradient(180deg, #fff3c4 0%, #e6bb62 32%, #b07e2a 64%, #f1cd78 100%);
  --cusp: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; cursor: pointer; }
.slot { display: block; width: 100%; height: 100%; }
/* low specificity so positioned slots (.door-top, .door-bottom…) keep their own size */
.slot svg, img:where(.slot) { display: block; width: 100%; height: 100%; object-fit: contain; }
.only-wide { display: none !important; }
.wrap { max-width: 760px; margin: 0 auto; }

/* ---------- surfaces ---------- */
.maroon {
  background-color: var(--maroon-3);
  background-image: var(--damask-maroon), radial-gradient(ellipse at 50% 0%, var(--maroon-2), var(--maroon-3) 70%);
  background-size: 120px 140px, 100% 100%;
}
.cream {
  background-color: var(--cream);
  background-image: var(--paper), var(--damask-cream), linear-gradient(180deg, #fdf3e3, var(--cream) 50%, var(--cream-2));
  background-size: 300px 300px, 120px 140px, 100% 100%;
}

/* ---------- plaque button (cusped ends, gold rim) ---------- */
.btn-plaque {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease;
}
/* gold rim */
.btn-plaque::before { content: ''; position: absolute; inset: 0; background: var(--gold-grad); clip-path: var(--cusp); }
/* shadow/glow: a same-shaped layer behind (no CSS filter, so Safari draws no box) */
.btn-plaque::after {
  content: '';
  position: absolute;
  inset: 3px -2px -5px;
  z-index: -1;
  clip-path: var(--cusp);
  background: rgba(60, 5, 20, .35);
  transition: background .3s ease, inset .3s ease;
}
.btn-plaque:hover::after { background: rgba(60, 5, 20, .45); inset: 5px -3px -7px; }
.btn-plaque:focus { outline: none; }
.btn-plaque:focus-visible span { box-shadow: inset 0 0 0 2px var(--gold-hi); }
.btn-plaque span {
  position: relative;
  display: block;
  margin: 2.5px;
  padding: 12px 40px;
  clip-path: var(--cusp);
  background: linear-gradient(180deg, #9a2348 0%, var(--maroon) 55%, var(--maroon-3) 100%);
  color: var(--gold-hi);
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-plaque:hover { transform: translateY(-1px); }
.btn-plaque:active { transform: translateY(1px); }
.btn-plaque.wide { justify-self: center; }
.btn-plaque:disabled { opacity: .6; }

/* ---------- stage: sticky hero + doors, opened by scrolling ---------- */
.runway { position: relative; height: 100vh; height: 100svh; }
/* page is locked on the invitation card until the guest taps to open */
body.locked { overflow: hidden; height: 100vh; height: 100dvh; touch-action: none; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--maroon-3); }
.hero { position: absolute; inset: 0; overflow: hidden; }
.hero-art { position: absolute; inset: -3% 0 0; will-change: transform; transform: scale(1.04); }
.hero-art .slot svg, .hero-art img.slot { object-fit: cover; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: #2a0b1c; opacity: .35; pointer-events: none; }
body.opened .hero-art::after { animation: dusk 3s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes dusk { to { opacity: 0; } }
.hero-names {
  position: absolute;
  top: 7%;
  left: 0;
  right: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(46px, 13vw, 62px);
  line-height: 1.02;
  color: var(--maroon);
  text-shadow: 0 2px 14px rgba(255, 240, 225, .7);
  z-index: 2;
}
.hero-names .amp { font-family: var(--script); font-style: normal; font-size: .5em; color: var(--maroon-2); margin: 2px 0; }
.hero-names span { opacity: 0; }
body.opened .hero-names span { animation: rise 1.4s cubic-bezier(.2, .8, .2, 1) both; }
body.opened .hero-names span:nth-child(2) { animation-delay: .3s; }
body.opened .hero-names span:nth-child(3) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(5px); } to { opacity: 1; } }

.gate { position: absolute; inset: 0; z-index: 5; perspective: 1400px; --p: 0; }
.gate.gone { visibility: hidden; }
.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  transform-style: preserve-3d;
  will-change: transform;
}
.door-l { left: 0; transform-origin: left center; transform: rotateY(calc(var(--p) * -108deg)); }
.door-r { right: 0; transform-origin: right center; transform: rotateY(calc(var(--p) * 108deg)); }
.door-face {
  position: absolute;
  inset: 0;
  background-color: var(--maroon);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 12%, transparent 88%, rgba(0, 0, 0, .35)),
    var(--paper), var(--damask-maroon),
    radial-gradient(ellipse at 50% 40%, #7a1a3a, var(--maroon) 55%, var(--maroon-3));
  background-size: 100% 100%, 300px 300px, 120px 140px, 100% 100%;
  box-shadow: inset 0 0 0 3px #2a0411, inset 0 0 0 6px rgba(201, 151, 63, .55), inset 0 0 0 8px #2a0411, inset 0 0 70px rgba(0, 0, 0, .55);
  backface-visibility: hidden;
}
.door-l .door-face { border-right: 2px solid #1c020a; }
.door-r .door-face { border-left: 2px solid #1c020a; }
.door-edge { position: absolute; top: 0; bottom: 0; width: 18px; background: linear-gradient(90deg, #2a0411, #6a1530, #2a0411); }
.door-l .door-edge { right: 0; transform-origin: right center; transform: rotateY(-90deg); }
.door-r .door-edge { left: 0; transform-origin: left center; transform: rotateY(90deg); }
.door-top { position: absolute; top: 4%; width: 84%; height: 20%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.door-l .door-top { left: 8%; }
.door-r .door-top { right: 8%; transform: scaleX(-1); }
.door-bottom { position: absolute; bottom: 4%; width: 84%; height: 24%; left: 8%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.door-r .door-bottom { transform: scaleX(-1); } /* elephants face the centre */
.hero-art img.slot { object-position: 50% 40%; }
.door-ring {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: 90px;
  border-radius: 50%;
  border: 4px solid #d9a548;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .6), inset 0 1px 2px rgba(255, 255, 255, .5);
}
.door-l .door-ring { right: 14px; }
.door-r .door-ring { left: 14px; }

/* the invitation sash across both doors (vertical panel on desktop) */
.gate-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 3;
  padding: 34px 28px 26px;
  text-align: center;
  background-color: var(--cream);
  background-image: var(--paper), var(--damask-cream), radial-gradient(ellipse at center, #fff8ea 0%, var(--cream) 60%, var(--cream-2) 100%);
  background-size: 300px 300px, 120px 140px, 100% 100%;
  box-shadow: 0 30px 50px rgba(0, 0, 0, .6), 0 -20px 40px rgba(0, 0, 0, .35);
  opacity: clamp(0, calc(1 - var(--p) * 2.4), 1);
  transform: translateY(-50%) scale(calc(1 + var(--p) * .12));
}
.gate-card::before, .gate-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(180deg, #9a2348, var(--maroon) 60%, var(--maroon-3));
  box-shadow: 0 0 0 1px #2a0411;
}
.gate-card::before { top: -14px; }
.gate-card::after { bottom: -14px; transform: scaleY(-1); }
.om { font-family: var(--deva); font-size: 56px; line-height: 1; color: #a8742a; text-shadow: 0 1px 0 #fff, 0 2px 6px rgba(168, 116, 42, .4); }
.gate-kalash { width: 80px; height: 90px; margin: 0 auto; }
.mantra { font-family: var(--deva); color: #8a5a22; font-size: 22px; margin: 10px 0 12px; }
.intro { font-family: var(--display); font-size: 18px; line-height: 1.45; color: #8a5a22; margin: 0 auto 22px; font-weight: 600; max-width: 290px; }
#openBtn::after { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { background: rgba(246, 213, 139, .75); inset: -4px -8px -8px; } }

/* ---------- music ---------- */
.music-btn {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 60;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 252, 245, .92);
  color: var(--maroon);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.music-btn svg { width: 20px; height: 20px; fill: currentColor; }
.music-btn .wave { opacity: .25; }
.music-btn.on .wave { opacity: 1; animation: wave 1.4s ease-in-out infinite; }
@keyframes wave { 50% { opacity: .35; } }

/* ---------- content ---------- */
.content { position: relative; overflow: clip; }
section { position: relative; text-align: center; }
[data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity .9s cubic-bezier(.215, .61, .355, 1), transform .9s cubic-bezier(.215, .61, .355, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }

.h2 { font-family: var(--display); font-weight: 600; font-size: 34px; margin: 0 0 26px; }
.h2.light { color: var(--gold-text); text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.h2.dark { color: var(--maroon); }

/* scrolls */
.families { padding: 50px 0 30px; }
.scroll { width: calc(100% - 64px); max-width: 760px; margin: 0 auto 34px; position: relative; }
.rod {
  position: relative;
  height: 28px;
  margin: 0 -4px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3a0718 0%, #8e2346 30%, #c24a72 45%, #7d1838 65%, #3a0718 100%);
  z-index: 2;
}
.rod::before, .rod::after, .rod i::before, .rod i::after { content: ''; position: absolute; top: 50%; }
.rod::before, .rod::after { width: 18px; height: 34px; margin-top: -17px; border-radius: 4px; background: linear-gradient(180deg, #7a4a10, #f6d58b 35%, #c08a2c 60%, #6b3f0c); }
.rod::before { left: -6px; }
.rod::after { right: -6px; }
.rod i::before, .rod i::after { width: 16px; height: 24px; margin-top: -12px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff2c0, #e0aa48 40%, #8a5512 85%); }
.rod i::before { left: -20px; }
.rod i::after { right: -20px; }
.sheet {
  position: relative;
  margin: -8px 12px;
  padding: 50px 22px 30px;
  background-color: var(--maroon);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 9%, transparent 91%, rgba(0, 0, 0, .45)),
    var(--paper),
    radial-gradient(ellipse at 50% 45%, #85204a 0%, var(--maroon) 50%, var(--maroon-3) 100%);
  background-size: 100% 100%, 300px 300px, 100% 100%;
  color: var(--gold-text);
}
.sheet::before { content: ''; position: absolute; inset: 8px; border-left: 3px dotted rgba(246, 196, 108, .55); border-right: 3px dotted rgba(246, 196, 108, .55); pointer-events: none; }
.sheet h3 { font-family: var(--display); font-weight: 600; font-size: 27px; margin: 0 0 16px; color: #ffcf7a; }
.sheet .rel { font-family: var(--display); font-size: 17px; margin: 18px 0 4px; color: #f0b866; font-weight: 500; }
.sheet .who { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0; color: #ffd185; }
.sheet .and { font-weight: 500; }
.sheet ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-family: var(--display); font-weight: 600; font-size: 17px; color: #ffd185; }
.sheet-orn { width: 230px; margin: 28px auto 0; }

/* unrolling: --u 0 = rolled shut, 1 = fully open (set from JS) */
.scroll { --u: 0; --sh: 400px; }
.scroll .sheet { clip-path: inset(0 0 calc((1 - var(--u)) * 100%) 0); }
.scroll .sheet-body { opacity: clamp(0, calc(var(--u) * 1.6 - .5), 1); transform: translateY(calc((1 - var(--u)) * -24px)); }
.scroll .rod-bottom { transform: translateY(calc((var(--u) - 1) * (var(--sh) - 16px))); }

/* scroll shadows without filters: rods cast their own soft shadow, and a
   separate shadow plate grows with the unrolled sheet (no flicker, no cut) */
.scroll .rod { box-shadow: 0 6px 10px -2px rgba(60, 10, 20, .35), 0 14px 24px -8px rgba(60, 10, 20, .25); }
.scroll::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  height: calc(var(--u) * (var(--sh) - 16px));
  border-radius: 6px;
  box-shadow: 0 22px 40px -10px rgba(60, 10, 20, .45), 0 6px 14px rgba(60, 10, 20, .18);
  pointer-events: none;
}
.scroll .rod-bottom { will-change: transform; }

/* floral ornament hanging from the bottom rod; travels down with it and
   blooms in as the scroll opens */
.scroll.has-orn { margin-bottom: 150px; }
.scroll-orn {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 104px;
  margin: -4px 0 0 -52px;
  opacity: clamp(0, calc(var(--u) * 2 - 1), 1);
  transform: scale(calc(.6 + var(--u) * .4));
  transform-origin: 50% 0;
  filter: drop-shadow(0 6px 8px rgba(60, 10, 20, .25));
  pointer-events: none;
}
/* the bottom rod's surface turns as it rolls */
.scroll .rod-bottom {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0 5px, rgba(255, 255, 255, .10) 5px 7px) 0 calc(var(--u) * 140px) / 100% 14px,
    linear-gradient(180deg, #3a0718 0%, #8e2346 30%, #c24a72 45%, #7d1838 65%, #3a0718 100%);
}

/* date */
.date { padding: 0 0 4px; overflow: hidden; }
.strip { height: 22px; background-image: var(--strip); background-size: 34px 22px; border-top: 1px solid rgba(201, 151, 63, .4); border-bottom: 1px solid rgba(201, 151, 63, .4); background-color: rgba(246, 222, 190, .6); }
.date-top { width: 150px; margin: 30px auto 6px; filter: drop-shadow(0 8px 10px rgba(90, 30, 20, .25)); }
.date-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 0 auto 40px; max-width: 1000px; }
.date-side { height: 120px; margin: 0 -24px; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .25)); }
.date-side { position: relative; z-index: 2; }
.date-side.flip { transform: scaleX(-1); }
.plaques { position: relative; z-index: 1; }
.plaques { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; perspective: 600px; }
.plaque {
  position: relative;
  width: 82px;
  height: 66px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #9a2348, var(--maroon) 60%, var(--maroon-3));
  --m: radial-gradient(circle 10px at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
    radial-gradient(circle 10px at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
    radial-gradient(circle 10px at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
    radial-gradient(circle 10px at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
  -webkit-mask: var(--m);
  mask: var(--m);
  box-shadow: inset 0 0 0 2px rgba(246, 196, 108, .5), inset 0 2px 0 rgba(255, 255, 255, .2);
  margin-top: 10px;
}
.plaque .tab { position: absolute; top: 4px; font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); background: var(--cream); padding: 2px 8px; border-radius: 8px; }
.plaque .v { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--gold-hi); margin-top: 12px; }
/* reveal: the plaque glows, then the number rises out of it, blurred to sharp */
.plaque { overflow: hidden; }
.plaque .v { display: inline-block; opacity: 0; transform: translateY(70%) scale(.7); filter: blur(6px); }
.plaque.lit { animation: plaqueGlow 1.4s ease-out both; }
.plaque.lit .v { animation: numRise 1.1s cubic-bezier(.2, 1.3, .35, 1) .25s both; }
@keyframes plaqueGlow {
  0% { box-shadow: inset 0 0 0 2px rgba(246, 196, 108, .5); }
  35% { box-shadow: inset 0 0 0 2px var(--gold-hi), inset 0 0 40px rgba(255, 214, 120, .65); }
  100% { box-shadow: inset 0 0 0 2px rgba(246, 196, 108, .5), inset 0 0 14px rgba(255, 214, 120, .15); }
}
@keyframes numRise {
  0% { opacity: 0; transform: translateY(70%) scale(.7); filter: blur(6px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; text-shadow: 0 0 14px rgba(255, 214, 120, .6); }
}
.plaque .shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 200, .55) 50%, transparent 65%); transform: translateX(-120%); }
.plaque.lit .shine { animation: shine 1.2s ease-in-out .7s both; }
@keyframes shine { to { transform: translateX(120%); } }
.sparks { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
.sparks i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: radial-gradient(circle, #fff6d0, #f2c45a 60%, transparent 70%); animation: spark .9s ease-out forwards; }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
/* button and "Save the Date" share one slot and cross-fade: no layout jump */
.reveal-slot { display: grid; place-items: center; min-height: 64px; }
.reveal-slot > * { grid-area: 1 / 1; }
#revealBtn { transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s; }
#revealBtn.used { opacity: 0; transform: scale(.94); pointer-events: none; visibility: hidden; }
.after { margin: 0; opacity: 0; transform: translateY(8px); filter: blur(4px); transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease; pointer-events: none; }
.after.show { opacity: 1; transform: none; filter: none; }
.after { font-family: var(--script); font-size: 30px; color: var(--maroon); margin: 12px 0 0; }

/* gallery: a wall with a long rail and many hanging frames */
.gallery {
  padding: 0;
  background-color: #f6e6cf;
  background-image: var(--paper), radial-gradient(ellipse at 50% 30%, #fbf0dd, #f1dcbd 80%);
  background-size: 300px 300px, 100% 100%;
}
.divider-wide { width: min(92%, 640px); margin: 0 auto 18px; }
.wall { position: relative; }
.gal-runway { position: relative; }
.gal-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.gal-stage .h2 { margin-bottom: 2vh; }
.gal-stage .divider-wide { margin-bottom: 1vh; }
.track { overflow: hidden; overflow-x: clip; overflow-y: visible; padding-bottom: 60px; margin-bottom: -60px; }
.track-inner {
  position: relative;
  will-change: transform;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: max-content;
  padding: 0 max(4vw, calc((100vw - 1280px) / 2)) 50px;
}
.track-inner::before {
  /* the rail runs the full length of the wall */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(180deg, #a52a52, var(--maroon) 60%, var(--maroon-3));
  box-shadow: 0 3px 6px rgba(0, 0, 0, .3);
}
.frame3d {
  flex: none;
  width: min(68vw, 330px, 40vh);
  margin: 0;
  position: relative;
  /* lean from the hanging ring, driven by the rail's motion */
  transform-origin: 50% 0;
  transform: perspective(900px) rotate(var(--lean, 0deg)) rotateY(var(--yaw, 0deg));
}
.frame3d { --cordh: calc(70px + var(--drop)); }
.cords { position: relative; height: var(--cordh); }
.cords .ring { position: absolute; top: -4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 3px solid #ecd6c4; z-index: 2; }
.cords svg { position: absolute; left: 0; top: 4px; width: 100%; height: calc(100% - 2px); overflow: visible; }
.cords .cord { fill: none; stroke: #7d1838; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.cords .cord-twist { fill: none; stroke: #d7718f; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.swing { transform-origin: 50% calc(-1 * var(--cordh)); transform: rotate(var(--tilt)); animation: sway 6s ease-in-out infinite; animation-delay: calc(var(--d) * -.8s); }
@keyframes sway { 0%, 100% { transform: rotate(var(--tilt)); } 50% { transform: rotate(calc(var(--tilt) * -1)); } }
.moulding {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 40%), linear-gradient(180deg, #9c2452, #7d1838 50%, #5c0f2a);
  box-shadow: inset 0 0 0 2px #4a0a20, inset 4px 4px 0 rgba(255, 160, 190, .35), inset -4px -4px 0 rgba(0, 0, 0, .35),
    18px 26px 30px rgba(60, 20, 10, .35), 4px 6px 6px rgba(0, 0, 0, .3);
  position: relative;
}
.moulding::after { content: ''; position: absolute; inset: 16px; box-shadow: inset 2px 2px 0 #3a0718, inset -2px -2px 0 #c24a72; pointer-events: none; }
.mat { background: #f9ead6; padding: 14px 14px 10px; box-shadow: inset 2px 2px 6px rgba(0, 0, 0, .25); }
.mat img, .mat .ph { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.landscape { width: min(80vw, 440px, 52vh); }
@media (max-width: 899px) { .frame3d { --cordh: calc(46px + var(--drop) * .5); } }
@media (max-height: 720px) and (max-width: 899px) {
  .gal-stage .divider-wide { display: none; }
  .gal-stage .h2 { font-size: 28px; margin-bottom: 1vh; }
  .frame3d { width: min(62vw, 36vh); --cordh: calc(34px + var(--drop) * .35); }
  .landscape { width: min(76vw, 46vh); }
  .track-inner { padding-bottom: 24px; }
}
.landscape .mat img, .landscape .mat .ph { aspect-ratio: 4 / 3; }
.mat .ph { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #fff5e6, #ecd2ae); }
.mat .ph svg, .mat .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-shadow: none; aspect-ratio: auto; }
.mat .ph img.contain { object-fit: contain; padding: 8%; }
.mat .ph span { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .8); font: 600 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.mat figcaption { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 22px; color: var(--maroon); padding-top: 8px; }
.story .mat blockquote { margin: 0; padding: 30px 20px; font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--maroon); aspect-ratio: 4 / 5; display: grid; place-items: center; }
.frame-nav { display: flex; justify-content: center; align-items: center; gap: 22px; }
.gal-progress { width: 120px; height: 3px; border-radius: 2px; background: rgba(92, 15, 42, .15); overflow: hidden; }
.gal-progress i { display: block; height: 100%; width: 0; background: var(--maroon); }
.frame-nav button { border: 0; background: none; color: var(--maroon); font-size: 28px; letter-spacing: -2px; padding: 4px 10px; }

/* ceremonies */
.ceremonies { padding: 110px 22px 60px; }
.jh { position: absolute; top: 0; width: 140px; z-index: 1; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.jh-l { left: 0; }
.jh-r { right: 0; transform: scaleX(-1); }
.cere-grid { max-width: 420px; margin: 0 auto; }
.arch-card {
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 V30 C0 24 6 22 12 21 C20 20 24 14 28 10 C34 5 42 4 46 2 L50 0 L54 2 C58 4 66 5 72 10 C76 14 80 20 88 21 C94 22 100 24 100 30 V40Z'/%3E%3C/svg%3E");
  position: relative;
  padding: 7px;
  background: linear-gradient(180deg, #b47a3c, #6b3a14 40%, #a8703a 70%, #5a2c0c);
  -webkit-mask: var(--arch) top / 100% 120px no-repeat, linear-gradient(#000, #000) 0 119px / 100% calc(100% - 119px) no-repeat;
  mask: var(--arch) top / 100% 120px no-repeat, linear-gradient(#000, #000) 0 119px / 100% calc(100% - 119px) no-repeat;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .5));
}
.arch-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  background-color: #fbe7c8;
  background-image: var(--paper), radial-gradient(ellipse at 50% 30%, #fff6e6, #f8dfb8 60%, #ecc895);
  background-size: 300px 300px, 100% 100%;
  -webkit-mask: var(--arch) top / 100% 113px no-repeat, linear-gradient(#000, #000) 0 112px / 100% calc(100% - 112px) no-repeat;
  mask: var(--arch) top / 100% 113px no-repeat, linear-gradient(#000, #000) 0 112px / 100% calc(100% - 112px) no-repeat;
}
.arch-card > * { position: relative; }
.arch-art { height: 200px; margin: 50px 18px 4px; }
.arch-card h3 { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--maroon-3); margin: 4px 0 14px; }
.arch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 22px; text-align: left; }
.venue { font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.25; }
.pin { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--maroon-3); border: 1.5px solid var(--maroon-3); box-shadow: 0 3px 0 rgba(58, 7, 24, .3); }
.pin svg { width: 22px; height: 22px; }
.arch-foot { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 22px 0; padding: 12px 0 22px; border-top: 1px solid rgba(90, 44, 12, .3); font-family: var(--sans); font-weight: 700; font-size: 18px; color: var(--ink); }
.arch-foot .t { font-size: 13px; }
.cere-div { width: 80%; max-width: 520px; margin: 30px auto; }

/* after ceremonies */
.after-cere { padding: 50px 0 20px; }
.torn {
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 16px;
  background: #fdf3e3;
  clip-path: polygon(0 60%, 4% 30%, 8% 70%, 12% 20%, 17% 60%, 21% 35%, 26% 75%, 30% 25%, 35% 55%, 40% 15%, 44% 65%, 49% 30%, 54% 70%, 58% 20%, 63% 60%, 67% 35%, 72% 75%, 76% 25%, 81% 55%, 86% 20%, 90% 65%, 95% 30%, 100% 60%, 100% 100%, 0 100%);
  z-index: 2;
}
.badges { display: flex; justify-content: center; gap: 26px; padding: 14px 16px 40px; flex-wrap: wrap; }
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--maroon);
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
/* brass medallion: gold rim, maroon enamel centre, embossed gold icon */
.medal {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-hi);
  background:
    radial-gradient(circle at 35% 30%, #a1305a, var(--maroon) 55%, var(--maroon-3) 100%) padding-box,
    conic-gradient(from 200deg, #f8e2a0, #b7822c, #fff0b8, #a86f1c, #f0c86a, #8a5512, #f8e2a0) border-box;
  border: 4px solid transparent;
  box-shadow: 0 10px 18px rgba(80, 15, 30, .3), inset 0 0 0 2px rgba(246, 213, 139, .45), inset 0 -6px 10px rgba(0, 0, 0, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.medal::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(246, 213, 139, .45); }
.medal svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .4)); }
.medal-label { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.badge:hover .medal, .badge:focus-visible .medal { transform: translateY(-3px); box-shadow: 0 16px 24px rgba(80, 15, 30, .35), inset 0 0 0 2px rgba(246, 213, 139, .6), inset 0 -6px 10px rgba(0, 0, 0, .35); }
.badge:focus { outline: none; }
.orn-img { display: block; width: 100%; height: auto; }

/* RSVP */
.rsvp { padding: 30px 18px 60px; }
.rsvp-card { max-width: 680px; margin: 0 auto; background: rgba(255, 253, 249, .96); border-radius: 22px; padding: 34px 20px 28px; box-shadow: 0 24px 50px rgba(90, 30, 20, .18), 0 0 0 1px rgba(201, 151, 63, .25); }
.rsvp .sub { margin: -14px 0 24px; color: var(--ink-soft); font-size: 18px; }
.rsvp form { text-align: left; display: grid; gap: 16px; }
.two { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span, .field-title { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--maroon); margin: 0; }
input, textarea { font: 500 16px var(--sans); color: var(--ink); padding: 13px 14px; border-radius: 12px; border: 1.5px solid #e7d6c6; background: #fff; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.count-box { background: #f1ece9; border-radius: 16px; padding: 18px; text-align: center; display: grid; gap: 10px; }
.count-q { font-family: var(--sans); font-weight: 700; color: var(--maroon-3); }
.count-box small, .hint { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); }
.stepper { display: flex; justify-content: center; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid #d9c9c2; background: #fff; color: var(--maroon); font-size: 22px; font-weight: 700; }
.stepper output { width: 66px; height: 44px; border-radius: 12px; border: 1.5px solid #d9c9c2; background: #fff; display: grid; place-items: center; font: 700 18px var(--sans); }
.ev-list { border: 1.5px solid #ece0d8; border-radius: 16px; overflow: hidden; }
.rsvp-ev { border: 0; border-bottom: 1px solid #ece0d8; margin: 0; padding: 14px 16px; }
.rsvp-ev:last-child { border-bottom: 0; }
.rsvp-ev legend { float: left; width: 100%; font: 700 17px var(--sans); color: var(--maroon-3); padding: 0; margin-bottom: 10px; }
.rsvp-ev legend small { display: block; font-weight: 500; font-size: 12px; color: var(--gold); margin-top: 2px; }
.opts { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts input { position: absolute; opacity: 0; width: 1px; }
.opts span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 0; border-radius: 12px; border: 1.5px solid #e2d4cc; background: #fff; font: 600 14px var(--sans); color: var(--ink); }
.opts span::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #8a7470; }
.opts input:checked + span { border-color: var(--maroon); background: #fbeef1; color: var(--maroon); }
.opts input:checked + span::before { border: 4.5px solid var(--maroon); }
.opts input:focus-visible + span { outline: 2px solid var(--gold); }
.hint { text-align: center; margin: 0; }
.status { text-align: center; font: 600 15px var(--sans); margin: 0; min-height: 1.2em; }
.status.ok { color: #2f7a3a; }
.status.err { color: #b3261e; }

/* outro */
.outro { height: 820px; overflow: hidden; background: #f3d9bf; }
.outro .torn.top { top: 0; z-index: 3; transform: scaleY(-1); background: #fdf3e3; height: 18px; }
.outro-art { position: absolute; inset: 0; will-change: transform; }
.outro-art .slot svg, .outro-art img.slot { object-fit: cover; }
.easel { position: absolute; left: 50%; top: 70px; width: 250px; margin-left: -125px; }
.easel-board { position: relative; height: 420px; padding: 10px; background: var(--gold-grad); border-radius: 125px 125px 6px 6px; box-shadow: 0 30px 40px rgba(60, 20, 10, .4); }
.finial { position: absolute; top: -40px; left: 50%; width: 16px; height: 46px; margin-left: -8px; background: var(--gold-grad); clip-path: polygon(50% 0, 70% 30%, 60% 40%, 75% 60%, 60% 100%, 40% 100%, 25% 60%, 40% 40%, 30% 30%); }
.board-inner {
  height: 100%;
  border-radius: 116px 116px 2px 2px;
  background-color: #fbf3e6;
  background-image: var(--paper);
  box-shadow: inset 0 0 0 8px #fbf3e6, inset 0 0 0 9px #c9973f, inset 0 0 0 18px #fbeedb, inset 0 0 0 19px rgba(201, 151, 63, .6), inset 0 0 40px rgba(150, 100, 50, .25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
}
.farewell { font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--maroon); margin: 0 0 16px; }
.couple-sm { font-family: var(--script); font-size: 34px; color: var(--maroon-2); margin: 0; }
.tag { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--gold); margin: 8px 0 0; }
.legs { position: relative; height: 250px; }
.legs i { position: absolute; top: -10px; width: 16px; height: 260px; background: linear-gradient(90deg, #a8703a, #f0d29a 40%, #b8803e); box-shadow: 0 8px 10px rgba(0, 0, 0, .25); }
.legs i:nth-child(1) { left: 18%; transform: rotate(8deg); transform-origin: top; }
.legs i:nth-child(2) { left: calc(50% - 8px); height: 200px; filter: brightness(.85); }
.legs i:nth-child(3) { right: 18%; transform: rotate(-8deg); transform-origin: top; }
.credit { position: absolute; bottom: 70px; left: 0; right: 0; font-family: var(--sans); font-size: 12px; color: var(--maroon-3); margin: 0; }


/* Realistic grounding for the farewell stand: a soft contact shadow where it
   meets the floor plus a faint, longer cast shadow from the warm side light. */
.easel-shadow {
  position: absolute;
  left: 50%;
  top: 700px;            /* floor line under the easel feet (phones) */
  width: 300px;
  height: 80px;
  margin-left: -150px;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 12% 14% at 12% 55%, rgba(30, 8, 4, .85), transparent 72%),
    radial-gradient(ellipse 12% 14% at 88% 55%, rgba(30, 8, 4, .85), transparent 72%),
    radial-gradient(ellipse 10% 12% at 50% 6%, rgba(30, 8, 4, .7), transparent 72%),
    radial-gradient(ellipse 52% 40% at 50% 50%, rgba(50, 15, 8, .45), transparent 78%);
  filter: blur(3px);
}
.easel-shadow::after {
  /* cast shadow stretched across the floor, away from the lantern light */
  content: '';
  position: absolute;
  left: 20%;
  top: 30%;
  width: 90%;
  height: 120%;
  background: radial-gradient(ellipse at 30% 40%, rgba(50, 15, 10, .38), transparent 70%);
  transform: skewX(-38deg);
  filter: blur(10px);
}
.easel { z-index: 2; }
.easel-board::after {
  /* ambient occlusion: the board darkens slightly toward its lower edge */
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -18px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(40, 12, 8, .35), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}
.credit a { color: inherit; font-weight: 700; text-decoration: none; }
.credit-logo { width: 22px; height: 22px; object-fit: contain; vertical-align: -6px; margin-right: 8px; }
.credit a:hover, .credit a:focus-visible { text-decoration: underline; }



/* per-leg contact shadows: a dark soft oval under each foot plus a faint
   shadow stretched across the floor (counter-rotated so it lies flat) */
.legs i::after, .legs i::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  pointer-events: none;
}
.legs i::after {
  width: 40px;
  height: 12px;
  margin-left: -20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(30, 8, 4, .7), rgba(30, 8, 4, 0) 70%);
  filter: blur(2px);
}
.legs i::before {
  width: 90px;
  height: 18px;
  margin-left: -10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 20% 50%, rgba(40, 12, 6, .32), rgba(40, 12, 6, 0) 70%);
  filter: blur(5px);
  transform-origin: 10px 50%;
  transform: rotate(14deg);
}
.legs i:nth-child(1)::after, .legs i:nth-child(1)::before { rotate: -8deg; }
.legs i:nth-child(3)::after, .legs i:nth-child(3)::before { rotate: 8deg; }
@media (max-width: 899px) {
  .easel-shadow { top: 690px; height: 60px; background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(50, 15, 8, .3), transparent 78%); }
  .easel-shadow::after { display: none; }
  .credit { bottom: 46px; }
}

.credit {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 7px 16px;
  border-radius: 18px;
  background: rgba(255, 249, 238, .9);
  color: var(--maroon-3);
  box-shadow: 0 4px 14px rgba(60, 20, 10, .18);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  z-index: 3;
}

/* ---------- living scenes ---------- */
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene-box { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.scene-img { display: block; width: 100%; height: 100%; }
.fx { position: absolute; background-repeat: no-repeat; pointer-events: none; }
/* water: light glinting and drifting across the surface. The pool itself is
   NOT distorted, so floating diyas and lotuses stay still and crisp. */
.fx-water { background: none !important; overflow: hidden; }
.fx-water::before, .fx-water::after {
  content: '';
  position: absolute;
  inset: 0 -240px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 100%);
}
.fx-water::before { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27240%27%20height%3D%2770%27%3E%3Crect%20x%3D%2732%27%20y%3D%2759%27%20width%3D%2718%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.50%27/%3E%3Crect%20x%3D%27119%27%20y%3D%2731%27%20width%3D%2716%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.82%27/%3E%3Crect%20x%3D%2723%27%20y%3D%272%27%20width%3D%2719%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.61%27/%3E%3Crect%20x%3D%27183%27%20y%3D%270%27%20width%3D%2713%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.78%27/%3E%3Crect%20x%3D%2755%27%20y%3D%2766%27%20width%3D%2720%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.37%27/%3E%3Crect%20x%3D%276%27%20y%3D%2738%27%20width%3D%2721%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.58%27/%3E%3Crect%20x%3D%2752%27%20y%3D%2730%27%20width%3D%276%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.48%27/%3E%3Crect%20x%3D%27105%27%20y%3D%2735%27%20width%3D%2710%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.49%27/%3E%3Crect%20x%3D%2753%27%20y%3D%2732%27%20width%3D%2711%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.36%27/%3E%3Crect%20x%3D%27201%27%20y%3D%2739%27%20width%3D%2716%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.46%27/%3E%3Crect%20x%3D%27238%27%20y%3D%2760%27%20width%3D%278%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.55%27/%3E%3Crect%20x%3D%27173%27%20y%3D%2750%27%20width%3D%2721%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.60%27/%3E%3Crect%20x%3D%27199%27%20y%3D%2747%27%20width%3D%2711%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.70%27/%3E%3Crect%20x%3D%27212%27%20y%3D%2759%27%20width%3D%2714%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.70%27/%3E%3Crect%20x%3D%278%27%20y%3D%2717%27%20width%3D%2719%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.60%27/%3E%3Crect%20x%3D%2742%27%20y%3D%2738%27%20width%3D%2717%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.75%27/%3E%3C/svg%3E") 0 0 / 240px 70px repeat; animation: glide 14s linear infinite, glint 3.2s ease-in-out infinite alternate; }
.fx-water::after { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27180%27%20height%3D%2750%27%3E%3Crect%20x%3D%2758%27%20y%3D%278%27%20width%3D%2716%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.39%27/%3E%3Crect%20x%3D%2796%27%20y%3D%2718%27%20width%3D%277%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.65%27/%3E%3Crect%20x%3D%277%27%20y%3D%2722%27%20width%3D%277%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.40%27/%3E%3Crect%20x%3D%2776%27%20y%3D%2741%27%20width%3D%278%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.48%27/%3E%3Crect%20x%3D%27113%27%20y%3D%2747%27%20width%3D%2715%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.59%27/%3E%3Crect%20x%3D%27176%27%20y%3D%272%27%20width%3D%2720%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.52%27/%3E%3Crect%20x%3D%2726%27%20y%3D%276%27%20width%3D%2711%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.84%27/%3E%3Crect%20x%3D%2733%27%20y%3D%2729%27%20width%3D%2716%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.57%27/%3E%3Crect%20x%3D%2799%27%20y%3D%273%27%20width%3D%277%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.47%27/%3E%3Crect%20x%3D%27122%27%20y%3D%2721%27%20width%3D%2711%27%20height%3D%271.6%27%20rx%3D%270.8%27%20fill%3D%27white%27%20opacity%3D%270.70%27/%3E%3C/svg%3E") 0 0 / 180px 50px repeat; animation: glideBack 19s linear infinite, glint 2.4s ease-in-out -1.2s infinite alternate; }
@keyframes glide { to { transform: translateX(240px); } }
@keyframes glideBack { to { transform: translateX(-180px); } }
@keyframes glint { from { opacity: .16; } to { opacity: .36; } }
/* foliage stirring in a breeze: a gentle sway of the feathered foliage crop
   (transform only — runs on the GPU, no per-frame repainting) */
.fx-breeze {
  transform-origin: 50% 100%;
  animation: leafSway 5.5s ease-in-out var(--d) infinite alternate;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
@keyframes leafSway {
  0% { transform: rotate(-.5deg) skewX(.6deg); }
  100% { transform: rotate(.5deg) skewX(-.6deg); }
}
/* hanging lanterns swaying from their hooks */
.fx-swing {
  transform-origin: 50% 0;
  animation: lanternSwing 3.6s ease-in-out var(--d) infinite alternate;
  -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 75%, transparent 100%);
}
@keyframes lanternSwing { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
/* flame glows: warm, soft, each flickering on its own rhythm */
.lights { position: absolute; inset: 0; pointer-events: none; }
.lights i {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 246, 200, .75) 0%, rgba(255, 200, 110, .38) 24%, rgba(255, 160, 60, .12) 50%, transparent 70%);
  animation: flick var(--t) ease-in-out var(--d) infinite alternate;
}
@keyframes flick {
  0% { opacity: .4; transform: translate(-50%, -50%) scale(.88); }
  22% { opacity: .85; transform: translate(-50%, -53%) scale(1.04); }
  48% { opacity: .55; transform: translate(-51%, -50%) scale(.96); }
  74% { opacity: 1; transform: translate(-50%, -52%) scale(1.1); }
  100% { opacity: .68; transform: translate(-49%, -50%) scale(.94); }
}

/* door art comes alive: the branch sways, the elephants breathe */
.door-top { animation: branchSway 5.5s ease-in-out infinite alternate; transform-origin: 50% 85%; }
@keyframes branchSway { from { rotate: -1.6deg; } to { rotate: 1.8deg; } }
.door-bottom { animation: breathe 4.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 0%, 100% { scale: 1; translate: 0 0; } 50% { scale: 1.012; translate: 0 -1px; } }
/* a few petals drift over the closed doors */
.gate-petals { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.gate-petals i {
  position: absolute;
  top: -24px;
  width: 11px;
  height: 15px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #ffc2cc, #d9476b);
  opacity: .85;
  animation: gateFall 11s linear infinite;
}
.gate-petals i:nth-child(odd) { background: linear-gradient(135deg, #ffd56a, #e8861a); }
.gate-petals i:nth-child(1) { left: 6%; animation-delay: -1s; }
.gate-petals i:nth-child(2) { left: 18%; animation-delay: -6s; animation-duration: 13s; }
.gate-petals i:nth-child(3) { left: 30%; animation-delay: -3s; }
.gate-petals i:nth-child(4) { left: 44%; animation-delay: -9s; animation-duration: 14s; }
.gate-petals i:nth-child(5) { left: 57%; animation-delay: -4.5s; }
.gate-petals i:nth-child(6) { left: 68%; animation-delay: -11s; animation-duration: 12s; }
.gate-petals i:nth-child(7) { left: 79%; animation-delay: -7s; }
.gate-petals i:nth-child(8) { left: 90%; animation-delay: -2s; animation-duration: 15s; }
.gate-petals i:nth-child(9) { left: 12%; animation-delay: -12.5s; animation-duration: 16s; }
.gate-petals i:nth-child(10) { left: 84%; animation-delay: -5.5s; animation-duration: 13.5s; }
@keyframes gateFall {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(30px, 52vh) rotate(260deg); }
  100% { transform: translate(-10px, 106vh) rotate(520deg); }
}
.gate.opening .gate-petals { opacity: 0; transition: opacity .8s; }

/* phones: no drawn birds over the painted opening scene */
@media (max-width: 899px) { .hero .birds { display: none; } }

/* ---------- accessibility (WCAG 2.2 AA) ---------- */
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid #b8862f;
  outline-offset: 3px;
  border-radius: 6px;
}
.btn-plaque:focus-visible { outline: 3px solid #b8862f; outline-offset: 4px; }
.frame-nav button { min-width: 44px; min-height: 44px; }
.medal { --pin-hole: var(--maroon); }
.pin { --pin-hole: #fbe7c8; width: 44px; height: 44px; }
.music-btn { width: 44px; height: 44px; }
.medal-label { font-size: 12px; }



/* phones: more visible life in the opening scene */
@media (max-width: 899px) {
  .fx-breeze { animation-duration: 4.2s; }
  .only-narrow .lights i { animation-name: flickStrong; }
}
@keyframes flickStrong {
  0% { opacity: .3; transform: translate(-50%, -50%) scale(.8); }
  18% { opacity: 1; transform: translate(-50%, -54%) scale(1.25); }
  40% { opacity: .5; transform: translate(-51%, -50%) scale(.95); }
  62% { opacity: .95; transform: translate(-50%, -53%) scale(1.3); }
  80% { opacity: .45; transform: translate(-49%, -51%) scale(.9); }
  100% { opacity: .85; transform: translate(-50%, -52%) scale(1.15); }
}

/* ---------- performance ---------- */
/* sections far from the screen pause every animation inside them */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* ---------- moving sky ---------- */
/* thin painted wisps drifting across the top of the scene, two depths */
.sky-drift {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
}
.sky-drift i { position: absolute; top: 0; bottom: 0; left: 0; will-change: transform; }
.sky-drift i:nth-child(1) {
  width: calc(100% + 1200px);
  background: var(--wisps-a) 0 0 / 1200px 360px repeat;
  opacity: .5;
  animation: skyDriftA 150s linear infinite;
}
.sky-drift i:nth-child(2) {
  width: calc(100% + 900px);
  background: var(--wisps-b) 0 70px / 900px 300px repeat;
  opacity: .32;
  animation: skyDriftB 90s linear infinite;
}
@keyframes skyDriftA { to { transform: translateX(-1200px); } }
@keyframes skyDriftB { to { transform: translateX(-900px); } }

/* clouds that part like curtains as the doors open, then drift softly */
.cloud-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.cv {
  position: absolute;
  top: -10%;
  width: 90%;
  height: 78%;
  opacity: .95;
  transition: transform 5.5s cubic-bezier(.32, .08, .2, 1), opacity 6s ease;
  will-change: transform, opacity;
}
.cv b {
  position: absolute;
  inset: 0 -450px 0 0;
  background: var(--bank) 0 0 / 900px 520px repeat;
  -webkit-mask-image: radial-gradient(ellipse 46% 48% at 40% 45%, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse 46% 48% at 40% 45%, #000 35%, transparent 75%);
  animation: bankDrift 70s ease-in-out infinite alternate;
}
.cv-l { left: -22%; }
.cv-r { right: -22%; }
.cv-r b { background-position: 380px 120px; -webkit-mask-position: 0 0; animation-duration: 84s; }
@keyframes bankDrift { to { transform: translateX(-450px); } }
body.opened .cv-l { transform: translateX(-58%); opacity: .55; }
body.opened .cv-r { transform: translateX(58%); opacity: .55; }
.hero-names { z-index: 3; }
@media (min-width: 900px) {
  .sky-drift { height: 46%; }
  .cv { width: 70%; height: 82%; }
  .cv-l { left: -10%; }
  .cv-r { right: -10%; }
  body.opened .cv-l { transform: translateX(-62%); opacity: .5; }
  body.opened .cv-r { transform: translateX(62%); opacity: .5; }
}

/* ---------- ambient motion ---------- */
.birds, .clouds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bird { position: absolute; left: 0; top: var(--y); width: var(--s); opacity: 0; animation: fly var(--dur) linear var(--delay) infinite; }
.bird svg { display: block; width: 100%; fill: #4a2a38; }
.wing { transform-box: view-box; transform-origin: 20px 11px; animation: flap var(--flap) ease-in-out infinite alternate; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.35); } }
@keyframes fly {
  0% { transform: translate(-40px, 0); opacity: 0; }
  10% { opacity: .85; }
  50% { transform: translate(calc(var(--vw) * .5), var(--rise)); }
  85% { opacity: .85; }
  100% { transform: translate(calc(var(--vw) + 40px), calc(var(--rise) * .4)); opacity: 0; }
}
.clouds i { position: absolute; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); filter: blur(6px); animation: drift 70s linear infinite; }
.clouds i:nth-child(1) { top: 9%; width: 260px; left: -30%; }
.clouds i:nth-child(2) { top: 20%; width: 200px; left: 20%; animation-duration: 95s; animation-delay: -40s; }
.clouds i:nth-child(3) { top: 30%; width: 300px; left: 60%; animation-duration: 120s; animation-delay: -80s; opacity: .7; }
@keyframes drift { from { transform: translateX(-60%); } to { transform: translateX(calc(var(--vw) + 60%)); } }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.3s ease-in-out infinite alternate; }
.flame:nth-of-type(2n) { animation-duration: .9s; animation-delay: -.4s; }
@keyframes flicker { 0% { transform: scale(1, 1); } 40% { transform: scale(.92, 1.08) skewX(2deg); } 100% { transform: scale(1.04, .94) skewX(-2deg); } }
.halo { animation: halo 2.6s ease-in-out infinite alternate; }
@keyframes halo { from { opacity: .65; } to { opacity: 1; } }
.ripples path { animation: ripple 4s ease-in-out infinite; stroke-dasharray: 20 14; }
@keyframes ripple { 50% { stroke-dashoffset: 34; stroke-opacity: .5; } }

/* Reveals: each block rises into place the FIRST time it is reached and
   then stays (no fading out on the way past — calmer, like real paper). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* petal shower */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.petals i { position: absolute; top: -20px; width: 12px; height: 16px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ffcf4a, #e8761a); animation: fall linear forwards; }
.petals i:nth-child(3n) { background: linear-gradient(135deg, #ffc2cc, #d9476b); }
.petals i:nth-child(5n) { background: linear-gradient(135deg, #fff, #f1d6dc); }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(calc(var(--r) + 540deg)); opacity: .7; } }

/* =================== Desktop / large screens =================== */
@media (min-width: 900px) {
  .only-narrow { display: none !important; }
  .only-wide { display: block !important; }

  /* gate: central cream panel between two tall doors */
  .gate-card {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 500px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-50%) scale(calc(1 + var(--p) * .08));
    box-shadow: 0 0 60px rgba(0, 0, 0, .55);
  }
  .gate-card::before, .gate-card::after { top: 0; bottom: 0; left: auto; right: auto; width: 14px; height: auto; background: linear-gradient(90deg, #9a2348, var(--maroon) 60%, var(--maroon-3)); }
  .gate-card::before { left: -14px; }
  .gate-card::after { right: -14px; transform: scaleX(-1); }
  .om { font-size: 72px; }
  .mantra { font-size: 28px; }
  .intro { font-size: 22px; max-width: 340px; }
  .door-top { width: 44%; height: 30%; top: 6%; }
  .door-l .door-top { left: 6%; }
  .door-r .door-top { right: 6%; }
  .door-bottom { width: 42%; height: 42%; left: 6%; bottom: 6%; }
  .door-r .door-bottom { left: auto; right: 6%; }
  .hero-art img.slot { object-position: 50% 40%; }
  .hero-names { text-shadow: 0 0 18px rgba(255, 240, 225, .95), 0 0 40px rgba(255, 230, 210, .8), 0 2px 4px rgba(255, 255, 255, .6); }
  .outro-art img.slot { object-position: 50% 62%; }
  .door-ring { margin-top: 0; }
  .door-l .door-ring { right: 270px; }
  .door-r .door-ring { left: 270px; }

  .hero-names { flex-direction: row; justify-content: center; align-items: baseline; gap: 22px; top: 11%; font-size: clamp(60px, 5.4vw, 84px); }
  .hero-names .amp { font-size: .45em; }

  .h2 { font-size: 44px; margin-bottom: 40px; }
  .families { padding: 80px 0 40px; }
  .scroll { margin-bottom: 60px; }
  .scroll.has-orn { margin-bottom: 190px; }
  .scroll-orn { width: 140px; margin-left: -70px; }
  .sheet { padding: 70px 40px 40px; }
  .sheet h3 { font-size: 40px; }
  .sheet .rel { font-size: 22px; }
  .sheet .who { font-size: 26px; }
  .sheet ul { font-size: 22px; }
  .sheet-orn { width: 300px; }

  .date-top { width: 220px; margin-top: 60px; }
  .date-row { margin-bottom: 70px; }
  .date-side { height: 230px; margin: 0; }
  .plaques { gap: 24px; margin-bottom: 30px; }
  .plaque { width: 200px; height: 130px; }
  .plaque .tab { font-size: 13px; padding: 4px 16px; top: 8px; }
  .plaque .v { font-size: 52px; margin-top: 20px; }
  .btn-plaque span { font-size: 22px; padding: 14px 56px; }
  .after { font-size: 42px; }

  .gallery { padding: 0; }
  .frame3d { width: min(320px, 36vh); }
  .landscape { width: min(440px, 50vh); }
  .track-inner { gap: 70px; padding-bottom: 50px; }

  .ceremonies { padding: 200px 40px 100px; }
  .jh { width: 300px; }
  .cere-grid { max-width: 1320px; display: flex; flex-wrap: wrap; justify-content: center; gap: 60px 50px; align-items: flex-start; }
  .cere-grid .arch-card { flex: 0 1 calc((100% - 100px) / 3); min-width: 300px; }
  .cere-div { display: none; }
  .arch-art { height: 230px; }

  .after-cere { padding: 80px 0 30px; }
  .badges { gap: 70px; padding: 20px 0 60px; }
  .medal { width: 92px; height: 92px; }
  .medal svg { width: 38px; height: 38px; }
  .medal-label { font-size: 12px; }

  .rsvp { padding: 60px 24px 100px; }
  .rsvp-card { padding: 50px 50px 40px; }
  .two { grid-template-columns: 1fr 1fr; }

  /* desktop: no easel — an arched, gold-framed board set against the courtyard */
  .outro { height: 100vh; min-height: 760px; }
  .easel { width: 480px; margin-left: -240px; top: calc(50% - 290px); }
  .easel-board {
    height: 600px;
    padding: 12px;
    border-radius: 240px 240px 14px 14px;
    box-shadow: 0 40px 70px rgba(60, 20, 10, .45), 0 0 0 1px rgba(120, 70, 20, .4), 0 0 60px rgba(255, 210, 150, .35);
  }
  .board-inner { border-radius: 228px 228px 6px 6px; padding: 80px 50px 50px; }
  .finial { top: -46px; }
  .legs { display: none; }
  .easel-shadow { top: calc(50% + 300px); width: 560px; margin-left: -280px; height: 80px;
    background: radial-gradient(ellipse 46% 34% at 50% 30%, rgba(30, 8, 4, .75), transparent 72%), radial-gradient(ellipse 62% 60% at 50% 50%, rgba(50, 15, 8, .38), transparent 78%); filter: blur(4px); }
  .easel-shadow::after { left: 30%; width: 80%; }
  .sheet-orn { width: 360px; }
  .date-top { width: 230px; }
  .farewell { font-size: 34px; max-width: 360px; }
  .couple-sm { font-size: 46px; }
  .credit { bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-names span { opacity: 1; }
  .fx-breeze { animation: none; }
  .sky-drift i, .cv b { animation: none; }
  .cv { transition-duration: .01ms; }
  .fx-water::before, .fx-water::after { animation: none; }
  .gate-petals { display: none; }
}

/* music button: clear ON (sound waves pulsing) vs OFF (speaker with ×) */
.music-btn .ic-on, .music-btn .ic-off { position: absolute; width: 22px; height: 22px; transition: opacity .25s ease, transform .25s ease; }
.music-btn .ic-on { opacity: 0; transform: scale(.7); }
.music-btn .ic-off { opacity: 1; }
.music-btn.on .ic-on { opacity: 1; transform: none; }
.music-btn.on .ic-off { opacity: 0; transform: scale(.7); }
.music-btn.on .w1 { animation: mwave 1.2s ease-in-out infinite; }
.music-btn.on .w2 { animation: mwave 1.2s ease-in-out .3s infinite; }
@keyframes mwave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.music-btn:not(.on) { background: rgba(255, 252, 245, .78); color: #8a7a74; }
.music-btn.on { box-shadow: 0 0 0 3px rgba(201, 164, 92, .55), 0 4px 14px rgba(0, 0, 0, .25); }
@media (prefers-reduced-motion: reduce) { .music-btn.on .w1, .music-btn.on .w2 { animation: none; } }

/* doors swing AND glide fully off-screen, fading only at the very end: no slivers, no pop */
.door-l { transform: translateX(calc(var(--p) * -100%)) rotateY(calc(var(--p) * -75deg)) translateZ(0); opacity: clamp(0, calc((1 - var(--p)) * 6), 1); }
.door-r { transform: translateX(calc(var(--p) * 100%)) rotateY(calc(var(--p) * 75deg)) translateZ(0); opacity: clamp(0, calc((1 - var(--p)) * 6), 1); }
.gate.opening .door-l, .gate.opening .door-r { transition: none; }

/* footer: Govindam credit at the very end, after RSVP */
.site-foot { position: relative; padding: 28px 16px 90px; text-align: center; background: var(--cream, #fbf4ea); }
.site-foot .credit { position: static !important; transform: none !important; translate: none !important; left: auto; right: auto; bottom: auto;
  display: inline-block; width: auto; max-width: 100%; margin: 0 auto; }

@media (max-width: 899px) { .fan-card, .scroll { width: calc(100% - 72px); } .timeline, .ceremonies, .rsvp { padding-left: 24px; padding-right: 24px; } }

/* calendar offer after RSVP */
.cal-offer { margin-top: 14px; text-align: center; }
.cal-offer .cal-note { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.cal-offer .cal-note a { font-weight: 700; text-decoration: underline; }

/* distant birds: tiny, faint specks far away */
.bird svg { opacity: .55; }
/* soft clouds drifting in every sky */
.sky-drift i:nth-child(1) { opacity: .42 !important; }
.sky-drift i:nth-child(2) { opacity: .3 !important; }

/* gallery: a real wooden beam with frames hanging on jute cords */
.track-inner::before { height: 26px !important; border-radius: 4px !important;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 2px, transparent 2px 38px),
    linear-gradient(180deg, #8a5a2b 0%, #b07a41 22%, #7a4c22 46%, #9a6633 70%, #5e3a18 100%) !important;
  box-shadow: inset 0 2px 0 rgba(255,220,170,.35), inset 0 -3px 4px rgba(0,0,0,.35), 0 8px 14px rgba(40,20,5,.35) !important; }

/* gallery rail in this theme's own materials */
.track-inner::before { background: linear-gradient(180deg, #f6d58b 0%, #c08a2c 30%, #7a4a10 55%, #c99a4a 80%, #5a3608 100%) !important; height: 18px !important; border-radius: 9px !important; }

/* (carved wood frames moved to Kalinga Parinaya) */

/* gallery in swipe mode: no pinning, the page scrolls normally and guests swipe the rail */
.gal-swipe .gal-stage { position: relative; top: auto; height: auto; min-height: 0; padding: 10vh 0 8vh; }
.gal-swipe .track { cursor: grab; user-select: none; -webkit-user-select: none; }
.gal-swipe .track:active { cursor: grabbing; }

/* photographed petals v1: real rose petals instead of drawn ones, for the shower and the opening */
html body .petals i, html body .gate-petals i {
  width: 18px; height: 16px; border-radius: 0; box-shadow: none;
  background: url("/shared/petals/rose-1.webp") center / contain no-repeat !important;
  filter: drop-shadow(0 2px 2px rgba(60, 20, 20, .18));
}
html body .petals i:nth-child(3n), html body .gate-petals i:nth-child(3n) { background-image: url("/shared/petals/rose-2.webp") !important; width: 15px; height: 14px; }
html body .petals i:nth-child(3n+1), html body .gate-petals i:nth-child(3n+1) { background-image: url("/shared/petals/rose-3.webp") !important; width: 21px; height: 18px; }

/* readability v1: small gold dates in the RSVP are darkened to pass WCAG AA (4.5:1) on cream */
html body #rsvp small { color: #84621f; }

/* gallery rail runs past both screen edges: its ends are never visible, also when swiping past the last photo */
html body .gallery .track-inner::before { left: -100vw !important; right: -100vw !important; }

/* ---- gallery frames: a real moulding and a natural hang ----
   The frame's four sides catch the light differently (light from the top left), so they meet at a clean
   mitre line in each corner, like a carved and gilded frame. The wire hangs from one brass nail on the rail
   and swings WITH the frame (both turn around the nail); its ends go behind the frame's top edge. */
html .frame3d .swing { position: relative; }
html .frame3d .swing .wire { position: absolute; left: 0; top: calc(-1 * var(--cordh) + 3px); width: 100%; height: calc(var(--cordh) + 14px); overflow: visible; z-index: 0; pointer-events: none; }
html .frame3d .swing .wire .cord { fill: none; stroke: #7d1838; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
html .frame3d .swing .wire .cord-twist { fill: none; stroke: #e6b25c; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
html .frame3d .swing .moulding { z-index: 1; }
html .frame3d .cords .ring { top: -5px; width: 12px; height: 12px; margin-left: -6px; border: 0; z-index: 3;
  background: radial-gradient(circle at 35% 30%, #fff6d0 0 18%, #e2c27a 40%, #9b7428 78%, #5e4312 100%);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, .45), 2px 3px 4px rgba(0, 0, 0, .18); }
html .frame3d .moulding::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  border: 16px solid; border-color: rgba(255, 214, 190, .2) rgba(30, 0, 8, .2) rgba(30, 0, 8, .38) rgba(255, 214, 190, .08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28); }
html .frame3d .moulding::after { z-index: 2; }
html .frame3d .mat { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { html .frame3d .swing { animation: none; } }

/* blessing symbol chosen in the editor, drawn in this design's gold (the picture is only used as a shape) */
:root { --bless-color: #a8742a; }
.gate-card .ganesha.bless { display: block; width: 54px; aspect-ratio: 1; height: auto; margin: 0 auto 6px; background: var(--bless-color);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
@media (min-width: 900px) { .gate-card .ganesha.bless { width: 64px; } }

/* =====================================================================================================
   PREM SANDESH: everything below is this design's own look (the engine's rules above stay for behaviour)
   ===================================================================================================== */
body { background: var(--cream); color: var(--ink); }
.cream, .blush { background-color: var(--cream); background-image: radial-gradient(ellipse at 50% 0%, #fffaf3, transparent 70%); }
.blush { background-color: #fbeee6; background-image: radial-gradient(ellipse at 50% 0%, #fff6ef, transparent 70%); }
section { overflow: clip; }
.vines-top { position: absolute; top: -6px; left: 50%; translate: -50% 0; width: min(150%, 1400px); max-width: none; pointer-events: none; z-index: 1; opacity: .95; }
.vines-r { display: none; }
.sec-head { position: relative; z-index: 2; padding: 0 22px; }
.sec-head .eyebrow, .sec-head .h2 { text-shadow: 0 0 14px #fffaf3, 0 0 6px #fffaf3, 0 0 2px #fffaf3; }
.eyebrow { margin: 0 0 6px; font: 600 13px/1.3 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--rose); }
.h2 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: .04em; color: var(--maroon); margin: 0 0 12px; }
.sec-sub { max-width: 520px; margin: 0 auto; font: italic 500 20px/1.45 var(--serif); color: var(--ink-soft); }

/* the gold capsule button, used everywhere */
.btn-plaque { border: 0; background: none; padding: 0; position: relative; display: inline-grid; place-items: center; min-height: 48px; filter: drop-shadow(0 6px 10px rgba(106, 58, 42, .25)); }
.btn-plaque::before { content: ''; position: absolute; inset: 0; border-radius: 999px; clip-path: none; background: var(--gold-grad); }
.btn-plaque::after { content: none; }
.btn-plaque span { position: relative; display: block; padding: 13px 30px; margin: 3px; border-radius: 999px; background: linear-gradient(180deg, #fff6ea, #f6ddc9); color: var(--maroon);
  font: 600 15px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; box-shadow: inset 0 1px 0 #fff; }
.btn-plaque:focus-visible span { box-shadow: inset 0 0 0 2px var(--rose); }

/* ---------- the opening: stage, curtain and doors ---------- */
.stage { background: #f3cdb8; }
.hero-art::after { content: none; }
.hero-art { inset: 0; transform: none; }
.hero-art img.slot, .hero-art .scene-img { object-position: 50% 62%; }
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(251, 236, 224, .9) 0%, rgba(251, 236, 224, .55) 34%, rgba(251, 236, 224, 0) 58%); }
.valance { position: absolute; top: 0; left: -14%; z-index: 4; width: 128%; max-width: none; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(106, 58, 42, .28)); }
body:not(.opened) .valance { visibility: hidden; }
.tied { position: absolute; top: 0; z-index: 3; height: 100%; width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 6px 14px rgba(106, 58, 42, .3)); }
.tied-l { left: -44%; }
.tied-r { right: -44%; transform: scaleX(-1); }
body:not(.opened) .tied { opacity: 0; }
.hero-text { position: absolute; z-index: 2; left: 0; right: 0; top: 16%; padding: 0 20%; text-align: center; }
body:not(.opened) .hero-text > * { opacity: 0; }
.hero-sym { display: grid; place-items: center; min-height: 6px; }
.hero-sym .ganesha.bless { width: 44px; margin: 0 auto 4px; background: var(--gold-text); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; display: block; aspect-ratio: 1; }
.hero-sym .om { font-family: var(--deva); font-size: 40px; line-height: 1; color: var(--gold-text); }
.hero-mantra { margin: 0 0 8px; font: 500 15px/1.4 var(--deva); color: var(--maroon-2); }
.hero-intro { margin: 0 auto 6px; max-width: 300px; font: italic 500 15px/1.4 var(--serif); color: var(--ink-soft); }
.hero-names { position: static; margin: 0; padding: 0; transform: none; display: flex; flex-direction: column; align-items: center; gap: 0;
  font: 400 clamp(46px, 13vw, 64px)/1.05 var(--script); color: var(--maroon); text-shadow: 0 2px 12px rgba(255, 245, 235, .9); }
.hero-names span { opacity: 1 !important; animation: none !important; }
.hero-names .amp { font-size: .55em; color: var(--rose); margin: 0; }
.hero-date { margin: 10px 0 0; font: 600 13px/1.3 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--olive-2); }

.curtain { position: absolute; inset: 0; z-index: 4; display: flex; pointer-events: none; }
.cur { position: relative; flex: 1 1 50%; height: 100%; overflow: hidden; will-change: transform; }
.cur-l { transform-origin: 0 50%; }
.cur-r { transform-origin: 100% 50%; }
.cur img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cur-l img { object-position: 100% 50%; }
.cur-r img { object-position: 0 50%; }
.cur::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(90, 40, 30, .12), transparent 30%, transparent 70%, rgba(90, 40, 30, .12)); pointer-events: none; }

.gate { position: absolute; inset: 0; z-index: 5; perspective: 1600px; background: none; }
.door { position: absolute; top: 0; bottom: 0; width: 50%; height: 100%; transform: none; transform-style: preserve-3d; backface-visibility: hidden; will-change: transform; overflow: hidden; background: #4f5b2c; }
.door img { display: block; width: 100%; height: 100%; object-fit: cover; }
.door-l { left: 0; transform-origin: 0 50%; box-shadow: inset -2px 0 0 rgba(40, 30, 10, .5); }
.door-r { right: 0; transform-origin: 100% 50%; box-shadow: inset 2px 0 0 rgba(40, 30, 10, .5); }
.door-l img { object-position: 100% 50%; }
.door-r img { object-position: 0 50%; }
.gate-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 46%, rgba(255, 240, 220, .22), rgba(40, 30, 10, .28) 75%); }
.gate-card { position: absolute; z-index: 2; left: 50%; right: auto; top: 50%; translate: -50% -50%; transform: none; opacity: 1; width: min(84vw, 360px); margin: 0; padding: 0; background: none; box-shadow: none; border: 0;
  display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gate-card::before, .gate-card::after { content: none !important; }
.seal { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; filter: drop-shadow(0 14px 24px rgba(30, 20, 8, .45)); }
.seal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.seal-in { position: relative; width: 62%; text-align: center; }
.seal-sym .ganesha.bless { width: 40px; margin: 0 auto 2px; display: block; aspect-ratio: 1; background: var(--gold-text); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.seal-sym .om { font-family: var(--deva); font-size: 34px; line-height: 1; color: var(--gold-text); }
.seal-names { margin: 2px 0 4px; font: 400 clamp(30px, 9vw, 40px)/1.1 var(--script); color: var(--maroon); }
.seal-names .amp { color: var(--rose); font-size: .7em; }
.seal-date { margin: 0; font: 600 11px/1.3 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-2); }

/* ---------- the love story ---------- */
section.story { padding: 150px 0 70px; background-color: var(--cream); background-image: radial-gradient(ellipse at 50% 40%, #fff9f1, transparent 72%); }
.story-stage { position: relative; height: min(132vw, 620px); max-width: 560px; margin: 26px auto 0; }
.win { position: absolute; margin: 0; width: 46%; }
.win img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(106, 58, 42, .22)); }
.win figcaption { margin-top: 6px; font: 400 30px/1 var(--script); color: var(--maroon); }
.win-groom { left: 2%; top: 0; }
.win-bride { right: 2%; bottom: 0; }
.messenger { position: absolute; left: 0; top: 0; z-index: 3; width: 38%; pointer-events: none; visibility: hidden; will-change: transform; }
.ps-bird { position: relative; aspect-ratio: 600 / 437; }
.ps-bird .ps-f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.messenger .cord { position: absolute; left: 63%; top: 50%; width: 1.5px; height: 20%; background: linear-gradient(#b8862e, #e6bb62); transform-origin: top; }
.messenger .letter { position: absolute; left: 46%; top: 66%; width: 36%; height: auto; transform-origin: 50% 0; filter: drop-shadow(0 6px 8px rgba(106, 58, 42, .3)); animation: letterSway 1.6s ease-in-out infinite; }
@keyframes letterSway { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
.love-card { position: relative; width: min(88vw, 420px); margin: 34px auto 0; opacity: 0; visibility: hidden; }
.love-card.shown { opacity: 1; visibility: visible; }

/* the arched cards: families, ceremonies and the love letter */
.arch-card, .love-card { position: relative; display: grid; isolation: isolate; }
.arch-card { width: min(86vw, 380px); margin: 0 auto; padding: 0; background: none; box-shadow: none; border: 0; clip-path: none; overflow: visible; -webkit-mask: none; mask: none; filter: none; }
.arch-card::before, .arch-card::after { content: none; }
.card-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: fill; filter: drop-shadow(0 14px 22px rgba(106, 58, 42, .18)); }
.card-in { position: relative; padding: 34% 16% 30%; text-align: center; color: var(--ink); }
.arch-card.fam .card-in { padding: 36% 21% 40%; }
.arch-card.fam .who { font-size: 17px; }
.love-card .card-in { padding: 34% 15% 30%; }
.card-intro { margin: 0 0 8px; font: italic 500 17px/1.45 var(--serif); color: var(--ink-soft); }
.card-names { margin: 6px 0; font: 400 40px/1.1 var(--script); color: var(--maroon); }
.card-names .amp { color: var(--rose); font-size: .7em; }
.card-line { margin: 4px 0 10px; font: italic 500 17px/1.4 var(--serif); color: var(--ink-soft); }
.card-date { margin: 0; font: 600 13px/1.3 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-2); }
.arch-card h3 { margin: 0 0 10px; font: 400 36px/1.1 var(--script); color: var(--maroon); }
.arch-card .rel { margin: 10px 0 2px; font: 600 11px/1.3 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.arch-card .who { margin: 0; font: 500 18px/1.45 var(--serif); color: var(--ink); }
.arch-card .who .and { font-family: var(--script); color: var(--rose); font-size: 1.15em; }

/* families */
.families { padding: 30px 0 40px; }
.fam-grid { position: relative; z-index: 2; display: grid; gap: 26px; padding: 0 18px; }

/* the date: a scalloped medallion between two elephants that face it */
.date { padding: 50px 0 60px; }
.date .eyebrow { margin-bottom: 4px; }
.date-row { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; place-items: center; margin: 0 auto; max-width: 1100px; padding-bottom: 8%; }
.date-medal { position: relative; width: min(98vw, 440px); aspect-ratio: 1; display: grid; place-items: center; }
.medal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(106, 58, 42, .2)); }
.date-in { position: relative; width: 68%; display: grid; justify-items: center; gap: 10px; }
.date-ele { position: absolute; bottom: 0; width: 30%; max-width: 170px; z-index: 3; filter: drop-shadow(0 10px 12px rgba(106, 58, 42, .25)); }
.ele-l { left: 0; transform: none; }           /* faces right, towards the date */
.ele-r { right: 0; transform: scaleX(-1); }   /* mirrored: faces left, towards the date */
/* three clean columns: a small caption over a large number, with thin gold rules between them */
.date .plaques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; margin: 0; perspective: none; }
.date .plaque { width: auto; height: auto; margin: 0; padding: 4px 2px 2px; display: grid; justify-items: center; gap: 4px; background: none; box-shadow: none;
  -webkit-mask: none; mask: none; overflow: visible; }
.date .plaque + .plaque { border-left: 1px solid rgba(198, 154, 69, .6); }
.date .plaque .tab { position: static; padding: 0; background: none; color: var(--rose); font: 600 10px/1 var(--display); letter-spacing: .22em; }
.date .plaque .v { margin: 0; min-height: 1.15em; font: 600 clamp(24px, 7.4vw, 34px)/1.1 var(--display); color: var(--maroon); }
.date .plaque.lit .v { text-shadow: 0 0 14px rgba(230, 187, 98, .55); }
.date .plaque.lit { animation: none; }
.date .plaque .shine { display: none; }
.date .reveal-slot { min-height: 58px; width: 100%; }
.date #revealBtn span { padding: 11px 20px; font-size: 12px; letter-spacing: .16em; white-space: nowrap; }
.date .after { font-size: clamp(24px, 7vw, 30px); line-height: 1.15; }
@media (min-width: 900px) {
  .date { padding: 70px 0 80px; }
  .date-row { grid-template-columns: auto auto auto; align-items: end; gap: 0; padding-bottom: 0; }
  .date-medal { width: 540px; order: 2; }
  .date-ele { position: relative; width: 230px; max-width: none; bottom: auto; margin-bottom: 30px; }
  .ele-l { order: 1; margin-right: -36px; left: auto; }
  .ele-r { order: 3; margin-left: -36px; right: auto; }
  .date .plaque .v { font-size: 40px; }
  .date .plaque .tab { font-size: 11px; }
  .date .after { font-size: 34px; }
}

/* gallery: the hanging frames in gold and cream */
.gallery { background-color: #fbf2e9; background-image: radial-gradient(ellipse at 50% 30%, #fffaf3, #f6e3d3 80%); }
.track-inner::before { background: linear-gradient(180deg, #f3d68f, #c69a45 55%, #8a6420); }
.cords .cord { stroke: #b8862e; }
.cords .cord-twist { stroke: #f0b9a1; }
.cords .ring { border-color: #e6bb62; }
.moulding { background: linear-gradient(135deg, rgba(255, 255, 255, .35), transparent 40%), linear-gradient(180deg, #f1cd78, #c69a45 50%, #9a6f24);
  box-shadow: inset 0 0 0 2px #8a6420, inset 4px 4px 0 rgba(255, 246, 210, .5), inset -4px -4px 0 rgba(90, 60, 10, .3), 18px 26px 30px rgba(106, 58, 42, .22), 4px 6px 6px rgba(0, 0, 0, .18); }
.moulding::after { box-shadow: inset 2px 2px 0 #8a6420, inset -2px -2px 0 #fff0c4; }
.mat { background: #fffaf3; }
.mat figcaption, .story .mat blockquote, .gallery .mat blockquote { color: var(--maroon); font-family: var(--serif); }
.frame-nav button, .gal-progress i { color: var(--maroon); }
.gal-progress i { background: var(--rose); }

/* ceremonies */
.ceremonies { padding: 120px 0 60px; }
.cere-grid { position: relative; z-index: 2; display: grid; gap: 26px; padding: 0 18px; margin-top: 18px; }
.arch-card.cere .card-in { padding: 30% 15% 30%; }
.arch-card .arch-art { width: 62%; height: auto; aspect-ratio: 5 / 3; margin: 0 auto 6px; }
.arch-card .arch-art img, .arch-card .arch-art svg { width: 100%; height: 100%; object-fit: contain; }
.arch-card .when { margin: 0; font: 600 13px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--olive-2); }
.arch-card .when .t { display: block; margin-top: 2px; color: var(--rose); }
.arch-card .venue { margin: 8px 0 12px; font: 500 18px/1.35 var(--serif); color: var(--ink); }
.map-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1.5px solid #d9b46a;
  color: var(--maroon); font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.map-btn svg { width: 16px; height: 16px; fill: var(--rose); }

/* compliments and the note: cream cards, bougainvillea in two corners */
.after-cere { padding: 40px 0 10px; background: var(--cream); }
.notes { display: grid; gap: 26px; padding: 0 18px; }
.note-card { position: relative; max-width: 560px; margin: 0 auto; width: 100%; padding: 46px 30px 40px; border-radius: 22px; background: #fffaf3;
  box-shadow: inset 0 0 0 1.5px #e3c88e, inset 0 0 0 7px #fffaf3, inset 0 0 0 8px #efdcb6, 0 14px 30px rgba(106, 58, 42, .1); }
.nc-corner { position: absolute; width: 42%; max-width: 220px; pointer-events: none; }
.nc-l { top: -14px; left: -14px; }
.nc-r { bottom: -14px; right: -14px; transform: rotate(180deg); }
.nc-in { position: relative; }
.note-card h3 { margin: 0 0 12px; font: 400 34px/1.1 var(--script); color: var(--maroon); }
.note-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 500 19px/1.4 var(--serif); }
.note-card .who { margin: 0; font: 500 19px/1.5 var(--serif); }
.badge .medal { background: radial-gradient(circle at 35% 30%, #fffaf3, #f6dcc9); box-shadow: inset 0 0 0 2px #d9b46a, 0 8px 14px rgba(106, 58, 42, .18); color: var(--rose); }
.badge .medal svg { fill: var(--rose); color: var(--rose); }
.medal-label { color: var(--maroon); }

/* the thank-you: the peacock arch over the palace garden */
.outro { height: auto; min-height: 760px; background: #f3d9c6; display: grid; place-items: center; padding: 120px 0 70px; }
.outro-art { position: absolute; inset: 0; }
.outro-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 245, 236, .45), rgba(251, 245, 236, 0) 40%, rgba(251, 245, 236, .35)); }
.vines-top.on-scene { z-index: 2; }
.thanks { position: relative; z-index: 3; width: min(94vw, 520px); aspect-ratio: 1000 / 792; display: grid; place-items: center; }
.thanks-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(60, 40, 20, .3)); }
.thanks-in { position: relative; width: 50%; margin-top: 10%; padding: 14px 6px; border-radius: 120px 120px 10px 10px; background: rgba(255, 250, 243, .92); }
.thanks-title { margin: 0; font: 400 34px/1.1 var(--deva); color: var(--rose); }
.thanks .farewell { margin: 6px 0; font: italic 500 16px/1.35 var(--serif); color: var(--ink); }
.thanks .couple-sm { margin: 2px 0; font: 400 30px/1.1 var(--script); color: var(--maroon); }
.thanks .tag { margin: 4px 0 0; font: 600 11px/1.3 var(--display); letter-spacing: .14em; color: var(--olive-2); }

/* RSVP and footer in this design's colours */
.rsvp { background: var(--cream); }
.rsvp-card { background: #fffaf3; box-shadow: inset 0 0 0 1.5px #e3c88e, 0 16px 34px rgba(106, 58, 42, .1); border-radius: 24px; }
.opts input:checked + span { border-color: var(--rose); background: #fdeef1; color: var(--maroon); }
.stepper button { color: var(--maroon); }
.site-foot { background: var(--cream); }
.music-btn { background: rgba(255, 250, 243, .9); color: var(--maroon); box-shadow: inset 0 0 0 1.5px #d9b46a, 0 6px 14px rgba(106, 58, 42, .2); }
.petals i { background: radial-gradient(circle at 30% 30%, #ffc2d1, #d2546f 70%); }

/* ---------- desktop: full width, the doors stand at their own size in the middle of the curtain ---------- */
@media (min-width: 900px) {
  .door { width: calc(100vh * .2813); }
  .door-l { left: auto; right: 50%; }
  .door-r { right: auto; left: 50%; }
  .door img { object-position: 50% 50%; }
  .gate-card { width: min(36vh, 380px); }
  .seal-names { font-size: 44px; }
  .valance { left: 0; width: 100%; }
  /* wide screens: the vines hang in both corners and leave the middle clear for the words */
  .vines-top { left: -2%; translate: none; width: min(46%, 720px); }
  .vines-r { display: block; left: auto; right: -2%; transform: scaleX(-1); }
  /* the names sit on a soft cream panel over the painted garden */
  .hero-text { top: 36%; left: 50%; right: auto; width: min(660px, 52vw); translate: -50% 0; padding: 26px 40px 28px; border-radius: 30px;
    background: rgba(255, 250, 243, .84); box-shadow: inset 0 0 0 1.5px rgba(198, 154, 69, .55), 0 18px 40px rgba(60, 40, 20, .18);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .hero-veil { background: linear-gradient(180deg, rgba(251, 236, 224, .35), rgba(251, 236, 224, 0) 40%); }
  .tied { height: 100%; }
  .tied-l { left: -4%; }
  .tied-r { right: -4%; }
  .hero-names { flex-direction: row; gap: 18px; align-items: baseline; font-size: 84px; }
  .hero-names .amp { font-size: .5em; }
  .hero-intro { max-width: 520px; font-size: 19px; }
  section.story { padding: 170px 0 110px; }
  .story-stage { height: 520px; max-width: 1100px; }
  .win { width: 30%; }
  .win-groom { left: 6%; top: 0; }
  .win-bride { right: 6%; top: 30px; bottom: auto; }
  .messenger { width: 22%; }
  .h2 { font-size: 40px; }
  .families { padding: 40px 0 60px; }
  .fam-grid { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 48px; }
  .cere-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 360px)); justify-content: center; gap: 36px; max-width: 1240px; margin-left: auto; margin-right: auto; }
  .ceremonies { padding: 170px 40px 90px; }
  .notes { grid-template-columns: repeat(2, minmax(0, 520px)); justify-content: center; }
  .outro { min-height: 900px; padding: 160px 0 90px; }
  .thanks { width: min(56vw, 680px); }
  .thanks-title { font-size: 44px; }
  .thanks .couple-sm { font-size: 38px; }
  .thanks .farewell { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .messenger .letter { animation: none; } }

/* ---------- living scenes (from Phool Mahal): falling water, fountain jets, ripples, golden dust, drifting petals ---------- */
/* fountain: water streaks falling down each curtain, a sparkling jet at the top */
.fx-fall, .fx-jet { background: none !important; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
.fx-fall::before, .fx-jet::before {
  content: ''; position: absolute; left: 0; right: 0; top: -60px; bottom: 0; mix-blend-mode: screen;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='60'%3E%3Crect x='3' y='4' width='1.3' height='13' rx='.6' fill='white' opacity='.8'/%3E%3Crect x='11' y='26' width='1.1' height='16' rx='.5' fill='white' opacity='.6'/%3E%3Crect x='18' y='10' width='1.3' height='11' rx='.6' fill='white' opacity='.75'/%3E%3Crect x='7' y='44' width='1' height='12' rx='.5' fill='white' opacity='.55'/%3E%3Crect x='21' y='38' width='1' height='9' rx='.5' fill='white' opacity='.7'/%3E%3C/svg%3E") 0 0 / 24px 60px repeat;
  animation: waterFall .9s linear infinite; opacity: .7; }
.fx-jet::before { animation-duration: 1.3s; opacity: .55; }
@keyframes waterFall { to { transform: translateY(60px); } }
/* pool: rings spreading out from where the water lands */
.ripple { position: absolute; aspect-ratio: 3.4; transform: translate(-50%, -50%) scale(.3); border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55); opacity: 0; pointer-events: none;
  animation: ringOut 3.6s ease-out var(--d) infinite; }
@keyframes ringOut { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.25); } 15% { opacity: .75; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
.fx-water::before, .fx-water::after { mix-blend-mode: screen; }
@keyframes glint { from { opacity: .3; } to { opacity: .6; } }
/* flowers and leaves in a breeze, a little livelier than before */
@keyframes leafSway { 0% { transform: rotate(-.9deg) skewX(1deg); } 100% { transform: rotate(.9deg) skewX(-1deg); } }
/* jasmine garlands swing gently from the top */
.fx-garland { transform-origin: 50% 0; animation: garland 4.2s ease-in-out var(--d) infinite alternate;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); }
@keyframes garland { from { transform: rotate(-1.1deg); } to { transform: rotate(1.1deg); } }
/* brighter, livelier flames */
.lights i { mix-blend-mode: screen; }
/* golden dust floating in the evening light */
.motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.motes i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 200, .95), rgba(255, 210, 120, .4) 55%, transparent 72%);
  animation: mote var(--t) ease-in-out var(--d) infinite; opacity: 0; }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 80% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--x), -90px); } }
/* real rose petals drifting down from the tree */
.motes u { position: absolute; top: -6%; width: 16px; height: 14px; background: var(--p) center / contain no-repeat;
  animation: petalDrift var(--t) linear var(--d) infinite; opacity: 0; filter: drop-shadow(0 2px 2px rgba(60, 20, 20, .2)); }
@keyframes petalDrift { 0% { opacity: 0; transform: translate(0, 0) rotate(var(--r)); } 8% { opacity: .95; } 50% { transform: translate(calc(var(--x) * .6), 55vh) rotate(calc(var(--r) + 200deg)); }
  90% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--x), 105vh) rotate(calc(var(--r) + 420deg)); } }
@media (prefers-reduced-motion: reduce) { .ripple, .motes, .fx-fall::before, .fx-jet::before { display: none; } }


/* the fountain video over the stage painting (phones): same framing as the painting, fades in once playing */
.hero-loop { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.hero-loop.on { opacity: 1; }
.hero-art .motes, .hero-art .birds { z-index: 2; }
@media (min-width: 900px) { .hero-loop { display: none; } }

/* ---------- the elephant: breathes, swings its trunk, flaps its ear; raises the trunk when the date is revealed ---------- */
.el-rig { aspect-ratio: 538 / 568; height: auto; perspective: 600px; animation: eleBreathe 4.8s ease-in-out infinite; }
.el-rig img { position: absolute; display: block; height: auto; max-width: none; }
.el-body { left: 0; top: 0; width: 87.55%; }
.el-ear { left: 49.8%; top: 27.8%; width: 19.33%; transform-origin: 86% 32%; animation: earFlap 3.4s ease-in-out infinite; }
.el-trunk { left: 76.2%; top: 40.5%; width: 23.8%; transform-origin: 50% 6%; animation: trunkSway 4.8s ease-in-out infinite; }
.ele-r .el-trunk, .ele-r .el-ear { animation-delay: -1.6s; }
.el-rig.greet .el-trunk { animation: trunkGreet 2.6s ease-in-out 1, trunkSway 4.8s ease-in-out 2.6s infinite; }
@keyframes eleBreathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@keyframes trunkSway { 0%, 100% { rotate: 3deg; } 50% { rotate: -9deg; } }
@keyframes trunkGreet { 0% { rotate: 3deg; } 40% { rotate: -34deg; } 60% { rotate: -30deg; } 100% { rotate: 3deg; } }
@keyframes earFlap { 0%, 60%, 100% { transform: none; } 75% { transform: rotateY(32deg) rotate(-5deg); } 88% { transform: rotateY(8deg); } }

/* ---------- the peacock: lands, stands, then fans its tail ---------- */
.pc-rig { position: absolute; z-index: 2; aspect-ratio: 399 / 520; translate: -50% -100%; pointer-events: none; }
.pc-rig img { position: absolute; display: block; max-width: none; height: auto; }
.pc-body { inset: auto 0 0 0; width: 100%; opacity: 0; z-index: 2; filter: drop-shadow(0 6px 6px rgba(60, 40, 20, .25)); }
.pc-tail { left: 50%; top: 50%; width: 62%; opacity: 0; z-index: 1; transform-origin: 50% 0; rotate: -6deg; }
.pc-fan { left: -45%; bottom: 40%; width: 230%; opacity: 0; z-index: 0; transform-origin: 50% 100%; filter: drop-shadow(0 8px 10px rgba(60, 40, 20, .22)); }
.pc-fly { position: absolute; left: -40%; bottom: 10%; width: 175%; aspect-ratio: 700 / 465; opacity: 0; z-index: 3; }
.pc-fly img { left: 0; bottom: 0; width: 100%; }
.pc-f2 { opacity: 0; }
.pc-rig.settled .pc-fan { animation: fanShimmer 5s ease-in-out infinite; }
@keyframes fanShimmer { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(.8deg) scale(1.015); } }

/* ---------- lotuses opening at the thank-you: bud, then each stage in turn ---------- */
.thanks-lotus { position: absolute; z-index: 4; left: 8%; right: 8%; bottom: -4%; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.lotus-bloom { position: relative; width: 22%; aspect-ratio: 366 / 254; }
.lotus-bloom.lb-c { width: 26%; translate: 0 8%; }
.lotus-bloom img { position: absolute; left: 50%; bottom: 0; width: auto; translate: -50% 0; opacity: 0; filter: drop-shadow(0 6px 6px rgba(60, 40, 20, .2)); }
.lb-1 { height: 81%; } .lb-2 { height: 83%; } .lb-3 { height: 85%; } .lb-4 { height: 89%; } .lb-5 { height: 100%; }
.lotus-bloom.open .lb-1 { animation: lbIn .5s ease forwards, lbOut .5s ease .55s forwards; }
.lotus-bloom.open .lb-2 { animation: lbIn .5s ease .55s forwards, lbOut .5s ease 1.1s forwards; }
.lotus-bloom.open .lb-3 { animation: lbIn .5s ease 1.1s forwards, lbOut .5s ease 1.65s forwards; }
.lotus-bloom.open .lb-4 { animation: lbIn .5s ease 1.65s forwards, lbOut .5s ease 2.2s forwards; }
.lotus-bloom.open .lb-5 { animation: lbIn .6s ease 2.2s forwards; }
.lotus-bloom.lb-c.open img { animation-delay: inherit; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbOut { from { opacity: 1; } to { opacity: 0; } }

/* ---------- falling flowers: bougainvillea, marigolds, petals and jasmine among the rose petals ---------- */
html body .petals i.fl { background-image: var(--fl) !important; width: var(--w); height: var(--w); }

@media (prefers-reduced-motion: reduce) {
  .el-rig, .el-rig img, .pc-rig.settled .pc-fan { animation: none !important; }
  .lotus-bloom img { animation: none !important; } .lotus-bloom .lb-5 { opacity: 1; }
}

/* =====================================================================================================
   ONE FLOWING PAGE: a soft painted wash (made from the stage painting) sits behind every section, so
   nothing ends on a hard edge; paintings fade into it; flowers and a lotus open each section
   ===================================================================================================== */
.ps-wash { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--cream) var(--wash) center / cover no-repeat; }
.ps-wash::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 250, 243, .55), rgba(255, 250, 243, 0) 75%); }
@media (min-width: 900px) { .ps-wash { background-image: var(--wash-wide); } }
body.opened { background: var(--cream); }
.content { isolation: isolate; }
.cream, .blush, section.story, .gallery, .after-cere, .rsvp, .site-foot { background: transparent !important; }

/* the stage melts into the page below it */
body.opened .stage { background: transparent; }
.hero-art { -webkit-mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, .35) 90%, transparent 96%); mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, .35) 90%, transparent 96%); }
.tied { -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }
/* the bougainvillea of the story hangs over the bottom of the stage */
section.story { position: relative; z-index: 6; margin-top: -70px; padding-top: 170px; overflow: visible; }
section.story .vines-top { top: 0; }

/* the thank-you garden fades in and out of the page instead of starting on a line */
.outro { background: transparent !important; }
.outro-art { -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); }
.outro-art::after { background: none; }

/* the section ornament: thin gold lines, bougainvillea on each side of an open lotus */
.orn-div { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 auto 14px; max-width: 420px; }
.orn-div i { flex: 1 1 0; height: 1px; background: linear-gradient(90deg, transparent, #c69a45 40%, #c69a45); }
.orn-div i:last-child { background: linear-gradient(270deg, transparent, #c69a45 40%, #c69a45); }
.orn-div img { display: block; height: auto; flex: none; filter: drop-shadow(0 3px 4px rgba(106, 58, 42, .2)); }
.orn-div .od-f { width: 34px; rotate: -18deg; }
.orn-div .od-r { rotate: 22deg; }
.orn-div .od-l { width: 74px; }
.gal-stage .divider-wide .orn-div { margin-bottom: 0; }

/* families: a heading, and on wide screens a peacock with its tail fanned on each side */
.families .sec-head { margin-bottom: 22px; }
.fam-wrap { position: relative; }
.fan-pc { display: none; }
@media (min-width: 900px) {
  .families { padding: 60px 0 90px; }
  .fam-wrap { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
  .fam-grid { grid-template-columns: repeat(2, 400px); gap: 44px; }
  .arch-card.fam { width: 400px; }
  .fan-pc { display: block; position: relative; width: 120px; aspect-ratio: 399 / 520; margin: 0 auto 40px; }
  .fan-pc img { position: absolute; display: block; height: auto; max-width: none; }
  .fp-body { inset: auto 0 0 0; width: 100%; z-index: 1; filter: drop-shadow(0 8px 8px rgba(60, 40, 20, .25)); }
  .fp-fan { left: -45%; bottom: 40%; width: 230%; z-index: 0; transform-origin: 50% 100%; filter: drop-shadow(0 10px 12px rgba(60, 40, 20, .2)); animation: fanShimmer 5s ease-in-out infinite; }
  .fp-r { transform: scaleX(-1); }
  .fp-r .fp-fan { animation-delay: -2.5s; }
}
@media (min-width: 900px) and (max-width: 1199px) { .fan-pc { display: none; } .fam-wrap { display: block; } }

/* the love story on wide screens: his window, the letter, her window, side by side */
@media (min-width: 900px) {
  section.story { display: grid; grid-template-columns: 1fr minmax(380px, 440px) 1fr; column-gap: 20px; max-width: 1320px; margin-left: auto; margin-right: auto; padding-bottom: 110px; }
  section.story > .sec-head { grid-column: 1 / -1; }
  .story-stage { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; height: 640px; margin-top: 30px; }
  section.story .win { width: 25%; max-width: 300px; }
  section.story .win-groom { left: 2%; top: 40px; }
  section.story .win-bride { right: 2%; left: auto; top: 90px; bottom: auto; }
  section.story .messenger { width: 17%; }
  .love-card { grid-column: 2; grid-row: 2; align-self: center; z-index: 2; width: 100%; margin: 30px 0 0; }
  section.story .vines-top { width: min(40%, 600px); }
}

/* the notes and the RSVP: cream paper with bougainvillea in two corners */
.after-cere .notes { position: relative; }
.rsvp-card { position: relative; overflow: visible; }
.rsvp-card .nc-corner { width: 38%; max-width: 230px; }
.rsvp-card .nc-l { top: -18px; left: -18px; }
.rsvp-card .nc-r { bottom: -18px; right: -18px; }
.rsvp-card > :not(.nc-corner) { position: relative; }
.rsvp-card .orn-div { margin-bottom: 8px; }
@media (min-width: 900px) {
  .after-cere { padding: 70px 0 30px; }
  .notes { gap: 40px; }
  .note-card { padding: 56px 44px 50px; }
  .rsvp { padding: 40px 18px 90px; }
  .rsvp-card { max-width: 780px; padding: 48px 56px 40px; }
}
@media (prefers-reduced-motion: reduce) { .fp-fan { animation: none !important; } }

/* ---------- desktop stage: the fountain garden in the middle, peach silk drapes filling both sides ---------- */
.side-drape { display: none; }
@media (min-width: 900px) {
  .hero { --pw: min(58vw, 92vh); }
  .hero-art { left: 50%; right: auto; width: var(--pw); translate: -50% 0; }
  .hero-loop { display: block; object-position: 50% 72%; }
  .side-drape { display: block; position: absolute; top: 0; bottom: 0; z-index: 1; width: calc(50% - var(--pw) / 2 + 60px); overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, .35) 90%, transparent 98%); mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, .35) 90%, transparent 98%); }
  .side-drape img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .sd-l { left: 0; } .sd-l img { object-position: 100% 50%; }
  .sd-r { right: 0; } .sd-r img { object-position: 0 50%; }
  .side-drape::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(90, 40, 30, .18), transparent 60%); }
  .sd-r::after { background: linear-gradient(270deg, rgba(90, 40, 30, .18), transparent 60%); }
  .tied-l { left: calc(50% - var(--pw) / 2 - 24vh); }
  .tied-r { right: calc(50% - var(--pw) / 2 - 24vh); }
  .hero-veil { left: 50%; right: auto; width: var(--pw); translate: -50% 0; background: linear-gradient(180deg, rgba(251, 236, 224, .5), rgba(251, 236, 224, 0) 45%); }
  /* the words sit on the garden wall, as on a phone, never on a white box */
  .hero-text { top: 21%; left: 50%; width: calc(var(--pw) * .8); translate: -50% 0; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
  .hero-names { font-size: clamp(56px, 6.4vh, 76px); }
  .hero-intro { max-width: 460px; font-size: 18px; }
}

/* =====================================================================================================
   THE OPENING, after the reference: the seal splits with the doors, the doors swing open slowly,
   the silk curtain behind them gathers into gold tie-backs, the valance drops, the words appear one by one
   ===================================================================================================== */
.drape-canvas { --m: 0; position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 20% * var(--m)), rgba(0, 0, 0, calc(1 - .65 * var(--m))) calc(100% - 10% * var(--m)), rgba(0, 0, 0, calc(1 - var(--m))) calc(100% - 3% * var(--m)));
  mask-image: linear-gradient(180deg, #000 calc(100% - 20% * var(--m)), rgba(0, 0, 0, calc(1 - .65 * var(--m))) calc(100% - 10% * var(--m)), rgba(0, 0, 0, calc(1 - var(--m))) calc(100% - 3% * var(--m))); }
.ps-warp .curtain, .ps-warp .tied { display: none !important; }
.tieback { position: absolute; z-index: 3; max-width: none; pointer-events: none; opacity: 0; filter: drop-shadow(0 5px 6px rgba(80, 40, 20, .32)); }
.tb-r { transform: scaleX(-1); }
.door-shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.door-l .door-shade { background: linear-gradient(90deg, rgba(25, 18, 6, .2), rgba(25, 18, 6, .72)); }
.door-r .door-shade { background: linear-gradient(270deg, rgba(25, 18, 6, .2), rgba(25, 18, 6, .72)); }
.seal-half { z-index: 2; pointer-events: none; }
/* each word of the names can appear on its own */
html body .hero-names span { opacity: var(--o, 1) !important; }

/* ---------- the flower garland (roses, peonies, jasmine strings) over each section ---------- */
html .vines-top { top: -6px; left: 50%; translate: -50% 0; width: 140%; max-width: none; opacity: 1; transform: none; }
html .vines-top.vines-r { display: none; }
section.story .vines-top { transition: opacity .9s ease .2s; }
body:not(.opened) section.story .vines-top { opacity: 0; }
@media (min-width: 900px) {
  html .vines-top, html section.story .vines-top { width: min(92%, 1500px); left: 50%; translate: -50% 0; }
  section.story { padding-top: 250px; }
  .ceremonies { padding-top: 250px; }
}
.orn-div .od-r { scale: -1 1; }

/* ---------- the parrot: four wing positions, the letter held in its claws ---------- */
.ps-bird { aspect-ratio: 346 / 274; }
.messenger .cord { display: none; }
.messenger .letter { left: 44.8%; top: 67.9%; width: 19.4%; opacity: 0; visibility: hidden; animation: none; transform-origin: 50% 0; filter: drop-shadow(0 4px 6px rgba(106, 58, 42, .28)); }
@media (max-width: 899px) { .messenger { width: 44%; } }

/* =====================================================================================================
   READABILITY (WCAG 2.2 AA): every word at least 14px, and small text dark enough on cream and peach.
   The bright rose stays for flowers and decoration; text uses a deeper rose (6.3:1 on cream, 5.2:1 on peach).
   ===================================================================================================== */
:root { --rose-text: #a3304c; --gold-text-dark: #6f5219; }
.eyebrow, .date .plaque .tab, .arch-card .rel, .arch-card .when .t, .arch-card .who .and, .thanks-title,
.card-names .amp, .hero-names .amp, .seal-names .amp { color: var(--rose-text); }
.eyebrow { font-size: 14px; letter-spacing: .24em; }
.date .plaque .tab { font-size: 14px; letter-spacing: .14em; }
.arch-card .rel { font-size: 14px; letter-spacing: .14em; }
.arch-card .when, .card-date, .hero-date, .seal-date { font-size: 14px; }
.thanks .tag { font-size: 14px; }
.count-box small, .rsvp .hint, .rsvp-ev legend small { font-size: 14px; color: var(--gold-text-dark); }
.rsvp .hint { color: #6b4a3a; }
.date #revealBtn span, .btn-plaque span { font-size: 14px; }
.medal-label { font-size: 14px; }
.field span, .field-title { font-size: 14px; }
.map-btn { font-size: 14px; letter-spacing: .1em; }
.site-foot .credit, .site-foot .credit span, .site-foot .credit a { font-size: 14px; }
/* words over the paintings always sit on a soft cream glow */
.sec-head .eyebrow { text-shadow: 0 0 12px #fffaf3, 0 0 6px #fffaf3, 0 0 2px #fffaf3; }
.thanks-in { background: rgba(255, 250, 243, .95); }
html body .site-foot .credit { font-size: 14px; }
html body .site-foot .credit .cr-2 { font-size: 14px; letter-spacing: .12em; opacity: 1; }
.thanks-in { padding-top: 24px; }
.thanks-title, .sec-head .h2 { text-shadow: 0 0 12px #fffaf3, 0 0 6px #fffaf3, 0 0 2px #fffaf3; }
.sec-head .orn-div { margin-bottom: 20px; }
@media (max-width: 899px) { section.story { padding-top: 200px; } }
.arch-card .who .and { color: var(--maroon); }
.hero-mantra { color: var(--maroon); }
.hero-intro { color: #5c3f31; }
.sec-head .eyebrow { margin-bottom: 12px; }
/* the HD parrot: one shared frame for all eight wing positions; the letter sits in its claws until it lets go */
.ps-bird { aspect-ratio: 640 / 434; }
.messenger .letter { left: 47%; top: 65.5%; width: 20%; }
/* the valance's top edge is open lacework: lift it so its solid band meets the top of the screen (no wall showing above it) */
.valance { top: -4vw; }
@media (min-width: 900px) { .valance { top: -1.85vw; } }

/* ---------- the HD peacock: glides in, stands on the railing (its shadow on the stone), opens its tail ---------- */
.pc2 { position: absolute; z-index: 2; aspect-ratio: 820 / 646; translate: -50% -100%; pointer-events: none; }
.pc2 img { position: absolute; display: block; max-width: none; height: auto; }
.pc2-disp { left: 0; bottom: 0; width: 100%; transform-origin: 50% 96%; clip-path: circle(var(--r, 6%) at 50% 92%);
  filter: drop-shadow(0 6px 8px rgba(60, 40, 20, .22)); }
.pc2-fly { left: -30%; bottom: 8%; width: 150%; filter: drop-shadow(0 10px 12px rgba(60, 40, 20, .18)); }
.pc2-shadow { position: absolute; left: 50%; bottom: -1.5%; width: 26%; height: 7%; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(70, 45, 25, .38), rgba(70, 45, 25, 0) 70%); }
.pc2.settled .pc2-disp { clip-path: none; animation: fanShimmer 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pc2.settled .pc2-disp { animation: none; } }

/* ---------- ceremony cards come alive: lanterns and bells hang from the arch's shoulders, banana plants stand on the card's base ---------- */
.cere-deco { position: absolute; inset: 0; pointer-events: none; }
.cd { position: absolute; display: block; max-width: none; height: auto; }
.cd-hang { top: 27%; z-index: 3; transform-origin: 50% 0; animation: cdSwing 4s ease-in-out infinite alternate; filter: drop-shadow(0 8px 8px rgba(60, 40, 20, .22)); }
.cd-hang.cd-l { left: 3.5%; translate: -50% 0; }
.cd-hang.cd-r { right: 3.5%; translate: 50% 0; animation-delay: -2s; }
.cd-lantern { width: 14%; }
.cd-bell { width: 13%; }
.cd-bell.ring { animation: cdRing 1.8s ease-out 1, cdSwing 4s ease-in-out 1.8s infinite alternate; }
.cd-bell.cd-r.ring { animation: cdRing 1.8s ease-out .25s 1, cdSwing 4s ease-in-out 2.05s infinite alternate; }
.cd-stand { bottom: 0; z-index: -2; transform-origin: 50% 100%; animation: cdSway 5.6s ease-in-out infinite alternate; filter: drop-shadow(0 6px 8px rgba(60, 40, 20, .16)); }
.cd-banana { width: 58%; }
.cd-banana.cd-l { left: -30%; }
.cd-banana.cd-r { right: -30%; scale: -1 1; animation-delay: -2.8s; }
.cd-pillar { width: 40%; }
.cd-pillar.cd-l { left: -18%; }
.cd-pillar.cd-r { right: -18%; scale: -1 1; animation-delay: -2.8s; }
.cd-toran { top: 19%; left: 0; width: 100%; z-index: 3; transform-origin: 50% 0; animation: cdToran 4.6s ease-in-out infinite alternate; filter: drop-shadow(0 6px 6px rgba(60, 40, 20, .18)); }
@keyframes cdSwing { from { rotate: -3.5deg; } to { rotate: 3.5deg; } }
@keyframes cdSway { from { rotate: -1.4deg; } to { rotate: 1.8deg; } }
@keyframes cdToran { from { rotate: -.5deg; } to { rotate: .5deg; } }
@keyframes cdRing { 0% { rotate: 0deg; } 12% { rotate: 16deg; } 26% { rotate: -13deg; } 40% { rotate: 9deg; } 54% { rotate: -6deg; } 68% { rotate: 3deg; } 100% { rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) { .cd { animation: none !important; } }

/* ---------- cards laid out around the painted divider (it sits 42.3% to 43.2% down the card art) ----------
   The card keeps the art's own shape, so the divider always falls between the two groups and never under words. */
.arch-card.cere, .love-card { aspect-ratio: 651 / 900; }
.arch-card.cere .card-in, .love-card .card-in { position: absolute; inset: 0; padding: 0; }
.card-in .ci-top, .card-in .ci-bot { position: absolute; display: flex; flex-direction: column; align-items: center; text-align: center; }
.arch-card.cere .ci-top { left: 14%; right: 14%; top: 13%; bottom: 58.6%; justify-content: flex-end; }
.arch-card.cere .ci-bot { left: 11%; right: 11%; top: 45.6%; bottom: 8%; justify-content: flex-start; }
.arch-card.cere .arch-art { width: 52%; margin: 0 auto 2px; flex: none; }
.arch-card.cere h3 { margin: 0; font-size: 34px; line-height: 1.05; }
.arch-card.cere .when { margin: 0; }
.arch-card.cere .venue { margin: 6px 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.love-card .ci-top { left: 15%; right: 15%; top: 22%; bottom: 58.6%; justify-content: flex-end; }
.love-card .ci-bot { left: 13%; right: 13%; top: 46%; bottom: 10%; justify-content: flex-start; }
.love-card .card-intro { margin: 0; }
.love-card .card-names { margin: 0 0 6px; }

/* ---------- the families on a parchment scroll: gold rollers above and below, the paper unrolls between them ---------- */
.pscroll { width: min(84vw, 360px); max-width: none; margin: 0 auto 44px; }
.pscroll::before { content: none; }
.pscroll .rod { height: auto; margin: 0; border-radius: 0; background: none !important; box-shadow: none !important; z-index: 2; }
.pscroll .rod::before, .pscroll .rod::after, .pscroll .rod i::before, .pscroll .rod i::after { content: none; }
.pscroll .rod img { display: block; width: 100%; height: auto; filter: drop-shadow(0 5px 6px rgba(80, 50, 20, .28)); }
.pscroll .sheet { margin: -1.2% 0; padding: 0; aspect-ratio: 900 / 1330; display: grid; place-items: center; color: var(--maroon);
  background: var(--paper-img) center / 100% 100% no-repeat; }
.pscroll .sheet::before { content: none; }
.pscroll .sheet-body { width: 64%; padding: 4% 0; text-align: center; }
.pscroll .rod-bottom { transform: translateY(calc((var(--u) - 1) * (var(--sh) - 2px))); }
.pscroll .sheet h3 { margin: 0 0 10px; font: 400 clamp(32px, 9vw, 40px)/1.1 var(--script); color: var(--maroon); }
.pscroll .sheet .rel { margin: 18px 0 4px; font: 600 14px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8f2440; }
.pscroll .sheet .who { margin: 0; font: 500 19px/1.45 var(--serif); color: #4a2a1e; }
.pscroll .sheet .who .and { font-family: var(--script); color: var(--maroon); font-size: 1.15em; }
@media (min-width: 900px) {
  .fam-grid { grid-template-columns: repeat(2, 380px); gap: 64px; }
  .fam-grid .pscroll { width: 380px; margin: 0; }
}
/* families: the two scrolls side by side in the middle (no side columns any more) */
@media (min-width: 900px) { .fam-wrap { display: flex; justify-content: center; } }
/* the Ceremonies section opens under a jasmine toran that sways gently */
html .vines-top.toran-top { width: 118%; transform-origin: 50% 0; animation: cdToran 5s ease-in-out infinite alternate; }
@media (min-width: 900px) { html .vines-top.toran-top { width: min(84%, 1200px); } }
@media (prefers-reduced-motion: reduce) { html .vines-top.toran-top { animation: none; } }
/* interim, until the card art without a divider arrives: the picture alone fills the arch above the divider,
   the name and every detail sit together below it */
.arch-card.cere .ci-top { left: 12%; right: 12%; top: 12%; bottom: 58.4%; justify-content: center; }
.arch-card.cere .arch-art { width: 86%; margin: 0 auto; }
.arch-card.cere .ci-bot { top: 45.4%; bottom: 7%; }
.arch-card.cere .ci-bot h3 { margin: 2px 0 6px; }
/* text keeps clear of the hanging lanterns and bells */
.arch-card.cere .ci-bot { left: 15%; right: 15%; }
/* the jasmine toran's tassels end above the Ceremonies heading */
.ceremonies { padding-top: 178px; }
@media (min-width: 900px) { html .vines-top.toran-top { width: min(62%, 900px); } .ceremonies { padding-top: 318px; } }
/* the ceremony picture sits inside the arch: smaller, lower, clear of the green dome band, just above the divider */
.arch-card.cere .ci-top { left: 14%; right: 14%; top: 21%; bottom: 58.8%; justify-content: flex-end; }
.arch-card.cere .arch-art { width: 60%; margin: 0 auto 1.5%; }

/* ---------- the card art has no divider any more: every card flows naturally again, at every screen size ---------- */
.arch-card.cere, .love-card { aspect-ratio: auto; }
.arch-card.cere .card-in, .love-card .card-in { position: relative; inset: auto; }
.card-in .ci-top, .card-in .ci-bot { position: static; display: flex; flex-direction: column; align-items: center; text-align: center; }
.arch-card.cere .card-in { padding: 31% 15% 29%; }
.arch-card.cere .arch-art { width: 64%; margin: 0 auto 6px; }
.arch-card.cere .ci-bot h3 { margin: 2px 0 8px; }
.arch-card.cere .venue { margin: 6px 0 12px; }
/* the love letter: larger words, no date (the guests reveal the date themselves) */
.love-card .card-in { padding: 36% 14% 32%; }
.love-card .card-intro { margin: 0 0 12px; font-size: 19px; line-height: 1.45; }
.love-card .card-names { margin: 4px 0 10px; font-size: 50px; line-height: 1.05; }
.love-card .card-line { margin: 0; font-size: 20px; line-height: 1.45; }
@media (min-width: 900px) { .love-card .card-intro { font-size: 20px; } .love-card .card-names { font-size: 56px; } .love-card .card-line { font-size: 21px; } }
/* cards keep the art's true shape (never squashed); the words sit centred inside the arch, and a long text simply makes the card taller */
.arch-card.cere, .love-card { aspect-ratio: 651 / 900; }
.arch-card.cere .card-in, .love-card .card-in { display: flex; flex-direction: column; justify-content: center; }
.arch-card.cere .card-in { padding: 27% 15% 24%; }
.love-card .card-in { padding: 30% 14% 26%; }
/* the love letter's words start just below the small bells painted inside the arch */
.love-card .card-in { padding: 46% 13% 24%; }
.love-card .card-intro { font-size: 17px; margin-bottom: 8px; }
.love-card .card-names { font-size: 44px; }
.love-card .card-line { font-size: 18px; }
@media (min-width: 900px) { .love-card .card-intro { font-size: 19px; } .love-card .card-names { font-size: 52px; } .love-card .card-line { font-size: 20px; } }

/* ---------- the couple's monogram in a gold circle, at the top of the stage ---------- */
.hero-mono { display: flex; align-items: center; justify-content: center; gap: 9px; width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255, 250, 243, .96), rgba(251, 236, 224, .88));
  box-shadow: inset 0 0 0 1.5px #c69a45, inset 0 0 0 5px rgba(255, 250, 243, .92), inset 0 0 0 6px rgba(198, 154, 69, .6), 0 8px 18px rgba(106, 58, 42, .16); }
.hero-mono span { font: 400 31px/1 var(--script); color: var(--maroon); translate: 0 2px; }
.hero-mono i { width: 1px; height: 30px; background: linear-gradient(transparent, #c69a45 20%, #c69a45 80%, transparent); }
@media (min-width: 900px) { .hero-mono { width: 90px; height: 90px; } .hero-mono span { font-size: 37px; } .hero-mono i { height: 36px; } }
/* the words always start below the valance, whatever the screen's shape (the valance grows with the width) */
.hero-text { top: max(16%, calc(27.8vw + 12px)); }
@media (min-width: 900px) { .hero-text { top: max(19%, calc(12.8vw + 14px)); } }

/* ---------- the elephants: painted whole, breathing gently, bowing when the date is revealed ---------- */
img.date-ele { transform-origin: 50% 100%; animation: eleBreathe 4.8s ease-in-out infinite; }
img.date-ele.ele-r { animation-delay: -2.4s; }
img.date-ele.greet { animation: eleBow 1.8s ease-in-out 1, eleBreathe 4.8s ease-in-out 1.8s infinite; }
@keyframes eleBow { 0%, 100% { rotate: 0deg; } 35% { rotate: -3deg; } 62% { rotate: 1deg; } }
@media (prefers-reduced-motion: reduce) { img.date-ele { animation: none !important; } }

/* ---------- garlands hang whole from the top edge: nothing cut at the top or the sides on phones ---------- */
html .vines-top { top: 0; }
@media (max-width: 899px) { html .vines-top, html .vines-top.toran-top { width: 100%; } }

/* ---------- the love letter: a little lotus, then the names one under the other (long names keep their own line) ---------- */
.love-card .card-in { padding: 46% 13% 20%; }
.love-card .card-orn { display: block; width: 34px; height: auto; margin: 2px auto 4px; }
.love-card .card-names { display: flex; flex-direction: column; align-items: center; margin: 0 0 8px; font-size: clamp(34px, 10.5vw, 42px); line-height: 1.04; overflow-wrap: anywhere; }
.love-card .card-names .amp { margin: 1px 0; font-size: .55em; color: var(--rose-text); }
@media (min-width: 900px) { .love-card .card-orn { width: 42px; } .love-card .card-names { font-size: 50px; } }
/* text inside the cards always wraps within the card (a centred flex item would otherwise stay one long line) */
.card-in .ci-top > *, .card-in .ci-bot > * { max-width: 100%; }
/* the love letter's words sit between the painted bells (top) and the painted peacocks (bottom corners, from 78% down) */
.love-card .card-in { padding: 46% 13% 33%; }
.love-card .card-intro { font-size: 16px; line-height: 1.42; }
.love-card .card-orn { width: 28px; margin: 0 auto 2px; }
.love-card .card-names { font-size: clamp(32px, 9.5vw, 38px); margin-bottom: 6px; }
.love-card .card-line { font-size: 16px; line-height: 1.4; }
@media (min-width: 900px) {
  .love-card .card-in { padding: 46% 13% 31%; }
  .love-card .card-intro { font-size: 18px; } .love-card .card-orn { width: 38px; }
  .love-card .card-names { font-size: 48px; } .love-card .card-line { font-size: 18px; }
}

/* ---------- the elephant from your asset sheet: body, ear and trunk placed together (trunk cap just in front of the eye) ---------- */
.el-rig { aspect-ratio: 871 / 885; }
.el-rig .el-body { left: 0; top: 0; width: 88.61%; }
.el-rig .el-ear { left: 59.11%; top: 32.77%; width: 17.79%; transform-origin: 88% 22%; }
.el-rig .el-trunk { left: 80.35%; top: 41.81%; width: 19.65%; transform-origin: 46% 4%; }
/* the peacock's two wing positions, stacked in one frame so the body stays still while the wings beat */
.pc2-fly { position: absolute; left: -32%; bottom: 6%; width: 156%; aspect-ratio: 900 / 624; }
.pc2-fly img { position: absolute; left: 0; top: 0; width: 100%; height: auto; filter: drop-shadow(0 10px 12px rgba(60, 40, 20, .18)); }
.pc2-fly .pf-down { opacity: 0; }

/* ---------- the couple's monogram, in the reference typography: tall green serif initials with a gold script & between them ---------- */
.hero-mono { position: relative; gap: 0; width: 96px; height: 96px; }
.hero-mono span { position: relative; z-index: 1; font: 500 48px/1 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif; color: #3d5a34; letter-spacing: 0; }
.hero-mono span:first-child { margin-right: 4px; translate: 0 -5px; }
.hero-mono span:last-child { margin-left: 4px; translate: 0 6px; }
.hero-mono i { position: absolute; left: 50%; top: 52%; z-index: 2; width: auto; height: auto; translate: -50% -50%; background: none; }
.hero-mono i::before { content: '&'; display: block; font: 400 40px/1 var(--script); color: #b8862e; }
@media (min-width: 900px) { .hero-mono { width: 112px; height: 112px; } .hero-mono span { font-size: 56px; } .hero-mono i::before { font-size: 46px; } }

/* ---------- the garlands and the toran sway gently, like strings of flowers in a breeze ---------- */
html .vines-top { transform-origin: 50% 0; animation: garlandSway 6.5s ease-in-out infinite alternate; }
html .vines-top.toran-top { animation: garlandSway 5.5s ease-in-out infinite alternate; }
@keyframes garlandSway { from { transform: skewX(-1deg); } to { transform: skewX(1deg); } }
@media (prefers-reduced-motion: reduce) { html .vines-top, html .vines-top.toran-top { animation: none; } }

/* ---------- the flowers move too: each rose sways on its stem, the lotus slowly opens and settles ---------- */
/* the sway pivots at the end of the rose's stem (26% across, 97% down the picture), so the static tilt and the mirror stay as they are */
.orn-div .od-f { animation: sprigSway 4.8s ease-in-out infinite alternate; }
.orn-div .od-r { animation-duration: 5.4s; animation-delay: -2.6s; }
.orn-div .od-l, .love-card .card-orn { transform-origin: 50% 96%; animation: lotusOpen 5.6s ease-in-out infinite; }
@keyframes sprigSway {
  from { transform: translate(-24%, 47%) rotate(-6.5deg) translate(24%, -47%); }
  to { transform: translate(-24%, 47%) rotate(6.5deg) translate(24%, -47%); }
}
@keyframes lotusOpen { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06, 1.045); } }
@media (prefers-reduced-motion: reduce) { .orn-div .od-f, .orn-div .od-l, .love-card .card-orn { animation: none; } }

/* ---------- the elephant's trunk (one painted piece): its jewelled cap sits over the muzzle and stays there; ---------- */
/* the trunk sways from that joint (a skew, so the cap does not slide off the face) and lifts forward to greet */
.el-rig .el-trunk { left: 76.22%; top: 44.42%; width: 24.64%; transform-origin: 32% 10%; animation: trunkSway2 5.2s ease-in-out infinite; }
.ele-r .el-trunk { animation-delay: -1.6s; }
.el-rig.greet .el-trunk { animation: trunkGreet2 2.8s ease-in-out 1, trunkSway2 5.2s ease-in-out 2.8s infinite; }
@keyframes trunkSway2 { 0%, 100% { transform: skewX(2.5deg) rotate(.5deg); } 50% { transform: skewX(-3.5deg) rotate(-.7deg); } }
@keyframes trunkGreet2 { 0% { transform: skewX(2.5deg); } 38% { transform: skewX(-12deg) rotate(-3.5deg); } 60% { transform: skewX(-10deg) rotate(-2.5deg); } 100% { transform: skewX(2.5deg) rotate(.5deg); } }

/* ---------- the seal on the doors: only the couple's initials, as a decorative monogram (no names, no date on the cover) ---------- */
/* sizes follow the seal (container units), with pixel sizes first for older browsers */
.seal { container-type: inline-size; }
.seal-in { width: 64%; }
.seal-mono { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin: 0; line-height: 1; color: #6a1f35;
  font-family: 'Imperial Script', 'Great Vibes', 'Tiro Devanagari Hindi', cursive; font-weight: 400;
  text-shadow: 0 1px 0 rgba(255, 250, 240, .9), 0 2px 4px rgba(106, 31, 53, .22); }
.seal-mono .sm-a, .seal-mono .sm-b { position: relative; z-index: 1; font-size: 104px; font-size: 31cqw; }
.seal-mono .sm-a { justify-self: end; margin-right: -.14em; translate: 0 -.1em; }
.seal-mono .sm-b { justify-self: start; margin-left: -.14em; translate: 0 .14em; }
.seal-mono .sm-amp { position: absolute; left: 50%; top: 50%; z-index: 0; translate: -50% -46%; font-family: 'Great Vibes', cursive; font-size: 160px; font-size: 48cqw;
  color: rgba(190, 146, 66, .38); text-shadow: none; }
.seal-mono .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- the opened stage: the blessing the couple chose (Ganesha, Om…) crowns the words ---------- */
.hero-sym .ganesha.bless { width: 56px; margin-bottom: 6px; }
.hero-sym .om { font-size: 48px; }
@media (min-width: 900px) { .hero-sym .ganesha.bless { width: 66px; } .hero-sym .om { font-size: 56px; } }

/* ---------- desktop ceremonies: up to three in a row, and a shorter last row sits in the middle (5 = 3 + 2, 4 = 2 + 2) ---------- */
@media (min-width: 900px) {
  .cere-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 36px; max-width: 1188px; }
  .cere-grid > .arch-card { flex: 0 1 360px; min-width: 300px; margin: 0; }
  .cere-grid[data-n="4"] { max-width: 792px; }
}

/* ---------- the peacock lands standing side on (train trailing over the rail), then turns to the guests and fans out ---------- */
/* placed so its feet and head match the fanned bird (measured on the paintings), so one becomes the other without a jump */
.pc2 .pc2-stand { left: -11.52%; top: 27.94%; width: 75.8%; opacity: 0; visibility: hidden; filter: drop-shadow(0 6px 8px rgba(60, 40, 20, .18)); }
/* a copy of the fanned bird cut to its body, neck and head: visible from the start of the turn (its train opens behind it) */
.pc2 .pc2-body { left: 0; bottom: 0; width: 100%; transform-origin: 50% 96%; clip-path: ellipse(13% 37% at 52.5% 63%); }
.pc2.settled .pc2-body { display: none; }

/* ---------- the card's own bells (lifted off the painting): hanging from the hooks under the arch, swinging gently; ---------- */
/* they ring one after another when the card arrives, and again when it is tapped */
.card-bells { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cbell { position: absolute; display: block; max-width: none; height: auto; transform-origin: 50% 0; filter: drop-shadow(0 3px 3px rgba(90, 60, 20, .16));
  animation: cbSwing 5.2s ease-in-out infinite; }
.cb-ll { left: 14.439%; top: 22.778%; width: 6.452%; transform-origin: 47.6% 0; animation-duration: 5.6s; animation-delay: -1.2s; }
.cb-ls { left: 19.816%; top: 21.778%; width: 5.53%; animation-duration: 4.6s; animation-delay: -3.1s; }
.cb-rs { left: 75.576%; top: 21.778%; width: 5.53%; animation-duration: 4.8s; animation-delay: -.6s; }
.cb-rl { left: 79.57%; top: 22.778%; width: 5.991%; transform-origin: 52.6% 0; animation-duration: 5.4s; animation-delay: -2.4s; }
.cbell.ring { animation: cbRing 1.7s ease-out var(--ring-delay, 0s) 1 both, cbSwing 5.2s ease-in-out calc(var(--ring-delay, 0s) + 1.7s) infinite; }
@keyframes cbSwing { 0%, 100% { rotate: 0deg; } 25% { rotate: 2.4deg; } 75% { rotate: -2.4deg; } }
@keyframes cbRing { 0% { rotate: 0deg; } 10% { rotate: 15deg; } 24% { rotate: -12deg; } 38% { rotate: 9deg; } 52% { rotate: -6deg; } 66% { rotate: 3.5deg; } 82% { rotate: -1.5deg; } 100% { rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) { .cbell { animation: none !important; } }

/* ---------- wide screens: the cards stand side by side, so only every other card wears its lanterns and banana plants ---------- */
@media (min-width: 900px) {
  .cere-deco.cd-alt { display: none; }
  .cere-grid { gap: 48px 56px; max-width: 1240px; }
  .cd-banana { width: 46%; }
  .cd-banana.cd-l { left: -25%; }
  .cd-banana.cd-r { right: -25%; }
}

/* ---------- the families' parchment: it comes out from behind the bottom roller with a soft edge (never a hard cut) ---------- */
/* (the soft edge travels with the roller and has left the paper entirely once it is fully open) */
.pscroll .sheet { -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--u, 0) * (100% + 16px) - 16px), transparent calc(var(--u, 0) * (100% + 16px)));
  mask-image: linear-gradient(180deg, #000 calc(var(--u, 0) * (100% + 16px) - 16px), transparent calc(var(--u, 0) * (100% + 16px))); }
.pscroll .rod-bottom { transform: translateY(calc((var(--u) - 1) * (var(--sh) + 4px))); }
/* wide screens: one family at a time, a large scroll centred on the page (as in Swarna Mahal), words a size up */
@media (min-width: 900px) {
  html .fam-grid { grid-template-columns: minmax(0, 470px); justify-content: center; gap: 72px; }
  html .fam-grid .pscroll { width: 470px; margin: 0; }
  .pscroll .sheet h3 { font-size: 50px; }
  .pscroll .sheet .rel { font-size: 15px; margin-top: 22px; }
  .pscroll .sheet .who { font-size: 22px; }
}

/* ---------- the jasmine toran right across the page (its hooks removed); each tassel swings on its own thread ---------- */
.ceremonies { position: relative; padding-top: max(178px, calc(31.7vw + 44px)); }
.toran-row { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; transform-origin: 50% 0; animation: garlandSway 6s ease-in-out infinite alternate; }
.toran-unit { position: relative; width: 100%; aspect-ratio: 1300 / 412; }
.toran-unit.tu-2 { display: none; }
.toran-unit img { position: absolute; display: block; max-width: none; height: auto; }
.tr-base { left: 0; top: 0; width: 100%; filter: drop-shadow(0 6px 6px rgba(60, 40, 20, .14)); }
.tr-tassel { transform-origin: 50% 0; animation: tasselSwing 3.4s ease-in-out infinite alternate; filter: drop-shadow(0 5px 5px rgba(60, 40, 20, .14)); }
.tt-1 { left: .308%; top: 66.748%; width: 9.385%; transform-origin: 54.1% 0; animation-duration: 3.6s; animation-delay: -1.1s; }
.tt-2 { left: 26.385%; top: 59.951%; width: 8.308%; animation-duration: 3.1s; animation-delay: -2.2s; }
.tt-3 { left: 45.615%; top: 62.864%; width: 9.154%; transform-origin: 49.6% 0; animation-duration: 3.8s; animation-delay: -.4s; }
.tt-4 { left: 65.231%; top: 59.951%; width: 8.769%; animation-duration: 3.3s; animation-delay: -1.7s; }
.tt-5 { left: 90.231%; top: 66.748%; width: 9.538%; transform-origin: 44.4% 0; animation-duration: 3.5s; animation-delay: -2.8s; }
@keyframes tasselSwing { from { rotate: -3deg; } to { rotate: 3deg; } }
@media (min-width: 900px) {
  /* two torans that meet at one end lotus: the second starts just past the first one's lotus */
  .toran-unit { position: absolute; top: 0; left: 0; width: 53.06%; }
  .toran-unit.tu-2 { display: block; left: 46.94%; clip-path: inset(0 0 0 9.2%); }
  .toran-unit.tu-2 .tt-1 { display: none; }
  .ceremonies { padding-top: calc(16.82vw + 70px); }
}
@media (prefers-reduced-motion: reduce) { .toran-row, .tr-tassel { animation: none !important; } }

/* ---------- wide screens: the notes come one after another too, like the families (one thing at a time) ---------- */
@media (min-width: 900px) { html .notes { grid-template-columns: minmax(0, 600px); justify-content: center; gap: 48px; } }

/* ---------- the thank-you garden: small dark birds crossing the sky (bigger and darker than the faint ones before) ---------- */
.outro .bird { width: calc(var(--s) * 3.4); }
.outro .bird svg { fill: #2a1d22; opacity: .82; }

/* the doors wait a moment for the silk painting on a slow first visit: the button says "Opening…" and breathes */
.btn-plaque.wait { pointer-events: none; animation: plaqueWait 1.1s ease-in-out infinite alternate; }
@keyframes plaqueWait { from { opacity: 1; } to { opacity: .72; } }
@media (prefers-reduced-motion: reduce) { .btn-plaque.wait { animation: none; } }

/* ---------- the lotus lake: clouds drift through the open sky (behind the flowers and trees), lotuses open on the ---------- */
/* lily pads one after another, and the wedding boat rocks gently */
.sky-clouds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.sky-clouds .cloud { position: absolute; left: 0; right: 0; height: 30%; animation: cloudDrift var(--t) linear var(--d) infinite; will-change: transform; }
.sky-clouds .cloud img { position: absolute; left: 0; top: 0; max-width: none; height: auto; opacity: .9; }
@keyframes cloudDrift { from { transform: translateX(100%); } to { transform: translateX(calc(var(--w) * -1%)); } }
.pond-bloom { position: absolute; aspect-ratio: 366 / 254; translate: -50% -92%; pointer-events: none; transform-origin: 50% 100%; }
.pond-bloom img { position: absolute; left: 50%; bottom: 0; width: auto; max-width: none; translate: -50% 0; opacity: 0; filter: drop-shadow(0 3px 3px rgba(30, 60, 30, .22)); }
.pond-bloom .lb-1 { height: 81%; } .pond-bloom .lb-2 { height: 83%; } .pond-bloom .lb-3 { height: 85%; } .pond-bloom .lb-4 { height: 89%; } .pond-bloom .lb-5 { height: 100%; }
.pond-bloom.open .lb-1 { animation: lbIn .6s ease forwards, lbOut .6s ease .75s forwards; }
.pond-bloom.open .lb-2 { animation: lbIn .6s ease .75s forwards, lbOut .6s ease 1.5s forwards; }
.pond-bloom.open .lb-3 { animation: lbIn .6s ease 1.5s forwards, lbOut .6s ease 2.25s forwards; }
.pond-bloom.open .lb-4 { animation: lbIn .6s ease 2.25s forwards, lbOut .6s ease 3s forwards; }
.pond-bloom.open .lb-5 { animation: lbIn .7s ease 3s forwards; }
.pond-bloom.open { animation: pondBob 4.4s ease-in-out 3.6s infinite alternate; }
.pond-bloom.still .lb-5 { opacity: 1; animation: none; }
@keyframes pondBob { from { transform: translateY(0) rotate(-1.2deg); } to { transform: translateY(-2%) rotate(1.2deg); } }
.fx-bob { -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); animation: boatBob 4.8s ease-in-out var(--d) infinite alternate; }
@keyframes boatBob { from { transform: translateY(-1px) rotate(-.3deg); } to { transform: translateY(1.2px) rotate(.3deg); } }
@media (prefers-reduced-motion: reduce) { .sky-clouds .cloud, .pond-bloom, .fx-bob { animation: none !important; } }

/* ---------- wide screens: the olive doors stand in the doorway of a palace wall (the wall fills the screen) ---------- */
.gate-wall { display: none; }
@media (min-width: 900px) {
  .gate.walled { perspective-origin: calc(var(--hl) + var(--hw) / 2) calc(var(--ht) + var(--hh) / 2); }
  .gate.walled .gate-wall { display: block; position: absolute; left: var(--wl); top: var(--wt); width: var(--ww); max-width: none; height: auto; z-index: 1; pointer-events: none; }
  .gate.walled .door { top: var(--ht); bottom: auto; height: var(--hh); width: calc(var(--hw) / 2 + 2px); }
  .gate.walled .door-l { left: var(--hl); right: auto; }
  .gate.walled .door-r { left: calc(var(--hl) + var(--hw) / 2 - 2px); right: auto; }
  .gate.walled .door img { object-position: 50% 50%; }
  .gate.walled .gate-shade { display: none; }
  .gate.walled .gate-card { left: calc(var(--hl) + var(--hw) / 2); top: calc(var(--ht) + var(--hh) * .5); width: calc(var(--hw) * .84); z-index: 2; }
}

/* ---------- the peacock's train opens from its centre line out to both sides, the way a real peacock fans its tail ---------- */
/* (a wedge pointing up from the body that widens to the full fan, instead of a growing circle) */
.pc2 .pc2-disp { clip-path: none;
  -webkit-mask-image: conic-gradient(from 0deg at 50% 92%, #000 0deg calc(var(--a, 2deg) - 9deg), transparent var(--a, 2deg) calc(360deg - var(--a, 2deg)), #000 calc(369deg - var(--a, 2deg)));
  mask-image: conic-gradient(from 0deg at 50% 92%, #000 0deg calc(var(--a, 2deg) - 9deg), transparent var(--a, 2deg) calc(360deg - var(--a, 2deg)), #000 calc(369deg - var(--a, 2deg))); }
.pc2.settled .pc2-disp { -webkit-mask-image: none; mask-image: none; }

/* ---------- computers: the silk covers the whole screen and opens to its edges; the fountain garden fills everything between ---------- */
@media (min-width: 900px) {
  .ps-wide .hero { --sw: min(100vw, 172.4svh); --pw: calc(var(--sw) * .872); }
  .ps-wide .hero-art { -webkit-mask-image: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, .4) 94%, transparent 99%); mask-image: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, .4) 94%, transparent 99%); }
  .ps-wide .hero-art img.slot, .ps-wide .hero-art .scene-img { object-position: 50% 80%; }
  .ps-wide .hero-loop { object-position: 50% 80%; -webkit-mask-image: radial-gradient(ellipse var(--mx, 25%) var(--my, 30%) at 50% var(--mc, 75%), #000 60%, transparent 100%); mask-image: radial-gradient(ellipse var(--mx, 25%) var(--my, 30%) at 50% var(--mc, 75%), #000 60%, transparent 100%); }
  .ps-wide .side-drape { width: calc(50% - var(--sw) / 2 + 60px); }
  .ps-wide .hero-veil { width: var(--pw); background: linear-gradient(180deg, rgba(251, 236, 224, .42), rgba(251, 236, 224, 0) 46%); }
  .ps-wide .hero-text { width: min(680px, calc(var(--pw) * .56)); top: max(17.5%, calc(12.3vw + 8px)); }
  .ps-wide .hero-intro { max-width: none; margin-bottom: 4px; font-size: clamp(17px, 1.3vw, 21px); }
  .ps-wide .hero-mantra { margin-bottom: 4px; font-size: 16px; }
  .ps-wide .hero-sym .ganesha.bless { width: clamp(46px, 6vh, 64px); margin-bottom: 2px; }
  .ps-wide .hero-names { font-size: clamp(54px, 7.6vh, 88px); }
}
