/* Sanjog & Sunny · one invitation site for every celebration
   The gate is a quiet, editorial cover: the couple's portrait on one side, the invitation on
   the other, ivory and gold. Past the gate, the page keeps the candlelit plum night and each
   event section wears its own Canva palette: plum (Mehendi), garden (Sangeet), sun (Haldi),
   royal (Shaadi). */

:root {
  --plum-0: #070d10; --plum-1: #0f1a1a; --plum-2: #1d2c27;   /* dusk sage-navy, from the courtyard backdrop */
  --gold: #c9a45c; --gold-2: #e7c67f; --gold-3: #f4e1b0;
  --ink: #f3e9d7; --ink-2: #d9c9ad; --magenta: #b5326e;
  /* the cover */
  --cream: #f5f0e6; --cream-2: #ede6d8; --c-ink: #23201c; --c-ink-2: #5c554b; --c-muted: #8b8377;
  --c-gold: #b8975a; --c-gold-deep: #8f7340; --c-rule: #dfd6c4;
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --reveal: cubic-bezier(.77, 0, .18, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--plum-1); font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body:not(.is-in) { background: var(--cream); }
a { color: inherit; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.link { background: none; border: 0; padding: 0; color: var(--gold-2); font: inherit; cursor: pointer; border-bottom: 1px solid rgba(201, 164, 92, .5); }

/* ---------- fixed backdrop (behind the welcome and the events) ---------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--plum-0); }
body:not(.is-in) .scene { display: none; }
.sky { position: absolute; inset: -6% -4% -26% -4%; background: var(--plum-0) url("assets/bg-desktop.webp") center 80% / cover no-repeat; will-change: transform; animation: breathe 28s ease-in-out infinite alternate; }
@media (max-width: 700px), (orientation: portrait) and (max-width: 900px) { .sky { background-image: url("assets/bg-phone.webp"); background-position: center 70%; } }
.haze { position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 52%, rgba(7, 13, 16, .35), transparent 70%), linear-gradient(180deg, rgba(7, 13, 16, .35), transparent 30%, transparent 80%, rgba(7, 13, 16, .25)); animation: hazeShift 22s ease-in-out infinite alternate; }
.candles { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; }
.candle { position: absolute; bottom: var(--b, 4vh); left: var(--x, 50%); width: var(--s, 90px); height: var(--s, 90px); margin-left: calc(var(--s, 90px) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 150, .75) 0%, rgba(240, 160, 70, .35) 30%, transparent 70%); filter: blur(2px); animation: flicker var(--d, 3.2s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.candle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 14px; margin: -8px 0 0 -1.5px; border-radius: 40% 40% 50% 50%; background: linear-gradient(#fff6d6, #f7b34c 60%, #e0662b); box-shadow: 0 0 10px 3px rgba(255, 200, 110, .8); }
.petals { position: absolute; inset: 0; }
.petal { position: absolute; top: -8vh; left: var(--x, 50%); width: var(--w, 18px); height: auto; opacity: 0; animation: drift var(--dur, 18s) linear infinite; animation-delay: var(--delay, 0s); filter: brightness(.8) saturate(1.05) drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }

/* ---------- shared type ---------- */
.kicker { font-family: var(--serif); font-weight: 400; font-size: clamp(13px, 2.2vw, 17px); letter-spacing: .42em; text-transform: uppercase; color: var(--gold-3); margin-left: .42em; }
.ornament { display: block; width: 200px; height: 18px; margin: 14px auto; color: var(--gold); }
.ornament--small { width: 150px; margin: 10px auto 18px; }
.btn { font-family: var(--serif); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--gold-2); padding: 14px 20px; border: 1px solid var(--gold); background: rgba(18, 8, 24, .35); cursor: pointer; transition: background-color .2s, color .2s; display: inline-block; }
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--plum-0); }
.btn--solid { background: var(--gold); color: var(--plum-0); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--gold-2); }
.btn[disabled] { opacity: .7; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- the cover (gate) ----------
   Phone first: portrait on top, invitation below, the whole gate scrolls.
   Desktop: portrait left, invitation right; the reel opens full-width and the panel slides in. */
.gate { position: fixed; inset: 0; z-index: 5; background: var(--cream); color: var(--c-ink); overflow: auto; -webkit-overflow-scrolling: touch; transition: opacity .6s ease, transform .6s ease; }
.gate.is-hidden { opacity: 0; transform: scale(1.02); pointer-events: none; }

.cover { position: relative; width: 100%; height: 52svh; min-height: 340px; overflow: hidden; background: var(--cream-2); }
.cover__reel, .cover__main { position: absolute; inset: 0; }
.cover__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; opacity: 0; transform: scale(1.08); transition: opacity .22s ease; }
.cover__shot.is-on { opacity: 1; transform: scale(1); transition: opacity .16s ease-out, transform .34s ease-out; }
.cover__main { inset: -14px; opacity: 0; transition: opacity 1s ease; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); will-change: transform; }
.gate.is-main .cover__main { opacity: 1; }
.cover__main img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 35%; animation: kenburns 38s ease-in-out infinite alternate; }
.cover__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .06), transparent 28%, transparent 62%, var(--cream) 100%); }
.cover__grain { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .7 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>"); animation: grain 1.4s steps(6) infinite; }

.panel { position: relative; background: var(--cream); display: grid; grid-template-rows: 1fr auto auto; min-height: 42svh; margin-top: -22px; }
.gate__content { position: relative; z-index: 2; text-align: center; padding: clamp(10px, 3vh, 28px) clamp(22px, 6vw, 72px) clamp(18px, 3vh, 28px); align-self: center; }
.rise { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; transition-delay: calc(var(--d, 0) * 95ms); }
.gate.is-ready .rise { opacity: 1; transform: none; }

.gate .kicker { color: var(--c-gold-deep); font-size: clamp(11px, 1.3vw, 13px); letter-spacing: .4em; margin-left: .4em; }
.gate__parents { font-family: var(--body); font-weight: 500; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.4; color: var(--c-ink); margin-top: clamp(8px, 1.6vh, 14px); }
.gate__parents span { display: block; }
.gate__invite { font-family: var(--serif); font-size: clamp(9px, 1vw, 10.5px); letter-spacing: .22em; text-transform: uppercase; color: var(--c-ink-2); margin: clamp(6px, 1.2vh, 10px) 0 0; margin-left: .22em; }
@media (max-width: 420px) { .gate__invite { font-size: 8.5px; letter-spacing: .14em; margin-left: .14em; } }
.gate .names { font-family: var(--body); font-weight: 400; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; color: var(--c-ink); letter-spacing: .01em; margin: clamp(6px, 1.4vh, 12px) 0 0; text-shadow: none; }
.gate .names span[data-t] { display: block; }
.gate .names .amp { display: block; font-style: italic; font-weight: 300; font-size: .56em; line-height: 1.25; color: var(--c-gold); margin: 2px 0; }
.rule { width: 64px; height: 1px; background: var(--c-gold); margin: clamp(12px, 2vh, 20px) auto; }
.gate__dates { font-family: var(--serif); font-size: clamp(11px, 1.3vw, 13px); letter-spacing: .3em; text-transform: uppercase; color: var(--c-ink-2); margin-left: .3em; }
.gate__dates .tick { color: var(--c-gold); font-size: .75em; vertical-align: middle; }
.gate__follow { font-family: var(--body); font-style: italic; font-size: clamp(14px, 1.3vw, 16px); color: var(--c-muted); margin-top: clamp(4px, .8vh, 8px); }
.gate__lead { font-style: italic; color: var(--c-ink-2); font-size: clamp(16px, 1.5vw, 19px); max-width: 38ch; margin: clamp(10px, 1.6vh, 16px) auto clamp(12px, 2vh, 20px); }
.gate__form { display: grid; gap: 14px; max-width: 360px; margin: 0 auto; }
.gate__form input { width: 100%; font-family: var(--body); font-size: 24px; font-weight: 500; text-align: center; color: var(--c-ink); background: transparent; border: 0; border-bottom: 1px solid var(--c-gold); border-radius: 0; padding: 10px 8px; outline: none; transition: border-color .2s; }
.gate__form input::placeholder { color: var(--c-muted); font-style: italic; font-weight: 400; }
.gate__form input:focus { border-bottom-color: var(--c-ink); }
.gate .btn--solid { background: var(--c-gold); border-color: var(--c-gold); color: #1b1714; padding: 15px 20px; }
.gate .btn--solid:hover, .gate .btn--solid:focus-visible { background: var(--c-gold-deep); border-color: var(--c-gold-deep); color: var(--cream); }
/* shown in place of the phone field when the guest came in on their own link */
.gate__ready { display: grid; gap: 16px; max-width: 360px; margin: 0 auto; justify-items: center; }
.gate__ready .btn { width: 100%; }
.gate__ready-line { font-style: italic; color: var(--c-ink-2); font-size: clamp(17px, 1.6vw, 20px); margin: 0; }
.gate__ready-line b { font-style: normal; font-weight: 500; color: var(--c-ink); }
.gate__note { margin-top: 12px; font-family: var(--serif); font-size: clamp(11px, 1.7vw, 12.5px); letter-spacing: .06em; color: var(--ink-2); opacity: .78; }
.gate__error { margin: 16px auto 0; max-width: 42ch; font-style: italic; color: #9b2c2c; font-size: 17px; }
.gate__error a { color: var(--c-gold-deep); }
.gate__hint { margin: 22px auto 0; max-width: 46ch; font-size: 15px; color: var(--c-ink-2); border-top: 1px solid var(--c-rule); padding-top: 14px; }
.gate__hint b { color: var(--c-ink); font-weight: 600; }

/* the prints: photographs as tilted paper prints that drift past, bob, lift on touch, and open large */
.strip { position: relative; z-index: 2; overflow: hidden; min-height: calc(clamp(74px, 11vh, 118px) + 47px); padding: 16px 0 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip__track { display: flex; align-items: center; width: max-content; animation: slide 72s linear infinite; }
.strip:hover .strip__track, .strip.is-paused .strip__track { animation-play-state: paused; }
.print { flex: none; margin-right: 14px; padding: 5px 5px 16px; border: 0; background: #fffdf8; box-shadow: 0 6px 16px rgba(60, 45, 20, .16), 0 1px 2px rgba(60, 45, 20, .1); cursor: pointer; transform: rotate(var(--tilt, 0deg)); transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s; animation: bob 5.6s ease-in-out infinite; animation-delay: var(--bd, 0s); outline-offset: 3px; }
.print img { display: block; height: clamp(74px, 11vh, 118px); aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 28%; background: var(--cream-2); }
.print:hover, .print:focus-visible, .print.is-touched { transform: rotate(0deg) translateY(-8px) scale(1.06); box-shadow: 0 16px 30px rgba(60, 45, 20, .24); animation-play-state: paused; z-index: 2; }
.print:focus-visible { outline: 1.5px solid var(--c-gold); }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

/* the planner's card: Poornima's studio, small, under the prints */
.planner-card { position: relative; z-index: 2; text-align: center; margin: 2px clamp(22px, 6vw, 48px) 0; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-rule); }
.planner-card__kicker { font-family: var(--serif); font-size: 8.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--c-muted); margin-left: .28em; }
.planner-card__logo { display: inline-block; margin-top: 5px; font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .2em; margin-left: .2em; color: var(--c-ink); text-decoration: none; transition: color .2s; }
.planner-card__logo span { color: var(--c-gold); }
.planner-card__logo:hover { color: var(--c-gold-deep); }
.planner-card__tag { font-family: var(--body); font-style: italic; font-size: 14px; color: var(--c-ink-2); margin-top: 1px; }
.planner-card__link { display: inline-block; margin-top: 5px; font-family: var(--serif); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--c-gold-deep); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color .2s; }
.planner-card__link:hover, .planner-card__link:focus-visible { border-bottom-color: var(--c-gold); }

/* the lightbox */
.lightbox { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: rgba(35, 32, 28, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: lbIn .3s ease both; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: clamp(48px, 8vh, 72px) 8px calc(18px + env(safe-area-inset-bottom)); max-height: 100vh; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border: 6px solid #fffdf8; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: lbPop .38s cubic-bezier(.22, .61, .36, 1) both; touch-action: pan-y; }
.lightbox.is-swapping .lightbox__img { animation: none; opacity: 0; transition: opacity .12s; }
.lightbox__caption { font-family: var(--serif); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(247, 242, 232, .78); display: flex; gap: 18px; }
.lightbox__count { color: rgba(247, 242, 232, .5); }
.lightbox__close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 253, 248, .12); color: #fffdf8; font: 400 30px/1 var(--body); cursor: pointer; z-index: 2; }
.lightbox__nav { width: 48px; height: 64px; margin: 0 6px; border: 0; background: transparent; color: rgba(255, 253, 248, .85); font: 400 44px/1 var(--body); cursor: pointer; }
.lightbox__nav:hover, .lightbox__close:hover { color: var(--gold-2); }
@media (max-width: 700px) { .lightbox { grid-template-columns: 1fr; } .lightbox__nav { display: none; } }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbPop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- the envelope (first beat of the cover) ----------
   The screen is the envelope: a full-bleed clip of a sealed envelope, poster frame until the
   guest taps the seal, then the flap opens and the stage dissolves into the cover.
   --vidw is the rendered width of the clip (cover-cropped on tall screens, contained on wide
   ones); the pulse ring is sized from it so it hugs the seal on any screen. */
.gate.is-sealed, .gate.is-locked { overflow: hidden; }
.env-stage { --vidw: max(100vw, 56.25vh); position: absolute; inset: 0; z-index: 10; background: #a9ae8a; cursor: pointer; outline: none; overflow: hidden; transform-origin: 50% 46%; transition: opacity 1s ease, transform 1.1s cubic-bezier(.22, .61, .36, 1); }
.env-stage.is-away { opacity: 0; transform: scale(1.06); pointer-events: none; }
.env-stage__poster, .env-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; background: transparent; }
.env-stage__freeze { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.env-stage__ring { position: absolute; left: 50%; top: 50%; width: calc(var(--vidw) * .37); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid rgba(184, 151, 90, .85); box-shadow: 0 0 0 0 rgba(184, 151, 90, .45); animation: envRing 2.4s ease-out .6s infinite; pointer-events: none; }
.env-stage__hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(5vh + env(safe-area-inset-bottom)); padding: 9px 16px 8px; border-radius: 999px; background: rgba(250, 246, 238, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; text-align: center; font-family: var(--serif); font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: var(--c-gold-deep); margin-left: .36em; animation: envPulse 2.8s ease-in-out 1s infinite; transition: opacity .3s; pointer-events: none; text-shadow: 0 1px 8px rgba(255, 250, 240, .9); }
.env-stage.is-open .env-stage__ring, .env-stage.is-open .env-stage__hint { opacity: 0; animation: none; }
/* the instant the seal is tapped, a gold bloom rises from it and hands over to the clip's own glow */
.env-stage__bloom { position: absolute; left: 50%; top: 50%; width: calc(var(--vidw) * 1.1); aspect-ratio: 1; transform: translate(-50%, -50%) scale(.4); border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(circle, rgba(255, 214, 140, .95) 0%, rgba(232, 180, 90, .55) 22%, rgba(214, 160, 70, .18) 45%, rgba(214, 160, 70, 0) 68%); }
.env-stage.is-open .env-stage__bloom { animation: envBloom 1.6s ease-out forwards; }
@keyframes envBloom { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@media (min-aspect-ratio: 3/4) {
  /* wide screens: show the whole envelope, standing in the middle, over a soft blur of itself */
  .env-stage { --vidw: min(100vw, 56.25vh); }
  .env-stage::before { content: ""; position: absolute; inset: -6%; background: #a9ae8a url("assets/envelope/envelope-poster-sjs4.webp") center / cover no-repeat; filter: blur(28px) saturate(.9); opacity: .9; }
  .env-stage__poster, .env-stage__video { object-fit: contain; }
  .env-stage__poster { filter: drop-shadow(0 30px 40px rgba(60, 45, 20, .25)); }
}
@keyframes envRing { 0% { box-shadow: 0 0 0 0 rgba(184, 151, 90, .5); opacity: 1; } 70% { box-shadow: 0 0 0 26px rgba(184, 151, 90, 0); opacity: .9; } 100% { box-shadow: 0 0 0 26px rgba(184, 151, 90, 0); opacity: 1; } }
@keyframes envPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (min-width: 900px) and (min-height: 540px) {
  .gate { overflow: hidden; }
  .cover { position: absolute; left: 0; top: 0; bottom: 0; height: auto; min-height: 0; width: 100%; transition: width 1.15s var(--reveal); }
  .gate.is-split .cover { width: 56%; }
  .cover__shade { background: linear-gradient(90deg, transparent 70%, rgba(27, 23, 20, .22) 100%), linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 30%, transparent 72%, rgba(0, 0, 0, .18) 100%); }
  .panel { position: absolute; top: 0; bottom: 0; right: 0; width: 44%; margin: 0; min-height: 0; overflow: auto; transform: translateX(100%); transition: transform 1.15s var(--reveal); }
  .panel::before { content: ""; position: absolute; inset: 18px; border: 1px solid var(--c-rule); pointer-events: none; }
  .gate.is-split .panel { transform: none; }
  .gate__content { padding: clamp(14px, 2.6vh, 36px) clamp(28px, 4.5vw, 72px) clamp(8px, 1.2vh, 14px); }
  .strip { padding: 10px 0 4px; margin: 0 18px; }
  .planner-card { margin: 0 34px 14px; padding-bottom: 14px; }
}
@media (min-width: 1500px) { .gate.is-split .cover { width: 58%; } .panel { width: 42%; } }
/* shorter desktop screens (laptops): tighten the column so the card fits without scrolling */
@media (min-width: 900px) and (max-height: 820px) {
  .gate__content { padding: 18px 28px 6px; }
  .gate .kicker { font-size: 11px; }
  .gate__parents { font-size: 15px; line-height: 1.3; margin-top: 6px; }
  .gate__invite { font-size: 9px; margin-top: 5px; }
  .gate .names { font-size: clamp(30px, 3.6vw, 42px); margin-top: 4px; }
  .gate .names .amp { margin: 0; }
  .rule { margin: 8px auto; }
  .gate__follow { font-size: 13px; margin-top: 3px; }
  .gate__lead { font-size: 15px; margin: 5px auto 8px; }
  .gate__form { gap: 8px; }
  .gate__form input { font-size: 20px; padding: 6px 8px; }
  .gate .btn--solid { padding: 11px 18px; }
  .strip { min-height: calc(66px + 43px); padding: 8px 0 2px; }
  .print { padding: 4px 4px 12px; margin-right: 10px; }
  .print img { height: 66px; }
  .planner-card { margin: 0 34px 8px; padding: 8px 12px 10px; }
  .planner-card__logo { margin-top: 3px; font-size: 14px; }
  .planner-card__tag { font-size: 13px; }
}


/* ---------- welcome ---------- */
main { position: relative; z-index: 1; }
.welcome { text-align: center; padding: clamp(56px, 10vw, 110px) 20px clamp(20px, 4vw, 40px); animation: rise .9s ease-out both; }
.welcome__name { font-family: var(--script); font-weight: 400; font-size: clamp(46px, 10vw, 84px); line-height: 1.1; color: var(--gold-2); margin: 8px 0 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.welcome__household { font-family: var(--serif); font-size: clamp(13px, 2.4vw, 16px); font-style: italic; color: var(--ink-2); margin: 10px auto 14px; max-width: 30ch; line-height: 1.5; }
.welcome__lead { font-family: var(--serif); font-size: clamp(13px, 2.2vw, 17px); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); margin-left: .24em; }
.welcome__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px auto 0; }
.chip { font-family: var(--serif); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--gold-2); padding: 10px 16px; border: 1px solid rgba(201, 164, 92, .6); background: rgba(18, 8, 24, .4); transition: background-color .2s, color .2s; }
.chip:hover { background: var(--gold); color: var(--plum-0); }
.welcome__switch { margin-top: 22px; font-size: 16px; color: var(--ink-2); }
.countdown { margin: 26px auto 0; max-width: 520px; }
.welcome__rsvpby { margin-top: 18px; font-family: var(--serif); font-size: clamp(11px, 1.8vw, 13px); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); margin-left: .24em; }
.welcome__rsvpby b { font-weight: 500; color: var(--gold-2); }
.countdown__label { font-family: var(--serif); font-size: clamp(11px, 1.8vw, 13px); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-3); margin-left: .28em; }
.countdown__label b { font-weight: 500; color: var(--gold-2); }
.countdown__cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.countdown__cell { display: grid; justify-items: center; gap: 4px; padding: 12px 4px 10px; border: 1px solid rgba(201, 164, 92, .5); background: rgba(18, 8, 24, .35); }
.countdown__cell b { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 5.6vw, 36px); line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(240, 180, 90, .25); }
.countdown__cell span { font-family: var(--serif); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-left: .22em; }

