/* ==========================================================================
   শুভ বিবাহ — দেবলীনা ও দেবজ্যোতি
   Clean, modular stylesheet preserving every pinned scene & animation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts & Design Tokens
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Galada";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/galada-bengali-400-normal-Dp_Mevml.woff2") format("woff2");
}

@font-face {
  font-family: "Galada";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/galada-latin-400-normal-Bln6C89l.woff2") format("woff2");
}

@font-face {
  font-family: "Tiro Bangla";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/tiro-bangla-bengali-400-normal-D3z9rWKh.woff2") format("woff2");
}

@font-face {
  font-family: "Tiro Bangla";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/tiro-bangla-latin-400-normal-DhE-ZxDL.woff2") format("woff2");
}

:root {
  --sindoor: #B3121B;
  --alta: #D7263D;
  --maroon: #6E0F14;
  --maroon-deep: #4E0A0E;
  --cream: #F6E9CC;
  --ivory: #FFF8E7;
  --haldi: #E9A800;
  --paan: #2F6B2F;
  --gold: #B88A2C;
  --gold-soft: #D9B970;
  --ink: #3A1F14;
  --ink-soft: #5B3A2C;
  --line: rgba(110, 15, 20, 0.16);

  --font-title: "Galada", "Tiro Bangla", serif;
  --font-bangla: "Tiro Bangla", serif;
  --font-en-script: "Galada", "Brush Script MT", cursive;
  --font-en-body: Georgia, "Times New Roman", serif;

  --font-hero: clamp(56px, 9vw, 120px);
  --font-section-title: clamp(42px, 6vw, 76px);
  --font-names: clamp(24px, 3vw, 36px);
  --font-body: clamp(17px, 1.6vw, 20px);
  --font-label: clamp(14px, 1.3vw, 16px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lift: 0px;
}

@supports (height: 100lvh) {
  :root {
    --lift: calc(100lvh - 100svh);
  }
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-bangla);
  background: var(--maroon);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  background: var(--maroon);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--sindoor);
  outline-offset: 3px;
  border-radius: 6px;
}

.img {
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.block {
  position: relative;
  padding-block: clamp(72px, 12vw, 140px);
  overflow: hidden;
}

.h-title {
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--sindoor);
  font-size: var(--font-section-title);
  line-height: 1.12;
}

.head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.ink-title {
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--sindoor);
  line-height: 1.12;
  padding: 0.3em 0.24em 0.22em;
  margin: -0.18em -0.06em -0.14em;
  text-shadow:
    0 1px 0 rgba(255, 244, 214, 0.55),
    0 -1px 0 rgba(70, 8, 10, 0.12),
    0 6px 16px rgba(120, 20, 20, 0.14);
}

.flourish {
  display: block;
  width: min(240px, 60vw);
  height: auto;
  color: var(--gold);
  margin-inline: auto;
}

.alpona-mark {
  position: absolute;
  aspect-ratio: 1;
  background: url("../img/alpona-gold.webp") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   3. Sticky Scroll-Pinned Scene Mechanics
   -------------------------------------------------------------------------- */
.pin {
  position: relative;
  height: calc(var(--len) * 100svh + var(--lift));
}

.pin-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  height: calc(100svh + var(--lift));
  overflow: hidden;
  isolation: isolate;
}

.pin:not([data-near]):not(#top) > .pin-stage {
  visibility: hidden;
  content-visibility: hidden;
}

.pin:not([data-near]) * {
  animation-play-state: paused !important;
}

@media (pointer: coarse) {
  @supports (animation-timeline: scroll()) {
    html {
      scroll-snap-type: y mandatory;
    }
    html.is-gliding {
      scroll-snap-type: none;
    }
    .pin,
    .block,
    .ft {
      scroll-snap-align: start;
      scroll-snap-stop: always;
    }
    .pin::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: var(--lift);
      width: 1px;
      height: 1px;
      scroll-snap-align: end;
      scroll-snap-stop: always;
    }
  }
}

@media (max-width: 1023px) {
  .block {
    min-height: 100svh;
    min-height: 100lvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .ink-title {
    text-shadow: 0 1px 0 rgba(255, 244, 214, 0.45);
  }
  .pin[data-near] .ink-title {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   4. Global Overlays: Petals Canvas, Paper Grain, BGM, Butterfly, 9-Dot Nav
   -------------------------------------------------------------------------- */
.petals-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 29;
  opacity: 0.11;
  background-image: 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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.22 0 0 0 0 0.1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

@media (max-width: 1023px) {
  .paper-grain {
    display: none;
  }
  .petals-canvas {
    height: 100vh;
    height: 100lvh;
  }
}

/* Background Music Toggle */
.bgm-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff8e7e0;
  border: 1.5px solid rgba(184, 138, 44, 0.45);
  box-shadow:
    0 4px 16px #6e0f141f,
    0 1px 3px #0000000d,
    inset 0 0 10px #e9a8001f;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--maroon);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.bgm-btn:hover {
  transform: scale(1.06);
  border-color: var(--gold);
  background: #fff8e7f5;
  box-shadow: 0 6px 20px #6e0f142e, inset 0 0 12px #e9a80038;
}

.bgm-btn:active {
  transform: scale(0.94);
}

.bgm-btn.is-playing {
  border-color: #b88a2cb3;
}

.bgm-equalizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 22px;
  height: 18px;
}

.bgm-equalizer[hidden] {
  display: none;
}

.bgm-bar {
  width: 2.5px;
  background: var(--sindoor);
  border-radius: 2px;
  height: 100%;
  transform-origin: bottom;
  animation: bgmWave 1.2s ease-in-out infinite alternate;
}

.bgm-bar:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
  animation-duration: 0.9s;
}
.bgm-bar:nth-child(2) {
  height: 90%;
  animation-delay: 0.25s;
  animation-duration: 1.1s;
}
.bgm-bar:nth-child(3) {
  height: 60%;
  animation-delay: 0.45s;
  animation-duration: 0.85s;
}
.bgm-bar:nth-child(4) {
  height: 80%;
  animation-delay: 0.15s;
  animation-duration: 1.05s;
}

@keyframes bgmWave {
  0% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0.4);
  }
}

.bgm-muted-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-soft);
  opacity: 0.75;
}

.bgm-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}

.bgm-btn.is-playing .bgm-ring {
  animation: bgmPulse 2.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes bgmPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.6;
  }
  60% {
    transform: scale(1.32);
    opacity: 0;
  }
  to {
    transform: scale(1.32);
    opacity: 0;
  }
}

