/* ============================================================
   Arjun & Lakshmi Priya — Wedding Invitation
   Luxury Kerala Hindu Digital Wedding Experience
   Pure HTML5 + CSS3 + Vanilla JS (Fully Responsive)
   ============================================================ */

/* ---------- 1 · TOKENS ---------- */
:root {
  --ivory: #FBF7EF;
  --ivory-2: #F6EFE2;
  --beige: #EFE3CF;
  --beige-2: #E6D7BD;
  --gold: #C1962F;
  --gold-lt: #E7C97A;
  --gold-dk: #8E6C1E;
  --brass: #9C7C38;
  --leaf: #3D6B3C;
  --leaf-dk: #2A4E2B;
  --maroon: #7A1A28;
  --maroon-dk: #52111A;
  --brown: #7A5C43;
  --ink: #2E2018;
  --ink-soft: #5E4A3A;
  --night: #0E0905;
  --night-2: #1D130B;

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);

  --shadow-s: 0 2px 10px rgba(46,32,24,.08);
  --shadow-m: 0 14px 36px -14px rgba(46,32,24,.30);
  --shadow-l: 0 30px 70px -28px rgba(46,32,24,.44);

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-title: "Marcellus", Georgia, serif;
  --f-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-ml: "Noto Sans Malayalam", "Nirmala UI", system-ui, sans-serif;

  --wrap: 1180px;
  --pad: clamp(16px, 4.5vw, 48px);
  --sec-y: clamp(60px, 10vw, 130px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='22' viewBox='0 0 72 22'%3E%3Cg fill='none' stroke='%23C1962F' stroke-width='1' stroke-linecap='round' opacity='.6'%3E%3Cpath d='M0 11h14M58 11h14'/%3E%3Cpath d='M22 11c0-3.6 2.6-6.4 5.6-6.4S33.2 7.4 33.2 11s-2.6 6.4-5.6 6.4S22 14.6 22 11z'/%3E%3Cpath d='M38.8 11c0-3.6 2.6-6.4 5.6-6.4S50 7.4 50 11s-2.6 6.4-5.6 6.4S38.8 14.6 38.8 11z'/%3E%3C/g%3E%3Ccircle cx='36' cy='11' r='1.7' fill='%23C1962F' opacity='.75'/%3E%3C/svg%3E");
}

/* ---------- 2 · RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(14.5px, 0.95vw + 11.5px, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
}
body.is-locked { overflow: hidden; height: 100%; position: fixed; inset: 0; width: 100%; }
img, video, canvas, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; border: 0; background: none; box-sizing: border-box; }
button { cursor: pointer; }
::selection { background: var(--gold); color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 3.8;
  stroke-linecap: round; stroke-linejoin: round; overflow: visible;
}

/* ---------- 3 · SHARED COMPONENTS ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 2; box-sizing: border-box; }
.wrap--center { text-align: center; }

.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 18px auto 0; max-width: 280px; color: var(--gold);
}
.divider .ico { width: 24px; height: 24px; stroke-width: 3.6; opacity: .95; }
.divider-line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(193, 150, 47, .75)); }
.divider-line:last-child { background: linear-gradient(270deg, transparent, rgba(193, 150, 47, .75)); }
.divider--sm { max-width: 200px; }
.divider--light { color: var(--gold-lt); }
.divider--light .divider-line { background: linear-gradient(90deg, transparent, rgba(231, 201, 122, .65)); }
.divider--light .divider-line:last-child { background: linear-gradient(270deg, transparent, rgba(231, 201, 122, .65)); }

.mural-border {
  position: absolute; left: 0; right: 0; height: 22px;
  background-image: var(--motif); background-repeat: repeat-x; background-position: center;
  opacity: .5; pointer-events: none;
}
.mural-border--top { top: 22px; }
.muted { color: var(--ink-soft); }

/* ---------- 4 · FLOATING NAVIGATION ---------- */
.nav-header {
  position: fixed; top: max(14px, var(--sat)); left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 100; width: min(94%, 920px);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
  pointer-events: none;
}
body.is-revealed .nav-header {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s;
  pointer-events: auto;
}
.nav-pill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 8px clamp(14px, 3vw, 22px); background: rgba(22, 15, 8, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(231, 201, 122, .38); border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,240,205,.2);
  width: 100%; box-sizing: border-box;
}
.nav-brand {
  font-family: var(--f-display); font-weight: 400; font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.15rem); letter-spacing: .04em; color: #FFF3DC;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-brand span { color: var(--gold-lt); margin: 0 2px; }
.nav-links { display: flex; align-items: center; gap: clamp(6px, 1.3vw, 18px); }
.nav-link {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 243, 220, .8); transition: color .3s, transform .3s; padding: 6px 8px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--gold-lt); transform: translateY(-1px); }
.nav-rsvp-btn {
  padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(145deg, var(--gold-lt), var(--gold));
  color: #24180F; font-weight: 600; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; transition: transform .3s, box-shadow .3s;
  white-space: nowrap;
}
.nav-rsvp-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(193, 150, 47, .5); }

