/* =========================================================================
   Maharshi & Aditi — Wedding Invitation
   Design tokens · base · components · sections · responsive
   ========================================================================= */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ivory: #FAF6EE;
  --champagne: #F3EADC;
  --parchment: #FFFDF9;
  --sand: #EDE1CC;
  --gold: #B88E43;
  --gold-lt: #DFC285;
  --gold-dk: #8A6423;
  --espresso: #2E2118;
  --taupe: #6E5B4B;
  --blush: #D9A7A0;
  --blush-dk: #B76E68;
  --line: rgba(184, 142, 67, 0.28);
  --line-soft: rgba(184, 142, 67, 0.16);
  --shadow-sm: 0 1px 2px rgba(46, 33, 24, .05), 0 4px 14px rgba(46, 33, 24, .05);
  --shadow-md: 0 2px 6px rgba(46, 33, 24, .05), 0 18px 48px -12px rgba(46, 33, 24, .16);
  --shadow-lg: 0 30px 80px -20px rgba(46, 33, 24, .35);
  --foil: linear-gradient(135deg, #E9D29C 0%, #C59B51 38%, #A57C35 62%, #E2C584 100%);

  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--espresso);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; height: 100dvh; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* paper grain overlay */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .3  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- typography primitives ---------- */
.eyebrow {
  font-family: var(--caps); font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.title {
  font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: .005em;
  font-size: clamp(34px, 4.8vw, 54px); color: var(--espresso);
}
.title em { font-style: italic; color: var(--gold-dk); font-weight: 600; }
.lede { color: var(--taupe); font-size: 15px; max-width: 46ch; margin-inline: auto; }
.section-head { text-align: center; display: grid; gap: 14px; justify-items: center; margin-bottom: clamp(32px, 5vw, 56px); }
.flourish { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.flourish::before, .flourish::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish::after { transform: scaleX(-1); }
.flourish i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); display: block; }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--foil); background-size: 160% 160%; color: #FFFDF6; box-shadow: 0 8px 22px -8px rgba(138, 100, 35, .7), inset 0 1px 0 rgba(255,255,255,.35); text-shadow: 0 1px 1px rgba(90, 60, 15, .35); }
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 12px 28px -8px rgba(138, 100, 35, .75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 253, 249, .7); color: var(--espresso); }
.btn-ghost:hover { border-color: var(--gold); background: var(--parchment); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 11px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(201,168,106,.7);
  background: linear-gradient(180deg, #FFFDF8, #F6ECDA); color: var(--gold-dk);
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  box-shadow: 0 3px 10px -6px rgba(138,100,35,.3);
  transition: background .2s, transform .2s;
}
.pill svg { width: 14px; height: 14px; }
.pill:hover { background: #FFFDF9; }
.pill:active { transform: scale(.97); }

/* =========================================================================
   PETALS + TOAST
   ========================================================================= */
#petals { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--espresso); color: var(--ivory); padding: 12px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-md); transition: all .35s var(--ease);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   ACT I — ENVELOPE
   ========================================================================= */
#cover {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: clamp(18px, 3.4vh, 34px);
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
  background:
    radial-gradient(120% 80% at 50% 0%, #FFFDF8 0%, rgba(255,253,248,0) 60%),
    radial-gradient(90% 60% at 50% 100%, #EADBC0 0%, rgba(234,219,192,0) 70%),
    var(--ivory);
  transition: opacity .9s var(--ease), visibility .9s;
  touch-action: none;
}
#cover.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.cover-blessing { display: grid; justify-items: center; gap: 10px; color: var(--gold); text-align: center; }
.cover-blessing svg { width: clamp(64px, 9vh, 84px); height: auto; }
.cover-blessing span { font-family: var(--caps); font-size: 11px; letter-spacing: .3em; }

.envelope {
  --w: min(86vw, 440px, 58vh);
  position: relative; width: var(--w); aspect-ratio: 1 / 0.72;
  perspective: 1600px; cursor: pointer; outline: none;
  filter: drop-shadow(0 30px 40px rgba(70, 48, 20, .22)) drop-shadow(0 4px 8px rgba(70,48,20,.1));
  transition: transform .5s var(--ease);
}
.envelope:hover { transform: translateY(-3px); }
.env-back, .env-front, .env-flap, .env-card { position: absolute; }
.env-back { inset: 0; border-radius: 6px; background: linear-gradient(160deg, #EDE1C9, #E3D3B5); overflow: hidden; }
.env-back::before { /* foil liner */
  content: ""; position: absolute; inset: 6px; border-radius: 4px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #E6CC8E, #B88E43 55%, #D9BC7B);
  opacity: .85;
}
.env-card {
  left: 6%; right: 6%; top: 8%; height: 86%; border-radius: 4px; z-index: 2;
  background: var(--parchment);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 6px 20px rgba(60,40,10,.12);
  display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 8% 6% 14%;
  transition: transform 1.1s var(--ease), box-shadow 1.1s;
}
.env-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none; }
.env-card small { font-family: var(--caps); font-size: clamp(8px, 1.6vw, 10px); letter-spacing: .3em; color: var(--gold); }
.env-card b { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 6vw, 36px); line-height: 1; }
.env-card b i { font-weight: 400; color: var(--gold); }
.env-front {
  inset: 0; z-index: 3; border-radius: 6px; overflow: hidden;
  background: linear-gradient(180deg, #FBF7EF 0%, #F4ECDD 100%);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
}
.env-front::before { /* side folds */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top right, rgba(120,90,40,.07) 49.6%, transparent 50%) left / 50.2% 100% no-repeat,
    linear-gradient(to top left, rgba(120,90,40,.07) 49.6%, transparent 50%) right / 50.2% 100% no-repeat;
}
.env-address {
  position: absolute; left: 0; right: 0; bottom: 11%; text-align: center; z-index: 1;
  font-family: var(--serif); font-style: italic; color: var(--taupe); font-size: clamp(15px, 3.6vw, 19px);
  opacity: 0; transition: opacity .6s;
}
.env-address.on { opacity: 1; }
.env-address span { display: block; font-family: var(--caps); font-style: normal; font-size: 9px; letter-spacing: .3em; color: var(--gold); margin-bottom: 2px; }
.env-flap {
  left: 0; right: 0; top: 0; height: 58%; z-index: 4;
  transform-origin: 50% 0; transform-style: preserve-3d;
  transition: transform 1s var(--ease-io), z-index 0s .5s;
}
.env-flap::before, .env-flap::after {
  content: ""; position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.env-flap::before { background: linear-gradient(180deg, #F7F0E3, #EADDC5); }
.env-flap::after { background: linear-gradient(0deg, #E8CF94, #BE9550 70%, #D9BC7B); transform: rotateX(180deg); }

/* ribbon */
.ribbon { position: absolute; left: -3%; right: -3%; top: 50%; height: 34px; transform: translateY(-50%); z-index: 6; pointer-events: none; }
.ribbon .rh { position: absolute; top: 50%; height: 34px; width: 51.5%; transform: translateY(-50%); overflow: visible; filter: drop-shadow(0 2px 3px rgba(80,55,15,.28)); transition: transform 1.1s var(--ease), opacity .9s; transform-origin: 50% 50%; }
.ribbon .rh.l { left: 0; }
.ribbon .rh.r { right: 0; transform: translateY(-50%) scaleX(-1); transform-origin: 50% 50%; }
.ribbon .bow { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -42%); transition: transform .9s var(--ease), opacity .6s; filter: drop-shadow(0 3px 4px rgba(80,55,15,.3)); }

/* wax seal */
.seal {
  position: absolute; left: 50%; top: 50%; z-index: 7; width: clamp(78px, 21%, 98px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .6s var(--ease), opacity .5s, filter .5s;
}
.seal::before { /* irregular wax blob */
  content: ""; position: absolute; inset: -7%;
  background: radial-gradient(circle at 34% 28%, #F0DBA4 0%, #C79C52 34%, #9C742D 70%, #6E4E17 100%);
  border-radius: 47% 53% 50% 50% / 52% 46% 54% 48%;
  box-shadow: inset -4px -6px 10px rgba(70,45,10,.45), inset 4px 5px 8px rgba(255,240,200,.5), 0 6px 14px rgba(60,40,10,.35);
}
.seal::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; box-shadow: inset 0 2px 3px rgba(60,40,8,.55), inset 0 -1px 1px rgba(255,235,190,.6); }
.seal svg { position: relative; width: 74%; color: #6A4A15; fill: #6A4A15; filter: drop-shadow(0 1px 0 rgba(255,236,190,.55)) drop-shadow(0 -1px 0 rgba(60,38,6,.35)); }
.seal:hover { transform: translate(-50%, -50%) scale(1.05) rotate(-3deg); }
.seal .pulse { position: absolute; inset: -18%; border-radius: 50%; border: 1px solid rgba(184,142,67,.6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.cover-hint { text-align: center; display: grid; gap: 6px; }
.cover-hint b { font-family: var(--caps); font-weight: 500; font-size: 11px; letter-spacing: .3em; color: var(--gold-dk); }
.cover-hint span { font-size: 12px; color: var(--taupe); letter-spacing: .04em; }
.cover-hint .chev { margin: 4px auto 0; width: 10px; height: 10px; border-left: 1.5px solid var(--gold); border-top: 1.5px solid var(--gold); transform: rotate(45deg); animation: chev 1.8s var(--ease) infinite; }
@keyframes chev { 0%,100% { transform: translateY(4px) rotate(45deg); opacity: .4 } 50% { transform: translateY(-3px) rotate(45deg); opacity: 1 } }

/* opening sequence */
.envelope.s1 .seal { transform: translate(-50%, -50%) scale(1.18); opacity: 0; filter: blur(4px); transition: transform .55s cubic-bezier(.3,.7,.3,1), opacity .45s ease, filter .45s ease; }
.envelope.s1 .seal .pulse { display: none; }
.ribbon .rh { will-change: transform, opacity; }
.envelope.s2 .ribbon .rh.l { animation: ribbonL 1.35s cubic-bezier(.55,.06,.3,1) forwards; }
.envelope.s2 .ribbon .rh.r { animation: ribbonR 1.35s cubic-bezier(.55,.06,.3,1) forwards; }
@keyframes ribbonL {
  0%   { transform: translate(0, -50%) rotate(0deg);    opacity: 1; }
  25%  { transform: translate(-6%, -54%) rotate(-1.5deg); opacity: 1; }
  100% { transform: translate(-115%, -70%) rotate(-7deg); opacity: 0; }
}
@keyframes ribbonR {
  0%   { transform: translate(0, -50%) scaleX(-1) rotate(0deg);    opacity: 1; }
  25%  { transform: translate(6%, -54%) scaleX(-1) rotate(-1.5deg); opacity: 1; }
  100% { transform: translate(115%, -70%) scaleX(-1) rotate(-7deg); opacity: 0; }
}
.envelope.s2 .ribbon .bow { transform: translate(-50%, -30%) scale(.55); opacity: 0; transition: transform .85s cubic-bezier(.55,.06,.3,1), opacity .55s ease .15s; }
.envelope.s3 .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.s4 .env-card { transform: translateY(-62%); box-shadow: 0 30px 50px rgba(60,40,10,.25); z-index: 5; transition-delay: 0s; }
.envelope.s4 { cursor: default; }

/* =========================================================================
   TOP BAR
   ========================================================================= */
.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 80;
  padding: calc(10px + var(--safe-t)) var(--gutter) 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(-110%); transition: transform .6s var(--ease), background .3s, box-shadow .3s;
}
.topbar.on { transform: none; }
.topbar.solid { background: rgba(250, 246, 238, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line-soft); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 38px; height: 38px; color: var(--gold); fill: var(--gold); }
.brand span { font-family: var(--serif); font-size: 19px; font-weight: 500; display: none; }
.nav { display: none; gap: 30px; }
.nav a { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--espresso); }
.nav a:hover::after { transform: scaleX(1); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255,253,249,.8); color: var(--gold-dk);
  transition: background .2s, transform .2s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.sound-pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,253,249,.9); color: var(--espresso); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.sound-pill .eq { color: var(--gold-dk); }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: currentColor; border-radius: 1px; height: 30%; }
.playing .eq i { animation: eq 1s ease-in-out infinite; }
.playing .eq i:nth-child(2) { animation-delay: -.3s; } .playing .eq i:nth-child(3) { animation-delay: -.6s; } .playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 25% } 50% { height: 100% } }

/* =========================================================================
   SECTIONS
   ========================================================================= */
main { position: relative; }
.section { position: relative; padding: clamp(80px, 12vw, 140px) var(--gutter); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- ACT II · HERO ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; justify-items: center; align-content: center; gap: clamp(22px, 4vh, 40px); text-align: center;
  padding: calc(92px + var(--safe-t)) var(--gutter) calc(40px + var(--safe-b));
  background:
    radial-gradient(circle at 50% 0%, rgba(223,194,133,.26), transparent 60%),
    linear-gradient(180deg, #FBF8F2 0%, #F4ECDF 100%);
}
.arch-wrap { position: relative; width: min(100%, 440px); }
.rose { position: absolute; width: clamp(110px, 30vw, 190px); top: clamp(-96px, -14vw, -60px); pointer-events: none; opacity: .92; filter: drop-shadow(0 6px 10px rgba(150,90,80,.08)); }
.rose.l { left: clamp(-70px, -9vw, -24px); transform: rotate(-12deg); }
.rose.r { right: clamp(-70px, -9vw, -24px); transform: scaleX(-1) rotate(-12deg); }
.arch {
  position: relative; width: 100%;
  padding: clamp(46px, 9vw, 70px) clamp(22px, 6vw, 52px) clamp(30px, 6vw, 46px);
  background: linear-gradient(180deg, #FFFEFB 0%, #FBF6EC 70%, #F6EEDF 100%);
  border: 2px solid rgba(201,168,106,.75);
  border-radius: 1000px 1000px 40px 40px / 1000px 1000px 40px 40px;
  box-shadow: 0 30px 70px -20px rgba(110,80,40,.22), 0 2px 8px rgba(110,80,40,.05),
              inset 0 0 0 10px rgba(255,253,248,.85), inset 0 0 0 11px rgba(201,168,106,.38);
  display: grid; justify-items: center;
}
.arch .ganesha { width: clamp(96px, 26vw, 124px); margin-top: 4px; }
.shloka { display: flex; align-items: center; gap: 10px; margin: 8px 0 16px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(16px, 4.2vw, 19px); letter-spacing: .2em; color: var(--gold-dk); }
.shloka i { display: block; width: 4px; height: 16px; border-left: 1.2px solid var(--gold); border-right: 1.2px solid var(--gold); transform: skewX(-12deg); }
.blessing { font-family: var(--sans); font-size: clamp(13px, 3.4vw, 14.5px); line-height: 1.65; color: var(--taupe); max-width: 30ch; text-wrap: balance; }
.rule { display: block; width: 64px; height: 1px; margin: 22px 0 18px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.names { display: grid; justify-items: center; font-weight: 400; }
.names .nm {
  font-family: var(--serif); font-weight: 600; letter-spacing: .02em; line-height: 1;
  font-size: clamp(54px, 15vw, 78px); padding: 0 .04em .06em;
  background: linear-gradient(180deg, #C9A35C 0%, #A57A30 55%, #C39A52 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.names .par { font-family: var(--sans); font-size: clamp(12px, 3.2vw, 13.5px); color: var(--taupe); margin-top: 6px; text-wrap: balance; }
.names .amp { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 9vw, 44px); line-height: 1; color: var(--gold-dk); }
.names .amp i { width: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.names .amp i:last-child { transform: scaleX(-1); }
.arch .pill { margin-top: 22px; }
.closing .guest { display: block; font-style: normal; font-family: var(--caps); font-size: 11px; letter-spacing: .26em; color: var(--gold-dk); margin-bottom: 6px; text-transform: uppercase; }
.closing { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 4.2vw, 18px); line-height: 1.45; color: var(--espresso); max-width: 30ch; text-wrap: balance; }
.scroll-cue { display: grid; justify-items: center; gap: 12px; font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-dk); }
.scroll-cue b { width: 10px; height: 10px; border-right: 1.5px solid var(--gold-dk); border-bottom: 1.5px solid var(--gold-dk); transform: rotate(45deg); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: translateY(-3px) rotate(45deg); opacity: .5 } 50% { transform: translateY(3px) rotate(45deg); opacity: 1 } }
@media (min-width: 768px) {
  .arch .ganesha { width: 148px; }
  .arch-wrap { width: 560px; }
  .arch { padding: 78px 64px 54px; }
  .names .nm { font-size: 88px; }
}
@media (min-width: 1100px) {
  .arch-wrap { width: 580px; }
  .arch { padding: 70px 64px 48px; }
  .names .nm { font-size: 84px; }
}

/* ---------- ACT III · SAVE THE DATE ---------- */
.date-sec { background: var(--champagne); text-align: center; }
.scroll {
  width: min(100%, 560px); margin: 0 auto; position: relative;
}
.rod {
  height: 22px; border-radius: 12px; position: relative; z-index: 2;
  background: linear-gradient(180deg, #F2DEA9 0%, #C79C50 45%, #8E6625 100%);
  box-shadow: 0 6px 12px rgba(80, 55, 15, .25);
}
.rod::before, .rod::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; border-radius: 50%; transform: translateY(-50%); background: radial-gradient(circle at 35% 30%, #F6E4B4, #B88E43 55%, #7A561C); box-shadow: 0 3px 6px rgba(80,55,15,.3); }
.rod::before { left: -12px; } .rod::after { right: -12px; }
.parchment {
  margin: 0 18px; overflow: hidden; max-height: 0; position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.6), transparent),
    linear-gradient(180deg, #FFFCF4, #F7EEDC);
  box-shadow: inset 0 10px 18px -12px rgba(80,55,15,.35), inset 0 -10px 18px -12px rgba(80,55,15,.25);
  transition: max-height 1.6s var(--ease-io);
}
.scroll.open .parchment { max-height: 640px; }
.parchment-inner { padding: 40px 24px 36px; display: grid; gap: 10px; justify-items: center; }
.d-day { font-family: var(--caps); font-size: 11px; letter-spacing: .28em; color: var(--gold-dk); }
.d-main { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 9vw, 72px); line-height: 1; }
.d-main sup { font-size: .38em; vertical-align: top; position: relative; top: .3em; color: var(--gold); }
.d-muhurat { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--espresso); padding: 8px 16px; border-radius: 999px; background: rgba(184,142,67,.12); }
.d-sub { font-size: 12.5px; color: var(--taupe); }
.tassel {
  display: grid; justify-items: center; margin: 0 auto; padding-bottom: 8px; position: relative; z-index: 3;
  touch-action: none; animation: sway 3.6s ease-in-out infinite; transform-origin: 50% 0;
}
.tassel .cord { width: 2px; height: 46px; background: linear-gradient(#8E6625, #C79C50); }
.tassel .knot { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F6E4B4, #B88E43 60%, #7A561C); }
.tassel .fringe { width: 26px; height: 46px; margin-top: -3px; border-radius: 4px 4px 12px 12px; background: repeating-linear-gradient(90deg, #C79C50 0 2px, #E9D29C 2px 3px, #A98034 3px 5px); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.tassel-label { margin-top: 14px; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--gold-dk); }
@keyframes sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.scroll.open .tassel { animation: none; }
.scroll.open .tassel-label { opacity: 0; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 460px; margin: 34px auto 26px; opacity: 0; transform: translateY(16px); transition: all .9s var(--ease) .9s; }
.scroll.open ~ .after-reveal .countdown, .after-reveal.on .countdown { opacity: 1; transform: none; }
.cd { background: var(--parchment); border: 1px solid var(--line); border-radius: 16px; padding: 14px 4px 10px; box-shadow: var(--shadow-sm); }
.cd b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 6vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); }
.after-reveal .btn-row { opacity: 0; transition: opacity .9s 1.3s; }
.after-reveal.on .btn-row { opacity: 1; }
.after-reveal { visibility: hidden; }
.after-reveal.on { visibility: visible; }

/* ---------- ACT IV · CELEBRATIONS ---------- */
.events-sec { background: linear-gradient(180deg, var(--champagne), var(--ivory) 40%); }
.view-toggle { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--parchment); }
.view-toggle button { padding: 9px 18px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); transition: all .25s; }
.view-toggle button[aria-pressed="true"] { background: var(--espresso); color: var(--ivory); }

.events { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 26px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.events::-webkit-scrollbar { display: none; }
.ev {
  flex: 0 0 min(80vw, 330px); scroll-snap-align: center;
  position: relative; border-radius: 22px; overflow: hidden;
  background: var(--parchment); border: 1px solid var(--line-soft); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ev:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ev-top {
  position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 120% at 50% 110%, color-mix(in srgb, var(--sw) 55%, #fff) 0%, color-mix(in srgb, var(--sw) 18%, #FFFBF2) 60%, #FFFBF2 100%);
}
.ev-top svg { width: 92px; height: 92px; color: color-mix(in srgb, var(--sw) 70%, #5a3d10); opacity: .9; }
.ev-num { position: absolute; top: 14px; left: 18px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--taupe); }
.ev-day { position: absolute; top: 16px; right: 18px; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--taupe); }
.ev-body { padding: 22px 22px 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.ev h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.05; }
.ev-when { display: grid; gap: 2px; font-size: 13px; color: var(--taupe); }
.ev-when b { color: var(--espresso); font-weight: 600; letter-spacing: .02em; }
.ev-note { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--taupe); }
.ev-attire { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--taupe); }
.ev-attire i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 0 0 1px var(--line); flex: none; }
.ev-attire b { font-weight: 600; color: var(--espresso); }
.ev-badge { display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: 999px; background: rgba(217,167,160,.18); color: var(--blush-dk); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots button { width: 7px; height: 7px; border-radius: 99px; background: var(--sand); transition: all .3s var(--ease); }
.dots button[aria-current="true"] { width: 26px; background: var(--gold); }

.timeline { display: none; max-width: 720px; margin: 0 auto; }
.events-sec.list .timeline { display: grid; }
.events-sec.list .events, .events-sec.list .dots { display: none; }
.tl-day { font-family: var(--caps); font-size: 12px; letter-spacing: .26em; color: var(--gold-dk); padding: 26px 0 10px; border-bottom: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.tl-row time { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.tl-row h4 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; }
.tl-row p { font-size: 13px; color: var(--taupe); }

/* ---------- ACT V · VENUE ---------- */
.venue-sec { background: var(--ivory); }
.venue { display: grid; gap: 18px; }
.map {
  position: relative; display: block; border-radius: 22px; overflow: hidden; min-height: 240px;
  background: #F5EDDD; border: 1px solid var(--line-soft); box-shadow: var(--shadow-md);
}
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-cta { position: absolute; left: 16px; bottom: 16px; }
.venue-card { background: var(--parchment); border: 1px solid var(--line-soft); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); display: grid; gap: 14px; align-content: center; }
.venue-card h3 { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); font-weight: 500; line-height: 1.05; }
.venue-card address { font-style: normal; color: var(--taupe); }
.venue-card .btn-row { justify-content: flex-start; }
.venue-card .btn-row .btn { padding: 0 18px; }
.venue-meta { display: grid; gap: 10px; margin: 4px 0 6px; }
.venue-meta div { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--taupe); }
.venue-meta b { font-family: var(--caps); font-weight: 500; font-size: 10px; letter-spacing: .22em; color: var(--gold); width: 84px; flex: none; }

.hosts { display: grid; gap: 18px; margin-top: clamp(40px, 6vw, 72px); }
.host { background: var(--parchment); border: 1px solid var(--line-soft); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-sm); }
.host-tag { font-family: var(--caps); font-size: 10px; letter-spacing: .26em; color: var(--gold); }
.host h4 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 4px 0 2px; }
.host > p { font-size: 13px; color: var(--taupe); margin-bottom: 14px; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.contact b { display: block; font-size: 14px; font-weight: 600; }
.contact span { font-size: 12.5px; color: var(--taupe); font-variant-numeric: tabular-nums; }
.contact-actions { display: flex; gap: 8px; }
.round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--ivory); color: var(--gold-dk); transition: all .2s; }
.round:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.round.wa:hover { background: #25D366; border-color: #25D366; }
.round svg { width: 18px; height: 18px; }

/* ---------- ACT VI · RSVP + BLESSINGS ---------- */
.rsvp-sec { background: linear-gradient(180deg, var(--ivory), var(--champagne)); }
.rsvp-grid { display: grid; gap: 22px; align-items: start; }
.card { background: var(--parchment); border: 1px solid var(--line-soft); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-md); }
.card h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.1; margin-bottom: 4px; }
.card > p { font-size: 13.5px; color: var(--taupe); margin-bottom: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > label, .field > .lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .8; }
.input, select.input, textarea.input {
  width: 100%; font-size: 16px; /* iOS: no focus zoom */
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ivory);
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
select.input { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23B88E43' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
textarea.input { min-height: 104px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(184,142,67,.14); }
.input::placeholder { color: #B5A491; }
.row2 { display: grid; gap: 0 14px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; text-align: center; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--ivory); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; line-height: 1.25; }
.seg label small { display: block; font-size: 11px; color: var(--taupe); font-weight: 400; }
.seg input:checked + label { border-color: var(--gold); background: #FFF8EA; box-shadow: inset 0 0 0 1px var(--gold); }
.seg input:focus-visible + label, .chips input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); padding: 5px; }
.stepper button { width: 42px; height: 42px; border-radius: 10px; font-size: 22px; color: var(--gold-dk); background: var(--parchment); border: 1px solid var(--line-soft); }
.stepper output { font-family: var(--serif); font-size: 26px; font-weight: 500; min-width: 3ch; text-align: center; }

.chips { display: grid; grid-template-columns: 1fr; gap: 8px; }
.chips label { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--ivory); cursor: pointer; font-size: 13.5px; font-weight: 500; line-height: 1.2; transition: all .2s; }
.chips label small { display: block; font-weight: 400; font-size: 11px; color: var(--taupe); }
.chips label::before { content: ""; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--gold); flex: none; transition: all .2s; background: #fff center / 12px no-repeat; }
.chips input:checked + label { border-color: var(--gold); background: #FFF8EA; }
.chips input:checked + label::before { background-color: var(--gold); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.hp { position: absolute; left: -9999px; }
.when-yes { display: grid; transition: opacity .3s; }
form.declined .when-yes { display: none; }
.form-status { font-size: 12.5px; color: var(--taupe); margin-top: 12px; text-align: center; min-height: 1.4em; }
.form-status.err { color: #A3463E; }

/* pass */
.pass-wrap[hidden] { display: none; }
.rsvp-grid.solo { max-width: 640px; margin: 0 auto; }
@media (min-width: 1024px) { .rsvp-grid.solo { grid-template-columns: 1fr; } }
.pass-wrap { display: grid; gap: 16px; justify-items: center; position: sticky; top: 90px; }
.pass {
  position: relative; width: min(100%, 380px); aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden;
  background: radial-gradient(100% 70% at 50% 0%, #FFFDF8, #F6EDDC);
  box-shadow: var(--shadow-lg); padding: 28px 26px; text-align: center;
  display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; gap: 6px;
  transform: rotate(-1.2deg); transition: transform .6s var(--ease);
}
.pass:hover { transform: rotate(0); }
.pass::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold); border-radius: 160px 160px 12px 12px / 120px 120px 12px 12px; pointer-events: none; }
.pass::after { content: ""; position: absolute; inset: 17px; border: 1px solid var(--line); border-radius: 156px 156px 9px 9px / 116px 116px 9px 9px; pointer-events: none; }
.pass svg { width: 120px; margin-top: 12px; }
.pass .eyebrow { font-size: 9.5px; }
.pass-name { font-family: var(--serif); font-size: clamp(28px, 7vw, 36px); font-weight: 500; line-height: 1.05; align-self: center; padding: 0 10px; }
.pass-name small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-top: 10px; font-weight: 500; }
.pass-foot { font-size: 11.5px; color: var(--taupe); line-height: 1.55; padding-bottom: 10px; }
.pass-foot b { display: block; font-family: var(--serif); font-size: 17px; color: var(--espresso); font-weight: 600; }
.pass-foot i { display: block; font-family: var(--serif); color: var(--gold-dk); font-size: 15px; margin-top: 4px; }
.pass.ghost { filter: saturate(.6); opacity: .75; }
.pass-actions { display: none; }
.pass-actions.on { display: flex; }

/* blessings */
.bless { margin-top: clamp(56px, 8vw, 96px); }
.bless-grid { display: grid; gap: 22px; align-items: start; }
.wall { columns: 1; column-gap: 16px; }
.wish { break-inside: avoid; margin-bottom: 16px; background: var(--parchment); border: 1px solid var(--line-soft); border-radius: 18px; padding: 20px 20px 16px; box-shadow: var(--shadow-sm); position: relative; }
.wish::before { content: "\201C"; position: absolute; top: -6px; left: 14px; font-family: var(--serif); font-size: 56px; color: var(--blush); line-height: 1; }
.wish p { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.45; padding-top: 10px; }
.wish footer { margin-top: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--gold-dk); text-transform: uppercase; }
.wish.new { animation: pop .7s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.counter { justify-self: end; font-size: 11px; color: var(--taupe); margin-top: -10px; margin-bottom: 8px; }

/* ---------- FOOTER ---------- */
.foot { text-align: center; padding: clamp(70px, 10vw, 120px) var(--gutter) calc(48px + var(--safe-b)); background: var(--espresso); color: var(--champagne); position: relative; overflow: hidden; }
.foot svg.crest { width: 220px; margin: 0 auto 10px; }
.foot h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 60px); line-height: 1; }
.foot h2 i { color: var(--gold-lt); }
.foot p { font-size: 13px; color: rgba(243,234,220,.7); margin: 12px 0 22px; }
.foot .pill { background: transparent; color: var(--gold-lt); border-color: rgba(223,194,133,.45); }
.foot .pill { box-shadow: none; }
.foot .fine { margin-top: 40px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,234,220,.4); }

