/* ==========================================================================
   Sehaj & Piya — wedding e-invite
   Designed at 390px, fluid 320–430px, centred column on larger screens.
   Animate transform + opacity only.
   ========================================================================== */

:root {
  --ivory: #FBF7EE;
  --ivory-2: #F7F1E4;
  --taupe: #ECE5D8;
  --ink: #2B231C;
  --ink-soft: #43372A;
  --label: #4F4029;
  --gold-text: #6B4F1C;
  --gold-line: #C9A85F;
  --gold-light: #D8B25E;
  --lotus-1: #D9969B; --lotus-2: #C97A82; --lotus-3: #E3B3B0;
  --sage-1: #8FA383; --sage-2: #A7B99A;

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-script: "Pinyon Script", "Snell Roundhand", "Brush Script MT", cursive;
  --f-label: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-gurmukhi: "Noto Serif Gurmukhi", "Raavi", "Gurmukhi MN", serif;

  --ease-door: cubic-bezier(.7, 0, .2, 1);
  --col: 430px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--taupe); scroll-behavior: smooth; }
body {
  font-variant-numeric: lining-nums;
  margin: 0; background: var(--taupe); color: var(--ink);
  font-family: var(--f-display); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; height: 100vh; height: 100svh; }
html:has(body.locked) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
strong { font-weight: 600; }

.page {
  position: relative; max-width: var(--col); margin: 0 auto;
  background: var(--ivory); overflow-x: clip;
  box-shadow: 0 0 60px rgba(90, 77, 60, .12);
}
[lang="pa"] { font-family: var(--f-gurmukhi); font-weight: 500; }