/* Hamburger Toggle Button */
.nav-toggle {
  display: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  margin: 0; background: transparent; border: none; cursor: pointer;
  color: var(--gold-lt); flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; -webkit-tap-highlight-color: transparent;
  border-radius: 50%; transition: background .25s, transform .2s;
  position: relative; z-index: 10; touch-action: manipulation;
}
.nav-toggle:hover { background: rgba(231, 201, 122, .15); }
.nav-toggle:active { transform: scale(0.92); }
.nav-toggle-bar {
  display: block; width: 22px; height: 2px; background: var(--gold-lt);
  border-radius: 2px; transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s, background .3s;
  pointer-events: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Navigation Drawer */
body.nav-open {
  overflow: hidden !important;
  touch-action: none;
}
.nav-drawer {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  width: 100vw; height: 100vh; height: 100dvh;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.nav-drawer.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .35s var(--ease), visibility 0s;
}
.nav-drawer__backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: rgba(10, 7, 4, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}
.nav-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(88vw, 360px); height: 100%; height: 100dvh;
  background: linear-gradient(175deg, rgba(28, 19, 11, .98) 0%, rgba(14, 9, 5, .99) 100%);
  border-left: 1px solid rgba(231, 201, 122, .35);
  box-shadow: -12px 0 45px rgba(0, 0, 0, .8);
  display: flex; flex-direction: column;
  padding: max(20px, calc(var(--sat) + 12px)) max(20px, var(--sar)) max(24px, var(--sab)) max(24px, var(--sal));
  transform: translateX(100%); transition: transform .38s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch;
  z-index: 2;
}
.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}
.nav-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid rgba(231, 201, 122, .2);
}
.nav-drawer__brand {
  font-family: var(--f-display); font-size: 1.15rem; font-style: italic; color: #FFF3DC;
}
.nav-drawer__brand span { color: var(--gold-lt); margin: 0 2px; }
.nav-drawer__close {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-lt); font-size: 28px; line-height: 1;
  background: rgba(231, 201, 122, .1); border: 1px solid rgba(231, 201, 122, .25);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .2s, transform .2s;
}
.nav-drawer__close:hover { background: rgba(231, 201, 122, .25); transform: scale(1.05); }
.nav-drawer__close:active { transform: scale(0.94); }
.nav-drawer__links {
  display: flex; flex-direction: column; gap: 8px; margin-top: 18px;
}
.nav-drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 10px; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: #FFF3DC;
  transition: background .25s, color .25s, transform .25s; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.nav-drawer__link small {
  font-family: var(--f-ml); font-size: 11px; color: var(--gold-lt); opacity: .85; letter-spacing: 0; text-transform: none;
}
.nav-drawer__link:hover, .nav-drawer__link:active {
  background: rgba(231, 201, 122, .15); color: var(--gold-lt); transform: translateX(3px);
}
.nav-drawer__link--highlight {
  background: linear-gradient(145deg, rgba(231, 201, 122, .25), rgba(193, 150, 47, .2));
  border: 1px solid rgba(231, 201, 122, .4); color: var(--gold-lt); font-weight: 500;
}

/* ---------- 5 · PARTICLES & PROGRESS ---------- */
#particles {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 80; pointer-events: none; opacity: 0;
  transition: opacity 1.4s var(--ease); will-change: opacity;
}
#particles.on { opacity: 1; }

#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt), var(--gold));
  box-shadow: 0 0 10px rgba(193, 150, 47, .75); pointer-events: none;
  border-radius: 0 2px 2px 0; opacity: 0;
  transition: width .08s linear, opacity .4s ease;
}
#scroll-progress.is-visible { opacity: 1; }

/* ============================================================
   7 · LANDING COVER
   ============================================================ */
#landing {
  position: fixed; inset: 0; z-index: 70;
  width: 100%; height: 100vh; height: 100dvh;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: max(16px, var(--sat)) max(16px, var(--sar)) max(18px, var(--sab)) max(16px, var(--sal));
  box-sizing: border-box;
  overflow: hidden; background: #0E0905;
  transition: opacity .45s var(--ease); will-change: opacity;
}
#landing.is-opening .btn-open { pointer-events: none; opacity: .72; }
#landing.is-out { opacity: 0; pointer-events: none; }
#landing.is-gone { display: none !important; }

.landing-media,
#landing > .rays,
#landing > .vignette,
#landing > .temple-glow,
#landing > .landing-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.landing-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  animation: kenburns 26s var(--ease-soft) infinite alternate;
  will-change: transform;
}
.cover-fallback {
  position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(120% 70% at 50% 12%, rgba(255, 226, 164, .36), transparent 62%),
    radial-gradient(80% 55% at 20% 90%, rgba(193, 150, 47, .28), transparent 70%),
    radial-gradient(80% 55% at 82% 84%, rgba(122, 26, 40, .34), transparent 70%),
    linear-gradient(180deg, #2A1B0E 0%, #160E07 55%, #0E0905 100%);
}
.landing-media.fallback-on .cover-fallback { opacity: 1; }

@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.10) translate3d(0, -1.2%, 0); }
}

.vignette {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(115% 78% at 50% 34%, transparent 34%, rgba(11, 7, 3, .4) 82%, rgba(11, 7, 3, .7) 100%),
    linear-gradient(180deg, rgba(10, 6, 3, .45) 0%, transparent 26%, transparent 48%, rgba(10, 6, 3, .65) 100%);
}
.landing-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(70% 50% at 50% 45%, transparent 30%, rgba(11, 7, 3, .25) 100%);
}
.temple-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 55% 40% at 50% 18%, rgba(255, 214, 140, .32), transparent 70%);
  animation: breathe 7.5s var(--ease-soft) infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.rays {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .28;
  mix-blend-mode: screen; overflow: hidden;
}
.rays::before, .rays::after {
  content: ""; position: absolute; inset: -20%;
  background: repeating-conic-gradient(from 0deg at 50% 8%, rgba(255, 226, 168, .20) 0deg 2.2deg, transparent 2.2deg 10deg);
  -webkit-mask-image: radial-gradient(65% 78% at 50% 6%, #000, transparent 72%);
  mask-image: radial-gradient(65% 78% at 50% 6%, #000, transparent 72%);
  animation: sweep 46s linear infinite; will-change: transform;
}
.rays::after { animation-duration: 74s; animation-direction: reverse; opacity: .6; }
@keyframes sweep { to { transform: rotate(360deg); } }

.landing-inner {
  position: relative; color: var(--ivory); z-index: 5; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; max-width: min(92vw, 680px);
  padding: clamp(6px, 1.5vh, 18px) clamp(10px, 3vw, 24px);
  box-sizing: border-box;
}

.landing-eyebrow {
  display: flex; flex-direction: column; gap: clamp(3px, 0.8vh, 6px);
  animation: riseIn 1.5s .35s var(--ease) both;
}
.landing-eyebrow .ml {
  font-family: var(--f-ml); font-size: clamp(13px, 3.4vw, 18px);
  color: var(--gold-lt); letter-spacing: .02em;
}
.landing-eyebrow .en {
  font-size: clamp(9px, 2.2vw, 11.5px); letter-spacing: .28em;
  text-transform: uppercase; color: #fff; font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,.7), 0 0 20px rgba(0,0,0,.5);
}

.landing-inner .divider { animation: riseIn 1.5s .6s var(--ease) both; }

.landing-names {
  margin-top: clamp(8px, 1.8vh, 18px); font-family: var(--f-display); font-weight: 300;
  font-size: clamp(32px, 8.5vw, 80px); line-height: 1.05; letter-spacing: .01em;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #FFF6E3;
  text-shadow: 0 2px 30px rgba(255, 196, 110, .35), 0 1px 3px rgba(0,0,0,.5);
}
.landing-names .n { animation: riseIn 1.6s .8s var(--ease) both; }
.landing-names .n:last-child { animation-delay: 1.05s; }
.landing-names .amp {
  font-family: var(--f-display); font-style: italic; font-size: .44em;
  color: var(--gold-lt); opacity: .9; margin: 2px 0;
  animation: riseIn 1.6s .95s var(--ease) both;
}
.landing-date {
  margin-top: clamp(6px, 1.4vh, 14px); font-size: clamp(10.5px, 2.6vw, 13px);
  letter-spacing: .44em; text-indent: .44em; color: #fff; font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,.6); animation: riseIn 1.6s 1.25s var(--ease) both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}

/* Open Invitation Button */
.btn-open {
  position: relative; margin-top: clamp(16px, 4vh, 44px);
  padding: 0; border-radius: 999px; isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  animation: riseIn 1.6s 1.5s var(--ease) both; transition: transform .4s var(--ease);
}
.btn-open__inner {
  position: relative; z-index: 3; display: flex; align-items: center; gap: clamp(10px, 2.5vw, 14px);
  padding: clamp(10px, 1.8vh, 16px) clamp(20px, 5vw, 38px); border-radius: 999px;
  background: linear-gradient(145deg, rgba(28, 18, 9, .82), rgba(12, 8, 4, .76));
  border: 1px solid rgba(231, 201, 122, .65);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, .28), 0 14px 40px -18px rgba(0,0,0,.95);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
  min-height: 48px; box-sizing: border-box;
}
.btn-open__lamp {
  width: clamp(20px, 4vw, 26px); height: clamp(20px, 4vw, 26px); color: var(--gold-lt);
  stroke-width: 3.6; animation: flicker 3.4s ease-in-out infinite; flex-shrink: 0;
}
@keyframes flicker {
  0%, 100% { opacity: .85; filter: drop-shadow(0 0 4px rgba(255, 196, 110, .5)); }
  45% { opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 206, 130, .95)); }
  70% { opacity: .9; }
}