/* mobile sticky RSVP */
.sticky-cta { position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); z-index: 70; transform: translate(-50%, 140%); transition: transform .5s var(--ease); box-shadow: var(--shadow-lg); }
.sticky-cta.on { transform: translate(-50%, 0); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 560px) {
  .chips label { align-items: flex-start; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .chips { grid-template-columns: 1fr 1fr; }
  .wall { columns: 2; }
}
@media (min-width: 768px) {
  body { font-size: 16px; }
  .brand span { display: inline; }
  .hosts { grid-template-columns: 1fr 1fr; }
  .events { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 10px 0 0; gap: 22px; }
  .ev { flex: auto; }
  .dots { display: none; }
  .sticky-cta { display: none; }
}
@media (min-width: 1024px) {
  .nav { display: flex; }
  .events { grid-template-columns: repeat(4, 1fr); }
  .ev h3 { font-size: 28px; }
  .venue { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
  .map { min-height: 420px; }
  .rsvp-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  .bless-grid { grid-template-columns: 380px 1fr; gap: 40px; }
  .wall { columns: 2; }
  .hero-orn { display: block; }
  .envelope { --w: min(46vw, 560px, 62vh); }
}
@media (max-width: 1023px) { .hero-orn { display: none; } }
@media (min-width: 1280px) { .wall { columns: 2; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  html { scroll-behavior: auto; }
}