@media (min-width: 1024px) {
  .bgm-btn {
    top: 24px;
    right: 28px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 1023px) {
  .bgm-btn {
    background: #fff8e7f2;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Hidden 1x1 YouTube audio player host */
.yt-bgm-host {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

/* Right-Edge 9-Dot Section Navigation Bar */
.section-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
}

@media (min-width: 900px) {
  .section-nav {
    display: block;
  }
}

.section-nav-track {
  list-style: none;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  background: rgba(255, 248, 242, 0.78);
  border: 1px solid rgba(255, 248, 242, 0.55);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.section-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.alta-foot-svg {
  width: 14px;
  height: 22px;
  display: block;
  fill: #d91e3a;
  opacity: 0.28;
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.section-nav-track li:nth-child(odd) .alta-foot-svg {
  transform: translateX(1.5px) rotate(8deg);
}

.section-nav-track li:nth-child(even) .alta-foot-svg {
  transform: translateX(-1.5px) scaleX(-1) rotate(8deg);
}

.section-dot:hover {
  transform: scale(1.1);
}

.section-dot:hover .alta-foot-svg {
  opacity: 0.68;
}

.section-dot.is-visited .alta-foot-svg,
.section-dot.is-active .alta-foot-svg {
  fill: #dc1b3c;
  opacity: 1;
}

.section-dot.is-active {
  transform: scale(1.12);
}

.section-dot.is-active .alta-foot-svg {
  filter: drop-shadow(0 1px 3px rgba(180, 15, 40, 0.35));
}

.section-dot::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--maroon-deep);
  color: var(--ivory);
  border: 1px solid rgba(217, 185, 112, 0.45);
  font-family: var(--font-bangla);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.section-dot:hover::after,
.section-dot:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Bottom-left Butterfly Motif (Prajapati) */
.pj {
  position: fixed;
  left: 14px;
  bottom: max(18px, 3svh);
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  transform: translateY(60px) scale(0.6);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.pj.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pj-flight {
  will-change: transform;
}

.pj-btn {
  pointer-events: auto;
  display: block;
  width: 62px;
  height: 46px;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 6px 6px rgba(78, 10, 14, 0.25));
}

.pj-body {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  perspective: 160px;
  rotate: -14deg;
}

.pj-wing {
  position: absolute;
  inset: 0;
  background: url("../img/prajapati.webp") center / contain no-repeat;
}

.pj-wing-l {
  clip-path: inset(0 50% 0 0);
  transform-origin: 50% 50%;
}

.pj-wing-r {
  clip-path: inset(0 0 0 50%);
  transform-origin: 50% 50%;
}

@media (min-width: 1024px) {
  .pj {
    right: auto;
    left: 3vw;
    bottom: 5svh;
  }
  .pj-btn {
    width: 84px;
    height: 62px;
  }
}

@media (max-width: 1023px) {
  .pj-btn {
    filter: none;
  }
}

/* --------------------------------------------------------------------------
   5. Tuni Lights (Shared Twinkling Fairylights)
   -------------------------------------------------------------------------- */
.tuni {
  position: absolute;
  pointer-events: none;
}

.tuni-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tuni-wires path {
  fill: none;
  stroke: #2b1a10;
  stroke-width: 1.4;
  opacity: 0.75;
}

.tuni-group {
  position: absolute;
  inset: 0;
  animation: tuni-twinkle 2.4s ease-in-out infinite;
}

.tuni-bulb {
  position: absolute;
  width: 7px;
  height: 9px;
  translate: -50% -15%;
  border-radius: 45% 45% 50% 50%;
  background: radial-gradient(
    circle at 45% 35%,
    #fff 0 18%,
    var(--c) 55%,
    color-mix(in srgb, var(--c) 70%, #7a3a00)
  );
  box-shadow:
    0 0 6px 1px var(--c),
    0 0 16px 5px color-mix(in srgb, var(--c) 45%, transparent);
}

.tuni-bulb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 4px;
  height: 4px;
  translate: -50% 0;
  border-radius: 1px;
  background: #3a2414;
}

@keyframes tuni-twinkle {
  0%,
  to {
    opacity: 1;
  }
  45% {
    opacity: 0.45;
  }
  60% {
    opacity: 1;
  }
}

@media (min-width: 1024px) {
  .tuni-bulb {
    width: 8px;
    height: 10px;
  }
}

@media (max-width: 1023px) {
  .tuni-bulb {
    box-shadow: 0 0 9px 2px color-mix(in srgb, var(--c) 70%, transparent);
  }
}

/* --------------------------------------------------------------------------
   6. Scene 1: Cover (শুভ বিবাহ)
   -------------------------------------------------------------------------- */
.op .pin-stage {
  background: var(--cream);
}

.op-stage {
  position: absolute;
  inset: 0;
}

.op-bgwrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: 50% 0%;
}

.op-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.op-inner {
  --seal: min(74vw, 42svh, 440px);
  position: absolute;
  inset: 0 0 var(--lift);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(20svh, 150px) 0 max(12svh, 90px);
  text-align: center;
}

.op-blessing {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--maroon);
  letter-spacing: 0.06em;
  margin-bottom: clamp(6px, 1.6svh, 16px);
  text-shadow: 0 1px 10px rgba(246, 233, 204, 0.95);
}

.op-guest {
  position: relative;
  z-index: 3;
  font-family: var(--font-title);
  font-size: clamp(20px, 5vw, 28px);
  margin-bottom: 6px;
}

.op-tilt {
  perspective: 900px;
  transform-style: preserve-3d;
}

.op-seal {
  position: relative;
  z-index: 1;
  width: var(--seal);
  height: var(--seal);
  display: grid;
  place-items: center;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s var(--ease);
}

.op-seal:active {
  transform: scale(0.96);
}

.op-flood {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #b3121b 0,
    #b3121b 60%,
    #a80f18 64%,
    #a80f18bf 67%,
    #a80f1800 71%
  );
}

.op-ring-turn {
  position: absolute;
  inset: 0;
}

.op-ring {
  position: absolute;
  inset: 0;
  background: url("../img/alpona-gold.webp") center / contain no-repeat;
  animation:
    introRingIn 1.4s var(--ease) 0.3s both,
    ringSlowSpin 120s linear 0.3s infinite;
}

@keyframes introRingIn {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ringSlowSpin {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

.op-disc {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: introDiscIn 0.9s var(--ease) 0.75s both;
}

@keyframes introDiscIn {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.op-disc .img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.op-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-title);
  color: var(--ivory);
  font-size: calc(var(--seal) * 0.155);
  line-height: 1.02;
  text-shadow: 0 2px 10px rgba(78, 10, 14, 0.45);
  padding-top: 0.12em;
}

.op-title span:last-child {
  margin-top: -0.08em;
}

.op-pulse {
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  border: 2px solid rgba(255, 241, 214, 0.75);
  animation: op-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes op-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

.op-names {
  position: relative;
  z-index: 3;
  margin-top: clamp(14px, 3svh, 32px);
}

.op-names h1 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.25;
  color: #6E0F14;
}

.op-names p {
  margin-top: 4px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: #5B3A2C;
}

.op-prop {
  position: absolute;
  z-index: 1;
  bottom: calc(var(--lift) - 2svh);
  width: min(44vw, 400px);
  pointer-events: none;
}

.op-prop .img {
  width: 100%;
  height: auto;
}

.op-prop-l {
  left: -3vw;
}

.op-prop-r {
  right: -3vw;
}

.op-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--lift) + max(14px, 2.5svh));
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 15px;
  color: var(--maroon);
  z-index: 4;
}

.op-hint-end {
  color: var(--ivory);
  opacity: 0;
  pointer-events: none;
}

.op-hint svg {
  width: 14px;
  height: 20px;
}