.btn-open__label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.btn-open__en { font-size: clamp(12px, 3vw, 15px); letter-spacing: .22em; text-transform: uppercase; color: #FFF3DC; }
.btn-open__ml { font-family: var(--f-ml); font-size: clamp(9.5px, 2.4vw, 11.5px); color: rgba(231, 201, 122, .88); letter-spacing: .01em; }

.btn-open__glow {
  position: absolute; inset: -26px; z-index: 1; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 200, 110, .45), transparent 74%);
  animation: pulseGlow 3.6s var(--ease-soft) infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: .45; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

.btn-open__ring {
  position: absolute; inset: -7px; z-index: 2; border-radius: 999px;
  border: 1px solid rgba(231, 201, 122, .48); animation: ringOut 3.6s var(--ease-soft) infinite;
}
@keyframes ringOut {
  0% { opacity: .75; transform: scale(.96); }
  70% { opacity: 0; transform: scale(1.16); }
  100% { opacity: 0; }
}

.btn-open__shimmer {
  position: absolute; inset: 0; z-index: 4; border-radius: 999px;
  overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000, #000);
}
.btn-open__shimmer::before {
  content: ""; position: absolute; top: -60%; bottom: -60%; width: 34%; left: -45%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 205, .5), transparent);
  transform: skewX(-18deg); animation: shimmer 4.6s 2.4s var(--ease-soft) infinite;
}
@keyframes shimmer {
  0% { left: -45%; }
  55%, 100% { left: 125%; }
}

.btn-open:hover { transform: translateY(-2px); }
.btn-open:hover .btn-open__inner {
  border-color: rgba(231, 201, 122, .95);
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, .38), 0 18px 46px -16px rgba(255, 180, 90, .45);
}
.btn-open:active { transform: translateY(0) scale(.985); }
.btn-open:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 8px; }

.landing-hint {
  margin-top: clamp(8px, 1.6vh, 18px); font-size: 10px; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(251, 247, 239, .6);
  animation: riseIn 1.6s 1.9s var(--ease) both, hintFade 3.4s 3s ease-in-out infinite;
}
@keyframes hintFade {
  0%, 100% { opacity: .35; }
  50% { opacity: .85; }
}

/* ============================================================
   8 · REVEAL VIDEO
   ============================================================ */
#reveal {
  position: fixed; inset: 0; z-index: 60; background: #0E0905;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
  will-change: opacity;
}
#reveal.is-armed, #reveal.is-on {
  opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s;
}
#reveal.is-live { z-index: 95; }
#reveal.is-out {
  opacity: 0; visibility: hidden;
  transition: opacity .85s var(--ease), visibility 0s linear .85s; z-index: 95;
}
#reveal.is-gone { display: none !important; }

#revealVideo {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center; background: #0E0905;
}
.reveal-fade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 80% at 50% 55%, rgba(255, 226, 170, .24), transparent 60%), #0E0905;
  transition: opacity 1.1s var(--ease);
}
#reveal.is-out .reveal-fade { opacity: 1; }

.btn-skip {
  position: absolute; z-index: 3; right: max(16px, var(--sar));
  bottom: max(18px, var(--sab)); padding: 10px 20px; border-radius: 999px;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255, 246, 227, .85); border: 1px solid rgba(231, 201, 122, .35);
  background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px);
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; animation: fadeIn .8s var(--ease) forwards;
}
@keyframes fadeIn { to { opacity: .75; } }
.btn-skip:hover { opacity: 1; }

/* ============================================================
   9 · SITE SHELL & HERO
   ============================================================ */
#site {
  position: relative; z-index: 1; opacity: 0; visibility: hidden;
  transition: opacity .85s var(--ease); background: var(--ivory);
  width: 100%; max-width: 100vw; box-sizing: border-box;
}
body.is-revealed #site { opacity: 1; visibility: visible; }
body:not(.is-revealed) #site * { animation-play-state: paused !important; }

