:root {
  --ivory: #FBF7F0;
  --cream: #F5EDE0;
  --white: #FFFDF9;
  --blush: #EED8D1;
  --blush-deep: #C9918A;
  --sage: #CBD6C4;
  --sage-deep: #8FA286;
  --lake: #D5E2E5;
  --gold: #B8924A;
  --gold-soft: #D9BE7E;
  --gold-grad: linear-gradient(120deg, #8A6729 0%, #B48C3E 35%, #CDA758 50%, #A9823A 68%, #7E5E25 100%);
  --ink: #3F4743;
  --ink-soft: #6B716C;
  --night: #2D3150;
  --butter: #FBEBC0;
  --rose: #B8676E;
  --powder: #DAE6EE;
  --lilac: #E9E2F0;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --caps: 'Cinzel', 'Cormorant Garamond', serif;
  --script: 'Allura', cursive;
  --hindi: 'Tiro Devanagari Hindi', serif;
  --col: 460px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #EFE6D8;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
body.locked { overflow: hidden; height: 100svh; }
img, svg { display: block; }
button { font: inherit; }

/* paper grain used everywhere */
.paper, .wash-blush, .wash-sage, .gate-center, .door-panel {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#app {
  max-width: var(--col);
  margin: 0 auto;
  background: var(--ivory);
  box-shadow: 0 0 60px rgba(120, 95, 60, .12);
  overflow: hidden;
  position: relative;
}

.slide {
  position: relative;
  padding: 88px 28px;
  text-align: center;
  isolation: isolate;
}
.paper { background: var(--grain), var(--ivory); }
.wash-blush { background: var(--grain), radial-gradient(120% 60% at 50% 0%, #F6E6E0 0%, var(--ivory) 70%); }
.wash-sage { background: var(--grain), radial-gradient(120% 60% at 50% 0%, #E6ECDF 0%, var(--ivory) 70%); }

/* watercolour washes (soft blobs with organic edges) */
.wash { position: absolute; z-index: -1; border-radius: 50%; filter: blur(34px); opacity: .75; pointer-events: none; }
.wash-a { width: 80%; height: 42%; top: -8%; right: -22%; background: radial-gradient(circle at 40% 40%, #EEC6BC, rgba(238, 198, 188, 0) 70%); opacity: .85; }
.wash-b { width: 90%; height: 44%; bottom: -12%; left: -28%; background: radial-gradient(circle at 60% 50%, #C9DCC4, rgba(201, 220, 196, 0) 70%); opacity: .85; }

/* botanical corners */
.corners { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.corner { position: absolute; width: 46%; height: auto; max-width: 220px; opacity: .95; }
.corner-tl { top: 0; left: 0; }
.corner-tr { top: 0; right: 0; }
.corner-bl { bottom: 0; left: 0; }
.corner-br { bottom: 0; right: 0; }
.corner .stem { fill: none; stroke-width: 1.1; }
.corner .leaf { fill: rgba(170, 190, 160, .28); stroke-width: .9; }
.corner .berry { fill: rgba(212, 180, 108, .55); stroke: none; }
.corner .bloom path { fill: rgba(238, 200, 192, .55); stroke-width: .9; }
.corner .bloom .bloom-in { fill: rgba(246, 222, 214, .9); }
.corner .bloom-c { fill: rgba(212, 180, 108, .8); stroke: none; }

/* ---------- typography ---------- */
.small-caps { font-family: var(--caps); font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.section-title {
  font-family: var(--script); font-weight: 400; font-size: 58px; line-height: 1.1; margin: 0 0 18px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 10px;
}
.lead { margin: 8px 0; color: var(--ink); font-size: 19px; }
.lead strong, .hosts strong { font-weight: 600; }
.italic { font-style: italic; color: var(--ink-soft); }
.rule { display: flex; justify-content: center; margin: 22px 0; }
.rule span { position: relative; width: 150px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.rule span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }

/* ---------- opening: palace doors ---------- */
#gate {
  position: fixed; inset: 0; z-index: 50; cursor: pointer; perspective: 1400px;
  display: flex; justify-content: center; outline: none;
}
.gate-glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 50%, #FFF6DD 0%, #F6E7C8 45%, #EAD9BC 100%);
}
.door {
  position: absolute; top: 0; bottom: 0; width: 50%; max-width: calc(var(--col) / 2);
  transition: transform 1.9s cubic-bezier(.6, .05, .25, 1);
  transform-style: preserve-3d; backface-visibility: hidden;
}
.door-l { right: 50%; transform-origin: left center; }
.door-r { left: 50%; transform-origin: right center; }
.door-panel {
  position: absolute; inset: 0;
  background: var(--grain), linear-gradient(180deg, #FFFDF8, #F4EBDC);
  box-shadow: inset 0 0 0 10px #FBF6EC, inset 0 0 0 11px var(--gold-soft), inset 0 0 0 16px #FBF6EC, inset 0 0 0 16.6px var(--gold-soft);
}
.door-l .door-panel { box-shadow: inset 0 0 0 10px #FBF6EC, inset 0 0 0 11px var(--gold-soft), inset 0 0 0 16px #FBF6EC, inset 0 0 0 16.6px var(--gold-soft), inset -8px 0 18px -10px rgba(120, 90, 40, .45); }
.door-r .door-panel { box-shadow: inset 0 0 0 10px #FBF6EC, inset 0 0 0 11px var(--gold-soft), inset 0 0 0 16px #FBF6EC, inset 0 0 0 16.6px var(--gold-soft), inset 8px 0 18px -10px rgba(120, 90, 40, .45); }
/* half of a pointed jharokha arch on each leaf; they meet at the seam */
.door-arch { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--gold-soft); stroke-width: 1; }
.door-arch path + path { stroke-opacity: .55; }
.door-r .door-arch.flip { transform: scaleX(-1); }
.door-jali {
  position: absolute; bottom: 4%; height: 7%; width: 70%;
  background-image: radial-gradient(circle, var(--gold-soft) 1.1px, transparent 1.6px);
  background-size: 12px 12px; opacity: .7;
}
.door-l .door-jali { right: 0; }
.door-r .door-jali { left: 0; }
.knocker { position: absolute; top: 58%; width: 22px; height: 22px; border: 2px solid var(--gold); border-radius: 50%; box-shadow: 0 2px 4px rgba(120, 90, 40, .25); }
.door-l .knocker { right: 16px; }
.door-r .knocker { left: 16px; }

.gate-center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; pointer-events: none; transition: opacity .7s ease;
}
.gate-dear { font-family: var(--script); font-size: 34px; color: var(--gold); margin: 0 0 10px; text-shadow: 0 1px 0 #fff; max-width: 80%; text-align: center; line-height: 1.2; }
.medallion { width: 150px; height: 150px; filter: drop-shadow(0 8px 16px rgba(120, 90, 40, .28)); animation: breathe 3.2s ease-in-out infinite; transition: transform .9s ease, opacity .9s ease; }
.medallion svg { width: 100%; height: 100%; }
.gate-hint {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px; background: rgba(255, 253, 248, .85);
  border: 1px solid rgba(184, 146, 74, .35);
  font-family: var(--caps); letter-spacing: .18em; font-size: 11.5px; text-transform: uppercase; color: var(--gold);
}
.gate-hint .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 0 rgba(217, 190, 126, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(217, 190, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 190, 126, 0); } }
@keyframes breathe { 50% { transform: scale(1.04); } }

#gate.opening .medallion { transform: scale(.6) rotate(-30deg); opacity: 0; animation: none; }
#gate.opening .gate-dear, #gate.opening .gate-hint { opacity: 0; transition: opacity .5s; }
#gate.opening .door-l { transform: rotateY(-108deg); }
#gate.opening .door-r { transform: rotateY(108deg); }
#gate.opening .gate-glow { animation: glowOut 2.4s ease forwards; }
@keyframes glowOut { 0% { opacity: 1; } 55% { opacity: 1; filter: brightness(1.12); } 100% { opacity: 0; } }
#gate.gone { display: none; }

/* ---------- music button ---------- */
.music {
  position: fixed; right: max(16px, calc(50% - var(--col) / 2 + 16px)); bottom: 18px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(184, 146, 74, .45);
  background: rgba(255, 253, 248, .92); box-shadow: 0 6px 16px rgba(90, 70, 40, .18); cursor: pointer;
  display: grid; place-items: center;
}
.music .bars { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.music .bars i { width: 3px; height: 6px; background: var(--gold); border-radius: 2px; }
.music.playing .bars i { animation: bar 1s ease-in-out infinite; }
.music.playing .bars i:nth-child(2) { animation-delay: .2s; }
.music.playing .bars i:nth-child(3) { animation-delay: .4s; }
.music.playing .bars i:nth-child(4) { animation-delay: .1s; }
@keyframes bar { 50% { height: 18px; } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 60px; padding-bottom: 80px; }
.hero .hi { font-family: var(--hindi); color: var(--gold); font-size: 20px; letter-spacing: .08em; margin: 0 0 4px; }
.hero-crest { width: 74%; max-width: 300px; margin: 0 auto 8px; }
.hero-crest .crest-names, .hero-crest .crest-tag { display: none; }
.names { margin: 0; font-weight: 400; line-height: 1; }
.names span { display: block; }
.names .n1, .names .n2 {
  font-family: var(--script); font-size: 64px; padding: 6px 12px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.names .weds { font-family: var(--caps); font-size: 13px; letter-spacing: .4em; color: var(--ink-soft); margin: 2px 0; }
.hero-date { font-family: var(--caps); letter-spacing: .14em; font-size: 15px; margin: 18px 0 2px; color: var(--ink); }
.hero-place { font-style: italic; color: var(--ink-soft); margin: 0; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 1px solid var(--gold-soft); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* crest line-drawing animation */
.crest .draw path, .crest .draw circle { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.crest .ripples, .crest .mono { opacity: 0; }
.crest.play .draw path, .crest.play .draw circle { animation: draw 2.6s cubic-bezier(.5, 0, .2, 1) forwards; }
.crest.play .ripples { animation: fade 1.2s 1.6s forwards; }
.crest.play .mono { animation: fade 1.6s 1.2s forwards; }
.crest.static .draw path, .crest.static .draw circle { stroke-dashoffset: 0; }
.crest.static .ripples, .crest.static .mono { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* falling petals */
.petals { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.petal { position: absolute; top: -20px; width: 10px; height: 13px; border-radius: 80% 0 80% 0; opacity: .75; animation: fall linear infinite; }
@keyframes fall {
  0% { transform: translate(0, -20px) rotate(0); }
  100% { transform: translate(var(--dx, 40px), 105svh) rotate(540deg); }
}

/* ---------- invitation ---------- */
.invite { background: var(--grain), linear-gradient(180deg, #F6E1DA 0%, var(--ivory) 28%, var(--ivory) 72%, #E2EADB 100%); }
.invite-inner { max-width: 380px; margin: 0 auto; }
.hero-tag { font-family: var(--script); font-size: 30px; color: var(--rose); margin: 10px 0 0; }
.swarchit { background: var(--grain), linear-gradient(180deg, #ECE5F3 0%, #F2EDF4 55%, #F7F2F0 100%); padding: 72px 28px; }
.swarchit .icon-wrap { width: 70px; margin: 0 auto 6px; }
.swarchit .hi { font-family: var(--hindi); color: #8C7AA6; font-size: 20px; margin: 0; }
.swarchit em { font-style: italic; color: var(--gold); font-weight: 600; }
.swarchit strong { color: #8C7AA6; font-weight: 600; }
.venue { background: var(--grain), radial-gradient(120% 70% at 50% 20%, #DCE8EE 0%, #ECF2F2 45%, var(--ivory) 85%); }
.blessings { background: var(--grain), radial-gradient(120% 70% at 50% 30%, #FBEAD9 0%, #FCF2E8 45%, var(--ivory) 85%); }
.invocation { font-family: var(--hindi); font-size: 21px; color: var(--gold); margin: 0 0 6px; }
.icon-wrap { width: 54px; margin: 0 auto 14px; }
.icon { width: 100%; height: auto; }
.elders { font-size: 20px; margin: 4px 0; font-weight: 500; }
.hosts { font-size: 20px; margin: 0 0 4px; }
.script-name {
  font-family: var(--script); font-size: 56px; line-height: 1.15; margin: 6px 0 0; padding: 0 12px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.with { font-family: var(--caps); letter-spacing: .4em; font-size: 12px; color: var(--ink-soft); margin: 2px 0; }

/* ---------- countdown ---------- */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 360px; margin: 6px auto 0; }
.unit {
  padding: 22px 0 12px; border: 1px solid rgba(184, 146, 74, .55); border-radius: 999px 999px 10px 10px;
  background: rgba(255, 253, 249, .75); position: relative;
}
.unit::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(184, 146, 74, .2); border-radius: 999px 999px 7px 7px; }
.unit b { display: block; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.unit span { font-family: var(--caps); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cd-foot { font-style: italic; color: var(--ink-soft); margin-top: 18px; }

/* ---------- events ---------- */
.event { min-height: 88svh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event .icon-wrap { width: 110px; margin-bottom: 8px; }
.event .hindi { font-family: var(--hindi); color: var(--acc, var(--gold)); font-size: 19px; margin: 0; }
.event h2 { margin: 0; }
.event h2.long { font-size: 40px; }
.venue .section-title { font-size: 50px; }
.event .caption { font-style: italic; color: var(--ink-soft); margin: 0 auto 22px; max-width: 290px; }
.event .when { font-family: var(--caps); font-size: 15px; letter-spacing: .12em; margin: 0; }
.event .time { display: inline-block; font-size: 21px; margin: 8px 0 0; padding: 3px 20px; border-radius: 999px; background: var(--acc-bg, transparent); }
.event .note { margin: 8px 0 0; font-style: italic; color: var(--acc, var(--blush-deep)); }
.event .where { margin: 2px 0 0; color: var(--ink); }
.event .cal { margin-top: 18px; font-family: var(--caps); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc, var(--gold)); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.event-haldi { --acc: #B9801C; --acc-bg: #FBE8B6; background: var(--grain), radial-gradient(110% 70% at 50% 40%, #FBE5A8 0%, #FBF0D3 45%, var(--ivory) 85%); }
.event-wedding { --acc: #B05F67; --acc-bg: #F5D6D2; background: var(--grain), radial-gradient(110% 70% at 50% 40%, #F4D2CB 0%, #F9E6E1 45%, var(--ivory) 85%); }
.event-reception { --acc: #557894; --acc-bg: #D9E5EE; background: var(--grain), radial-gradient(110% 70% at 50% 40%, #D3E2EC 0%, #E6EEF1 45%, var(--ivory) 85%); }
.event-sangeet { --acc: #E9C987; --acc-bg: rgba(255, 255, 255, .1); }
.scene { width: calc(100% + 56px); margin: 18px -28px -40px; }
.scene img, .couple-art img { width: 100%; height: auto; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side, #000 62%, transparent 100%); }
.couple-art { width: 82%; max-width: 320px; margin: -40px auto 6px; }

/* sangeet: Pushkar lake at night, tap to float diyas */
.event-sangeet { color: #F4EBDC; background: linear-gradient(180deg, #2B2F4D 0%, #353656 55%, #46405F 100%); padding-bottom: 0; }
.event-sangeet .caption, .event-sangeet .where { color: #E9DFD0; }
.event-sangeet .when, .event-sangeet .time { color: #FFF8EC; }
.event-sangeet .note { color: #F1C9C0; }
.event-sangeet .small-caps { color: var(--gold-soft); }
.lake { position: relative; width: calc(100% + 56px); margin: 26px -28px 0; height: 330px; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.lake svg.ghats { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 170px; }
.lake .water { position: absolute; left: 0; right: 0; top: 168px; bottom: 0; background: linear-gradient(180deg, #34385A 0%, #23273F 100%); }
.lake .reflect { position: absolute; left: 0; right: 0; top: 168px; height: 170px; transform: scaleY(-1); opacity: .16; filter: blur(1.5px); -webkit-mask-image: linear-gradient(0deg, #000, transparent 70%); mask-image: linear-gradient(0deg, #000, transparent 70%); }
.lake .shimmer { position: absolute; left: 10%; right: 10%; top: 190px; height: 120px; background: repeating-linear-gradient(180deg, rgba(217, 190, 126, .0) 0 10px, rgba(217, 190, 126, .12) 10px 11px); mask-image: radial-gradient(60% 80% at 50% 30%, #000, transparent); -webkit-mask-image: radial-gradient(60% 80% at 50% 30%, #000, transparent); animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 0 22px; } }
.lake-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; font-style: italic; font-size: 16px; color: #F1E4CC; opacity: .9; pointer-events: none; }
.lake-hint::before { content: '✦ '; color: var(--gold-soft); }
.diya { position: absolute; width: 34px; height: 24px; margin: -12px 0 0 -17px; pointer-events: none; animation: drift var(--t, 16s) linear forwards, bob 3s ease-in-out infinite; }
.diya::before { /* glow */ content: ''; position: absolute; left: 50%; top: -14px; width: 70px; height: 70px; margin-left: -35px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 130, .55) 0%, rgba(255, 190, 110, 0) 70%); }
.diya::after { /* reflection */ content: ''; position: absolute; left: 50%; top: 22px; width: 8px; height: 26px; margin-left: -4px; background: linear-gradient(rgba(255, 205, 120, .55), rgba(255, 205, 120, 0)); filter: blur(2px); }
.diya svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.diya .flame { transform-origin: 17px 10px; animation: flicker .25s ease-in-out infinite alternate; }
@keyframes flicker { to { transform: scale(.88, 1.08) rotate(3deg); } }
@keyframes bob { 50% { margin-top: -15px; } }
@keyframes drift { from { transform: translateX(0) scale(.6); opacity: 0; } 8% { opacity: 1; transform: translateX(calc(var(--dx) * .08)) scale(1); } 85% { opacity: 1; } to { transform: translateX(var(--dx)) scale(.82); opacity: 0; } }

/* ---------- venue ---------- */
.map { margin: 22px auto 22px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(184, 146, 74, .4); box-shadow: 0 10px 24px rgba(90, 70, 40, .12); padding: 6px; background: var(--white); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; border-radius: 11px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 999px; cursor: pointer;
  font-family: var(--caps); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--gold); background: transparent; border: 1px solid var(--gold);
}
.btn-solid { color: #fff; border: 0; background: var(--gold-grad); box-shadow: 0 8px 20px rgba(156, 122, 60, .3); }
.btn:disabled { opacity: .6; }

/* ---------- RSVP form ---------- */
.form { text-align: left; max-width: 380px; margin: 18px auto 0; display: grid; gap: 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(184, 146, 74, .5); border-radius: 999px; padding: 4px; background: rgba(255, 253, 249, .8); }
.seg label { position: relative; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px 6px; border-radius: 999px; font-size: 16px; transition: background .3s, color .3s; }
.seg input:checked + span { background: #A9843F; color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.field { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-family: var(--caps); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding: 0; margin-bottom: 4px; }
.field em { text-transform: none; letter-spacing: 0; font-family: var(--serif); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: rgba(255, 253, 249, .85);
  border: 1px solid rgba(184, 146, 74, .35); border-radius: 10px; padding: 10px 12px; outline: none; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 180, 108, .2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; border: 1px solid rgba(184, 146, 74, .35); border-radius: 10px; overflow: hidden; background: rgba(255, 253, 249, .85); }
.stepper button { border: 0; background: transparent; color: var(--gold); font-size: 22px; cursor: pointer; }
.stepper input { border: 0; border-radius: 0; text-align: center; background: transparent; box-shadow: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(184, 146, 74, .45); font-size: 16px; background: rgba(255, 253, 249, .8); transition: all .25s; }
.chip input:checked + span { background: #F4E8CF; border-color: var(--gold); }
.chip input:checked + span::before { content: '✓ '; color: var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); }
.form .btn-solid { justify-self: center; margin-top: 6px; }
.form-msg { text-align: center; min-height: 1.5em; margin: 0; font-style: italic; color: var(--sage-deep); }
.form-msg.err { color: var(--blush-deep); }
.form.declined .if-yes { display: none; }

/* ---------- blessings ---------- */
.bell-wrap { width: 90px; margin: 0 auto 6px; transform-origin: 50% 4%; }
.bell-wrap.ring { animation: ring 1.1s ease; }
@keyframes ring { 15% { transform: rotate(14deg); } 35% { transform: rotate(-11deg); } 55% { transform: rotate(7deg); } 75% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
.tokens { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 20px; }
.token { border: 0; background: none; cursor: pointer; padding: 0; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.token .disc { width: 62px; height: 62px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFFDF8, #F3E9D8); border: 1px solid rgba(184, 146, 74, .5); box-shadow: 0 6px 14px rgba(120, 95, 60, .14), inset 0 0 0 4px #FFFBF3, inset 0 0 0 5px rgba(184, 146, 74, .25); display: grid; place-items: center; transition: transform .25s; }
.token .disc svg { width: 50px; }
.token:active .disc { transform: scale(.92); }
.token small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.2; }
.token.sent .disc { box-shadow: 0 0 0 3px rgba(212, 180, 108, .45), 0 6px 14px rgba(120, 95, 60, .14), inset 0 0 0 4px #FFFBF3; }
.flyer { position: fixed; z-index: 60; width: 40px; height: 40px; pointer-events: none; transition: transform 1s cubic-bezier(.4, 0, .2, 1), opacity 1s; }
.sparkle { position: fixed; z-index: 61; width: 6px; height: 6px; border-radius: 50%; background: #E8CF8E; pointer-events: none; animation: spark .9s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; } }

/* ---------- footer ---------- */
.contacts { display: grid; gap: 10px; margin: 10px auto 30px; }
.contacts a { color: var(--ink); text-decoration: none; }
.contacts .who { display: block; font-weight: 500; }
.contacts .num { font-family: var(--caps); letter-spacing: .12em; font-size: 14px; color: var(--gold); }
.foot-crest { width: 150px; margin: 0 auto; }
.foot-note { font-style: italic; color: var(--ink-soft); margin-top: 14px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 360px) {
  body { font-size: 17px; }
  .names .n1, .names .n2 { font-size: 54px; }
  .token .disc { width: 54px; height: 54px; }
}

/* pastel accents */
.cd .unit:nth-child(1) { background: #FBF0D6; }
.cd .unit:nth-child(2) { background: #F8E3DE; }
.cd .unit:nth-child(3) { background: #E6EDE0; }
.cd .unit:nth-child(4) { background: #E1EAF0; }
.token:nth-child(1) .disc { background: radial-gradient(circle at 40% 35%, #FFF8F6, #F5D9D3); }
.token:nth-child(2) .disc { background: radial-gradient(circle at 40% 35%, #FFFBEF, #F9E7B8); }
.token:nth-child(3) .disc { background: radial-gradient(circle at 40% 35%, #FFF8F0, #F7D9BC); }
.token:nth-child(4) .disc { background: radial-gradient(circle at 40% 35%, #FBFDF8, #DCE7D5); }
.token:nth-child(5) .disc { background: radial-gradient(circle at 40% 35%, #FAFBFD, #DAE5EE); }
.rule span::after { background: var(--blush-deep); }

/* RSVP form, settled */
.form { background: rgba(255, 253, 249, .85); border: 1px solid rgba(184, 146, 74, .28); border-radius: 22px; padding: 22px 18px 24px; box-shadow: 0 12px 30px rgba(90, 70, 40, .08); gap: 18px; }
.if-yes { display: grid; gap: 18px; }
.field { gap: 0; }
.field > span { display: block; margin: 0 0 7px; line-height: 1.3; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip span { display: block; text-align: center; padding: 9px 8px; }
.two { align-items: end; }
.stepper { height: 46px; }
.stepper input { font-size: 20px; padding: 0; }
.field input, .field select, .field textarea { min-height: 46px; }
.field textarea { min-height: 70px; resize: vertical; }
.seg span { font-size: 17px; }
.chip span { position: relative; white-space: nowrap; font-size: 15.5px; padding: 10px 6px 10px 20px; }
.chip input:checked + span::before { content: '✓'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; }
.seg span { white-space: nowrap; }

/* ---------- hero dates: a highlighted ribbon that catches the eye after the doors open ---------- */
.hero-date { margin: 20px 0 6px; font-size: 16px; font-weight: 500; letter-spacing: .16em; }
.hero-date span {
  position: relative; display: inline-block; overflow: hidden; padding: 9px 22px 8px; border-radius: 999px;
  color: #6E5220; background: linear-gradient(180deg, #FDF3D6, #F8E3AE);
  border: 1px solid rgba(184, 146, 74, .55); box-shadow: 0 8px 22px -12px rgba(160, 120, 40, .7), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.hero-date span::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-20deg);
}
.hero-date.in span { animation: datePop .9s .25s ease-out both; }
.hero-date.in span::after { animation: dateShine 1.5s 1s ease-in-out 2; }
@keyframes datePop { 0% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(212, 170, 80, .5); } 60% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(212, 170, 80, 0); } 100% { transform: scale(1); } }
@keyframes dateShine { from { left: -60%; } to { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .hero-date.in span, .hero-date.in span::after { animation: none; } }

/* ---------- invitation lineage lines (Grand S/o, Daughter of…) ---------- */
.lineage { margin: 2px auto 4px; max-width: 340px; }
.lineage p { margin: 2px 0; font-size: 15.5px; line-height: 1.4; color: var(--ink-soft); text-wrap: balance; }
.invite .hosts { margin-top: 2px; }
.invite .hosts strong { color: var(--rose); }

/* ---------- dress code strip on each event ---------- */
.dress {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: min(100%, 330px); margin: 16px auto 6px;
  padding: 10px 18px 11px; border-radius: 14px; background: var(--acc-bg, #F6EDDC);
  border: 1px solid color-mix(in srgb, var(--acc, #B8924A) 40%, transparent);
}
.dress-k { font-family: var(--caps); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--acc, var(--gold)); }
.dress-v { font-size: 18px; font-style: italic; color: var(--ink); line-height: 1.3; }
.event-sangeet .dress { background: rgba(255, 255, 255, .08); border-color: rgba(233, 201, 135, .45); }
.event-sangeet .dress-v { color: #FFF8EC; }
.nb { white-space: nowrap; }
.invite .with { margin: 12px 0 2px; }
.dress {
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), color-mix(in srgb, var(--acc-bg, #F6EDDC) 55%, #fff));
  border: 1.5px solid color-mix(in srgb, var(--acc, #B8924A) 60%, transparent);
  box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--acc, #B8924A) 80%, transparent);
}
.dress-k::before, .dress-k::after { content: '✦'; margin: 0 .6em; font-size: 8px; vertical-align: 2px; letter-spacing: 0; }
.dress-v { text-wrap: balance; }

/* ---------- link to #SwarChit Live during the wedding ---------- */
.live-pill { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 253, 249, .95); border: 1px solid rgba(184, 146, 74, .45); box-shadow: 0 10px 26px rgba(90, 70, 40, .18); font-family: var(--caps); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8A6729; text-decoration: none; white-space: nowrap; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #C8505A; box-shadow: 0 0 0 0 rgba(200, 80, 90, .5); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(200, 80, 90, .5); } 70% { box-shadow: 0 0 0 9px rgba(200, 80, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 80, 90, 0); } }
body.locked .live-pill { display: none; }
.swarchit .btn { margin-top: 14px; text-decoration: none; }
.live-pill { left: max(16px, calc(50% - var(--col) / 2 + 16px)); transform: none; }