/* ---------- shared bits ---------- */
.label {
  font-family: var(--f-label); font-weight: 500; font-size: 12px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--label);
}
.script { font-family: var(--f-script); font-weight: 400; line-height: 1.1; }
.hair { width: 1px; height: 46px; background: var(--gold-line); margin: 30px auto; }
.divider { width: 44px; height: 1px; background: var(--gold-line); margin: 22px auto; }
.sec { position: relative; padding: 76px 28px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* scroll reveals */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease-out, transform .8s ease-out; transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.rv.in { opacity: 1; transform: none; }

/* Mughal arch frame */
.arch {
  position: relative; margin: 0 auto; width: 100%; max-width: 310px;
  border: 1.5px solid var(--gold-line); border-radius: 150px 150px 8px 8px;
  padding: 8px; background: var(--ivory);
}
.arch-in {
  position: relative; overflow: hidden; border-radius: 142px 142px 3px 3px;
  aspect-ratio: var(--ar, 4 / 5); background: #e8dfcd;
}
.arch-in img {
  position: absolute; left: 0; top: -9%; width: 100%; height: 118%;
  object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform;
}

/* Directions + dress code (shared) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: 999px; text-decoration: none;
  font-family: var(--f-label); font-weight: 500; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }

.dress { margin-top: 30px; }
.swatches { display: flex; justify-content: center; gap: 16px; margin: 14px 0 12px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .16); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }

.date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 34px 0 26px; }
.date .l { text-align: right; } .date .r { text-align: left; }
.date .d { font-family: var(--f-display); font-weight: 600; font-size: 84px; line-height: .9; padding: 0 14px; border-inline: 1px solid currentColor; border-color: rgba(201, 168, 95, .6); }
.date .label { line-height: 1.7; }
.venue { font-weight: 600; font-size: 24px; line-height: 1.2; }
.place { font-style: italic; font-size: 18px; margin-top: 4px; }
.cta { margin-top: 30px; }

/* ==========================================================================
   1. Envelope
   ========================================================================== */
.env {
  --s: 1;
  position: relative; min-height: 100vh; min-height: 100svh; background: var(--taupe);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 0 14px; overflow: hidden; touch-action: pan-y;
}
.env {
  background:
    radial-gradient(70% 38% at 12% 6%, #F7C9C6 0%, rgba(247, 201, 198, 0) 72%),
    radial-gradient(60% 38% at 95% 12%, #F9DFAE 0%, rgba(249, 223, 174, 0) 72%),
    radial-gradient(70% 42% at 6% 92%, #CBE0CF 0%, rgba(203, 224, 207, 0) 72%),
    radial-gradient(70% 44% at 98% 90%, #C6D8EE 0%, rgba(198, 216, 238, 0) 72%),
    #F3EBDD;
}
.env-label, .env-foot, .env-fit { position: relative; z-index: 1; }
.env-label { margin-bottom: 14px; animation: softIn 1.2s ease-out backwards; }
.env-fit { animation: cardIn 1.6s cubic-bezier(.2, .7, .2, 1) .15s both; }
.env-foot { animation: softIn 1.4s ease-out .9s backwards; }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes softIn { from { opacity: 0; } to { opacity: 1; } }
.env-floats { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.env-floats .fl { position: absolute; opacity: .9; animation: drift 9s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg); } 50% { transform: translate3d(7px, -16px, 0) rotate(10deg); } }
.env-fit { width: calc(330px * var(--s)); height: calc(600px * var(--s)); }
.env-card {
  position: absolute; left: 0; top: 0; width: 330px; height: 600px;
  transform: scale(var(--s)); transform-origin: top left;
}
.env-inside {
  position: absolute; inset: 0; border-radius: 6px; background:
    radial-gradient(ellipse at 50% 38%, #fffdf7 0%, var(--ivory) 55%, var(--ivory-2) 100%);
  box-shadow: 0 24px 50px rgba(90, 77, 60, .22), 0 3px 10px rgba(90, 77, 60, .12);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 0 26px 30px; overflow: hidden;
}
.env-inside::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201, 168, 95, .7); border-radius: 3px; z-index: 2; pointer-events: none; }
.env-inside > :not(.in-bg) { position: relative; z-index: 1; }
.in-bg { position: absolute; left: 0; right: 0; top: 0; height: 56%; z-index: 0; overflow: hidden; border-radius: 6px 6px 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, rgba(0, 0, 0, .5) 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 60%, rgba(0, 0, 0, .5) 80%, transparent 100%); }
.in-bg picture { position: absolute; inset: 0; display: block; }
.in-bg img { position: absolute; left: 0; top: -4%; width: 100%; height: 108%; object-fit: cover; transform: scale(1.1); transform-origin: 30% 30%; }
.env.open .in-bg img { animation: descend 14s cubic-bezier(.25, .1, .25, 1) .3s both; }
@keyframes descend { from { transform: scale(1.1) translate3d(0, 3%, 0); } to { transform: scale(1.02) translate3d(0, -3%, 0); } }
.in-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 247, 238, 0) 62%, rgba(251, 247, 238, .45) 100%); }
.env-inside .ik { text-shadow: 0 0 10px #FBF7EE, 0 0 22px #FBF7EE, 0 0 34px #FBF7EE; font-family: var(--f-gurmukhi); font-weight: 500; font-size: 46px; line-height: 1; color: var(--gold-text); }
.env-inside .label { margin-top: 12px; line-height: 1.8; color: var(--label); }
.env-inside .welcome { font-size: 44px; color: var(--gold-text); margin-top: 10px; text-shadow: 0 0 14px #FBF7EE, 0 0 4px #FBF7EE; }
.env-inside .sprig { width: 200px; height: 51px; margin-top: 6px; }
.env-inside .scroll { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--f-display); font-style: italic; font-size: 17px; color: var(--ink-soft); }
.env-inside .scroll i { font-style: normal; font-size: 20px; line-height: 1; animation: bob 1.8s ease-in-out infinite; }
.env-inside > * { opacity: 0; transform: translateY(14px); transition: opacity .9s ease-out, transform .9s ease-out; }
.env.open .env-inside > * { opacity: 1; transform: none; }
.env.open .env-inside > :nth-child(1) { transition-delay: .2s; transition-duration: 1.6s; }
.env.open .env-inside > :nth-child(2) { transition-delay: .7s; }
.env.open .env-inside > :nth-child(3) { transition-delay: .85s; }
.env.open .env-inside > :nth-child(4) { transition-delay: 1s; }
.env.open .env-inside > :nth-child(5) { transition-delay: 1.2s; }
.env.open .env-inside > :nth-child(6) { transition-delay: 1.45s; }
@keyframes bob { 50% { transform: translateY(5px); } }

.door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(160deg, var(--ivory) 0%, var(--ivory-2) 100%);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 1.1s var(--ease-door), opacity .5s ease 1s;
  box-shadow: 0 0 22px rgba(90, 77, 60, .14);
}
.door::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201, 168, 95, .75); }
.door-l { background: radial-gradient(90% 34% at 12% 100%, rgba(244, 187, 184, .5), transparent 70%), radial-gradient(70% 24% at 100% 88%, rgba(249, 222, 170, .42), transparent 70%), linear-gradient(160deg, #FFF9EF 0%, #FBF0E2 100%); }
.door-r { background: radial-gradient(90% 34% at 88% 100%, rgba(190, 212, 236, .55), transparent 70%), radial-gradient(70% 24% at 0% 88%, rgba(196, 220, 196, .45), transparent 70%), linear-gradient(200deg, #FFF9EF 0%, #F6F0E3 100%); }
.door-l { left: 0; transform-origin: left center; border-radius: 6px 0 0 6px; }
.door-l::before { border-right: 0; border-radius: 3px 0 0 3px; }
.door-r { right: 0; transform-origin: right center; border-radius: 0 6px 6px 0; }
.door-r::before { border-left: 0; border-radius: 0 3px 3px 0; }
.door .corner { position: absolute; top: 10px; width: 104px; height: 104px; opacity: .95; }
.door-l .corner { left: 10px; }
.door-r .corner { right: 10px; transform: scaleX(-1); }
.env.open .door-l { transform: perspective(1400px) rotateY(-100deg); opacity: 0; }
.env.open .door-r { transform: perspective(1400px) rotateY(100deg); opacity: 0; }

.env-over { position: absolute; inset: 0; pointer-events: none; transition: opacity .45s ease; z-index: 3; }
.hero { position: absolute; left: 50%; top: 34px; width: 186px; margin-left: -93px; padding: 6px; border: 1.5px solid var(--gold-line); border-radius: 93px 93px 6px 6px; background: #FFFDF8; box-shadow: 0 10px 26px rgba(201, 122, 130, .22), 0 0 0 7px rgba(249, 223, 174, .45); }
.hero-in { position: relative; height: 214px; overflow: hidden; border-radius: 87px 87px 3px 3px; background: #EFE3D3; }
.hero-in picture { position: absolute; inset: 0; display: block; animation: heroIn 2.6s cubic-bezier(.2, .7, .2, 1) .5s both; }
.hero-in img { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: none; } }
.env-over .nm { position: absolute; left: 0; right: 0; margin: 0; text-align: center; font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: 7px; padding-left: 7px; color: var(--gold-text); }
.env-over .nm1 { top: 270px; } .env-over .nm2 { top: 346px; }
.hero-teddy { position: absolute; left: 24px; top: 190px; width: 68px; height: 75px; filter: drop-shadow(0 4px 5px rgba(120, 80, 40, .25)); }
.env-over .weds { position: absolute; left: 0; right: 0; top: 309px; margin: 0; text-align: center; font-size: 36px; line-height: 1; color: #A9566A; }
.env-over .dateline { position: absolute; left: 0; right: 0; top: 399px; margin: 0; text-align: center; font-size: 12.5px; line-height: 16px; letter-spacing: 3.5px; padding-left: 3.5px; color: var(--gold-text); }
.vellum {
  position: absolute; left: 0; right: 0; bottom: 48px; height: 128px;
  background: linear-gradient(180deg, rgba(255, 252, 246, .6), rgba(255, 252, 246, .78));
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border-block: 1px solid rgba(201, 168, 95, .55);
  display: flex; align-items: center; justify-content: center;
}
.seal {
  position: relative; width: 84px; height: 84px; border-radius: 50%; pointer-events: auto;
  background: radial-gradient(circle at 36% 30%, #F1CBB8 0%, #D9A28C 56%, #C48972 100%);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .45), inset 0 -4px 8px rgba(120, 60, 44, .28), 0 6px 14px rgba(120, 70, 50, .35);
  display: grid; place-items: center; animation: pulse 2.4s ease-in-out infinite;
  transition: opacity .3s ease, transform .3s ease;
}
.seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid rgba(255, 238, 225, .55); box-shadow: inset 0 0 6px rgba(120, 60, 44, .2); }
.seal::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(201, 138, 114, .6); animation: ripple 2.4s ease-out infinite; }
.seal span { font-family: var(--f-display); font-weight: 600; font-size: 25px; letter-spacing: 1px; color: #8B5340; text-shadow: 0 1px 0 rgba(255, 235, 222, .6); position: relative; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.seal.cracked { animation: none; opacity: 0; transform: scale(.9); }
.seal.cracked svg { opacity: 1; }
.seal.cracked::after { animation: none; opacity: 0; }
@keyframes pulse { 50% { transform: scale(1.05); } }
@keyframes ripple { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.env.open .env-over { opacity: 0; }
.env-glow { position: absolute; left: 50%; top: 485px; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; pointer-events: none; opacity: 0; z-index: 4;
  background: radial-gradient(circle, rgba(255, 244, 214, .95) 0%, rgba(249, 205, 190, .55) 38%, rgba(249, 205, 190, 0) 70%); }
.env.bloom .env-glow { animation: bloom 1.7s ease-out both; }
@keyframes bloom { 0% { opacity: 0; transform: scale(.2); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(3.4); } }
.env-burst { position: absolute; left: 50%; top: calc(485px * var(--s)); width: 0; height: 0; z-index: 6; pointer-events: none; }
.env-burst i { position: absolute; left: -4px; top: -10px; border-radius: 50%; opacity: 0; animation: petal 3.2s cubic-bezier(.2, .6, .3, 1) both; }
@keyframes petal {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0) scale(.4); }
  12% { opacity: .95; }
  45% { opacity: .95; transform: translate3d(calc(var(--dx) * .8), var(--dy), 0) rotate(calc(var(--r) * .5)) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--dx), calc(var(--dy) + var(--fall)), 0) rotate(var(--r)) scale(.9); }
}

.env-foot { margin-top: 16px; text-align: center; transition: opacity .4s ease; }
.env-foot .hint { font-style: italic; font-size: 19px; color: var(--ink-soft); }
.env-foot .sound { margin-top: 4px; font-family: var(--f-label); font-size: 12px; letter-spacing: 2px; color: var(--label); }
.env.open .env-foot { opacity: 0; pointer-events: none; }

/* ==========================================================================
   2. Blessing & families
   ========================================================================== */
.blessing { min-height: 100vh; min-height: 100svh; padding: 50px 14px 0; display: flex;
  background: radial-gradient(90% 26% at 50% 0%, rgba(247, 200, 74, .2), transparent 70%), radial-gradient(80% 22% at 50% 100%, rgba(157, 186, 132, .22), transparent 70%), var(--ivory); }
.b-arch {
  position: relative; flex: 1; border-radius: 200px 200px 0 0;
  padding: 92px 18px 92px; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: radial-gradient(70% 22% at 50% 4%, rgba(255, 236, 180, .45), transparent 75%), linear-gradient(180deg, #FFFCF5 0%, #FDF5E6 100%);
}
.b-apex { position: absolute; z-index: 2; left: 50%; top: -36px; width: 170px; height: 70px; margin-left: -85px; display: grid; place-items: center; }
.b-apex::before { content: ""; position: absolute; left: 36px; right: 36px; top: 26px; height: 20px; background: #FEFAF1; }
.b-apex svg { position: relative; width: 170px; height: 70px; overflow: visible; }
.b-base { position: absolute; left: 34px; right: 34px; bottom: 30px; display: flex; align-items: center; gap: 12px; }
.b-base i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 168, 95, 0), var(--gold-line)); }
.b-base i:last-child { background: linear-gradient(270deg, rgba(201, 168, 95, 0), var(--gold-line)); }
.b-base b { width: 7px; height: 7px; border: 1px solid var(--gold-line); transform: rotate(45deg); box-shadow: 0 0 0 4px #FDF6E8, 0 0 0 5px rgba(201, 168, 95, .45); }
.orn { display: flex; align-items: center; gap: 10px; width: 210px; margin: 18px auto 20px; }
.orn i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 168, 95, 0), var(--gold-line)); }
.orn i:last-child { background: linear-gradient(270deg, rgba(201, 168, 95, 0), var(--gold-line)); }
.orn .orn-sf { width: 26px; height: 26px; flex: none; }
.plate { position: relative; width: 100%; max-width: 290px; margin: 8px auto 18px; padding: 12px 8px 11px; border-block: 1px solid rgba(201, 168, 95, .6); }
.plate::before, .plate::after { content: ""; position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -4px; background: #FEF8EC; border: 1px solid var(--gold-line); transform: rotate(45deg); }
.plate::before { top: -5px; } .plate::after { bottom: -5px; }
.plate + .plate { margin-top: 14px; }
.plate p { font-weight: 600; font-size: 20.5px; line-height: 1.32; color: var(--ink); letter-spacing: .2px; }
.plate .amp { font-style: italic; font-weight: 400; font-size: 22px; color: var(--gold-text); margin-right: 1px; }
.b-sec { display: flex; flex-direction: column; align-items: center; }
.b-ik { font-family: var(--f-gurmukhi); font-weight: 500; font-size: 40px; line-height: 1; color: var(--gold-text); }
.b-guru { margin-top: 14px; font-size: 24px; color: var(--ink); }
.b-trans { margin-top: 4px; padding-left: 3px; }
.b-sec .it { font-style: italic; color: var(--ink-soft); font-size: 18px; line-height: 1.35; }
.b-sec .nm { font-weight: 600; font-size: 21px; line-height: 1.3; color: var(--ink); margin: 4px 0 12px; max-width: 280px; }
.b-sec .req { max-width: 270px; margin-top: 2px; text-wrap: balance; }
.b-names { margin: 12px 0 18px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.b-names .script { font-size: 58px; color: var(--gold-text); }
.b-names .orn.with { width: 170px; margin: 4px auto 0; }
.b-names .orn.with .label { letter-spacing: 5px; color: var(--gold-text); font-size: 11.5px; padding-left: 5px; }

/* ==========================================================================
   3. Our story
   ========================================================================== */
.story { padding-top: 40px; }
.story-head .label { color: var(--gold-text); }
.story-head .script { font-size: 60px; color: var(--gold-text); margin-top: 8px; }
.story-head .sub { font-style: italic; color: var(--ink-soft); font-size: 19px; margin-top: 6px; }
.chap { margin-top: 0; }
.chap-no { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--f-label); font-size: 11px; letter-spacing: 3px; color: var(--gold-text); }
.chap-no b { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: 1px; }
.chap h3 { font-family: var(--f-script); font-weight: 400; font-size: 38px; line-height: 1.15; color: var(--gold-text); margin: 6px 0 22px; }
.cap { font-style: italic; color: var(--ink-soft); font-size: 18.5px; line-height: 1.4; max-width: 300px; margin: 22px auto 0; }
.cap strong { font-style: normal; color: var(--ink); }

.chat { position: relative; max-width: 300px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 14px 16px 16px; text-align: left; box-shadow: 0 10px 30px rgba(90, 77, 60, .14); border: 1px solid rgba(201, 168, 95, .25); }
.chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #F0EADF; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #F1CBB8, #C98F86); display: grid; place-items: center; font-weight: 600; font-size: 19px; color: #5B3328; flex: none; }
.chat-top b { display: block; font-family: var(--f-label); font-weight: 500; font-size: 14px; line-height: 1.2; color: var(--ink); }
.chat-top small { font-family: var(--f-label); font-size: 11.5px; color: #8C8170; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; min-height: 150px; }
.chat-deco { position: absolute; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(90, 40, 30, .18)); }
.chat-deco.d1 { width: 34px; height: 39px; top: -16px; right: -10px; transform: rotate(18deg); }
.chat-deco.d2 { width: 24px; height: 28px; top: 8px; right: 20px; transform: rotate(-14deg); opacity: .9; }
.chat-deco.d3 { width: 38px; height: 46px; bottom: -16px; left: -12px; transform: rotate(-10deg); }
.sticker { position: relative; align-self: flex-start; width: 104px; height: 70px; margin: 2px 0 2px 4px; opacity: 0; transform: scale(.4) rotate(-8deg); transform-origin: 20% 80%;
  transition: opacity .3s ease, transform .6s cubic-bezier(.3, 1.7, .5, 1); }
.sticker.show { opacity: 1; transform: none; }
.sticker svg { position: absolute; filter: drop-shadow(0 4px 5px rgba(80, 40, 20, .2)); }
.sticker .s-jar { left: 22px; top: 0; width: 56px; height: 68px; }
.sticker .s-b1 { left: 0; bottom: 0; width: 32px; height: 37px; transform: rotate(-16deg); }
.sticker .s-b2 { left: 70px; bottom: -2px; width: 28px; height: 32px; transform: rotate(14deg); }
.bub { max-width: 90%; padding: 9px 14px; border-radius: 18px; font-family: var(--f-label); font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s ease, transform .35s ease; }
.bub.show { opacity: 1; transform: none; }
.bub.l { align-self: flex-start; background: #F1ECE2; color: var(--ink); border-bottom-left-radius: 5px; transform-origin: left bottom; }
.bub.r { align-self: flex-end; background: #C98F86; color: #2E1814; border-bottom-right-radius: 5px; transform-origin: right bottom; }
.bub .dots { display: flex; gap: 4px; padding: 5px 0; }
.bub .dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; animation: typing 1s ease-in-out infinite; }
.bub .dots i:nth-child(2) { animation-delay: .15s; } .bub .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .3; } 30% { transform: translateY(-4px); opacity: .85; } }
.seen { align-self: flex-end; font-family: var(--f-label); font-size: 11px; color: #8C8170; opacity: 0; transition: opacity .5s ease; margin-top: -4px; }
.seen.show { opacity: 1; }

.run { max-width: 320px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid rgba(201, 168, 95, .45); background: linear-gradient(180deg, #F4EEDF 0%, #EDF0E2 100%); box-shadow: 0 10px 28px rgba(90, 77, 60, .1); }
.run svg { width: 100%; height: auto; }
.run .tag { font-family: var(--f-label); font-weight: 500; font-size: 9px; letter-spacing: 2px; }
.garden { margin-top: 44px; }
.runner .leg, .runner .arm { transform-box: fill-box; transform-origin: 50% 0; }
.runner.moving .la { animation: swing .34s ease-in-out infinite alternate; }
.runner.moving .lb { animation: swing .34s ease-in-out infinite alternate-reverse; }
.runner.moving .aa { animation: swing .34s ease-in-out infinite alternate-reverse; }
.runner.moving .ab { animation: swing .34s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-32deg); } to { transform: rotate(32deg); } }
.run .rheart { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .6s ease, transform .8s cubic-bezier(.3, 1.6, .5, 1); }
.run svg.won .rheart { opacity: 1; transform: none; }
.garden .arch { max-width: 300px; --ar: 4 / 5.2; }
.garden .arch-in { aspect-ratio: 4 / 5.2; }

.polaroid { position: relative; width: min(286px, 88%); margin: 8px auto 0; padding: 12px 12px 14px; background: #fff; transform: rotate(-5deg); box-shadow: 0 14px 30px rgba(90, 77, 60, .22), 0 2px 5px rgba(90, 77, 60, .12); }
.polaroid.rv { transform: translateY(24px) rotate(-5deg); }
.polaroid.rv.in { transform: rotate(-5deg); }
.polaroid .ph { aspect-ratio: 4 / 3.6; overflow: hidden; background: #e8dfcd; position: relative; }
.polaroid .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.polaroid .script { font-size: 32px; color: var(--gold-text); text-align: center; margin-top: 8px; line-height: 1.1; }
.lead-out { font-style: italic; color: var(--ink-soft); font-size: 20px; line-height: 1.4; max-width: 280px; margin: 0 auto; }
.lead-out i { display: block; font-style: normal; color: var(--gold-text); font-size: 24px; margin-top: 12px; animation: bob 1.8s ease-in-out infinite; }

/* ==========================================================================
   4. Sagan
   ========================================================================== */
.ev-sagan { background: #1C2540; color: #F6EFE2; padding-bottom: 84px; overflow: hidden; }
.ev-sagan::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(227, 199, 138, .55); pointer-events: none; z-index: 2; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; border-radius: 50%; background: #E3C78A; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .85; } }
.ev-sagan > *:not(.stars) { position: relative; z-index: 1; }
.ev-sagan .label { color: #C9D3E8; }
.ev-sagan .kick { color: #E3C78A; }
.ev-sagan h2 { font-family: var(--f-script); font-weight: 400; font-size: 52px; line-height: 1.1; color: #E3C78A; margin: 12px 0 8px; }
.ev-sagan .arch { border-color: #E3C78A; background: #1C2540; margin-top: 30px; }
.ev-sagan .arch-in { background: #2A3560; }
.ev-sagan .date .d { color: #E3C78A; }
.ev-sagan .date .label { color: #C9D3E8; }
.ev-sagan .venue { color: #F6EFE2; }
.ev-sagan .place { color: #C9D3E8; }
.ev-sagan .swatch { border-color: rgba(246, 239, 226, .4); }
.ev-sagan .btn { background: #E3C78A; color: #1C2540; }

/* ==========================================================================
   5. Cocktail
   ========================================================================== */
.ev-cocktail { background: #F6F2E0; padding-top: 168px; color: #2F5D3A; overflow: hidden; }
.garland { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; }
.garland .sway { animation: sway 4.6s ease-in-out infinite; transform-box: view-box; }
@keyframes sway { 0%, 100% { transform: rotate(-2.4deg); } 50% { transform: rotate(2.4deg); } }
.ev-cocktail .label { color: #365C38; }
.ev-cocktail h2 { font-family: var(--f-script); font-weight: 400; font-size: 44px; line-height: 1.12; color: #2F5D3A; margin: 10px 0 10px; }
.ev-cocktail .sub { font-style: italic; font-size: 19px; color: #365C38; }
.ev-cocktail .arch { margin-top: 32px; border: 3px solid #E8892E; background: #F6F2E0; box-shadow: 0 0 0 6px #F2C14E; max-width: 292px; }
.ev-cocktail .arch-in { background: #e6dfbf; }
.ev-cocktail .date { margin-top: 44px; }
.ev-cocktail .date .d { color: #C2621A; border-color: rgba(232, 137, 46, .55); }
.ev-cocktail .venue { color: #2F5D3A; }
.ev-cocktail .place { color: #365C38; }
.ev-cocktail .btn { background: #2F5D3A; color: #F6F2E0; }
.ev-cocktail { padding-bottom: 84px; }

/* ==========================================================================
   6. Anand Karaj
   ========================================================================== */
.ev-wedding { background: #FBF5F1; padding-bottom: 90px; overflow: hidden; }
.ev-wedding::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-line); pointer-events: none; }
.ev-wedding::after { content: ""; position: absolute; inset: 16px; border: 1px solid #E9B8BE; pointer-events: none; }
.ev-wedding .vc { position: absolute; width: 74px; height: 74px; z-index: 1; pointer-events: none; }
.ev-wedding .vc.tl { top: 16px; left: 16px; }
.ev-wedding .vc.tr { top: 16px; right: 16px; transform: scaleX(-1); }
.ev-wedding .vc.bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
.ev-wedding .vc.br { bottom: 16px; right: 16px; transform: scale(-1, -1); }
.ev-wedding > *:not(.vc) { position: relative; z-index: 2; }
.ev-wedding .rv { transition-duration: 1.2s; }
.ev-wedding .kick { color: var(--gold-text); }
.ev-wedding h2 { font-family: var(--f-script); font-weight: 400; font-size: 54px; line-height: 1.1; color: var(--gold-text); margin: 10px 0 8px; }
.ev-wedding .arch { max-width: 340px; border-color: var(--gold-line); border-radius: 170px 170px 8px 8px; background: #FBF5F1; margin-top: 30px; }
.ev-wedding .arch-in { border-radius: 162px 162px 3px 3px; aspect-ratio: 5 / 4.6; }
.gurbani { margin: 40px auto 0; max-width: 310px; background: #fff; border-radius: 18px; border: 1px solid #F3D9DC; padding: 28px 20px 24px; box-shadow: 0 12px 30px rgba(169, 120, 110, .14); }
.gurbani .gl { display: block; font-family: var(--f-gurmukhi); font-weight: 500; font-size: 21px; line-height: 1.95; color: var(--ink); }
.gurbani .mean { font-style: italic; color: var(--ink-soft); font-size: 17.5px; line-height: 1.45; margin-top: 16px; }
.gurbani .src { margin-top: 16px; font-size: 11px; letter-spacing: 2.4px; color: var(--gold-text); }
.ev-wedding .date { margin-top: 44px; }
.ev-wedding .date .d { color: var(--gold-text); }
.ev-wedding .venue { color: var(--ink); }
.ev-wedding .place { color: var(--ink-soft); }
.laavan { margin-top: 46px; }
.laavan .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; }
.lv .c { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 19px; color: #5A4D3C; background: var(--bg); border: 1px solid rgba(138, 106, 46, .35); opacity: .3; transform: scale(.88); transition: opacity 1.1s ease, transform 1.1s ease, box-shadow 1.1s ease; transition-delay: calc(var(--i) * 900ms); }
.lv p { font-style: italic; font-size: 15px; line-height: 1.25; color: var(--ink-soft); margin-top: 10px; padding: 0 2px; opacity: .35; transition: opacity 1.1s ease; transition-delay: calc(var(--i) * 900ms); }
.laavan.lit .lv .c { opacity: 1; transform: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--bg) 35%, transparent), 0 6px 16px rgba(138, 106, 46, .18); }
.laavan.lit .lv p { opacity: 1; }
.ev-wedding .note { font-style: italic; color: var(--ink-soft); font-size: 17px; margin-top: 4px; }
.ev-wedding .btn { background: var(--gold-text); color: #FBF7EE; }

/* ==========================================================================
   7. Countdown
   ========================================================================== */
.cd { position: relative; background: var(--ivory); padding-bottom: 130px; text-align: center; }
.cd-hero { position: relative; height: 320px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, transparent 100%); background: #d9cdb6; }
.cd-hero img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); }
.portrait { position: relative; z-index: 2; width: 132px; height: 132px; margin: -76px auto 0; border-radius: 50%; overflow: hidden; border: 4px solid var(--ivory); box-shadow: 0 0 0 1.5px var(--gold-line), 0 10px 24px rgba(90, 77, 60, .2); background: #e8dfcd; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.cd h2 { font-family: var(--f-script); font-weight: 400; font-size: 50px; line-height: 1.1; color: var(--gold-text); margin: 22px 20px 8px; }
.cd .label { color: var(--gold-text); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; margin: 30px auto 0; padding: 0 22px; }
.tile { background: #fff; border: 1px solid rgba(201, 168, 95, .55); border-radius: 40px 40px 8px 8px; padding: 18px 0 12px; box-shadow: 0 8px 20px rgba(90, 77, 60, .1); }
.tile .num { position: relative; height: 48px; overflow: hidden; font-weight: 600; font-size: 42px; line-height: 48px; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.tile .num span { position: absolute; inset: 0; }
.tile .num .in { animation: digIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.tile .num .out { animation: digOut .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes digIn { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes digOut { from { transform: none; opacity: 1; } to { transform: translateY(-70%); opacity: 0; } }
.tile .label { font-size: 11px; letter-spacing: 2px; margin-top: 4px; color: var(--label); }
.cd-msg { margin: 30px 22px 0; display: none; }
.cd-msg .heart { width: 34px; height: 34px; margin: 0 auto 8px; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.12); } }
.cd[data-state="now"] .tiles, .cd[data-state="after"] .tiles { display: none; }
.cd[data-state="now"] .cd-msg { display: block; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; margin-top: 34px; padding: 0 22px 0 16px; border: 1px solid var(--gold-line); border-radius: 999px; background: #fff; font-family: var(--f-label); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-text); box-shadow: 0 6px 16px rgba(90, 77, 60, .1); }
.pill svg { width: 20px; height: 20px; }
.pill[hidden] { display: none; }
.closing { font-style: italic; font-size: 20px; line-height: 1.4; color: var(--ink-soft); max-width: 280px; margin: 40px auto 0; }
.cd-teddy { position: relative; width: 100px; height: 110px; margin: 30px auto 0; }
.signoff { font-size: clamp(30px, 9.6vw, 40px); white-space: nowrap; color: var(--gold-text); margin-top: 14px; }

/* ---------- last page: pencil-and-colour photo collage ---------- */
.cd-hero.collage { height: 350px; margin-top: 26px; background: transparent; overflow: visible;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
.collage .cl { position: absolute; transform: rotate(var(--r));
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 55%, transparent 100%); }
.collage .cl img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transform: none; }
.collage .cl .sk { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.5, 0, .3, 1) calc(var(--i) * 450ms); }
.collage .cl .co { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease calc(var(--i) * 450ms + 1100ms); }
.collage.draw .cl .sk { clip-path: inset(0 0 0 0); }
.collage.draw .cl .co { opacity: .62; }
.collage.draw .cl { animation: clFloat 7s ease-in-out calc(var(--i) * -1.7s) infinite; }
@keyframes clFloat { 0%, 100% { transform: rotate(var(--r)) translate3d(0, 0, 0); } 50% { transform: rotate(calc(var(--r) + 1.4deg)) translate3d(0, -6px, 0); } }
.collage .blot { position: absolute; border-radius: 50%; filter: blur(18px); opacity: 0; transition: opacity 2s ease .3s; }
.collage .b1 { left: -6%; top: 18%; width: 52%; height: 58%; background: radial-gradient(circle, rgba(247, 200, 74, .55), rgba(247, 200, 74, 0) 70%); }
.collage .b2 { right: -8%; top: 2%; width: 50%; height: 56%; background: radial-gradient(circle, rgba(233, 168, 174, .55), rgba(233, 168, 174, 0) 70%); }
.collage .b3 { left: 26%; top: 44%; width: 50%; height: 50%; background: radial-gradient(circle, rgba(169, 192, 163, .5), rgba(169, 192, 163, 0) 70%); }
.collage.draw .blot { opacity: 1; }
.collage .glint { position: absolute; width: 14px; height: 14px; fill: #D8B25E; z-index: 5; opacity: 0; animation: glint 3.4s ease-in-out infinite; }
@keyframes glint { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .9; transform: scale(1) rotate(45deg); } }
.cd-top h2 { margin-top: -6px; }

/* ---------- last page: childhood picture melting into the page ---------- */
.cd-hero.kid { height: 440px; }
.kid-ph { position: absolute; left: 4%; right: 4%; top: 0; bottom: 0;
  -webkit-mask-image: radial-gradient(ellipse 64% 74% at 50% 40%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 64% 74% at 50% 40%, #000 52%, transparent 100%); }
.kid-ph img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transform: none; }
.kid-ph .sk { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.5, 0, .3, 1); }
.kid-ph .co { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease 1.5s; }
.kid.draw .kid-ph .sk { clip-path: inset(0 0 0 0); }
.kid.draw .kid-ph .co { opacity: .78; }
.kid.draw .kid-ph { animation: kidBreathe 8s ease-in-out 3.5s infinite; }
@keyframes kidBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.kid .kh { position: absolute; z-index: 4; fill: #E98E8E; opacity: 0; }
.kid.draw .kh { animation: khFloat 5.6s ease-out infinite; }
@keyframes khFloat { 0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(.5); } 15% { opacity: .9; } 70% { opacity: 0; transform: translate3d(6px, -70px, 0) scale(1.1) rotate(10deg); } 100% { opacity: 0; } }

/* ---------- last page selfie: pencil sketch → watercolour bloom → shine → slow drift ---------- */
.cd-hero.finale { height: 350px; }
.finale .kid-ph { left: 0; right: 0;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 46%, #000 54%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 46%, #000 54%, transparent 100%); }
.finale .kid-ph .co { opacity: 1; transition: -webkit-mask-size 2.6s cubic-bezier(.35, 0, .2, 1) 1.5s, mask-size 2.6s cubic-bezier(.35, 0, .2, 1) 1.5s;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 40%, transparent 70%); mask-image: radial-gradient(circle at 50% 42%, #000 40%, transparent 70%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 50% 42%; mask-position: 50% 42%; -webkit-mask-size: 0% 0%; mask-size: 0% 0%; }
.finale.draw .kid-ph .co { opacity: .95; -webkit-mask-size: 320% 320%; mask-size: 320% 320%; }
.finale.draw .pen-track { animation: penMove 1.6s cubic-bezier(.5, 0, .3, 1) both; }
.finale .kid-ph::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; transform: translate3d(-120%, 0, 0);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 250, 232, .6) 50%, transparent 65%); }
.finale.draw .kid-ph::after { animation: shine 1.9s ease-in-out 4s both; }
@keyframes shine { to { transform: translate3d(120%, 0, 0); } }
.finale.draw .kid-ph { animation: finaleDrift 16s ease-in-out 5s infinite alternate; }
@keyframes finaleDrift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.05) translate3d(-1.5%, -1%, 0); } }

/* ---------- readability: fuller italic weight for all body lines ---------- */
.it, .cap, .place, .closing, .sub, .gurbani .mean, .lv p, .lead-out, .env-foot .hint, .env-inside .scroll, .note, .cd .closing { font-weight: 500; }
.b-sec .it { font-size: 19px; }
.plate p { font-weight: 600; color: var(--ink); }

/* event names under the chapter titles (SAGAN, ANAND KARAJ) */
.label.ev-name { font-size: 19px; font-weight: 500; letter-spacing: 6px; padding-left: 6px; margin-top: 4px; }
.ev-sagan .label.ev-name { color: #E3C78A; }
.ev-wedding .label.ev-name { color: var(--gold-text); }

/* larger key lines: Anand Karaj venue hall, THE FOUR LAAVAN, last-page date */
.ev-wedding .place { font-size: 21px; }
.laavan > .label { font-size: 16px; letter-spacing: 4.5px; padding-left: 4px; color: var(--gold-text); }
#cd-label { font-size: 16px; letter-spacing: 4px; line-height: 1.7; padding: 0 16px 0 20px; }

/* ---------- scroll guide ---------- */
.scroll-cue { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 49; min-height: 44px; padding: 0 14px 0 16px;
  display: flex; align-items: center; gap: 4px; border-radius: 999px; background: rgba(251, 247, 238, .92); border: 1px solid var(--gold-line);
  color: var(--gold-text); font-family: var(--f-label); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(90, 77, 60, .18); opacity: 0; transform: translate3d(-50%, 10px, 0); pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
.scroll-cue.show { opacity: 1; transform: translate3d(-50%, 0, 0); pointer-events: auto; }
.scroll-cue svg { width: 18px; height: 18px; animation: cueBob 1.6s ease-in-out infinite; }
@keyframes cueBob { 0%, 100% { transform: translate3d(0, -2px, 0); } 50% { transform: translate3d(0, 3px, 0); } }

/* ---------- tap gesture on the seal ---------- */
.tap-ring { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; overflow: visible; pointer-events: none;
  animation: ringSpin 20s linear infinite; }
.tap-ring text { font-family: var(--f-label); font-size: 8.6px; font-weight: 500; letter-spacing: 1px; fill: var(--gold-text); }
.tap-ring .tr-line { fill: none; stroke: rgba(201, 168, 95, .55); stroke-width: .8; stroke-dasharray: 1.5 3.5; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.env.open .tap-ring, .seal.cracked ~ .tap-ring { opacity: 0; transition: opacity .3s ease; }
.b-sec .label.gp { color: var(--gold-text); margin-top: 6px; letter-spacing: 3.5px; padding-left: 3.5px; }

/* ---------- storybook frame: blessing + love story inside one gold arch ---------- */
.storybook { position: relative; padding-bottom: 36px; }
.sb-frame { position: absolute; left: 14px; right: 14px; top: 50px; bottom: 36px; z-index: 1; pointer-events: none;
  border: 1.5px solid var(--gold-line); border-radius: 200px 200px 0 0; }
.sb-frame i { position: absolute; inset: 7px; border: 1px solid rgba(201, 168, 95, .6); border-radius: 193px 193px 0 0; }
.sb-frame b { position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: var(--ivory);
  border: 1px solid var(--gold-line); transform: rotate(45deg); box-shadow: 0 0 0 5px var(--ivory); }
.story { padding-left: 32px; padding-right: 32px; }

/* ---------- teddy: waves, bobs, sends up hearts ---------- */
.bear { animation: bearBob 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.bear img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bear .b-arm { transform-origin: 70.2% 57.2%; animation: wave 3.6s ease-in-out infinite; }
.b-heart { position: absolute; right: -6%; top: 4%; width: 24%; opacity: 0; animation: heartUp 3.6s ease-out infinite; }
.b-heart.h2 { right: 10%; top: -2%; width: 16%; animation-delay: 1.2s; }
@keyframes wave { 0%, 52%, 100% { transform: rotate(0); } 9% { transform: rotate(-16deg); } 18% { transform: rotate(7deg); } 28% { transform: rotate(-14deg); } 38% { transform: rotate(5deg); } 46% { transform: rotate(-4deg); } }
@keyframes bearBob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(0, -3px, 0) rotate(-2deg); } }
@keyframes heartUp { 0%, 12% { opacity: 0; transform: translate3d(0, 8px, 0) scale(.5); } 24% { opacity: .95; } 70% { opacity: 0; transform: translate3d(8px, -40px, 0) scale(1); } 100% { opacity: 0; } }

/* ---------- ambient petals + glints (canvas, transform-free, pointer-transparent) ---------- */
.ambient { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 40; pointer-events: none; transition: opacity 2.4s ease; }

/* ---------- floating sound button ---------- */
.fab {
  position: fixed; bottom: 16px; right: max(14px, calc((100vw - var(--col)) / 2 + 14px)); z-index: 50;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); color: var(--gold-text);
  border: 1px solid var(--gold-line); box-shadow: 0 6px 16px rgba(90, 77, 60, .25);
  display: grid; place-items: center; opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .5s ease, transform .5s ease;
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab svg { width: 22px; height: 22px; }
.fab .off { display: none; }
.fab.muted .on { display: none; } .fab.muted .off { display: block; }

/* ---------- soft image reveal: settles in while a wash lifts away ---------- */
.imgfx { --veil: var(--ivory); }
.ev-sagan .imgfx { --veil: #1C2540; }
.ev-cocktail .imgfx { --veil: #F6F2E0; }
.ev-wedding .imgfx { --veil: #FBF5F1; }
.polaroid .imgfx { --veil: #fff; }
.imgfx > .slides { position: absolute; inset: 0; opacity: 0; transform: scale(1.16); transition: opacity 1.8s ease, transform 2.6s cubic-bezier(.2, .7, .2, 1); }
.imgfx.fx-in > .slides { opacity: 1; transform: none; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease; }
.slide.on { opacity: 1; }
.slide picture { position: absolute; inset: 0; display: block; }
.polaroid .slide img { transform: scale(1.06); transition: transform 6s ease-out; }
.polaroid .slide.on img { transform: none; }
.slide .sk, .slide .col { position: absolute; inset: 0; }
[data-mode="sketch"] .slide { transition: none; }
[data-mode="sketch"] .slide.on { opacity: 1; z-index: 1; }
[data-mode="sketch"] .slide.in { opacity: 1; z-index: 2; }
.slide.in .sk { animation: sketchIn .95s cubic-bezier(.5, 0, .3, 1) both; }
.slide.in .col { animation: colorIn .9s ease 1s both; }
@keyframes sketchIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes colorIn { from { opacity: 0; } to { opacity: 1; } }
.pen-track { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
.drawing .pen-track { animation: penMove .95s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes penMove { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 8%, 90% { opacity: 1; } 100% { transform: translate3d(100%, 0, 0); opacity: 0; } }
.pencil { position: absolute; left: -12px; top: 44%; width: 42px; height: 42px; filter: drop-shadow(0 3px 3px rgba(60, 40, 20, .25)); animation: scribble .2s ease-in-out infinite alternate; }
@keyframes scribble { from { transform: translate3d(0, -12px, 0) rotate(-5deg); } to { transform: translate3d(0, 12px, 0) rotate(4deg); } }
.garden .pdots { margin-top: 6px; }
.pdots { display: flex; justify-content: center; gap: 0; margin-top: 8px; }
.pdots button { width: 44px; height: 44px; display: grid; place-items: center; }
.pdots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold-line); transition: background .3s ease, transform .3s ease; }
.pdots button[aria-current="true"] i { background: var(--gold-line); transform: scale(1.25); }
.imgfx > picture { position: absolute; inset: 0; display: block; opacity: 0; transform: scale(1.16);
  transition: opacity 1.8s ease, transform 2.6s cubic-bezier(.2, .7, .2, 1); }
.imgfx > picture img { width: 100%; }
.imgfx.fx-in > picture { opacity: 1; transform: none; }
.imgfx::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, var(--veil) 0%, var(--veil) 66%, transparent 100%);
  transition: transform 2.2s cubic-bezier(.55, 0, .2, 1) .1s; }
.imgfx.fx-in::after { transform: translate3d(0, -104%, 0); }
.portrait.imgfx > picture img, .polaroid .ph.imgfx > picture img { height: 100%; }

/* ---------- small phones ---------- */
@media (max-width: 350px) {
  .sec { padding-left: 20px; padding-right: 20px; }
  .date .d { font-size: 68px; padding: 0 10px; }
  .date { gap: 8px; }
  .date .label { font-size: 10.5px; letter-spacing: 1.6px; }
  .tile .num { font-size: 36px; }
  .tiles { padding: 0 16px; gap: 9px; }
  .ev-cocktail h2 { font-size: 38px; }
  .cd h2 { font-size: 42px; }
  .lv p { font-size: 13.5px; }
  .gurbani .gl { font-size: 19px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { transform: none; transition: opacity .5s ease; }
  .polaroid.rv, .polaroid.rv.in { transform: rotate(-5deg); }
  .door { transition: opacity .6s ease; }
  .env.open .door-l, .env.open .door-r { transform: none; opacity: 0; }
  .seal, .seal::after, .stars i, .garland .sway, .lead-out i, .env-inside .scroll i, .cd-msg .heart { animation: none; }
  .tile .num .in, .tile .num .out { animation-duration: .01s; }
  .bub { transform: none; }
  .lv .c { transform: none; }
  .arch-in img, .cd-hero img { transform: none; }
  .env-fit, .env-label, .env-foot, .hero-in picture { animation: none; }
  .env-floats .fl, .bear, .bear .b-arm, .runner .leg, .runner .arm { animation: none !important; }
  .b-heart { display: none; }
  .tap-ring, .collage.draw .cl, .collage .glint, .kid.draw .kid-ph, .kid.draw .kh, .scroll-cue svg { animation: none !important; }
  .collage .glint { opacity: .7; }
  .collage .cl .sk, .collage .cl .co, .kid-ph .sk, .kid-ph .co { transition: none !important; }
  .kid .kh, .finale .pen-track { display: none; }
  .finale .kid-ph .co { -webkit-mask-size: 320% 320%; mask-size: 320% 320%; }
  .finale.draw .kid-ph, .finale.draw .kid-ph::after { animation: none !important; }
  .imgfx > picture, .imgfx > .slides { transform: none; transition: opacity .6s ease; }
  .env.open .in-bg img { animation: none; }
  .sticker { transform: none; }
  .imgfx::after { display: none; }
}