.bounce-arrow {
  animation: bounceArrow 1.8s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Cover Intro Entrance Keyframes */
.intro-blessing {
  display: inline-block;
  animation: fadeDownIn 0.9s var(--ease) 0.2s both;
}
.intro-title-top {
  display: inline-block;
  animation: fadeUpIn 0.8s var(--ease) 1.15s both;
}
.intro-title-bottom {
  display: inline-block;
  animation: fadeUpIn 0.8s var(--ease) 1.35s both;
}
.intro-names {
  animation: fadeUpIn16 0.9s var(--ease) 1.6s both;
}
.intro-prop-l {
  animation: fadeUpIn60 1.1s var(--ease) 1s both;
}
.intro-prop-r {
  animation: fadeUpIn60 1.1s var(--ease) 1.15s both;
}
.intro-tap-hint {
  display: inline-block;
  animation: fadeInOnly 1s ease 2.1s both;
}

@keyframes fadeDownIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUpIn16 {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUpIn60 {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInOnly {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .op-inner {
    --seal: min(66vw, 40svh);
    padding: 104px 0 110px;
  }
  .op-prop {
    width: 38vw;
  }
}

@media (min-width: 1024px) {
  .op-inner {
    --seal: min(44svh, 450px);
    padding: max(23svh, 185px) 0 max(8svh, 60px);
  }
  .op-prop {
    width: min(27vw, 440px);
    bottom: 0;
  }
  .op-prop-l {
    left: 4vw;
  }
  .op-prop-r {
    right: 4vw;
  }
}

.op-bgwrap,
.op-flood,
.op-ring-turn,
.op-ring,
.op-prop {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   7. Scene 2: Bride (আমাদের দেবলীনার বিয়ে)
   -------------------------------------------------------------------------- */
.br .pin-stage {
  background:
    radial-gradient(ellipse 26% 18% at 70% 14%, rgba(255, 244, 205, 0.5), transparent 70%),
    radial-gradient(ellipse 34% 26% at 98% 30%, rgba(196, 140, 60, 0.13), transparent 70%),
    linear-gradient(180deg, #f2d38a, #f3d485 55%, #ecc573);
}

.br-lights-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.br-lights-top {
  left: -2%;
  right: -2%;
  top: 0;
  height: 9svh;
}

.br-art {
  position: absolute;
  inset: 10svh 0 0;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.br-art::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 30%;
  background: linear-gradient(180deg, #f2d38a, #fae6b4cc 12%, #fff0d080 42%, #fff0d000);
  pointer-events: none;
}

.br-cam {
  position: absolute;
  inset: 0;
  display: block;
}

.br-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.br-text {
  position: absolute;
  inset: 0 0 var(--lift);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(11svh, 84px) 16px max(4svh, 24px);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.br-title {
  font-size: clamp(38px, 11vw, 64px);
  color: #a9101a;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6);
  filter: url(#paint);
}

.br-hat {
  display: inline-block;
}

.br-flourish {
  margin-top: 2px;
  color: #a9101a;
}

.br-line {
  margin-top: auto;
  padding: 7px 16px 8px;
  border-radius: 999px;
  background: #fff4d6e0;
  box-shadow: 0 4px 16px #50140a2e;
  font-size: clamp(16px, 4.3vw, 21px);
  color: #6e1414;
}

.br-mukut {
  position: absolute;
  translate: -50% -88%;
  pointer-events: auto;
  transform-origin: 50% 90%;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 8px 10px rgba(90, 30, 10, 0.35));
  z-index: 3;
}

.br-mukut-in {
  display: block;
  transform-origin: 50% 90%;
}

.br-mukut-img {
  width: 100%;
  height: auto;
}

.br-doors {
  position: absolute;
  inset: 0;
  display: flex;
  perspective: 1600px;
  z-index: 4;
  pointer-events: none;
}

.br-door {
  position: relative;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.br-door-l {
  transform-origin: left center;
}

.br-door-r {
  transform-origin: right center;
}

.br-door-shade {
  position: absolute;
  inset: 0;
  background: #1d0d06;
  pointer-events: none;
  opacity: 0;
}

/* Teal wood paneled doors */
.dl {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 18% at 30% 72%, rgba(222, 205, 160, 0.22), transparent 70%),
    radial-gradient(ellipse 22% 12% at 70% 20%, rgba(222, 205, 160, 0.18), transparent 70%),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.07) 0 2px,
      transparent 2px 11px,
      rgba(255, 255, 255, 0.04) 11px 13px,
      transparent 13px 23px
    ),
    linear-gradient(180deg, #2e6e66, #255c55 60%, #1f4f49);
  box-shadow: inset 0 0 0 10px #1b4540, inset 0 0 40px #00000059;
}

.dl-r {
  border-left: 3px solid #12312D;
}

.dl-l {
  border-right: 3px solid #12312D;
}

.dl-panel {
  position: absolute;
  left: 15%;
  right: 15%;
  border: 7px solid #1D4A44;
  box-shadow:
    inset 0 0 0 3px #3d827a,
    inset 0 0 0 10px #255c55,
    inset 0 0 0 12px #1d4a44,
    0 1px #ffffff14;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 14px);
}

.dl-panel-top {
  top: 7%;
  height: 40%;
}

.dl-panel-bottom {
  top: 54%;
  height: 39%;
}

.dl-bolt {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(#4a4a44, #26261f);
}

.dl-l .dl-bolt {
  right: 10px;
}

.dl-r .dl-bolt {
  left: 10px;
}

.br-knock {
  position: absolute;
  left: 50%;
  top: 44%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
  color: var(--ivory);
  font-size: 15px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.br-knocker {
  width: 58px;
  height: 78px;
  transform-origin: 50% 18%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.br-knocker.is-knocking {
  transform: rotate(-28deg);
}

.br-knocker svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) and (max-height: 700px) {
  .br-text {
    padding-top: 78px;
  }
  .br-title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .br-lights-top {
    left: 50%;
    height: 12svh;
  }
  .br-art {
    inset: 0 50% 0 0;
    -webkit-mask: linear-gradient(90deg, #000 90%, transparent);
    mask: linear-gradient(90deg, #000 90%, transparent);
  }
  .br-img {
    object-position: 50% 52%;
  }
  .br-text {
    left: 50%;
    justify-content: center;
    padding: 0 4vw;
  }
  .br-title {
    font-size: clamp(56px, 5.2vw, 100px);
    line-height: 1.12;
    white-space: nowrap;
  }
  .br-flourish {
    width: min(320px, 26vw);
  }
  .br-line {
    margin-top: 18px;
    font-size: 24px;
    background: none;
    box-shadow: none;
  }
  .dl-panel {
    left: 18%;
    right: 18%;
  }
}

[data-near] .br-cam,
[data-near] .br-door,
[data-near] .br-mukut,
[data-near] .br-lights-wrap {
  will-change: transform;
}

@media (max-width: 1023px) {
  .br-title,
  .br-mukut,
  .br-knocker {
    filter: none;
  }
}

/* --------------------------------------------------------------------------
   8. Scene 3: Groom (আমাদের দেবজ্যোতির বিয়ে)
   -------------------------------------------------------------------------- */
.gr .pin-stage {
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(150, 30, 30, 0.45), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, #5c0f14, #3a070b 70%, #250406);
}

.gr-lights {
  left: -3%;
  right: -3%;
  top: 0;
  height: 11svh;
  z-index: 4;
}

.gr-area {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gr-frame {
  position: absolute;
  inset: 0;
}

.gr-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gr-zoom {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 55% 40%;
}

.gr-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.gr-is-full .gr-art::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 34%;
  background: linear-gradient(180deg, rgba(37, 4, 6, 0.55), transparent);
  pointer-events: none;
}

.gr-curtain {
  position: absolute;
  inset: 0;
  container-type: inline-size;
  pointer-events: none;
}

.gr-cord {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 0;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e9c982, #b3121b 60%, #6e0a10);
  box-shadow: 0 2px 6px #0006;
  z-index: 1;
}

.gr-strand {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% 0;
  transform-origin: 50% 0;
}

.gr-strand-swing {
  display: block;
  height: 100%;
  transform-origin: 50% 0;
}

.gr-strand-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 8px 8px rgba(20, 0, 0, 0.45));
}

.gr-cue {
  position: absolute;
  left: 50%;
  top: 62%;
  translate: -50% 0;
  padding: 9px 18px 10px;
  border-radius: 999px;
  background: #fff1d6eb;
  color: #6e1414;
  font-size: 15px;
  box-shadow: 0 6px 18px #14000066;
  z-index: 2;
}

.gr-text {
  position: absolute;
  inset: 0 0 var(--lift);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(12svh, 92px) 16px max(4svh, 24px);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.gr-title {
  font-size: clamp(38px, 10.5vw, 60px);
  color: #fff1d6;
  text-shadow:
    0 0 26px rgba(255, 186, 92, 0.35),
    0 2px 0 rgba(60, 4, 8, 0.5);
}

.gr-hat {
  display: inline-block;
}

.gr-flourish {
  color: #e9c982;
}

.gr-line {
  margin-top: auto;
  padding: 7px 16px 8px;
  border-radius: 999px;
  background: #250406b8;
  font-size: clamp(16px, 4.3vw, 21px);
  color: #f2d58f;
}

.gr-topor {
  position: absolute;
  translate: -50% -84%;
  pointer-events: auto;
  transform-origin: 50% 92%;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 10px 12px rgba(20, 0, 0, 0.45));
  z-index: 3;
}

.gr-topor-hat {
  display: block;
  transform-origin: 50% 92%;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gr-topor-img {
  width: 100%;
  height: auto;
}

@media (max-width: 767px) and (max-height: 700px) {
  .gr-text {
    padding-top: 84px;
  }
  .gr-title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .gr-lights {
    height: 16svh;
  }
  .gr-area {
    inset: 0 0 0 50%;
  }
  .gr-is-full .gr-art {
    -webkit-mask: linear-gradient(90deg, transparent, #000 10%);
    mask: linear-gradient(90deg, transparent, #000 10%);
  }
  .gr-is-full .gr-art::after {
    display: none;
  }
  .gr-text {
    right: 50%;
    justify-content: center;
    padding: 0 4vw;
  }
  .gr-title {
    font-size: clamp(56px, 5.4vw, 100px);
    line-height: 1.12;
    white-space: nowrap;
  }
  .gr-flourish {
    width: min(320px, 26vw);
  }
  .gr-line {
    margin-top: 18px;
    font-size: 24px;
    background: none;
  }
  .gr-cue {
    font-size: 17px;
  }
}

[data-near] .gr-zoom,
[data-near] .gr-strand,
[data-near] .gr-topor {
  will-change: transform;
}

@media (max-width: 1023px) {
  .gr-strand-img,
  .gr-topor {
    filter: none;
  }
  .gr-title {
    text-shadow: 0 2px 0 rgba(60, 4, 8, 0.5);
  }
}

/* Mobile Groom Reveal: match Bride Reveal top cream header & crimson styling */
@media (max-width: 768px) {
  .gr .pin-stage {
    background:
      radial-gradient(ellipse 26% 18% at 70% 14%, rgba(255, 244, 205, 0.5), transparent 70%),
      radial-gradient(ellipse 34% 26% at 98% 30%, rgba(196, 140, 60, 0.13), transparent 70%),
      linear-gradient(180deg, #f2d38a, #f3d485 55%, #ecc573);
  }

  .gr-lights {
    height: 9svh;
  }

  .gr-frame {
    top: 28svh;
  }

  .gr-img {
    object-position: 50% 8%;
  }

  .gr-is-full .gr-art::after {
    height: 28%;
    background: linear-gradient(180deg, #f3d485 0%, #fae6b4d9 22%, #fff0d085 56%, #fff0d000 100%);
  }

  .gr-text {
    padding: max(17svh, 142px) 16px max(4svh, 24px);
  }

  .gr-title {
    position: relative;
    z-index: 4;
    font-size: clamp(32px, 9.2vw, 54px);
    line-height: 1.12;
    color: #a9101a;
    text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6);
  }

  .gr-flourish {
    margin-top: 2px;
    color: #a9101a;
  }

  .gr-topor {
    z-index: 2;
    max-width: 58px;
    translate: -32% -103%;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .gr-frame {
    top: 31svh;
  }

  .gr-text {
    padding-top: 126px;
  }

  .gr-title {
    font-size: 32px;
  }

  .gr-topor {
    max-width: 52px;
  }
}

/* --------------------------------------------------------------------------
   9. Scene 4: Story (গাঁটছড়া)
   -------------------------------------------------------------------------- */
.st .pin-stage {
  --val: clamp(48px, 8svh, 84px);
  --cw: min(76vw, 34svh);
  background: radial-gradient(ellipse 58% 62% at 50% 50%, #fbefd2, #f0dbad 58%, #d6b676);
}

.st-world {
  position: absolute;
  inset: 0;
}

.st-spot {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: calc(var(--cw) * 2);
  margin-left: calc(var(--cw) * -1);
  pointer-events: none;
  z-index: 0;
}

.st-spot::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(40% 0, 60% 0, 96% 100%, 4% 100%);
  background: linear-gradient(180deg, rgba(255, 252, 238, 0.75), rgba(255, 248, 226, 0.15) 75%, transparent);
  filter: blur(18px);
}

.st-spot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  height: 34%;
  background: radial-gradient(ellipse 50% 40% at 50% 60%, rgba(255, 253, 244, 0.9), rgba(255, 246, 220, 0.3) 60%, transparent 75%);
}

.st-head {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(var(--val) + 1.5svh);
  text-align: center;
  z-index: 2;
}

.st-head .ink-title {
  font-size: clamp(46px, 12.5vw, 100px);
}

.st-flourish {
  color: var(--sindoor);
}

.st-sub {
  display: none;
  margin-top: 8px;
  font-size: 22px;
  color: var(--maroon);
}

.st-couple {
  position: absolute;
  left: calc(50% - var(--cw) / 2);
  top: calc(var(--val) + 15svh);
  width: var(--cw);
  z-index: 1;
  transform-origin: 50% 40%;
}

.st-couple.has-art {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 4px #f7e7c2,
    0 0 0 6px var(--gold),
    0 0 60px 10px #fff4d68c,
    0 34px 50px -30px #4e0a0ea6;
}

.st-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.st-thread path {
  fill: none;
  stroke: var(--sindoor);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 2px rgba(78, 10, 14, 0.3));
}

.st-beats {
  list-style: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--val) + 15svh + var(--cw) * 1.25 + 2.2svh);
  display: flex;
  justify-content: center;
  gap: 54px;
  z-index: 3;
}

.st-knot {
  display: block;
  width: 40px;
  height: 30px;
}

.st-knot svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.st-beat-solo {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 44px;
  text-align: center;
}

.st-beat-list {
  display: none;
}

.st-beat-say h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(28px, 7.6vw, 40px);
  color: var(--sindoor);
  line-height: 1.2;
}

.st-beat-say p {
  margin: 4px auto 0;
  max-width: 30ch;
  font-size: clamp(17px, 4.4vw, 21px);
  line-height: 1.5;
  color: var(--maroon);
}

.st-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--lift);
  height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding-inline: 10%;
  z-index: 7;
  pointer-events: none;
}

.st-foot::before {
  content: "";
  position: absolute;
  inset: auto 0 calc(var(--lift) * -1);
  height: calc(9px + var(--lift));
  background: linear-gradient(180deg, #8a5a30, #4a2a12 9px);
  box-shadow: 0 -1px #c9a24a;
}

.st-lamp {
  position: relative;
  width: 26px;
  height: 11px;
  margin-bottom: 9px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: radial-gradient(ellipse at 50% 0%, #ffe9a8, #c9932e 55%, #6e4a12);
}

.st-lamp:nth-child(2n) {
  display: none;
}

.st-flame {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 9px;
  height: 17px;
  margin-left: -4.5px;
  border-radius: 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 72%, #fffbe0, #ffd25c 40%, #ff8a1e 78%, #ff781400);
  box-shadow: 0 0 12px 4px #ffaa3c8c, 0 0 34px 12px #ff962838;
  transform-origin: 50% 100%;
  animation: st-flicker 1.3s ease-in-out infinite alternate;
  animation-delay: calc(var(--d) * -1);
}

@keyframes st-flicker {
  0% {
    scale: 1 1;
    rotate: -3deg;
  }
  50% {
    scale: 0.92 1.08;
    rotate: 2deg;
  }
  to {
    scale: 1.05 0.94;
    rotate: -1deg;
  }
}

.st-valance-wrap {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
}

.st-valance {
  height: var(--val);
  background:
    linear-gradient(180deg, transparent 72%, #C9A24A 72% 78%, transparent 78%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 30px),
    linear-gradient(180deg, #8c0f17, #b3121b);
  -webkit-mask: radial-gradient(circle 22px at 50% 100%, transparent 98%, #000) 0 0 / 44px 100% repeat-x;
  mask: radial-gradient(circle 22px at 50% 100%, transparent 98%, #000) 0 0 / 44px 100% repeat-x;
  filter: drop-shadow(0 6px 8px rgba(60, 5, 8, 0.35));
}

.st-curtains {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.st-curtain {
  position: relative;
  width: 50.5%;
  height: 100%;
  background:
    linear-gradient(180deg, #0000 85%, #00000040),
    repeating-linear-gradient(90deg, #7e0c13, #b3121b 18px, #d0303a, #b3121b 42px, #7e0c13 60px);
  box-shadow: inset 0 0 60px #28000473;
}

.st-cloth {
  position: absolute;
  inset: 0;
  background: url("../img/curtain.webp") right center / cover no-repeat;
}

.st-curtain-r .st-cloth {
  transform: scaleX(-1);
}

.st-curtain-l {
  transform-origin: left top;
  border-right: 6px solid #C9A24A;
}

.st-curtain-r {
  transform-origin: right top;
  border-left: 6px solid #C9A24A;
}

@media (max-width: 767px) and (max-height: 700px) {
  .st .pin-stage {
    --cw: min(66vw, 31svh);
  }
  .st-couple {
    top: calc(var(--val) + 14svh);
  }
  .st-beats {
    top: calc(var(--val) + 14svh + var(--cw) * 1.25 + 1.6svh);
  }
  .st-beat-say p {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .st .pin-stage {
    --cw: min(28vw, 45svh);
  }
  .st-couple {
    top: calc(50% - var(--cw) * 0.625 + 2svh);
  }
  .st-head {
    left: 10vw;
    right: auto;
    width: calc(50% - var(--cw) / 2 - 13vw);
    top: 50%;
    translate: 0 -50%;
  }
  .st-head .ink-title {
    font-size: clamp(64px, 6vw, 108px);
  }
  .st-sub {
    display: block;
  }
  .st-beats {
    left: calc(50% + var(--cw) / 2 + 4vw);
    right: 9vw;
    top: 20svh;
    bottom: 16svh;
    flex-direction: column;
    justify-content: center;
    gap: 4.5svh;
  }
  .st-beat {
    position: relative;
    padding-left: 58px;
  }
  .st-knot {
    position: absolute;
    left: 0;
    top: 8px;
  }
  .st-beat-solo {
    display: none;
  }
  .st-beat-list {
    display: block;
  }
  .st-beat-say h3 {
    font-size: 38px;
  }
  .st-beat-say p {
    margin: 2px 0 0;
    max-width: 26ch;
    font-size: 20px;
  }
  .st-lamp:nth-child(2n) {
    display: block;
  }
  .st-foot {
    height: 46px;
  }
}

[data-near] .st-couple,
[data-near] .st-curtain,
[data-near] .st-thread,
[data-near] .st-knot svg,
[data-near] .st-flame {
  will-change: transform;
}

[data-near] .st-spot,
[data-near] .st-beat-say {
  will-change: opacity;
}

@media (max-width: 1023px) {
  .st-spot::before {
    clip-path: none;
    filter: none;
    background: radial-gradient(ellipse 46% 62% at 50% 34%, rgba(255, 252, 238, 0.75), rgba(255, 248, 226, 0.2) 60%, transparent 76%);
  }
  .st-thread path,
  .st-valance {
    filter: none;
  }
  .st-flame {
    box-shadow: 0 0 14px 5px #ffaa3c73;
  }
}

/* --------------------------------------------------------------------------
   10. Scene 5: Families (দুই বাড়ি)
   -------------------------------------------------------------------------- */
.fm .pin-stage {
  --head-top: max(4svh, 25vw);
  --court-top: calc(var(--head-top) + clamp(135px, 19vw, 182px));
  --figw: min(36vw, 19svh);
  --figh: calc(var(--figw) * 1.4);
  --horizon: calc(var(--court-top) + var(--figh) * 0.58);
  --ghatw: min(17vw, 9svh);
  --gold: #e9c46a;
  background:
    radial-gradient(ellipse 72% 48% at 50% 42%, #ffaa5a61, #ff8c3c00 70%),
    linear-gradient(180deg, #7a0a13, #a3141d, #b0201f 60%, #8e1218);
  color: #fff1d6;
}

.fm-floor {
  position: absolute;
  inset: var(--horizon) 0 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 46% 30% at 50% 18%, rgba(255, 200, 150, 0.22), transparent 70%),
    linear-gradient(180deg, #7c1c12, #94281a 10%, #7d1d13, #561009);
  box-shadow: 0 -14px 30px #2800044d;
}

.fm-floor::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 3px;
  background: linear-gradient(90deg, transparent 4%, #c9a24a 30%, #f2d58a 50%, #c9a24a 70%, transparent 96%);
}

.fm-mark {
  width: min(130vw, 92svh);
  left: 50%;
  top: calc(var(--court-top) + var(--figh) * 0.3);
  translate: -50% -50%;
  background-image: url("../img/alpona-light.webp");
  opacity: 0.1;
}

.fm-lights-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.fm-lights {
  left: 6vw;
  right: 6vw;
  top: calc(var(--court-top) - 3svh);
  height: 10svh;
}

.fm-lights-desk {
  display: none;
}

.fm-toran {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  pointer-events: none;
}

.fm-toran-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 6px rgba(40, 0, 4, 0.35));
}

.fm-world {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.fm-head {
  position: absolute;
  left: 16px;
  right: 16px;
  top: var(--head-top);
  text-align: center;
  z-index: 2;
}

.fm-head .ink-title {
  font-size: clamp(44px, 12vw, 92px);
}

.fm-title {
  color: #ffd98a;
  text-shadow: none;
  filter: url(#paint) drop-shadow(0 3px 0 rgba(70, 5, 10, 0.55));
}

.fm-flourish {
  color: var(--gold);
}

.fm-sub {
  margin-top: 2px;
  font-size: clamp(16px, 4.2vw, 22px);
  color: #fbe3b8;
}

.fm-court {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--court-top);
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-areas:
    "fb gh fg"
    "nm nm nm";
  justify-content: center;
  align-items: end;
  column-gap: 2vw;
  row-gap: calc(var(--figw) * 0.24 + 40px);
  z-index: 1;
}

.fm-fam {
  position: relative;
}

.fm-fam-bride {
  grid-area: fb;
}

.fm-fam-groom {
  grid-area: fg;
}

.fm-stand {
  position: relative;
  width: var(--figw);
  height: var(--figh);
}

.fm-stand::before {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  top: -12%;
  bottom: 10%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 214, 140, 0.55), rgba(255, 180, 90, 0.18) 55%, transparent 72%);
  pointer-events: none;
}

.fm-ground {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 150%;
  aspect-ratio: 1;
  translate: -50% 50%;
  scale: 1 0.3;
  pointer-events: none;
}

.fm-ring {
  display: block;
  width: 100%;
  height: 100%;
}

.fm-ring-img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.fm-walk {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
}

.fm-figure {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fm-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 8px rgba(40, 0, 4, 0.35));
}

.fm-hand {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 2px;
}

.fm-fam-bride .fm-hand {
  right: 8%;
}

.fm-fam-groom .fm-hand {
  left: 8%;
}

.fm-caption {
  position: absolute;
  left: -20%;
  right: -20%;
  top: calc(100% + var(--figw) * 0.27);
  text-align: center;
  font-family: var(--font-title);
  font-size: clamp(20px, 5.4vw, 30px);
  line-height: 1.2;
  color: #ffd98a;
  text-shadow: 0 2px 0 rgba(60, 0, 6, 0.5);
}

.fm-ghat {
  grid-area: gh;
  width: var(--ghatw);
  margin-bottom: calc(var(--ghatw) * -0.12);
  transform-origin: 50% 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fm-ghat-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 6px rgba(40, 0, 4, 0.45));
}

.fm-names {
  grid-area: nm;
  justify-self: center;
  width: min(100vw - 32px, 440px);
  text-align: center;
}

.fm-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  line-height: 1.5;
}

.fm-row dt {
  font-size: clamp(15px, 3.8vw, 18px);
  color: var(--gold);
  white-space: nowrap;
}

.fm-row dt::after {
  content: " :";
}

.fm-row dd {
  font-size: clamp(16px, 4.3vw, 21px);
  color: #fff1d6;
}

.fm-row-main dd {
  font-family: var(--font-title);
  font-size: clamp(25px, 6.6vw, 36px);
  color: #ffd98a;
}

.fm-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.fm-cord,
.fm-cord-twist {
  fill: none;
  stroke-linecap: round;
}

.fm-cord {
  stroke: #f2c14e;
  stroke-width: 4;
  filter: drop-shadow(0 2px 2px rgba(40, 0, 4, 0.45));
}

.fm-cord-twist {
  stroke: #d0202a;
  stroke-width: 4;
  stroke-dasharray: 5 7;
}

.fm-knot {
  position: absolute;
  width: 48px;
  height: 36px;
  margin: -18px 0 0 -24px;
  z-index: 4;
  pointer-events: none;
}

.fm-knot[hidden] {
  display: none;
}

.fm-knot svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(40, 0, 4, 0.5));
}

.fm-props {
  position: absolute;
  inset: auto 0 var(--lift);
  height: 0;
  z-index: 4;
  pointer-events: none;
}

.fm-prop {
  position: absolute;
  bottom: 1svh;
  width: min(40vw, 19svh);
  height: auto;
  filter: drop-shadow(0 10px 8px rgba(30, 0, 2, 0.5));
}

.fm-prop-l {
  left: 2vw;
  rotate: -6deg;
}

.fm-prop-r {
  right: 2vw;
  rotate: 5deg;
}

@media (max-height: 760px) and (max-width: 1023px) {
  .fm-props {
    display: none;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .fm .pin-stage {
    --court-top: calc(var(--head-top) + 82px);
    --figw: min(33vw, 19svh);
  }
  .fm-row {
    line-height: 1.35;
  }
  .fm-sub {
    display: none;
  }
  .fm-head .ink-title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .fm .pin-stage {
    --head-top: 12.2vw;
    --court-top: calc(var(--head-top) + 174px);
    --figw: min(16.5vw, 26svh);
    --ghatw: min(8vw, 13svh);
    --horizon: calc(var(--court-top) + var(--figh) * 0.84);
  }
  .fm-lights-phone {
    display: none;
  }
  .fm-lights-desk {
    display: block;
    left: 30vw;
    right: 30vw;
    top: calc(var(--court-top) + 1svh);
  }
  .fm-head .ink-title {
    font-size: clamp(56px, 5.2vw, 88px);
  }
  .fm-court {
    padding-inline: 11vw;
    grid-template-columns: 1fr auto auto auto 1fr;
    grid-template-areas: "nb fb gh fg ng";
    column-gap: 1.6vw;
  }
  .fm-names {
    width: auto;
    max-width: 380px;
    align-self: start;
    margin-top: calc(var(--figh) * 0.04);
  }
  .fm-names-bride {
    grid-area: nb;
    justify-self: end;
    text-align: right;
  }
  .fm-names-groom {
    grid-area: ng;
    justify-self: start;
    text-align: left;
  }
  .fm-row {
    flex-direction: column;
    gap: 0;
    line-height: 1.3;
    margin-top: 10px;
  }
  .fm-row:first-child {
    margin-top: 0;
  }
  .fm-names-bride .fm-row {
    align-items: flex-end;
  }
  .fm-names-groom .fm-row {
    align-items: flex-start;
  }
  .fm-row dt::after {
    content: none;
  }
  .fm-row dt {
    font-size: 15px;
    letter-spacing: 0.08em;
  }
  .fm-row dd {
    font-size: clamp(17px, 1.4vw, 21px);
    text-wrap: balance;
  }
  .fm-row-main dd {
    font-size: clamp(40px, 3.5vw, 54px);
    line-height: 1.05;
  }
  .fm-row-main {
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(233, 196, 106, 0.4);
  }
  .fm-honor {
    display: block;
    font-family: var(--font-bangla);
    font-size: clamp(17px, 1.4vw, 20px);
    color: #fbe3b8;
    line-height: 1.4;
  }
  .fm-given {
    display: block;
  }
  .fm-caption {
    font-size: 30px;
  }
  .fm-prop {
    width: min(17vw, 26svh);
    bottom: 2svh;
  }
  .fm-prop-l {
    left: 3vw;
  }
  .fm-prop-r {
    right: 3vw;
  }
  .fm-toran {
    left: 21vw;
    right: 21vw;
  }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .fm-row {
    margin-top: 5px;
    line-height: 1.22;
  }
  .fm-row-main {
    padding-bottom: 6px;
  }
  .fm-row-main dd {
    font-size: clamp(36px, 3vw, 44px);
  }
}

[data-near] .fm-mark,
[data-near] .fm-fam,
[data-near] .fm-walk,
[data-near] .fm-ring,
[data-near] .fm-ghat,
[data-near] .fm-toran,
[data-near] .fm-props,
[data-near] .fm-thread,
[data-near] .fm-knot {
  will-change: transform;
}

[data-near] .fm-names,
[data-near] .fm-lights-wrap {
  will-change: opacity;
}

@media (max-width: 1023px) {
  .fm-toran-img,
  .fm-img,
  .fm-ghat-img,
  .fm-prop,
  .fm-cord,
  .fm-knot svg {
    filter: none;
  }
  .fm-title {
    filter: none;
    text-shadow: 0 3px 0 rgba(70, 5, 10, 0.55);
  }
}

/* Mobile-only Two Families: sequential center-stage layout, hidden ghat, bottom corner props */
@media (max-width: 768px) {
  .fm .pin-stage {
    --head-top: max(4svh, 21vw);
    --court-top: calc(var(--head-top) + 124px);
    --figw: min(56vw, 24svh);
    --figh: calc(var(--figw) * 1.4);
    --horizon: calc(var(--court-top) + var(--figh) * 0.62);
  }

  .fm-court {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "nm";
    justify-items: center;
    column-gap: 0;
    row-gap: calc(var(--figw) * 0.24 + 38px);
  }

  .fm-fam-bride,
  .fm-fam-groom {
    grid-area: stage;
  }

  .fm-caption {
    top: calc(100% + var(--figw) * 0.25);
  }

  .fm-ghat,
  .fm-thread,
  .fm-knot {
    display: none !important;
  }

  .fm-props {
    display: block;
  }

  .fm-prop {
    bottom: 10px;
    width: clamp(98px, 30vw, 128px);
  }

  .fm-prop-l {
    left: 4px;
  }

  .fm-prop-r {
    right: 4px;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .fm .pin-stage {
    --head-top: max(3svh, 19vw);
    --court-top: calc(var(--head-top) + 94px);
    --figw: min(54vw, 22svh);
  }

  .fm-court {
    row-gap: calc(var(--figw) * 0.23 + 34px);
  }

  .fm-caption {
    top: calc(100% + var(--figw) * 0.24);
    font-size: clamp(19px, 5vw, 24px);
  }

  .fm-row {
    line-height: 1.32;
  }

  .fm-row-main dd {
    font-size: clamp(23px, 6vw, 30px);
  }

  .fm-prop {
    bottom: 8px;
    width: clamp(86px, 27vw, 106px);
  }
}

/* --------------------------------------------------------------------------
   11. Scene 6: Events (অনুষ্ঠান — Horizontal Puthi Scroll)
   -------------------------------------------------------------------------- */
.ev .pin-stage {
  background: radial-gradient(ellipse 90% 70% at 50% 45%, #7a1016, #3e080b 75%);
}

.ev-mark {
  width: min(120vw, 900px);
  background-image: url("../img/alpona-light.webp");
  opacity: 0.08;
}

.ev-mark-a {
  left: -45%;
  top: -10%;
}

.ev-mark-b {
  right: -50%;
  bottom: -20%;
}

.ev-head {
  position: absolute;
  left: 16px;
  right: 16px;
  top: max(3.5svh, 20px);
  text-align: center;
  z-index: 2;
}

.ev-head .ink-title {
  font-size: clamp(44px, 12vw, 92px);
  color: #f2d58f;
}

.ev-flourish {
  color: #e9c982;
}

.ev-scroll {
  --rod: clamp(24px, 6.4vw, 38px);
  position: absolute;
  container-type: inline-size;
  left: 10px;
  right: 10px;
  top: calc(max(3.5svh, 20px) + clamp(44px, 12vw, 92px) * 1.3 + 30px);
  bottom: calc(var(--lift) + max(9svh, 60px));
}

.ev-cloth {
  position: absolute;
  inset: 10px calc(var(--rod) * 0.55);
  display: flex;
  flex-direction: column;
  background:
    repeating-linear-gradient(0deg, rgba(120, 80, 30, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(120, 80, 30, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 50%, #fbf1d9, #f1dfb6);
  box-shadow: inset 0 0 40px #7846142e;
}

.ev-band {
  flex: none;
  height: clamp(22px, 5vw, 30px);
  border-block: 2px solid #2A160C;
  background:
    radial-gradient(circle, #FFF6DF 0 2px, transparent 2.5px) 0 50% / 14px 100% repeat-x,
    linear-gradient(135deg, #E9A800 25%, transparent 25%) -9px 0 / 18px 100%,
    linear-gradient(225deg, #E9A800 25%, transparent 25%) -9px 0 / 18px 100%,
    #b3121b;
}

.ev-band-top {
  margin-top: 8px;
}

.ev-band-bottom {
  margin-bottom: 8px;
}

.ev-window {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.ev-track {
  list-style: none;
  display: flex;
  height: 100%;
}

.ev-panel {
  position: relative;
  flex: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4svh;
  padding: 2svh 16px;
  text-align: center;
}

.ev-panel + .ev-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 8px;
  border-inline: 1.5px solid #2A160C;
  background: radial-gradient(circle, #B3121B 0 2px, transparent 2.5px) 50% 0 / 100% 12px repeat-y;
}

.ev-pic {
  width: min(88%, 52svh);
  aspect-ratio: 4 / 3;
  transition: scale 0.6s var(--ease);
  scale: 0.94;
}

.ev-panel.is-on .ev-pic {
  scale: 1;
}

.ev-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-name {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(36px, 9.6vw, 64px);
  line-height: 1.1;
  color: var(--sindoor);
  text-shadow: 0 1px 0 rgba(255, 236, 190, 0.9);
}

.ev-day {
  font-size: clamp(17px, 4.4vw, 22px);
  color: var(--maroon);
}

.ev-time {
  margin-top: -0.6svh;
  font-size: clamp(16px, 4.2vw, 21px);
  color: var(--sindoor);
}

.ev-rod {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--rod);
  border-radius: calc(var(--rod) / 2);
  background: linear-gradient(90deg, #3a1f0e, #7a4a24 22%, #c08a52, #8a5a30 62%, #2e180a);
  box-shadow: 0 10px 24px #00000080;
  z-index: 2;
}

.ev-rod::before,
.ev-rod::after {
  content: "";
  position: absolute;
  left: 50%;
  width: calc(var(--rod) * 1.35);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0b8, #d4a440 40%, #7a5414);
  box-shadow: 0 4px 8px #00000080;
}

.ev-rod::before {
  top: calc(var(--rod) * -0.6);
}

.ev-rod::after {
  bottom: calc(var(--rod) * -0.6);
}

.ev-rod-l {
  left: 0;
}

.ev-rod-r {
  right: 0;
}

.ev-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--lift) + max(3svh, 18px));
  text-align: center;
  font-size: 15px;
  color: #f2d58f;
}

.ev-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--lift) + max(2.6svh, 14px));
  text-align: center;
  font-size: 15px;
  color: #f2d58fbf;
}

.ev-count span {
  font-family: var(--font-title);
  font-size: 26px;
  color: #f2d58f;
}

@media (max-width: 767px) and (max-height: 700px) {
  .ev-head .ink-title {
    font-size: 40px;
  }
  .ev-scroll {
    top: 104px;
  }
}

@media (min-width: 1024px) {
  .ev-scroll {
    left: 4vw;
    right: 4vw;
    top: calc(max(3.5svh, 20px) + 150px);
    bottom: 9svh;
  }
  .ev-track {
    padding-inline: 27%;
  }
  .ev-panel {
    width: 100%;
    opacity: 0.4;
    transition: opacity 0.6s var(--ease);
  }
  .ev-panel.is-on {
    opacity: 1;
  }
  .ev-pic {
    width: min(82%, 40svh * 1.33);
  }
}

[data-near] .ev-track,
[data-near] .ev-rod {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   12. Scene 7: Formal Card (সবিনয় নিবেদন)
   -------------------------------------------------------------------------- */
.lt {
  background: var(--maroon);
  isolation: isolate;
}

.lt-orn {
  position: absolute;
  width: min(70vw, 620px);
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
}

.lt-orn-a {
  top: -18%;
  left: -22%;
}

.lt-orn-b {
  bottom: -20%;
  right: -24%;
}

.lt-stage {
  position: relative;
  display: grid;
  justify-items: center;
}

.lt-card {
  position: relative;
  width: min(100%, 620px);
  perspective: 1800px;
  cursor: pointer;
}

.lt-paper {
  position: relative;
  background: var(--ivory) url("../img/card-paper.webp") center / 100% 100% no-repeat;
  border-radius: 6px;
  padding: clamp(46px, 11vw, 78px) clamp(28px, 9vw, 70px);
  text-align: center;
  box-shadow: 0 40px 70px -30px #0000008c;
  color: var(--ink);
}

.lt-blessing {
  font-size: 15px;
  color: var(--maroon);
  letter-spacing: 0.04em;
}

.lt-heading {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 56px);
  color: var(--sindoor);
  line-height: 1.2;
  margin: 6px 0 4px;
}

.lt-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  margin: 10px auto 0;
  background: var(--gold);
}

.lt-salute {
  margin-top: 16px;
  font-size: 18px;
  color: var(--maroon);
}

.lt-para {
  margin-top: 12px;
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.85;
}

.lt-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}

.lt-sign {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lt-sign span {
  font-size: 15px;
  color: var(--gold);
}

.lt-sign strong {
  font-weight: 400;
  font-size: 19px;
  color: var(--sindoor);
}

.lt-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0.9s);
}

.lt-card.is-open .lt-reveal {
  opacity: 1;
  transform: translateY(0);
}

.lt-flap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background: #9e1a20;
  backface-visibility: visible;
  box-shadow: 0 30px 50px -20px #00000080;
  pointer-events: none;
  transition: transform 1.5s var(--ease) 0.2s;
}

.lt-flap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200%;
  background: url("../img/card-cover.webp") center / cover no-repeat;
}

.lt-flap-l {
  left: 0;
  transform-origin: left center;
  border-radius: 6px 0 0 6px;
  transform: rotateY(0deg);
}

.lt-flap-l::before {
  left: 0;
}

.lt-flap-r {
  right: 0;
  transform-origin: right center;
  border-radius: 0 6px 6px 0;
  transform: rotateY(0deg);
}

.lt-flap-r::before {
  right: 0;
}

.lt-card.is-open .lt-flap-l {
  transform: rotateY(-112deg);
}

.lt-card.is-open .lt-flap-r {
  transform: rotateY(112deg);
}

.lt-prop {
  display: none;
}

@media (min-width: 1100px) {
  .lt-prop {
    display: block;
    position: absolute;
    bottom: -40px;
    width: 220px;
    height: auto;
    pointer-events: none;
  }
  .lt-prop-l {
    left: 2%;
  }
  .lt-prop-r {
    right: 2%;
  }
}

/* --------------------------------------------------------------------------
   13. Scene 8: Schedule (দিনক্ষণ)
   -------------------------------------------------------------------------- */
.sc {
  isolation: isolate;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #FBF1D8, var(--cream) 75%);
  padding-bottom: clamp(190px, 40vw, 260px);
}

.sc-mark {
  width: min(140vw, 1000px);
  left: 50%;
  top: 34%;
  translate: -50% -50%;
}

.sc-switch {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.op-lang-switch {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  margin-bottom: 0;
  pointer-events: auto;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .op-lang-switch {
    top: 18px;
  }
}

.sc-lang {
  padding: 4px 10px;
  font-size: 15px;
  color: var(--ink-soft);
  background: transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sc-lang.is-on {
  color: var(--sindoor);
  border-bottom-color: var(--sindoor);
}

.sc .h-title {
  font-size: clamp(52px, 13vw, 100px);
}

.sc-title-en {
  font-family: var(--font-en-script);
  font-size: clamp(60px, 14vw, 110px) !important;
}

.sc-flourish {
  color: var(--sindoor);
}

.sc-events {
  display: grid;
  gap: clamp(36px, 8vw, 56px);
  max-width: 980px;
  margin: 0 auto;
}

.sc-item {
  text-align: center;
}

.sc-item-inner {
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.sc-item-inner.is-switching {
  opacity: 0;
  transform: translateY(-6px);
}

.sc-item h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(38px, 9.5vw, 58px);
  color: var(--sindoor);
  line-height: 1.15;
}

.is-en .sc-item h3 {
  font-family: var(--font-en-script);
  font-size: clamp(46px, 11vw, 66px);
}

.is-en .sc-item p {
  font-family: var(--font-en-body);
  font-weight: 600;
}

.sc-mini-flourish {
  width: min(170px, 46vw);
  margin: 2px auto 8px;
}

.sc-date {
  font-size: clamp(20px, 5vw, 25px);
  color: var(--maroon);
  line-height: 1.4;
}

.sc-time {
  font-size: clamp(18px, 4.6vw, 22px);
  color: var(--maroon);
}

.sc-venue {
  margin-top: 12px;
  font-family: var(--font-title);
  font-size: clamp(26px, 6.6vw, 36px);
  line-height: 1.25;
  color: var(--sindoor);
}

.is-en .sc-venue {
  font-family: var(--font-en-body);
  font-weight: 600;
  font-size: clamp(22px, 5.4vw, 28px);
}

.sc-venue span {
  display: block;
  font-family: var(--font-bangla);
  font-size: 16px;
  color: var(--gold);
}

.sc-venue-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(179, 18, 27, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sc-venue-link:hover {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}

.sc-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(184, 138, 44, 0.5);
  background: rgba(255, 248, 231, 0.72);
  color: var(--maroon);
  font-family: var(--font-bangla);
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.sc-map-link:hover {
  background: rgba(255, 248, 231, 0.98);
  border-color: var(--sindoor);
  transform: translateY(-1px);
}

.sc-map-link svg {
  width: 15px;
  height: 15px;
  color: var(--sindoor);
  flex: none;
}

.is-en-site .br-title,
.is-en-site .gr-title {
  white-space: normal;
  text-wrap: balance;
  font-size: clamp(36px, 4.2vw, 72px);
}

.is-en-site .lt-heading {
  font-family: var(--font-en-script);
  font-size: clamp(42px, 5.2vw, 60px);
}

.is-en-site .lt-para,
.is-en-site .lt-salute,
.is-en-site .lt-note,
.is-en-site .lt-sign strong {
  font-family: var(--font-en-body);
}

.sc-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: clamp(44px, 8vw, 72px);
}

.sc-nums {
  display: grid;
  grid-template-columns: repeat(4, auto);
}

.sc-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(12px, 4vw, 28px);
  border-left: 1px solid rgba(184, 138, 44, 0.55);
}

.sc-num:first-child {
  border-left: 0;
}

.sc-digit {
  position: relative;
  display: grid;
  height: 1.7em;
  overflow: hidden;
  font-family: var(--font-title);
  font-size: clamp(38px, 10vw, 60px);
  line-height: 1.7;
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
}

.sc-digit span {
  grid-area: 1 / 1;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.sc-digit span.digit-enter {
  animation: digitEnter 0.35s var(--ease) both;
}

@keyframes digitEnter {
  from {
    opacity: 0;
    transform: translateY(-60%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

.sc-label {
  font-size: 14px;
  color: var(--gold);
}

.sc-msg {
  font-family: var(--font-title);
  font-size: 40px;
  color: var(--sindoor);
}

.sc-cal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--sindoor);
  color: var(--ivory);
  font-size: 17px;
  transition: background 0.2s;
}

.sc-cal:hover {
  background: var(--maroon);
}

.sc-cal svg {
  width: 20px;
  height: 20px;
}

.sc-prop {
  position: absolute;
  bottom: -8px;
  width: min(44vw, 380px);
  height: auto;
  pointer-events: none;
}

.sc-prop-l {
  left: -6vw;
}

.sc-prop-r {
  right: -6vw;
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .sc-events {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .sc {
    padding-bottom: clamp(120px, 12vw, 200px);
  }
  .sc-prop {
    width: min(24vw, 400px);
  }
  .sc-prop-l {
    left: 2vw;
  }
  .sc-prop-r {
    right: 2vw;
  }
}

/* --------------------------------------------------------------------------
   14. Scene 9: Closing / Footer (আসবেন কিন্তু।)
   -------------------------------------------------------------------------- */
.ft {
  position: relative;
  min-height: 100svh;
  min-height: 100lvh;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% 40%, #c3161f, #8c0f17 75%);
  color: var(--ivory);
  text-align: center;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ft-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ft-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}

.ft-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.has-art .ft-shade {
  background: linear-gradient(180deg, rgba(40, 6, 4, 0.75), rgba(40, 6, 4, 0.25) 42%, transparent 60%);
}

.ft.has-art {
  justify-content: flex-start;
  padding-top: max(3svh, 20px);
}

.ft-inner {
  padding: 20px 20px;
}

.ft-line {
  font-size: clamp(54px, 11vw, 108px) !important;
  color: var(--ivory) !important;
  text-shadow: 0 3px 18px rgba(60, 4, 8, 0.45);
}

.ft-flourish {
  color: #e9c982;
}

.ft-names {
  margin-top: 8px;
  font-family: var(--font-title);
  font-size: clamp(26px, 6.6vw, 40px);
  color: #f2d58f;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease) 0.5s, transform 0.9s var(--ease) 0.5s;
}

.ft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(26px, 5svh, 44px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease) 0.8s, transform 0.9s var(--ease) 0.8s;
}

.ft.is-entered .ft-names,
.ft.is-entered .ft-actions {
  opacity: 1;
  transform: translateY(0);
}

.ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 9999px;
  font-size: 17px;
  color: var(--ivory);
  text-decoration: none;
  border: 1.5px solid rgba(242, 213, 143, 0.75);
  background: #3c060840;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.25s, scale 0.25s var(--ease);
}

.ft-btn:hover {
  background: #3c060873;
}

.ft-btn:active {
  scale: 0.96;
}

.ft-btn-gold {
  color: #4e0a0e;
  border-color: transparent;
  background: linear-gradient(180deg, #f6de9c, #d9b062);
  box-shadow: 0 10px 24px -10px #00000080;
}

.ft-btn-gold:hover {
  background: linear-gradient(180deg, #fbe7b0, #e2bc6e);
}

.ft-note {
  min-height: 1.6em;
  margin-top: 12px;
  font-size: 15px;
  color: #f2d58f;
}

.ft-blessing-toast {
  position: absolute;
  top: clamp(468px, 53svh, 515px);
  left: 50%;
  transform: translate(-50%, 8px);
  z-index: 8;
  padding: 12px 26px;
  border-radius: 9999px;
  background: rgba(44, 12, 10, 0.72);
  border: 1px solid rgba(243, 219, 163, 0.5);
  color: #f6e0a8;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(18, 4, 4, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.ft-blessing-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ft-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s var(--ease) 0.95s, transform 0.9s var(--ease) 0.95s;
}

.ft.is-entered .ft-links,
.ft.is-entered .ft-signoff {
  opacity: 1;
  transform: translateY(0);
}

.ft-signoff {
  font-size: 15.5px;
  color: rgba(246, 224, 168, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s var(--ease) 1.05s, transform 0.9s var(--ease) 1.05s;
}

@media (min-width: 769px) {
  .ft-signoff {
    position: absolute;
    bottom: 14px;
    left: 50%;
    translate: -50% 0;
    white-space: nowrap;
  }
}

.ft-card-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 4, 4, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ft-card-modal[hidden] {
  display: none;
}

.ft-card-modal-box {
  position: relative;
  max-width: min(92vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ft-card-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(243, 219, 163, 0.6);
  background: #3c0608;
  color: #f6e0a8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ft-card-modal-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.ft-card-modal-hint {
  font-size: 13px;
  color: #f3dba3;
  text-align: center;
}

@media (max-width: 1023px) {
  .ft-btn {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .ft-btn:not(.ft-btn-gold) {
    background: #3c060880;
  }
}

/* Mobile-only Closing: center couple horizontally, keep title in sky, anchor 2+1 buttons at bottom */
@media (max-width: 768px) {
  .ft-img {
    object-position: 25.5% 50%;
  }

  .has-art .ft-shade {
    background: linear-gradient(
      180deg,
      rgba(40, 6, 4, 0.72) 0%,
      rgba(40, 6, 4, 0.18) 26%,
      transparent 42%,
      transparent 64%,
      rgba(22, 4, 4, 0.80) 100%
    );
  }

  .ft.has-art {
    padding-top: max(5.5svh, 46px);
  }

  .ft-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px max(12px, env(safe-area-inset-bottom) + 10px);
  }

  .ft-line {
    font-size: clamp(46px, 11.5vw, 68px) !important;
  }

  .ft-names {
    margin-top: 4px;
    font-size: clamp(23px, 6vw, 32px);
  }

  .ft-blessing-toast {
    top: 194px;
    font-size: 16.5px;
    font-weight: 600;
    padding: 10px 20px;
    max-width: 90vw;
  }

  .ft-actions {
    margin-top: auto;
    max-width: 340px;
    gap: 8px 10px;
  }

  .ft-btn {
    padding: 9px 18px;
    font-size: 15px;
  }

  .ft-links {
    flex-wrap: nowrap;
    margin-top: 8px;
    gap: 8px;
    max-width: 350px;
  }

  .ft-links .ft-btn {
    padding: 9px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .ft-note {
    margin-top: 2px;
    min-height: 0;
    font-size: 12.5px;
  }

  .ft-signoff {
    margin-top: 10px;
    font-size: 13.5px;
    white-space: nowrap;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .ft.has-art {
    padding-top: max(4svh, 30px);
  }

  .ft-inner {
    padding-bottom: max(10px, env(safe-area-inset-bottom) + 8px);
  }

  .ft-line {
    font-size: clamp(40px, 10.5vw, 52px) !important;
  }

  .ft-names {
    font-size: 22px;
  }

  .ft-blessing-toast {
    top: 162px;
    font-size: 16px;
    padding: 9px 18px;
  }

  .ft-btn {
    padding: 8px 16px;
    font-size: 14.5px;
  }

  .ft-links .ft-btn {
    padding: 8px 13px;
    font-size: 13.5px;
  }
}
