/* ═════════ Illustrations: prajapati butterflies, marigold toran, conch ripples ═════════ */
.bf { position: relative; width: 100%; aspect-ratio: 100 / 84; }
.bw { position: absolute; top: 0; width: 50%; height: 100%; will-change: transform; animation: flap 1.1s ease-in-out infinite alternate; }
.bw svg, .bbody { display: block; width: 100%; height: 100%; overflow: visible; }
.bw.l { left: 0; transform-origin: 100% 52%; }
.bw.r { right: 0; transform-origin: 0 52%; }
.bbody { position: absolute; inset: 0; }
@keyframes flap { 0% { transform: scaleX(1); } 100% { transform: scaleX(.34); } }
.bf .w-up, .bf .w-lo { fill: url(#wingGrad); stroke: #7a1220; stroke-width: .9; }
.bf .w-vein { fill: none; stroke: rgba(110, 7, 16, .45); stroke-width: .7; }
.bf .w-dot { fill: #fff3dc; }
.bf .b-body, .bf .b-tip { fill: #7a1220; }
.bf .b-ant { fill: none; stroke: #7a1220; stroke-width: 1.2; stroke-linecap: round; }
.flyers { position: fixed; inset: 0; z-index: 41; pointer-events: none; overflow: hidden; }
.flyer { position: absolute; left: 0; top: 0; width: 34px; will-change: transform; }
.flyer .bw { animation-duration: .26s; }

/* marigold garland (toran) hanging from the top of a section */
.toran { position: absolute; z-index: 3; left: 10px; right: 10px; top: 0; height: 110px; pointer-events: none; }
.tr-swag { position: absolute; left: 0; top: 0; width: 100%; height: 44px; overflow: visible; filter: drop-shadow(0 2px 2px rgba(110, 7, 16, .25)); }
.tr-str { position: absolute; top: 18px; width: 14px; transform-origin: 50% 0; will-change: transform; animation: sway 3.4s ease-in-out var(--d, 0s) infinite alternate; }
.tr-str svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes sway { 0% { transform: rotate(-5deg); } 100% { transform: rotate(5deg); } }
.has-toran { position: relative; }
.has-toran > .sec-head, .has-toran > .couple-grid { margin-top: 70px; }

/* a butterfly resting beside section headings */
.head-bfly { width: 46px; margin: 0 auto 6px; }
.lite .tr-str { animation: none; }
.lite .bw { animation-duration: 1.6s; }

/* ═════════ Hearts & love ornaments ═════════ */
.heart-rule { display: flex; justify-content: center; margin: 12px auto 0; }
.heart-rule svg { width: min(220px, 58vw); height: 30px; overflow: visible; }
.heart-rule .ln { stroke: #b0852a !important; stroke-width: 1.4; }
.hr-pulse { transform-box: fill-box; transform-origin: center; animation: hbeat2 1.7s ease-in-out infinite; }
.hr-h path { fill: #d8344a; }
.float-heart { position: absolute; z-index: 1; opacity: .55; pointer-events: none; will-change: transform; }
.float-heart svg { display: block; width: 100%; height: auto; overflow: visible; }
.float-heart path { fill: #e8627a; opacity: .8; transform-box: fill-box; transform-origin: center; animation: hbeat2 2.4s ease-in-out infinite; }
.float-heart:nth-of-type(2n) path { fill: #c9a45c; animation-delay: -.8s; }
.float-heart:nth-of-type(3n) path { fill: #d8344a; animation-delay: -1.5s; }
@keyframes hbeat2 { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.18); } 28% { transform: scale(1); } 42% { transform: scale(1.12); } }
.couple-amp { position: relative; }
.amp-heart { position: absolute; inset: -8px; width: calc(100% + 16px); height: auto; margin: auto; overflow: visible; z-index: 0; }
.amp-heart path { fill: rgba(216, 52, 74, .18); stroke: #d8344a; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: hbeat2 1.7s ease-in-out infinite; }
.couple-amp span { position: relative; z-index: 1; }
.fin-heart { position: absolute; left: 50%; top: 44%; width: min(88vw, 520px); height: auto; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; z-index: 0; }
.fin-heart .ln { stroke: #d8344a !important; stroke-width: 1.1; }
.fin-heart .fl-soft { fill: rgba(232, 98, 122, .14); }
#finale > *:not(.fin-heart):not(.float-heart) { position: relative; z-index: 1; }
.lite .hr-pulse, .lite .float-heart path, .lite .amp-heart path { animation: none; }

/* ───── "Scroll to begin" cue: a real mouse + cursor (desktop) or swiping finger (touch) ───── */
.scroll-cue > i { display: none; }
.cue-ico { position: relative; display: grid; place-items: center; width: 56px; height: 62px; }
.cue-mouse { width: 24px; height: 38px; border: 1.8px solid #8d1521; border-radius: 13px; position: relative; background: rgba(255,250,240,.9); }
.cue-mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #8d1521; animation: cueWheel 1.7s ease-in-out infinite; }
.cue-cursor { position: absolute; left: 30px; top: 0; width: 22px; height: 22px; fill: #fff; stroke: #8d1521; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); animation: cueCursor 1.7s ease-in-out infinite; }
.cue-hand, .cue-trail { display: none; }
@keyframes cueWheel { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(12px); opacity: 0; } }
@keyframes cueCursor { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(34px); opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
@media (pointer: coarse) {
  .cue-mouse, .cue-cursor { display: none; }
  .cue-hand { display: block; width: 28px; height: 36px; fill: rgba(255,250,240,.95); stroke: #8d1521; stroke-width: 2.2; stroke-linejoin: round; animation: cueSwipe 1.8s ease-in-out infinite; }
  .cue-trail { display: block; position: absolute; left: 50%; top: 4px; width: 2px; height: 26px; margin-left: -1px; border-radius: 2px; background: linear-gradient(#8d1521, transparent); opacity: 0; animation: cueTrail 1.8s ease-in-out infinite; }
}
@keyframes cueSwipe { 0% { transform: translateY(14px); opacity: 0; } 20% { opacity: 1; } 75% { transform: translateY(-8px); opacity: 1; } 100% { transform: translateY(-12px); opacity: 0; } }
@keyframes cueTrail { 0% { opacity: 0; transform: translateY(18px) scaleY(.3); } 40% { opacity: .55; } 100% { opacity: 0; transform: translateY(-6px) scaleY(1); } }
/* low-spec: no looping animation, just a clear static icon */
.lite .cue-mouse i, .lite .cue-cursor, .lite .cue-hand, .lite .cue-trail { animation: none; }
.lite .cue-cursor { opacity: 1; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) { .cue-mouse i, .cue-cursor, .cue-hand, .cue-trail { animation: none; } .cue-cursor { opacity: 1; transform: translateY(22px); } }

/* finale: heart + "S & R" share one box, so the monogram always sits centred inside the heart
   and the closing lines flow underneath it (was two independently positioned layers) */
.fin-badge { position: relative; width: min(84vw, 420px); aspect-ratio: 100 / 90; display: grid; place-items: center; margin: 0 auto 4px; z-index: 1; }
.fin-badge .fin-heart { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: none; }
.fin-badge .finale-mono { position: relative; width: 62%; transform: translateY(-12%); }

/* hero "Scroll to begin our story": a solid wine pill so it stands apart from the date line */
.scroll-cue > span:first-child {
  display: inline-block; max-width: calc(100vw - 32px); padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(180deg, #b0222f, #8d1521); color: #fffaf0;
  box-shadow: 0 8px 20px -10px rgba(110, 7, 16, .7), 0 0 0 3px rgba(201, 164, 92, .35);
  animation: cuePill 2.2s ease-in-out infinite;
}
@keyframes cuePill { 50% { box-shadow: 0 8px 20px -10px rgba(110, 7, 16, .7), 0 0 0 7px rgba(201, 164, 92, .12); } }
.lite .scroll-cue > span:first-child { animation: none; }