/* ---------- events ---------- */
.event { padding: clamp(22px, 4vw, 44px) clamp(14px, 3vw, 28px); animation: rise .9s ease-out both; animation-delay: calc(.12s * var(--i, 0) + .15s); scroll-margin-top: 16px; }
.event__frame { position: relative; width: min(100%, 720px); margin: 0 auto; padding: clamp(70px, 11vw, 110px) clamp(20px, 6vw, 64px) clamp(44px, 6vw, 64px); border: 1px solid var(--e-line); outline: 1px solid var(--e-line-2); outline-offset: 6px; background: var(--e-bg); color: var(--e-ink); text-align: center; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.event__arch { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--e-accent); opacity: .8; pointer-events: none; }
.event__apex { position: absolute; left: 50%; top: 10px; width: 30px; height: 30px; margin-left: -15px; color: var(--e-accent); pointer-events: none; }
.event__content { position: relative; z-index: 2; }
.event .kicker { color: var(--e-accent); }
.event .ornament { color: var(--e-accent); }
.event__families { font-family: var(--script); font-size: clamp(20px, 3.6vw, 27px); color: var(--e-muted); margin-top: 8px; }
.event__name { font-family: var(--serif); font-weight: 400; margin: 6px 0 0; font-size: clamp(46px, 11vw, 88px); line-height: 1; letter-spacing: .08em; margin-left: .08em; color: var(--e-accent); text-transform: uppercase; text-shadow: 0 0 24px var(--e-glow); }
.event__tagline { font-family: var(--script); font-size: clamp(24px, 4.4vw, 34px); line-height: 1.25; color: var(--e-ink); max-width: 26ch; margin: 4px auto 0; }
.event__invite { font-family: var(--serif); font-weight: 400; font-size: clamp(11.5px, 1.9vw, 14px); letter-spacing: .16em; text-transform: uppercase; color: var(--e-muted); line-height: 1.8; max-width: 40ch; margin: 10px auto 0; }
.event__names { font-family: var(--body); font-weight: 500; font-size: clamp(26px, 4.8vw, 36px); color: var(--e-ink); margin: clamp(12px, 2.6vw, 20px) 0 0; }
.event__names .amp { color: var(--e-accent); }
.event__day { font-family: var(--serif); font-size: clamp(14px, 2.4vw, 19px); letter-spacing: .34em; text-transform: uppercase; color: var(--e-muted); margin-left: .34em; }
.event__date { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 5.6vw, 44px); letter-spacing: .1em; text-transform: uppercase; color: var(--e-accent); line-height: 1.1; margin: 2px 0 6px; }
.event__city { font-family: var(--serif); font-size: clamp(12px, 2.2vw, 16px); letter-spacing: .3em; text-transform: uppercase; color: var(--e-muted); margin-left: .3em; }
.event__note { font-style: italic; color: var(--e-muted); font-size: clamp(16px, 2.6vw, 19px); max-width: 44ch; margin: 22px auto 24px; }
.event .btn { color: var(--e-accent); border-color: var(--e-accent); background: transparent; }
.event .btn:hover, .event .btn:focus-visible { background: var(--e-accent); color: var(--e-bg-solid); }
.event__deco { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; filter: blur(30px); opacity: .55; }
.event__deco--a { left: -16%; top: -12%; background: var(--e-deco-a); }
.event__deco--b { right: -16%; bottom: -14%; background: var(--e-deco-b); }
.event__lights { display: none; }