.hero-bless { display: flex; flex-direction: column; gap: clamp(2px, .8%, 5px); }
.hero-bless--top {
  text-align: center; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-bless__ml {
  font-family: var(--f-ml); font-size: clamp(12px, 3vw, 15px); color: var(--gold-lt); letter-spacing: .02em;
}
.hero-bless__en {
  font-size: clamp(8.5px, 2.2vw, 10.5px); letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 246, 227, .85);
}
.hero-names {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 8vw, 68px);
  line-height: 1; letter-spacing: .01em; color: #FFF6E3;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .9);
}
.hero-names__n { display: block; }
.hero-names__amp {
  font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: .42em;
  line-height: 1; margin: clamp(2px, 0.8vh, 6px) 0; color: var(--gold-lt);
}
.hero-date {
  margin-top: clamp(6px, 1.5vh, 16px); display: flex; flex-direction: column; align-items: center; gap: clamp(2px, .8%, 5px);
}
.hero-date__en {
  font-family: var(--f-title); font-size: clamp(12px, 3.2vw, 16px);
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lt); text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}
.hero-chingam {
  text-align: center; margin: 0; font-family: var(--f-title);
  font-size: clamp(11px, 2.8vw, 14px); letter-spacing: .12em; color: #FFF3DC;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8); opacity: .9;
}
.scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; padding: 4px 12px; -webkit-tap-highlight-color: transparent;
}
.scroll-indicator__word {
  font-size: 10px; letter-spacing: .36em; text-transform: uppercase; font-weight: 900; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.scroll-indicator__arrow {
  width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .6));
  animation: arrowBob 1.8s ease-in-out infinite;
}
@keyframes arrowBob {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ============================================================
   10 · FLOW SECTIONS & DETAILS
   ============================================================ */
.sec-head { text-align: center; margin-bottom: clamp(1.8rem, 4.5vw, 3.6rem); }
.kicker {
  font-family: var(--f-ml); font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: .2em; color: var(--brass); margin-bottom: 8px;
}
.sec-title {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 6vw, 52px);
  line-height: 1.12; letter-spacing: .005em; color: var(--ink);
}
.scene--dark .sec-title, .scene--finale .sec-title { color: #FBF3E2; }
.scene--dark .kicker, .scene--finale .kicker { color: var(--gold-lt); opacity: .9; }

.lede {
  max-width: 740px; margin: 0 auto clamp(30px, 6vw, 56px); text-align: center;
  font-family: var(--f-display); font-size: clamp(16px, 3.8vw, 22px);
  line-height: 1.85; color: var(--ink-soft); font-weight: 300;
}
.lede em { font-style: italic; color: var(--maroon); font-weight: 400; }

.reveal {
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .10s; }
.reveal[data-delay="2"] { transition-delay: .20s; }
.reveal[data-delay="3"] { transition-delay: .30s; }
.reveal[data-delay="4"] { transition-delay: .40s; }

/* Facts Grid */
.facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); width: 100%; box-sizing: border-box; }
.fact {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 4px; padding: 26px 18px 22px; border-radius: 4px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(193, 150, 47, .28);
  box-shadow: var(--shadow-s); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  box-sizing: border-box;
}
.fact::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid rgba(193, 150, 47, .16);
  border-radius: 2px; pointer-events: none;
}
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: rgba(193, 150, 47, .5); }
.fact .ico { width: 30px; height: 30px; color: var(--gold); stroke-width: 3.4; margin-bottom: 8px; }
.fact-k { font-size: clamp(10.5px, 2.6vw, 13px); letter-spacing: .28em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.fact-v { font-family: var(--f-title); font-size: clamp(16px, 4vw, 21px); color: var(--maroon); line-height: 1.4; font-weight: 700; }
.fact-s { font-size: 12px; color: var(--ink-soft); }

/* Countdown */
.countdown {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(6px, 2vw, 18px); margin-top: clamp(32px, 6vw, 56px); flex-wrap: wrap; width: 100%;
}
.cd-unit {
  display: flex; flex-direction: column; align-items: center; min-width: clamp(56px, 18vw, 84px);
  background: linear-gradient(160deg, rgba(122, 26, 40, .14), rgba(122, 26, 40, .06));
  border: 1px solid rgba(193, 150, 47, .42); border-radius: 8px;
  padding: 14px clamp(8px, 2vw, 14px) 10px; box-shadow: 0 4px 18px -8px rgba(122, 26, 40, .25);
  position: relative; box-sizing: border-box;
}
.cd-unit::before {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(193, 150, 47, .16);
  border-radius: 5px; pointer-events: none;
}
.cd-n {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 7.5vw, 56px);
  line-height: 1; color: var(--maroon); font-variant-numeric: tabular-nums;
}
.cd-l {
  margin-top: 6px; font-size: clamp(8px, 2vw, 9.5px); letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass); font-weight: 600;
}
.cd-sep {
  display: flex; align-items: center; padding-bottom: 18px; font-family: var(--f-display);
  font-size: clamp(22px, 5vw, 36px); color: var(--gold); opacity: .6; line-height: 1;
}
.cd-sep::after { content: ":"; }

/* Timeline */
.tl { position: relative; max-width: 760px; margin-inline: auto; padding-left: 0; width: 100%; box-sizing: border-box; }
.tl::before {
  content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(193, 150, 47, .55) 8%, rgba(193, 150, 47, .55) 92%, transparent);
}
.tl-item { position: relative; padding: 0 0 clamp(30px, 5vw, 48px) 64px; box-sizing: border-box; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ivory);
  border: 1px solid rgba(193, 150, 47, .55); color: var(--gold);
  box-shadow: 0 0 0 6px var(--ivory), 0 6px 18px -8px rgba(46, 32, 24, .4);
}
.tl-node .ico { width: 22px; height: 22px; stroke-width: 3.6; }
.tl-node--hi {
  background: linear-gradient(145deg, var(--gold-lt), var(--gold));
  color: #2E2018; border-color: transparent;
}
.tl-node--hi::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(193, 150, 47, .55); animation: ringOut 3.4s var(--ease-soft) infinite;
}
.tl-date { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.tl-title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 5vw, 30px);
  color: var(--ink); margin: 6px 0 8px; line-height: 1.2;
}
.tl-meta { font-size: 13.5px; color: var(--maroon); margin-bottom: 8px; }
.tl-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }

/* Couple */
.couple-grid {
  display: grid; gap: clamp(24px, 5vw, 44px); align-items: center;
  grid-template-columns: 1fr; justify-items: center; width: 100%; box-sizing: border-box;
}
.person { text-align: center; max-width: 400px; width: 100%; box-sizing: border-box; }
.portrait {
  position: relative; width: clamp(180px, 48vw, 260px); aspect-ratio: 3/4; margin: 0 auto 22px;
  border-radius: 999px 999px 8px 8px; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(193, 150, 47, .08) 0 10px, transparent 10px 20px), linear-gradient(160deg, #3A2A1A, #1D130B);
  border: 1px solid rgba(231, 201, 122, .38);
}
.portrait-img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .6s var(--ease);
}
.portrait:hover .portrait-img { transform: scale(1.05); }
.portrait-ring {
  position: absolute; inset: 7px; border-radius: 999px 999px 6px 6px;
  border: 1px solid rgba(231, 201, 122, .38); pointer-events: none;
}
.person-role { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-lt); opacity: .85; }
.person-name {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 6.8vw, 44px);
  color: #FBF3E2; margin: 8px 0 4px; line-height: 1.15;
}
.person-line { font-size: 14px; color: rgba(243, 233, 214, .82); line-height: 1.8; }
.person-place { font-size: 13px; color: rgba(243, 233, 214, .55); margin-top: 6px; }

.couple-knot { display: flex; align-items: center; gap: 14px; color: var(--gold-lt); opacity: .75; }
.couple-amp { font-family: var(--f-display); font-style: italic; font-size: 28px; }
.couple-initial {
  font-family: var(--f-display); font-style: italic; font-size: clamp(38px, 9vw, 64px);
  font-weight: 300; color: var(--gold-lt); line-height: 1; text-shadow: 0 2px 18px rgba(231, 201, 122, .45);
}

/* Family */
.family-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); width: 100%; box-sizing: border-box; }
.card--family {
  text-align: center; padding: clamp(28px, 5vw, 44px) clamp(18px, 4vw, 36px);
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(193, 150, 47, .28);
  border-radius: 4px; box-shadow: var(--shadow-s); position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-sizing: border-box;
}
.card--family::after {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(193, 150, 47, .14); pointer-events: none;
}
.card--family:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.card-ico { width: 34px; height: 34px; color: var(--brass); margin: 0 auto 16px; }
.family-tag { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.family-name { font-family: var(--f-display); font-weight: 400; font-size: clamp(19px, 4.5vw, 26px); color: var(--ink); line-height: 1.3; }
.family-amp { font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--gold); margin: 4px 0; }
.family-home { margin-top: 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.family-foot {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: clamp(26px, 5vw, 44px); font-family: var(--f-display); font-style: italic;
  font-size: clamp(15px, 3.6vw, 19px); color: var(--brown); text-align: center; width: 100%; box-sizing: border-box;
}
.family-foot .ico { width: 26px; height: 26px; color: var(--gold); stroke-width: 3.4; }

/* Venues */
.venue-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); width: 100%; box-sizing: border-box; }
.venue-card {
  overflow: hidden; border-radius: 6px; background: #fff;
  border: 1px solid rgba(193, 150, 47, .28); box-shadow: var(--shadow-s);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease); box-sizing: border-box;
}
.venue-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.venue-map-header {
  height: 110px; background: linear-gradient(135deg, #EADBC5, #D8C4A3);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.venue-map-header::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122, 92, 67, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 92, 67, .12) 1px, transparent 1px);
  background-size: 24px 24px;
}
.venue-map-pin {
  width: 40px; height: 40px; color: var(--maroon); position: relative; z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); animation: pinBob 3s var(--ease-soft) infinite;
}
@keyframes pinBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.venue-body { padding: clamp(20px, 4vw, 30px); }
.venue-tag { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.venue-name {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 4.8vw, 27px);
  color: var(--ink); margin: 8px 0 10px; line-height: 1.25;
}
.venue-addr { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }
.venue-when {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 13px; color: var(--maroon); font-weight: 500;
}
.venue-when .ico { width: 16px; height: 16px; color: var(--gold); stroke-width: 4.4; flex-shrink: 0; }
.venue-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px; font-size: 11px; min-height: 44px;
  letter-spacing: .2em; text-transform: uppercase;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  -webkit-tap-highlight-color: transparent; box-sizing: border-box;
}
.btn .ico { width: 15px; height: 15px; stroke-width: 4.4; }
.btn--gold {
  background: linear-gradient(145deg, var(--gold-lt), var(--gold));
  color: #2E2018; box-shadow: 0 10px 26px -12px rgba(193, 150, 47, .85); font-weight: 600;
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(193, 150, 47, .95); }
.btn--ghost { border: 1px solid rgba(193, 150, 47, .55); color: var(--brass); }
.btn--ghost:hover { background: rgba(193, 150, 47, .1); transform: translateY(-2px); }

/* ============================================================
   12 · PHOTO GALLERY
   ============================================================ */
#gallery { overflow: hidden; }
.gallery-rays {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .55;
  background:
    radial-gradient(42% 28% at 18% 22%, rgba(231, 201, 122, .22), transparent 70%),
    radial-gradient(36% 24% at 82% 38%, rgba(193, 150, 47, .14), transparent 72%),
    radial-gradient(50% 30% at 50% 88%, rgba(255, 248, 230, .35), transparent 70%);
}
.photo-wall-stage { position: relative; width: 100%; max-width: min(1180px, 100%); margin-inline: auto; overflow: hidden; padding: 0 4px; box-sizing: border-box; }
.photo-wall {
  position: relative; columns: 3; column-gap: clamp(16px, 2.5vw, 32px);
  padding: clamp(6px, 1.5vw, 18px) 0 clamp(18px, 3.5vw, 44px); z-index: 2; width: 100%; box-sizing: border-box;
}
.photo-card {
  --rot: 0deg; --nudge-x: 0px; --nudge-y: 0px; --scale: 1; --parallax-y: 0px;
  --enter-x: 0px; --enter-y: 24px; --enter-s: .96; --drift-delay: 0s;
  position: relative; display: inline-block; width: 100%; margin: 0 0 clamp(18px, 2.8vw, 36px);
  break-inside: avoid; page-break-inside: avoid; vertical-align: top;
  opacity: 0; transform: translate3d(0, var(--parallax-y), 0); will-change: transform, opacity;
  z-index: 2; cursor: pointer; box-sizing: border-box;
}
.photo-card--sm { width: 92%; margin-inline: auto; }
.photo-card--md { width: 96%; margin-inline: auto; }
.photo-card--lg { width: 100%; }