/* Mehendi: the plum night itself */
.event--plum { --e-bg: linear-gradient(180deg, rgba(36, 16, 44, .82), rgba(18, 8, 24, .9)); --e-bg-solid: #24102c; --e-ink: #f3e9d7; --e-accent: #e7c67f; --e-muted: #d9c9ad; --e-line: rgba(201, 164, 92, .6); --e-line-2: rgba(201, 164, 92, .25); --e-glow: rgba(240, 180, 90, .25); --e-deco-a: rgba(181, 50, 110, .45); --e-deco-b: rgba(240, 160, 70, .35); }
/* Sangeet: the flower garden at night, string lights overhead */
.event--garden { --e-bg: radial-gradient(120% 90% at 50% 0%, #1e4a34 0%, #0f2a1e 55%, #0a1c14 100%); --e-bg-solid: #0f2a1e; --e-ink: #f7e8cd; --e-accent: #f0c979; --e-muted: #d8c6a0; --e-line: rgba(240, 201, 121, .6); --e-line-2: rgba(240, 201, 121, .25); --e-glow: rgba(240, 201, 121, .3); --e-deco-a: rgba(200, 56, 95, .7); --e-deco-b: rgba(233, 84, 122, .6); }
.event--garden .event__lights { display: block; position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; background: radial-gradient(3px 3px at 8% 40px, #ffe6a3 40%, transparent 41%), radial-gradient(3px 3px at 20% 62px, #ffd27a 40%, transparent 41%), radial-gradient(3px 3px at 33% 44px, #ffe6a3 40%, transparent 41%), radial-gradient(3px 3px at 46% 66px, #ffd27a 40%, transparent 41%), radial-gradient(3px 3px at 58% 46px, #ffe6a3 40%, transparent 41%), radial-gradient(3px 3px at 70% 64px, #ffd27a 40%, transparent 41%), radial-gradient(3px 3px at 82% 42px, #ffe6a3 40%, transparent 41%), radial-gradient(3px 3px at 93% 60px, #ffd27a 40%, transparent 41%); filter: drop-shadow(0 0 6px rgba(255, 214, 140, .9)); animation: twinkle 2.8s ease-in-out infinite; }
/* Haldi: sunshine, turmeric and lemons */
.event--sun { --e-bg: linear-gradient(180deg, #fcf4df 0%, #f6e5b6 100%); --e-bg-solid: #f9edc8; --e-ink: #5a4113; --e-accent: #b8860b; --e-muted: #7f6630; --e-line: rgba(184, 134, 11, .55); --e-line-2: rgba(184, 134, 11, .22); --e-glow: rgba(255, 210, 90, .35); --e-deco-a: rgba(255, 200, 60, .75); --e-deco-b: rgba(126, 168, 74, .6); }
.event--sun .event__deco { opacity: .7; }
/* Reception: neon night, after the Canva card: violet arch, pink neon script, city lights on near-black */
.event--night { --e-bg: radial-gradient(120% 80% at 50% 0%, #1a1038 0%, #0b0720 55%, #04020c 100%); --e-bg-solid: #0b0720; --e-ink: #f2ecff; --e-accent: #b98cff; --e-muted: #bfb0e6; --e-line: rgba(185, 140, 255, .7); --e-line-2: rgba(185, 140, 255, .28); --e-glow: rgba(185, 140, 255, .45); --e-deco-a: rgba(150, 70, 255, .45); --e-deco-b: rgba(255, 80, 200, .35); }
.event--night .event__arch { opacity: 1; filter: drop-shadow(0 0 5px rgba(185, 140, 255, .9)) drop-shadow(0 0 14px rgba(150, 70, 255, .5)); }
.event--night .event__apex { filter: drop-shadow(0 0 6px rgba(185, 140, 255, .9)); }
.event--night .event__name { color: #f6f1ff; text-shadow: 0 0 18px rgba(185, 140, 255, .55), 0 0 40px rgba(150, 70, 255, .35); }
.event--night .event__names { font-family: var(--script); font-weight: 400; font-size: clamp(34px, 6.5vw, 50px); color: #ff7ee0; text-shadow: 0 0 8px rgba(255, 126, 224, .9), 0 0 24px rgba(255, 60, 200, .6), 0 0 48px rgba(255, 60, 200, .35); }
.event--night .event__names .amp { color: #ff7ee0; }
.event--night .event__tagline { color: #e9e0ff; }
.event--night .event__date { color: #d9c4ff; text-shadow: 0 0 16px rgba(185, 140, 255, .6); }
.event--night .event__lights { display: block; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(200, 170, 255, .16) 22px 23px, transparent 23px 41px), radial-gradient(3px 3px at 14% 40px, #fff 40%, transparent 41%), radial-gradient(2.5px 2.5px at 27% 78px, #e6d4ff 40%, transparent 41%), radial-gradient(3px 3px at 41% 54px, #fff 40%, transparent 41%), radial-gradient(2.5px 2.5px at 55% 92px, #d9c4ff 40%, transparent 41%), radial-gradient(3px 3px at 68% 46px, #fff 40%, transparent 41%), radial-gradient(2.5px 2.5px at 81% 82px, #e6d4ff 40%, transparent 41%), radial-gradient(3px 3px at 92% 58px, #fff 40%, transparent 41%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); filter: drop-shadow(0 0 6px rgba(200, 170, 255, .9)); animation: twinkle 3.4s ease-in-out infinite; }
.event--night .rsvp__choice.is-on, .event--night .rsvp__choice:hover { color: #0b0720; }
/* Shaadi: the palace in peach and gold */
.event--royal { --e-bg: linear-gradient(180deg, #f8ead8 0%, #efd6b6 100%); --e-bg-solid: #f4e1c8; --e-ink: #6e1c28; --e-accent: #b58a3a; --e-muted: #8e5a3e; --e-line: rgba(181, 138, 58, .65); --e-line-2: rgba(181, 138, 58, .28); --e-glow: rgba(181, 138, 58, .3); --e-deco-a: rgba(160, 30, 45, .45); --e-deco-b: rgba(230, 170, 90, .7); }
.event--royal .event__name { font-weight: 500; color: #7a1f2b; text-shadow: none; }
.event--royal .event__names { font-family: var(--script); font-weight: 400; font-size: clamp(34px, 6.5vw, 50px); color: #8b2634; }

/* ---------- RSVP on each event card ---------- */
.rsvp { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--e-line-2); }
.rsvp__q { font-family: var(--script); font-size: clamp(24px, 4.2vw, 32px); color: var(--e-ink); }
.rsvp__by { font-family: var(--serif); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--e-muted); margin-top: 6px; margin-left: .2em; }
.rsvp__by b { font-weight: 500; color: var(--e-accent); }
.rsvp__choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.rsvp__choice { font-family: var(--serif); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--e-accent); background: transparent; border: 1px solid var(--e-accent); padding: 12px 18px; cursor: pointer; transition: background-color .2s, color .2s; }
.rsvp__choice:hover, .rsvp__choice:focus-visible { background: var(--e-accent); color: var(--e-bg-solid); }
.rsvp__choice.is-on { background: var(--e-accent); color: var(--e-bg-solid); }
.rsvp__choice[disabled] { opacity: .7; cursor: wait; }
.rsvp__form { display: grid; gap: 14px; max-width: 360px; margin: 18px auto 0; }
.rsvp__field { display: grid; gap: 6px; text-align: left; font-family: var(--serif); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--e-muted); }
.rsvp__field select, .rsvp__field input { font-family: var(--body); font-size: 19px; color: var(--e-ink); background: transparent; border: 0; border-bottom: 1px solid var(--e-accent); border-radius: 0; padding: 8px 4px; outline: none; }
.rsvp__field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.rsvp__field select option { color: #23201c; background: #fffdf8; }
.rsvp__field input:focus, .rsvp__field select:focus { border-bottom-color: var(--e-ink); }
.rsvp__send { justify-self: center; }
.rsvp__send[disabled] { opacity: .7; cursor: wait; }
.rsvp__done { margin-top: 16px; font-style: italic; font-size: clamp(17px, 2.6vw, 20px); color: var(--e-ink); }
.rsvp__done b { font-weight: 600; }
.rsvp__line { display: block; }
.rsvp__party { display: grid; justify-items: center; gap: 10px; margin: 18px auto 0; max-width: 300px; }
.rsvp__count { display: grid; justify-items: center; gap: 10px; }
.rsvp__party-label { font-family: var(--serif); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--e-muted); margin-left: .18em; }
.rsvp__stepper { display: flex; align-items: center; justify-content: center; gap: 22px; }
.rsvp__step { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--e-accent); background: transparent; color: var(--e-accent); font: 400 24px/1 var(--body); cursor: pointer; transition: background-color .2s, color .2s; }
.rsvp__step:hover, .rsvp__step:focus-visible { background: var(--e-accent); color: var(--e-bg-solid); }
.rsvp__n { font-family: var(--body); font-size: 30px; font-weight: 600; min-width: 1.6ch; text-align: center; color: var(--e-ink); line-height: 1; }
.rsvp__party-hint { font-style: italic; font-size: 15px; color: var(--e-muted); margin-top: -4px; }
/* stands in for the guest counter on a ceremony that seats fewer than the others, so a
   couple's invitation cannot be read as covering both of them everywhere */
.rsvp__solo { width: min(100%, 300px); margin: 2px auto 0; font-family: var(--body); font-size: 15px;
  line-height: 1.45; color: var(--e-ink); text-align: center; }
.rsvp__note { display: grid; gap: 8px; width: min(100%, 272px); text-align: center; font-family: var(--serif); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--e-muted); margin-top: 6px; }
.rsvp__note textarea { width: 100%; min-height: 64px; resize: none; text-align: left; font-family: var(--body); font-size: 17px; line-height: 1.4; color: var(--e-ink); background: rgba(255, 255, 255, .22); border: 1px solid var(--e-line); border-radius: 0; padding: 9px 12px; outline: none; letter-spacing: 0; text-transform: none; display: block; }
.rsvp__note textarea:focus { border-color: var(--e-accent); }
.rsvp__note textarea::placeholder { font-style: italic; color: var(--e-muted); opacity: .8; }
.event .rsvp__confirm { margin-top: 6px; min-width: 220px; background: var(--e-accent); color: var(--e-bg-solid); }
.event .rsvp__confirm:hover, .event .rsvp__confirm:focus-visible { background: var(--e-ink); border-color: var(--e-ink); color: var(--e-bg-solid); }
.rsvp__confirm[disabled] { opacity: .7; cursor: wait; }
/* the confirmed reply: a mark you can read at a glance, then the warm line, then the facts */
.rsvp__mark { display: block; width: 38px; height: 38px; margin: 2px auto 14px; border-radius: 50%;
  border: 1px solid var(--e-accent); color: var(--e-accent); font-style: normal; font-size: 19px;
  line-height: 36px; text-align: center; animation: rsvpMark .5s cubic-bezier(.2,.8,.3,1.2) both; }
.rsvp__mark.is-regret { opacity: .55; font-size: 22px; }
@keyframes rsvpMark { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.rsvp__line--note { margin-top: 10px; opacity: .85; }
.rsvp__facts { display: block; margin-top: 14px; font-style: normal; font-family: var(--serif);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--e-accent); }
.rsvp__saved { display: block; margin-top: 6px; font-style: normal; font-family: var(--serif);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .5; }
@media (prefers-reduced-motion: reduce) { .rsvp__mark { animation: none; } }
.rsvp__done .link { display: inline-block; margin-top: 8px; font-style: normal; font-family: var(--serif); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--e-accent); border-bottom-color: var(--e-line); }
.rsvp__error { margin-top: 12px; font-style: italic; color: #b04a4a; }
.event--sun .rsvp__error, .event--royal .rsvp__error { color: #8f2f2f; }

/* ---------- the couple's crest ---------- */
.crest { display: block; margin: 0 auto 18px; width: clamp(96px, 16vw, 140px); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .55)); }
.foot .crest { width: 84px; margin-bottom: 6px; opacity: .9; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 60px 20px calc(70px + env(safe-area-inset-bottom)); display: grid; gap: 8px; background: linear-gradient(180deg, transparent, rgba(7, 13, 16, .6)); }
.foot__names { font-family: var(--script); font-size: clamp(28px, 5vw, 38px); color: var(--gold-2); text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.foot__planner { font-size: 16px; color: var(--ink-2); }
.foot__planner a { color: var(--gold-2); text-decoration: none; border-bottom: 1px solid rgba(201, 164, 92, .5); }

/* ---------- motion ---------- */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-5%, -2%); } 80% { transform: translate(4%, 4%); } 100% { transform: translate(0, 0); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes glow { 0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes breathe { 0% { transform: translate3d(var(--tx, 0px), var(--py, 0px), 0) scale(1); filter: brightness(1); } 100% { transform: translate3d(var(--tx, 0px), calc(var(--py, 0px) - 1%), 0) scale(1.045); filter: brightness(1.06); } }
@keyframes hazeShift { 0% { opacity: .75; transform: translateX(-1.5%); } 100% { opacity: 1; transform: translateX(1.5%); } }
@keyframes flicker { 0%, 100% { opacity: .75; transform: scale(1); } 30% { opacity: 1; transform: scale(1.08); } 60% { opacity: .82; transform: scale(.96); } }
@keyframes twinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift {
  0% { transform: translate3d(var(--wx, 0px), var(--wy, 0px), 0) rotate(var(--wr, 0deg)); opacity: 0; }
  8% { opacity: .85; }
  50% { transform: translate3d(calc(var(--sway, 30px) * -1 + var(--wx, 0px)), calc(55vh + var(--wy, 0px)), 0) rotate(calc(160deg + var(--wr, 0deg))); }
  92% { opacity: .7; }
  100% { transform: translate3d(calc(var(--sway, 30px) + var(--wx, 0px)), calc(112vh + var(--wy, 0px)), 0) rotate(calc(340deg + var(--wr, 0deg))); opacity: 0; }
}

@media (max-width: 560px) {
  .ornament { width: 160px; }
  .event__frame { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky, .haze, .candle, .petal, .event__lights, .welcome, .event, .cover__main img, .cover__grain, .strip__track, .print, .lightbox, .lightbox__img { animation: none; }
  .cover, .panel, .cover__main, .cover__shot, .rise { transition: none; }
  .env-stage { display: none; }
  .petal { display: none; }
}

/* ---- the standing RSVP button ------------------------------------------------------
   Fixed, so replying never depends on reaching the end of the page, and carrying the count
   because a guest invited to five celebrations had nothing telling them there were five. */
.rsvp-fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60; display: grid; gap: 2px; justify-items: center; padding: 15px 34px; border: 0; cursor: pointer;
  border-radius: 999px; background: var(--c-gold, #b8963f); color: #fff;
  font-family: var(--serif); letter-spacing: .1em;
  text-transform: uppercase; transition: background-color .2s, opacity .2s; }
.rsvp-fab:hover, .rsvp-fab:focus-visible { background: #1d1a17; }
/* It breathes while anything is still to answer, and stops once the reply is complete:
   a finished control has no reason to keep asking for attention. */
@keyframes rsvpGlow {
  /* the glow moves, the button does not: a target that shifts under the thumb is harder to
     hit, and plenty of these guests are not young */
  0%, 100% { box-shadow: 0 6px 22px rgba(0, 0, 0, .40), 0 0 0 1px rgba(255, 255, 255, .18),
                         0 0 12px 2px rgba(231, 198, 127, .30); }
  50%      { box-shadow: 0 12px 34px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 255, 255, .34),
                         0 0 44px 15px rgba(231, 198, 127, .66); }
}
.rsvp-fab:not(.is-done) { animation: rsvpGlow 2.6s ease-in-out infinite; }
/* the glow is an invitation to press it, not information: drop it if motion is unwelcome */
@media (prefers-reduced-motion: reduce) {
  .rsvp-fab:not(.is-done) { animation: none;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .40), 0 0 0 2px rgba(255, 255, 255, .3),
                0 0 30px 10px rgba(231, 198, 127, .5); }
}
.rsvp-fab.is-done { background: #f6f1e9; color: #23201c; animation: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .18); }
.rsvp-fab.is-done:hover, .rsvp-fab.is-done:focus-visible { background: #fff; }
/* one line, always: wrapped onto two it became a tall blob rather than a button */
.rsvp-fab__label { font-size: 15.5px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.rsvp-fab__count { font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: .02em;
  text-transform: none; opacity: .88; white-space: nowrap; }
.rsvp-fab__count:empty { display: none; }
/* under the celebration chips, with a nudge downward: the chips already name them, this
   says there is more page below, which is the part a guest cannot see */
.welcome__scroll { margin: 14px auto 0; max-width: 32ch; font-family: var(--body);
  font-style: italic; font-size: clamp(15px, 1.7vw, 17px); color: var(--ink-2, #d9c9ad); }
.welcome__scroll::after { content: ""; display: block; width: 1px; height: 22px; margin: 10px auto 0;
  background: linear-gradient(var(--gold, #c9a45c), transparent); animation: scrollHint 2.2s ease-in-out infinite; }
@keyframes scrollHint { 0%, 100% { opacity: .35; transform: translateY(-3px); }
                        50%      { opacity: 1;   transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .welcome__scroll::after { animation: none; opacity: .7; } }

/* "Click to change your reply" is a long label, and it ran off a 320px screen. It shrinks
   to fit rather than wrapping, so the pill stays a pill, and never exceeds the screen. */
.rsvp-fab { max-width: calc(100vw - 24px); }
@media (max-width: 400px) {
  .rsvp-fab { padding: 13px 18px; }
  .rsvp-fab__label { font-size: 12.5px; letter-spacing: .06em; }
  .rsvp-fab__count { font-size: 12px; }
}
@media (max-width: 340px) {
  .rsvp-fab { padding: 12px 14px; }
  .rsvp-fab__label { font-size: 11.5px; letter-spacing: .04em; }
  .rsvp-fab__count { font-size: 11px; }
}
body.is-sheet-open { overflow: hidden; }
body.is-sheet-open .rsvp-fab { opacity: 0; pointer-events: none; }

/* ---- the reply itself, in one place ------------------------------------------------ */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(20, 16, 12, .55); opacity: 0;
  transition: opacity .25s; backdrop-filter: blur(2px); }
.sheet.is-open .sheet__scrim { opacity: 1; }
/* A column: a fixed head, a scrolling middle, and the button pinned under it. Scrolling
   the whole panel put Confirm below the fold for anyone invited to several celebrations. */
.sheet__panel { position: relative; display: flex; flex-direction: column;
  width: min(560px, 100%); max-height: min(92vh, 900px); overflow: hidden;
  background: var(--c-bg, #f4efe7); color: var(--c-ink, #23201c);
  border-radius: 18px 18px 0 0; padding: 22px clamp(18px, 5vw, 34px) max(20px, env(safe-area-inset-bottom));
  text-align: center; transform: translateY(14px); opacity: 0; transition: transform .25s, opacity .25s; }
.sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet__actions { flex: 0 0 auto; padding-top: 14px; }
/* a hairline so the pinned button reads as sitting over the list, not floating in it */
.sheet__actions::before { content: ""; display: block; height: 1px; margin: 0 -4px 14px;
  background: var(--c-line, rgba(0, 0, 0, .12)); }
.sheet.is-open .sheet__panel { transform: none; opacity: 1; }
@media (min-width: 720px) {
  .sheet { align-items: center; }
  .sheet__panel { border-radius: 4px; }
}
.sheet__close { position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; border: 0;
  background: transparent; color: var(--c-muted, #7a7168); font-size: 28px; line-height: 1; cursor: pointer; }
.sheet__close:hover { color: var(--c-ink, #23201c); }
.sheet__title { font-family: var(--script, var(--serif)); font-size: clamp(24px, 4.6vw, 33px);
  font-weight: 400; margin: 2px 0 5px; }
.sheet__lead { font-style: italic; color: var(--c-ink-2, #4a443c); margin: 0 auto 14px; max-width: 40ch;
  font-size: clamp(14.5px, 1.6vw, 17px); }

.sheet__rows { display: grid; gap: 2px; text-align: left; margin-bottom: 16px; }
.sheet__row { display: grid; gap: 8px; padding: 13px 2px; border-top: 1px solid var(--c-line, rgba(0,0,0,.12)); }
.sheet__row:last-child { border-bottom: 1px solid var(--c-line, rgba(0,0,0,.12)); }
.sheet__pick { display: flex; align-items: center; gap: 13px; cursor: pointer; }
/* a real checkbox, sized for a thumb: this is the control the whole reply turns on */
.sheet__tick { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 26px; height: 26px;
  margin: 0; border: 1px solid var(--c-gold, #b8963f); border-radius: 4px; background: transparent;
  cursor: pointer; position: relative; transition: background-color .15s; }
.sheet__tick:checked { background: var(--c-gold, #b8963f); }
.sheet__tick:checked::after { content: ""; position: absolute; left: 8px; top: 3px; width: 7px; height: 14px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sheet__tick:focus-visible { outline: 2px solid var(--c-ink, #23201c); outline-offset: 2px; }
.sheet__where { display: grid; gap: 1px; font-size: 17px; }
.sheet__when { font-family: var(--serif); font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--c-muted, #7a7168); }
.sheet__count { display: flex; align-items: center; gap: 14px; padding-left: 39px; flex-wrap: wrap; }
.sheet__count .rsvp__step { width: 48px; height: 48px; font-size: 26px; font-weight: 400;
  border-width: 1.5px; }
.sheet__n { font-family: var(--body); font-size: 27px; font-weight: 600; min-width: 1.6ch;
  text-align: center; }
.sheet__cap, .sheet__solo { font-style: italic; font-size: 14px; color: var(--c-muted, #7a7168); }
.sheet__solo { padding-left: 39px; }
/* shown only once the celebration is ticked: the counter alone did not say it wanted a number */
.sheet__ask { display: block; padding-left: 39px; margin-bottom: 2px; font-family: var(--serif);
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--c-gold-deep, #8f7340); }

/* the thank-you, and the note asked for once the reply is safely in */
.sheet__after { text-align: center; }
.sheet__mark { width: 46px; height: 46px; margin: 4px auto 14px; border-radius: 50%;
  border: 1px solid var(--c-gold, #b8975a); color: var(--c-gold-deep, #8f7340);
  font-size: 22px; line-height: 44px; }
.sheet__thanks { margin: 0 auto 18px; max-width: 34ch; font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.5; }
.sheet__after .rsvp__note { margin: 0 auto 16px; }
/* The shared textarea styling is written for the event cards and leans on their --e-*
   colours, which do not exist inside this cream panel: the border and the placeholder fell
   back to browser defaults, so it read as a flat patch rather than something to type in. */
.sheet__after .rsvp__note span { color: var(--c-gold-deep, #8f7340); }
.sheet__after .rsvp__note textarea { min-height: 104px; background: #fff;
  border: 1.5px solid var(--c-rule, #dfd6c4); border-radius: 8px; padding: 14px 16px;
  color: var(--c-ink, #23201c); font-size: 17px; line-height: 1.5;
  box-shadow: inset 0 2px 5px rgba(60, 48, 30, .07);
  transition: border-color .18s, box-shadow .18s; }
.sheet__after .rsvp__note textarea::placeholder { color: #9b948a; font-style: italic; opacity: 1; }
.sheet__after .rsvp__note textarea:focus { border-color: var(--c-gold, #b8975a);
  box-shadow: inset 0 2px 5px rgba(60, 48, 30, .05), 0 0 0 3px rgba(184, 151, 90, .2); }
.sheet__after .btn { width: 100%; }
.sheet__skip { display: block; margin: 12px auto 0; font-size: 15px; }
/* said after the note has gone, so closing the panel is the guest's decision rather than
   something that happens to them before they know whether it worked */
.sheet__sent { margin: 0 auto 16px; max-width: 32ch; font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.5; color: var(--c-gold-deep, #8f7340); font-style: italic; }

.sheet .rsvp__note { width: 100%; margin: 0 0 14px; }
.sheet__error { margin: 0 0 12px; font-style: italic; color: #9b2c2c; font-size: 16px; }
.sheet__confirm { width: 100%; }
.sheet__foot { margin: 11px 0 0; font-size: 13px; line-height: 1.45; color: var(--c-muted, #7a7168); }

/* a short phone in landscape, or a small screen: give the list what room there is */
@media (max-height: 620px) {
  .sheet__title { font-size: 23px; }
  .sheet__lead { margin-bottom: 10px; font-size: 14px; }
  .sheet__foot { display: none; }
  .sheet__row { padding: 10px 2px; }
}

/* what a card shows once the reply has been given */
.rsvp__state { margin: 2px auto 14px; max-width: 34ch; font-family: var(--body); font-size: 16px;
  line-height: 1.5; color: var(--e-ink, inherit); }

/* ==========================================================================
   The look (Nov 2026, the couple's call):
   - the cover (the page after the envelope) is Sanya & Shan's clean cream cover, untouched;
   - the invitation page behind the cards is purple satin (assets/satin-purple-v2.jpg: a
     Higgsfield satin photo stacked over its own mirror image so it repeats down the page
     without a seam), scrolling with the page;
   - the cards are sage card stock with gold-leaf lettering (the block below);
   - one script throughout: Pinyon Script.
   ========================================================================== */
:root { --sjs-script: "Pinyon Script", "Great Vibes", cursive; --sjs-body: "Jost", -apple-system, "Segoe UI", sans-serif;
  --sjs-display: "Cormorant Garamond", Georgia, serif; }

/* the invitation page: purple satin, scrolling with everything else */
body.is-in { background: #4b2d63 url("assets/satin-purple-v2.jpg") 0 0 / 100% auto repeat-y; }
.scene { background: transparent; }
.sky, .haze, .candles { display: none; }
.foot { background: linear-gradient(180deg, transparent, rgba(30, 14, 42, .45)); }

/* the script */
.gate .names, .gate .names .amp, .welcome__name, .foot__names,
.event--sage :is(.event__name, .event__names, .event__tagline, .event__families, .rsvp__q) {
  font-family: var(--sjs-script); font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none; }
.gate .names { font-size: clamp(44px, 5.2vw, 68px); line-height: 1.08; }
.gate .names .amp { font-size: .9em; line-height: 1.05; }
.welcome__name { font-size: clamp(56px, 11vw, 96px); line-height: 1.15; padding: 0 .2em .1em; }
.foot__names { font-size: clamp(36px, 5.6vw, 50px); }
/* script swashes reach outside the line box and the gold leaf only fills the box: give it room */
.event--sage :is(.event__name, .event__names, .event__tagline, .event__families, .rsvp__q) {
  padding: .14em .3em .34em; margin-left: -.3em; margin-right: -.3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.event--sage .event__name { font-size: clamp(56px, 12.5vw, 100px); line-height: 1.1; }
.event--sage .event__names { font-size: clamp(34px, 6vw, 48px); }
.event--sage .event__tagline { font-size: clamp(26px, 4.6vw, 36px); line-height: 1.25; }
.event--sage .event__families { font-size: clamp(22px, 3.8vw, 28px); }
.event--sage .rsvp__q { font-size: clamp(28px, 4.8vw, 36px); }
/* the rest of the card's type */
.event--sage :is(.kicker, .event__invite, .event__day, .event__city, .rsvp__by) { font-family: var(--sjs-body); font-weight: 400; letter-spacing: .3em; }
.event--sage :is(.event__note, .rsvp__state) { font-family: var(--sjs-body); font-weight: 400; font-style: normal; }
.event--sage .event__date { font-family: var(--sjs-display); font-weight: 400; letter-spacing: .06em; font-variant-numeric: lining-nums; }
.event--sage .btn, .event--sage .rsvp__choice, .event--sage .rsvp__step { font-family: var(--sjs-body); font-weight: 400; }
.event--sage .event__deco, .event--sage .event__lights { display: none; }

/* the floating RSVP button in gold */
.rsvp-fab:not(.is-done) { background: linear-gradient(180deg, #ecd39a, #c9a55f); color: #2c2236; border-color: #d9b874; }
.rsvp-fab:not(.is-done):hover, .rsvp-fab:not(.is-done):focus-visible { background: #f0d79a; }

/* ==========================================================================
   The invitation cards as real cards (Nov 2026): sage card stock with the same paper grain as
   the page (assets/sage-card.jpg is Sidony & Jourdan's envelope-paper grain tinted sage, drawn
   at 100px like the page), lettering in gold leaf (assets/gold-leaf.jpg) in the same typefaces,
   a printed gold rule inside the edge, light falling across the face, and the shadows a card
   casts on a table: a tight contact shadow and a wide soft one. Each sits a little askew, as if
   set down by hand.
   ========================================================================== */
.event--sage { --e-accent: #E2C68A; --e-ink: #F3E6C4; --e-muted: #E6D6AA; --e-bg-solid: #5A6548;
  --e-line: rgba(226, 198, 138, .55); --e-line-2: rgba(226, 198, 138, .28); }
.event--sage .event__frame {
  background: linear-gradient(128deg, rgba(255, 248, 225, .13) 0%, rgba(255, 248, 225, .03) 38%, transparent 55%, rgba(10, 14, 6, .14) 100%),
              #5A6548 url("assets/sage-card.jpg") 0 0 / 100px 100px repeat;
  border: 0; outline: 0; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .22),
              0 1px 1px rgba(70, 48, 24, .30), 0 4px 8px rgba(70, 48, 24, .16),
              0 22px 40px -10px rgba(70, 48, 24, .38), 0 50px 80px -30px rgba(70, 48, 24, .30);
  transform: rotate(var(--tilt, -.6deg)); }
.event--sage:nth-of-type(even) .event__frame { --tilt: .55deg; }
.event--sage .event__frame::after { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(226, 198, 138, .55);
  pointer-events: none; z-index: 1; }
.event--sage .event__arch, .event--sage .event__apex, .event--sage .ornament { color: #E2C68A; }

/* gold leaf lettering on the card; the shadow is a filter so it sits behind the leaf */
.event--sage :is(.kicker, .event__families, .event__name, .event__tagline, .event__invite, .event__names, .event__names .amp,
  .event__day, .event__date, .event__city, .event__note, .rsvp__q, .rsvp__by, .rsvp__by b, .rsvp__state) {
  background: url("assets/gold-leaf.jpg") 0 0 / 220px 220px repeat; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; text-shadow: none;
  filter: drop-shadow(0 1px 1px rgba(18, 22, 12, .5)) drop-shadow(0 0 7px rgba(255, 226, 160, .2)); }
.event--sage .event__note, .event--sage .rsvp__state { font-weight: 400; }

/* buttons printed in gold on the card */
.event--sage .btn, .event--sage .rsvp__choice, .event--sage .rsvp__step { color: #EBD39E; border-color: rgba(226, 198, 138, .85); background: transparent; }
.event--sage .btn:hover, .event--sage .btn:focus-visible, .event--sage .rsvp__choice:hover, .event--sage .rsvp__choice.is-on,
.event--sage .rsvp__confirm { background: linear-gradient(180deg, #ecd39a, #c9a55f); border-color: #d9b874; color: #2c3522; }
.event--sage .rsvp__note span, .event--sage .rsvp__note textarea { color: #F3E6C4; }
.event--sage .rsvp__note textarea { background: rgba(20, 26, 14, .18); border-color: rgba(226, 198, 138, .45); }
@media (prefers-reduced-motion: reduce) { .event--sage .event__frame { transform: none; } }


/* ==========================================================================
   The cards come alive (Nov 2026, sparkle.js marks each card .is-shown once it is on screen).
   The cards stay still; the gold moves:
   1. the arch draws itself in (its strokes inherit the dash from the <svg>, so one shared
      symbol still draws per card; the arch strokes are non-scaling, so the dash is in screen px)
   2. a glint sweeps across the event name and the couple's names: a white band laid over the
      gold leaf, both clipped to the letters, slid across once on arrival and again every 7s
   3. tiny four-point gold sparkles twinkle around the top of the arch
   4. a slow sheen of light drifts across the purple satin behind everything
   ========================================================================== */
/* 1. the arch */
.has-sparkle .event--sage .event__arch { stroke-dasharray: var(--arch-len, 4000px); stroke-dashoffset: var(--arch-len, 4000px); }
.has-sparkle .event--sage.is-shown .event__arch { animation: archDraw 3.4s cubic-bezier(.4, .1, .3, 1) .2s forwards; }
@keyframes archDraw { to { stroke-dashoffset: 0; } }
.has-sparkle .event--sage .event__apex { opacity: 0; transform: scale(.4); transition: opacity .6s ease 1.9s, transform .9s cubic-bezier(.3, 1.6, .5, 1) 1.9s; }
.has-sparkle .event--sage.is-shown .event__apex { opacity: 1; transform: none; }

/* 2. the glint */
.has-sparkle .event--sage :is(.event__name, .event__names) {
  background-image: linear-gradient(105deg, transparent 42%, rgba(255, 252, 235, .95) 50%, transparent 58%), url("assets/gold-leaf.jpg");
  background-size: 300% 100%, 220px 220px; background-repeat: no-repeat, repeat; background-position: 130% 0, 0 0; }
.has-sparkle .event--sage.is-shown .event__name { animation: glint 7s ease-in-out 1.2s infinite; }
.has-sparkle .event--sage.is-shown .event__names { animation: glint 7s ease-in-out 1.9s infinite; }
@keyframes glint { 0% { background-position: 130% 0, 0 0; } 22%, 100% { background-position: -30% 0, 0 0; } }

/* 3. the sparkles */
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 3; filter: drop-shadow(0 0 3px rgba(255, 228, 160, .95)) drop-shadow(0 0 8px rgba(255, 210, 120, .55)); }
.sparkles i { position: absolute; width: var(--s, 10px); height: var(--s, 10px); margin: calc(var(--s, 10px) / -2) 0 0 calc(var(--s, 10px) / -2);
  background: radial-gradient(circle, #fffdf2 0 25%, #f3d998 55%, #d9b56e 100%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  opacity: 0; transform: scale(.2) rotate(0deg); }
.has-sparkle .event--sage.is-shown .sparkles i { animation: twinkle 4s ease-in-out var(--d, 0s) infinite; }
@keyframes twinkle { 0%, 60%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
                     72% { opacity: 1; transform: scale(1) rotate(45deg); }
                     84% { opacity: .2; transform: scale(.5) rotate(90deg); } }

/* 4. the satin sheen, on the page so it scrolls with the satin. A plain translucent band that
   slides by transform only (no blending, no repainting), so it costs a phone almost nothing. */
main { isolation: isolate; overflow-x: clip; }
main::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100%; width: 300%; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 230, 255, .07) 45%, rgba(255, 240, 255, .12) 50%, rgba(255, 230, 255, .07) 55%, transparent 62%);
  will-change: transform; animation: satinSheen 16s ease-in-out infinite alternate; }
@keyframes satinSheen { from { transform: translate3d(-22%, 0, 0); } to { transform: translate3d(22%, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .event--sage .event__arch { stroke-dasharray: none; }
  .sparkles { display: none; }
  main::before { animation: none; }
}