.photo-card[data-enter="left"] { --enter-x: -24px; --enter-y: 16px; --enter-s: 1; }
.photo-card[data-enter="right"] { --enter-x: 24px; --enter-y: 16px; --enter-s: 1; }
.photo-card[data-enter="up"] { --enter-x: 0px; --enter-y: 28px; --enter-s: .94; }

.photo-card__inner {
  transform: translate3d(var(--enter-x), var(--enter-y), 0) scale(var(--enter-s));
  transition: transform 1.15s var(--ease), opacity 1.15s var(--ease); transform-origin: center center;
  box-sizing: border-box;
}
.photo-card.is-in { opacity: 1; }
.photo-card.is-in .photo-card__inner {
  transform: translate3d(var(--nudge-x), var(--nudge-y), 0) rotate(var(--rot)) scale(var(--scale));
  animation: photoDrift 8.5s ease-in-out infinite alternate; animation-delay: calc(1.2s + var(--drift-delay));
}

.photo-card__paper {
  position: relative; padding: clamp(8px, 1.2vw, 12px); border-radius: 10px;
  background: linear-gradient(165deg, rgba(255, 252, 245, .98), rgba(246, 239, 226, .96) 55%, rgba(238, 226, 204, .94));
  border: 1px solid rgba(231, 201, 122, .55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .7) inset,
    0 10px 28px -16px rgba(46, 32, 24, .28),
    0 2px 8px rgba(46, 32, 24, .06);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), filter .55s var(--ease);
  box-sizing: border-box;
}
.photo-card__paper::before {
  content: ""; position: absolute; inset: 5px; border-radius: 7px;
  border: 1px solid rgba(193, 150, 47, .28); pointer-events: none; z-index: 2;
}
.photo-card__paper img {
  position: relative; z-index: 1; width: 100%; height: auto;
  display: block; object-fit: cover; border-radius: 4px; background: rgba(230, 215, 190, .35);
}

@media (hover: hover) and (pointer: fine) {
  .photo-card:hover { z-index: 5; }
  .photo-card.is-in:hover .photo-card__paper {
    transform: translateY(-6px) scale(1.02) rotate(.4deg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .75) inset, 0 24px 48px -20px rgba(46, 32, 24, .42), 0 8px 20px rgba(193, 150, 47, .12);
    filter: saturate(1.04);
  }
}

@keyframes photoDrift {
  0% { transform: translate3d(var(--nudge-x), var(--nudge-y), 0) rotate(var(--rot)) scale(var(--scale)); }
  50% { transform: translate3d(calc(var(--nudge-x) + 2px), calc(var(--nudge-y) - 3px), 0) rotate(calc(var(--rot) + .2deg)) scale(calc(var(--scale) * 1.006)); }
  100% { transform: translate3d(calc(var(--nudge-x) - 1px), calc(var(--nudge-y) + 2px), 0) rotate(calc(var(--rot) - .2deg)) scale(var(--scale)); }
}

/* Lightbox Modal */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10, 7, 4, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: max(20px, var(--sat)) max(20px, var(--sar)) max(20px, var(--sab)) max(20px, var(--sal));
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s;
  box-sizing: border-box;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.lightbox-img-wrap {
  position: relative; max-width: min(92vw, 1000px); max-height: min(84dvh, 84vh); border-radius: 8px;
  overflow: hidden; border: 1px solid rgba(231, 201, 122, .45); box-shadow: 0 20px 60px rgba(0,0,0,.8);
  box-sizing: border-box;
}
.lightbox-img { max-width: 100%; max-height: min(84dvh, 84vh); width: auto; height: auto; object-fit: contain; display: block; }
.lightbox-close {
  position: absolute; top: max(16px, var(--sat)); right: max(16px, var(--sar)); width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center;
  font-size: 26px; border: 1px solid rgba(231, 201, 122, .45); transition: background .3s, transform .3s;
}
.lightbox-close:hover { background: rgba(231, 201, 122, .3); transform: scale(1.08); }

/* ============================================================
   13 · OUR STORY
   ============================================================ */
.story-prose {
  max-width: 680px; margin-inline: auto; text-align: center;
  padding: clamp(30px, 5.5vw, 54px) clamp(20px, 4.5vw, 46px); background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(193, 150, 47, .28); border-radius: 4px; box-shadow: var(--shadow-m); position: relative;
  box-sizing: border-box; width: 100%;
}
.story-prose::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(193, 150, 47, .14);
  border-radius: 2px; pointer-events: none;
}
.story-prose__icon {
  width: 38px; height: 38px; color: var(--gold); stroke-width: 3.2;
  margin: 0 auto clamp(16px, 3.5vw, 28px); opacity: .85;
}
.story-prose p {
  font-family: var(--f-display); font-size: clamp(15.5px, 3.8vw, 20px);
  line-height: 1.95; color: var(--ink-soft); font-weight: 300; margin-bottom: 1.3em;
}
.story-prose p:last-of-type { margin-bottom: 0; }
.story-prose__names {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: clamp(20px, 3.8vw, 34px); font-family: var(--f-display); font-style: italic;
  font-size: clamp(19px, 4.8vw, 28px); color: var(--maroon); font-weight: 300;
}
.story-prose__names .ico { width: 26px; height: 26px; color: var(--gold); stroke-width: 3.4; }

/* ---------- Domain Ads Promotional Footer ---------- */
.promo-footer {
  margin-top: clamp(28px, 5vh, 48px);
  padding: clamp(20px, 4vw, 32px) clamp(16px, 4vw, 28px);
  background: rgba(22, 15, 8, .75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(231, 201, 122, .32);
  border-radius: clamp(14px, 3vw, 22px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 240, 205, .15);
  max-width: 640px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.promo-footer__badge {
  font-family: var(--f-display);
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  color: #FFF3DC;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.35;
}
.promo-footer__desc {
  font-size: clamp(12px, 2.2vw, 14px);
  color: rgba(255, 243, 220, .82);
  line-height: 1.5;
  margin: 0;
  max-width: 480px;
}
.promo-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(145deg, #25D366, #128C7E);
  color: #FFFFFF;
  font-size: clamp(12px, 2.2vw, 13.5px);
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 6px 20px -4px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  max-width: 100%;
}
.promo-footer__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(37, 211, 102, .6);
  filter: brightness(1.06);
}
.promo-footer__cta:active {
  transform: scale(0.97);
}
.promo-footer__credits {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: clamp(11px, 2vw, 12.5px);
  color: rgba(255, 243, 220, .75);
  line-height: 1.6;
}
.promo-footer__credits strong {
  color: var(--gold-lt);
  font-weight: 600;
}
.promo-footer__sep {
  color: rgba(231, 201, 122, .4);
  font-size: 11px;
}
.promo-footer__link {
  color: var(--gold-lt);
  text-decoration: none;
  transition: color .2s, text-decoration .2s;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 4px;
}
.promo-footer__link:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 480px) {
  .promo-footer__credits {
    flex-direction: column;
    gap: 4px;
  }
  .promo-footer__sep {
    display: none;
  }
}

/* ============================================================
   15 · THANK YOU FINALE & FOOTER
   ============================================================ */
.finale-glow {
  position: absolute; left: 50%; top: 46%; width: min(96%, 860px); aspect-ratio: 2/1;
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 206, 130, .36), transparent 72%);
  transition: opacity 1.8s var(--ease);
}
body.finale-glow-on .finale-glow { opacity: 1; }

.finale-stage {
  position: relative; width: 100%; height: clamp(120px, 24vh, 240px);
  display: grid; place-items: center;
}
.finale-fallback {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 9vw, 84px);
  letter-spacing: .16em; color: rgba(255, 232, 180, .94); text-shadow: 0 0 40px rgba(255, 196, 110, .45);
  text-align: center;
}
.finale-sub {
  margin-top: 8px; font-family: var(--f-display); font-style: italic;
  font-size: clamp(16px, 4vw, 24px); color: rgba(243, 233, 214, .76); text-align: center;
}
.finale-ml {
  margin-top: 8px; font-family: var(--f-ml); font-size: clamp(12.5px, 3.2vw, 16px);
  color: rgba(231, 201, 122, .76); letter-spacing: .04em; text-align: center;
}

.gratitude-card {
  max-width: 580px; margin-inline: auto; text-align: center; width: 100%;
  padding: clamp(30px, 6vw, 56px) clamp(20px, 5vw, 46px);
  background: linear-gradient(160deg, rgba(255, 246, 225, .08), rgba(255, 246, 225, .02));
  border: 1px solid rgba(231, 201, 122, .28); position: relative; box-sizing: border-box;
}
.gratitude-card::before, .gratitude-card::after {
  content: ""; position: absolute; width: 32px; height: 32px;
  border: 1px solid rgba(231, 201, 122, .6); pointer-events: none;
}
.gratitude-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.gratitude-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.gratitude-kicker {
  font-family: var(--f-title); font-size: clamp(10.5px, 2.6vw, 13px);
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold-lt);
  opacity: .85; margin-bottom: 16px;
}
.gratitude-msg {
  margin: 18px auto 0; max-width: 460px; font-family: var(--f-display); font-style: italic;
  font-size: clamp(15px, 3.8vw, 20px); line-height: 1.9; color: rgba(243, 233, 214, .82);
  font-weight: 300;
}
.gratitude-names {
  margin-top: 24px; font-family: var(--f-display); font-weight: 300;
  font-size: clamp(24px, 6vw, 40px); color: #FBF3E2; letter-spacing: .02em;
}
.gratitude-date {
  margin-top: 8px; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(243, 233, 214, .45);
}
.gratitude-phones {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 3vw, 20px); flex-wrap: wrap; margin-top: 24px;
}
.gratitude-phone {
  display: flex; align-items: center; gap: 8px; font-size: clamp(13px, 3.4vw, 15px);
  color: var(--gold-lt); opacity: .88; transition: opacity .3s;
}
.gratitude-phone:hover { opacity: 1; }
.gratitude-phone .ico { width: 15px; height: 15px; stroke-width: 4; }
.gratitude-phone-sep { color: rgba(231, 201, 122, .4); font-size: 18px; }

/* ============================================================
   16 · AUDIO DISC CONTROLLER
   ============================================================ */
.audio-disc {
  position: fixed; z-index: 110;
  left: max(16px, var(--sal));
  bottom: max(18px, var(--sab));
  width: clamp(52px, 12vw, 64px);
  height: clamp(52px, 12vw, 64px);
  min-width: 48px; min-height: 48px;
  padding: 0; border-radius: 50%; isolation: isolate; -webkit-tap-highlight-color: transparent;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0, 12px, 0) scale(.88);
  transition: opacity .55s var(--ease), visibility 0s linear .55s, transform .55s var(--ease);
}
.audio-disc.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .55s var(--ease), visibility 0s, transform .55s var(--ease);
}
.audio-disc__glow {
  position: absolute; inset: -14px; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 196, 110, .4), transparent 72%);
  opacity: .55; pointer-events: none; transition: opacity .4s var(--ease);
}
.audio-disc.is-playing .audio-disc__glow {
  opacity: 1; animation: pulseGlow 3.2s var(--ease-soft) infinite;
}
.audio-disc__ring {
  position: absolute; inset: -5px; z-index: 1; border-radius: 50%;
  border: 1px solid rgba(231, 201, 122, .48); pointer-events: none;
}
.audio-disc.is-playing .audio-disc__ring {
  animation: ringOut 3.2s var(--ease-soft) infinite;
}
.audio-disc__platter {
  position: absolute; inset: 0; z-index: 2; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #2a1c10 0 18%, transparent 18.5%),
    repeating-radial-gradient(circle at 50% 50%, #1a120c 0 1.5px, #24180f 1.5px 3px);
  border: 2px solid rgba(231, 201, 122, .75);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 180, .2), 0 10px 28px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(193, 150, 47, .25);
  overflow: hidden;
}
.audio-disc__grooves {
  position: absolute; inset: 8%; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 2px, rgba(255, 220, 150, .08) 2px 3px);
  -webkit-mask-image: radial-gradient(circle, transparent 28%, #000 30%, #000 92%, transparent 94%);
  mask-image: radial-gradient(circle, transparent 28%, #000 30%, #000 92%, transparent 94%);
  pointer-events: none;
}
.audio-disc__hub {
  position: absolute; inset: 28%; z-index: 2; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 236, 190, .35), transparent 55%), linear-gradient(145deg, #C1962F, #8E6C1E 55%, #6B5316);
  border: 1px solid rgba(255, 232, 180, .45); box-shadow: inset 0 1px 0 rgba(255, 240, 205, .35), 0 2px 8px rgba(0, 0, 0, .35);
}
.audio-disc__mono {
  font-family: var(--f-display); font-weight: 500; font-style: italic;
  font-size: 11px; letter-spacing: .04em; line-height: 1; color: #FFF6E3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35); opacity: .95;
}
.audio-disc.is-playing .audio-disc__platter {
  animation: discSpin 4.8s linear infinite;
}
@keyframes discSpin { to { transform: rotate(360deg); } }

.audio-disc__icon {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  border-radius: 50%; background: radial-gradient(circle, rgba(11, 7, 3, .18) 0%, rgba(11, 7, 3, .42) 70%, rgba(11, 7, 3, .55) 100%);
  color: #FFF3DC; transition: background .35s var(--ease), opacity .35s var(--ease);
}
.audio-disc.is-playing .audio-disc__icon {
  background: radial-gradient(circle, rgba(11, 7, 3, .08) 0%, rgba(11, 7, 3, .28) 100%);
  opacity: .88;
}
.audio-disc__icon svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.audio-disc__pause { display: none; }
.audio-disc.is-playing .audio-disc__play { display: none; }
.audio-disc.is-playing .audio-disc__pause { display: block; }

.audio-disc:hover { transform: translateY(-2px); }
.audio-disc:hover .audio-disc__platter {
  border-color: rgba(231, 201, 122, .95);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 180, .28), 0 14px 34px -12px rgba(255, 180, 90, .35), 0 0 0 1px rgba(193, 150, 47, .35);
}
.audio-disc:active { transform: scale(.96); }

/* ============================================================
   17 · RESPONSIVE BREAKPOINTS & ADAPTIVE RULES
   ============================================================ */

/* Tablet & Smaller (< 900px) */
@media (max-width: 900px) {
  .photo-wall { columns: 2; column-gap: clamp(14px, 2.5vw, 22px); }
  .photo-card--sm { width: 96%; }
  .photo-card--md { width: 98%; }
  .photo-card { --rot: clamp(-1deg, var(--rot, 0deg), 1deg); }
  .photo-card[data-enter="left"], .photo-card[data-enter="right"] { --enter-x: 0px; --enter-y: 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile & Small Tablet (< 768px) */
@media (max-width: 767px) {
  .tl::before { left: 20px; }
  .tl-item { padding-left: 54px; }
  .tl-node { width: 40px; height: 40px; box-shadow: 0 0 0 5px var(--ivory); }
  .tl-node .ico { width: 18px; height: 18px; }
  .couple-grid { grid-template-columns: 1fr; }
  .audio-disc { width: 54px; height: 54px; }
  .audio-disc__mono { font-size: 10px; }
}

/* Small Mobile (< 540px) */
@media (max-width: 540px) {
  .photo-wall { columns: 1; }
  .photo-wall-stage { max-width: 440px; }
  .photo-card, .photo-card--sm, .photo-card--md, .photo-card--lg { width: 100%; margin-inline: 0; --rot: 0deg !important; }
  .cd-sep { display: none; }
  .countdown { gap: 8px; }
  .cd-unit { min-width: calc(50% - 6px); flex: 1 1 calc(50% - 6px); }
  .tl-item { padding-left: 48px; }
  .tl-node { width: 36px; height: 36px; }
  .tl-node .ico { width: 16px; height: 16px; }
  .tl::before { left: 18px; }
  .radio-pill { flex: 1 1 100%; }
}

/* Desktop (>= 900px) */
@media (min-width: 900px) {
  .couple-grid { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .photo-wall { columns: 3; }
}

/* Large Desktop & Ultrawide (>= 1920px) */
@media (min-width: 1920px) {
  :root {
    --wrap: 1280px;
    --content-wide: 80rem;
    --content-max: 48rem;
  }
}

/* ============================================================
   18 · MOBILE LANDSCAPE & SHORT VIEWPORT OPTIMIZATIONS
   ============================================================ */
@media (max-height: 520px) {
  .landing-inner { padding: 4px 14px; }
  .landing-eyebrow { gap: 2px; }
  .landing-eyebrow .ml { font-size: 12px; }
  .landing-eyebrow .en { font-size: 8px; letter-spacing: .2em; }
  .landing-inner .divider { margin-top: 4px; max-width: 150px; }
  .landing-names { font-size: clamp(24px, 5.5vh, 36px); margin-top: 4px; gap: 0; }
  .landing-names .amp { font-size: .38em; margin: 0; }
  .landing-date { font-size: 9.5px; letter-spacing: .26em; margin-top: 3px; }
  .btn-open { margin-top: 8px; }
  .btn-open__inner { padding: 8px 18px; min-height: 40px; gap: 8px; }
  .btn-open__lamp { width: 18px; height: 18px; }
  .btn-open__en { font-size: 11px; }
  .btn-open__ml { font-size: 9px; }
  .landing-hint { margin-top: 4px; font-size: 8px; }
  .scene--screen > .hero-header { padding-top: max(48px, calc(var(--sat) + 44px)); }
  .hero-bless__ml { font-size: 10.5px; }
  .hero-bless__en { font-size: 7.5px; }
  .hero-names { font-size: clamp(20px, 5vh, 34px); }
  .hero-date__en { font-size: 9.5px; }
  .scene--screen > .hero-footer { padding-bottom: max(6px, var(--sab)); gap: 2px; }
  .hero-chingam { font-size: 9px; }
  .scroll-indicator { padding: 2px 8px; gap: 2px; }
  .scroll-indicator__word { font-size: 7.5px; }
  .scroll-indicator__arrow { width: 13px; height: 13px; }

  .nav-header { top: max(4px, var(--sat)); }
  .nav-pill { padding: 3px 12px; }
  .audio-disc { width: 42px; height: 42px; bottom: max(6px, var(--sab)); left: max(6px, var(--sal)); }
}
